GeezerVison is showing github.com — Keep cancel_rebind failures atomic · Issue #5643 · developing-today/code
Keep cancel_rebind failures atomic #5643DescriptionFollow-up from Phase 4 audit issue #5048 (epic #5047); intentionally not changed in the audit PR.\n\nIn HostedBindingService::cancel_rebind, the request is marked Cancelled before the binding lookup and re-attestation. If either later operation returns NoBinding or RecordEncoding, the method returns an error after changing the request, while the binding can remain RebindPending; this contradicts the no-mutation-on-failure contract in the RebindError docs.\n\nPrepare and validate the restored binding (including its attestation) before committing either state mutation, then add a regression test using inconsistent internal fixture state or an injectable failure.
Acceptance criteria
cancel_rebind prepares and validates the restored binding (including its attestation) before committing any state mutation.
- On
NoBinding / RecordEncoding failure paths, neither the request state nor the binding state is mutated (the documented no-mutation-on-failure contract holds).
- A regression test using inconsistent internal fixture state or an injectable failure proves the atomicity, and existing hosted-binding tests still pass.
Activityadded kind/bugSomething isn't working (prefixed form of the classic bug label) app/idPackage/app: id (pkgs/ or apps/ in this repo) on Nov 4, 2026developing-today commented on Nov 4, 2026 dezren39 commented on Nov 4, 2026 dezren39 commented on Nov 9, 2026 Handed off to the opencode claimant for execution (lane assignment row 3017). Task 10532 claimed by lane code-m, fresh-verified: issue #5643 OPEN/state checked, no hard-stop labels present. Claimant launches the bound opencode session.
dezren39 commented on Nov 9, 2026 🤖 Agent note · handed off
- Agent: repo queue worker, lane code-y (repo-worker-code)
- Session / ID: cron repo-queue-worker-shift-y run 2026-11-09 06:04 CST; task 10532
- Found via: queue claim · task 10532
- Task: task 10532 for issue Keep cancel_rebind failures atomic #5643 (small_fix). Fresh check: issue Keep cancel_rebind failures atomic #5643 is OPEN, no hard-stop labels (held / user/owned / do-not-merge / do-not-auto-edit). Execution-lane assignment returned opencode - handed off to the opencode claimant, which launches the bound opencode session; this lane does not work it directly.
- Expectation: claimant session drives task 10532 to a terminal state. Attempts 7/8.
- Links: task 10532 · issue Keep cancel_rebind failures atomic #5643
dezren39 commented on Nov 9, 2026
Picked up by repo-worker-code — working this now. (Fleet queue fallback mode: the queue backend is down, so this issue's comments carry the claim. The claim stays live while repo-worker-code posts progress markers; after 30 minutes of silence any other worker may pick this up.)
Resuming work already pushed to PR #6348 (task 10532): cancel_rebind validate-then-commit fix plus NoBinding/RecordEncoding regressions. dezren39 commented on Nov 9, 2026
Released by repo-worker-code (outcome: done). Pushed the scoped #5643 atomicity fix to PR #6348 (#6348). cancel_rebind now prepares the restored binding plus its re-attestation BEFORE mutating either the rebind request or the binding map, so NoBinding and RecordEncoding leave both maps unchanged; added the two regression tests and marked the #5048 audit row conforming; branch merged up with current main. Verified locally: cargo test --lib hosted_binding --manifest-path pkgs/id/Cargo.toml -> 36 passed, 0 failed (includes both new regressions), file is rustfmt-clean. Branch queue/10532-5643-cancel-rebind-atomicity head 2772a99. Not verified: GitHub CI for the new head — the id workflow run is still queued on runner capacity (repo-wide backlog), and the 20-minute claim lease on queue task 10532 expired mid-work so the task was auto-parked by expire_leases before this session could post a primary-store terminal verb.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|