diff --git a/.github/workflows/firewall_gate.yml b/.github/workflows/firewall_gate.yml index f89fa5cf4..27878bafc 100644 --- a/.github/workflows/firewall_gate.yml +++ b/.github/workflows/firewall_gate.yml @@ -364,11 +364,11 @@ jobs: echo "WHY: this PR changes policy/end_at_deliverable.md. Every repo's" echo " AGENTS.md carries the block; the sibling repos are checked out" echo " at their mains, so their copies are stale BY CONSTRUCTION until" - echo " the per-repo regeneration wave (repos_sync.py --write) lands" - echo " after this PR merges, and it cannot have run yet." + echo " .github/workflows/session_hook_propagate.yml runs after this PR" + echo " merges, and it cannot have run yet." echo "STILL ENFORCED: PyAutoMind's own end-at-deliverable block must be" echo " the canonical text (asserted in the step above). The copies are" - echo " the wave's job." + echo " the propagation workflow's job." echo "ON push TO main this leg is never skipped." echo "==============================================================" skip+=(--skip "end-at-deliverable blocks (generated)") diff --git a/.github/workflows/session_hook_propagate.yml b/.github/workflows/session_hook_propagate.yml index bb8cdb4b2..4fd50f6b1 100644 --- a/.github/workflows/session_hook_propagate.yml +++ b/.github/workflows/session_hook_propagate.yml @@ -28,14 +28,20 @@ name: Propagate the canonical hooks # already verified against Codex's PreToolUse payload. The same propagation # run writes `.codex/hooks.json` for those repos and nowhere else. # -# ONE AGENTS.md BLOCK RIDES ALONG: the where-to-file block -# (`policy/where_to_file.md`, PyAutoMind#442). Same justification — the commit is -# a byte copy of text already reviewed on the Mind PR that changed it, and ~48 +# TWO AGENTS.md BLOCKS RIDE ALONG: the where-to-file block +# (`policy/where_to_file.md`, PyAutoMind#442) and the end-at-deliverable block +# (`policy/end_at_deliverable.md`). Same justification — the commit is a byte +# copy of text already reviewed on the Mind PR that changed it, and ~48 # AGENTS.md copies are a PR wave nobody would read (human-approved: bot push). -# The job writes ONLY that block, through `repos_sync.write_filing_blocks` -# (insert the markers under the deliverable block, fill them, touch nothing -# else); the organism-map, history, remote-session and deliverable blocks stay -# out of this job and keep their reviewed regeneration waves. +# The job writes ONLY those blocks, through `repos_sync.write_deliverable_blocks` +# and `repos_sync.write_filing_blocks` (insert the markers, fill them, touch +# nothing else); the organism-map, history and remote-session blocks stay out +# of this job and keep their reviewed regeneration waves. +# +# The deliverable block joined on 2026-11-22 (human-approved: bot push). Left to +# a wave, it was stranded: its policy text changed, no wave ran, and 46 stale +# copies kept Heart YELLOW on three shift briefs in a row, each acknowledged by +# hand, from sessions that could reach only the organs. # # ONE DELETION RIDES ALONG, ON A HUMAN DISPATCH ONLY: the retired CLAUDE.md -> # AGENTS.md pointer (PyAutoMind#482). Claude Code loads AGENTS.md natively now, @@ -73,6 +79,7 @@ on: - "policy/session_start_hook.sh" - "policy/end_at_deliverable_hook.sh" - "policy/where_to_file.md" + - "policy/end_at_deliverable.md" - "repos.yaml" - "scripts/repos_sync.py" - ".github/workflows/session_hook_propagate.yml" @@ -210,7 +217,11 @@ jobs: repos_sync.load_deliverable_hook(mind_root), ) repos_sync.write_codex_hooks(Path("tree"), repos) - # The one AGENTS.md block this job propagates (see the header). + # The two AGENTS.md blocks this job propagates (see the header). The + # deliverable block first: the filing markers go in under it. + repos_sync.write_deliverable_blocks( + Path("tree"), repos, repos_sync.load_deliverable_policy(mind_root), + ) repos_sync.write_filing_blocks( Path("tree"), repos, repos_sync.load_filing_policy(mind_root), ) diff --git a/dashboard.html b/dashboard.html index ebc4bc47a..a03f0d4fb 100644 --- a/dashboard.html +++ b/dashboard.html @@ -333,8 +333,8 @@ Keep track of decisions and outstanding questions throughout this conversation. After changes, report what was recorded, where it lives and what remains to do. Work on GitHub: -- Open Mind repository: https://github.com/PyAutoLabs/PyAutoMind
Last updated 2026-11-22 11:42:30 UTC
↻ Update

- +- Open Mind repository: https://github.com/PyAutoLabs/PyAutoMind
Last updated 2026-11-22 13:48:58 UTC
↻ Update

+

Looks shipped — confirm

2 draft(s) with strong evidence the work already shipped. Held out of the pick lists and the batch planner until closed or dismissed in looks_shipped_dismissed.md.

@@ -630,8 +630,8 @@

Fits a slot (ready to run unattended, cheapest to revie

point-plots-yaml-keys-assistant — filed 2026-10-22 — unblocked 2026-10-23 — cosmos-web-ring-notebook merged (autolens_assistant#161, complete/2026/10/cosmos-web-ring-notebook.md)…

delaunay-nn-numba-remeasure — issue #528 — issued 2026-11-12 — PAUSED 2026-11-12 (HUMAN: release every autolens_profiling claim for the autonomy focus; worktree removed, branch commits already…

-

Backlog

297
-

Lanes: any 244 · ral 30 · local-dev 11 · wsl-data 9 · gpu 1

+

Backlog

298
+

Lanes: any 244 · ral 30 · local-dev 12 · wsl-data 9 · gpu 1

Human review — 2

Simplify reading-queue token management✨ featurepyautomemory

-bug — 57 +bug — 58

Hilbert image mesh: make it depend only on the mask, not…🐛 bugautoarraymediumsupervisedhigh

jax.grad through zero-contour critical curves fails on jax 0.12🐛 bugautogalaxymediumsupervisedhigh

@@ -755,6 +755,7 @@

Fits a slot (ready to run unattended, cheapest to revie + diff --git a/dashboard.md b/dashboard.md index 14b5d9240..b54f42b5d 100644 --- a/dashboard.md +++ b/dashboard.md @@ -13,7 +13,7 @@ | [Epics](#epics) | 25 | | [In flight](#in-flight) | 6 | | [Planned](#planned) | 10 | -| [Backlog](#backlog) | 297 | +| [Backlog](#backlog) | 298 | | [Recent](#recent) | 50 | | [Pending release](#pending-release) | 0 | @@ -1550,7 +1550,7 @@ Use the start-dev skill. draft/feature/autolens_profiling/delaunay_nn_numba_opti ## Backlog -Lanes: any 244 · ral 30 · local-dev 11 · wsl-data 9 · gpu 1 +Lanes: any 244 · ral 30 · local-dev 12 · wsl-data 9 · gpu 1
@@ -1910,7 +1910,7 @@ Use the start-dev skill. draft/feature/pyautomemory/reading-queue-token-manageme
-bug — 57 +bug — 58
📋 Hilbert image mesh: make it depend only on the mask, not… — autoarray · medium · supervised · high @@ -2304,6 +2304,14 @@ Use the start-dev skill. draft/bug/pyautoheart/unit_timing_run_speed_factor_jax.
+
📋 Heart reports 2 generated-hook mismatches on the laptop that no organ-only session… — pyautomind · small · supervised · low + +``` +Use the start-dev skill. draft/bug/pyautomind/generated_hooks_two_mismatches_on_the_laptop.md +``` + +
+
📋 repos_sync tenant-firewall leg scans nested .worktrees/ folders — pyautomind · small · safe · low ``` @@ -3249,7 +3257,7 @@ _Dates come from each task's registry entry — `lifecycle.py dates` reports any
-118 prompt(s) with no `Witness:` — the machine-checkable claim that would make the work reviewable in minutes. Absent, a prompt grades `judge` (a PI's quarter-hour) whatever its size, which is the intended default and not a bug. Nothing derives or backfills a witness — an invented one is plausible prose with nothing behind it — so this is a human writing one, a prompt at a time. +119 prompt(s) with no `Witness:` — the machine-checkable claim that would make the work reviewable in minutes. Absent, a prompt grades `judge` (a PI's quarter-hour) whatever its size, which is the intended default and not a bug. Nothing derives or backfills a witness — an invented one is plausible prose with nothing behind it — so this is a human writing one, a prompt at a time.
Prompts with no witness @@ -3294,7 +3302,7 @@ _Dates come from each task's registry entry — `lifecycle.py dates` reports any - `draft/bug/autoarray/sibson_serial_kernel_loses_allocation_hoisting.md` - `draft/bug/autoarray/sub_slim_indexes_for_pix_index_padding.md` - `draft/bug/autocti_visualization/manifest_rendered_with_stale_in_mains_mode.md` -- _… and 78 more_ +- _… and 79 more_
diff --git a/draft/bug/pyautomind/generated_hooks_two_mismatches_on_the_laptop.md b/draft/bug/pyautomind/generated_hooks_two_mismatches_on_the_laptop.md new file mode 100644 index 000000000..75f2f8b02 --- /dev/null +++ b/draft/bug/pyautomind/generated_hooks_two_mismatches_on_the_laptop.md @@ -0,0 +1,42 @@ +# Heart reports 2 generated-hook mismatches on the laptop that no organ-only session can see + +Type: bug +Target: PyAutoMind +Repos: +- PyAutoMind +Difficulty: small +Autonomy: supervised +Priority: low +Status: draft +Consequence: judge +Review-minutes: 5 +Unattended: never +Lane: local-dev + +## Finding + +Shift briefs 2026-11-19-pm, 2026-11-19-pm2 and 2026-11-20-am were each acknowledged YELLOW on two +reasons. The first, 46 stale end-at-deliverable blocks, is fixed at its cause: the block now rides +`session_hook_propagate.yml` (2026-11-22). The second is still open: + + manifest drift: generated hooks (session-start + end-at-deliverable) — 2 mismatch(es) vs PyAutoMind/repos.yaml + +A cloud session with the five organs checked out reads that leg OK (5 of 50 repos), and the +propagation workflow already pushes the hooks to every repo, so the two are most likely on the +laptop only: a checkout behind its origin, or another session's worktree (the leg reads those +too). + +## Ask + +reproduce before fixing: on the laptop, `python3 PyAutoMind/scripts/repos_sync.py --check --only "generated hooks (session-start + end-at-deliverable)"` names the two. + +1. Name the two and say which case each is. +2. A checkout behind origin: pull it. A stale worktree of a finished task: remove it through the + usual close-out. Anything else (a repo the workflow cannot push to, a hook edited by hand) is + a finding for the human, not a fix to guess at. +3. First check that the first propagation run after 2026-11-22 cleared the 46 deliverable + blocks: the same command with `--only "end-at-deliverable blocks (generated)"` reads OK. + +## Provenance + +[from: orchestrator review 2026-11-22 of shifts 2026-11-19-pm, 2026-11-19-pm2 and 2026-11-20-am] diff --git a/scripts/repos_sync.py b/scripts/repos_sync.py index 38611e62f..cd5f60c14 100644 --- a/scripts/repos_sync.py +++ b/scripts/repos_sync.py @@ -1189,6 +1189,23 @@ def insert_deliverable_markers(root, repos): print(f"inserted deliverable markers: {agents}") +def write_deliverable_blocks(root, repos, policy): + """Insert the deliverable markers and fill the block in every checked-out + repo — and write nothing else. The narrow entry point the propagation + workflow calls (human-approved 2026-11-22: the block rides the bot push). + Until then nothing delivered it: the policy text changed, no regeneration + wave ran, and 46 stale copies kept every shift brief YELLOW.""" + insert_deliverable_markers(root, repos) + for name in repos: + write_block( + repo_checkout(root, name) / "AGENTS.md", + policy, + DELIVERABLE_BEGIN, + DELIVERABLE_END, + required=False, + ) + + def filing_block_excluded(repo_spec): """A manifest entry carrying `filing_block: false` is out of scope for the where-to-file block: neither written nor reported. A recorded exclusion, @@ -3132,18 +3149,11 @@ def main(): # here, so the block lands without thirty hand-edits. (The rule it # carries was broken twice by sessions reasoning past prose; waiting for # each repo to opt in is how the long tail stays unprotected.) - insert_deliverable_markers(root, repos) for name in repos: agents = repo_checkout(root, name) / "AGENTS.md" HISTORY_BLOCK.write(agents, hpol) REMOTE_BLOCK.write(agents, remote) - write_block( - agents, - deliverable, - DELIVERABLE_BEGIN, - DELIVERABLE_END, - required=False, - ) + write_deliverable_blocks(root, repos, deliverable) # The where-to-file block self-installs the same way, one step further # down: under the deliverable block that the loop above just filled. write_filing_blocks(root, repos, filing) diff --git a/state.json b/state.json index 1cd9187db..746a27cb8 100644 --- a/state.json +++ b/state.json @@ -4,7 +4,7 @@ "repo": "PyAutoMind", "status": "red", "headline": "RED \u2014 23 picks \u00b7 6 in flight", - "updated": "2026-11-22T11:42:30Z", + "updated": "2026-11-22T13:48:59Z", "pages_url": "https://pyautolabs.github.io/PyAutoMind/", "items": [ { diff --git a/tests/test_repos_sync_deliverable_block.py b/tests/test_repos_sync_deliverable_block.py index 3e4c9dece..adf5e24cf 100644 --- a/tests/test_repos_sync_deliverable_block.py +++ b/tests/test_repos_sync_deliverable_block.py @@ -195,3 +195,46 @@ def test_the_canonical_hook_ships_beside_the_prose(): hook = MIND / repos_sync.DELIVERABLE_HOOK_FILE assert hook.exists() assert os.access(hook, os.X_OK) + + +# -------------------------------------------------------------------------- +# The rollout: the propagation workflow carries this block (2026-11-22) +# -------------------------------------------------------------------------- +# Left to a hand regeneration wave, the block was stranded: its policy text +# changed, no wave ran, and 46 stale copies kept every shift brief YELLOW. + +def _workflow(): + return (MIND / ".github/workflows/session_hook_propagate.yml").read_text() + + +def test_write_deliverable_blocks_fills_a_stale_copy_and_touches_nothing_else(tmp_path): + stale = (f"# LibAlpha\n\nkeep me\n\n{_history_block()}\n\n" + f"{repos_sync.DELIVERABLE_BEGIN}\nan old rule\n{repos_sync.DELIVERABLE_END}\n\ntail\n") + _repo(tmp_path, "LibAlpha", stale) + _repo(tmp_path, "OrganCore", f"# OrganCore\n\n{_history_block()}\n") # no markers yet + assert len(repos_sync.check_deliverable_blocks(tmp_path, REPOS, CANON)) == 2 + repos_sync.write_deliverable_blocks(tmp_path, REPOS, CANON) + assert repos_sync.check_deliverable_blocks(tmp_path, REPOS, CANON) == [] + text = (tmp_path / "LibAlpha" / "AGENTS.md").read_text() + assert "an old rule" not in text and "keep me" in text and text.endswith("tail\n") + assert _history_block() in text + before = {n: (tmp_path / n / "AGENTS.md").read_text() for n in REPOS} + repos_sync.write_deliverable_blocks(tmp_path, REPOS, CANON) # idempotent + assert before == {n: (tmp_path / n / "AGENTS.md").read_text() for n in REPOS} + + +def test_the_propagation_workflow_triggers_on_the_deliverable_policy(): + import yaml + triggers = yaml.safe_load(_workflow())[True] + assert repos_sync.DELIVERABLE_POLICY_FILE in triggers["push"]["paths"] + + +def test_the_propagation_workflow_writes_the_block_before_the_filing_block(): + """The filing markers are inserted under the deliverable block, so the + deliverable block is written first; `AGENTS.md` is staged in both loops.""" + text = _workflow() + assert "load_deliverable_policy(mind_root)" in text + assert text.index("repos_sync.write_deliverable_blocks(") \ + < text.index("repos_sync.write_filing_blocks(") + staged = [line for line in text.splitlines() if line.strip().startswith("for rel in ")] + assert len(staged) == 2 and all("AGENTS.md" in line for line in staged)