Operate
PLOperating an agent-written system keeps production stability and architectural health intact after pull requests merge: connecting Claude Code, Codex, or Cursor to live telemetry through read-only MCP servers, tracking weekly codebase decay trends, and turning escaped defects into permanent harness controls.
On-call developers and tech leads face a recurring trap as agent throughput rises: every individual pull request passes its checks, yet incidents climb, hotspots grow harder to touch, and postmortems end in one-off prompt tweaks that never prevent a repeat. Operations closes the feedback loop between production reality and the engineering harness.
Choose the right operations guide
Section titled “Choose the right operations guide”| Your operational challenge | Start with | Focus |
|---|---|---|
| Rework, duplication, or complexity is climbing across green PRs | Keeping an agent-written codebase healthy | Five weekly health signals, autonomy-demotion thresholds, and bounded refactor loops |
| Agent incidents repeat and postmortems produce unranked tickets | A failure taxonomy for agent-written changes | Seven failure classes, six control stages, and escape-distance ranking |
| You need visibility into agent runs, tool calls, and cost per PR | Agent observability | Session tracing, attribution, and spend telemetry |
| You want agents reading metrics, logs, and error trackers safely | Model Context Protocol | Read-only observability integrations and token hygiene |
| You need progressive rollout, dry-run gates, and rehearsed rollback | Deploy and release gates · Evidence bundle | Production sign-off contracts and automated rollback triggers |
| Leadership wants organization-wide stability and follow-up fix metrics | Metrics frameworks | Durable reliability measures that survive high agent volume |
The core invariant: read-only diagnosis, gated mutation
Section titled “The core invariant: read-only diagnosis, gated mutation”An agent that queries live metrics, traces, and deployment history diagnoses incidents faster than one working from pasted snippets. Grant that visibility strictly through read-only credentials and viewer-scoped MCP servers—disable mutating tools at the server layer and never hand an interactive or background agent direct production write access.
Let the agent assemble the evidence, reproduce the fault in a test, and open a rollback-ready pull request. Keep every mutation behind deterministic CI plans (terraform plan, kubectl diff, migration dry-runs), policy scanners, and a named human approver. Consult official docs for current MCP registration and policy controls in Claude Code, Codex, and Cursor.
How to verify operational safety and release readiness
Section titled “How to verify operational safety and release readiness”Operational changes require machine-generated proof of live impact before approval:
- Live-state diffs. Require dry-run plans in CI and block merges that unexpectedly destroy or replace stateful resources.
- Recovery and rollback contracts. Every production fix PR names the metric that confirms recovery and the exact command that reverts the change.
- Release-station audit. Run
npx @wondelai/harness-auditto verify Station 6 (Release) checks—CI gates, evidence PR templates, dependency hygiene, and observability—documented in the harness audit checks reference.
Next steps in operations
Section titled “Next steps in operations”Did this guide help you?
One tap, no sign-in.
What will you do with it?
How did it read?
What got in the way? Pick any that apply
Your role?
Thanks. I read every answer. Michał Jaskólski
Did this guide help?
One tap each. Close whenever you like.
no sign-in