Skip to content

ISS-15046: Scope mutation proofs and require full CI before a PR - #458

Merged
shafty023 merged 6 commits into
mainfrom
feat/iss-15046-proof-scope
Dec 3, 2026
Merged

shafty023 merged 6 commits into
mainfrom
feat/iss-15046-proof-scope

Conversation

@shafty023

Copy link
Copy Markdown
Collaborator

Summary

ISS-15046 scopes mutation proofs to tests added or changed after the 2026-12-01 ruling. Push-check previously reported 551 missing proofs on the long-lived ox-14491 branch and 76 on ox-14948 by reaching back to tests written before the ruling. Push-check now also accounts for the branch's pushed head and last accepted proof pass.

Two PRs exposed gaps in pre-PR testing. Claude-plugins #457 went red on 13 tests its writer never ran and missed a provider version bump. Symphony-alpha #10328 merged a shared browser E2E helper and story change after running two targeted specs. The missed spec opened a changed story by its Storybook URL, an edge the graph selector could not see. New PR creation now requires a witnessed passing run of every declared ci.yml job on the exact tree, including each shard and dist check, even for a plain worker in a fleet conversation. Browser E2E coverage includes specs reached through changed stories or added files as well as graph-selected and changed specs. A helper, config, or story change requires the full browser lane when the affected set cannot be determined completely. Targeted receipts must cover every required spec when the set can be narrowed.

The operator's 2026-12-02 hard rule keeps the new readiness checks from blocking in-flight work:

  • Push-check reports missing CI and E2E evidence as advisory warnings for applicable PRs. The mutation-proof check can still refuse proofs owed after the 2026-12-01 cutoff and after the pushed or previously accepted head.
  • Handoff reports missing mutation proof and E2E evidence as warnings. It records an accepted proof pass only when the proofs are complete. Recording targeted E2E runs also warns when more specs or a full lane are owed and preserves the runs already recorded.
  • PR create refuses a new PR when required CI or E2E evidence is missing. For a vibe PR it also checks owed proofs through the handoff witness, using its last accepted proof heads. The new PR readiness checks and proof recheck are bypassed for a fleet row with a PR already recorded. A skip needs a ticketed override quoting the ruling that authorizes it.
  • A registry tracks the checks that can refuse work. Node Tests catches unregistered refusal producers and replays registered checks against a branch shaped like ox-14491. New refusing checks and changes to replayed checks need a replay against real work on the PR's exact tree before PR create, or a ticketed override quoting the ruling. The 26 existing unreplayed checks are on a list that can only shrink.

The source change is in plugins/vibe and the E2E workflow declaration is in plugins/vibe-closedloop-provider. The regenerated ClosedLoop plugin ships the same checks. Vibe and the generated edition are at 1.1.122, and the provider is at 1.0.12.

Test plan

PR head is da484831. The table records the full local workflow runs from a second dev machine, using the commands in .github/workflows/ci.yml. The first block ran at 698c271a. The second block records the reruns at 20438b84.

Job or check Commit Exit Time
plugin-version-bump 698c271a 0 1 s
plugin-manifest-versions 698c271a 0 8 s
lint 698c271a 0 1 s
typecheck 698c271a 0 3 s
test 698c271a 0 182 s
node-tests/1 698c271a 0 402 s
node-tests/2 698c271a 1 946 s
node-tests/3 698c271a 1 326 s
vibe-eval-t0 698c271a 0 163 s
tools-ts/design-inventory 698c271a 0 3 s
tools-ts/code-review-cost 698c271a 0 2 s
tools-ts/guided-manual-qa 698c271a 0 3 s
tools-ts/erd-diagram 698c271a 0 3 s
tools-ts/vibe-workers 698c271a 1 763 s
tools-ts/vibe-workers (rerun) da484831 0 591 s
focused full-CI, PR-create, captured-JSON and board push-proof tests (13) da484831 0 n/a
tools-ts/vibe-closedloop-build 698c271a 0 10 s
ISS-15048 bounded reproduction 698c271a 124 180 s bound
node-tests/3 20438b84 0 368 s
generic+board-push-proof 20438b84 0 n/a
  • Node shard 2 reported two failures. “Supervision adopts the one authoritative live turn” is ISS-15048, which also hangs on main at 2cc2066a. The separate reproduction ran with timeout -k 10s 180s node --test --test-reporter=spec plugins/vibe/skills/cl-sweep/scripts/app-server-worker-session.test.mjs and exited 124. The AC-11/AC-12 remote workflow replay emitted an empty NODE= in the second dev machine's shell. The same replay passed at 698c271a on the first dev machine.
  • Node shard 3 failed generic.test.mjs because the board proof test used a provider-specific fixture name. Commit 20438b84 switched both references to the generic alias, and the full shard rerun passed.
  • Vibe Workers reported a reader-ownership violation and a prototype timeout under load. Commit da484831 fixed reader ownership by routing the committed CI declaration through the shared JSON reader. Both reader-ownership tests passed at that head. The isolated main-sync-prototype.test.ts run passed both cases in 23.07 s wall time, about 11 s per case. The 20 s per-case limit stayed in place. The workflow runs used their original time limits and ran all selected tests.

