Skip to content

fullsend: full-auto demo flow (triage → code → review → merge) - #4

Merged
shairevivo merged 8 commits into
mainfrom
fullsend/auto-promote
Nov 4, 2026
Merged

shairevivo merged 8 commits into
mainfrom
fullsend/auto-promote

Conversation

@shairevivo

@shairevivo shairevivo commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

Wires the demo repo for a fully autonomous pipeline: issue → triage → code → review → merge, no human step for changes confined to src/ and public/ with no dot-prefixed paths and no agent instruction files.

Authorized by #11 — its body is the canonical accepted-risk record and matches this design exactly (head 3ca17b7).

What's in here

  1. .fullsend/triage.yaml — repo-local triage harness overlay (stock harness pinned to the v0.53.0 agents release, sha256-verified). TRIAGE_AUTO_CODE_CATEGORIES = bug,performance,documentation,feature; security and other excluded.

  2. .fullsend/config.yaml — registers the overlay.

  3. .github/workflows/auto-merge.yml — on the review agent's approving review of a coder-bot PR, squash-merges the exact approved commit, behind fail-closed controls:

    • Head tie: checks run only while the PR head equals the reviewed commit
    • Gate: review bot's approving review of a non-draft coder-bot PR
    • Human veto: aborts on any reviewer's latest opinionated review being CHANGES_REQUESTED or DISMISSED (bots can dismiss reviews without branch protection, so dismissal is not trusted)
    • Commit binding: --match-head-commit
    • Path allowlist + structural denylist: every changed path (old and new names; count read from the API and validated numeric before use, so neither the 3000-file cap nor a missing count can truncate the check) must be under src//public/, contain no dot-prefixed segment at any depth, and match no agent instruction name (CLAUDE.md, CLAUDE.local.md, AGENTS.md, GEMINI.md)
    • Per-PR concurrency; minimal permissions (contents: write, pull-requests: read); all guards capture and validate API output first (fail-closed)

    Trust boundary (recorded in Authorize auto-merge workflow and full-auto triage promotion (demo) #11 with the five-app permission table): pull_request_review runs the workflow from the PR's merge ref, but no pipeline identity can edit workflow files — none of the five installed fullsend apps holds the workflows permission, and only the coder app has contents: write, so it is the token behind every pipeline push including the fix role's (there is no separate fix app). Branch protection is unavailable (private repo on Free); the controls are enforced by the workflow itself. Production graduation path: workflow_run relay from default-branch code.

Review findings — disposition (rounds 1–7)

Fixed in 3ca17b7 (round 7): count read from gh pr view --json changedFiles and validated all-digits before comparison, closing the silent-skip on a missing changed_files (f_360156c4, f_ca8364d8); structural dot-segment denylist (any dot-prefixed file/dir at any depth) plus the non-dot instruction names incl. CLAUDE.local.md (f_42a2a8e); fix-role identity verified and recorded in #11's app-permission table, with the workflow_run relay noted as the graduation path (f_bc0ee4b).

Fixed in earlier rounds: fail-closed capture-then-test guards; opinionated veto incl. DISMISSED; denylist→allowlist with rename detection; head tie; commit binding and direct merge; human veto; review-state check; concurrency; pull-requests: read; UNKNOWN race; one-shot trigger; BLOCKED weak proxy; other catch-all dropped; comment sweeps; #11 body alignment.

Accepted residual, recorded in #11: check-then-act window; LLM approval as the gate for allowlisted paths on a private repo (limits what merges, not who decides — the documented premise); feature auto-promotion; GITHUB_TOKEN merges not triggering post-merge stages (retro deferred).

Protected path: the human approval it requires is the merge of this PR.

Closes #11

🤖 Generated with Claude Code

…agent PRs

- .fullsend/triage.yaml: repo-local triage overlay widening
  TRIAGE_AUTO_CODE_CATEGORIES to all categories, so every sufficient
  issue is promoted to ready-to-code (demo full-auto flow)
- .github/workflows/auto-merge.yml: enable GitHub auto-merge on PRs
  opened by the coder bot, so a clean review merges automatically

Co-Authored-By: Claude Code <noreply@anthropic.com>
@fullsend-ai-review

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

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 3:42 PM UTC · Completed 3:51 PM UTC

Commit: baa2dad · View workflow run →

Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $3.13

@fullsend-ai-review

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

Copy link
Copy Markdown

Review

Findings

Medium / Low / Info

  • [protected-path] .github/workflows/auto-merge.yml — This PR changes a protected governance path: .github/workflows/auto-merge.yml (under .github/). The PR links issue Authorize auto-merge workflow and full-auto triage promotion (demo) #11 and explains why, but protected-path changes always need human approval, whatever the context. This workflow also removes the human merge gate for coder-bot PRs, so a human should sign off on it explicitly.
  • [fail-open] .github/workflows/auto-merge.yml:39 — The workflow triggers on pull_request_review, so it runs from the PR's merge ref. Every guard (the if: gate, head tie, veto, allowlist, denylist) therefore comes from the PR being judged. This push only added comments (lines 26-30). They rest the boundary on an external claim: that no pipeline identity holds the workflows permission. That claim cannot be checked from the tree, and it does not cover the identity that pushes for the fix role enabled in .fullsend/config.yaml. The code is unchanged, so the earlier medium severity stands.
    Remediation: Run the merge decision from default-branch code (for example, a workflow_run workflow fed by a minimal review-capture workflow), or add an independent default-branch check that refuses to merge PRs touching .github/. At minimum, list in Authorize auto-merge workflow and full-auto triage promotion (demo) #11 the app permissions of every identity that can push to coder-bot PR branches, including the fix role.
  • [privilege-escalation] .github/workflows/auto-merge.yml:123 — A contents: write GITHUB_TOKEN squash-merges into an unprotected default branch, and the only gate is an LLM review agent's approval. The new head tie and denylist limit what can merge, not who decides. A prompt injection into the review agent could still merge arbitrary src/ or public/ code. Authorize auto-merge workflow and full-auto triage promotion (demo) #11 records this as accepted risk, but the exposure is unchanged.
    Remediation: Restore branch protection with a required human approval (public repo or paid plan). Otherwise keep the accepted-risk record current and keep the allowlist as narrow as practical.
  • [logic-error] .github/workflows/auto-merge.yml:104 — The file-count check passes silently when $CHANGED_FILES is empty or not an integer. [ "$count" -ne "" ] fails with "integer expression expected" (status 2). Inside the if ... || ... condition that just counts as false, and set -e does not fire. The pull_request_review payload's simplified pull_request object probably lacks changed_files (not confirmed offline). If so, the documented "verified against the event's file count" control never runs. The -ge 3000 clause still catches truncation at the API cap, so practical risk is limited. See also: [fail-open] at this location.
    Remediation: Get the expected count with gh pr view "$PR_URL" --json changedFiles --jq .changedFiles, reject it unless it is all digits (case "$expected" in ''|*[!0-9]*) exit 1;; esac), then compare.
  • [fail-open] .github/workflows/auto-merge.yml:104 — Same location, from the security side. CHANGED_FILES (line 68) is never validated, so if it is missing the count guard is skipped instead of refusing to merge. count itself is always an integer from grep -c. See also: [logic-error] at this location.
    Remediation: Validate the value before comparing, so a missing value rejects.
  • [fail-open] .github/workflows/auto-merge.yml:116 — The new denylist closes the src/**/CLAUDE.md gap, but other agent instruction and config names can still be auto-merged under src/ or public/. These include CLAUDE.local.md (most relevant with runtime: claude), .gemini/, .clinerules, .windsurfrules, .roo/, .codex/ and .aider*. This matters only if a runtime loads them from subdirectories.
    Remediation: Extend the regex to cover at least CLAUDE\.local\.md and the other runtime instruction names, or deny any dot-prefixed path segment under src//public/ unless explicitly allowlisted.
  • [edge-case] .github/workflows/auto-merge.yml:85 — A check-then-act window remains. The veto (lines 85-92) and file reads run before gh pr merge (line 123). A CHANGES_REQUESTED or a dismissal that lands in between is not honored, because --match-head-commit pins the commit, not the review state. Authorize auto-merge workflow and full-auto triage promotion (demo) #11 records this as an accepted residual.
  • [permission-expansion] .fullsend/triage.yaml:18 — TRIAGE_AUTO_CODE_CATEGORIES adds feature to the stock set, so feature requests auto-promote to ready-to-code with no human step. security and other are excluded. Authorize auto-merge workflow and full-auto triage promotion (demo) #11 authorizes this. Re-evaluate before using this outside the demo.
  • [prompt-injection] .fullsend/triage.yaml:18 — Auto-promotion plus auto-merge gives a path from issue text to merged code in which every step is an LLM decision. The new denylist reduces persistent agent steering. The rest depends on collaborator-only issue creation and dispatch-layer permission gating, which Authorize auto-merge workflow and full-auto triage promotion (demo) #11 asserts and which was not verified here.

