Skip to content

Publish piece availability after storage cancellation boundary - #176

Closed
linroid wants to merge 1 commit into
torrent-v2-06-verificationfrom
torrent-v2-06-commit-barrier
Closed

linroid wants to merge 1 commit into
torrent-v2-06-verificationfrom
torrent-v2-06-commit-barrier

Conversation

@linroid

@linroid linroid commented Sep 12, 2026

Copy link
Copy Markdown
Owner

Canceling a commit while its filesystem provider is blocked could still mark the piece complete when the provider returned. Move availability and progress publication after the I/O cancellation boundary, while retaining the store mutex and payload handle admission until the provider finishes. Bytes left on disk remain unadvertised and can be recovered by a later verified operation.

Stack: based on #175; supports the storage lifecycle work in #162. This fixes the existing runtime store and does not yet supply the v2 storage adapter or generation protocol.

Validation: the deterministic blocked-write test failed before the fix with the store incorrectly complete, then passed. All 351 local torrent tests, both existing pinned-client v1 conformance scenarios, and the native-runtime guard pass. The regression verifies no progress/availability publication after cancellation, slot retention during blocked I/O, and recovery through recheck.

@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-12T14:24:25.517711Z 23c4df0 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

  543 files    543 suites   3m 56s ⏱️
2 447 tests 2 447 ✅ 0 💤 0 ❌
3 149 runs  3 149 ✅ 0 💤 0 ❌

Results for commit 25b38e0.

@linroid

linroid commented Sep 20, 2026

Copy link
Copy Markdown
Owner Author

Superseded by #233 (V2 layout and verified storage) 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-06-commit-barrier branch September 20, 2026 11:12
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