Repository navigation
feat(batch): the collect verb — score members into the review packet - #333
Conversation
`pyauto-brain batch collect` reads a batch record, scores every dev member on
six legs (pr · diff · checks · green · witness · adversary — PASS / FAIL /
UNOBSERVABLE), gives it one health word (FAILED · NOT-DELIVERED · SUSPECT ·
HEALTHY · PENDING · MERGED, failures first) and emits the packet report.
`--apply` writes the standalone HTML packet per batches/packets/TEMPLATE.md,
refreshed in place by member section id with every other section
byte-identical, and stamps the record (collected: once, refreshed: per apply,
delivered:, packet:). A submitted review freezes the packet and closes the
record — fill, never overwrite; once closed no member line changes.
Offline and stdlib-only by default: a web session hands PR state over as
--evidence <json> (gathered with the GitHub MCP tools); --fetch is the laptop's
opt-in gh pr view per PR. No evidence is UNOBSERVABLE, never delivered. A
self-run adversary leg is FAIL (AUTONOMY leg 5). KINDS = {"dev": …} is the
extension point Cortex phase 5 registers the science member kind on.
Doctrine: batch AGENTS.md (the collect recipe), skills/batch/batch.md,
batch.sh, the registry description + regenerated verb row. 32 tests.
Closes #332.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011GD9gpi75AT2SgymYQyGiT
|
Autonomous-ship gate — leg 5, independent adversary (AUTONOMY.md, review faculty step 2b). Reader: Sonnet (a different model from the Opus implementer and the Fable architect). Surface: Witness — falsified and holds, on all three legs, by running it:
Adversarial inputs tried: an outcome with seven Dispositions (one per lifted claim):
Verdict: CLEAN. No must-fix findings. Tests: 776 passed ( Generated by Claude Code |
CI's tenant-firewall leg flagged the packet renderer's literal Mind home and the test fixtures' repo names. `_mind_home` now resolves the owner from the Mind checkout's origin remote, then its README, and otherwise returns nothing — the packet's Commit-on-GitHub button disables itself with a hint rather than the renderer guessing a home. Test fixtures use neutral names. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011GD9gpi75AT2SgymYQyGiT
Closes #332. PyAutoMind prompt:
active/batch_conductor.md(two-slot-batching phase 2;queue.md#8 — "next verb = collect"). Scope: thecollectverb only —sliceis re-filed as its own prompt at close-out.Summary
pyauto-brain batch collect— the review-side half of the batch conductor. It reads a batch record, scores every dev member on six legs (pr·diff·checks·green·witness·adversary, each PASS / FAIL / UNOBSERVABLE), gives it one health word (FAILED · NOT-DELIVERED · SUSPECT · HEALTHY · PENDING · MERGED, failures first, not-delivered named loudly at the top), and emits the packet report.--applywrites the standalone HTML review packet perbatches/packets/TEMPLATE.md— refreshed in place by member section id, every other member's markup byte-identical — and stamps the record (collected:once,refreshed:per apply,delivered: n/m,packet:). A submitted review (batches/reviews/<slot>.md) freezes the packet and closes the record (reviewed-at:,review-minutes-actual:,review:— fill, never overwrite).Offline and stdlib-only by default. It has no GitHub of its own: a web session gathers PR state with the GitHub MCP tools and passes
--evidence <json>;--fetchis the laptop's opt-ingh pr viewper PR. No evidence is UNOBSERVABLE, never delivered — the offline default invents nothing. A self-run adversary leg is FAIL (AUTONOMY leg 5).Built kind-neutral:
KINDS = {"dev": …}is the extension point Cortex phase 5 uses to register the science member kind over the existing cortex conductor'sscore_phase/member_block— nothing rebuilt there.Changes
agents/conductors/batch/_batch.py— thecollectverb (record reader, three-passactive.mdmatch, evidence loader /--fetch, legs + health, kind-neutral scored member, report /--json, packet renderer withpyauto:*sentinels and depth-aware section splicing, line-surgical record update rehearsed on a copy, the close leg, exit codes 0/1/2/4).planunchanged.agents/conductors/batch/packet.css,packet.js— the packet assets, ported from the 2026-08-31-pm reference and trimmed to what the template names;%%TOKEN%%substitution.agents/conductors/batch/AGENTS.md,batch.sh,skills/batch/batch.md,bin/pyauto-brain(+ regeneratedAGENTS.mdverb row) — the collect recipe, the two-lane evidence rule, the close leg; "Not built yet" is down toslice.tests/test_batch_collect.py— 32 tests.API Changes
None to library code. New conductor verb
batch collectand its flags (--slot --evidence --fetch --apply --out --stamp);batch planbehaviour unchanged (collect-only flags onplanare refused, rc 2).Verification
python3 -m pytest -q -n auto tests→ 776 passed (744 before).batch collect --mind ../PyAutoMind --slot 2026-08-31-pm→ nine members SUSPECT (six UNOBSERVABLE legs, no evidence), the two science member lines reported as notes, exit 1, Mind tree untouched.<!DOCTYPE html>, own[hidden]reset, one<style>, one<script>, six sentinel regions), parses; a second--applydiffers by exactly the refreshed stamp. Against the archived (sentinel-less) pm packet the refresh degrades to member splices plus a note, zero deletions, second apply byte-identical.refreshed:line —PR OPENED AT REVIEW (…)outcomes, the prosedelivered:and the annotatedreviewed-at:all survive (two under-protections found in review and fixed before this PR).active.mdentry.🤖 Generated with Claude Code
https://claude.ai/code/session_011GD9gpi75AT2SgymYQyGiT
Generated by Claude Code