HF-11: preserve result completion after lost-ACK recovery #2

Merged
gmackie merged 2 commits from hf-11-verify-synthetic-order-replay-and-result-correlation into main 2026-10-29 18:44:43 +00:00
Owner

An early synthetic LIS result can be imported while delivery is outcome_unknown. Recovery then resets its completed order to accepted; inbox deduplication prevents later polls from completing it. Reproduced twice on ForgeGraph main.

Preserve the imported completion in the existing lease-fenced acceptance transaction. The regression covers early release, a fresh Worker isolate, original destination identity, repeated requests/polls, and one report/chart/inbox/event. Intake, schemas, API responses and HF-8's cursor are unchanged.

Validation: npm run check (45 tests), npm run check:forge, all 6 console scenarios, and full local celld crash/restart/bucket-recovery acceptance pass. A stale-lease probe confirms acceptance writes stay fenced. npm run smoke:workerd fails at process-group termination with kill EPERM under Node 22 and 24; the unchanged main dispatch reproduces the same failure. That gate remains unresolved.

HF-11: https://tasks.gmac.io/gmacko/issue/HF-11
Delivery target: production. Deployment/health evidence is still required; the app currently has no ForgeGraph stage/assigned repository host, and HF-2 tracks Cloudflare evidence synchronization. No production database operations were performed.

Created with GPT-6.1 Sol in T3 Code.

An early synthetic LIS result can be imported while delivery is `outcome_unknown`. Recovery then resets its completed order to `accepted`; inbox deduplication prevents later polls from completing it. Reproduced twice on ForgeGraph main. Preserve the imported completion in the existing lease-fenced acceptance transaction. The regression covers early release, a fresh Worker isolate, original destination identity, repeated requests/polls, and one report/chart/inbox/event. Intake, schemas, API responses and HF-8's cursor are unchanged. Validation: `npm run check` (45 tests), `npm run check:forge`, all 6 console scenarios, and full local celld crash/restart/bucket-recovery acceptance pass. A stale-lease probe confirms acceptance writes stay fenced. `npm run smoke:workerd` fails at process-group termination with `kill EPERM` under Node 22 and 24; the unchanged main dispatch reproduces the same failure. That gate remains unresolved. HF-11: https://tasks.gmac.io/gmacko/issue/HF-11 Delivery target: production. Deployment/health evidence is still required; the app currently has no ForgeGraph stage/assigned repository host, and HF-2 tracks Cloudflare evidence synchronization. No production database operations were performed. Created with GPT-6.1 Sol in T3 Code.
HF-11: preserve imported result completion during delivery recovery
All checks were successful
Scaffold conformance / test (push) Successful in 2m28s
Scaffold conformance / test (pull_request) Successful in 8m51s
4dbd1bcfb6
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
gmackie/hospital-fabric!2
No description provided.