Skip to content

Review/fix agents: treat 'failure becomes exit-0 success' CLI changes as at least medium, and don't decline them solely on issue wording #2266

Backlog

Description

@fullsend-ai-retro

What happened

On PR #9925 the code agent changed fullsend issues transition --state closed so that an ambiguous-transition case, previously a hard error (non-zero exit), became an exit-0 skipped: true result, as the linked issue #9536 requested. The review agent's first review (2026-11-29, comment) flagged this as [low] backward-incompatible and actionable:false (internal/cli/issues_transition.go:136). It noted that a caller checking only the exit code or changed cannot tell 'ambiguous, nothing written' from 'already done'. It offered a distinct non-zero exit code as an optional suggestion. The fix agent declined because exit 0 was the contract in #9536. The review agent then marked the finding resolved and approved. A human reviewer (Benkapner, 2026-11-29) probed the same area. The issue author (ascerra, 2026-12-02) posted it as a MEDIUM finding with a concrete consumer: the open triage PR #1998 runs --state closed and treats exit 0 as success, and its docs say the call fails loudly when ambiguous. ascerra reversed their own issue's requirement. Commit 34627d6 then added exit code 11 plus the docs/BREAKING CHANGE rewrite, and the review agent approved the final head. The review agent had identified the right risk but under-weighted it. The fix agent resolved the disagreement by deferring to the issue text without any caller analysis.

What could go better

Two gaps, with moderate confidence from a single PR. (1) Severity: a change that turns a previously failing path into exit 0 is a silent-failure risk for every script caller, and a 'low' with actionable:false lets the fix agent decline cheaply. Review may also not have checked consumers in the agents repo; I did not verify whether the sandbox allows that. (2) The fix agent's decline rationale was 'the issue asked for it'. That is reasonable when the issue is explicit, but a human-authored issue can be wrong, as it was here, and nobody was asked. The repo already treats breaking CLI changes seriously (! title, BREAKING CHANGE trailer), so a rule here fits existing conventions. I may be over-generalizing from one PR; the proposal is scoped narrowly to exit-code/error-to-success semantics to limit false-positive risk.

Proposed change

In the review agent's pr-review skill (and its cross-repo-contracts / backward-compat dimension guidance), add: when a diff changes a command, function or script so that a condition which previously returned an error or non-zero exit now returns success (exit 0, nil error, or an in-band flag such as skipped), report it at least medium, even if the linked issue requested it. The finding should name known in-repo callers and, where the review sandbox can read them, callers in the agents repo (for example grep the scripts/ tree of fullsend-ai/agents for the command name). In the fix agent's guidance, add: when declining a finding whose category is backward-incompatible or cross-repo-contract, it must cite evidence (a caller check or an explicit statement in the issue that the semantics were decided with callers considered), not just 'the issue requested it'. Otherwise it should apply the optional suggestion if it is cheap or leave the thread open for a human. Hold the change to this narrow trigger rather than a general 'don't decline' rule.

Validation criteria

Replay or re-review a diff with the same shape, an error path converted to an exit-0 result. The review should report it at least medium and list callers it checked. Over the next 10 PRs touching CLI exit/error semantics, check that (a) no 'error to success' change is approved with only a low finding, and (b) the rate of fix-agent declines on backward-incompatible findings does not drop to zero for legitimately intended changes. Count medium-severity false positives of this category; there should be at most 1 in 10.

Related issues checked

Searched: review agent downstream consumers breaking change CLI callers; fix agent decline reviewer suggestion optional; review severity low breaking CLI exit code skip; fix agent declined finding escalate human; review agent cross-repo callers exit code contract
Considered: #1267, #75, fullsend-ai/fullsend#8138
agents#1267 (closed duplicate) is about the review agent re-raising author-deferred findings, a different problem; agents#75 is a review miss of a wrong CLI invocation, not severity or exit-semantic handling; fullsend#8138 concerns fix agent overriding issue scope constraints on governance findings, unrelated to exit-code semantics. No open issue covers severity of error-to-success changes or evidence-backed fix-agent declines.


Generated by retro agent from fullsend-ai/fullsend#9925

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions