Context
Red Eye combines checkout, payments, ticket issuance, refunds, event configuration, and live admissions. An operational symptom can cross several of those boundaries, and a plausible-looking repair can still violate a financial or ticket-state invariant. The design goal is faster investigation without quietly transferring production authority to an agent.
Options considered
Resulting control flow
- 1Collect evidence
Read health, deployment, alert, CI, and runbook context without granting write authority.
- 2Classify the task
Identify restricted areas, required invariants, missing evidence, and the permitted repair lane.
- 3Work in isolation
Plan and patch in a dedicated worktree with a narrow file scope and an explicit rollback path.
- 4Verify and review
Run targeted tests, inspect the diff, and produce a durable evidence packet.
- 5Gate release
Open a PR or escalate. Existing GitHub and Render controls—not the agent—authorize deployment.
Consequences
What this improves
- Production credentials do not need to live in a general agent runtime.
- Every attempted repair leaves plan, diff, verification, review, and rollback evidence.
- Local browser, database, and debugging tools remain available for ambiguous failures.
- Release authority stays legible to the humans accountable for the system.
What this does not solve
- It is not an unattended always-on remediation service.
- Operator workstation health and credential hygiene still matter.
- Local environment drift can complicate reproduction.
- Approval queues can limit recovery speed for high-risk changes.
Revisit conditions
This decision should be revisited when all of the following are true:
- A hardened remote runner can use short-lived, least-privilege credentials.
- The safety benchmark shows sustained recall on restricted areas and required invariants.
- Rollback and canary controls are automated and independently verified.
- Observed incident volume justifies always-on automation over the simpler local operating model.