Skip to content

Review agent's security findings on trust-boundary changes should check known sibling-repo consumers before downgrading reachability #1372

Open

Description

@fullsend-ai-retro

What happened

On fullsend-ai/fullsend#7376, the fullsend review agent's security sub-agent flagged (round at commit f62e4c0, PR comment from fullsend-ai-review) a [medium] fail-open finding: checkSteerAlreadyHandled/postSteerReceipt don't verify the job token differs from the role token, so if optional role-token minting is skipped the receipt's trust boundary collapses. The agent explicitly noted 'production dispatch workflows currently always thread mint-url through, so this is a misconfiguration path rather than a live exploit today' — scoping its reachability claim to fullsend-ai/fullsend only. At the same commit, the third-party Qodo bot posted a High-severity, cross-repo-tagged finding ('Sandbox can forge steer receipts') citing specific lines in fullsend-ai/.fullsend@7c163cad's .github/workflows/qualityflow.yml (146-152, 198-203, 213-228) showing that repo's QualityFlow workflow already reuses the same minted App token for both receipt authoring and agent execution — i.e., the exact 'misconfiguration path' the review agent called non-default was already live in the org's own automation repo. The author fixed the generic check in fullsend-ai/fullsend (commit 98eb06b71), which happens to neutralize the QualityFlow instance too, but the QualityFlow workflow file itself was never modified and no issue tracks the residual risk there.

What could go better

The review agent's security sub-agent only inspects the diff/repo it's dispatched against and has no mechanism to check whether a trust-boundary assumption it's validating already has a live counter-example in a sibling repo — even the org's own primary automation repo (fullsend-ai/.fullsend), which is a natural, bounded, high-value place to check for this class of change (anything touching token minting, receipt/marker authentication, or sandbox-vs-runner credential handling). This caused the agent to materially understate real-world reachability/severity compared to Qodo's targeted cross-repo scan. I'm confident this is the correct read of the transcripts (verified via full-text comparison of both bots' comments across all 8 review rounds — the review agent never mentions 'QualityFlow', '.fullsend', or 'cross-repo' at any point). I'm less certain how often this class of change (security fix reviewed without checking known internal consumers) recurs — this is the first documented instance, so treat it as one clear case rather than an established pattern yet.

Proposed change

In the review harness (harness/review.yaml or the security/cross-repo-contracts sub-agent prompt in fullsend-ai/agents), add a targeted check: when a finding concerns a credential/token/trust-boundary mechanism in fullsend-ai/fullsend, before asserting a 'not reachable in production' or similarly scoped-down severity/reachability claim, the sub-agent should either (a) grep or fetch relevant workflow files from fullsend-ai/.fullsend (the org's primary consumer of this platform's mechanisms) for equivalent usage patterns, or (b) if it cannot check, explicitly qualify the claim as 'not reachable within fullsend-ai/fullsend' rather than an unqualified production-wide statement. This is a narrower, security-specific instance of the general problem tracked in fullsend-ai/fullsend#298 (multi-repo context loading strategy) — the implementer should decide whether to fold it into that broader design or ship it as a standalone, scoped check given #298 is still in the design phase.

Validation criteria

On the next 5 review agent runs in fullsend-ai/fullsend where a finding concerns token/credential/trust-boundary code, confirm the agent's PR comment either references a cross-repo consumer check (e.g., mentions fullsend-ai/.fullsend or another consumer explicitly) or scopes its reachability claim to the reviewed repo rather than making an unqualified 'not reachable in production' statement. Zero unqualified production-wide reachability downgrades on trust-boundary findings without an accompanying cross-repo check or explicit scoping caveat.


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

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