Earlier findings

  • .github/workflows/auto-merge.yml (file-list read), edge-case: resolved by change. The head tie (lines 76-80) ties checks to REVIEW_SHA, and the count -ge 3000 refusal (line 104) handles truncation at the API cap.
  • .github/workflows/auto-merge.yml (veto query), fail-open: resolved by change. Line 88 now vetoes on DISMISSED as well as CHANGES_REQUESTED.
  • .github/workflows/auto-merge.yml (path guard), fail-open: reclassified from medium to low. The agent-instruction denylist (line 116) closes the src/CLAUDE.md gap; the remaining name gaps are listed above.

Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR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zdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl81OGVhZGM2MTY5NWMyNGY3Iiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfZmM3ZDlmYjQ1NmQ2MTk2MCIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9LHsiaWQiOiJmX2I1NTk1ZDEyODY3MDdmM2QiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl85Mjc1MmJjN2FkZTBmZTY2Iiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfZDNkOGIzZTExY2E3ZjVhNSIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9LHsiaWQiOiJmX2E2MDRkOWNjMjk2YWQ2MWYiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl81YjA5MjhhNTIzNmNmYTFkIiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn1dfQ== -->

Review

Findings

Medium

  • [fail-open] .github/workflows/auto-merge.yml:28 — The workflow is triggered by pull_request_review. For that event GitHub runs the workflow file from the PR's merge ref (refs/pull/N/merge), not from the base branch, so the PR being guarded supplies its own guard. A coder-bot PR that edits auto-merge.yml (removing Control 2 or Control 4, or adding steps) runs its edited copy when the review bot approves, with a GITHUB_TOKEN that has contents: write. With no branch protection, that token could push non-workflow changes straight to main or perform the merge itself. This undercuts the header's claim (lines 19-22) that the controls are deterministic. Not verifiable from this repo: whether the coder app has the workflows permission needed to push workflow edits, whether GITHUB_TOKEN would be refused when merging a workflow change, and whether the coder bot can already push to an unprotected main (in which case that push access is the real trust boundary).
    Remediation: Do not let the PR's own copy of the workflow be the security boundary. Either trigger from a base-branch context (for example a workflow_run relay that never checks out PR code), or add an early guard that aborts when the PR's file list contains anything under .github/ and keep the guard logic in a base-only reusable workflow pinned by SHA. Also record in issue Authorize auto-merge workflow and full-auto triage promotion (demo) #11 that the coder bot's push access to an unprotected default branch, and whether its app has the workflows permission, are the real trust boundary.

  • [fail-open] .github/workflows/auto-merge.yml:83 — The allowlist ^src/|^public/ lets agent instruction files inside those folders through, for example src/CLAUDE.md, src/AGENTS.md, public/CLAUDE.md, or src/**/.cursorrules. Claude Code loads CLAUDE.md files from subfolders when it reads files there. A coder-bot PR could therefore auto-merge a file that steers later runs of the coder, fix, and review agents, including the review agent whose approval is the only merge gate. That is a persistent prompt injection that gets past the gate it targets. The workflow header (lines 15-18) and issue Authorize auto-merge workflow and full-auto triage promotion (demo) #11 control 4 both say agent instruction files need a human merge, but the code does not enforce that.
    Remediation: After the allowlist, add a denylist check that rejects agent instruction and config file names at any depth, for example grep -qiE '(^|/)(CLAUDE|AGENTS|GEMINI)\.md$|(^|/)\.(claude|cursor|github|fullsend)(/|$)|(^|/)\.cursorrules$', and abort the merge on a match.

  • [protected-path] .github/workflows/auto-merge.yml — This PR modifies a file under the protected path .github/: .github/workflows/auto-merge.yml. Linked issue Authorize auto-merge workflow and full-auto triage promotion (demo) #11 and the PR description explain why, and human approval is always required for protected-path changes, whatever the context.

  • [privilege-escalation] .github/workflows/auto-merge.yml:89 — Unchanged merge step. gh pr merge --squash --match-head-commit uses a contents: write GITHUB_TOKEN, so coder-bot code reaches the default branch with no human step. The only approval is the LLM review bot's, and there is no branch protection. Binding to the approved commit stops code being pushed after approval, but the authority to merge still comes from an automated, model-driven approval. Issue Authorize auto-merge workflow and full-auto triage promotion (demo) #11 explicitly accepts this as demo-scoped risk.
    Remediation: For production use, require a human approval (or branch protection with a required human reviewer) before auto-merge. For the demo, keep the issue Authorize auto-merge workflow and full-auto triage promotion (demo) #11 acceptance and the src/ and public/ limit, and fix the allowlist and trigger gaps, because the gate depends on them.