Focused checks and failing-first evidence

  • Mutation-proof scope and refusal registry. proof-scope.test.mjs, refusing-checks.test.mjs and refusing-check-replay.test.mjs cover the cutoff, accepted heads, the replay receipt, and an ox-14491-shaped history with 495 inherited cases, a main sync and one new case. At 2cc2066a, 4 of 7 guard cases failed and the old proof check asked for 551 proofs at the accepted head. The candidate stopped asking for those 551 and still asked for the one new case. The receipt test requires new PR creation to reject a modified registered check until a real-work replay covers the exact tree.
  • Full CI and PR create. full-ci-check.test.mjs covers focused runs, exact-tree witnesses, ticketed overrides and the report of jobs still owed. pr-create-full-ci.test.mjs expected a refusal for a plain worker with partial runs and failed at 2cc2066a because PR create allowed it. The new check reported all 15 jobs as unrun on ISS-15038: Run Claude cloud validation at fleet scale #457's two control heads, including the version bump and all three Node shards. The combined focused PR-create, CI, proof, registry, replay and E2E gate run passed 43 tests.
  • E2E scope and receipts. e2e-requirement.test.mjs captured the #10328 miss, where import-based selection omitted the spec that opens the changed story by URL. It also covers helper fallback, unresolved story IDs, added files, changed specs and targeted receipts. The targeted-record regression first hit FULL-E2E-REQUIRED; with the fix the record is retained and warns about the remaining coverage. All 15 requirement tests passed. e2e-gate-check.test.mjs first produced two push refusals on the post-cutoff PR fixture, then passed with warnings and no push refusal. New PR creation still refuses missing required coverage or a PR body that lists it as unrun without an authorized skip.
  • Handoff and board. The handoff regression first refused missing proof, then passed with a warning, kept the previous proof pass and verified the new-PR proof check. Nine handoff member and scope cases passed. The board covers focused runs before PR creation, post-cutoff push warnings, and the older-PR cutoff. A sandboxed node --test plugins/vibe/skills/fleet-orchestrator/scripts/board-push-proof.test.mjs stopped all nine cases at fixture setup because process inspection returned EPERM. The failure reproduced at 20438b84, and a baseline board fixture also reproduced it at 2cc2066a. The combined generic and board proof rerun on a second dev machine passed.
  • Generic fixture and reader ownership. The pre-fix generic.test.mjs scan found two references to the provider-specific fixture. Both tests passed after 20438b84, and the full generic scan found zero hits. Before da484831, npm --prefix tools/vibe-workers test -- src/reader-ownership.test.ts found the direct command-output parse in full-ci-check.mjs. Both tests passed after the fix. The full-CI, E2E, registry, replay and shared JSON-reader group passed 25 tests, the PR-create guard passed 11, and the built ClosedLoop full-CI smoke listed owed jobs and cleared them after passing receipts were recorded.
  • Workflow contracts and source checks. The CI job-shape and word-count checks passed 15 tests, including the 15-job matrix expansion. PR Facts passed 12 shard and multi-proof assertions, and the main positive control passed at 8b97ed04. The change added 18 instruction words. The inventory, review import and E2E requirement group passed 32 tests. The three focused Python contracts for takeover, ISS-13321 and WS8 passed 38 tests along with targeted Ruff and Pyright checks. Both npm --prefix tools/vibe-workers run build and npm --prefix tools/vibe-closedloop-build run build passed. The latter rebuilt 518 files. The ClosedLoop build's test suite passed 27 tests. Both tools' typechecks, the generic runtime scan, syntax checks, source/generated byte comparison and git diff --check passed.
  • Bounded and sandboxed diagnostic runs. An earlier 36-file focused run reported 427 passes, 37 failures and one cancellation, including the stale handoff assertion fixed before the nine-case rerun. The cloud-only run had 159 passes and 30 process-identity failures. The board-wide run had one pass and 60 setup failures. The combined guard and pre-PR lane run had 92 passes and six failures. Five involved denied process inspection and AC-10 reported the killed fixture runner as still running on both the candidate and 2cc2066a. A bounded lane retry had 48 passes, five failures and one cancelled file. A bounded CI-shape, word-count and PR Facts run had 15 passes and one cancelled file. The completed focused runs above report the checks that were rerun separately.

