Skip to content

feat(gate): make gate/risk advisory instead of permanently pending - #772

Merged
sergical merged 2 commits into
mainfrom
feat/advisory-gate-risk
Nov 23, 2026
Merged

sergical merged 2 commits into
mainfrom
feat/advisory-gate-risk

Conversation

@sergical

@sergical sergical commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

Merges by: owner-directed change in this thread (removes gate/risk from required ruleset checks after real CI passes).

Why

Keeping gate/risk in state=pending held watched T3 Code threads in Working after real CI finished, suppressed checks-passed wakes, and hid the Merge action button even on owner-requested PRs.

Before → After

 gate-risk.yml (tier = stop):
-  state = "pending" ("Needed from you: ...")   # blocks auto-merge, keeps T3 stuck in Working
+  state = "success" ("Advisory: ...")         # preserves risk:owner label + PR comment, zero pending checks

 Agent flow (AGENTS.md):
-  open PR -> always gh pr merge --auto        # relied on pending check to stop unasked risk PRs
+  gate risk --json before push & every update -> gh pr merge --auto only if allowed, else disable --auto & full-stop

Proof

  • python3 -m unittest discover -s scripts/gate -p 'test_*.py': 30 tests passed.
  • uvx zizmor@1.32.0 --offline --min-severity medium --min-confidence medium .github/workflows: 0 findings.
  • pnpm run check:fast: passed (typecheck, lint, format:check, react-doctor, knip, workspace tests, clippy).
  • Cross-provider diff-review (gpt-6.1-sol, high effort): 2 rounds, final verdict APPROVE with no findings.

Created with gemini-pro-orchestrator-neon in T3 Code.

Ask Polylane for an impact assessment of this pull request:

Assess with Polylane

@github-actions github-actions Bot added the risk:owner The owner merges this PR; gate/risk stays pending label Nov 23, 2026
@github-actions

Copy link
Copy Markdown

Needed from you and why

Decision: Change the checks or the merge rules?
Why you: These files decide when an agent PR merges without you. An agent must not loosen the rules that judge its own work.
Change: .github/workflows/gate-risk.yml, scripts/gate/README.md, matched by rule gate-policy in .gate/config.toml.

To say yes, merge this PR. To say no, tell the agent. If a rule asks about changes that do not need you, change it in .gate/config.toml. That change also needs you.

@sergical
sergical merged commit 2ee3a4d into main Nov 23, 2026
23 of 24 checks passed
@sergical
sergical deleted the feat/advisory-gate-risk branch November 23, 2026 03:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk:owner The owner merges this PR; gate/risk stays pending

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant