Connect review, release, and production feedback
PR review, production authorization, and rehearsed rollback routes bound automation. Return findings to intent.md and incidents to evals so feedback improves the next cycle.
Jonathan
Founder
Once an agent can implement and verify a change, the next questions concern review, release, and production feedback. They depend on one another: autonomous incident handling can use only the permissions, review routes, and rollback paths established beforehand.
Deploy and Maintain form the latter half of the playbook’s loop. Agents prepare and check work; people retain critical decisions. Production findings follow controlled routes and become requirements and evaluation material for the next cycle.
Review runs both ways while approval stays with people
Claude can review incoming PRs and address comments on its own PRs. Incoming review checks logic, security, and alignment with spec.md, plan.md, and policy. Outgoing review leads to code changes and pushed fixes.
Both directions need records. Code owners assess behavior and risk using the evidence, while branch protection restricts merging. The agent should have no route to bypass approval and push directly to main.
REVIEW.md can specify passes, severity, a cap on minor suggestions, and exclusions such as generated files or checks already enforced by CI. Periodically rate the findings and tune the rules. Repeated mistakes can become instructions or checks applied earlier.
Review then improves execution rules as well as the individual PR.
Enforce release permissions when actions run
Begin pipeline automation with read-only judgment tasks: triage a failed build, assess a flaky test, or draft a changelog. Add writes behind existing gates afterward.
The source requires non-interactive jobs to run in isolation with short-lived, scoped credentials and no standing production credentials. Deployment, status, and rollback can be exposed as MCP tools scoped by environment.
Development can allow greater autonomy. For production releases, the agent prepares the change and a named release manager authorizes it; a hook enforces the gate. The source’s environment-variable example illustrates the mechanism. A real deployment must establish trustworthy approval and permissions that cannot be bypassed.
Rehearse rollback before automation needs it. The agent should invoke a proven operation rather than invent a command with production credentials during an incident.
Production findings enter through those same boundaries
Maintain starts with a metric that has a stable rolling baseline: CI failure rate, post-deploy 5xx rate, or PR cycle time. A deterministic script computes bands and applies drift rules; a model does not decide whether a breach occurred. Version-control and test the detector.
The source configures response tiers as follows:
metric: ci_test_failure_rate
baseline: rolling_30d
rules: western_electric
tiers:
1sigma: { action: log }
2sigma: { action: diagnose, tools: "Read,Grep,Bash(gh run view *)" }
3sigma: { action: propose, routes: [pull_request, runbook:rollback-deploy] }
At 1σ, log. At 2σ, invoke Claude read-only. At 3σ, a change can arrive as a PR or a pre-approved runbook can be triggered. A tier does not grant arbitrary production access; permissions and managed settings constrain direct actions.
Triggers can be scheduled workflows, monitoring webhooks, or cron jobs. Claude runs stateless on a CI runner or in an isolated container and records the anomaly, evidence, proposed outcome, affected systems, and open questions in intent.md. An on-call engineer or service owner triages: fix now, schedule, or dismiss, routing product findings to the product owner.
Headless operation means a person need not start every run. The source also calls for independent checks or adversarial review between stages to decide whether output proceeds or escalates to a person.
Channel authorization and records join the loop
The playbook uses Claude Tag as another entry point: Claude joins an incident channel under its own identity and uses MCP for investigation and verification. The document describes a Slack public beta; that is the status reported by the source.
In its example, an engineer reports rising post-deploy 5xx errors at 22:04. At 22:07, Claude identifies a cache key missing the tenant ID and asks to run a rollback rehearsed that morning. The engineer authorizes it at 22:08. At 22:12, Claude confirms rollback, metric recovery, and a post-mortem in lessons/2026-06-checkout-cache.md.
This is an illustrative conversation, not evidence that every incident can be diagnosed in minutes. It shows how requests, diagnosis, authorization, and remediation stay where the incident was handled.
Monitoring can trigger pre-approved runbooks; the channel example demonstrates explicit authorization for that action. Both depend on established permissions. Small, bounded fixes can arrive as PRs; larger work becomes intent.md and returns to Plan.
Turn a shipped fix into ongoing verification
Incident feedback should extend beyond the post-mortem. The source calls for adding an eval after a fix ships, so future configuration and implementation changes face the same scenario. Dismissed findings help tune bands and reduce noise.
A CI breach can produce a flaky-test quarantine or revert PR for review. Post-deploy errors can trigger the existing rollback pipeline. PR-cycle drift can produce a report for engineering leadership. The response depends on the metric; a breach does not universally require rollback.
Measure time from breach to intent in the triage queue, the share of findings that become merged fixes, and repeat incidents. Timestamp invocations, findings, and triage decisions to compare outcomes.
The four articles follow intent through design, implementation, and verification, then return feedback as new intent and evals. The resulting process can keep absorbing experience: people judge value and risk, while the system preserves evidence and moves work to its next step.
Part 4 of 4, based on Anthropic’s AI-Native SDLC Playbook by Louis Claxton, principally pages 37–52.
- Previous: Give agents team rules and verify that the rules work
- Series overview: When code speeds up, where should the team change next?