Skip to content

Torrent v2 4/8: V2 catalog, checkpoints and crash recovery - #234

Merged
linroid merged 1 commit into
torrent-v2-stack-03-storagefrom
torrent-v2-stack-04-recovery
Sep 20, 2026
Merged

linroid merged 1 commit into
torrent-v2-stack-03-storagefrom
torrent-v2-stack-04-recovery

Conversation

@linroid

@linroid linroid commented Sep 20, 2026 •

Copy link
Copy Markdown
Owner

Persists authenticated content and task-bound ownership checkpoints with atomic publication and creation journals. Recovery tests cover abrupt process exits. Directory fsync and physical power-loss guarantees remain roadmap work.

Part 4/8 of the consolidated stack for #162. Review and merge bottom-up. This PR targets torrent-v2-stack-03-storage; its diff contains only this capability group.

Preservation and validation

Consolidates #180–#185. The consolidation snapshot matches original boundary 9f23c0db exactly. Fresh CI then exposed a listener shutdown race: canceled accept() could escape as a socket exception. Foundation commit 2fdddd39 fixes cancellation classification and adds a deterministic regression test. This inherited fix and its test are the only file differences from that original boundary; all other contents are preserved. Original branches and discussions are retained.

Fresh CI runs on this replacement PR; historical checks and approvals are not transferred. The remaining production roadmap and release gates are still open.

Original PRs and frozen heads

PR Original head
#180 — Persist authenticated v2 content in a bounded catalog c1fc31fa
#181 — Encode v2 checkpoints with catalog binding and compact ownership references 5b56b86d
#182 — Recover v2 store ownership from task-bound catalog checkpoints 83d22bd5
#183 — Persist authenticated v2 task checkpoints with atomic replacement 4046cbe0
#184 — Recover v2 payload ownership before the first checkpoint 31fa11f5
#185 — Verify v2 recovery across abrupt process exits 9f23c0db

Review carry-forward

These original discussions and their responses remain linked for review. Their unresolved status is preserved; consolidation does not imply reviewer approval.

Consolidated stack

  1. Torrent v2 1/8: Contracts, verification infrastructure and resource limits #231 — Contracts, verification infrastructure and resource limits
  2. Torrent v2 2/8: V2 identity, metainfo and Merkle integrity #232 — V2 identity, metainfo and Merkle integrity
  3. Torrent v2 3/8: V2 layout and verified storage #233 — V2 layout and verified storage
  4. Torrent v2 4/8: V2 catalog, checkpoints and crash recovery #234 — V2 catalog, checkpoints and crash recovery
  5. Torrent v2 5/8: V2 handshake, hash exchange and bounded transport #235 — V2 handshake, hash exchange and bounded transport
  6. Torrent v2 6/8: V2 scheduling and download execution #236 — V2 scheduling and download execution
  7. Torrent v2 7/8: Tracker lifecycle, editing and discovery privacy #237 — Tracker lifecycle, editing and discovery privacy
  8. Torrent v2 8/8: V2 engine lifecycle, rate controls and restart recovery #238 — V2 engine lifecycle, rate controls and restart recovery

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 20, 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-20T07:44:14.915705Z 401404c 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.

Consolidates #180–#185, preserving source 9f23c0d.
Includes the foundation listener cancellation regression fix discovered by consolidation CI.
@github-actions

Copy link
Copy Markdown
Contributor

Test Results

  602 files    602 suites   4m 0s ⏱️
2 570 tests 2 570 ✅ 0 💤 0 ❌
3 362 runs  3 362 ✅ 0 💤 0 ❌

Results for commit 4ab6514.

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