Skip to content

Add typed v2 tracker announces and lifecycle accounting - #210

Closed
linroid wants to merge 1 commit into
torrent-v2-08-peer-dialerfrom
torrent-v2-11-tracker-topics
Closed

linroid wants to merge 1 commit into
torrent-v2-08-peer-dialerfrom
torrent-v2-11-tracker-topics

Conversation

@linroid

@linroid linroid commented Sep 12, 2026

Copy link
Copy Markdown
Owner

Adds full typed v1/v2 tracker topics so local tracker IDs and tier preference cannot cross full-hash or algorithm boundaries. HTTP and IPv4/IPv6 UDP announces serialize v2's 20-byte hash prefix only at the wire boundary.

V2 tracker discovery validates the layout identity and reports whole-torrent unverified payload as left, including unselected files and excluding alignment gaps. Tests cover start/completion/stop, private failover, malformed verification state, and topic collisions. Existing v1 construction remains supported.

Stacked on #209; advances roadmap #162. Public v2 registration, discovery endpoint production, hybrid dual announces, and scrape are still separate work.

Validation: 515 torrent JVM tests and 494 executed iOS simulator tests (zero failures), native-runtime dependency guard, and both pinned v1 conformance scenarios. This is protocol/lifecycle support, not a completed production or independent v2 interoperability gate.

The final change after the full suite was an API opt-in annotation correction in the parent; JVM and iOS compilation passed again.

@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-12T20:48:43.489548Z c808a24 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

  707 files  ± 0    707 suites  ±0   4m 2s ⏱️ -20s
2 924 tests +24  2 924 ✅ +24  0 💤 ±0  0 ❌ ±0 
3 952 runs  +40  3 952 ✅ +40  0 💤 ±0  0 ❌ ±0 

Results for commit c808a24. ± Comparison against base commit 3cf0840.

@linroid

linroid commented Sep 20, 2026

Copy link
Copy Markdown
Owner Author

Superseded by #237 (Tracker lifecycle, editing and discovery privacy) 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 #210–#226, preserving source 584e0cc.
Includes the foundation listener cancellation regression fix discovered by consolidation CI.
@linroid
linroid deleted the torrent-v2-11-tracker-topics branch September 20, 2026 11:13
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