Skip to content

Encode v2 checkpoints with catalog binding and compact ownership references - #181

Closed
linroid wants to merge 1 commit into
torrent-v2-07-catalogfrom
torrent-v2-07-checkpoint
Closed

linroid wants to merge 1 commit into
torrent-v2-07-catalogfrom
torrent-v2-07-checkpoint

Conversation

@linroid

@linroid linroid commented Sep 12, 2026

Copy link
Copy Markdown
Owner

Add a version 2 checkpoint codec referencing authenticated catalog content. It retains both identities for hybrids, task/output binding, mapping version, explicit selections, layout/selection generations, counters and a piece-bitfield hint. Compact prior-parent ownership rows avoid repeating long path prefixes.

Structural decoding rejects malformed references, duplicate/traversing paths, invalid UTF-8, negative counters and unknown versions. After catalog resolution, content validation binds selections, ownership paths and bitfield geometry to the authenticated document. Version 1 and native state continue through their existing decoders; hints expose no committed-progress value.

Stack: based on #180, advancing #162 step 07. This is the codec/binding layer; expected task/root checks, OS identity recovery, TaskStore publication, ownership journals, v1 migration, streaming large state and runtime resume integration remain pending.

Validation: all 378 local torrent tests, both existing pinned-client v1 conformance scenarios and the native-runtime guard pass. Five checkpoint tests cover compact ownership round-trips, hybrid/default selections, content mismatch, malformed state and legacy compatibility. The inherited catalog race fix uses no-replace publication and authenticates competing targets.

@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-12T15:36:07.255128Z b9aaa3b 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

github-actions Bot commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

Test Results

  579 files  + 5    579 suites  +5   3m 58s ⏱️ ±0s
2 521 tests +15  2 521 ✅ +15  0 💤 ±0  0 ❌ ±0 
3 275 runs  +25  3 275 ✅ +25  0 💤 ±0  0 ❌ ±0 

Results for commit 5b56b86. ± Comparison against base commit c1fc31f.

♻️ This comment has been updated with latest results.

@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 branch September 20, 2026 11:12
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