Skip to content

ISS-14881: Fix vibe review receipts, lane records and fleet monitoring - #454

Merged
shafty023 merged 3 commits into
mainfrom
feat/iss-14881-plain
Dec 2, 2026
Merged

shafty023 merged 3 commits into
mainfrom
feat/iss-14881-plain

Conversation

@shafty023

Copy link
Copy Markdown
Collaborator

What was wrong

This change builds on ISS-14754 (#450), ISS-14883 (#452) and ISS-14874 (#453), all merged; this branch is one commit on main c2d822f.

Three tickets of logged vibe gaps, combined into one change by the operator's ruling: review receipts, lane records and handoff gates (ISS-14881), fleet hosts and monitoring (ISS-14882), and heavy lanes and the recurring worker check (ISS-14827).

What changed

Receipts, records and gates (ISS-14881)

  • A launcher result with no worktree field is accepted on its tree, session and request. A different worktree is still refused. Receipt capture keeps its own copy of each launcher output.
  • Only the writer runs, witnesses and records lanes. A recorded pass needs its run's log and the HEAD and tree captured when it ran, and check flags a record that differs from its witness. run records the result of the lane it ran and keeps no log, except for a replayed workflow job.
  • The web lane requires the browser specs and the Desktop lane the Desktop specs. Every page of the graph result is read.
  • proof-receipts.mjs reads the branch's own tests and runbooks from the merge base.
  • The orphaned-type-member rule reads properties with the parser. Negated property, containment and call matchers count as absence assertions. The Storybook version merge bumps past main when both chose the same version.
  • Codex skill discovery reuses a current list, scales its bound with the host and names a timed-out stage. fleet.sh <program> remote review starts the reviewer from the other host's installed plugin.
  • The frozen render retries a base-only play failure with more time, writes evidence for every blocking story and takes a recorded base-broken story.

Hosts and monitoring (ISS-14882)

  • On a barred host, main-sync validation and the frozen render run on the heavy host against the exact committed tree. A report or result for another head, tree, recipe or transaction is refused.
  • The heavy host's exact-tree-check.mjs imports the existing main-sync bundle. No second bundle ships: main-sync.mjs is 10,694,837 bytes in both editions, 16,257 more than on the ISS-14874 tree this change stands on.
  • The session's writer can write its own decision table and local plan through local-plans.mjs write.
  • The sweep lists and reclaims an orphaned run-state directory. A sweep of one named record touches no other record or orphan, and it takes an orphan by the name status lists.
  • The watcher reports each machine's free Docker disk and stays up through gaps the host's load explains.
  • Frozen story selection ignores type-only imports. A scratch lease and a proof worktree at the exact commit work on the heavy host. fleet.sh remote stop-owned stops only a process that host's slot records name with the caller's owner.

Lanes and worker check (ISS-14827)

  • A barred host refuses a local heavy lane, run or witnessed, with exit 78 and names the remote route. The bar is read from FLEET_HOME, then the chat's program, then the program whose board registers the worktree, so a writer's own chat does not miss it. A refusal before the lane starts, or a run killed midway, is never a pass or a failure. An environmental skip names its timed-out tests and needs the run's witness: the outcomes file is one the witnessed run wrote (Playwright's JSON report, or a list of test ids and statuses), and at least one test passed. A partial report, a suite that did not load, a test that failed or was flaky, and a timeout with any error beside it other than the pending call's own timeout refuse it, and check applies the same rules again.
  • Admission refuses only the same owner, tree and lane command. pre-pr-lanes.mjs run --fleet-where remote replays a workflow job on the heavy host.
  • Test selection includes tests that read a changed file by path. A change to a bundled module needs the build and the committed-dist check.
  • fleet-home.mjs start and resume run a recurring worker check, and a missing, stale or failing heartbeat is flagged. A remote writer's worktree is read on its host, and one that cannot be read is a finding. The check covers unworked tickets, the fix cap and folds.

vibe 1.1.118 in both vibe plugins and vibe-closedloop-provider 1.0.10. Bundles and generated copies were rebuilt with npm run build.

Choices to know about

  • A commit that is already in its base has no changes of its own, so the proof gate asks nothing of it. A checkout behind its base still has its uncommitted tests checked.
  • While a merge of the base is staged but not committed, the merge base is still the old fork point, so the proof gate also asks for the base's own tests. Committing the merge clears it. It asks for more, never less.
  • On a barred host the frozen render's control for a base-only failure is a clean checkout of the pinned base, not a separate CI run of main.
  • The worker check reads owned records, worktrees and process birth times, here and on a remote writer's host, and never a command line. A lane nobody submits leaves no record on the host, so the check cannot see it.
  • A carried scratch lease ends at its recorded TTL on the heavy host, even while the lead writer is active.
  • The owner in a carried scratch lease, and the owner stop-owned is given, are names the caller passes. They show which of this account's own work is meant and prove no identity.
  • A chat and a worktree that no fleet program on the machine knows are not barred, and neither is a program whose board cannot be read.
  • A hand edit of the lane records file can still pass as a row no check compares. A row an earlier version recorded has no recordedBy, and a run row has no witness, so a row edited to look like either is accepted. The records are not signed, so an edited report, passed count or recordedBy is accepted too. A row with a witness is always compared with it, and an environmental skip always needs one.
  • Of the runners' own reports, an environmental skip reads only Playwright's JSON report, up to 8 MiB. Any other lane runs again or goes to CI. A skipped test did not run, so a lane holding a declared skip cannot use an environmental skip. A report left by an earlier run must be moved away first.
  • A runner that leaves another error beside a timeout (a closed page, a disposed context, any expect) is refused an environmental skip. The pending call's own timeout, such as locator.click, is tested on a constructed message and was not captured from a browser. An error written to read exactly like it is accepted: for example an afterEach error worded db.seed: Test timeout of 1ms exceeded. with a Call log line, or one that ends while running and any text. A genuine while setting up "f" timeout is refused, which is stricter than needed. repeatEach and two projects with one name are refused. A single shard, or a merge missing a shard, is accepted, and a background process of the run can write the outcomes file.
  • The bar order is fixed: FLEET_HOME or --fleet-orch naming an unbarred home, or a chat bound to one, wins over the board. A retired writer's board row still bars its worktree. A writer whose machine has neither FLEET_HOME nor a bound chat is not found.
  • A process record in the old form reads as live when its pid was reused within the same second.
  • The local-plans.mjs write hook misses (cd x && node LOCAL-PLANS.mjs) and a renamed relative link after a cd it cannot resolve. The command's own check still refuses a conversation recorded for another session. A conversation no session recorded keeps the earlier check, the working directory. A chat or launched worker recorded in another session is refused in a fresh worktree until vibe new records it there.
  • The hook that stops a launched reviewer or verifier from naming VIBE_LAUNCHED_AGENT or running env -i runs in Claude Code only. timeout, xargs, if, !, nice and exec -cl in front of env -i still pass, so clearing the variable some other way is a known limit. time -l grep -i and env -v grep -i are refused.
  • A worker check pass reads each remote writer in turn, about 10 seconds each and 30 at most. Two loops that replace the same dead lock at the same instant can both run. A lock dated in the future holds until that time passes. A slot holder with no owner or directory file reads as blank. A failing pass whose error differs from the last only in its digits keeps the earlier text, and REMOTE-UNREADABLE with another exit code still wakes the watcher. An empty or self-linked current, or a home that cannot be read at one poll, ends the loop. A board.json whose writers is not an object deletes the earlier findings.
  • A link swapped in while an orphan's images are removed leaves the images gone and the outside file kept.
  • An unreadable e2e locks folder, or one that is no directory, stops the whole sweep, as it did before. Nothing is removed.

Engineering review

Two guard data entries. Each adds one exact value, and both guards still run:

  • review-class-guard-baseline.json adds VIBE_LAUNCHED_AGENT to the configuration environment list. The launcher sets it to the launched role (ISS-14881 AC-4). It turns no feature on and has no value in a standalone run.
  • vibe_generic_mapping.json adds 283e81a06acd8fc69f2c for one line of resolve-core-skill.mjs. The call and client identity are unchanged. Its timeout and its diagnostic changed (ISS-14881 AC-13, AC-14).

Changed assertions

  • test_vibe_session_endings_contract.py: the "diagnostic only" contract is reversed. A barred host's exact-tree report is accepted, and the test is renamed (ISS-14882 AC-1).
  • main-sync.test.ts and main-sync-remote-report.test.ts: the remote-slot cases moved to the second file with their assertions. The public recorder now refuses any detached report, so the before-capture case runs the fleet entry point with the same exit, status and reason, and the 128 KB case reads the fleet output and asserts the recorder's refusal (ISS-14882 AC-1, AC-2).
  • frozen-render-gate.test.mjs: two exact refusals now name the lead-provider route (ISS-14882 AC-12).
  • slot-lock.test.mjs expects the process-start witness (ISS-14882 AC-20). fleet.test.mjs expects heavy-3.free, the release time the worker check reads (ISS-14827 AC-18).
  • pre-pr-lanes.test.mjs: the fleet arguments are matched exactly, with --expected-head, in place of a slice and a pattern (ISS-14881 AC-5, ISS-14827 AC-11). The single spec list is split by lane (ISS-14881 AC-8, AC-9). Recorded passes carry a witness in this file, pre-pr-lanes-unaffected.test.mjs and lane-cache.test.mjs (ISS-14881 AC-5).
  • claude-worker.test.ts: the verifier's prompt says lane records belong to the writer (ISS-14881 AC-4).
  • core-client-process.test.mjs: the total discovery budget is 382,000 ms, which covers the new stage bound (ISS-14881 AC-13).
  • review-gap-prevention.test.mjs: the fixture files holding JSX are .tsx, as the parser needs. Both assertions are unchanged, and two cases are added (ISS-14881 AC-11, AC-12).
  • worker-check.test.mjs (new): a remote writer's worktree is now read on its host, so the assertion that it is not read is replaced by the remote cases (ISS-14827 AC-18).
  • pre-pr-lanes-run-outcomes.test.mjs (new): an existing contract forbids a test that signals itself, so the interrupted-lane fixture signals a child it started. The direct-signal result has its own assertion.
  • Moved: the workflow recipe case of pre-pr-lanes.test.mjs went to pre-pr-lanes-workflow-replay.test.mjs. Every assertion of main's version is kept. A cloud pass now also needs its run log and tree, with cases that refuse each when it differs (ISS-14881 AC-5). Two provider assertions on the shipment went to vibe-closedloop-provider/tests/fleet-shipment.test.mjs unchanged.

How it was tested

Each behavior fix made while this change was finished outside vibe has a test that failed on the unfixed code: the merge-base cases, the named sweep, the single-bundle shipment, the review round and its rechecks, and the two fixes the carry onto ISS-14874 needed (the replay's time limit and its clone's origin).

Exceptions:

  • The three tickets' original code was written in earlier sessions. Their red runs were not repeated or checked here.
  • The fixes for the first lane batch's reds (test expectations, two subprocess reads, the shared Git inventory reader and two guard data rows) answer lanes that were red. They have no new test of their own.
  • The review fixes for the worker check, the owned Docker cleanup and the guards were written and run red on a separate copy of this tree. Those first red runs were not repeated on this one.
  • The worktree lookup that moved to chat-binding.mjs in the carry is meant to change no behavior, so it has no red test. The old and new lookups gave the same result on 756 cases.
  • Instruction and reference text has contract tests only where one already covered it.

One protected-write-guard.test.mjs case fails, here and on the base, when the running chat's id is in the environment. It was run without it; CI has no chat id. watcher.test.mjs fails 27 of 64 cases, here and on the base, while the host's load is over 1.5 per core. It was run with MAX_LOAD_PER_CORE=99.

Every CI job was run on the heavy host, one fresh worktree per lane, on December 1 (CST):

