Skip to content

pr-review: trust the same review App names as the review scripts, not a hard-coded slug #2050

Open

Description

@tpouyer

Problem

skills/pr-review/SKILL.md finds the prior risk assessment by the comment's GitHub App:

select(.performed_via_github_app.slug == "fullsend-ai-review" or .user.login == "fullsend-ai-review[bot]")

fullsend-ai-review is only the default. slug is a harness field: a downstream harness can override it through base: composition, and fullsend names Apps <app-set>-<role>, so an install can use another app set. In either case no earlier risk-assessment comment matches. The review then runs as if there were no prior assessment, with no error.

The review scripts already trust a set of names for the review App: <owner>-review, fullsend-ai-review, and ${FULLSEND_APP_SET}-review when set (scripts/lib/review-ops.lib.sh). fullsend also exports the harness slug into the sandbox as FULLSEND_SLUG (internal/cli/run.go, since v0.36.0). The triage agent's step 2e trusts the same kind of set for the triage App, plus $FULLSEND_SLUG (#2037).

What should change

In skills/pr-review/SKILL.md, accept a risk-assessment comment from a Bot whose App slug (or login without [bot]) is one of $FULLSEND_SLUG, <owner>-review, fullsend-ai-review, or ${FULLSEND_APP_SET}-review when set, the same set the review scripts trust.

Done when

  • skills/pr-review/SKILL.md trusts the same review App names as scripts/lib/review-ops.lib.sh.
  • A test or eval case shows that a review harness with an overridden slug finds its own prior risk assessment.

Follow-up from the review of #2037 (@waynesun09).

