Repository navigation
chore(fullsend): route review triggering via CEL config - #956
gabipodolnikova merged 2 commits into
Conversation
|
🤖 Finished Review · ✅ Success · Started 12:19 PM UTC · Completed 12:32 PM UTC Commit: Runtime: pi · Model: google-vertex/gemini-3.8-flash → gemini-3.8-flash · Effort: high · Cost: $1.56 |
|
Preview: https://chatbot-pr-chatbot-956.surge.sh A11y report: https://chatbot-pr-chatbot-956-a11y.surge.sh |
|
Looks good to me Previous run<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJyZXF1ZXN0LWNoYW5nZXMiLCJmaW5kaW5ncyI6W3sic2V2ZXJpdHkiOiJsb3ciLCJjYXRlZ29yeSI6ImVkZ2UtY2FzZSIsImZpbGUiOiIuZnVsbHNlbmQvY29uZmlnLnlhbWwiLCJpZCI6ImZfZDA5YjljNzZmZGE3OTcwNCIsImxpbmUiOjE2LCJhY3Rpb25hYmxlIjp0cnVlfV19 --> ReviewFindingsLow
Next steps:
|
|
I've also added this to the react fullsend PR |
|
🤖 Finished Review · ✅ Success · Started 3:20 PM UTC · Completed 3:34 PM UTC Commit: Runtime: pi · Model: google-vertex/gemini-3.8-flash → gemini-3.8-flash · Effort: high · Cost: $1.42 |
|
<!-- fullsend:risk-assessment --> DetailsSmall FullSend configuration change with 2 files and 33 additions by an established contributor, with low churn, no protected paths touched, and clear alignment with the linked issue. |
Superseded by updated review
|
(Updated the react fullsend PR with this as well) |
What this changes
Moves review triggering from the dispatch workflow's built-in rules (PR opened, every push, marked ready) to an explicit CEL trigger on the
reviewagent in.fullsend/config.yaml. After this merges, a review runs only when:ready-for-reviewlabel is added to a PR by someone with write access or above, or/fs-reviewManual triggers (
/fs-reviewcomment andready-for-reviewlabel) additionally require the actor to have write-level repository access (admin,maintain, orwrite) — outside contributors and triage-only users cannot start a review. Themarked_readypath keeps the platform's built-in authorization.Also adds a harness overlay (
.fullsend/review.yaml, pinned to agents v0.52.0) with:REVIEW_SKIP_AUTHORS: "app/renovate,app/dependabot"— dependency-bot PRs are skipped entirelyREVIEW_RISK_VERDICT_THRESHOLD: "3"— bot approval withheld at risk score ≥ 3 (default 4); conservative while trust builds, loosen to "4" once the team is familiar with the risk judgmentREVIEW_PROTECTED_PATHS— harness defaults plus.fullsend/, so the agent's own configuration can never be bot-approved (including this PR)Glossary
Three similarly-named things:
marked_readyis the GitHub draft→ready event (no label);ready-for-reviewis the label requesting a review (humans, or the code agent on its own PRs);ready-for-mergeis the outcome label the reviewer applies. This trigger listens to the first two; the third is output.Why
opened/synchronizeregardless of draft status, costing ~$0.70–1.60 per review on work-in-progress branches. Drafts match none of the trigger conditions above.Reviews are opt-in by design; the intended convention is: open as draft, mark ready when you want eyes on it.
Why a CEL trigger and not a workflow condition
An earlier approach (#954) added a draft check to the
if:condition in.github/workflows/fullsend.yaml. The logic was correct, but that file is managed by fullsend ("Do not edit it directly"):fullsend repos install/github setupreconcile managed files against the declared state, so the edit would be silently reverted on the next convergence run or upgrade — draft reviews would resume with no error or signal.The CEL
triggeron theagents:entry is the documented, supported mechanism (CEL triggers reference), it lives in the repo-owned config that survives reconciliation, and it solves both the draft issue and the every-push re-review cost, which a workflow-level draft check cannot.#954 can be closed as superseded once this lands.
Follow-up after approval (not in this PR)
ready-for-reviewlabel — the label trigger path is included but dormant until the label exists:gh label create "ready-for-review" -R patternfly/chatbot --description "Request a fullsend review" --color "0E8A16"Notes
fullsend lintpasses. One upstream warning: theforge:overlay section is deprecated in favor of CELwhenexpressions (ADR 0088) — still fully functional at this version, may need migrating on a future upgrade.REVIEW_RISK_VERDICT_THRESHOLD: "3"is a decision point — happy to adjust before merge ("4" = the default, "5" = critical-only, "6" = gate off).Validation after merge
/fs-reviewas a write-access user → expect one reviewready-for-reviewlabel to a non-draft PR → expect one review