CI job Tree Result
Node Tests (skill scripts) 77c2b83e 333 files, 3,914 tests: 3,913 passed, 1 skipped (the private corpus case, skipped on main too). 6:07 to 6:19 PM
TypeScript (vibe-workers) 77c2b83e typecheck; 47 files, 1,046 tests: 1,045 passed, 1 skipped; dist unchanged after two builds. 6:19 to 6:29 PM
TypeScript (design-inventory, code-review-cost, guided-manual-qa, erd-diagram, vibe-closedloop-build) 77c2b83e typecheck, 393, 43, 50, 35 and 27 tests passed; every dist unchanged after two builds. 6:19 to 6:20 PM
Vibe Eval T0 77c2b83e typecheck, plugin validation, 274 tests and the Codex mirror's 80 passed. 6:20 to 6:22 PM
Plugin Version Bump 8a01fc68 vibe and vibe-closedloop 1.1.118, provider 1.0.10
Lint, Type Check 8a01fc68 Ruff and Pyright clean
Tests 8a01fc68 pytest: 2,892 passed, 3 skipped. 6:22 to 6:26 PM
Plugin Manifest Versions 8a01fc68 typecheck; 62 tests passed

8a01fc68 is the final tree. It differs from 77c2b83e only by six lines in one Python test file, which the Node and TypeScript jobs do not read.

Ticket criteria

These tickets were finished outside vibe at the operator's request, so vibe's own gate did not run on this change: no review receipts, decision table, mutation log or handoff record. Not met, or not shown, for this change:

  • ISS-14882 AC-1, AC-2, AC-9, AC-11, AC-17, AC-18 and AC-20: built and tested with fixtures. The routes were not run end to end on the heavy host.
  • ISS-14882 AC-3: proven with fixtures only. Claude Code's own protection refused the live write.
  • ISS-14882 AC-9: a frozen story's rendered pass cannot be shown in this repository. The first frozen-render run on the application repository will show it.
  • ISS-14881 AC-13 and AC-15: proven with a fake Codex client and a fake ssh route. No reviewer was started on the other host.
  • ISS-14881 AC-16: the report of main's own play covers the pinned base in a clean checkout.
  • ISS-14881 AC-16 to AC-19: no real Storybook play ran.
  • ISS-14827 AC-11 and AC-12: the workflow replay is proven with fixtures.
  • ISS-14827 AC-14: the writer's instruction keeps the required command and its boundary. It no longer says "after a commit" or "before any lane", because an existing contract forbids instructions that tie QA to a commit.
  • ISS-14827 AC-18: the schedule was not shown surviving separate Codex turns on the heavy host.

Not part of this change, though its tree carries them from ISS-14874: the removal of the expired T0 quarantine entry, and the older-Git --no-detach fixture cases.

Risks

  • The main-sync bundle is now loaded by the heavy host's check. Importing it runs no command, and a test pins that, including through a symlinked plugin folder.
  • Lane records written before this change carry no witness and are not flagged.
  • Two test files already past 1,000 lines grew: board.test.mjs (1,018 to 1,055) and proof-receipts.test.mjs (1,369 to 1,439).
  • The heavy host replay runs each workflow job under the job's own timeout-minutes. The cloud's 25 minute limit per lane stays with cloud lanes, so a lane the cloud refuses for its length can run on the heavy host. The test for it failed first with CLOUD_LANE_ROUTED.
  • A replayed step's origin is the heavy host's worktree, so git fetch origin main reads that worktree's own main and needs no key or network. A cloud lane's clone still has the checkout's network origin. Both refusing origins (https and ssh) failed first with exit 128.

Built outside vibe at the operator's request.
| carried onto main c2d822f: the unit tree plus #451's two eval result files and #453's token fixture change, no other difference | 4c87e9ac | cloud-capability-probe.test.mjs 19 passed |
| vibe-bench (tools) lane, CI command | 4c87e9ac | 273 of 274 passed. The red one, batch deadline kills the owned child process group (phase2.test.ts:201), got benchmark-child-cleanup-failed while this laptop's load average was 35; this change touches nothing under tools/. It passed 3 of 3 alone on the same tree and passed in the full lane on #453's identical tools tree |

@shafty023 shafty023 closed this Dec 2, 2026
@shafty023 shafty023 reopened this Dec 2, 2026
GitHub's Ubuntu runner image sets safe.directory = * in /etc/gitconfig, so
every lane step trusted every directory and the AC-7 refusal test exited 0
(main Node Tests run 46925693587). The lane home's .gitconfig now starts
with an empty safe.directory, which resets the list before the checkout
and clone entries.
@shafty023
shafty023 merged commit 2fc9d54 into main Dec 2, 2026
13 checks passed
@shafty023
shafty023 deleted the feat/iss-14881-plain branch December 2, 2026 20:46
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