Skip to content

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

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/batch-collect-leftovers
Nov 22, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/batch-collect-leftovers

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Summary

batch collect was retired in #701; this removes what in PyAutoBrain still served only the records it wrote. Decided per item:

  1. Shift box (_status.py) — the review button, the Pages packet URL and the batches/packets/<slot>.html path keyed on collected: are removed (nothing stamps collected: now; shift briefs never carry it). dev_status loses its pages argument and the reviewable/url/packet keys; _intake._batch_status stops deriving the Pages URL for it. Kept: the member rows and their outcome reading. Shift briefs carry no - members: block today, but the box heading's N in progress · N awaiting review counts come from those rows, and removing them would change how a live shift brief renders (the witness says it must not). Whether to drop the counts and member rows too is left for a human call.
  2. Planner (_batch.py) — read_outcomes, previous_carried, the now-unused newest_slot/batch_records, plan(carried=, carried_from=) and the "Carried in" line are removed. Shift briefs have no - outcomes: block, so the line never printed for them. The plan's --json loses two keys that were always [] / the newest slot name for shift briefs (carried, carried_from); nothing else read them.
  3. Digest packet (_orchestrator._write_packet) — the 506-line review-packet stylesheet packet.css is deleted; the opt-in digest.html (one <pre>) now carries a few lines of inline style (light/dark ground and ink, a centred column, wrapped mono <pre>). packet: yes still writes the page.

Closes #706

API Changes

Internal to the batch conductor and the Mind dashboard renderer.
See full details below.

Test Plan

  • Witness, before (main 428fe1e) vs after, against one fixed PyAutoMind snapshot: the full intake dashboard (md + html) is byte-identical; the Shift box is byte-identical for a current shift brief reviewed, live and ended, and for an old record next to a live brief; batch plan text output is identical against the snapshot (newest record a shift brief). An old record carrying collected: and - outcomes: (with a carried member) renders without error (box loses only its "Review packet" line) and batch plan exits 0 with it as the newest record (no "Carried in" line).
  • Tests updated: the collected-button tests become old-record-renders tests (test_batch_status.py, test_intake_dashboard.py); previous_carried/newest_slot tests replaced by a plan-past-an-old-record test (test_batch_records.py); test_batch_plan.py drops the carried test; test_orchestrator_steering.py call updated.
  • Full suite: 2448 passed, 1 skipped.
  • Heart dev-ship gate for PyAutoBrain read STALE only because Heart's CI poll hit a TLS timeout on this network; main CI green by gh run list. Organism door: YELLOW (unrelated euclid_assistant reason).
Full API Changes (for automation & release notes)

Removed

  • _status.review_url(pages, slot); the reviewable, url, packet keys of the status reading
  • _batch.read_outcomes(text), _batch.previous_carried(mind), _batch.newest_slot(mind), _batch.batch_records(mind)
  • _batch.plan(..., carried=, carried_from=) parameters and the carried / carried_from decision keys
  • agents/conductors/batch/packet.css

Changed

  • _status.dev_status(slot, keys, members, review_exists) — no pages argument

Added

  • _orchestrator.PACKET_STYLE — the digest page's inline style

Migration

  • Before: dev_status(slot, keys, members, review_exists, pages)
  • After: dev_status(slot, keys, members, review_exists)

Generated by the PyAutoLabs agent workflow.

🤖 Generated with Claude Code

…e status box

- _status: drop the collected:-keyed review button, Pages packet URL and
  packet path (nothing stamps collected: now); dev_status loses pages.
  Member rows and their outcome reading stay: the box heading's counts
  come from them, and a live shift brief must render unchanged.
- _batch: remove read_outcomes, previous_carried, newest_slot,
  batch_records and plan's carried/carried_from; no 'Carried in' line.
- _orchestrator: the opt-in digest.html (one <pre>) gets a short inline
  style; delete the 506-line packet.css review-packet stylesheet.

Old records carrying collected: or - outcomes: still render and plan.

Closes #706

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

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

1 participant