Skip to content

feat(program-tending): slice 2 — real epics + roadmaps sections (#1352) - #8377

Merged
dezren39 merged 2 commits into
mainfrom
queue/8167-1352-program-tending-slice2
Nov 11, 2026
Merged

dezren39 merged 2 commits into
mainfrom
queue/8167-1352-program-tending-slice2

Conversation

@dezren39

@dezren39 dezren39 commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

Program-tending slice 2/3 for issue #1352 (task 8167, lane code-j): the epics and roadmaps sections of scripts/program_tending.py are real now. Projects / stalled-PRs / loose-ends remain slice 3 stubs.

Epics

  • Open epic issues per repo: child progress computed from the issue refs in the body and verified against live issue state (memoised per run); body-vs-reality checkbox mismatches counted.
  • All children closed → one completion comment proposing closure. Silent 7+ days → one status comment (child progress, last movement, next step = first open child, blockers = children labelled status/blocked). An epic tended within 7 days (marker comment) is skipped; hard-stop labels and PRs returned by the issues endpoint are skipped.

Roadmaps

Runner / workflow

  • Dry-run by default; --live posts (comments, drift label, drift PR via git+gh) and degrades to dry-run when no token is present. 12-action cap per run shared across sections.
  • Workflow now runs --live with contents/issues/pull-requests: write and a 30-minute timeout; schedule and run-log shape unchanged.

Verification


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Epics: child progress from body refs verified live, body-vs-reality mismatches, 7-day silence check-ins, completion proposals, hard-stop + PR guards, 7-day re-tend suppression. Roadmaps: certain drift (forward item, all refs closed) fixed by PR removing the item; ambiguous drift flagged on #1352 with meta/roadmap-drift; Done rows never edited. Dry-run by default; --live posts via the token; 12-action run cap. Workflow: live mode, write permissions, 30m timeout. 22 unit tests pass; live dry-run on developing-today/code planned 9 epic comments + 1 roadmap flag, certain drift verified clean.
@dezren39
dezren39 requested a review from a team as a code owner November 11, 2026 01:07
@coderabbitai

coderabbitai Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 24 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2adafbb5-8c93-4efe-9e85-28d0cc847273
Commits

Reviewing files that changed from the base of the PR and between 0696e54 and 6f6efa0.

Files selected for processing: 3

  • .github/workflows/program-tending.yml
  • scripts/program_tending.py
  • scripts/tests/test_program_tending.py
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-11T02:22:38.310744Z 6f6efa0 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 743f1213e2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/program-tending.yml Resolved
Comment thread scripts/program_tending.py Resolved
Comment thread scripts/program_tending.py Resolved
Comment thread scripts/program_tending.py Resolved
Comment thread scripts/program_tending.py Resolved
…epo token + write isolation, completion suppression, table-row roadmaps, git identity, link-label refs (#1352)
@dezren39
dezren39 merged commit bfa1385 into main Nov 11, 2026
1 of 7 checks passed
@dezren39
dezren39 deleted the queue/8167-1352-program-tending-slice2 branch November 11, 2026 02:21

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6f6efa0014

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

# other cross-repo workflows here already use; fall back to
# the workflow token when it is not configured.
GH_TOKEN: ${{ secrets.REPO_AUTOMATION_TOKEN || github.token }}
run: python3 -I scripts/program_tending.py --run --live

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Register the newly live Actions schedule

Enabling --live changes this daily 13:00 UTC job from read-only reporting to scheduled writes, but the commit does not update doc/fleet-schedule-registry.md. Its GitHub Actions section lists only bws-freshness; the existing program-tending entry describes a separate Muse schedule at daily@09:12:00. Register this Actions job and its live behavior in the same PR, as required by the root schedule-maintenance rule, so the fleet inventory reflects the automation being enabled.

AGENTS.md reference: AGENTS.md:L53-L58

Useful? React with 👍 / 👎.

Comment on lines +84 to +85
_REF_RE = re.compile(r"(?<![\w/])#(\d+)")
_URL_REF_RE = re.compile(r"github\.com/([\w.-]+/[\w.-]+)/(?:issues|pull)/(\d+)")

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve qualified references before classifying certain drift

The checked-in planning/roadmaps/mcpx.md explicitly uses nix#N references, but neither reference regex recognizes that format: the bare-reference regex rejects a preceding word character. Consequently, the Legacy client robustness row loses its nix#201 remaining-work reference while retaining the local references describing landed work. Once those local references are closed, _roadmap_drift classifies the whole row as certain drift and proposes deleting work that remains outstanding. Parse qualified references and resolve them, or retain them as unverified so they prevent automatic removal.

Useful? React with 👍 / 👎.

by_file.setdefault(entry["file"], set()).add(entry["line"])
for rel, linenos in by_file.items():
_remove_lines(root / rel, linenos)
branch = f"program-tending/roadmap-drift-{today}"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Reuse outstanding roadmap repair PRs across daily runs

If a roadmap repair PR remains open until the following day's scheduled run, the checkout still contains the same drift, but this date-based branch name causes _open_drift_pr to publish another branch and PR for the same removals. There is no outstanding-PR lookup in this path. The inspected gh pr create --help describes the command as “Create a pull request on GitHub,” and the invocation here supplies each newly dated branch as --head. Look up an existing tending repair PR and update or skip it rather than creating duplicate review work every day until someone merges the first repair.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant