All workAndrew Cates.

Project 09 of 84

Agent Ops

Self-hosted, GitHub-native agent-dispatch control plane: a labeled GitHub Issue moved to Next on a Projects v2 board becomes an eval-gated coding-agent PR in the target repo, run on a self-hosted runner the owner controls.

Status
In progress
Area
AI Agent Tooling & MCP
Last activity
2026
Stack
  • Node.js ESM orchestrator
  • GitHub Actions
  • GitHub App installation tokens
  • GitHub GraphQL API
  • js-yaml
  • 1Password Service Account
  • AWS Lambda
  • pnpm workspace

Highlights

  1. Designed and built agent-ops, a self-hosted, GitHub-native agent-dispatch control plane: a Projects v2 status change on a labeled Issue triggers an AWS Lambda relay, which dispatches a workflow on a single self-hosted runner that mints a repo-scoped GitHub App token, runs a coding agent via an MCP bridge, and opens an eval-gated PR.
  2. Proved the full loop live end to end on a pilot repo (dispatch, agent-authored PR, PR-comment revision, merge relaying the task to Done) by routing Claude Code through an MCP bridge 'implement' tool after direct CLI spawns failed authentication on the runner.
  3. Built fail-closed eval gates (task-definition, completeness with up to 3 retries, publish-safety) with typed verdict JSON, fixing a fail-open on reviewer verdict-vocabulary mismatch and adding a hard refusal for placeholder rubrics.
  4. Replaced the legacy Commit Statuses API with a GraphQL statusCheckRollup poll, unblocking an auto-merge path that previously could never observe green CI, and instrumented an append-only reliability ledger for auto-merge decisions, revert detection and runner queue-wait.
  5. Hardened the revision loop after a security review: publish-safety eval now runs before force-push, the gate's public_facing flag is read from the default branch so an agent-written branch cannot disable it, and untrusted PR comments and eval findings are kept out of the eval subject and public HOLD comments.
  6. Fixed a multiline-PEM parsing bug that silently truncated GitHub App private keys and added PR-triggered CI for the dispatch test suite on a shared self-hosted runner group.
  7. Shipped a public Next.js 16 marketing site for agent-ops with tests that tie every product and tool claim to the workflow and orchestrator source, deployed to Vercel only through a manual workflow on an isolated release runner with Git deployments disabled.
  8. Drove the work through ADRs and consensus-reviewed plans (5 epics planned with multi-round architect/critic review, implemented with per-story architect verification), tracked in a beads issue tracker and session dossiers.