Skip to content

Transfer v2 commit ownership with atomic claims and exact tickets - #198

Closed
linroid wants to merge 1 commit into
torrent-v2-08-commit-workerfrom
torrent-v2-08-commit-ownership
Closed

linroid wants to merge 1 commit into
torrent-v2-08-commit-workerfrom
torrent-v2-08-commit-ownership

Conversation

@linroid

@linroid linroid commented Sep 12, 2026

Copy link
Copy Markdown
Owner

Commit submissions now transfer assembly ownership atomically and return an opaque ticket carried by the completion. This prevents duplicate queue submission or premature release through the original actor handle, and lets the scheduler distinguish later submissions for the same piece. Queue pressure restores the exact actor ownership; stale claims cannot alter a newer handoff. Completed assemblies drop their private payload reference when credit returns, and completion tickets retain no payload.

Stacked on #197, under #162. The scheduler still needs to bind tickets to its session/selection generations and route completions; this ownership slice does not complete production session integration.

Validation at 8ec7742a5a4ea97a167f131fd29847e4cb7c37db:

  • 454 JVM tests and 433 actually executed iOS simulator tests; zero failures, errors or skips.
  • Both pinned v1 conformance scenarios and the native-runtime dependency guard pass.
  • Tests cover duplicate submission before worker execution, actor close after transfer, pressure rollback, stale claims after a second handoff, and exact completion identity across corrupt and successful submissions for the same piece.
  • Existing full-size piece, commit cancellation, TCP transfer and reader/worker cleanup regressions remain green.

@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-12T18:21:04.110798Z 8ec7742 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

  662 files  ±0    662 suites  ±0   4m 7s ⏱️ -2s
2 741 tests +3  2 741 ✅ +3  0 💤 ±0  0 ❌ ±0 
3 647 runs  +5  3 647 ✅ +5  0 💤 ±0  0 ❌ ±0 

Results for commit 8ec7742. ± Comparison against base commit c2d5d83.

@linroid

linroid commented Sep 20, 2026

Copy link
Copy Markdown
Owner Author

Superseded by #236 (V2 scheduling and download execution) 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-08-commit-ownership 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