Repository navigation
fix(#1567): key projection suppression off failed sub-agent name - #1705
Conversation
non_dimensional_finding treated any sub-agent-failure recorded at low severity as a challenger skip. A dimension sub-agent failure recorded at low (model drift or a future tier change) was therefore dropped from the failure check, the review-findings-v2 projection was still written, and the next re-review treated the unassessed dimension as already covered. Tell the challenger skip apart by the failed sub-agent's name instead of severity: the pr-review skill records it with the description prefix "The challenger sub-agent did not return findings:". The finding schema has no dedicated sub-agent field (additionalProperties is false), so the documented description template is the structural signal available. Every other sub-agent-failure, at any severity and including one that names no sub-agent, fails closed and suppresses the projection. Challenger skips stay non-dimensional, so the remaining findings still persist in the ledger. post-review-test.sh: add a low-severity mixed sub-agent-failure case mirroring the high-severity one, add low to the dimension-failure severity loop, and use the documented challenger description in the challenger fixture. scripts/post-review.sh regenerated from source. Note: pre-commit could not fetch hook repos (TLS failure in sandbox); shellcheck v0.10.0 with the configured args, git diff --check, and a bundle staleness check were run directly and passed. make lint (skillsaw) could not run (uvx unavailable); no skill files changed. scripts/pre-review-test.sh has 4 fixture failures that also occur on unmodified main. Closes #1567 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
🤖 Review · Commit: |
|
🤖 Finished Review · ✅ Success · Started 1:35 PM UTC · Completed 1:41 PM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.39 |
|
<!-- fullsend:risk-assessment --> DetailsSmall diff and tight issue alignment keep risk moderate despite protected post-review script changes and high churn hotspot history. Previous run<!-- fullsend:risk-assessment --> DetailsSmall diff and tight issue alignment keep risk moderate despite protected post-review script changes and high churn hotspot history. Previous run (2)<!-- fullsend:risk-assessment --> DetailsSmall 3-file, 49-line bot-authored fix with a test and matching issue scope, lifted to moderate because all three files are protected paths, have very high 30-day churn, many authors and frequent fix commits, and the change alters existing behavior with no feature flag. |
ReviewFindingsMedium
Previous run<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJjb21tZW50IiwiZmluZGluZ3MiOltdfQ== --> ReviewFindingsMedium
Previous run (2)<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJjb21tZW50IiwiZmluZGluZ3MiOltdfQ== --> ReviewFindingsMedium
|
|
🤖 Finished Review · ✅ Success · Started 9:32 AM UTC · Completed 9:40 AM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.38 |
A non-challenger sub-agent-failure suppresses the v2 ledger. The dismissal safety-signal loop still expected a projection for that category after merging main, which failed script-test on #1705. Signed-off-by: Benjamin Kapner <bkapner@redhat.com> Co-authored-by: Cursor <cursoragent@cursor.com>
|
🤖 Finished Review · ✅ Success · Started 10:09 AM UTC · Completed 10:14 AM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.80 |
Summary
Changes
scripts/post-review.src.sh(and the regeneratedscripts/post-review.sh) so that asub-agent-failurefinding blocks thefullsend:review-findings-v2prior-review projection whatever its severity. The only exception is a challenger skip, which is now recognized by the name of the sub-agent that failed rather than by its severity.Why
non_dimensional_findingtreatedcategory == "sub-agent-failure" and severity == "low"as a challenger skip. If a dimension sub-agent failure was recorded atlow(through model drift or a future tier change), it was left out of$dimension_failed. The projection was then written as if that dimension had run cleanly, and the next re-review counted the dimension as already covered.Approach
challenger_failure: matches asub-agent-failurewhose description starts withThe challenger sub-agent did not return findings:, which is the templateskills/pr-review/SKILL.mdprescribes for challenger failures. The finding schema setsadditionalProperties: falseand has no sub-agent field, so this documented name prefix is the structural signal available without a schema or SKILL.md change.non_dimensional_findingnow useschallenger_failureinstead of the severity check.sub-agent-failure, at any severity and including one whose description names no sub-agent, suppresses the projection.Testing
scripts/post-review-test.sh:projection-omits-mixed-low-sub-agent-failure: a low-severity sub-agent-failure is not filtered out, and the v2 marker is not written. It mirrors the existing high-severity test.lowadded to the dimension-failure severity loop, soprojection-blocks-low-failure-with-challenger-{github,gitlab}now runs.projection-keeps-findings-with-challenger-failure-*still checks that a challenger skip keeps the projection.SCRIPT_TEST_TARGET=bundled) script.pr-review-challenger-contract-test.sh,pr-review-remediation-test.sh, andreview-body-fallback-test.shpass.git diff --check, and a bundle-staleness check pass.Caveats
pre-commitcould not fetch its hook repos in the sandbox (TLS failure), so the relevant hooks were run directly instead.make lint(skillsaw) could not run becauseuvxis unavailable. No skill or doc files changed.scripts/pre-review-test.shhas 4 fixture failures (fixture-005tofixture-008, canonical prior projection mismatch). They also fail on unmodifiedmainand this PR does not touch them.🤖 Generated with Claude Code
Closes #1567
Post-script verification
agent/1567-subagent-failure-projection)2da538b8b62ad6d7b91c43d8cf139f4738cfbf51..HEAD)