Skip to content

Dispatch v2 commits through bounded workers and actor commands - #197

Closed
linroid wants to merge 1 commit into
torrent-v2-08-inboxfrom
torrent-v2-08-commit-worker
Closed

linroid wants to merge 1 commit into
torrent-v2-08-inboxfrom
torrent-v2-08-commit-worker

Conversation

@linroid

@linroid linroid commented Sep 12, 2026

Copy link
Copy Markdown
Owner

V2 commits now run through a bounded assembly queue and a child worker, so piece verification/storage work can be dispatched off the peer actor. Successful submission transfers an admitted assembly; saturation preserves actor ownership for retry. Completion values report verification results or storage failures after the store returns. Shutdown joins the worker and reclaims undelivered assemblies.

The inbox now selects typed actor commands alongside frames and deadlines, alternating ready queues to prevent starvation. A regression blocks storage admission while the actor waits for worker completion and verifies that the pending peer response still expires on time and cleanup returns all credit.

Stacked on #196, under #162. Production scheduling, completion routing across session/peer lifetimes, queue-pressure retries, generation reconciliation, upload/hash serving and full session integration remain required.

Validation at c2d5d837e38340ed79262cf8ea9f1b717deace72:

  • 453 JVM tests and 432 actually executed iOS simulator tests; zero failures, errors or skips.
  • Both pinned v1 conformance scenarios and the native-runtime dependency guard pass.
  • Tests cover queue saturation, rejected-submission ownership, worker cancellation and joining, verified/corrupt/storage-failure completions, command/frame fairness and peer deadlines during blocked storage work.

@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:12:10.800306Z c2d5d83 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  + 5    662 suites  +5   4m 9s ⏱️ -12s
2 738 tests +12  2 738 ✅ +12  0 💤 ±0  0 ❌ ±0 
3 642 runs  +20  3 642 ✅ +20  0 💤 ±0  0 ❌ ±0 

Results for commit c2d5d83. ± Comparison against base commit 3a0f0cd.

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