Skip to content

Recover v2 payload ownership before the first checkpoint - #184

Closed
linroid wants to merge 1 commit into
torrent-v2-07-checkpoint-filesfrom
torrent-v2-07-creation-log
Closed

linroid wants to merge 1 commit into
torrent-v2-07-checkpoint-filesfrom
torrent-v2-07-creation-log

Conversation

@linroid

@linroid linroid commented Sep 12, 2026

Copy link
Copy Markdown
Owner

A v2 store can now recover task-owned files after initialization or a process exit before its first checkpoint. An optional creation-log path in private task state binds records to the full content identity, task, output, selection and mapping policy. Each ownership claim is flushed with a checksum; replay bounds allocations, discards torn final appends and validates the authenticated mapping and current OS identities before adopting paths. Payload availability still requires recheck.

Stacked on #183; advances step 07 of #162. Failed live appends can retry. Restart conservatively preserves paths created before their ownership record was successfully flushed; it never infers ownership from their presence. Logs require one writer and remain outside payload cleanup. Runtime wiring, state admission, log lifecycle/compaction, process-kill and directory-fsync power-loss gates remain pending.

Validation: 392 JVM torrent tests passed, with zero failures/errors/skips, including five new tests for pre-checkpoint recovery, interrupted initialization, torn/corrupt records, failed append/retry, wrong task bindings and replacement preservation. Both pinned-client v1 conformance scenarios, the native-runtime guard and full torrent iOS simulator test-source compilation pass. New-instance/injected-I/O tests do not establish physical crash or mobile lifecycle coverage.

@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:15:57.092435Z 31fa11f 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

  594 files  + 5    594 suites  +5   3m 54s ⏱️ -2s
2 563 tests +15  2 563 ✅ +15  0 💤 ±0  0 ❌ ±0 
3 345 runs  +25  3 345 ✅ +25  0 💤 ±0  0 ❌ ±0 

Results for commit 31fa11f. ± Comparison against base commit 4046cbe.

@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-creation-log 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