Skip to content

refactor: remove what batch collect left behind in the planner and status box #706

Closed

Description

@Jammy2211

Overview

batch collect was retired in PyAutoBrain#701, but three pieces of PyAutoBrain still serve only records that collect wrote: the dashboard Shift box's review button / packet link keyed on collected:, the planner's "Carried in" line read from an - outcomes: block, and the 506-line review-packet stylesheet inlined into the opt-in digest.html (a single <pre>). This removes what shift briefs do not need, keeping old records rendering without error.

Plan

  • Shift box (_status.py): drop the collected: reading — the review button, the batches/packets/<slot>.html path and the Pages URL — since nothing stamps collected: now. Keep the member rows and their outcome reading: the box's heading counts come from them, and the witness requires a current shift brief to render unchanged (flagged for the human).
  • Planner (_batch.py): remove read_outcomes, previous_carried and the "Carried in" line (and the always-empty carried/carried_from plan keys); shift briefs carry no - outcomes: block.
  • Digest packet (_orchestrator._write_packet): replace the inlined 506-line packet.css with a few lines of inline style for the one <pre> (light/dark), and delete packet.css. packet: yes still writes digest.html.
  • Witness: render the dashboard + box for current shift briefs (reviewed, live, ended) and an old collected record, and batch plan against a fixed Mind snapshot, before and after; update tests; run the suite.
  • Tier + merge mode: effective level: supervised; merge mode: auto-merge on green (this session: PR opened, merge left to the human).
Detailed implementation plan

Affected Repositories

  • PyAutoBrain (primary)

Branch Survey

Repository Current Branch Dirty?
./organs/PyAutoBrain main clean

Suggested branch: feature/batch-collect-leftovers

Implementation Steps

  1. agents/conductors/batch/_status.py: remove review_url, the reviewable/url/packet keys from _status, the pages parameter of dev_status, and the "Review this batch →" / "Review packet:" branches of render_html/render_md; to_review/active/badge drop their reviewable terms. Update the module docstring.
  2. agents/conductors/intake/_intake.py _batch_status: stop passing pages; docstring no longer mentions collect.
  3. agents/conductors/batch/_batch.py: delete read_outcomes, previous_carried, plan(carried=, carried_from=), the JSON keys and the "Carried in" print; main stops calling it.
  4. agents/conductors/batch/_orchestrator.py _write_packet: a short inline stylesheet; delete agents/conductors/batch/packet.css.
  5. Tests: tests/test_batch_status.py (drop the collected-button tests, keep closure/ordering/live), tests/test_batch_records.py (drop previous_carried), plus an old-record test: a record carrying collected: and - outcomes: still renders and plan still runs.
  6. Witness harness before/after; pytest tests/.

Key Files

  • agents/conductors/batch/_status.py, _batch.py, _orchestrator.py, packet.css
  • agents/conductors/intake/_intake.py
  • tests/test_batch_status.py, tests/test_batch_records.py

Original Prompt

Click to expand starting prompt

Remove what batch collect left behind in the planner and the status…

Type: refactor
Target: PyAutoBrain
Repos:

  • PyAutoBrain
    Difficulty: medium
    Autonomy: supervised
    Priority: normal
    Status: formalised
    Consequence: notify
    Witness: the intake dashboard renders the same for a current shift brief before and after; a record carrying collected: or - outcomes: still renders without error; batch plan output is unchanged against a Mind whose newest record is a shift brief.
    Review-minutes: 0
    Unattended: ready
    Lane: any

Remove what batch collect left behind in the planner and the status box

Type: refactor
Target: PyAutoBrain
Lane: any

batch collect was retired in PyAutoBrain#701, but three things in @PyAutoBrain still serve only records that collect wrote. (1) agents/conductors/batch/_status.py: the dashboard's batch status box shows its review button and a batches/packets/<slot>.html link when the record has collected:, which nothing stamps now; dev_status also reads member outcome words collect wrote. (2) agents/conductors/batch/_batch.py: previous_carried and read_outcomes feed plan a "Carried in" line from an - outcomes: block only collect wrote. (3) agents/conductors/batch/packet.css (506 lines, the review packet's stylesheet) is inlined whole into the opt-in digest.html (_orchestrator._write_packet), which is one <pre>. Decide per item whether shift briefs need it; remove what they do not, and keep old records rendering without error. This changes dashboard and plan output for old records, so it is not behaviour-preserving for them.

Witness: the intake dashboard renders the same for a current shift brief before and after; a record carrying collected: or - outcomes: still renders without error; batch plan output is unchanged against a Mind whose newest record is a shift brief.

Activity

  1. Jammy2211 commented on Nov 22, 2026

    @Jammy2211
    ContributorAuthor

    Library PR opened: #707. Witness met against one fixed Mind snapshot: dashboard and Shift box byte-identical for current shift briefs (reviewed / live / ended), batch plan text identical; old records with collected: / - outcomes: render and plan without error. Kept for a human call: member rows + outcome reading in the Shift box (they drive the heading counts a live brief shows). Plan --json drops the always-empty carried/carried_from keys. Heart: door YELLOW (unrelated euclid_assistant reason); dev-ship readiness STALE only from a TLS timeout in Heart's CI poll, main green by gh run list. Full suite 2448 passed, 1 skipped. Merge left to the human (/prm).

  2. Jammy2211 commented on Nov 22, 2026

    @Jammy2211
    ContributorAuthor

    Shipped

    Merged in #707 (2026-11-22). Removed what batch collect left behind: the shift box review button / Pages packet URL keyed on collected:, the planner's carried-outcome reading and "Carried in" line, and the 506-line packet.css (the opt-in digest.html now carries a few lines of inline style).

    Human decisions recorded: the shift box member rows (and the in-progress/awaiting-review counts they feed) are kept; the carried / carried_from keys are dropped from batch plan --json; Heart STALE at ship time was this network's TLS timeouts only, accepted.

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