Repository navigation
Improve agent answer quality - #1
Open
ishanavasthi wants to merge 1 commit into
Open
ishanavasthi wants to merge 1 commit into
ishanavasthi wants to merge 1 commit into
Conversation
❌ Preflight — regression detected
Biggest mover: Per-case breakdown (6 cases)
Every row is one trace in SigNoz. baseline run `run-12c1a821e194` · candidate run `run-f9a0ac910b9e` |
DO NOT MERGE. This branch exists so M3's gate and M4's PR comment have a real
regression to catch, and so the demo is reproducible.
The change is one edit to SYSTEM_PROMPT -- no code, no config, no new tools.
It is the exact shape BUILD_PLAN describes: a reviewer skimming the diff sees
a prompt asking for more thorough answers, the unit tests still pass, and all
six golden cases still succeed. Nothing about it looks like a regression.
What it actually does, measured off committed cassettes:
metric baseline candidate delta
total_tokens_per_task 2033.50 4670.17 +130%
retrieval_hops_per_task 1.00 2.33 +133%
tool_calls_per_task 1.33 3.00 +125%
cost_usd_per_task 0.00256 0.00641 +151%
success_rate 1.00 1.00 0
success_rate is deliberately flat. This is a cost and trajectory regression,
not a correctness one -- which is the whole argument for the project: the
tests cannot see it, and the invoice sees it a month later.
Getting here took two attempts. Asking for thoroughness ("enumerate every
option") only moved tokens +16%, because the model batches its tool calls into
one parallel turn and the trajectory never lengthens. What actually inflates
cost is a *dependency chain* -- each tool's input comes from the previous
tool's output -- which forces genuinely sequential turns and re-sends the
growing transcript each time. Worth remembering: the expensive failure mode is
serialisation, not verbosity.
Cassettes for this branch are recorded and committed, so CI runs it for free.
Co-Authored-By: Claude Opus 5 <[email protected]>
ishanavasthi
force-pushed
the
seeded-regression
branch
from
July 27, 2026 05:44
3ece036 to
59607e5
Compare
ishanavasthi
added a commit
that referenced
this pull request
Jul 27, 2026
Leads with the failure mode rather than the architecture, then the actual PR #1 comment as evidence. Documents the two real caveats (ephemeral CI deep links, gen_ai.* Development stability) rather than eliding them, and carries the sharpest findings across from .plans/learnings.md. Every make target and path cited is verified to exist; `make m6-check` is verified to pass with ANTHROPIC_API_KEY unset at zero spend, which is the state a judge is in after cloning. Co-Authored-By: Claude Opus 5 <[email protected]>
ishanavasthi
added a commit
that referenced
this pull request
Jul 27, 2026
The script told you to scroll to green check marks and say 'tests pass'. Both halves were wrong. Checks don't render on the Files-changed tab at all, and PR #1 has exactly one check -- 'Agent regression gate' -- which is red. The repo also has no unit tests; the only lint target is actionlint/shellcheck on the workflow itself. Scene 1 now stays on the diff and makes the point from the change itself: no function or signature changed, so there is nothing for a linter or a test to catch. That is true, it is visible on screen, and it explains why normal CI is blind instead of just asserting that it was green. Co-Authored-By: Claude Opus 5 <[email protected]>
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.
Minor prompt tweak to make answers more thorough.