Skip to content

Add v2 and hybrid torrent content layout - #174

Closed
linroid wants to merge 1 commit into
torrent-v2-04-documentfrom
torrent-v2-06-layout
Closed

linroid wants to merge 1 commit into
torrent-v2-04-documentfrom
torrent-v2-06-layout

Conversation

@linroid

@linroid linroid commented Sep 12, 2026

Copy link
Copy Markdown
Owner

V2 files start on piece boundaries, while hybrid v1 requests also address padding. Add an internal layout that maps protocol ranges to payload extents and virtual zeros, preserves hybrid file IDs, and excludes padding from v2 piece reads. The index scales with files rather than piece count.

Stack: based on #173. Implements part of roadmap #162 step 06; runtime storage integration remains pending.

Validation: all four TorrentContentLayoutTest cases passed, covering empty files, cross-boundary reads, hybrid trailing padding, 10 TiB addressing, and overflow rejection. The native torrent runtime dependency guard passed.

@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-12T14:14:12.279717Z 6531316 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

  538 files  + 5    538 suites  +5   3m 57s ⏱️ +8s
2 431 tests +12  2 431 ✅ +12  0 💤 ±0  0 ❌ ±0 
3 121 runs  +20  3 121 ✅ +20  0 💤 ±0  0 ❌ ±0 

Results for commit 6531316. ± Comparison against base commit 3ba4a64.

@linroid

linroid commented Sep 20, 2026

Copy link
Copy Markdown
Owner Author

Superseded by #233 (V2 layout and verified storage) 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 added a commit that referenced this pull request Sep 20, 2026
Consolidates #174–#179, preserving source cbc0856.
Includes the foundation listener cancellation regression fix discovered by consolidation CI.
@linroid
linroid deleted the torrent-v2-06-layout 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