Low

  • [edge-case] .github/workflows/auto-merge.yml:77 — The allowlist's file list may be incomplete, and it is not tied to the approved commit. (1) The REST endpoint pulls/{n}/files returns at most 3000 files, and --paginate stops at that cap without an error. On a PR with more than 3000 files, the files past the cap are never checked, and the -z check on line 79 only catches an empty list. The header (line 15) and issue Authorize auto-merge workflow and full-auto triage promotion (demo) #11 claim every changed path is checked across all pages. (2) pulls/{n}/files lists files at the current PR head, not at REVIEW_SHA, and --match-head-commit only checks the head at merge time (line 89). A force-push to a clean commit before line 77, then back to the approved commit before line 89, would merge the approved commit without its files being checked. The window is narrow and needs push access.
    Remediation: Compare the number of .filename entries with ${{ github.event.pull_request.changed_files }} and refuse to merge if they differ or the count is 3000 or more. Tie the file list to REVIEW_SHA: read headRefOid and refuse unless it equals REVIEW_SHA before reading files, or build the list with the compare API (compare/{merge_base}...${REVIEW_SHA}).

  • [fail-open] .github/workflows/auto-merge.yml:66 — DISMISSED reviews stay in the per-author latest-opinionated-review calculation and do not veto, so dismissing a human's CHANGES_REQUESTED review removes the veto. The stated rationale (lines 9-11, issue Authorize auto-merge workflow and full-auto triage promotion (demo) #11) is that only a human with write access can dismiss a review. Without branch protection, any token with pull-requests: write can dismiss a review through the API (PUT /pulls/{n}/reviews/{id}/dismissals). That includes the fullsend dispatch job's GITHUB_TOKEN (.github/workflows/fullsend.yaml grants pull-requests: write) and possibly the fullsend agent apps (not verifiable from this repo). A misled or prompt-injected agent could dismiss the human veto before the review bot approves.
    Remediation: Do one of the following: keep counting a DISMISSED review as a veto when a bot dismissed it; drop DISMISSED from the per-author calculation so that author's earlier CHANGES_REQUESTED still counts; or correct the rationale in issue Authorize auto-merge workflow and full-auto triage promotion (demo) #11 to say bot actors can dismiss reviews.

  • [edge-case] .github/workflows/auto-merge.yml:65 — Still present: the review state is read at lines 65-68 and the merge runs at line 89, so a CHANGES_REQUESTED review submitted in between is ignored. --match-head-commit pins the commit, not the review state. Issue Authorize auto-merge workflow and full-auto triage promotion (demo) #11 lists this under 'Accepted risk', so it stays non-actionable.
    Remediation: Accepted residual per Authorize auto-merge workflow and full-auto triage promotion (demo) #11. If it ever needs closing, re-run the veto query right before gh pr merge, or move to a platform-enforced gate.

  • [permission-expansion] .fullsend/triage.yaml:18 — Unchanged. TRIAGE_AUTO_CODE_CATEGORIES widens the stock bug,documentation,performance list by adding feature, for both runner and sandbox (lines 18 and 20), so feature issues go straight to the coder agent without human triage. Issue Authorize auto-merge workflow and full-auto triage promotion (demo) #11 authorizes this; security and other stay excluded. The base harness is pinned by commit SHA and sha256.

  • [prompt-injection] .fullsend/triage.yaml:18 — Unchanged. With wider auto-promotion plus auto-merge, issue text flows through triage, coder, review, and merge with no human checkpoint, so instructions hidden in an issue body can reach the default branch for changes limited to src/ and public/. Issue Authorize auto-merge workflow and full-auto triage promotion (demo) #11 cites mitigations (private repo, collaborator-only issue creation, dispatch-layer permission gating) that this review did not verify. The src/CLAUDE.md allowlist gap makes this worse.

Earlier findings

  • .github/workflows/auto-merge.yml:66 (prior line), fail-open — resolved by change: the path check captures its API output under set -euo pipefail and rejects an empty list (lines 77-82).
  • .github/workflows/auto-merge.yml:57 (prior line), edge-case — resolved by change: the veto output is captured into vetoes before testing (line 65); the grep -q pipeline is gone.
  • .github/workflows/auto-merge.yml:57 (prior line), logic-error — resolved by change: the veto uses each author's latest opinionated review from the full reviews list (lines 65-68).
  • .github/workflows/auto-merge.yml:57 (prior line), fail-open — resolved by change: COMMENTED/PENDING reviews are excluded, so a later comment no longer hides a CHANGES_REQUESTED review.
  • .github/workflows/auto-merge.yml:67 (prior line), fail-open — resolved by change: the denylist is replaced by a src//public/ allowlist (line 83).
  • .github/workflows/auto-merge.yml:66 (prior line), edge-case — resolved by change: paginated REST files API including previous_filename (line 77).
  • .github/workflows/auto-merge.yml:18 (prior line), stale-reference — resolved by change: the header now references the sections that exist in Authorize auto-merge workflow and full-auto triage promotion (demo) #11.

Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR

1 finding(s) below the low severity threshold were not posted.

Previous run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XMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl9hMWJhN2ZmNzA1NjJmNWE3Iiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfNThlYWRjNjE2OTVjMjRmNyIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9XX0= -->

Review

Findings

High

  • [fail-open] .github/workflows/auto-merge.yml:66 — Both new deterministic controls (human veto at lines 57-59, path restriction at lines 66-67) are written as if gh pr view ... | grep -q ...; then exit 1; fi. set -e is suspended inside an if condition, and with pipefail any failing stage makes the condition false. If gh pr view fails (API error, rate limit, token problem, timeout), the check is silently treated as "no veto" / "no protected paths" and gh pr merge on line 73 still runs. Separately, grep -q exits on its first match; if gh is still writing, it can die of SIGPIPE (141) and pipefail turns a positive match into "no match". Both guards fail open. See also: [edge-case] finding at this location.
    Remediation: Capture output first so a gh failure aborts the job under set -e, then test the captured value without a pipeline, e.g. files=$(gh pr view "$PR_URL" --json files --jq '.files[].path') then if grep -qE '<pattern>' <<<"$files"; then ...; exit 1; fi. Do the same for the reviews check.

