Repository navigation
Proof-or-Stop v0.3.407 — Quorum Smoke Temporary Directory Isolation
Overview
This release fixes quorum-smoke startup when the shared temporary parent contains a separately registered sibling worktree. It narrows the overlap decision to the actual writable temporary base while deliberately preserving the protected-mutation guard's fail-closed contract for every repository write.
The release contains 41 commits across 11 files, with 485 insertions and 261 deletions since v0.3.406. The package and repository CLI both report version 0.3.407.
Problem
The quorum smoke had two interacting operational symptoms:
- A host tool-logging hook could append to a gitignored activity log while the smoke was running. The protected-mutation guard treated that write as a mutation, so a measured run with all 73 cases passing was still reported as failed.
- The ambient temporary-parent check refused startup whenever that parent contained any registered worktree. A managed review worktree under the shared temporary directory therefore blocked the smoke even though a fresh
mkdtempchild could not write into that sibling.
The second condition was overly broad. The existence of a protected sibling below a shared parent does not make a separately allocated child overlap that sibling.
Delivered repair
The temporary-parent rule now refuses only when the parent is inside, or equal to, a protected root. A shared parent that merely contains a registered sibling worktree is allowed.
The newly created owned temporary base is still checked against every protected root in both directions. An inherited owned base retains the same two-way check. A base inside a protected worktree is still refused before the quorum case runs.
No source, Story, evidence, configuration, worktree, or activity-log path becomes writable through this repair.
Safety decision: activity-log exemption withdrawn
Several candidate revisions attempted to tolerate append-only writes to known activity logs. Independent reviews repeatedly found that content and metadata snapshots could not provide operation-level attribution under coalesced filesystem notifications. The discovered failure classes included symlink replacement, byte-identical inode replacement, permission or ownership changes, in-place rewrites, truncate-and-restore followed by append, duplicate observations, and suffix removal after the last observation.
Those exemption implementations were removed before release. The final behavior remains intentionally fail-closed:
- Every observed write inside a protected root is a mutation.
- An append to a gitignored activity log is still a mutation.
- Look-alike filenames receive no special treatment.
- No snapshot, prefix, inode, metadata, or growth-based content exemption exists in the released guard.
The original host-logging conflict is addressed at its source by keeping host bookkeeping outside the repository while that worktree is validating. Hosts with an older hook need to run proof-or-stop init --upgrade before expecting that operational conflict to disappear.
Before and after
| Area | Before | After |
|---|---|---|
| Shared temporary parent | Any registered worktree below the parent caused startup refusal. | A protected sibling is allowed when the new owned base is disjoint. |
| Temporary parent inside a worktree | Refused. | Still refused. |
| Allocated temporary base | Could not be reached in the safe sibling scenario because the parent was rejected first. | Allocated under the parent and checked against every protected root in both directions. |
| Repository writes | Every observed protected-root write was a mutation. | Every observed protected-root write remains a mutation. |
| Activity-log appends | Failed the guard. | Still fail the guard; host logging must occur outside the repository. |
| Security posture | Fail-closed, but with an overly broad parent-level overlap check. | Fail-closed with the overlap decision applied to the actual isolated base. |
Verification evidence
The exact tagged commit a8768173bc7488aa8fdc3ef45f1ed295cbd924c8 was rebuilt and rechecked before publication.
npm run buildpassed, including the full-suite build-binding check.node scripts/verify-quorum-smoke-host-activity-temp-overlap.mjspassed all ten final-scope checks.- A parent containing a registered sibling worktree allocated an owned base outside that sibling.
- The sibling-parent fixture produced the same quorum case outcome as the ordinary-temp baseline.
- A temporary parent inside the protected worktree was refused and allocated no base.
- Activity-log appends remained dirty with three unowned paths.
- A tracked source write remained dirty.
- A no-write control remained clean.
- Static edge validation emitted
U18_STATIC_PASSwith zero needs-review rows, zero nested rows, zero unexpanded commands, 17 intentionally skipped rows, and 1,676 reviewed exceptions. - The remote pre-push gate rebuilt the main package and passed
tsc --noEmitfor lab, graph, utils, and main during both branch and tag publication.
A separate machine observation reached 73 of 73 quorum cases before the host activity append caused final guard refusal. That observation demonstrates the original operational symptom; it is not claimed as a passing release run.
Independent review outcome
Repeated independent review prevented a broad activity-log exception from shipping. The accepted final scope contains only the sibling temporary-parent repair, a regression that pins the fail-closed write contract, and comments that describe the released behavior rather than the withdrawn design.
The final regression intentionally compares the sibling-temp result with an ordinary-temp baseline in a fixture repository. Both fixture case outcomes are FAIL for an unrelated missing product context; equality proves the temporary-directory decision, not end-to-end quorum success.
Known limitations
- The filesystem watcher can be delayed or coalesce notifications on a busy host. The final policy does not convert uncertain observed writes into clean results.
- Host hooks that still write activity logs inside the repository can continue to fail the protected-mutation guard and should be upgraded.
- The release does not claim an operation-level append attribution mechanism.
- The full repository test matrix was not run. Passing claims are limited to the exact build, final-scope regression, static scan, and pre-push type checks listed above.
- Three separately reported managed-asset synchronization items remain outside this reviewed release.
- This maintenance release does not assert formal completion of the broader benchmark Story.
Upgrade verification
After updating, run:
proof-or-stop --versionThe expected result is Proof-or-Stop 0.3.407.