Add timed Astra boost for reachable task servers - #5
Draft
jesse-merhi wants to merge 2 commits into
Draft
jesse-merhi wants to merge 2 commits into
jesse-merhi wants to merge 2 commits into
Conversation
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.
CXA can now run a time-bounded boost for reachable tasks. It checks the live account and model catalog, applies Astra / Ultra / Fast to loaded tasks, enrolls newly loaded tasks after their first real message, and stops on a weekly quota reset, a deadline, or a manual request. Cutoff interrupts every tracked task and applies Astra / Medium / Standard to both task settings and global defaults.
The controller journals its work before making changes. Failed cleanup stays visible and blocks another run until the server is reachable and cleanup succeeds. Global defaults remain unchanged while the boost is active, so tasks outside the covered sockets cannot silently inherit expensive settings.
Change breakdown
Proof
There was no earlier boost workflow to compare against. The new behavior was exercised through the built CXA binary against a temporary simulated task server over a real Unix WebSocket. The simulation changed no live account, task, or settings.
Fast mode remains available after cutoff for later manual use. A separate integration case observed weekly usage fall from 72% to 4% and stopped before its future deadline.
How to verify
cargo test --test cxa_cli boost_ ./scripts/check.shAt published head
a7c19e7, all project checks passed on Rust 1.98: 38 unit tests, 34 CLI tests, formatting, lint, build, and packaging checks. A separate read-only probe against the installed task server passed initialization and model listing using a temporary home; no model turns were requested. The public cleanup command also wrote the expected defaults using both installed server versions in temporary homes, and recovered a native empty task from a pending-cleanup journal.The refreshed CLI journey verified that empty tasks stay untouched until their first message, then enroll normally. A task that remains empty does not block cutoff.
The focused integration coverage checks active user-task continuation, in-place child-task updates, enrollment of a newly loaded task, deadline cleanup, weekly-reset cutoff, preflight with no mutation, and recovery from recorded pending cleanup.
Implementation notes
cxa boost statusreports unfinished work.