Skip to content

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

Done

Description

@Jammy2211

Overview

The shift digest lists each task as a two-line bullet, so after a shift the human has to read every line to work out what to /prm (and in which order), what needs an answer on an issue, and what was blocked or never started. This adds a numbered Review table at the top of the digest, grouped by the human's next action, so a shift review becomes one pass and one reply. It also takes the numbered-decisions idea from M3.3 slice 2 (shift_decisions_sheet.md). Epic: autonomous-orchestrators (M3); built before the M3 gate shift.

Plan

  • Add a ### Review table section at the top of the digest, before ### Brief work, with one count line above it ("4 to /prm (9 PRs) · 3 to answer · 2 not started").
  • Group named tasks and backlog picks by next action, in this order: Merge: your /prm · Answer: question on the issue · Fix: CI failed or crashed · Blocked or not started · Still running · Done. Leave empty groups out.
  • Columns: #, Task (title linked to the Mind prompt), Tier, Work (each PR/issue as repo#n, one per line in merge order, "after repo#m" where it waits), Note (short reason: decision-taken, tier judge, merge-cap 0, question on repo#n, "autogalaxy held by …").
  • Number rows 1…N across the whole table (human-approved 2026-11-24), so the human can answer in one message ("prm 1–4, 6").
  • Carried-over PRs the human already merged (already merged, settled since Brain c4e39e9) go in Done.
  • Keep ### Brief work and everything below unchanged (validate, _slug and tests read them); escape pipes so the GitHub comment's table never breaks.
  • Update the Digest format in Mind batches/AGENTS.md, and the /cockpit shift-end line and the batch skill's review section if they describe the digest layout.
  • Tier + merge mode: effective level: supervised; merge mode: human /prm
Detailed implementation plan

Affected Repositories

  • PyAutoBrain (primary)
  • PyAutoMind (docs: batches/AGENTS.md)

Branch Survey

Repository Current Branch Dirty?
./PyAutoBrain main (76b5316) clean
./PyAutoMind main (shared checkout; edits via worktree) n/a

Suggested branch: feature/digest-review-table

