Repository navigation
Conversation
Co-authored-by: Mecatl <[email protected]>
Co-authored-by: Mecatl <[email protected]>
Co-authored-by: Mecatl <[email protected]>
Co-authored-by: Mecatl <[email protected]>
This was referenced Oct 5, 2026
Preserve accounting-first delivery, cancellation checks, and cleanup ownership while reducing wrap complexity below the lint limit. Co-authored-by: Mecatl <[email protected]>
Co-authored-by: Mecatl <[email protected]>
JAORMX
changed the base branch from
main
to
fix/recovery-baseline-races-20261005
October 5, 2026 13:13
Contributor
Author
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Retains provider-neutral usage already accepted by the resilience wrapper when caller cancellation happens before or during buffered delivery. This fixes an inherited accounting defect used by the server-owned recovery work in #1920.
No exported API, new ledger, extended recovery policy, or raw-provider partial-usage change.
Verification
Real-engine regression first failed with 0/0 or partial 5/1 instead of 12 input / 4 output tokens. The fix now retains 12/4 exactly once in result and session, with successful no-double-count controls and no canceled dispatch.
Passed focused/full affected package tests and race tests: engine/agent, engine module, llmresilience, and app composition including Codex fixtures. Independent spec, standards, test-adequacy, security, architecture, duplication, and reuse reviews have no remaining blocking findings.
CI on
63197ab8c: 28 passed, 9 skipped. The initial gocyclo failure was fixed with one private buffered-handoff extraction; authoritative scoped lint and package/race tests passed, and closure review confirmed unchanged cancellation/cleanup semantics.Remains draft pending complete local aggregate certification. Its earlier full-suite failures included the inherited long Unix-socket fixture path limit; the integrated candidate in #1920 now passes full local lint/docs/site/API/demo checks but has two separately triaged baseline test failures and an incomplete full race gate. Green CI and focused proofs are not being presented as a completed local aggregate run.
Relates to #1912 and #1920. This prerequisite can land independently of extended recovery. No PR merged or deployment performed.