Real-work replay

The archived read-only replay compared 2cc2066a with the merged working tree using the same 68 captured targets. Counts are by row. Inactive rows, unavailable checkouts and probe errors are outside the compared counts. There were 24 unavailable local checkouts, including the #457 control. Two merge-guard comparisons used archived PR metadata at matching heads. An old provider binding prevented three ox-14948 comparisons, and four board probes lacked PR-base evidence.

Stop Compared Base refused Candidate refused Newly refused New reasons Candidate warnings
push-check 2 1 1 0 0 1
turn start 44 0 0 0 0 0
handoff 1 0 0 0 0 1
PR create 1 1 1 0 0 0
merge guard 2 2 2 0 0 0
board 40 39 39 0 0 1
pre-pr targeted record 1 0 0 0 0 1

The live replay compared 698c271a against 2cc2066a across 13 live rows on all five boards (vibe-bugs, flamingo-fleet, iss-13430-push-ready, iss-13483-evidence-resend and iss-13754-writer-skill-migration). It found zero new refusals and zero new refusal reasons at all seven stops. Handoff refusals dropped from one to zero. Merge guard and targeted-record replay had zero eligible comparisons in the live sample.

stop compared baseRefused candidateRefused newlyRefused newReasons
push-check 1 1 1 0 0
turn start 7 0 0 0 0
handoff 1 1 0 0 0
PR create 1 1 1 0 0
merge guard 0 0 0 0 0
board 7 6 6 0 0
pre-pr targeted record 0 0 0 0 0

The per-test mutation-proof counts at push-check went from 551 to 0 on ox-14491 and 76 to 26 on ox-14948. These count proof findings within a branch. The replay tables count rows.

Breaking changes

New PR creation now requires passing full CI evidence, any required browser E2E evidence and any owed proof receipts. Existing PR rows can continue with readiness warnings as described above. No migration is required.

Flags

None.

DONE

…usal replays

The mutation-proof gate asks only about cases changed after the ruling and
after the branch's accepted heads, so a long-lived branch is no longer
refused for tests it pushed before the check existed.

PR create and push-check now refuse a head until every declared CI job has
a witnessed full run of its tree, and push-check asks this only of rows with
no PR yet or a PR opened after the 9:10 PM ruling. Every check that can
refuse a branch is registered and replayed against a long-lived branch shape
in Node Tests, and PR create wants a replay against real worktrees for a
change to one. The handoff gate, push-check and PR create refuse a required
e2e spec with no run receipt, read from the merge base, with the specs the
provider-declared workflow says the change owes.
- Preserve the seven-slot cloud validation queue and three Node shards.
- Keep the 1.1.122 readiness rules, provider recipes and release notes.
- Check missing proof warnings at handoff and refusals at PR creation.

Testing: Rebuilt both outputs, ran focused tests and compared the
archived fleet replay against 2cc2066.
Risks: Laptop 2 must verify the process-dependent tests and live replay.
The fleet-orchestrator generic scan rejected the repository-named import. The test now imports a provider-neutral alias for the same fixture remote.
…reader

reader-ownership (AC-082, AC-083) rejected a direct parse of captured git output in full-ci-check.mjs. The generated ClosedLoop copy is rebuilt from the generic source.
@shafty023
shafty023 merged commit 2cf65af into main Dec 3, 2026
15 checks passed
@shafty023
shafty023 deleted the feat/iss-15046-proof-scope branch December 3, 2026 07:50
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