Skip to content

Acknowledgement-aware Await restart evidence ​

This is a bounded local acceptance checkpoint for issue #1023 and ADR-0079. Both packaged JVM restart cases now pass on the published runtime PR #76 candidate. Upstream owner and coordinated compatibility gates passed and the code corrections are merged. The product's live GitHub/hosting obligations remain separate. The original stopped attempt below is retained as history. CSV remained parked; no cloud resources or spending were used.

Frozen inputs and fixture ​

The consumer was based on product-set-verification integration head 8178eb4585328f74f2d50b40205bac284da45ac6, merged in stack commit 784d0a3a0467116ead35b41509491914e4134572. The local fixture delta adds optional test signing-key continuity, server-configured manual delivery and explicit Java bindings for the authored root/fixture types and their sealed-union alternatives. The random signing-key default and disabled fixture default remain unchanged.

The governed dependency verifier passed against the unchanged published set:

ComponentPublished candidate
Contracts26.10.1-main.66cf17d85540
Compiler26.10.1-main.d972daa918c6
Runtime26.10.1-main.c83c59656ecd
Connectors26.10.1-main.455a4f1829c1
CLI/resolver26.10.1-main.ce3796f82205

Runtime JAR SHA-256: 1015a2c154517e54471e86aaa33d498e69d8b0518a028274e737152370690a0d. Application JAR SHA-256: ebce14166c9307eab3eebe8d33d99661d61cc6db036ee7f5c61f91032815885e. Local-execution JAR SHA-256: 4a32d2769d81770ca941540357af91f89e4c6213b887a5326231e31d2388ef9d.

The application was packaged with the existing Dynamo Command-effect provider; this is a build-time selection. Runtime execution/Await stores used local LocalStack 3.8 Dynamo, while the native file release registry retained the actual application artifact and generated contract. Native admin registration and activation selected restart-proof-2, contract sha256:7040017e8bc556b4db11744e41dea9bc9b282b95d7eebe97c3dffe779a7aa363. Both JVMs used that same package, registry and test-only authentication identity. All service endpoints were loopback and AWS credentials were dummy local values.

Six signer tests and five fixture-resource tests passed. The changed application packaged successfully; the previous 121-test full run predates this fixture delta and must not be presented as a full regression run of these changes.

Observed sequence ​

Execution 40db3e86-abe8-4c2e-9978-6389c222cdf7 reached WAITING_EXTERNAL with an acknowledgement retained in Dynamo before the serving JVM was killed. An external local Java test driver ran the actual checked-in compatible fixture and delivered its signed result to the restarted application's callback endpoint. The driver used only operator-owned test secrets; it did not disable authentication or write completion state directly.

  • Completion returned HTTP 202; its identical duplicate returned 200.
  • The Await record became COMPLETED and retained its typed acknowledgement and DeferredFixtureReport response.
  • Native continuation persisted execution SUCCEEDED, version 5, with a final List<ApplicationResult> payload.
  • Canonically sorted Command-effect rows were byte-identical before and after restart/completion: no new dispatch or effect revision was observed.
  • Result retrieval failed and the browser correctly showed unavailable state; it did not display a successful test result.

An earlier setup attempt exceeded the existing 60-second fixture deadline while the delivery driver was being prepared. It became TIMED_OUT/AWAIT_TIMEOUT and rejected the late callback with HTTP 409. That history was retained. The prepared sequence above ran within the unchanged deadline.

Stop condition and remaining proof ​

The recovered runtime reported:

text
Failed decoding canonical durable payload 'List<ApplicationResult>'
Cannot construct instance of org.productset.app.ApplicationCompletion

Inspection of the actual published runtime bytecode confirmed that the durable plan detects unions at its root runtime class. A list of records takes the normal Jackson reader/writer path; the nested canonical union does not retain a variant envelope. The generated contract does contain the ApplicationCompletion union and its awaitFixtureExecuted variant, but the stored result contains only the variant's fields. The failure is final-result materialisation, not loss of the trusted acknowledgement or failure of its callback join.

The runtime owner must decide recursive canonical union support versus explicit rejection/documentation of unsupported authored bindings. This proof does not establish that application Jackson annotations are required or an adequate fix. No framework repair or annotation workaround was attempted.

The application JVM and dedicated local container were stopped. The packaged application, source delta, driver, logs, release descriptors and consistent table exports are retained in the operator's local evidence directory /Users/mari/.codex/artifacts/await-restart-proof-20261029.

Callback-first process restart was not run after this stop condition. Complete typed result retrieval and both-order acceptance remain open; ADR-0079 stays draft and #1023 stays open. Live provider delivery and product activation remain separate, unproved obligations.

Bounded upstream correction ​

The runtime correction under review makes sealed-union handling local to each release-bound JSON plan. Jackson still traverses records and containers, but a declared sealed union uses the existing discriminator, case, value envelope at nested positions as well as at the root. Generated union discriminators remain validated; authored marker unions use their declared case's simple name. Payloads cannot select an arbitrary class, and canonical type/catalog fingerprints remain mandatory.

Existing ordinary payloads and root union envelopes remain readable. Old nested union JSON that omitted variant identity cannot be reconstructed safely by guessing from its fields. This correction does not repair such stored values or substitute the current release for their pinned release.

Parameterised sealed-union bases and cases, including erased raw generic bases, are rejected explicitly. Generic records and containers containing non-generic sealed unions are covered. The existing canonical presence-value module remains authoritative; union support inside its custom wrapper is not established by this checkpoint.

