Skip to content

ci: allow root firebase.json in agent auto-merge - #75

Merged
shairevivo merged 1 commit into
mainfrom
codex/allow-firebase-auto-merge
Nov 10, 2026
Merged

shairevivo merged 1 commit into
mainfrom
codex/allow-firebase-auto-merge

Conversation

@shairevivo

Copy link
Copy Markdown
Collaborator

Summary

Allow the exact root firebase.json path in the agent auto-merge workflow so PR #74 can pass the path guard after a fresh review approval. Its other nine paths are already under src/ or public/. The failed merge job reports PR changes paths outside src/ and public/.

The dot-prefixed path and agent-instruction denylists, head tie, review gate, human veto, file count check, and exact-head merge remain in place. This adds the whole firebase.json file to the allowlist, including future edits to its CSP and other hosting response headers; bot approval will be the merge gate for those edits. The original allowlist was authorized in #11 and did not include this file.

Evidence and validation

  • Producer/consumer matrix — verified: GitHub PR-files API emits the ten changed paths for fix(#73): remove GitHub star text and link from sidebar #74. The workflow accepts paths under src/ and public/, plus exact root firebase.json; it rejects other paths and falls back to human merge. Rename origins are checked too. GitLab and Forgejo are not applicable to this repository-local GitHub Actions workflow.
  • Instruction surfaces — verified: reviewed the event gate, path guard, adjacent workflow comments, Authorize auto-merge workflow and full-auto triage promotion (demo) #11, and fix(#73): remove GitHub star text and link from sidebar #74's changed files. No context assembly, prompt template, agent input document, or re-review dispatch surface is changed.
  • Adversarial re-review scenario — not applicable: this change does not alter re-review dispatch or the diff supplied to reviewers. The path-guard behavioral check rejects a disallowed previous filename, hidden segment, agent instruction path, and nested or suffix lookalikes for firebase.json.
  • Historical constraints — verified: Authorize auto-merge workflow and full-auto triage promotion (demo) #11 established the original allowlist and fail-closed controls. The change retains those controls and makes the new scope explicit above.
  • Behavioral validation — verified locally: the extracted workflow path guard rejected a PR fix(#73): remove GitHub star text and link from sidebar #74 file set before the change and accepts it after; six existing/negative cases also pass. actionlint .github/workflows/auto-merge.yml and git diff --check pass.
  • Live auto-merge — blocked: the new workflow must land on main, then fix(#73): remove GitHub star text and link from sidebar #74 needs a fresh review-agent approval to trigger a new pull_request_review run. This PR changes a workflow file and is outside the auto-merge allowlist, so it needs a human merge.

Co-authored-by: Codex <noreply@openai.com>
Signed-off-by: Shai Revivo <srevivo@redhat.com>
@fullsend-ai-review

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

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 4:00 PM UTC · Completed 4:11 PM UTC

Commit: 9eb724c · View workflow run →

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

@shairevivo
shairevivo merged commit 21df253 into main Nov 10, 2026
12 checks passed
@shairevivo
shairevivo deleted the codex/allow-firebase-auto-merge branch November 10, 2026 16:01
@fullsend-ai-retro

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

Copy link
Copy Markdown

🤖 Finished Retro · ✅ Success · Started 4:02 PM UTC · Completed 4:11 PM UTC

Commit: 9eb724c · View workflow run →

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

@fullsend-ai-retro

Copy link
Copy Markdown

Retro: PR #75 (allow root firebase.json in agent auto-merge)

What happened

Main finding
After #75, agent edits to firebase.json, including CSP changes, can auto-merge on review-agent approval. But the review agent cannot recognise CSP or hosting-header changes as security-sensitive.

  • Fixed directory list. In fullsend-ai/agents v0.54.0, the review agent's risk-tier1.sh decides security sensitivity from a hard-coded list of directory names (auth/, secrets/, crypto/, …). A root file like firebase.json can never match, and repos cannot add their own paths.
  • No CSP or SECURITY.md awareness. No review skill mentions CSP or security headers, or reads SECURITY.md, even though this repo's SECURITY.md lists firebase.json and CSP as in scope.
  • The 1/5 score was the expected output. The "no security sensitivity" wording on fix(#73): remove GitHub star text and link from sidebar #74 is what the skill tells the agent to produce. On fix(#73): remove GitHub star text and link from sidebar #74 the CSP edit happened to tighten the policy, but nothing would have flagged a CSP that loosens it.

Proposals

  1. fullsend-ai/agents: let repos declare extra security-sensitive paths, and recognise hosting/header configs and SECURITY.md scope. This refines Add .fullsend/ (per-repo harness overlays and config) to the default REVIEW_PROTECTED_PATHS agents#1893, the same path-list gap for .fullsend/ found on this repo's PR chore(fullsend): pin triage overlay to agents v0.54.0 #14.
  2. shairevivo/react-shopping-cart: make auto-merge.yml comment on the PR and remove ready-for-merge when a guard rejects a merge.

Skipped as already tracked

Notes for the owner (no issue filed)

Proposals filed

@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

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant