Repository navigation
Description
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 thecollected:reading — the review button, thebatches/packets/<slot>.htmlpath and the Pages URL — since nothing stampscollected: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): removeread_outcomes,previous_carriedand the "Carried in" line (and the always-emptycarried/carried_fromplan keys); shift briefs carry no- outcomes:block. - Digest packet (
_orchestrator._write_packet): replace the inlined 506-linepacket.csswith a few lines of inline style for the one<pre>(light/dark), and deletepacket.css.packet: yesstill writesdigest.html. - Witness: render the dashboard + box for current shift briefs (reviewed, live, ended) and an old collected record, and
batch planagainst 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
agents/conductors/batch/_status.py: removereview_url, thereviewable/url/packetkeys from_status, thepagesparameter ofdev_status, and the "Review this batch →" / "Review packet:" branches ofrender_html/render_md;to_review/active/badgedrop theirreviewableterms. Update the module docstring.agents/conductors/intake/_intake.py_batch_status: stop passingpages; docstring no longer mentionscollect.agents/conductors/batch/_batch.py: deleteread_outcomes,previous_carried,plan(carried=, carried_from=), the JSON keys and the "Carried in" print;mainstops calling it.agents/conductors/batch/_orchestrator.py_write_packet: a short inline stylesheet; deleteagents/conductors/batch/packet.css.- Tests:
tests/test_batch_status.py(drop the collected-button tests, keep closure/ordering/live),tests/test_batch_records.py(dropprevious_carried), plus an old-record test: a record carryingcollected:and- outcomes:still renders andplanstill runs. - Witness harness before/after;
pytest tests/.
Key Files
agents/conductors/batch/_status.py,_batch.py,_orchestrator.py,packet.cssagents/conductors/intake/_intake.pytests/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 carryingcollected:or- outcomes:still renders without error;batch planoutput 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
Jammy2211 commentedon Nov 22, 2026
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 plantext identical; old records withcollected:/- 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--jsondrops the always-emptycarried/carried_fromkeys. Heart: door YELLOW (unrelated euclid_assistant reason); dev-ship readiness STALE only from a TLS timeout in Heart's CI poll, main green bygh run list. Full suite 2448 passed, 1 skipped. Merge left to the human (/prm).Jammy2211 commentedon Nov 22, 2026
Shipped
Merged in #707 (2026-11-22). Removed what
batch collectleft behind: the shift box review button / Pages packet URL keyed oncollected:, the planner's carried-outcome reading and "Carried in" line, and the 506-linepacket.css(the opt-indigest.htmlnow 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_fromkeys are dropped frombatch plan --json; Heart STALE at ship time was this network's TLS timeouts only, accepted.