Skip to content

feat(workflows): add production-ready agent release gate (AUT-72) - #175

Closed
derrix060 wants to merge 1 commit into
mainfrom
aut-72-agent-release-gate
Closed

feat(workflows): add production-ready agent release gate (AUT-72)#175
derrix060 wants to merge 1 commit into
mainfrom
aut-72-agent-release-gate

Conversation

@derrix060

Copy link
Copy Markdown
Contributor

AUT-72 — the production-ready agent bar, enforcement half.

ai-review (AUT-427/AUT-444) reviews a diff with an LLM. This gate reviews
the agent against the production-ready bar
with deterministic checks — no LLM, so it's stable, cheap, auditable.

The 9 gates

# Gate How
1 Ownership — named non-platform team declared, checked
2 Registry entry (AUT-51) declared, checked; optional live API verify
3 Security scan (SAST + dep vuln) clean or dated+signed waiver runs in CI
4 Evals pass a recorded threshold (AUT-73) runs in CI
5 Autonomy tier A0–A4 + AI-Policy Risk Tier, matched to eval bar declared, checked
6 Egress via gateway, least-priv grant, no raw pod credential declared, checked
7 SLO defined declared, checked
8 Observability: logs+metrics+alert+named owner declared, checked
9 Cost center tagged + budget capped (KR B2) declared, checked

Fails closed on anything it cannot verify (no manifest, no eval suite,
no scan, unparsable ratio, expired waiver → red + agent-not-production-ready
label). It runs the caller's own make targets (security_command,
eval_command) so the gate stays repo-agnostic; the eval contract is a
machine-readable pass_rate <0..1> on the last non-empty stdout line.

Verified

  • Workflow YAML parses; all inputs/secrets present.
  • The embedded gate script extracted and run against 10 functional cases:
    passing manifest, SLO-off, eval-below-bar, missing manifest, evals-not-configured,
    un-waived findings, valid waiver, expired waiver, platform-team ownership,
    A3-tier with A2 coverage. All behave correctly, including the no-PyYAML
    fallback parser path (waivers list-of-maps parses cleanly).

Rollout plan (KR A3)

Advisory first (like ai-review in AUT-444): callers add one release-gate job;
branch protection to require release-gate / release-gate is a per-repo follow-up.
First enrollment: jake (staffing yokai) in citizen-automations — the cleanest
gateway-migration candidate; tracked by a dedicated ticket.

Deterministic CI/CD gate that checks an agent against the production-ready
agent bar before it ships: ownership, registry, security scan (runs in CI),
evals (runs in CI), risk/autonomy tier, egress/policy, SLO, observability,
cost-center. Fails closed on anything it cannot verify. Sibling of ai-review
(review gate: a diff; release gate: the agent).

- .github/workflows/agent-release-gate.yaml  (reusable workflow)
- examples/agent-release-gate/README.md      (usage + bar + eval contract)
- README.md                                  (section pointer)

Gate script hardened: urllib.parse + datetime imports, waiver expiry
normalized across PyYAML date/str, no-PyYAML fallback parser rewritten
(correct list-of-maps handling; the old one mis-parsed security.waivers).
Copilot AI lite review requested due to automatic review settings September 3, 2026 12:29
@linear

linear Bot commented Sep 3, 2026

Copy link
Copy Markdown

AUT-72

Copilot AI 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.

🟡 Changes recommended

The README introduces a link to examples/agent-release-gate/README.md, but that path does not exist in the repository, resulting in a dead link.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Adds a top-level README entry for a new “Production-Ready Agent Release Gate” example, intended to point readers to further documentation in the examples/ area.

Changes:

  • Add a new README section advertising the Production-Ready Agent Release Gate.
  • Add a link from the README to the (intended) example documentation location.
File summaries
File Description
README.md Adds a new section and link for the agent release gate documentation.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread README.md
Comment on lines +55 to +57
## Production-Ready Agent Release Gate

Read about it in the [examples/agent-release-gate/README.md](examples/agent-release-gate/README.md) file.
@derrix060 derrix060 closed this Sep 3, 2026
@derrix060
derrix060 deleted the aut-72-agent-release-gate branch September 3, 2026 13:47
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.

2 participants