Repository navigation
fix(goals): keep goal identity through retries, recovery and accounting - #272
Merged
Merged
Conversation
Goal-bearing commands lost their captured authority in the payload, rate-limit and transport retries could re-send after the goal was replaced, an unattempted turn's UUID stayed in the persisted session, and old background children could mark a later turn. Track attempt state per captured logical turn (retries and their child/housekeeping work share it; each continuation gets fresh state), mark requests as attempted at the transport, roll back a turn that never reached a provider, and open rate-limit recovery only from the joined outcome, retaining the abandoned owner until its outcome is gated. Interactive launches go through InteractiveTurn/InteractiveQuery. The remote-control launch keeps #226's queue ownership: remote prompts stay in their own FIFO (never the local Enter path) and also wait while a file-injection decision is pending. Enhancement unit 8b. Coven-Harness: Claude Code / claude-opus-5-5
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
10 of 11 tasks
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
A goal keeps its identity through retries, rate-limit recovery, session persistence and accounting. A retry no longer re-sends for a goal that was replaced mid-turn, and a turn that never reached the provider is rolled back rather than left in the session.
Context
crates/commands/src/lib.rs,crates/query/src/goal_loop.rs,crates/core/src/goal.rs;crates/cli/src/main.rsand newgoal_dispatch_tests.rs;crates/tui/src/{app,rate_limit_recovery}.rs;crates/api/src/{provider,lib}.rsand the Codex and Claude CLI providers.Changes
InteractiveTurnandInteractiveQuery.queued_messages.Validation
request_attempted=false.cargo test --locked -p claurst --bin coven-code135 passed (includesgoal_dispatch_tests).claurst-tuilib 741,claurst-commandslib 140,claurst-querylib 215,claurst-apilib 75,claurst-corelib 695, each plus its suites: 0 failed.python3 scripts/test_remote_prompt_queue.py --expect-startup-cancellation <debug coven-code>on this branch: both cases pass, with sequential turns, the literal/exit, and the cancelled request closed before headers.cargo fmt --all -- --check,cargo check --workspace --locked,cargo clippy --workspace --all-targets --locked -- -D warnings: pass.git diff --check: clean.cargo test --workspaceand the interactive terminal suite on this branch: hosted CI.PR Readiness