← ~/pillars / quality-cd/

Quality, delivery and evals

AI amplifies the engineering system you already have: the DORA 2025 evidence, the TDD, review, and pipeline patterns that turn agent throughput into stable delivery, and the evals that tell you whether a change to your setup helped.

by Paul Grycuk

updated 2026-11-08 12 artifacts 5 patterns

~/playbook/quality-cd stage · verify

How do we turn agent throughput into stable delivery, not more rework?

standard
One CI quality gate, identical for agent and human PRs, with no bypass actors.
check
The CI quality gate (build, test, coverage, static analysis) as a required status check on every PR.
skill
TDD with agents, and two-stage agent code review.
metric
Change failure rate and deployment rework rate, per DORA.
failure mode
PR volume rises and the change failure rate rises with it.
~/pillars/quality-cd/artifacts 12
claude-md-eval-conventions.mdx claude-md

CLAUDE.md: eval conventions for a Java team

The eval section of a Java service's CLAUDE.md: where the suites live, which Gradle tasks run them, when the agent must run which, and the test-edit prohibition stated as a hard rule.

✓ verified 2026-07-18

hook-block-test-edits.mdx hook

PreToolUse hook: block test edits

A PreToolUse hook that blocks the agent from editing test and eval files during implementation work, turning the test-edit prohibition from prose into a wall, with an explicit human override.

✓ verified 2026-07-18

hook-stop-eval-gate.mdx hook

Stop hook: eval gate

A Stop hook that refuses to let the session end while the project's regression evals fail, with a per-session attempt cap so a broken suite cannot loop forever.

✓ verified 2026-07-18

prompt-llm-judge-grader.mdx prompt

LLM judge: calibrated grader prompt

A judge prompt template that grades one dimension per judge against a structured rubric, returns a machine-parseable verdict, and ships with the calibration procedure that makes its opinions trustworthy.

✓ verified 2026-07-18

prompt-review-md-customisation.mdx prompt

REVIEW.md: severity and noise control

A REVIEW.md for Claude Code's managed Code Review that recalibrates what Important means, caps nit volume, skips what CI already enforces, and adds the repo's always-check rules.

✓ verified 2026-07-18

prompt-code-review-two-stage.mdx prompt

Two-stage code review prompt

Spec compliance first, correctness and security second, with the candidate-verification step that checks findings against actual code behaviour before they reach a human.

✓ verified 2026-06-12

skill-eval-authoring.mdx skill

Skill: eval authoring

A SKILL.md that walks an agent (or an engineer) through authoring a new eval correctly: pick the grader at the top of the hierarchy, place it in the capability or regression suite, and wire the graduation rule.

✓ verified 2026-07-18

terraform-static-site-oidc.mdx terraform

Terraform: OIDC deploy role for a static site on S3 + CloudFront

Keyless GitHub Actions deploys: an OIDC role scoped to one repo and branch, plus the OAC bucket policy that keeps the origin private. The exact pattern that ships this site.

✓ verified 2026-06-29

workflow-ci-quality-gate-java.mdx workflow

CI quality gate for Java services

Build, test, coverage, and lint as named required checks, identical for agent and human PRs, plus two-tier prompt regression jobs for services that call Bedrock.

✓ verified 2026-06-12

workflow-claude-pr-review.mdx workflow

Claude PR review workflow

Automated review on every PR with claude-code-action@v1: correctness-calibrated prompt, cost controls, and both Anthropic API and AWS Bedrock variants in one workflow.

✓ verified 2026-06-12

workflow-eval-regression-suite.mdx workflow

Workflow: evals as a required check

A GitHub Actions workflow that runs the code-graded regression eval suite whenever agent-facing configuration changes, so prompt and setup edits get the same gate as code.

✓ verified 2026-07-18

workflow-golden-test-set.mdx workflow

Workflow: golden set with gated updates

A CI workflow that compares agent outputs against committed golden baselines and makes updating a golden an explicit, labelled, human-approved act rather than a silent regeneration.

✓ verified 2026-07-18

Copy-paste-complete files, each verified against the primary docs on the date shown.

// patterns

The reading behind the artifacts, one pattern per page.

❯ read the full guide ~3 min · why this pillar exists and how the pieces fit →