Medium

  • [edge-case] .github/workflows/auto-merge.yml:57 — Correctness view of the same root cause: any non-zero pipeline exit in either guard counts as "no problem found" and the job proceeds to gh pr merge. Both a gh failure and the grep -q/SIGPIPE race skip the guard. See also: [fail-open] finding at this location.
    Remediation: Capture gh output into a variable (so set -e fails closed), then grep the captured value.
  • [logic-error] .github/workflows/auto-merge.yml:57 — The human veto reads latestReviews, which is each user's latest review of any state, including COMMENTED. A human who requests changes and later leaves a comment-only review or replies in a review thread now has a latest state of COMMENTED. The select(.state == "CHANGES_REQUESTED") filter finds nothing, and the next bot approval merges over a veto that is still active. That contradicts the header's promise (lines 7-9) and issue Authorize auto-merge workflow and full-auto triage promotion (demo) #11. See also: [fail-open] finding at this location.
    Remediation: Base the veto on the latest opinionated review per author: use latestOpinionatedReviews via gh api graphql, or fetch all reviews, drop COMMENTED/PENDING, and take the last per author.
  • [fail-open] .github/workflows/auto-merge.yml:57 — The human veto is weaker than documented. Besides the latestReviews gap: a dismissed CHANGES_REQUESTED review shows as DISMISSED and no longer vetoes, and without branch protection, dismissal is unrestricted. A veto submitted between this check and the merge on line 73 is also ignored. See also: [logic-error] finding at this location.
    Remediation: Use latestOpinionatedReviews (or compute per-author latest non-COMMENTED state), decide whether DISMISSED counts as a veto, and re-check immediately before merging or record the window as residual risk.
  • [fail-open] .github/workflows/auto-merge.yml:67 — The path restriction is a denylist with gaps, and anything it misses is auto-merged on the LLM approval alone. It matches only root-level package(-lock)?.json and Dockerfile. It misses nested manifests, other lockfiles, .npmrc, and code-executing build config that already exists in the repo (babel-plugin-macros.config.js, tsconfig.json, firebase.json). It does not protect agent instruction files (CLAUDE.md, AGENTS.md, .claude/), which would persistently steer later coder and reviewer runs. It does not see renames out of protected directories. gh pr view --json files may also be limited to the first 100 files. See also: [edge-case] finding at this location.
    Remediation: Switch to an allowlist (e.g. auto-merge only when every changed path is under src/ or public/). Get the full file list from the paginated REST endpoint, check both filename and previous_filename, and refuse to merge when the count reaches an API limit.
  • [privilege-escalation] .github/workflows/auto-merge.yml:73 — The workflow still merges to the default branch with contents: write and no human step. For any PR that avoids the denylisted paths, the only gate is the LLM review agent's approval, with no branch protection behind it. This round's veto, path restriction and concurrency controls reduce the blast radius, and issue Authorize auto-merge workflow and full-auto triage promotion (demo) #11 records this as an accepted demo risk, but those controls have the gaps listed above. The compensating claims in Authorize auto-merge workflow and full-auto triage promotion (demo) #11 (private repo, collaborator-only issues, ADR 0054 dispatch gating) cannot be verified from the tree.
    Remediation: Fix the fail-open and denylist gaps, restore branch protection when possible, and require CI checks to pass before merging.
  • [protected-path] .github/workflows/auto-merge.yml — This PR modifies a protected path (.github/workflows/auto-merge.yml). The PR links issue Authorize auto-merge workflow and full-auto triage promotion (demo) #11 and explains the rationale, but protected-path changes always need human approval, whatever the context.

Low / Info

  • [edge-case] .github/workflows/auto-merge.yml:66 — The path check reads only .files[].path, which gives only the new path of a renamed file. A rename out of a protected location (.fullsend/triage.yaml → docs/triage.yaml, Dockerfile → Dockerfile.old) goes undetected, despite the "never auto-merged" guarantee at lines 13-15. See also: [fail-open] finding at this location.
    Remediation: Use gh api --paginate repos/{owner}/{repo}/pulls/N/files --jq '.[] | .filename, (.previous_filename // empty)' and match against both names.
  • [edge-case] .github/workflows/auto-merge.yml:57 — Check-then-act window: a CHANGES_REQUESTED review submitted between the veto read and gh pr merge is not honored. --match-head-commit pins the commit, not the review state. This is residual risk, not a defect.
  • [stale-reference] .github/workflows/auto-merge.yml:18 — The header refers to issue Authorize auto-merge workflow and full-auto triage promotion (demo) #11's "Mitigations section", but the rewritten issue body has no such section. Its relevant sections are "Controls in the shipped design" and "Accepted risk (deliberate, demo-scoped)".
    Remediation: Point the comment at the sections that exist.
  • [permission-expansion] .fullsend/triage.yaml:18 — TRIAGE_AUTO_CODE_CATEGORIES still adds feature beyond the stock categories. With TRIAGE_AUTO_CODE=on inherited from the base, feature requests feed the auto-merge pipeline automatically. security and other are excluded. Authorized by issue Authorize auto-merge workflow and full-auto triage promotion (demo) #11.
  • [prompt-injection] .fullsend/triage.yaml:18 — Auto-promotion depends on an LLM's category label for issue text, so steering text can get a security-sensitive request labeled bug/feature and past the security exclusion, all the way to auto-merge. The external mitigations claimed in Authorize auto-merge workflow and full-auto triage promotion (demo) #11 cannot be verified from the tree.
  • [permission-reduction] .github/workflows/auto-merge.yml:45 — The job grants contents: write plus pull-requests: read under a top-level permissions: {}. PR_URL and REVIEW_SHA pass through env: and are quoted. The ::error:: strings are static. The trigger is pull_request_review, not pull_request_target, and only github.token is referenced.

Earlier findings

  • .github/workflows/auto-merge.yml:31 — [fail-open] — resolved by change: a human-veto check (lines 55-62) now runs before the merge. Its implementation gaps are reported above as new findings.
  • .github/workflows/auto-merge.yml:39 — [workflow-permission] — resolved by change: job pull-requests permission reduced from write to read (line 45).
  • .github/workflows/auto-merge.yml:13 — [stale-reference] — resolved by change: header comment (lines 4-17) rewritten to describe the four controls the workflow actually implements.
  • .github/workflows/auto-merge.yml:32 — [edge-case] — resolved by change: CHANGES_REQUESTED veto (lines 55-62) and per-PR concurrency group (lines 28-30) added.
  • .fullsend/config.yaml:17 — [stale-reference] — resolved by change: comment now names exactly bug/performance/documentation/feature and the security/other exclusions.
  • .fullsend/triage.yaml:4 — [stale-reference] — resolved by change: header now says sufficient issues "in the categories listed below" are promoted, matching lines 18/20.

Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR

1 finding(s) below the low severity threshold were not posted.

Previous run (3)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJyZXF1ZXN0LWNoYW5nZXMiLCJmaW5kaW5ncyI6W3sic2V2ZXJpdHkiOiJtZWRpdW0iLCJjYXRlZ29yeSI6InByaXZpbGVnZS1lc2NhbGF0aW9uIiwiZmlsZSI6Ii5naXRodWIvd29ya2Zsb3dzL2F1dG8tbWVyZ2UueW1sIiwiaWQiOiJmXzRkYjM3ODJlNDZhNzM0MjEiLCJsaW5lIjo0NiwiYWN0aW9uYWJsZSI6dHJ1ZX0seyJzZXZlcml0eSI6Im1lZGl1bSIsImNhdGVnb3J5IjoiZmFpbC1vcGVuIiwiZmlsZSI6Ii5naXRodWIvd29ya2Zsb3dzL2F1dG8tbWVyZ2UueW1sIiwiaWQiOiJmX2ZjN2Q5ZmI0NTZkNjE5NjAiLCJsaW5lIjozMSwiYWN0aW9uYWJsZSI6dHJ1ZX0seyJzZXZlcml0eSI6Im1lZGl1bSIsImNhdGVnb3J5Ijoic3RhbGUtcmVmZXJlbmNlIiwiZmlsZSI6Ii5naXRodWIvd29ya2Zsb3dzL2F1dG8tbWVyZ2UueW1sIiwiaWQiOiJmX2I1NTk1ZDEyODY3MDdmM2QiLCJsaW5lIjoxMywiYWN0aW9uYWJsZSI6dHJ1Z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WQiOiJmXzRkYjM3ODJlNDZhNzM0MjEiLCJzdGF0dXMiOiJvcGVuIn0seyJpZCI6ImZfNDQyMTBiZjJiY2Y4YmI5NyIsInN0YXR1cyI6InJlY2xhc3NpZmllZCJ9LHsiaWQiOiJmX2QzZDhiM2UxMWNhN2Y1YTUiLCJzdGF0dXMiOiJvcGVuIn0seyJpZCI6ImZfOTI3NTJiYzdhZGUwZmU2NiIsInN0YXR1cyI6Im9wZW4ifSx7ImlkIjoiZl8zNmQ4MmVjNGY4ZjlhMGRjIiwic3RhdHVzIjoib3BlbiJ9LHsiaWQiOiJmXzcwZWRjMGE4YWM0NGUwODIiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl83OTU0OWE3NGM2YjVkNGE0Iiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfODNkYWUwYmMyYmU1YzRhZSIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9LHsiaWQiOiJmX2ExYmE3ZmY3MDU2MmY1YTciLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifV19 -->

Review

Findings

Medium

  • [privilege-escalation] .github/workflows/auto-merge.yml:46 — A direct gh pr merge --squash with a contents: write token runs whenever fullsend-ai-review[bot] approves a coder-bot PR. There is no branch protection (lines 11-13), so main is gated only by the LLM review agent's approval. Issue Authorize auto-merge workflow and full-auto triage promotion (demo) #11 authorized removing the human gate on three mitigations: branch protection with stale-approval dismissal, a BLOCKED check before arming, and the promise that it "cannot merge an unprotected PR directly". This head drops all three. --match-head-commit closes the gap between approval and merge, but it does not restore the rest, for example honoring a human's CHANGES_REQUESTED. The PR body is out of date: it still describes --auto arming, the BLOCKED check, branch protection marked as met, and promotion of other.
    Remediation: Either have Authorize auto-merge workflow and full-auto triage promotion (demo) #11 updated to explicitly accept direct merge with no branch protection or BLOCKED check (and correct the PR body), or restore an independent gate. Options include a maintainer label or approval checked via the reviews API, or making protection available and returning to --auto behind required reviews.
  • [fail-open] .github/workflows/auto-merge.yml:31 — The if: gate (lines 31-35) checks only the triggering review. With no branch protection, an outstanding human "request changes" review is ignored, and the next review-bot approval merges the PR anyway. See also: [edge-case] at line 32.
    Remediation: Before merging, query gh pr view "$PR_URL" --json reviewDecision,latestReviews and abort if any reviewer's latest state is CHANGES_REQUESTED.
  • [stale-reference] .github/workflows/auto-merge.yml:13 — The comment says commit binding is "the compensating control, recorded in issue Authorize auto-merge workflow and full-auto triage promotion (demo) #11". Issue Authorize auto-merge workflow and full-auto triage promotion (demo) #11 records branch protection and a BLOCKED check instead, and says the workflow "cannot merge an unprotected PR directly". The code now does the opposite. The authorization record and the deployed controls no longer match, and the PR body still lists branch protection as a met prerequisite.
    Remediation: Update Authorize auto-merge workflow and full-auto triage promotion (demo) #11's Mitigations to describe the shipped design, or fix the comment. Restoring the original controls is preferable if branch protection can be enabled.
  • [protected-path] .github/workflows/auto-merge.yml — The PR adds a file under the protected path .github/. Issue Authorize auto-merge workflow and full-auto triage promotion (demo) #11 gives the rationale, but protected-path changes always need human approval. Because Authorize auto-merge workflow and full-auto triage promotion (demo) #11's mitigations no longer match the workflow, the approver should confirm the authorization still holds.

Low

  • [edge-case] .github/workflows/auto-merge.yml:32 — The gate never checks the PR's overall review state. A merge that fails for a transient reason is not retried until another approval arrives, and there is no concurrency: group, so back-to-back approvals race.
    Remediation: Check reviewDecision/latestReviews before merging; optionally add a concurrency: group keyed on the PR number.
  • [workflow-permission] .github/workflows/auto-merge.yml:39 — Now that --auto is gone, pull-requests: write is likely unnecessary: a direct merge needs contents: write, and reading the PR needs only pull-requests: read.
    Remediation: Reduce to pull-requests: read and confirm the merge still succeeds.
  • [stale-reference] .fullsend/config.yaml:17 — The comment says the overlay promotes "all categories except security", but other is now excluded too.
    Remediation: Say "all categories except security and other", or list the promoted categories.
  • [stale-reference] .fullsend/triage.yaml:4 — The header says every "sufficient" issue is promoted, which contradicts the security/other exclusions at lines 11-13 and 18/20.
    Remediation: Reword to "promotes every sufficient issue in the listed categories".
  • [permission-expansion] .fullsend/triage.yaml:18 — Auto-promotion is still widened to feature (lines 18/20). This is authorized by Authorize auto-merge workflow and full-auto triage promotion (demo) #11 and narrower than what Authorize auto-merge workflow and full-auto triage promotion (demo) #11 allows, since other is dropped and security excluded. The remaining exposure depends on the privilege-escalation finding above.
  • [prompt-injection] .fullsend/triage.yaml:18 — Auto-promoted issue text flows to the coder agent and then to an LLM-gated direct merge with no deterministic control such as path restrictions. Risk is limited because the repo is private, and Authorize auto-merge workflow and full-auto triage promotion (demo) #11 accepts it.
    Remediation (defense in depth): Have the merge workflow refuse PRs touching .github/, .fullsend/ or dependency manifests.

Earlier findings

  • .github/workflows/auto-merge.yml:42 — api-contract — resolved by change: the --auto arming was replaced by a direct merge bound to the reviewed commit (--match-head-commit, line 46).
  • .fullsend/triage.yaml:18 — permission-expansion — reclassified medium → low: other dropped, security excluded, and feature explicitly authorized by Authorize auto-merge workflow and full-auto triage promotion (demo) #11.

Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR
Previous run (4)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJyZXF1ZXN0LWNoYW5nZXMiLCJmaW5kaW5ncyI6W3sic2V2ZXJpdHkiOiJtZWRpdW0iLCJjYXRlZ29yeSI6ImFwaS1jb250cmFjdCIsImZpbGUiOiIuZ2l0aHViL3dvcmtmbG93cy9hdXRvLW1lcmdlLnltbCIsImlkIjoiZl81OGVhZGM2MTY5NWMyNGY3IiwibGluZSI6NDIsImFjdGlvbmFibGUiOnRydWV9LHsic2V2ZXJpdHkiOiJtZWRpdW0iLCJjYXRlZ29yeSI6InByaXZpbGVnZS1lc2NhbGF0aW9uIiwiZmlsZSI6Ii5naXRodWIvd29ya2Zsb3dzL2F1dG8tbWVy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zIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn1dfQ== -->

Review

Findings

Medium

  • [api-contract] .github/workflows/auto-merge.yml:42: The approval is not tied to the commit that gets merged. gh pr merge --auto --squash "$PR_URL" acts on whatever the PR head is when the job runs, not on github.event.review.commit_id. It is also not arm-only: on a CLEAN PR it merges immediately. Suppose a bot pushes after the approval and branch protection or dismiss_stale_reviews is missing or misconfigured (neither can be verified from the repo). Then an unreviewed commit merges. The header comment's claim that no merge can happen before approval "whatever branch protection says" does not hold: the workflow now relies entirely on branch protection for that guarantee.
    Remediation: Add REVIEW_SHA: ${{ github.event.review.commit_id }} to the step env and run gh pr merge --auto --squash --match-head-commit "$REVIEW_SHA" "$PR_URL". Then either add a branch-protection API check or reword the header comment. The old mergeStateStatus == BLOCKED check won't work on an approval event, because a satisfied 1-approval rule leaves the PR CLEAN.
  • [privilege-escalation] .github/workflows/auto-merge.yml:42: Arming now requires an approval from fullsend-ai-review[bot], which closes most of the earlier gap. Two problems remain. First, the merge still isn't bound to the reviewed commit, so pushes after the approval are stopped only by branch protection that can't be verified from the repo. Second, the workflow no longer checks branch protection at all. Issue Authorize auto-merge workflow and full-auto triage promotion (demo) #11 lists "the auto-merge workflow verifies the PR is actually BLOCKED ... and refuses to run otherwise" as an authorizing mitigation, and the latest commit removed that check. The issue's accepted-risk record and this PR's description ("refuses to arm unless the PR is BLOCKED") no longer match the code. See also: the [api-contract] finding at this location.
    Remediation: Bind the merge to github.event.review.commit_id via --match-head-commit. Then either confirm and assert (branch-protection API) that main requires 1 approval with dismiss_stale_reviews=true, or update the mitigations in issue Authorize auto-merge workflow and full-auto triage promotion (demo) #11 and the PR description to match the new design.
  • [permission-expansion] .fullsend/triage.yaml:17: Unchanged. TRIAGE_AUTO_CODE_CATEGORIES adds feature and other, so nearly every sufficient issue is auto-promoted to ready-to-code. Combined with auto-merge, that means issue text reaches main with no human gate. Issue Authorize auto-merge workflow and full-auto triage promotion (demo) #11 authorizes this and excludes security. However, other is a catch-all, and the defense rests on the repo being private, which can't be verified from the tree.
    Remediation: Keep the repo private and restrict who can open issues. Consider dropping other, or limiting it to trusted authors.
  • [protected-path] .github/workflows/auto-merge.yml: The PR modifies a protected governance/infrastructure path: a new workflow holding a contents: write / pull-requests: write token that auto-merges agent-authored PRs. Linked issue Authorize auto-merge workflow and full-auto triage promotion (demo) #11 gives the rationale and records the accepted risk. Protected-path changes always require human approval.