The acceptance rerun must use the exact published runtime candidate. For the callback-first case, a loopback-only JVM debugger breakpoint can stop entry to AwaitCoordinator.settleCommandDispatch after Command success is durable but before Await acknowledgement settlement. Before killing that JVM, evidence must show a staged callback, retained successful Command output and a non-terminal execution without a final result. Native lease recovery must then replay the recorded acknowledgement without dispatching again and produce a readable result. This is distinct from restarting an already-completed execution.

No successful rerun is claimed by this correction proposal. Both complete restart acceptance cases remain gates until their exact candidate evidence is recorded.

The upstream correction is runtime PR #76, head e7ca413cf4d5e4839c5842926ffad771ac722fb4. The full runtime unit suite passed 2,286 tests before two final review guards; all 42 focused codec, resolver and routing tests passed after those guards. Owner CI, immutable candidate publication and the two packaged restart cases remain pending.

Published-candidate rerun: both restart cases pass ​

Runtime PR #76 head 2480d29c98d683e252da6bdf8a46234a3019a945 produced immutable 26.10.1-pr.76.2480d29c98d6 through owner build 40805339866 and successful publication 40806568596. Owner verification also passed. The application input lock changed only the runtime candidate and its manifest/checksums; all other published components above stayed fixed. Both governed input preparation and verification passed, followed by Dynamo packaging. No source fallback or snapshot alias was used.

Runtime JAR SHA-256: 5ac7e7d968e0a5500dd2974b18bc40d15d3fc116cf28b1a1217baad9f064480c. Application JAR SHA-256: aaa50f1ee7c5097c622a2b2b2edf0a139fca8f6f306346e8170343447326b698. The native release was nested-union-76, with the same compiled contract above. The existing sweep interval was set to one second; the Await deadline and native lease behavior were not weakened.

CaseState at SIGKILLRecovery evidence
Acknowledgement first, execution 86a89086-5350-4f33-8a7f-31e5a5ecff60Await DISPATCHED, acknowledgement persistedSigned completion HTTP 202, duplicate HTTP 200, Await COMPLETED, execution SUCCEEDED, browser result reads the passed fixture report
Callback first, execution 5e5450e8-8a47-44ef-b12a-2f18ec45aca5Await COMPLETION_OBSERVED, staged callback persisted, no Await acknowledgement, Command effect SUCCEEDED with output; execution RUNNING without resultNative expired-lease recovery replays the retained acknowledgement, joins the staged callback, reaches Await COMPLETED and execution SUCCEEDED; browser result reads the passed fixture report

The callback-first JVM was suspended by the loopback JDK debugger at entry to the three-argument AwaitCoordinator.settleCommandDispatch before it was killed. Consistent Dynamo reads establish the cut; this was not a restart of an already completed execution. Both cases used identical packages before and after restart. Normalized complete Command-effect histories are byte-identical across each case, including the original PENDING, DISPATCHING and SUCCEEDED revisions: no provider redispatch or new Command revision occurred.

Raw records, logs, result HTML, assertions, exact dependency lock and manifest, fixture delta and packaged application are retained outside the repository under evidence identifier await-restart-proof-20261029/nested-union-candidate/. The two proof JVMs and isolated LocalStack container were stopped after final consistent state export. CSV stayed parked; no cloud resources or spending.

This closes the two bounded local restart proof cases. It does not establish live GitHub webhook/Actions delivery or hosted product acceptance, and does not migrate historical untagged union payloads. ADR promotion remains gated on the upstream correction's normal downstream checks and merge.

Stop checkpoint ​

Downstream run 40806936872 finished with five successful groups and a failure in Applications and ordinary HA, reported as product shard failed: csv-smoke. This does not invalidate the two recorded restart proofs, but it blocks upstream merge. The underlying cause has not been established by this bounded task. No rerun, unrelated repair or gate waiver was attempted. Runtime #76 remains unmerged and ADR-0079 remains draft.

Bounded downstream continuation ​

The original csv-smoke failure was an opaque multipart upload ID parsed as a CLI option. CSV PR #39 binds the value with --upload-id=value; its complete local FUNCTION upload/worker/S3 proof passed. A subsequent Kafka slow-HA failure returned 1,000 correct results but counted 1,061 Await interactions after a worker HTTP 500 and page retry. Retained worker logs show REST response handling failed with ContextNotActiveException after pipeline completion. The unchanged HA retry passed, establishing an intermittent response-boundary failure rather than a reason to weaken the exact interaction assertion.

Runtime PR #76 also restores the originating Vert.x context before applying its captured CDI thread state. Two regression cases using distinct real Vert.x contexts fail on the previous code and pass after correction; all 13 focused resource tests pass, including cancellation. CodeRabbit's complete two-file review found no issues. The normal exact-head owner and coordinated CI gates still apply. No concurrency limit or interaction-count assertion was changed; CSV pilot operations remain parked.

Final upstream gate — 29 October 2026 ​

Coordinated run 40901480477 passed all six groups on runtime ef3c4ccb09ca386041d7ddde31b17288ea5dd69a and CSV 6de328b411956d527ea66acde61ada8184ffb8e1. Runtime owner verify/build and all CSV owner checks passed; review findings were addressed or explicitly withdrawn/deferred. The REST context correction remains inside the existing runtime adapter boundary; its architecture rule and all 14 focused regression tests pass.

Runtime #76 merged as 8012fae0064132d452bd43ce0d2f59c7e2925728 and CSV #39 merged as 132a13a161fbee730d174331d325f673255ad9ec. This supersedes the earlier stop checkpoints and satisfies the upstream merge gate for ADR-0079. The two restart proofs above retain their exact published candidate provenance; no claim is made that they were rerun against the later merge commit. Normal post-merge snapshot publication is separate asynchronous evidence. CSV pilot operations remain parked; no cloud resources or spending were used.

Diagram