Skip to content

test: bind early session recovery checks to durable admission (closes #875) - #876

Merged
joshrotenberg merged 2 commits into
mainfrom
test/875-durable-recovery-admission
Oct 12, 2026
Merged

joshrotenberg merged 2 commits into
mainfrom
test/875-durable-recovery-admission

Conversation

@joshrotenberg

@joshrotenberg joshrotenberg commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Early-session recovery can replay a durable message before its original admission callback runs. That valid ordering returns delivered, which the old recovery test rejected before checking whether the continuation actually recovered.

The eight-case matrix now covers Claude and Codex, timeout and worker termination, and ordinary and forced replay-first admission. It binds the continuation to its durable receipt and exact provider job, verifies the old agent exits and the first job is terminal, then checks one replacement job, a new generation, the retained conversation arc and native handle, and completed message state. The forced ordering uses the real replay path with guaranteed coordinator cleanup.

Validation: focused seeds 1, 12345, 777 and the originally observed 718792; all five local gates; independent review. CI must pass on the updated PR head before merge.

These are deterministic fake-provider tests. They do not establish native subprocess settlement; the fixture explicitly records terminal job state. Production behavior and authority are unchanged.

Closes #875.

@joshrotenberg
joshrotenberg marked this pull request as ready for review October 12, 2026 01:55
@joshrotenberg
joshrotenberg merged commit 0f2aa2c into main Oct 12, 2026
4 checks passed
@joshrotenberg
joshrotenberg deleted the test/875-durable-recovery-admission branch October 12, 2026 01:55
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.

test: bind early session recovery checks to durable admission

1 participant