Skip to content

ui-server: retain unknown delivery for concurrent reused tool IDs #4274

Open

Description

@schlessera

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:

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

  1. added
    type: fixSomething is broken and must behave the way it is documented.
    area: ui-serverHono app factory: turn coordinator, auth, session catalog, routes, cron.
    priority: p2Wanted, not scheduled. Pulled in when a milestone has room.
    agent-readyContext and acceptance criteria are complete enough for an agent to take this unattended.
    on Nov 20, 2026
  2. self-assigned this
    on Nov 20, 2026
  3. added this to the 0.45.0 milestone on Nov 20, 2026
  4. schlessera commented on Nov 20, 2026

    @schlessera
    OwnerAuthor

    Claim safety-epic-followups-20261120, branch fix/safety-epic-followups-20261120, dedicated checkout from main 63bb400b31403ee319926d38e223711a9bf0e7e1. 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.

  5. schlessera commented on Nov 20, 2026

    @schlessera
    OwnerAuthor

    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.

  6. added
    blockedWaiting on another issue or an upstream dependency. Say which in the body.
    on Nov 20, 2026
  7. schlessera commented on Nov 20, 2026

    @schlessera
    OwnerAuthor

    2026-11-20 source correction: the baseline packages/ui-server/tests/safety-result-retention.test.ts already exists at main base 099683923ff8764686c9b92fc2dfb021f1d01f67 (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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

agent-readyContext and acceptance criteria are complete enough for an agent to take this unattended.area: ui-serverHono app factory: turn coordinator, auth, session catalog, routes, cron.blockedWaiting on another issue or an upstream dependency. Say which in the body.priority: p2Wanted, not scheduled. Pulled in when a milestone has room.type: fixSomething is broken and must behave the way it is documented.

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions