Repository navigation
v0.223.0
v0.223.0 closes the nightly eval loop from ADR 0126. When a gate case recovers, the nightly resolves its friction entry. When it records a regression, it queues a proposal-only triage turn. The release also adds a learned-context A/B tool for evals and "Make eval case" buttons in the console. Steering a busy agent can now carry images. A plugin chat component can open its own view. History writes stop failing on a briefly held database lock, and fleet members' agent.log stops growing without limit.
Added
- Nightly closes the gate-regression loop. When a gate case that failed last night passes tonight,
scripts/evals_nightly.pyresolves itsnightly gate regression: <case>friction entry and cites the passing report. When it records new regressions, it queues one immediate, one-shot job on the instance's scheduler. That job asks the agent to runeval_regression_triageon those cases. Pass--no-triageto turn that off.--dry-runrecords, resolves and queues nothing. A friction or scheduling error prints a warning and never changes the gate verdict or exit code. (#4665) - Gate-regression triage reviewer. A new
eval_regression_triagesubagent reads the nightly friction entries and their traces and reruns one named case. It returns a single proposal: a harness task, a case edit for you to review, or flake advice. It only proposes. Its tool allowlist can't edit eval cases or resolve friction, and its reruns use a fresh isolated agent on the nightly's recorded model. You can also start it by hand. (#4661) - Learned-context eval A/B.
scripts/evals_ab.py --ab-learned-from <instance>runs the eval suite on two throwaway instances. Arm A uses the bundled template alone. Arm B uses the same template seeded with a copy of the source instance's learned memories and private skills. The source instance is only read, never written. The script writes both arm reports and a comparison (ab-compare-<ts>.json/.md). The comparison shows pass-rate deltas per case and per tier, turns and latency per arm, and every flipped case with trace links for both runs. A bundled bad-memory fixture shows that a harmful memory comes out as a visible regression. Nothing is pruned automatically. (#4660, #4664) - "Make eval case" in the console. Assistant messages and friction entries that have a trace get a "Make eval case" action. It opens an editable draft (prompt, expected tools and reply, rubric, tier). Nothing is saved until you press Save. Server refusals show inline, and Cancel writes nothing. (#4650, #4653)
- Plugin components can open their own view. A chat component rendered in a frame can post
protoComponent:openView {view, message}. That brings one of its own plugin's declared console views on screen and passes it a payload of up to 4 KB. The host refuses another plugin's view, core surfaces, unknown ids, a missing or bad capability nonce, and messages from other windows. On mobile the view never opens over chat. (#4662)
Changed
- Fleet members'
agent.logis bounded. When a member starts and its log is over 20 MB, the log is rotated, keeping three old copies. Successful polling requests now log at DEBUG instead of INFO. They made up about 85% of one member's 173 MB log. The polls are from the console, the hub's agent-card and public-paths reads, ledger, project board and org chart. Errors and requests that change state still log at INFO. (#4647)
Fixed
- Steering a working agent carries attached images. A steer now sends the images in the composer tray and clears them only once the steer is accepted. A steer can be an image with no text. The server stores those images like a normal send and passes them to the next model call. Vision-capable models get them as image blocks. (#4654, #4655)
- History writes no longer fail on a briefly held lock. Conversation-history writes take the database write lock up front and retry a few times. Concurrent writers no longer lose archives to "database is locked", which was seen on Windows. (#4646)
Docs
- Fine-tuning spike: "not now". A research note records why a narrow fine-tuned model for tool-domain routing isn't worth building yet, with volume and dataset estimates. It also adds eight held-out tracked-tier eval cases. There is no runtime change, and no model was trained. (#4663)
Upgrading
- No config changes are needed, and nothing changes for an agent that doesn't run the nightly eval script.
- If you run
scripts/evals_nightly.py, it now queues triage on the target instance by default. That instance must have been started on v0.223.0 at least once with its scheduler enabled, which records the scheduler's owner. Until then, or if the nightly's environment points at a different agent, the nightly prints a warning and skips triage. It never moves jobs between agents. Run the nightly with the samePROTOAGENT_HOME/PROTOAGENT_INSTANCEas the instance. If you use--friction-log, set that instance'sFRICTION_LOGto the same file. Use--no-triageto keep the old behaviour. - Fleet members rotate
agent.logat their next restart.
What's Changed
- feat(fleet): rotate a member's agent.log at spawn; quiet the polls that flooded it by @mabry1985 in #4647
- fix(history): take the write lock up front, with bounded retries (Windows 'database is locked' flake) by @mabry1985 in #4646
- feat: ADR 0126 E4c: console "Make eval case" on assistant messages opens a draft editor; save only on explicit Save (#4603 work 4, chat half) by @mabry1985 in #4650
- feat: ADR 0126 E4d: friction view "Make eval case" on entries with a trace opens the draft editor (#4603 work 4, friction half) by @mabry1985 in #4653
- feat: Steer attachments, server half: the steer route accepts images, persists them like a normal send, and the steering fold carries them to the model (#4645 part 1) by @mabry1985 in #4654
- feat: Steer attachments, console half: queueSteer sends the tray's images with the steer and clears the tray only once it's accepted (#4645 part 2) by @mabry1985 in #4655
- feat: Eval A/B (1/2): scripts/evals_ab.py --ab-learned-from runs baseline vs learned arms on throwaway instances, source stores copied never written (#4658, ADR 0126 D6) by @mabry1985 in #4660
- feat: Core seam: protoComponent:openView lets a plugin chat component open its own declared view (#4657, Studio S5-CORE) by @mabry1985 in #4662
- feat: Eval loop (1/2): gate-regression triage reviewer — classify nightly friction into one proposal (card / case-edit proposal / flake advice), hard proposal-mode allowlist (#4656, ADR 0126 D6) by @mabry1985 in #4661
- feat: Spike: is a narrow fine-tuned model worth it for one decision point? Pick candidate, held-out eval + prompted baseline, dataset estimate → ADR (proposed) or "not now" note with numbers (#4659, ADR 0126 D6) by @mabry1985 in #4663
- feat: Eval A/B (2/2): comparison report (per-case/per-tier deltas, turns, latency, flips with both trace links) + bad-memory fixture proving harm is detectable + evals guide section (#4658, ADR 0126 D6) by @mabry1985 in #4664
- feat: Eval loop (2/2): nightly resolves a gate-regression friction entry when the case passes again, and starts gate-regression triage automatically (#4656, ADR 0126 D6) by @mabry1985 in #4665
Full Changelog: v0.222.0...v0.223.0