Low

  • [workflow-permission] .github/workflows/auto-merge.yml:14: pull_request_review (unlike the previous pull_request_target) runs the workflow file from the PR's merge ref with a write token. That lets each PR control its own gate condition (lines 28-32). Exploiting this needs an identity with the GitHub workflows permission, which could add a new write-token workflow anyway, so this change adds only a little risk. The repo has no CODEOWNERS file.
    Remediation: Confirm the coder app lacks the workflows permission. Consider requiring human review for .github/workflows/**.
  • [edge-case] .github/workflows/auto-merge.yml:29: The bot logins fullsend-ai-review[bot] and fullsend-ai-coder[bot] appear nowhere else in the repo, so they can't be checked against the installed app slugs. A mismatch silently skips the job: it fails safe, but auto-merge never happens.
    Remediation: Confirm both slugs against a real event payload.
  • [prompt-injection] .fullsend/triage.yaml:17: Unchanged. For feature/other, the category the triage LLM assigns decides auto-promotion. Issue text can steer that classification, for example by framing a security-relevant request as a "feature" to get around the security exclusion.
    Remediation: Treat the LLM-assigned category as untrusted, for example by requiring a trusted author or a human label for feature/other.

Earlier findings

  • .github/workflows/auto-merge.yml:24, privilege-escalation: reclassified high → medium. Arming now requires a review-bot approval event instead of firing as soon as a coder-bot PR opens. The remaining concern is reported above.
  • .github/workflows/auto-merge.yml:37, edge-case: resolved by change. The workflow no longer triggers on opened or reads mergeStateStatus, so the race is gone.
  • .github/workflows/auto-merge.yml:38, fail-open: resolved by change. The BLOCKED-status proxy check was removed, and the approval event now gates the job.
  • .github/workflows/auto-merge.yml:38, logic-error: resolved by change. The BLOCKED proxy was replaced by an explicit check on the reviewer identity and approval state.
  • .fullsend/config.yaml:16, stale-reference: resolved by change. The comment now says "all categories except security", which matches the overlay.

Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR

fullsend-ai-review[bot]

This comment was marked as outdated.

@shairevivo

Copy link
Copy Markdown
Collaborator Author

/fs-fix

@fullsend-ai-coder

fullsend-ai-coder Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

🤖 Finished Fix · ❌ Failure (post-script /home/runner/work/react-shopping-cart/react-shopping-cart/.fullsend/.fullsend-cache/resources/sha256/72bc9e497d4e5e31e33c96c40908d0721bcb4566e49ce23fe37b85ee42ea03f5/scripts/post-fix.sh fa…) · Started 4:10 PM UTC · Completed 4:15 PM UTC

Commit: baa2dad · View workflow run →

Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $1.22

@fullsend-ai-coder

Copy link
Copy Markdown
Contributor

⚠️ Post-fix script failed — Push rejected — workflows permission (exit code 1)

The fix agent completed, but the post-fix script failed before finishing.

Security boundary: the coder app intentionally lacks workflows write permission. Changes to .github/workflows/ must be made outside the agent (e.g., via a manual PR). Re-run the agent without workflow file changes, or apply those changes separately.

Workflow run: https://github.com/shairevivo/react-shopping-cart/actions/runs/41671170064

Details:
To https://github.com/shairevivo/react-shopping-cart.git
! [remote rejected] fullsend/auto-promote -> fullsend/auto-promote (refusing to allow a GitHub App to create or update workflow .github/workflows/auto-merge.yml without workflows permission)
error: failed to push some refs to 'https://github.com/shairevivo/react-shopping-cart.git'
To https://github.com/shairevivo/react-shopping-cart.git
! [remote rejected] fullsend/auto-promote -> fullsend/auto-promote (refusing to allow a GitHub App to create or update workflow .github/workflows/auto-merge.yml without workflows permission)
error: failed to push some refs to 'https://github.com/shairevivo/react-shopping-cart.git'
Please check the workflow logs for full details and retry with /fs-fix if appropriate.

- auto-merge.yml: retry on ready_for_review/reopened, skip drafts,
  job-level permissions, refuse to arm unless the PR is BLOCKED
  (branch protection active) — findings f_c33f178b, f_af736b0a,
  f_ac09e234, f_ba0fad8b
- triage.yaml: drop `security` from TRIAGE_AUTO_CODE_CATEGORIES —
  finding f_c4d2b0d6 (partial: wildcard accepted by design, security
  reports are never auto-fixed in public)

Co-Authored-By: Claude Code <noreply@anthropic.com>
@fullsend-ai-review

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

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 10:00 PM UTC · Completed 10:13 PM UTC

Commit: cf3b5fb · View workflow run →

Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $4.04

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

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

Copy link
Copy Markdown

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

Details

Score unchanged at 2 (moderate) from prior review: Tier 1 remains 2.0 (CI workflow change and one protected path offset by a 3-file, 149-line config-only change with no dependency changes), Tier 2 is 1.0 (two new files, one low-churn file), and Tier 3 is 1.83 (issue #11 authorizes both files with scope matching; minor discussion and rollback-safety signals); weighted composite 0.50×2.0 + 0.30×1.0 + 0.20×1.83 = 1.67 rounds to 2.

Previous run

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

Details

Score unchanged at 2 (moderate) from prior review: Tier 1 rose from 1.75 to 2.0 because the additional 16 lines (99→115) pushed BLAST_RADIUS from small to medium, but the weighted composite (0.50×2.0 + 0.30×1.0 + 0.20×1.67 = 1.63) still rounds to 2, with Tier 2 and Tier 3 unchanged at 1.0 and 1.67.

Previous run (2)

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

Details

Small 3-file, 99-line CI/config-only PR matching the prior assessment: CI_WORKFLOW_CHANGED and a single protected-path hit elevate Tier 1 to 1.75, Tier 2 is minimal at 1.0 (two new files, one low-churn config file), and Tier 3 is lifted to 1.67 by rollback safety risk (auto-merge governance change without a feature flag), yielding 0.50×1.75 + 0.30×1.0 + 0.20×1.67 = 1.51 → 2 (moderate), consistent with the prior score.

Previous run (3)

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

Details

Small 3-file, 72-line CI/config change matching the prior assessment: CI_WORKFLOW_CHANGED and a protected-path hit elevate Tier 1 to 1.75, Tier 2 is minimal (mostly new files, no churn), and Tier 3 is lifted by rollback safety risk (auto-merge behavioral change without a feature flag), yielding 0.50×1.75 + 0.30×1.0 + 0.20×1.67 = 1.51 → 2 (moderate), consistent with the prior score.

Previous run (4)

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

Details

Small 3-file, 67-line CI workflow addition removing the human merge gate for bot-authored PRs; CI_WORKFLOW_CHANGED and a protected-path hit raise Tier 1 above baseline while rollback safety (behavioral change without feature flag) lifts Tier 3, giving 0.50×1.75 + 0.30×1.0 + 0.20×1.67 = 1.51, rounded to 2 (moderate), consistent with the prior assessment.

Previous run (5)

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

Details

Small 3-file, 66-line change adding a CI workflow that removes the human merge gate for bot-authored PRs; CI_WORKFLOW_CHANGED and a protected-path hit raise Tier 1 above baseline and the lack of rollback safety lifts Tier 3, giving 0.50x1.75 + 0.30x1.0 + 0.20x2.17 = 1.61, rounded to 2 (moderate).

fullsend-ai-review[bot]

This comment was marked as outdated.

- Arming no longer happens on PR open. The workflow triggers on the
  review agent's approving review (pull_request_review: submitted), so
  the mergeStateStatus UNKNOWN race on 'opened' is structurally gone
  (finding f_70edc0a8), the BLOCKED weak proxy for 'a review is
  required' is gone - the approval event is the gate (findings
  f_79549a74, f_83dae0bc), and the review -> fix -> re-review loop
  re-arms on every fresh approval.
- config.yaml: fix the stale comment - the overlay promotes all
  categories except security (finding f_a1ba7ff7).

Co-Authored-By: Claude Code <noreply@anthropic.com>
@fullsend-ai-review

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

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 11:13 AM UTC · Completed 11:23 AM UTC

Commit: 2dc7687 · View workflow run →

Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $3.81

fullsend-ai-review[bot]

This comment was marked as outdated.

Addressing the third review round on PR #4:

- auto-merge.yml: the merge is now a direct squash-merge bound to the
  reviewed commit via --match-head-commit ${{ github.event.review.commit_id }}
  (findings f_58eadc61, f_4db3782e). If the PR head moved after the
  approval, the merge fails closed and the next approval retries on the
  new head - the control no longer depends on branch protection, which
  this private Free-plan repo cannot have.
- triage.yaml: drop 'other' from TRIAGE_AUTO_CODE_CATEGORIES - the
  catch-all category no longer auto-promotes (finding f_44210bf2,
  partial; feature stays by design per issue #11).

Co-Authored-By: Claude Code <noreply@anthropic.com>
@fullsend-ai-review

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

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 11:54 AM UTC · Completed 12:05 PM UTC

Commit: fdfccd2 · View workflow run →

Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $4.37

fullsend-ai-review[bot]

This comment was marked as outdated.

Addressing every finding from the fourth review round on PR #4:

- Human veto (f_fc7d9fb, f_92752bc7): the merge aborts when any
  reviewer's latest review is CHANGES_REQUESTED, and a concurrency group
  serializes merge attempts per PR
- Path restrictions (f_36d82ec4 remediation): PRs touching .github/,
  .fullsend/, package manifests or the Dockerfile are never auto-merged
- Permission scope (f_d3d8b3e1): pull-requests:write reduced to read;
  the direct merge needs only contents:write
- Comment sweep (f_b5595d1, f_a604d9c, f_5b0928a): workflow header,
  config.yaml and triage.yaml comments now match the shipped design
- Record alignment (f_4db3782e): issue #11's body is rewritten as the
  canonical accepted-risk record for this exact design, and the PR
  description matches

Co-Authored-By: Claude Code <noreply@anthropic.com>
@fullsend-ai-review

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

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 12:19 PM UTC · Completed 12:30 PM UTC

Commit: d821f82 · View workflow run →

Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $4.18

fullsend-ai-review[bot]

This comment was marked as outdated.

Addressing every finding from the fifth review round on PR #4:

- Fail-closed guards (f_ac900a2, f_7d88e36): both checks capture
  their API output into a variable first, so an API failure aborts
  the job under set -e instead of silently passing the guard; the
  grep -q SIGPIPE race is gone (herestring, no pipeline)
- Opinionated veto (f_3b90d71, f_664b4e9): the veto now uses each
  author's latest opinionated review (COMMENTED/PENDING excluded),
  computed from the full reviews list; DISMISSED reviews do not veto
  (dismissal requires write access - a deliberate human override),
  recorded in #11
- Path allowlist (f_5b263eb, f_f6bd10e): replaced the denylist -
  auto-merge only when every changed path (old and new names, via
  the paginated files API with previous_filename) is under src/ or
  public/; everything else requires a human merge
- Header reference (f_990085b): points at the section names that
  exist in #11
- Check-then-act window (f_b2494e2): recorded as accepted residual
  in #11, per the finding's own framing

Co-Authored-By: Claude Code <noreply@anthropic.com>
@fullsend-ai-review

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

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 12:37 PM UTC · Completed 12:49 PM UTC

Commit: dbff17d · View workflow run →

Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $4.51

fullsend-ai-review[bot]

This comment was marked as outdated.

Addressing every finding from the sixth review round on PR #4:

- Agent-instruction denylist (f_42a2a8e, f_36d82ec4 worsening): the
  allowlist is followed by a denylist for CLAUDE.md / AGENTS.md /
  GEMINI.md, .claude/, .cursor, .github/, .fullsend/ and .cursorrules
  at any depth, on old and new names - a PR can no longer auto-merge
  files that persistently steer later agent runs
- DISMISSED veto (f_1cbd799): a DISMISSED review now vetoes the merge
  (fail-closed). The prior rationale was wrong: without branch
  protection, any pull-requests:write token - including the fullsend
  dispatch job's GITHUB_TOKEN - can dismiss a review, so dismissal is
  not trusted as a human override. Recorded in #11.
- Head tie (f_45a17a9): headRefOid must equal REVIEW_SHA before any
  check runs, tying the file list and reviews to the reviewed commit;
  --match-head-commit re-checks at merge time
- File count check (f_45a17a9): the paginated list's size is compared
  with the event payload's changed_files, so the 3000-file API cap
  cannot silently truncate the list
- Merge-ref trust boundary (f_bc0ee4b): recorded in #11 and the header
  - pull_request_review runs the workflow from the PR's merge ref, and
  the boundary holds because the coder app has no workflows permission
  (verified via GET /apps/fullsend-ai-coder); no pipeline identity can
  modify workflow files

Co-Authored-By: Claude Code <noreply@anthropic.com>
@fullsend-ai-review

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

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 12:58 PM UTC · Completed 1:11 PM UTC

Commit: 8619cde · View workflow run →

Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $4.13

@fullsend-ai-review fullsend-ai-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See the review comment for full details.

Comment thread .github/workflows/auto-merge.yml Resolved
Comment thread .github/workflows/auto-merge.yml Resolved
Comment thread .github/workflows/auto-merge.yml Resolved
Comment thread .github/workflows/auto-merge.yml Resolved
Comment thread .github/workflows/auto-merge.yml Resolved
Comment thread .github/workflows/auto-merge.yml Resolved
Comment thread .fullsend/triage.yaml Resolved
Comment thread .fullsend/triage.yaml Resolved
Addressing the seventh review round on PR #4:

- Count validation (f_360156c4, f_ca8364d8): the expected file count is
  now read from gh pr view --json changedFiles (live data, consistent
  with the head tie) and validated as all digits before comparison -
  a missing or non-numeric value refuses the merge instead of making
  the comparison error read as false inside the if condition
- Structural denylist (f_42a2a8e): any dot-prefixed file or directory
  segment at any depth is refused (covers .claude/, .cursorrules,
  .gemini/, .clinerules, .windsurfrules, .roo/, .codex/, .aider*, and
  any future dot-named instruction file), plus the non-dot instruction
  names CLAUDE.md, CLAUDE.local.md, AGENTS.md, GEMINI.md. No
  one-more-filename gap remains by construction.
- Fix-role record gap (f_bc0ee4b): verified and recorded in #11 - there
  is no separate fix app; of the five installed apps only the coder app
  holds contents:write, so it is the token behind every pipeline push
  including the fix role's, and it has no workflows permission. The
  workflow_run relay is recorded in #11 as the production graduation
  path.

Co-Authored-By: Claude Code <noreply@anthropic.com>
@fullsend-ai-review

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

Copy link
Copy Markdown

🤖 Review · ⚠️ Cancelled · Started 1:20 PM UTC · Ended 1:26 PM UTC

Commit: 3ca17b7 · View workflow run →

Automated review did not complete for this commit. Check the latest review status before merging. If no review is queued or running, comment /fs-review to retry.

@shairevivo

Copy link
Copy Markdown
Collaborator Author

/fs-review

@fullsend-ai-review

Copy link
Copy Markdown

🤖 Finished Review · ⚠️ Cancelled · Started 1:20 PM UTC · Completed 1:26 PM UTC

Commit: 3ca17b7 · View workflow run →

Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high

Automated review did not complete for this commit. Check the latest review status before merging. If no review is queued or running, comment /fs-review to retry.

@fullsend-ai-review

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

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 1:27 PM UTC · Completed 1:39 PM UTC

Commit: 3ca17b7 · View workflow run →

Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $3.87

@shairevivo
shairevivo merged commit 3830c36 into main Nov 4, 2026
97 of 98 checks passed
@shairevivo
shairevivo deleted the fullsend/auto-promote branch November 4, 2026 13:28
@fullsend-ai-retro

fullsend-ai-retro Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

🤖 Finished Retro · ✅ Success · Started 1:30 PM UTC · Completed 1:44 PM UTC

Commit: 3ca17b7 · View workflow run →

Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $4.40

@fullsend-ai-review

Copy link
Copy Markdown

Review skipped — this PR is already merged.

The /fs-review command only reviews open PRs/MRs.

Posted by fullsend post-review check

@fullsend-ai-retro

Copy link
Copy Markdown

Retro: PR #4 (auto-merge workflow + full-auto triage promotion)

Outcome: the human authored this PR with Claude Code. It went through 7 completed fullsend review rounds, and every one was CHANGES_REQUESTED (≈$28 in review cost, ~12 min per round). There was also one /fs-fix run that could never succeed ($1.22). The human then dismissed the round-7 review and merged at 13:28:50 while a review of the final commit 3ca17b7 was still running. 3ca17b7 never got a completed agent review. Agents were resolved from fullsend-ai/agents@v0.53.0 (4a66452).

What worked: the reviewer caught real, substantive defects in a security-sensitive workflow, and the author fixed nearly all of them:

  • fail-open if pipelines
  • missing commit binding / head tie
  • denylist → allowlist with rename detection
  • human veto incl. DISMISSED
  • missing concurrency
  • an unvalidated file count

On this repo's simple coder-bot PRs (#9, #10) the reviewer approved on the first pass.

What went wrong. No new proposals were filed: every root cause below already has an issue, and this PR adds evidence to them.

Autonomy note: this PR makes the review bot's approval the merge gate for src/ and public/ changes. The earlier retro on PR #3 found that review coverage silently degraded (5 of 8 sub-agents failed with model_not_found) and the review still returned a clean verdict. Under auto-merge, a degraded review could now merge code. That risk is tracked upstream in the issues linked from #5 / PR #3's retro. Confirm sub-agent model resolution is healthy, and finish the v0.54.0 upgrade, before relying on auto-merge.

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

Labels

risk/moderate PR risk: moderate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Authorize auto-merge workflow and full-auto triage promotion (demo)

1 participant