Implementation Steps

  1. agents/conductors/batch/_digest.py: add REVIEW_TABLE_HEADING, a review_group(state) classifier built on task_state/plain_outcome (one group per task: a task with several PRs takes its most urgent group; order Merge > Answer > Fix > Blocked > Running > Done), a review_table_lines(...) builder (count line, | # | Task | Tier | Work | Note |, pipe/newline escaping, merge-order sort using merge_order_lines' ordering), and call it in build() just after the closed-early and inbox lines.
  2. The Note is the short reason taken from the state: close-out refusal why, decision-taken, skip/refusal reason, the issue for PARKED-ON-ISSUE, "after repo#m" waits.
  3. Tests in tests/test_orchestrator_digest.py: grouping per state, group order, numbering continuous across groups, empty groups omitted, multi-PR task in merge order, pipe escaping, settled carry-over in Done, count line, validate still passes on a full record; witness replay of 2026-11-24-am.
  4. Docs: Mind batches/AGENTS.md "Digest" format; Brain skills/cockpit shift-end line and skills/batch review section if they describe the layout.

Key Files

  • agents/conductors/batch/_digest.py — digest builder (build, task_state, plain_outcome, merge_order_lines)
  • tests/test_orchestrator_digest.py — digest tests
  • PyAutoMind batches/AGENTS.md — digest format doc

Out of scope

  • No change to what the watcher decides or merges.
  • Workers filing untested risks as inbox entries, set-aside writes and late arrivals: remain in draft/feature/pyautobrain/shift_decisions_sheet.md.
  • The early-close gap in shift 2026-11-24-am: filed separately as a bug draft.

Original Prompt

Click to expand starting prompt

Shift digest: open with one review table grouped by what the human does next

Type: feature
Target: PyAutoBrain
Repos:

  • PyAutoBrain
  • PyAutoMind
    Difficulty: small
    Autonomy: supervised
    Priority: high
    Status: draft
    Filed: 2026-11-24
    Epic: autonomous-orchestrators
    Consequence: judge
    Witness: the digest of a replayed real shift (2026-11-24-am's counters and slot) opens with a review table in which every named and backlog task sits in exactly one action group (merge, answer, blocked/not started, done), each PR listed in merge order with its repo#n link, and _digest.validate still passes on the full record
    Review-minutes: 10
    Unattended: never
    Lane: local-dev

Original request (human, 2026-11-24, after reviewing shift 2026-11-24-am in 15 minutes):
"its all quite good but I think having a more structured table like format for this, so I know what needs comments, prm, was blocked would help make reviews faster and more structured"

Why

The digest's ### Brief work section (agents/conductors/batch/_digest.py,
entry_lines / build) is one two-line bullet per task. The outcome words
are there ("Needs you — not merged unattended", "Needs you — question on the
issue", "Not started"), but a task with several PRs puts them all in one long
<sub> line with each PR's state and merge-order note. The human has to read
every line to work out three lists: what to /prm (and in which order), what
needs a reply on an issue, and what was blocked or never started and why.

What to build

Add a ### Review table section at the top of the digest, before
### Brief work. It covers named tasks and backlog picks, grouped by the
human's next action, in this order:

Group Rule (from task_state / plain_outcome)
Merge: your /prm awaiting /prm, CI green awaiting merge, no CI checks, waits behind (in merge order)
Answer: question on the issue PARKED-ON-ISSUE, parked or blocked on a person
Fix: CI failed or crashed CI failed, crashed, abandoned, killed
Blocked or not started not started (with the skip reason, e.g. "autogalaxy held by X"), dropped, obsolete
Still running still running at review time, close-out running or updating
Done merged, already merged

Columns: Task (title linked to the Mind prompt), Tier, Work (each PR or
issue as repo#n, one per line in merge order, with "after repo#m" where a PR
waits behind another), and Note (the short reason: "tier judge", "merge-cap
0", "question on PyAutoLens#871", "autogalaxy held by …"). Empty groups are
left out. A one-line count goes above the table: "4 to /prm (9 PRs) · 3 to
answer · 2 not started".

Keep the existing ### Brief work / ### Backlog picks entries below it
unchanged: validate, _slug and the tests read them. The table is an
addition, not a replacement. Update the "Digest" format in
PyAutoMind/batches/AGENTS.md to match, plus the /cockpit shift-end line
and the batch skill's review section if they describe the digest layout.

GitHub renders the digest as a Markdown comment. Make sure a pipe in a PR
title is escaped and the table does not break.

Boundaries

  • This changes the shift's own digest writer, so the organ rule applies: it is
    never a shift task. Run it in chat through start_dev → start_library.
  • No change to what the watcher decides or merges, only to how the digest
    presents it.

Related, not in scope

In shift 2026-11-24-am, mge_deflections_reverse_mode_nan_at_grid_centre and
jit_cache_not_hit_modeling_visualization were held behind
substructure_util_zero_padded_halo_slots_make's worker. When that worker
parked, the shift closed early (08:34Z, review-at 09:30Z) instead of starting
them. That looks like an early-close gap in the watcher and should be filed as
its own bug if confirmed.

🤖 Generated with Claude Code

Activity

  1. Jammy2211 commented on Nov 24, 2026

    @Jammy2211
    ContributorAuthor

    Library PR created. PyAutoBrain#719 (code + tests) and PyAutoMind#606 (digest format docs). Full suites: Brain 2544 passed / 1 skipped, Mind 1056 passed. Witness replay of 2026-11-24-am: 9 tasks, one row each, validate clean, ### Brief work down byte-identical. Independent review: round 1 FINDINGS (fixed in bd4b2e6), round 2 CLEAN. Heart dev gate GREEN. No workspace impact. Awaiting the human's /prm (tier judge).

    🤖 Generated with Claude Code

  2. Jammy2211 commented on Nov 25, 2026

    @Jammy2211
    ContributorAuthor

    Shipped

    Both PRs merged on 2026-11-25 with a green CI verdict:

    Witness: replaying shift 2026-11-24-am put all 9 tasks in exactly one row, PRs in merge order, and validate passed. Independent review round 2 was CLEAN.

    Mind record: complete/2026/11/digest-review-table.md.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions