Skip to content

fix(76): fold F25 — pin the emitted-branch rule for both freeze-batch classes - #328

Merged
gtrabanco merged 2 commits into
mainfrom
fix/76-f25-emitted-branch-pin
Oct 27, 2026
Merged

gtrabanco merged 2 commits into
mainfrom
fix/76-f25-emitted-branch-pin

Conversation

@gtrabanco

Copy link
Copy Markdown
Owner

What

Folds the one still-reproducible fix-now row from unit 76's fold ledger: F25.

F14's Route cell demanded both freeze-batch branches be pinned. The table row was pinned; the emitted-branch paragraph was not. Before this PR, editing skills/fold-findings/references/FOLD_PROCESS.md:55-58 so a frozen (product owner present) batch selects REPLAN-ROUTE left node --test scripts/review-loop-discipline.test.mjs green — the rule the loop actually emits was unprotected.

Change

  • scripts/review-loop-discipline.test.mjs: new pin 10e2/#293 F25 reads the pairing out of the emitted-branch paragraph and asserts both halves (frozen (replan present) → REPLAN-ROUTE, frozen (product owner present) → PRODUCT-ROUTE).
  • docs/features/76-lane-product-route/review-findings.md: F25 flipped folded: no → yes in the fix commit; scripts/ledger-provenance.mjs --annotate recorded the · fold marker (CHECK PASS).

No skill prose, schema, or package surface changed; no test weakened.

Gate (RUN, not assumed)

  • node --test scripts/review-loop-discipline.test.mjs → exit 0
  • Mutation check: swap PRODUCT-ROUTE → REPLAN-ROUTE in the pinned sentence → fail 1, AssertionError: a frozen (product owner present) batch must select PRODUCT-ROUTE
  • node scripts/ledger-provenance.mjs docs/features/76-lane-product-route/review-findings.md --check → CHECK PASS (proven-cited 23, open 3)
  • node --test scripts/*.test.mjs → exit 0 — 929 pass / 0 fail

Refs unit 76 (docs/features/76-lane-product-route/), finding F25. No package version bump: the diff touches no skills/** or packages/pi-agentic-workflow/** surface.

Automated written using a AI

… classes

F14's route cell demanded both branches be pinned; only the freeze-batch table
row was, so rewriting the emitted-branch paragraph in
`skills/fold-findings/references/FOLD_PROCESS.md` (product-owner freeze selects
`REPLAN-ROUTE` instead of `PRODUCT-ROUTE`) left
`node --test scripts/review-loop-discipline.test.mjs` green. The new pin reads
the pairing out of that paragraph and asserts both halves, so either swap fails.

Swept surfaces: the F25 ledger row flips `folded: no → yes` in this commit.
Gate: `node --test scripts/*.test.mjs` → exit 0, 929 pass / 0 fail;
`node --test scripts/review-loop-discipline.test.mjs` → exit 0; red on the
mutation (AssertionError: a frozen (product owner present) batch must select
PRODUCT-ROUTE).
@gtrabanco
gtrabanco merged commit 14d6f53 into main Oct 27, 2026
3 checks passed
@gtrabanco
gtrabanco deleted the fix/76-f25-emitted-branch-pin branch October 27, 2026 18:11
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.

1 participant