Skip to content

fix(#1567): key projection suppression off failed sub-agent name - #1705

Merged
Benkapner merged 3 commits into
mainfrom
agent/1567-subagent-failure-projection
Nov 1, 2026
Merged

Benkapner merged 3 commits into
mainfrom
agent/1567-subagent-failure-projection

Conversation

@fullsend-ai-coder

Copy link
Copy Markdown
Contributor

Summary

Changes scripts/post-review.src.sh (and the regenerated scripts/post-review.sh) so that a sub-agent-failure finding blocks the fullsend:review-findings-v2 prior-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_finding treated category == "sub-agent-failure" and severity == "low" as a challenger skip. If a dimension sub-agent failure was recorded at low (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

  • New jq helper challenger_failure: matches a sub-agent-failure whose description starts with The challenger sub-agent did not return findings:, which is the template skills/pr-review/SKILL.md prescribes for challenger failures. The finding schema sets additionalProperties: false and has no sub-agent field, so this documented name prefix is the structural signal available without a schema or SKILL.md change.
  • non_dimensional_finding now uses challenger_failure instead of the severity check.
  • Fails closed: any other sub-agent-failure, at any severity and including one whose description names no sub-agent, suppresses the projection.
  • Challenger skips are still non-dimensional, so the remaining findings still persist in the ledger, as fix(#3864): preserve prior review remediations #1232 intended.
  • Head SHA handling, dispositions, the hide-ids scrub, and SKILL.md are unchanged.

Testing

  • scripts/post-review-test.sh:
    • new 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.
    • low added to the dimension-failure severity loop, so projection-blocks-low-failure-with-challenger-{github,gitlab} now runs.
    • the challenger fixture now uses the documented challenger description, so projection-keeps-findings-with-challenger-failure-* still checks that a challenger skip keeps the projection.
  • Run against the old logic, the three new low-severity cases fail. With the fix, the full suite passes against both the source and the bundled (SCRIPT_TEST_TARGET=bundled) script.
  • pr-review-challenger-contract-test.sh, pr-review-remediation-test.sh, and review-body-fallback-test.sh pass.
  • shellcheck v0.10.0 (configured args), git diff --check, and a bundle-staleness check pass.

Caveats

  • pre-commit could not fetch its hook repos in the sandbox (TLS failure), so the relevant hooks were run directly instead.
  • make lint (skillsaw) could not run because uvx is unavailable. No skill or doc files changed.
  • scripts/pre-review-test.sh has 4 fixture failures (fixture-005 to fixture-008, canonical prior projection mismatch). They also fail on unmodified main and this PR does not touch them.
  • A challenger failure whose description strays from the documented template will now suppress the projection. This is the intended fail-closed behavior.

🤖 Generated with Claude Code


Closes #1567

Post-script verification

  • Branch is not main/master (agent/1567-subagent-failure-projection)
  • Secret scan passed (gitleaks — 2da538b8b62ad6d7b91c43d8cf139f4738cfbf51..HEAD)
  • PR body secret scan passed (gitleaks — no-git)

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>
@fullsend-ai-coder
fullsend-ai-coder Bot requested a review from a team October 18, 2026 13:31
@fullsend-ai-coder fullsend-ai-coder Bot added the ready-for-review Triggers review agent dispatch label Oct 18, 2026
@fullsend-ai-review

Copy link
Copy Markdown

🤖 Review · ⚠️ Cancelled · Ended 1:33 PM UTC

Commit: ca43e52 · View workflow run →

@fullsend-ai-review

fullsend-ai-review Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 1:35 PM UTC · Completed 1:41 PM UTC

Commit: ca43e52 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.39

@fullsend-ai-review fullsend-ai-review Bot added the risk/moderate PR risk: moderate label Oct 18, 2026
@fullsend-ai-review

fullsend-ai-review Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Small diff and tight issue alignment keep risk moderate despite protected post-review script changes and high churn hotspot history.

Previous run

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Small 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 -->
Risk Assessment: moderate (2/5)

Details

Small 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.

@fullsend-ai-review

fullsend-ai-review Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

Review

Findings

Medium

Previous run

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJjb21tZW50IiwiZmluZGluZ3MiOltdfQ== -->

Review

Findings

Medium

  • [protected-path] scripts/post-review.src.sh — This PR modifies protected paths: scripts/post-review.src.sh, scripts/post-review.sh, and scripts/post-review-test.sh. The PR links issue post-review: a low-severity sub-agent-failure finding does not suppress the prior-review projection #1567 and explains the rationale: a dimension sub-agent-failure recorded at low severity must suppress the prior-review projection, and a challenger skip is now identified by its description prefix instead of by severity. Human approval is always required for protected-path changes, regardless of context.
Previous run (2)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJjb21tZW50IiwiZmluZGluZ3MiOltdfQ== -->

Review

Findings

Medium

@fullsend-ai-review fullsend-ai-review Bot added the requires-manual-review Review requires human judgment label Oct 18, 2026
@fullsend-ai-review

fullsend-ai-review Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 9:32 AM UTC · Completed 9:40 AM UTC

Commit: 5b61096 · View workflow run →

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>
@fullsend-ai-review

fullsend-ai-review Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 10:09 AM UTC · Completed 10:14 AM UTC

Commit: 2fe15e1 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.80

@Benkapner
Benkapner added this pull request to the merge queue Nov 1, 2026
Merged via the queue into main with commit 037b31d Nov 1, 2026
21 checks passed
@Benkapner
Benkapner deleted the agent/1567-subagent-failure-projection branch November 1, 2026 10:33

This branch was previously deployed

1 inactive deployment
dev — 2fe15e19 Deployed Nov 1, 2026 by Benkapner via behaviour #1538
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-review Triggers review agent dispatch requires-manual-review Review requires human judgment risk/moderate PR risk: moderate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

post-review: a low-severity sub-agent-failure finding does not suppress the prior-review projection

2 participants