Skip to content

Prove synthetic resume across subprocess crashes - #71

Merged
andrewperis merged 3 commits into
mainfrom
feat/o08-subprocess-resume-proof
Nov 9, 2026
Merged

andrewperis merged 3 commits into
mainfrom
feat/o08-subprocess-resume-proof

Conversation

@andrewperis

@andrewperis andrewperis commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds synthetic subprocess acceptance tests for the existing no-context writable-resume path. A parent test seeds the pinned Comic Manifest fixture in a temporary local store; fresh Node child processes verify:

  • a new process completes attempt two with original attempt linkage;
  • two processes contend for the durable claim while one pauses in preflight, and only one second dispatch occurs;
  • process death after claim leaves no takeover;
  • process death after the durable dispatch marker causes no mock execution or replay; and
  • process death after one mock execution and a durable but unlinked provider-outcome blob leaves the operation quarantined without replay.

Every child worker records each actual adapter execute() entry in a shared per-execution log, including normal restarts. The test also closes its ready-file watcher on every completion path and rechecks file existence after watcher registration. Documentation records the acceptance evidence and corrects stale scope language. No runtime code changed.

Scope

Synthetic no-context local filesystem behavior only. These process exits do not simulate power loss or establish guarantees for other filesystems, production storage, or generic exactly-once delivery. No live provider, production data, context-enabled recovery, O09 work, release, deployment, or issue closure. O08 remains open.

Validation at eb20d8a

  • Node 24: npm test — 1,018/1,018 passed.
  • Node 24: npm run test:comic-manifest-conformance — 326/326 passed; offline network tripwire active; 31 fixture files byte-identical.
  • Node 22: npm test — 1,018/1,018 passed.
  • Node 22: npm run test:comic-manifest-conformance — 326/326 passed; offline network tripwire active; 31 fixture files byte-identical.
  • Subprocess restart/crash matrix: 5/5 passed.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-09T03:49:37.505825Z d184d1b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d184d1bbb6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

});
assert.equal(crashed.code, 74);
assert.throws(() => readFileSync(effectMarker));
const restarted = await runWorker(seeded, 'normal', { DSS_O08_PROVIDER_EFFECT_MARKER: effectMarker });

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Instrument every worker that receives the effect marker

When this crash test runs either the crash-after-dispatch-marker worker or the restarted normal worker, DSS_O08_PROVIDER_EFFECT_MARKER is ignored because the recording adapter is installed only for crash-after-outcome-blob. A provider invocation before the dispatch-marker crash or during restart would therefore leave the marker unchanged and these assertions would still pass, so the claimed no-effect/no-replay behavior is not actually tested. Install the recording adapter whenever the marker variable is supplied, while keeping the forced outcome-blob exit mode-specific.

Useful? React with 👍 / 👎.

@andrewperis
andrewperis merged commit 31fd4d0 into main Nov 9, 2026
2 checks passed
@andrewperis
andrewperis deleted the feat/o08-subprocess-resume-proof branch November 9, 2026 17:20
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.

1 participant