Skip to content

epic: build-chain integrity campaign — five briefs, one sequenced fix #155

Closed

Description

@Jammy2211

Overview

Campaign tracker (epic) for the build-chain integrity fix: five already-filed PyAutoMind briefs — the pre_build failure-class audit, the release version sync-back fork, the Heart readiness evidence-chain audit, the env-profile/validation-gate redesign, and the agent failure-mode mitigations — sequenced as one campaign instead of five disconnected drafts. Each brief stays authoritative for its own problem; this issue tracks phase ordering, cross-dependencies, and completion.

Plan (phases)

  • Phase 0 — small unblockers: fix Heart test-suite state clobber (precondition for Phase 2's method); fix the two Brain path-layout bugs (intake writer + feature-agent parser) — currently queued behind two active PyAutoBrain tasks.
  • Phase 1 — pre_build audit (draft/research/pyautobuild/pre_build_git_add_failure_audit.md): enumerate the git-add failure class, answer "what is pre_build's local commit for", decide the glob bug's fate (fix vs delete).
  • Phase 2 — Heart evidence-chain audit (draft/research/pyautoheart/readiness_evidence_chain_audit.md): per-leg evidence map + what-is-GREEN-worth judgment + nightly-grant recommendation. After Phases 0–1.
  • Phase 3 — env-profile/validation-gate redesign (draft/research/workspaces/env_profile_and_validation_gate_redesign.md): parallelisable with 1–2; reconcile with Phase 2 before finalising.
  • Phase 4 — version-model fork (draft/bug/pyautobuild/release_version_sync_back_to_main.md): decide commit-backs vs mains-authoritative floors with Phases 1–3 evidence; evidence currently leans floors + fixing the exact-pin consumers.
  • Phase 5 — agent failure-mode mitigations (draft/research/pyautobrain/agent_failure_modes_structural_mitigations.md): last, so every earlier phase's errors enlarge the catalogue first.

Phases are issued one at a time as each predecessor nears shipping; the three research briefs are Model: Fable, supervised, design-first.

Detailed implementation plan

Affected Repositories

  • PyAutoBuild (primary / centre of gravity)
  • PyAutoHeart, PyAutoBrain, PyAutoMind, workspaces (per phase)

Branch Survey (2026-07-16)

Repository Current Branch Dirty?
./PyAutoBuild main clean
./PyAutoHeart main clean
./PyAutoBrain main clean (claimed ×2: workspace-agent, wake-up-skill-rename)

Branching: the epic itself carries no branch; each phase gets its own task branch (feature/<phase-task>).

Cross-cutting constraints

Key Files

  • PyAutoMind/active/build_chain_umbrella.md — the umbrella prompt (full decomposition)
  • PyAutoBuild/pre_build.sh, .github/workflows/release.yml — Phases 1, 4
  • PyAutoHeart/heart/checks/test_run.py, heart/readiness.py — Phases 0, 2
  • *_workspace_test/config/build/env_vars*.yaml, PyAutoBuild/autobuild/env_config.py — Phase 3

Original Prompt

Click to expand starting prompt

Build-chain umbrella: one coordinated fix across five filed briefs

Type: bug
Target: PyAutoBuild
Repos:

  • PyAutoBrain
  • PyAutoBuild
  • PyAutoHeart
  • PyAutoMind
  • workspaces
    Difficulty: too-large
    Autonomy: supervised
    Priority: high
    Status: formalised

PyAutoBuild is the centre of gravity. This umbrella combines five already-filed
PyAutoMind draft briefs (plus their filed satellites) that all touch the
build/release/validation chain, so the work is sequenced as a single campaign
instead of five disconnected drafts. The umbrella's job is to sequence and
unify; each component brief remains the authoritative statement of its own
problem — read it in full before starting its phase.

Component briefs

  1. draft/research/pyautobuild/pre_build_git_add_failure_audit.md
    (research, medium, Model: Fable) — pre_build.sh has exactly three
    failure-tolerant sites (:55, :79, :88) and all three are implicated: :79 was
    bug 1 (fatal under set -e, fixed PyAutoBuild#154); :88 is bug 2 (unmatched
    glob → git rejects the whole pathspec list, exit 128 swallowed by || true,
    nothing staged — filed, unfixed); :55 seds a README.rst no workspace has, so
    its || true is permanently load-bearing and a real sed failure is
    indistinguishable from the expected one. Three sites, three hits — the idiom
    is the suspect. Leads with the design question: release.yml regenerates and
    commits the same artifacts on the runner, so what is pre_build's local
    commit for? Redundant (delete it — the Skip EmceePlotter / NautilusPlotter under PYAUTO_TEST_MODE=2 #47 shape) or load-bearing in an
    unexercised case? Find out; do not assume the tidier answer. Known
    unverified claim inside: whether the README bump edits but goes uncommitted.

  2. draft/bug/pyautobuild/release_version_sync_back_to_main.md (bug,
    medium) — a release leaves __version__ stamps and workspace pins frozen on
    main (by design since PyAutoBuild#120's floor model) while Colab URLs move,
    producing recurring "drift" alarms and two hand-done 15-repo bumps. The
    2026-07-15 findings reframe it as an undecided fork: (a) re-add commit-backs
    to main (rejected once — they caused stale CI storms and an org-wide cron
    pause) vs (b) keep mains authoritative and fix the three consumers that
    still read a floor as an exact pin (assistant --check-version, Heart
    version_skew, workspaces without floors). Evidence leans (b). The genuine
    bug either way: after 2026.7.9.1 the floors named the yanked
    2026.7.6.649 — a floor must always name an installable version.

  3. draft/research/pyautoheart/readiness_evidence_chain_audit.md
    (research, large, Model: Fable) — four measured integrity failures in the
    evidence behind Heart's release verdict, found in one half-day: (1) the
    install-verification leg discarded every PASS for months (fixed, PR#77);
    (2) Heart's own test suite clobbers live ~/.pyauto-heart state (filed, see
    satellites); (3) the test_run leg's history is incomparable across runs —
    the smoke surface silently doubled and 30 failures trace to missing
    simulated datasets, possibly downstream of PyAutoBuild#150 dropping
    git add -f dataset/ (unestablished — settle it); (4) the Brain feature
    agent's path parser misroutes post-lifecycle-split prompts (now filed, see
    satellites). Core deliverables: a per-leg evidence map (artifact, writer,
    has the writer ever run, is the leg satisfiable at all) and a judgment on
    what the GREEN gate is worth today — whether the nightly's standing grant
    should stand, narrow, or pause. Its own instruction: read the pre_build
    audit first; findings 3 and 5 intersect it.

  4. draft/research/workspaces/env_profile_and_validation_gate_redesign.md
    (research, large, Model: Fable) — redesign the env-profile + validation-gate
    system after one missing YAML line held nightly-release red for five nights.
    Eight observed failure modes (silent override, vacuous tests,
    hand-maintained lists, release config untestable at PR time, inconsistent
    siblings, silent pattern over-match, duplicated resolvers, layered duplicate
    env reads); already-tried-and-rejected list (smoke_tests.txt promotion,
    static guard, loud warning — killed by adversarial review; writing it down —
    refuted by a note that did not fire one day later). Target: a verified map,
    a design that makes the failure modes structurally hard, an incremental
    migration path, and an answer to the open question: is mode=release
    validating the NumPy path for most of the ag/al surface intended? Guard: do
    NOT copy autofit_workspace_test's DISABLE_JAX reasoning to ag/al, where
    use_jax defaults True and the var is genuinely load-bearing.

  5. draft/research/pyautobrain/agent_failure_modes_structural_mitigations.md
    (research, large, Model: Fable) — the companion asking how to stop the
    agent producing these bugs: fourteen itemised errors from one session in
    five shapes (verification that confirms the assumption ×5, stored belief
    over repo ×2, recall instead of enumeration ×2, unvalidated tools ×3,
    shared-state/convention ×4). Load-bearing findings: a note naming the exact
    trap did not fire one day later (documentation is refuted as a primary
    mechanism); repos.yaml held every hand-listing miss and was never reached
    for. Hypothesis to attack: mechanisms that REFUSED an action caught ~100%,
    mechanisms that INFORMED caught 0%. Deliverables: validated taxonomy, ranked
    structural mitigations demonstrated against the catalogue, honest attack on
    the memory system, an estimate of the unnoticed-error set.

Filed satellites (in scope, referenced by the briefs)

  • draft/bug/pyautoheart/test_suite_clobbers_live_heart_state.md (small,
    HIGH) — brief 3's finding 2, filed separately. Also a precondition:
    brief 3 forbids running Heart's suite against a live state dir until fixed.
  • draft/bug/pyautobuild/root_level_git_add_stages_nothing_on_unmatched_glob.md
    (small) — brief 1's bug 2. Hold the fix: brief 1's design answer may
    delete the line instead of hardening it; fixing it first pre-empts the audit.
  • draft/bug/pyautobrain/feature_agent_path_parser_predates_lifecycle_split.md
    (small, safe) — brief 3's finding 4, filed 2026-07-16 while decomposing this
    umbrella. Sibling: draft/bug/pyautobrain/intake_writes_legacy_layout.md
    (the writer side of the same pre-feat(python-version): support Python 3.9-3.14, first-class 3.12/3.13 #71 assumption).
  • draft/feature/workspaces/minimum_library_version_adoption.md (small, HIGH)
    and draft/feature/pyautoheart/version_skew_floor_rework.md (small) — the
    two floor-model consumers brief 2's fork (b) would execute; the version_skew
    rework depends on the adoption landing first.

Task decomposition (worked out 2026-07-16)

Phase 0 — small unblockers (independent, land first, in any order):

  • Fix test_suite_clobbers_live_heart_state (design-first per its brief:
    prefer run() returning the summary and only the CLI persisting; sweep
    heart/checks/ for siblings; decide deliberately on the autouse fixture).
    Unblocks Phase 2's method safely.
  • Fix intake_writes_legacy_layout + feature_agent_path_parser_... (both
    small/safe Brain fixes; the second is the reader side of the first).

Phase 1 — pre_build audit (brief 1). First research phase: brief 3 says
read it first, and its design answer decides both the fate of the glob bug
(fix vs delete the line) and the #150→missing-datasets question brief 3's
finding 3 hangs on. Output: the failure-class enumeration, the
redundant-vs-load-bearing verdict, a target design (possibly a smaller file).

Phase 2 — Heart evidence-chain audit (brief 3). After Phase 1 (consumes
its #150 verdict) and Phase 0 (safe suite runs). Output: per-leg evidence map,
the what-is-GREEN-worth judgment, and the human decision on the nightly's
standing grant.

Phase 3 — env-profile/validation-gate redesign (brief 4). Parallelisable
with Phases 1–2 (different surface), but reconcile before finalising: its
answer to the ag/al mode=release NumPy question feeds brief 3's "what does the
verdict validate", and both feed the same release chain. Output: design doc +
incremental migration plan.

Phase 4 — version-model fork (brief 2). Decide fork (a)/(b) with Phases
1–3 evidence in hand; current evidence leans (b): land
minimum_library_version_adoption, then version_skew_floor_rework, rework
the assistant --check-version to be source-checkout-aware (or drop equality
for the API-surface hash), enforce "a floor names an installable version"
whichever fork wins, then rewrite or shelve the sync-back prompt with the
reasoning recorded. Never re-add stamp commit-backs without confronting the
#120 history (CI storms, cron pause).

Phase 5 — agent failure-mode mitigations (brief 5). Last, deliberately:
every earlier phase's "Trust nothing here" section, plus any new errors made
during Phases 0–4, are additional catalogue data; the refusals-vs-reminders
hypothesis should be tested against the enlarged set. Its mitigations then
protect all future campaigns.

Cross-cutting constraints (from the briefs; apply to every phase):

Activity

  1. Jammy2211 commented on Jul 16, 2026

    @Jammy2211
    CollaboratorAuthor

    Phase 0a at PR-open: PyAutoLabs/PyAutoHeart#79 (fixes PyAutoLabs/PyAutoHeart#78 — test-suite state clobber + the version_skew sibling found by the empirical sweep). Unblocks Phase 2's method (Heart's suite can now run safely against live state).

    Phase 0b (Brain lifecycle-path fixes) remains queued behind the two active PyAutoBrain claims. Next up once 0a merges: Phase 1, the pre_build audit (draft/research/pyautobuild/pre_build_git_add_failure_audit.md).

  2. Jammy2211 commented on Jul 16, 2026

    @Jammy2211
    CollaboratorAuthor

    Phase 0a MERGED (PyAutoLabs/PyAutoHeart#79; #78 closed). Heart's suite is now safe against live state — Phase 2's method is unblocked.

    Phase 0b update: intake_writes_legacy_layout was fixed independently by a parallel session (record in Mind complete/2026/07/), so 0b reduces to the feature-agent parser fix — still queued behind the PyAutoBrain claims.

    Phase 1 starting: the pre_build git-add failure-class audit (draft/research/pyautobuild/pre_build_git_add_failure_audit.md).

  3. Jammy2211 commented on Jul 16, 2026

    @Jammy2211
    CollaboratorAuthor

    Phase 1 COMPLETE — #157 (audit) + #158 (step 1) + #159 (step 2) all merged; step 3 parked in Mind planned.md on the dataset/config-sweep human decision (audit doc §6). Phase 2 open: PyAutoLabs/PyAutoHeart#83 (readiness evidence-chain audit), task heart-evidence-audit.

  4. Jammy2211 commented on Jul 16, 2026

    @Jammy2211
    CollaboratorAuthor

    Phase 1 step 3 at PR-open (PyAutoBuild#160 — sweep vestige DELETED per human decision) and Phase 2 audit at PR-open (PyAutoLabs/PyAutoHeart#84). Phase 2's finding-3 remediation filed as a new satellite (draft/bug/workspaces/howto_validation_needs_simulator_stage.md). Awaiting human merges of #160 and Heart#84; Phase 2 fix PRs (test_run wiring, verify_install exercise, surface recording, version_skew floor rework → Phase 4) follow behind plan approval.

  5. Jammy2211 commented on Jul 16, 2026

    @Jammy2211
    CollaboratorAuthor

    Phase 0b at PR-open (PyAutoLabs/PyAutoBrain#128 — active/ header fallback; the draft/ half was independently fixed in Brain 9f27c5f this morning) and Phase 2 fix 1 at PR-open (PyAutoLabs/PyAutoHeart#85 — test_run caller-decided fetch_cloud + local/cloud agreement). Phases 0-2 are now fully shipped or awaiting merge; next up: Phase 3 (env-profile/validation-gate redesign brief) and Phase 4 (version-model fork, now holding the version_skew rework + README-pin ownership + floors-name-installable-versions invariant).

  6. Jammy2211 commented on Jul 16, 2026

    @Jammy2211
    CollaboratorAuthor

    Phase 3 design at PR-open (#162) on the human-decided invariant, and Phase 4 fork DECIDED (b) — mains stay authoritative; the decision + 4-task execution programme are recorded in draft/bug/pyautobuild/release_version_sync_back_to_main.md (floors adoption → version_skew rework incl. the installable-floors invariant → assistant --check-version fix → README-pin ownership; serialised on the autolens_workspace claim). Remaining after these: Phase 5 (agent failure-mode mitigations — its catalogue has grown considerably this campaign) and the Phase 2 satellites (verify_install exercise run, surface recording, HowTo* simulator stage).

  7. Jammy2211 commented on Jul 16, 2026

    @Jammy2211
    CollaboratorAuthor

    Phase 5 at PR-open (PyAutoLabs/PyAutoBrain#131 — the capstone doc: validated + enlarged catalogue, sharpened refusals hypothesis, six ranked mitigations as future tasks). Phase 3 step 1 MERGED (#163 — validator live; found 3 dead patterns + 15 vacuous-JAX scripts on first contact). verify_install evidence run in progress (Phase 2 finding C — first post-fix exercise of the leg). Campaign status: no unstarted phases remain; all remaining work is enumerated mechanism/migration tasks.

  8. Jammy2211 commented on Jul 16, 2026

    @Jammy2211
    CollaboratorAuthor

    Campaign phases COMPLETE. 0a ✔ · 0b ✔ · 1 ✔ (audit + 3 steps) · 2 ✔ (audit + fix 1 + verify_install evidence run: finding C closed, verdict dropped a reason) · 3 design ✔ + step 1 ✔ (validator live) · 4 decided (b), programme recorded · 5 ✔ (doc + mitigations 1+2 merged AND wired; the Mind guard produced — and correctly logged — its first false positive on its own author within minutes, fix v1.1 following). 16 merged PRs, 3 new refusal mechanisms live. Remaining = the enumerated queue: Phase 3 steps 2-8, Phase 4's four tasks, Phase 2 satellites, Phase 5 §9 items — each with an owner, blocker, and home. This epic stays open as the queue tracker.

  9. Jammy2211 commented on Jul 17, 2026

    @Jammy2211
    CollaboratorAuthor

    Queue progress (2026-07-17) — three more steps landed, all in free repos:

    • Phase 5 item 3 MERGED (worktree_remove: refuse to strand a merged task's active.md claim PyAutoBrain#134): worktree_remove now refuses to strand a merged task's active.md claim (F4's class). Notable: merge-base --is-ancestor alone would have false-positived on every never-committed worktree — the discriminator is origin/main's first-parent chain; caught pre-ship, pinned by regression tests.
    • Phase 2 §5.3 MERGED (PyAutoBuild#164 + PyAutoHeart#86): report.json + the test_run sidecar now state the surface they measured — the gate finally has a stable denominator.
    • Phase 2 §5.5 (HowTo simulator) DECIDED, not built*: measurement killed the assumed fix. The cloud validation shards one isolated job per scripts/<dir>, so the simulator shard's output is discarded — runner ordering cannot work. Meanwhile aa.util.dataset.should_simulate() is the organism's documented auto-simulation idiom, used in 35 autolens_workspace scripts and 0 HowTo* scripts. Fork (b) decided: adopt the existing lever (~30 tutorials, judgment-tier prose, own session). Two wrong claims in my own filed prompt corrected there.

    Still blocked on claims: Phase 3 step 2 (autolens_workspace_test) and Phase 4's floor adoption (autolens_workspace).

  10. Jammy2211 commented on Jul 17, 2026

    @Jammy2211
    CollaboratorAuthor

    Phase 3 step 2 MERGED (×3 workspace_test repos) — unblocked when the autolens_workspace_test claim freed. 61/61 smoke scripts proved byte-identical resolution old-vs-new; smoke gates green on 3.12+3.13.

    The claim guard shipped this morning (PyAutoBrain#134) had its first true positive — on its author. After merging, worktree_remove refused: active.md still claimed the task while the work was merged. That is F4 exactly — the failure I'd walked into twice and only ever noticed later via a phantom conflict. It forced the completion record and claim release before the worktree could evaporate. The refusals-beat-reminders thesis, demonstrated on the person who wrote it.

    Board now: PyAutoBrain+PyAutoHeart claimed (cti-resurrection-phase3) → Phase 5 items 4-6 blocked; autolens_workspace claimed (jax-joss) → Phase 4 blocked. Free and next: Phase 3 steps 3-6 (PyAutoBuild + workspace_test repos all free).

  11. Jammy2211 commented on Jul 17, 2026

    @Jammy2211
    CollaboratorAuthor

    Big batch landed 2026-07-17: Phase 5 COMPLETE (all 6 items + 2 guard fixes + F5 API-gate — all merged/live), and Phase 3 step 3 MERGED (4-repo scrubbed-base-env set) once the user's subhalo_recovery fix unblocked the autolens smoke gate.

    Campaign state: Phases 0,1,2(+fix1+verify_install+surface),5 complete; Phase 3 steps 1-3 merged (4-8 remain); Phase 4 four tasks + Phase 2 §5.5 HowTo remain. ~30 PRs across the campaign. Refusal mechanisms live: validate_env_profiles, pipefail default, mind_commit_guard (v1.2), worktree stale-claim guard, branch_contribution tool, review adversarial-claim surfacing.

  12. Jammy2211 commented on Jul 17, 2026

    @Jammy2211
    CollaboratorAuthor

    Phase 4 task 1 COMPLETE — version.minimum_library_version: 2026.7.9.1 floor adopted across all 7 workspaces (PRs #97/#134/#288/#20/#23/#32/#28, merged; 6 smoke gates green). Behavioural no-op, and the floor is installable (PyPI-verified: the yanked series is 2026.6.x–2026.7.6.649; 2026.7.9.1 is the first non-yanked post-redesign release) — closing the 'floor must name an installable version' half of the version-drift bug.

    Campaign scorecard: Phases 0,1,2,5 ✔ · Phase 3 steps 1-3 ✔ · Phase 4 task 1 ✔. Remaining: Phase 3 steps 4-8 (step 4 = 15-script JAX triage, needs care), Phase 4 tasks 2-4 (version_skew rework now unblocked → assistant check → README pins + legacy-key removal), Phase 2 §5.5 HowTo (~30 tutorials). ~40 PRs across the campaign; 6 refusal/routing mechanisms live.

  13. Jammy2211 commented on Jul 17, 2026

    @Jammy2211
    CollaboratorAuthor

    Campaign wrapped for pickup. All remaining work is now filed as draft/ prompts and indexed in one place — PyAutoMind/active/build_chain_umbrella.md (a CAMPAIGN STATE + REMAINING PICKUP QUEUE section at the top). It stays in active.md so /morning and /health surface it; each remaining item is a filed prompt /feature (or /start_dev <path>) can pick up.

    Remaining queue, recommended order:

    1. version_skew rework (draft/feature/pyautoheart/version_skew_floor_rework.md) — Phase 4 task 2, UNBLOCKED by floors, do next.
    2. version-model consumers + README pins (draft/feature/pyautobuild/version_model_consumers_and_readme_pins.md) — Phase 4 tasks 3-4.
    3. HowTo should_simulate (draft/bug/workspaces/howto_validation_needs_simulator_stage.md) — Phase 2 §5.5, own session (~30 tutorials).
    4. env-profile steps 4-8 (draft/feature/workspaces/env_profile_migration_steps_4_to_8.md) — step 4 = 15-script JAX triage, release-surface risk.
    5. mind_commit_guard v1.3 (draft/bug/pyautobrain/...) — small; also asks whether the commit-guard earns its keep.

    Note on the hygiene/health ask: neither owns this — their scans are narrow (sweep/deps/docs/crlf/timing; readiness). The honest pickup path is /feature over these prompts, with the umbrella tracked in active.md (surfaced daily by /morning). DONE this campaign: Phases 0,1,2,5 + Ph3 steps 1-3 + Ph4 task 1 (~40 PRs, 6 live refusal mechanisms).

  14. Jammy2211 commented on Jul 22, 2026

    @Jammy2211
    CollaboratorAuthor

    Campaign closed — 2026-07-22

    Six phases, ~45 merged PRs across PyAutoHands, PyAutoHeart, PyAutoBrain, PyAutoMind and 8 workspaces. The umbrellas job was to sequence five separately filed briefs as one campaign; that is done, and the single remaining item has its own issue, so the coordinating entry is retired rather than carried.

    The 2026-07-17 pickup queue, resolved

    The index left on this issue was stale by three items — verified against the code, not the tracker:

    # Item Outcome
    1 version_skew floor rework (Ph4 task 2) DONE (Heart#96) — floor vs newest YYYY.M.D.B tag, UNSATISFIABLE/OK/BAD/UNKNOWN. Re-verified today: 7/7 floors OK against 2026.7.22.1
    2 Version-model consumers + README pins (Ph4 tasks 3-4) DONE — task 3 landed earlier (check_version gates on the API-surface hash, not __version__); legacy workspace_version/version.txt gone (last holdout HowToFit#23); task 4 closed today
    3 HowTo simulator stage (Ph2 §5.5) DONE — HowToLens#39, HowToGalaxy#30; HowToFit needed no change
    4 env-profile steps 4-8 (Ph3) PARKED → owned by #161
    5 mind_commit_guard v1.3 DONE today — PyAutoBrain#148

    Shipped in this closeout

    Phase 4 task 4 — the orphaned README pins are gone (autofit_workspace#107, autofit_workspace_test#64, autolens_workspace_test#198, PyAutoHands#174). The three surviving <pkg> vX lines had no owner since the runner bump was removed (#120/#121) and pre_builds local sed never staged its edit (deleted #158). They were up to ~2 months stale and, after 2026.7.9.1, one named a yanked release. Decision: drop the pins, do not re-own them — a runner-side sed+commit is a new commit-to-main step of exactly the kind #120/#121 removed, maintaining a string no gate reads. The floor (version.minimum_library_version) is the checked signal. pre_builds VERSION variable, dead since #158, was removed with them; the audit doc records this at §1.1.

    mind_commit_guard v1.3 (PyAutoBrain#148). Three live firings, three false positives on its own author, zero confirmed catches — the -- <files> habit did the real work. Narrowed rather than retired: deny only when confident, failing open on compounds, subshells/brace groups, and any non-clause-leading cd. 22/22 tests green plus a live PreToolUse payload check on all three historical FP commands.

    What the campaign learned

    The load-bearing finding is about refusals, and this campaigns own guards demonstrated it in both directions. Brain#134s stale-claim refusal true-positived on its author (blocked a worktree_remove because active.md still claimed a merged task — failure mode F4 exactly) because its precondition is decidable: is this branch merged into origin/mains first-parent chain. mind_commit_guard false-positived three times because its precondition requires modelling an unbounded input space (arbitrary shell). A refusal whose trigger is decidable earns its keep; one that must guess spends its budget on false positives and trains bypass-by-default. Recorded in PyAutoBrain/docs/agent_failure_modes.md mitigation 2.

    Two method traps worth carrying: prove env changes against the real CI env (a synthetic clean-env resolve-diff passed 65/65 while the real env would have gone red), and verify state at the source before working from any tracker — including this one, which was 3/5 stale after five days.

    Residue

    #161 stays open and owns env-profile steps 4-8 alone (prompt PyAutoMind/draft/feature/workspaces/env_profile_migration_steps_4_to_8.md). Steps 1-3 delivered the core value; step 4 is release-surface risk exercised only by the mega-run, so it is deliberately unurgent standalone work.

    Record: PyAutoMind/complete/2026/07/build-chain-umbrella.md. Closing.

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