Repository navigation
Complete public v2/hybrid download and restart workflow - #240
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 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".
|
@codex review |
There was a problem hiding this comment.
💡 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".
The public source previously rejected v2 inputs even though the consolidated stack contained the transfer and recovery components. This connects those components to
TorrentDownloadSourceand 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.