Repository navigation
Add interleaved control capture to the guided workflow - #323
Merged
Merged
Conversation
improve capture --control-arg runs an unchanged control runner alongside the candidate, alternating which condition runs first on each attempt. improve finish then measures the candidate against that control while keeping findings, focus and gates frozen from the original baseline, so cache warm-up and host drift affect both conditions instead of favouring the later candidate run. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
AgentLoop replay self-testThis required repository check evaluates generated synthetic demo traces. It tests the replay and CI machinery; it does not show that this PR improves application performance. AgentLoop CI Report
Performance Gates
Trace inputsThis comparison includes synthetic data. It does not establish application performance gains from a pull request.
Metric Impact
Top Findings
|
Merged
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.
Why
A guided comparison runs every baseline attempt before every candidate attempt. Cache warm-up, host load or provider drift can then look like an improvement.
docs/ADOPTION_GAPS.mdlists this as the causal-performance gap.What
agentloop improve capture --control-arg ARG ...(repeat once per argument) runs an unchanged control runner alongside the candidate. Each planned attempt runs both back to back; the control goes first on even attempt indexes and second on odd ones, and every receipt records itsorder.<out>/control/, and its manifest hash is recorded in the candidatecapture.json.improve finishdetects the control and measures the candidate against it. Findings, focus and gates stay frozen from the original baseline. The control must pass the same quality checks, and intervention records link the control's matching findings, asbuild_interventionrequires.comparison_baseline,control_capture_hash,control_runner_hash). Each case recordscontrol_ran_firstandfrozen_baseline_status._new_manifestand_attempthelpers so both conditions share it.Tests
--control-argon the CLI.tests/test_improvement.py: 24 passed.ruff checkandruff format --checkare clean.🤖 Generated with Claude Code