Skip to content

feat: numbered review table at the top of the shift digest - #719

Merged
Jammy2211 merged 2 commits into
mainfrom
feature/digest-review-table
Nov 25, 2026
Merged

Jammy2211 merged 2 commits into
mainfrom
feature/digest-review-table

Conversation

@Jammy2211

@Jammy2211 Jammy2211 commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The shift digest now opens with a numbered Review table, grouped by what the human does next, so a shift review is one pass and one reply ("prm 1–4, 6"). Refs #718 (epic autonomous-orchestrators, M3; folds M3.3 slice 2 item 1). Companion docs PR: PyAutoLabs/PyAutoMind#606 (batches/AGENTS.md).

  • ### Review table sits after the closed-early line and inbox notice, before ### Brief work, with one count line above it, e.g. 4 to /prm (9 PRs) · 3 to answer · 2 blocked or not started.
  • Groups, in order, with empty ones left out: Merge: your /prm · Answer: question on the issue · Fix: CI failed or crashed · Blocked or not started · Still running · Done (plus Proposed (shadow) on a shadow brief).
  • A task goes into its single most urgent group. The digest is written at review-at:, and nothing merges after that ("what arrives late waits for /prm"), so a PR with CI running, a branch the close-out updated, or a workspace-sweep wait is in Merge. Only a close-out still running and a worker still out stay in Still running. An unrecognised state goes to Merge, failing toward the human.
  • Rows are numbered 1…N straight through. Work lists each PR as repo#n in merge order, with "after repo#m" where it waits. Note gives the short reason (tier judge, decision-taken, merge-cap 0, question on repo#n, "autogalaxy held by …").
  • Cells escape |, < and >, and strip newlines, so the GitHub comment's table never breaks.
  • Everything from ### Brief work down is byte-identical to before. validate, _sections, _items and _slug ignore the new section.
  • Presentation only: nothing the watcher decides or merges changes.

API Changes

None public. These are internal additions to agents/conductors/batch/_digest.py: review_row, review_table_lines, merge_ordered, work_ref, _cell and a per-build _memo health wrapper (one gh read per URL, as before; nothing cached across ticks).

Test Plan

  • pytest tests/ -x -q -n 4: 2544 passed, 1 skipped
  • tests/test_orchestrator_digest.py: 73 passed (37 new cases); the 15 round-1 cases fail on the first commit 0da8122
  • All test modules importing _digest: 904 passed, 1 skipped
  • Witness: replaying real shift 2026-11-24-am (slot + record, read-only, health HEALTHY / FAILED / RUNNING) puts all 9 tasks in exactly one row, PRs in merge order. validate → [], and ### Brief work down is byte-identical to origin/main's build.
  • All 19 real slots with a record, each replayed under HEALTHY, RUNNING and FAILED health (57 builds): one row per task, validate clean, below-table identical, no broken rows

Review

Independent fresh-context review (Opus 5.5, did not write the branch): round 1 FINDINGS. The must-fix was that a branch-updated or branch-current PR with CI FAILED landed in Still running. The other findings: CI-running and sweep waits belong in Merge; finished-with-no-PR was hidden in Done; dropped-task parsing; verdicts counted as open PRs; cell HTML escaping; Brain AGENTS.md docs. All fixed in bd4b2e6. Round 2: CLEAN.

Heart

Dev-ship gate readiness --dev --repos PyAutoBrain,PyAutoMind: GREEN. Shown, not blocking:

  • yellow: manifest drift: workspace checkouts (manifest ↔ disk), 1 mismatch vs PyAutoMind/repos.yaml
  • stale: release validation incomplete: no rehearsal for current source

Tier: Consequence: judge. Effective level: supervised; merge mode: human /prm.

🤖 Generated with Claude Code

Jammy2211 and others added 2 commits November 24, 2026 12:09
The digest now opens with a `### Review table`: a count line, then every
named task and backlog pick in one table numbered 1..N, grouped by the
human's next action (Merge: your /prm, Answer, Fix, Blocked or not
started, Still running, Done, Proposed (shadow)); each task sits in its
most urgent group. Work lists each PR or issue as repo#n in merge order
with "after repo#m"; Note gives the short reason. Grouping reads
task_state/plain_outcome. Pipes are escaped. Everything from
`### Brief work` down is unchanged; a settled carry-over stays out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…review 1)

- A branch updated from main (or already up to date) is grouped by its
  trailing CI word: FAILED/RED is Fix, any other is Merge; the Note says it.
- CI still running and a workspace-sweep-unknown wait are the human's
  /prm (the late sweep closes nothing out); only a close-out at work and
  a worker still out stay in Still running.
- Finished with no PR or issue named is Blocked or not started.
- A dropped task keeps Merge/Fix when a PR of it still needs the human.
- Verdict URLs are not counted as open PRs.
- Cells escape < and > and never double-escape a pipe.
- batch/AGENTS.md mentions the review table first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Jammy2211
Jammy2211 merged commit d4d11b7 into main Nov 25, 2026
2 checks passed
@Jammy2211
Jammy2211 deleted the feature/digest-review-table branch November 25, 2026 20:21
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