Repository navigation
feat: pre-dispatch premise check + Lane backfill (M1.3 slices 1–2, #608) - #609
Merged
Merged
Conversation
) Slice 1 — `batch premise <draft>` (agents/conductors/batch/_premise.py): on a fresh main of each named repo it checks the backticked paths and functions a draft names, reads its issue/PR states, and compares a title's smoke-duration claim with the Heart's timing record. Returns ok | obsolete | unknown with evidence (exit 1 on obsolete); for a bug it says what to reproduce. Renames and newly-gitignored paths count as moved, not gone; a path with no history is work to create, never evidence. No LLM call. - `--write-verified` stamps `Verified: <date> <sha> (<repo>)` on an ok draft, inside a shift as a new `set-header` ledger op (one Mind writer), else in place, uncommitted. `shift_ledger.py set-header` queues the same op. - First step of the shift worker template: stop and report on obsolete. - `batch brief --check` warns on each named task whose premise is obsolete (`--no-premise` skips it). - `--at <ISO>` replays main as it stood. Witness (a): both obsolete tasks of the 2026-11-06-pm shift (delaunay_smoke_300s_cap, gallery_runner_missing_tiers) return obsolete at shift dispatch time; fixtures under tests/fixtures/premise/. Slice 2 — `bin/lane_backfill.py`: proposes a Lane: for every lane-less draft in the planner pool (now `_batch.planner_pool`, the plan gates factored out as `pool_gate`), with the matching words as evidence; `--apply [--from table]` writes the headers, honouring a human's edits. Intake's LANE_SIGNALS learn A100, HPC, /mnt/ral (ral), bare GPU (gpu), any /mnt/<drive> (wsl-data) and "private data" (local-dev); the backfill reads the same table. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Must-fix:
- premise: a deleted root-level file no longer matches a nested path the
draft means to create (`token.endswith("/" + p)` only when p has a dir).
- premise: a function missing from the declared repos is looked up in every
library/organ checkout before it can be gone, and only a removal after the
draft's Filed: (else Issued:, else 180 days) counts as evidence.
- intake lane signals: RAL, A100, HPC and GPU count only in the title, the
Witness: line or a requirement phrase ("on the A100", "submit ... to RAL",
"needs a GPU"); mechanisms (SLURM, sbatch, --gres, /mnt paths, CUDA,
private data) count anywhere; negated mentions never count. The proposal
table gains a `why` column (infer_lane_reason).
Also:
- `batch premise` degrades any crash to `unknown (check failed: ...)`, exit
0; the worker template says to proceed on unknown and report it.
- set-header on a draft no longer on main is skipped with a note, not raised.
- the digest shows an `obsolete <why>` .done as "obsolete (premise check)".
- lane_backfill --apply with nothing left exits 0, "nothing to apply".
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Programme M1.3, slices 1–2 (findings MIND-2 and MIND-3). Closes #608. Slice 3, fail closed, is M2.3 and waits on a human ruling.
Slice 1, a premise check:
pyauto-brain batch premise <draft>(agents/conductors/batch/_premise.py). It makes no LLM call and uses boundedgh.ok/obsolete/unknownwith evidence. Onlyobsoleteexits 1; a crash givesunknown.obsolete.batch brief --checkwarns on each obsolete pick.--write-verifiedstampsVerified:through a newset-headerone-Mind-writer op, which skips a draft that has moved.obsolete (premise check): <why>.Slice 2, a Lane backfill:
bin/lane_backfill.pyproposes a Lane for each pool draft that lacks one, with the evidence and awhy, and has an idempotent--apply. Intake learns requirement-context lane words.Test plan
delaunay_smoke_300s_capis obsolete: the newest Heart smoke runs took 8.6–15.9 s against the ≥300 s claim.gallery_runner_missing_tiersis obsolete:scripts/gallery/gallery_run.shwas removed in 0dc177b on 2026-09-30.remove_eden_packaging_tooling: eden.yaml deleted on 11-10).pytest tests/: 1718 passed, 1 skipped. The known environmental failuretest_grouped_organ_consumersremains. 56 new tests.gpufrom a bare GPU mention, a crash reading as obsolete, a ledger wedge on a moved draft, and the digest wording. All are fixed in 02bb592. Re-review: CLEAN, with the pool re-swept.Heart RED override (development only)
Authorization from the live human at the programme block gate, 2026-11-12: "Override + merge both". This authorizes the development-only RED override for #608 and gives the merge command, conditional on every required check being green within the turn.
Heart verdict RED (
pyauto-heart readiness, ts 2026-11-12T19:30:21Z). The current RED reasons, verbatim: "PyAutoNerves: 2 commit(s) behind origin"; "PyAutoArray: 2 commit(s) behind origin"; "PyAutoGalaxy: 10 commit(s) behind origin"; "PyAutoLens: on branch feature/last-imaging-features-review (not main)"; "PyAutoLens: 3 uncommitted source change(s)"; "PyAutoCTI: 2 commit(s) behind origin"; "install verification FAILED (testpypi; checks F)"; "release validation FAILED (stage integrate)"None of these is in the repos this PR changes. Branch gates passed: tests, review CLEAN, smoke not applicable. This PR does not fix Heart, and Heart stays RED for release.
Tier: glance. Merge mode: auto-merge on green if the Witness passes, with a post-merge summary. A RED override additionally needs the human's merge command, which was given in the same turn.
🤖 Generated with Claude Code