Repository navigation
ci(auto-merge): allow the root README.md in the path allowlist - #97
Conversation
The code agent documents user-visible features in README.md alongside its `src/` change, so the path allowlist blocked every such PR at Control 4 — PR #96 (the Red Hat brand filter) failed with: PR changes paths outside src/, public/, and root firebase.json Add `^README\.md$` to the allowlist. Only the root README.md is matched: `docs/README.md`, `README.markdown`, and `README.md.bak` are still refused, and the dot-prefix and agent-instruction denylists are unchanged. Co-Authored-By: Claude Code <noreply@anthropic.com> Signed-off-by: Shai Revivo <srevivo@redhat.com>
PR Summary by QodoAllow root README.md in the auto-merge path allowlist
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTip of the day💡 Did you know, you can reply 'qodo' on any finding to push back, ask questions, or dig deeper |
|
🤖 Finished Review · ✅ Success · Started 2:46 PM UTC · Completed 2:57 PM UTC Commit: Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $3.72 |
|
Risk Assessment: moderate (2/5) DetailsSmall CI workflow change (1 file, 18 lines) by a known single contributor with minimal churn and no security-sensitive paths, but CI_WORKFLOW_CHANGED and PROTECTED_PATH_COUNT signals elevate the score above routine. |
ReviewFindingsHigh
Medium
Low
Labels: PR modifies a GitHub Actions workflow (.github/workflows/auto-merge.yml). Next steps:
|
|
🤖 Finished Retro · ✅ Success · Started 2:59 PM UTC · Completed 3:26 PM UTC Commit: Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $3.44 |
Retro: PR #97 (allow root README.md in the auto-merge path allowlist)What happened. A human wrote this one-file change to
Review quality. The review was accurate. Its main point, that no authorizing issue was linked, matches how this repo records authority (header comment citing #11). The author confirmed it by creating #98 afterwards. The challenger did useful calibration work:
There were two weaknesses:
Rework / human override. No fix agent ran. On this repo, merging over a standing review is common for governance PRs: 7 of the last 10 reviewed governance PRs that were merged, plus 3 merged before review finished. This is the author's call, and the review correctly blocked auto-merge. #97 closely repeats #75, which widened the allowlist for firebase.json without an authorizing issue, drew the same three overlapping findings, and was merged within minutes. Follow-through gap. The rewritten PR body says the workflow header now cites #98, but the merged code on Evidence for existing issues (not filed again):
Token / time. One proposal (filed for fullsend-ai/agents) covers sub-agent dispatch. The review orchestrator pasted about 68k characters of sub-agent prompts into its Agent calls, so the five sub-agents it meant to launch in parallel started over about 2m20s. It then waited on a fixed Proposals filed
Proposals skipped (target repo not allowed)File manually or update
|
…#100) PR #97 merged at 14:58:11 as commit f026533 before the header fix landed, so `main` still justifies the root README.md allowance with "(PR #96)" — the agent PR this same control refused. The review agent's findings on #97 asked for exactly the opposite, and the merged header now points a later reader at the refusal instead of at the authorization record. Point the header at issue #98, which carries the scope, the accepted risk and the exit condition, and state the convention it was measured against: any further widening links an authorizing issue before merge and cites it here. Comment-only; the Control 4 logic is unchanged. Filed as issue #99 by the retro agent after it read the merged file on main. Signed-off-by: Shai Revivo <srevivo@redhat.com> Co-authored-by: Claude Code <noreply@anthropic.com>
Closes #98.
Why
The code agent documents user-visible features in
README.mdnext to itssrc/change, so Control 4 ofmerge-on-clean-reviewrefused every such PR. PR #96 (the Red Hat brand filter, TSTAPP-1) failed with:Its only offending path was a one-line
README.mdaddition — the other 13 files were all undersrc/.Authorization: issue #98, which amends the issue #11 guard's scope for the root
README.mdon the same pattern as the rootfirebase.jsonallowance (PR #74). It records the scope, the accepted risk, and an exit condition. The workflow header now cites it.What changes
One allowlist alternative plus the comments and the error message:
^README\.md$is anchored, so only the rootREADME.mdis added. Verified still refused:docs/README.md,README.markdown,README.md.bak,package.json. The dot-prefix denylist and the agent-instruction denylist (CLAUDE.md,AGENTS.md,GEMINI.md, and.localvariants) are untouched.Response to review findings
README.md? Checked, and it does not.internal/runtime/runtime.goat27c1d6cedefinesContextBridger/HomeInstructionsBridgerto bridgeAGENTS.md(plusCLAUDE.mdand home instruction files) into agent context; there is noREADMEpath. So README prose reaches an agent only if that agent chooses to read it — the same exposure as anysrc/file it can open. Content hidden from the rendered page (HTML comments,<details>, zero-width/bidi characters) is plainly visible in the raw bytes an agent reads, so it is a human-review concern rather than an injection amplifier. Recorded in Authorize the root README.md in the auto-merge path allowlist #98 under Accepted risk.Testing
actionlint .github/workflows/auto-merge.yml→ clean (exit 0).Merge
This PR edits
.github/, which is outside the allowlist it changes — it needs a human merge, which is the correct outcome for a governance change.