Skip to content

Admit retained tracker configuration with transferable ownership - #218

Closed
linroid wants to merge 1 commit into
torrent-v2-11-live-tracker-controlfrom
torrent-v2-11-tracker-config-admission
Closed

linroid wants to merge 1 commit into
torrent-v2-11-live-tracker-controlfrom
torrent-v2-11-tracker-config-admission

Conversation

@linroid

@linroid linroid commented Sep 12, 2026

Copy link
Copy Markdown
Owner

Adds explicit budget ownership for retained tracker configuration. Admission occurs before URL parsing and snapshot allocation; invalid input releases credit, and exhausted admission returns null. Accounting covers string backing and per-entry structure overhead within the existing input bounds.

Owned handles can transfer their reservation without releasing it. The old handle becomes invalid, close is idempotent, and the transfer destination is allocated before ownership moves. Old and proposed configurations can coexist while an edit is validated or installed; discarding a failed proposal preserves the old owner.

Stacked on #217; advances #162. Tests cover snapshots, ownership transfer, failure cleanup, occupied budgets, coexistence, and worst-case accounting. This is the ownership prerequisite for retained/persistent tracker edits; integrating it into edit persistence remains separate work.

Validation at 8fd9fa984b75c35748494896a16edd40bc77024a: 559 JVM and 538 executed iOS simulator tests, zero failures/errors/skips; native-runtime guard and both pinned v1 conformance scenarios 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-12T21:59:04.400475Z 8fd9fa9 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

  732 files  + 5    732 suites  +5   4m 13s ⏱️ +3s
3 056 tests +15  3 056 ✅ +15  0 💤 ±0  0 ❌ ±0 
4 172 runs  +25  4 172 ✅ +25  0 💤 ±0  0 ❌ ±0 

Results for commit 8fd9fa9. ± Comparison against base commit 0630367.

@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
linroid deleted the torrent-v2-11-tracker-config-admission 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