Skip to content

Add local synthetic resume store primitives - #68

Merged
andrewperis merged 3 commits into
mainfrom
feat/o08-local-synthetic-store
Nov 8, 2026
Merged

andrewperis merged 3 commits into
mainfrom
feat/o08-local-synthetic-store

Conversation

@andrewperis

@andrewperis andrewperis commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds the first bounded O08 runtime slice: an experimental local-only persistent store and one-shot per-job resume claim primitive for synthetic orchestration tests.

  • Stores canonical lifecycle events and immutable blobs under a caller-owned private local directory.
  • Uses exclusive pending markers, fsync, exact read-back, and fail-closed unknown state after ambiguous writes.
  • Fsyncs the store root and its existing parent, then each child directory and its parent, before initialization returns.
  • Preserves one-shot claims across process instances; no automatic takeover or dispatch after restart.
  • Keeps the runner’s default in-memory store and public package API unchanged.
  • Updates the O08 decision packet with the owner-approved synthetic contract and selected trust boundary.

This slice does not rehydrate or resume an attempt after restart, call a provider during recovery, define a released contract, complete O08, or satisfy O09. Network/shared filesystems are unsupported by contract and are not claimed to be detected. The trust model does not protect against same-account/admin modification.

Validation

  • Node 24: npm test — 978/978; npm run test:comic-manifest-conformance — 326/326.
  • Node 22.23.4: same two suites passed, 978/978 and 326/326.
  • Exact PR head 607f870572906cd6073bd2ca1428011b133c221d: CI run #166, both Node 22 and 24 jobs passed all workflow steps.
  • Offline manifest conformance used its network tripwire; all 31 fixture files remained byte-identical.
  • Bootstrap tests inject filesystem operations to verify root/parent and child/parent fsync order, and fail closed when root or parent fsync fails.

Review note

Draft awaiting independent review of the filesystem trust boundary and crash ambiguity behavior. No schema, fixture, provider behavior, release, or deployment changes are included.

@andrewperis
andrewperis marked this pull request as ready for review November 8, 2026 02:50
@andrewperis
andrewperis merged commit e0d31cf into main Nov 8, 2026
2 checks passed
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 8, 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-08T02:52:56.687171Z 607f870 Draft marked ready
ℹ️ 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.

@andrewperis
andrewperis deleted the feat/o08-local-synthetic-store branch November 8, 2026 02:50
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