Skip to content

Complete public v2/hybrid download and restart workflow - #240

Merged
linroid merged 3 commits into
torrent-v2-stack-08-runtimefrom
torrent-v2-public-workflow
Sep 20, 2026
Merged

linroid merged 3 commits into
torrent-v2-stack-08-runtimefrom
torrent-v2-public-workflow

Conversation

@linroid

@linroid linroid commented Sep 20, 2026 •

Copy link
Copy Markdown
Owner

The public source previously rejected v2 inputs even though the consolidated stack contained the transfer and recovery components. This connects those components to TorrentDownloadSource and Ketch: metainfo and full-identity magnets, authenticated piece layers, selective output, tracker/DHT discovery, progress, shared throttling, live connection limits, pause/resume, serialized task-store restart, and owned-file removal. Hybrid padding stays out of selection and payload must pass both hashes.

Recovery records retain the full SHA-256 identity and metainfo. Decode workspace uses the configurable session budget and is admitted before checkpoint parsing, and the creation journal recovers owned files when the task store predates the first checkpoint. Restart rechecks bytes; shutdown cancels outstanding metadata work; private tracker changes join old peer connections before switching. Block requests are charged before network admission, and late source progress cannot overwrite a paused task state.

Stacked on #238, following the eight consolidated review groups. References #162; does not close the production roadmap. V2 inbound routing, uploading/seeding, peer exchange, hybrid v1-only peers, and the remaining production gates are explicitly documented as separate work.

Validation includes public API tests on JVM/iOS, complete torrent regression suites, Android host tests, the no-native-runtime guard, and pure v2/hybrid magnet downloads from the independent test-only libtorrent seeder. Tests also cover serialized restart, changed payload, pre-checkpoint journal recovery, hybrid file IDs, foreign-file preservation, corrupt proofs, live limits, and shutdown during resolution.

Final local suites: torrent 635 JVM / 613 iOS / 612 Android host tests; core 203 JVM / 200 iOS / 200 Android host tests, all passing. Review regressions and the deterministic pause-race regression fail on the pre-fix revision and pass after the fixes.

@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-20T09:56:52.608862Z e739f9a Manual request
ℹ️ 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6b15ce30e5

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@github-actions

github-actions Bot commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

Test Results

  790 files  + 8    790 suites  +8   5m 9s ⏱️ +18s
3 283 tests +41  3 283 ✅ +41  0 💤 ±0  0 ❌ ±0 
4 553 runs  +71  4 553 ✅ +71  0 💤 ±0  0 ❌ ±0 

Results for commit de5623c. ± Comparison against base commit 74bd4bb.

♻️ This comment has been updated with latest results.

@linroid

linroid commented Sep 20, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e739f9ab90

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@linroid
linroid added this pull request to stack #239 September 20, 2026 11:00
@linroid
linroid merged commit e822e8b into main Sep 20, 2026
12 checks passed
@linroid
linroid deleted the torrent-v2-public-workflow branch September 20, 2026 11:01
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