From 6b12f901c16ab10ccb3cd90b3af9696dc06f4095 Mon Sep 17 00:00:00 2001 From: kmcfaul <45077788+kmcfaul@users.noreply.github.com> Date: Mon, 16 Nov 2026 13:57:14 -0500 Subject: [PATCH 1/5] chore: initialize fullsend per-repo installation --- .fullsend/config.yaml | 21 +++++ .github/workflows/fullsend.yaml | 141 +++++++++++++++++++++++++++++++ .github/workflows/prioritize.yml | 59 +++++++++++++ 3 files changed, 221 insertions(+) create mode 100644 .fullsend/config.yaml create mode 100644 .github/workflows/fullsend.yaml create mode 100644 .github/workflows/prioritize.yml diff --git a/.fullsend/config.yaml b/.fullsend/config.yaml new file mode 100644 index 00000000000..2823fbf18a5 --- /dev/null +++ b/.fullsend/config.yaml @@ -0,0 +1,21 @@ +# fullsend per-repo configuration +# https://github.com/fullsend-ai/fullsend +# +# This file configures fullsend for per-repo installation mode. +# See https://fullsend.sh/docs/guides/infrastructure/layered-config-reference +version: "1" +tracker: + github: + allowed_targets: + repos: + - fullsend-ai/fullsend + - fullsend-ai/agents +runtime: pi +roles: + - review +allowed_remote_resources: + - https://raw.githubusercontent.com/fullsend-ai/fullsend/ + - https://raw.githubusercontent.com/fullsend-ai/agents/ +inference: + project: firefly-868139 + wif_provider: projects/275116376890/locations/global/workloadIdentityPools/uie-github-fullsend-inference/providers/gh-repo-84372347 diff --git a/.github/workflows/fullsend.yaml b/.github/workflows/fullsend.yaml new file mode 100644 index 00000000000..05bfb3a228e --- /dev/null +++ b/.github/workflows/fullsend.yaml @@ -0,0 +1,141 @@ +# This file is managed by fullsend. Do not edit it directly. +# Upstream: https://github.com/fullsend-ai/fullsend/blob/main/internal/scaffold/fullsend-repo/.github/workflows/fullsend.yaml +--- +# fullsend shim workflow (per-repo installation mode) +# Routes events to agent workflows via reusable-dispatch.yml. +# All agent execution happens in this repository's context. +# +# Security: pull_request_target runs the BASE branch version of this workflow, +# preventing PRs from modifying it to exfiltrate credentials. +# This shim never checks out PR code, so it is not vulnerable to "pwn request" +# attacks. +# +# Routing: this shim forwards the raw event context to reusable-dispatch.yml, +# which determines the stage and runs the agent inline (ADR 62). +# Adding a new stage requires only a job in reusable-dispatch.yml — zero changes to this repo. +# +# Concurrency: per-role cancel-in-progress groups live in reusable-dispatch.yml +# stage jobs with -agent- suffix. Roles operate independently (#2452). +name: fullsend + +on: + issues: + types: [opened, edited, labeled] + issue_comment: + types: [created] + pull_request_target: + types: [opened, synchronize, ready_for_review, closed, labeled, unlabeled] + pull_request_review: + types: [submitted] + +permissions: {} + +jobs: + dispatch: + if: >- + (github.event_name != 'pull_request_target' && github.event_name != 'pull_request_review' + || github.event.pull_request.head.ref != 'fullsend/scaffold-install') + && (github.event_name != 'issue_comment' + || startsWith(github.event.comment.body, '/fs-')) + permissions: + actions: write + id-token: write + contents: write + issues: write + packages: read + pull-requests: write + uses: fullsend-ai/fullsend/.github/workflows/reusable-dispatch.yml@v0.56.1 + with: + event_action: ${{ github.event.action }} + mint_url: ${{ vars.FULLSEND_MINT_URL }} + gcp_region: ${{ vars.FULLSEND_GCP_REGION }} + project_number: ${{ vars.FULLSEND_PROJECT_NUMBER }} + runner_image: ubuntu-24.04 + secrets: + FULLSEND_GCP_WIF_PROVIDER: ${{ secrets.FULLSEND_GCP_WIF_PROVIDER }} + FULLSEND_GCP_PROJECT_ID: ${{ secrets.FULLSEND_GCP_PROJECT_ID }} + FULLSEND_OPENAI_API_KEY: ${{ secrets.FULLSEND_OPENAI_API_KEY }} + FULLSEND_INFERENCE_GATEWAY_API_KEY: ${{ secrets.FULLSEND_INFERENCE_GATEWAY_API_KEY }} + OTEL_EXPORTER_OTLP_TRACES_HEADERS: ${{ secrets.OTEL_EXPORTER_OTLP_TRACES_HEADERS }} + OTEL_EXPORTER_OTLP_HEADERS: ${{ secrets.OTEL_EXPORTER_OTLP_HEADERS }} + FULLSEND_JIRA_TOKEN: ${{ secrets.FULLSEND_JIRA_TOKEN }} + FULLSEND_JIRA_EMAIL: ${{ secrets.FULLSEND_JIRA_EMAIL }} + FULLSEND_JIRA_CLIENT_ID: ${{ secrets.FULLSEND_JIRA_CLIENT_ID }} + FULLSEND_JIRA_CLIENT_SECRET: ${{ secrets.FULLSEND_JIRA_CLIENT_SECRET }} + FULLSEND_GITHUB_RUNNER_SECRETS: ${{ secrets.FULLSEND_GITHUB_RUNNER_SECRETS }} + + stop-fix: + # Job-level if: is intentionally coarse — it only screens for the + # /fs-fix-stop command on a PR from a non-bot. The authoritative + # authorization decision (collaborator permission API + PR-author escape + # hatch) is made in the step below, so a maintainer whose author_association + # is not MEMBER (e.g. private org membership) is not filtered out (ADR 0054). + if: >- + github.event_name == 'issue_comment' + && github.event.issue.pull_request + && github.event.comment.user.type != 'Bot' + && github.event.comment.body == '/fs-fix-stop' + runs-on: ubuntu-24.04 + permissions: + contents: read + issues: write + pull-requests: write + steps: + - name: Add fullsend-no-fix label and notify + env: + GH_TOKEN: ${{ github.token }} + PR_NUMBER: ${{ github.event.issue.number }} + REPO: ${{ github.repository }} + COMMENT_USER_LOGIN: ${{ github.event.comment.user.login }} + ISSUE_USER_LOGIN: ${{ github.event.issue.user.login }} + run: | + set -euo pipefail + # ADR 0054: authorize via the collaborator permission API + # (admin|maintain|write), not author_association — the latter grants + # contributor status to anyone with a single merged PR (issue #5421). + # Mirrors has_repo_permission() in reusable-dispatch.yml, including the + # custom-role --jq resolution; keep the two in sync. + # The PR author may always stop the fix agent on their own PR. + authorized=false + if [[ -n "$COMMENT_USER_LOGIN" && "$COMMENT_USER_LOGIN" == "$ISSUE_USER_LOGIN" ]]; then + authorized=true + else + if api_err=$(mktemp); then + # $p is a jq variable; the single quotes are intentional. + # shellcheck disable=SC2016 + if role=$(gh api "repos/$REPO/collaborators/$COMMENT_USER_LOGIN/permission" \ + --jq '.user.permissions as $p + | if (.role_name | type) != "string" or .role_name == "" then "none" + elif (.role_name | IN("admin", "maintain", "write", "triage", "read")) then .role_name + elif $p == null then + if (.permission | IN("admin", "write", "read")) then .permission else "none" end + elif ($p | type) == "object" then + if $p.admin == true then "admin" + elif $p.maintain == true then "maintain" + elif $p.push == true then "write" + elif $p.triage == true then "triage" + elif $p.pull == true then "read" + else "none" end + else "none" end' 2>"$api_err"); then + case "$role" in + admin|maintain|write) authorized=true ;; + esac + else + echo "::warning::Permission API call failed for $COMMENT_USER_LOGIN: $(cat "$api_err")" + fi + rm -f "$api_err" + else + echo "::warning::Failed to create temp file for permission check of $COMMENT_USER_LOGIN" + fi + fi + if [[ "$authorized" != "true" ]]; then + echo "::notice::User $COMMENT_USER_LOGIN is not authorized to stop the fix agent (requires write access or PR authorship)" + exit 0 + fi + gh label create "fullsend-no-fix" --repo "$REPO" \ + --description "Skip bot-triggered fix agent runs" --color "FBCA04" \ + 2>/dev/null || true + gh pr edit "$PR_NUMBER" --repo "$REPO" \ + --add-label "fullsend-no-fix" + gh pr comment "$PR_NUMBER" --repo "$REPO" \ + --body "Fix agent disabled for this PR. Remove the \`fullsend-no-fix\` label or use \`/fs-fix\` to re-engage." diff --git a/.github/workflows/prioritize.yml b/.github/workflows/prioritize.yml new file mode 100644 index 00000000000..f554c86a3df --- /dev/null +++ b/.github/workflows/prioritize.yml @@ -0,0 +1,59 @@ +# This file is managed by fullsend. Do not edit it directly. +# Upstream: https://github.com/fullsend-ai/fullsend/blob/main/internal/scaffold/fullsend-repo/.github/workflows/prioritize.yml +--- +# fullsend-stage: prioritize +name: Prioritize + +permissions: + actions: write + contents: read + id-token: write + issues: write + +on: + workflow_dispatch: + inputs: + event_type: + description: Event type that triggered prioritization + required: true + type: string + source_repo: + description: Repository the event came from (owner/repo) + required: true + type: string + event_payload: + description: JSON-encoded payload of the triggering event + required: true + type: string + project_number: + description: GitHub Projects V2 project number for RICE scoring + required: false + type: string + +concurrency: + group: fullsend-prioritize-${{ inputs.source_repo }}-${{ fromJSON(inputs.event_payload).issue.number || fromJSON(inputs.event_payload).pull_request.number }} + cancel-in-progress: true + +jobs: + prioritize: + uses: fullsend-ai/fullsend/.github/workflows/reusable-prioritize.yml@v0.56.1 + with: + event_type: ${{ inputs.event_type }} + source_repo: ${{ inputs.source_repo }} + event_payload: ${{ inputs.event_payload }} + mint_url: ${{ vars.FULLSEND_MINT_URL }} + gcp_region: ${{ vars.FULLSEND_GCP_REGION }} + project_number: ${{ inputs.project_number || vars.FULLSEND_PROJECT_NUMBER }} + runner_image: ubuntu-24.04 + secrets: + FULLSEND_GCP_WIF_PROVIDER: ${{ secrets.FULLSEND_GCP_WIF_PROVIDER }} + FULLSEND_GCP_PROJECT_ID: ${{ secrets.FULLSEND_GCP_PROJECT_ID }} + FULLSEND_OPENAI_API_KEY: ${{ secrets.FULLSEND_OPENAI_API_KEY }} + FULLSEND_INFERENCE_GATEWAY_API_KEY: ${{ secrets.FULLSEND_INFERENCE_GATEWAY_API_KEY }} + OTEL_EXPORTER_OTLP_TRACES_HEADERS: ${{ secrets.OTEL_EXPORTER_OTLP_TRACES_HEADERS }} + OTEL_EXPORTER_OTLP_HEADERS: ${{ secrets.OTEL_EXPORTER_OTLP_HEADERS }} + FULLSEND_JIRA_TOKEN: ${{ secrets.FULLSEND_JIRA_TOKEN }} + FULLSEND_JIRA_EMAIL: ${{ secrets.FULLSEND_JIRA_EMAIL }} + FULLSEND_JIRA_CLIENT_ID: ${{ secrets.FULLSEND_JIRA_CLIENT_ID }} + FULLSEND_JIRA_CLIENT_SECRET: ${{ secrets.FULLSEND_JIRA_CLIENT_SECRET }} + FULLSEND_GITHUB_RUNNER_SECRETS: ${{ secrets.FULLSEND_GITHUB_RUNNER_SECRETS }} From 2121cad227f3d6623f7f9d5cb231528002894c37 Mon Sep 17 00:00:00 2001 From: Katie McFaul Date: Mon, 16 Nov 2026 14:04:46 -0500 Subject: [PATCH 2/5] update fullsend config agents and ignore cache --- .fullsend/config.yaml | 7 +++++++ .gitignore | 3 +++ 2 files changed, 10 insertions(+) diff --git a/.fullsend/config.yaml b/.fullsend/config.yaml index 2823fbf18a5..592cffe971f 100644 --- a/.fullsend/config.yaml +++ b/.fullsend/config.yaml @@ -13,6 +13,13 @@ tracker: runtime: pi roles: - review +agents: + - name: review + model: google-vertex/gemini-3.8-flash + - name: retro + enabled: false + - name: prioritize + enabled: false allowed_remote_resources: - https://raw.githubusercontent.com/fullsend-ai/fullsend/ - https://raw.githubusercontent.com/fullsend-ai/agents/ diff --git a/.gitignore b/.gitignore index f6034e040eb..b0076bb1306 100644 --- a/.gitignore +++ b/.gitignore @@ -35,3 +35,6 @@ lerna-debug.log # Lerna's generated Nx workspace state and cache /.nx/ + +# For Fullsend +.fullsend/.fullsend-cache From 778826b090e0f776790fae1579a4c842eb0f818f Mon Sep 17 00:00:00 2001 From: Katie McFaul Date: Fri, 20 Nov 2026 09:59:16 -0500 Subject: [PATCH 3/5] add review config and kickoff settings --- .fullsend/config.yaml | 9 +++++++++ .fullsend/review.yaml | 23 +++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 .fullsend/review.yaml diff --git a/.fullsend/config.yaml b/.fullsend/config.yaml index 592cffe971f..41a7b228110 100644 --- a/.fullsend/config.yaml +++ b/.fullsend/config.yaml @@ -16,6 +16,15 @@ roles: agents: - name: review model: google-vertex/gemini-3.8-flash + source: review.yaml + trigger: >- + event.transition.kind == "marked_ready" + || (event.transition.kind == "label_changed" + && event.transition.label.action == "added" + && event.transition.label.name == "ready-for-review") + || (event.transition.kind == "comment_added" + && has(event.transition.comment.command) + && event.transition.comment.command == "/fs-review") - name: retro enabled: false - name: prioritize diff --git a/.fullsend/review.yaml b/.fullsend/review.yaml new file mode 100644 index 00000000000..6197223f917 --- /dev/null +++ b/.fullsend/review.yaml @@ -0,0 +1,23 @@ +# Harness overlay for the review agent. +# Base: fullsend-ai/agents v0.52.0 (matches the repo's fullsend workflow pin). +# Per-key merge: unset keys inherit from the base harness (ADR 0045/0055). +base: https://raw.githubusercontent.com/fullsend-ai/agents/f9908adce062d7e0a37635aac4b6c889835476cc/harness/review.yaml#sha256=f59b05ff7df3e8d009a6b6cf385057cd6b247e42e1fbf52f488d579a674f79d7 + +forge: + github: + env: + runner: + # Skip dependency-bot PRs entirely (cost lever). + REVIEW_SKIP_AUTHORS: "app/renovate,app/dependabot" + # Risk verdict gate: withhold bot approval at risk score >= 3 + # (default 4). Conservative while trust builds; loosen to "4" + # once the team is familiar with the risk judgment. + REVIEW_RISK_VERDICT_THRESHOLD: "3" + # Protected paths: the v0.52.0 harness defaults plus .fullsend/ + # (the directory that configures the agents themselves). + # Changes under these paths cannot be approved by the agent. + REVIEW_PROTECTED_PATHS: ".claude/,.cursor/,.pi/,.gitattributes,.gitignore,.github/,.fullsend/,.pre-commit-config.yaml,AGENTS.md,agents/,api-servers/,CLAUDE.md,CODEOWNERS,Containerfile,Dockerfile,harness/,images/,plugins/,policies/,profiles/,providers/,scripts/,skills/" + sandbox: + REVIEW_SKIP_AUTHORS: "app/renovate,app/dependabot" + REVIEW_RISK_VERDICT_THRESHOLD: "3" + REVIEW_PROTECTED_PATHS: ".claude/,.cursor/,.pi/,.gitattributes,.gitignore,.github/,.fullsend/,.pre-commit-config.yaml,AGENTS.md,agents/,api-servers/,CLAUDE.md,CODEOWNERS,Containerfile,Dockerfile,harness/,images/,plugins/,policies/,profiles/,providers/,scripts/,skills/" \ No newline at end of file From 0e9b75e214bb215fdae18223bd6920be1ccd932d Mon Sep 17 00:00:00 2001 From: Katie McFaul Date: Fri, 20 Nov 2026 10:00:40 -0500 Subject: [PATCH 4/5] edit label logic --- .fullsend/config.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.fullsend/config.yaml b/.fullsend/config.yaml index 41a7b228110..efba14aedf4 100644 --- a/.fullsend/config.yaml +++ b/.fullsend/config.yaml @@ -19,8 +19,7 @@ agents: source: review.yaml trigger: >- event.transition.kind == "marked_ready" - || (event.transition.kind == "label_changed" - && event.transition.label.action == "added" + || (event.transition.kind == "label_changed" && event.transition.label.name == "ready-for-review") || (event.transition.kind == "comment_added" && has(event.transition.comment.command) From 5f93c0663937a273fbe6a6b95d8f573f759b3058 Mon Sep 17 00:00:00 2001 From: Katie McFaul Date: Fri, 20 Nov 2026 13:02:23 -0500 Subject: [PATCH 5/5] update review kickoff to only trigger on approved users --- .fullsend/config.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.fullsend/config.yaml b/.fullsend/config.yaml index efba14aedf4..1096bc92c4d 100644 --- a/.fullsend/config.yaml +++ b/.fullsend/config.yaml @@ -20,10 +20,12 @@ agents: trigger: >- event.transition.kind == "marked_ready" || (event.transition.kind == "label_changed" - && event.transition.label.name == "ready-for-review") + && event.transition.label.name == "ready-for-review" + && event.actor.role in ["admin", "maintain", "write"]) || (event.transition.kind == "comment_added" && has(event.transition.comment.command) - && event.transition.comment.command == "/fs-review") + && event.transition.comment.command == "/fs-review" + && event.actor.role in ["admin", "maintain", "write"]) - name: retro enabled: false - name: prioritize