Activity

  1. fullsend-ai-triage commented on Nov 16, 2026

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 1:57 PM UTC · Completed 1:58 PM UTC

    Commit: 0869ded · View workflow run →

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

  2. fullsend-ai-triage commented on Nov 16, 2026

    @fullsend-ai-triage

    This work builds on the carried-analysis change in #2044, which is still open and unmerged. Step 2e of agents/triage.md on the main branch has no baseline trust rule yet, and the current #2044 diff does not yet include the App-slug fallback this issue describes. Any change here would conflict with that PR and depends on its final wording.

    Once #2044 merges, this issue can be re-triaged and should be ready to implement. The scope would be: pass the posting App's slug into the GitHub sandbox env in harness/triage.yaml, have step 2e trust a GitHub baseline only when performed_via_github_app.slug equals it (keeping the suffix check only as a fallback when the value is unset), and add an eval case or script test showing a comment from a different -triage App is not trusted. Where the slug value comes from on the runner side is a design question for maintainers to settle at that point.

    If #2044 is instead revised to include the slug logic, the remaining work here may shrink to the harness env plumbing and the test.

    Blocked by:

  3. changed the title [-]triage: pin the carried-analysis trust check to the exact posting GitHub App[/-] [+]triage, pr-review: compare comment authors against the effective App slug, not a hard-coded one[/+] on Nov 16, 2026
  4. fullsend-ai-triage commented on Nov 16, 2026

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 2:22 PM UTC · Completed 2:24 PM UTC

    Commit: 0869ded · View workflow run →

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

  5. fullsend-ai-triage commented on Nov 16, 2026

    @fullsend-ai-triage

    This is still blocked. The carried-analysis rewrite of step 2e in agents/triage.md is still open and unmerged, and it is stacked on the GitLab notes change, which is also open. Neither contains any App-slug logic. On main, the triage prompt has no slug check, and the pr-review skill hard-codes the review App slug. Changing the same step now would conflict with that rewrite and depend on its final wording.

    Once the rewrite merges, re-triage this issue. The remaining scope would be:

    • Expose the effective App slug to the triage and review sandboxes from the harness slug.
    • Compare against it in triage step 2e and in skills/pr-review, keeping the current hard-coded slugs only as the default when it is unset.
    • Add a script test showing that an overridden slug trusts comments from that App and not from the default one.

    One design point for maintainers: how the harness slug reaches the sandbox as an environment variable. Harness env blocks expand host variables, so the runner side needs a source for that value. If the rewrite is revised to include the slug logic, the remaining work here may shrink to the env plumbing and the test.

    Blocked by:

    Blocked by:

  6. fullsend-ai-triage commented on Nov 16, 2026

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 2:36 PM UTC · Completed 2:38 PM UTC

    Commit: 0869ded · View workflow run →

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

  7. fullsend-ai-triage commented on Nov 16, 2026

    @fullsend-ai-triage

    This is still blocked. The carried-analysis rewrite of step 2e in agents/triage.md (#2044) is open and unmerged, and it is stacked on the GitLab notes change (#2037), which is also open. Neither adds App-slug logic. On main, step 2e has no slug check, the harness files pin the slug as a literal, and skills/pr-review hard-codes the review App slug. Changing step 2e now would conflict with the rewrite and depend on its final wording.

    Once both PRs merge, re-triage this issue. The remaining scope would be:

    • Expose the effective App slug to the triage and review sandboxes from the harness slug.
    • Compare against it in triage step 2e and in skills/pr-review, keeping the current hard-coded slugs only as the default when it is unset.
    • Add a script test showing that an overridden slug trusts comments from that App and not from the default one.

    Open question for maintainers: how the harness slug reaches the sandbox as an environment variable. Harness env blocks expand host variables, so the runner side needs a source for that value. If #2044 is revised to include the slug logic, the remaining work may shrink to the env plumbing and the test.

    Blocked by:

  8. changed the title [-]triage, pr-review: compare comment authors against the effective App slug, not a hard-coded one[/-] [+]pr-review: find the prior risk assessment by FULLSEND_SLUG, not a hard-coded App slug[/+] on Nov 16, 2026
  9. fullsend-ai-triage commented on Nov 16, 2026

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 3:45 PM UTC · Completed 3:47 PM UTC

    Commit: 0869ded · View workflow run →

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

  10. added
    bug
    ready-to-code
    and removed on Nov 16, 2026
  11. 13 remaining items

  12. fullsend-ai-triage commented on Nov 16, 2026

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 9:16 PM UTC · Completed 9:18 PM UTC

    Commit: 0869ded · View workflow run →

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

  13. added
    pr-open
    and removed
    pr-open
    on Nov 16, 2026
  14. changed the title [-]pr-review: trust the same review App names as the review scripts, not a hard-coded slug[/-] [+]pr-review, triage: trust the review scripts' App names; pass FULLSEND_APP_SET to triage[/+] on Nov 16, 2026
  15. fullsend-ai-triage commented on Nov 16, 2026

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 9:32 PM UTC · Completed 9:34 PM UTC

    Commit: 0869ded · View workflow run →

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

  16. added
    pr-open
    and removed
    pr-open
    on Nov 16, 2026
  17. changed the title [-]pr-review, triage: trust the review scripts' App names; pass FULLSEND_APP_SET to triage[/-] [+]pr-review: trust the same review App names as the review scripts, not a hard-coded slug[/+] on Nov 16, 2026
  18. fullsend-ai-triage commented on Nov 16, 2026

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 9:45 PM UTC · Completed 9:47 PM UTC

    Commit: 0869ded · View workflow run →

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

  19. added
    pr-open
    and removed
    pr-open
    on Nov 16, 2026
  20. self-assigned this
    on Nov 16, 2026
  21. tpouyer commented on Nov 18, 2026

    @tpouyer
    ContributorAuthor

    Holding this on fullsend-ai/fullsend#9602. ADR 0107 identifies a bot by its registered role, not its App name, so the fix should be pr-review checking bot_role == "review" once #9602 lets harness scripts resolve it, rather than a wider name list. #2051 is closed for that reason.

  22. added and removed
    pr-open
    on Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

blockedbug

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions