Skip to content

Persist tracker revisions and reject stale session edits - #222

Closed
linroid wants to merge 1 commit into
torrent-v2-11-session-tracker-editfrom
torrent-v2-11-tracker-revisions
Closed

linroid wants to merge 1 commit into
torrent-v2-11-session-tracker-editfrom
torrent-v2-11-tracker-revisions

Conversation

@linroid

@linroid linroid commented Sep 12, 2026

Copy link
Copy Markdown
Owner

Tracker edits can now carry an expected revision. Stale commands are rejected before pausing discovery, and the store repeats the check under its persistence mutex. Successful edits commit a monotonically increasing revision; ordinary saves and failed edits preserve it. Cancellation after rename keeps the committed revision with the new configuration owner.

Checkpoint version 3 persists the revision with the complete tracker override. Versions 1 and 2 remain readable at revision zero; downgraded, malformed, missing, and exhausted revisions fail closed. Internal configuration snapshots work before first resume, and tracker diagnostics retain the committed revision across discovery restarts.

Stacked on #221; advances #162. Public conflict responses, command idempotency, and recovery when TaskStore data lags the on-disk checkpoint remain follow-up integration work.

Validation includes stale edits without discovery interruption or leaked credit, restoration before first resume, persisted revision recovery, malformed/downgraded checkpoints, revision exhaustion, failed persistence, post-rename cancellation, and live diagnostic revisions. 579 JVM and 558 executed iOS tests passed with zero failures/errors/skips, alongside the native-runtime guard and two pinned v1 conformance scenarios.

@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-12T23:07:42.788763Z ee5a578 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

  742 files    742 suites   4m 33s ⏱️
3 116 tests 3 116 ✅ 0 💤 0 ❌
4 272 runs  4 272 ✅ 0 💤 0 ❌

Results for commit ee5a578.

@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-revisions 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