Repository navigation
Description
Blocked by #4313
Part of #3596. Confirmed at main 63bb400.
createSafetyCollector (packages/ui-server/src/governance/safety-collector.ts:125-161) lets two logical same-tool admissions under one tool-use ID share one operation and one durable result obligation. The first result discharges that obligation and finalizes both exposures. If the other call never reports its result, collection end sees no obligation and retains complete coverage.
A real FULL SQLite writer reproduction admits and allows both WebFetch calls, records only the first result, then ends the collection. REUSED_ID_INTERRUPTED_CALL_REMAINS_A_DURABLE_GAP fails: the expected recording_failed reason is missing. This violates the existing per-input lifecycle/unknown-delivery contract in docs/decisions/session-safety-reviews.md and docs/plans/reviewable-session-safety.md.
Acceptance criteria:
-
Concurrent logical admissions reusing an ID cannot let one result finalize or discharge unknown delivery from another call.
-
Preserve one-call multi-hook/input-revision idempotency; do not count every begin hook as a distinct call.
-
Ambiguous delivery retains an unreviewable exposure and/or durable restrictive coverage gap through collection end and restart.
-
Provide failing-first, restored mutations and actual backend/host ledger proof, without keys or external network.
-
After ci: native Claude tests can escape offline isolation through managed settings #4313 lands, carry PR CONTRACT: retain ambiguous tool delivery and incomplete search evidence #4312's changed retention fixture through its generic qualified OS boundary (PATH,
USE_BUILTIN_RIPGREP, and selective fixture mounts). Positive invocation witnesses must prove the running, duplicate, and retooled cases actually invoked the wrapper; a missing-marker assertion must not pass merely because the executable was unavailable. -
Obtain passing hosted retention qualification for PR CONTRACT: retain ambiguous tool delivery and incomplete search evidence #4312's final head, naming the exact head and complete retention/native test inventory. The baseline retention file is already on main and its guarded baseline belongs to ci: native Claude tests can escape offline isolation through managed settings #4313; this issue qualifies PR CONTRACT: retain ambiguous tool delivery and incomplete search evidence #4312's changed retention implementation and complete changed-head inventory. Preserve the earlier failed receipts separately; no unsealed local installed-native rerun is authorized.
No wire shape or provider history change is intended.
2026-11-20: native qualification is blocked on the offline-harness correction in #4313. No local installed-native Claude runs are permitted on the affected host until that fix lands; hosted native proof remains valid.
2026-11-20 scope correction: the baseline retention file exists at main base 099683923ff8764686c9b92fc2dfb021f1d01f67 (introduced by PR #3827). #4313 owns the generic boundary and existing-main qualification, including that fixture. This issue owns PR #4312's changed retention implementation and complete changed-head qualification. The earlier absent-from-main rationale was incorrect.
Activity
schlessera commentedon Nov 20, 2026
Claim
safety-epic-followups-20261120, branchfix/safety-epic-followups-20261120, dedicated checkout from main63bb400b31403ee319926d38e223711a9bf0e7e1. Failing-first real writer/collector and held-wait backend tests confirm the issue. Shared proof collisions are being checked; proposed implementation avoids #4270/#4273's source files, with any necessary shared contract edit to be coordinated before review.schlessera commentedon Nov 20, 2026
Native qualification for this issue uncovered security p1 #4313: machine-managed Claude settings and a key helper can bypass the test's temporary HOME and scripted loopback endpoint. The native stream returned generated text while the scripted origin received zero requests. Native runs have stopped, and no secret values or deployment details are included in the incident issue.
The earlier passing typecheck/test claims did not cover amended head
accf202cf39c871f9ad4697d1df3eb2df761f546. Before fixes, the whole retention file was 0 pass / 9 fail and the full focused set including it was 228 pass / 9 fail. Two failures were a fixture ReferenceError; seven native premises were not established. The PR body now corrects those receipts. No native passing proof is claimed, and remediation waits for maintainer direction.schlessera commentedon Nov 20, 2026
2026-11-20 source correction: the baseline
packages/ui-server/tests/safety-result-retention.test.tsalready exists at main base099683923ff8764686c9b92fc2dfb021f1d01f67(introduced by PR #3827). The earlier absent-from-main rationale was incorrect. #4313 / PR #4314 must support and qualify that existing baseline through the generic boundary, including its synthetic search-wrapper inputs. #4274 / PR #4312 retain their changed retention implementation and complete changed-head qualification after the boundary lands. No PR #4312 implementation changes were imported into PR #4314. Historical failed receipts remain failed.