Skip to content

Persist authenticated v2 task checkpoints with atomic replacement - #183

Closed
linroid wants to merge 2 commits into
torrent-v2-07-store-recoveryfrom
torrent-v2-07-checkpoint-files
Closed

linroid wants to merge 2 commits into
torrent-v2-07-store-recoveryfrom
torrent-v2-07-checkpoint-files

Conversation

@linroid

@linroid linroid commented Sep 12, 2026

Copy link
Copy Markdown
Owner

Persisting a v2 task snapshot now writes and flushes a unique temporary file before atomic replacement, so failed writes, flushes or replacement preserve the previous complete checkpoint. Loads bound state-file allocation, check the task binding, and authenticate the referenced catalog document before returning recovery inputs. Replacements reject binding changes and regressed counters/generations.

Stacked on #182; advances step 07 of #162. The adapter requires one writer per task in a caller-private directory. TaskStore/engine wiring, durable creation journals, state admission, migration and directory-fsync power-loss recovery remain pending. Cancellation concurrent with replacement may leave the new complete snapshot persisted; recovery reads disk state.

Validation: 387 JVM torrent tests pass with no failures or skips, including reopen/store recovery, missing catalog, malformed/foreign/oversized state, flush failure, replacement failure and retry. Both pinned-client v1 conformance scenarios and the no-native-runtime guard pass. These checks do not establish v2 wire interoperability or full release-gate completion.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 12, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-12T16:02:01.552368Z 36530ec 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.

@github-actions

Copy link
Copy Markdown
Contributor

Test Results

  589 files  + 5    589 suites  +5   3m 56s ⏱️ -3s
2 548 tests +12  2 548 ✅ +12  0 💤 ±0  0 ❌ ±0 
3 320 runs  +20  3 320 ✅ +20  0 💤 ±0  0 ❌ ±0 

Results for commit 4046cbe. ± Comparison against base commit 83d22bd.

@linroid

linroid commented Sep 20, 2026

Copy link
Copy Markdown
Owner Author

Superseded by #234 (V2 catalog, checkpoints and crash recovery) in the consolidated eight-PR stack for #162.

The replacement preserves this PR's code and subsequent fixes; its description links the original head and review discussions. The only additional consolidation fix is the CI-discovered listener cancellation regression, documented on the replacement. All eight replacements have passed their required CI checks.

Closing without merging. This branch and its discussions remain available for reference. Review index: #162 (comment)

@linroid linroid closed this Sep 20, 2026
@linroid
linroid deleted the torrent-v2-07-checkpoint-files branch September 20, 2026 11:13
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