Planning material — fictional examples, no production behavior

Autonomous Goal-to-Deployment Delivery Pipeline

Status

Approved long-term direction — implementation begins with a bounded sprint delivery orchestrator.

As of 2026-08-01, implementation is underway in the private todd-brunia/ai-delivery-orchestrator repository. The versioned sprint domain and state machine, PostgreSQL workflow state and orchestration primitives, and secure durable GitHub webhook-intake core are merged. Versioned provider ports, no-network local stubs, and an operating runbook now complete the local-runtime portion of the foundation. An unapplied Terraform foundation now defines protected state, OIDC planning, ECR, and two-AZ networking; no AWS resources or costs have been created. See the implementation checkpoint for exact pull requests, validation evidence, remaining boundaries, and the recommended next slice. Goal decomposition remains deferred until the bounded sprint workflow is proven.

This plan evolves the current GitHub- and Codex-based delivery workflow from issue-level automation toward governed decomposition of a high-level business goal. GitHub remains the system of record and human approval remains required at milestone boundaries.

The word autonomous describes automation between checkpoints. It does not mean unbounded authority, unattended production deployment, or removal of human accountability.

The approved first implementation slice is the governed AI sprint delivery orchestrator. That plan resolves the initial runtime, persistence, deployment, GitHub App, model-routing, and pilot decisions while leaving business-goal decomposition for a later workflow version.

Current and target workflows

Current:

Idea -> Codex discussion -> GitHub issue -> plan -> human approval
     -> AI build -> pull request -> human review -> merge

Target:

Business goal
  -> goal clarification and constraints
  -> epic and dependency proposal
  -> human milestone approval
  -> issue and plan generation
  -> governed build and review loops
  -> pull requests
  -> human review and merge
  -> release/deployment approval
  -> outcome evidence and replanning

Design principles

Architecture

Goal and policy interface
  |
  v
Delivery orchestrator
  +-- decomposition service
  +-- planning service
  +-- issue/epic publisher
  +-- build executor
  +-- validation and review
  +-- checkpoint manager
  +-- evidence and evaluation
  |
  +-- GitHub adapter and system-of-record projection
  +-- repository/workspace adapters
  +-- model and tool adapters
  +-- optional LangGraph runtime

Orchestrator interface

The internal orchestration contract should define:

LangGraph is a plausible first runtime for graph execution and human interrupts, but the stored business state and GitHub projection must not depend on LangGraph-specific node or checkpoint formats.

Work hierarchy and decomposition

Goal
  Milestone
    Epic
      Issue
        Plan
          Build attempt
            Pull request

A goal records the desired business outcome, scope, repositories, constraints, success measures, risk class, budget, deadline when real, and authorized human owners. The decomposition service proposes milestones, epics, dependencies, acceptance criteria, validation evidence, and explicit exclusions.

Decomposition must:

Workflow states

A dedicated state machine should distinguish at least:

draft_goal
  -> awaiting_goal_approval
  -> decomposing
  -> awaiting_milestone_approval
  -> planning
  -> awaiting_plan_approval
  -> ready_to_build
  -> building
  -> validating
  -> awaiting_pr_review
  -> ready_to_merge
  -> merged
  -> awaiting_release_approval
  -> released
  -> measuring
  -> complete

Orthogonal terminal or recovery outcomes include blocked, failed, cancelled, and superseded. Each transition has an allowed actor, required evidence, idempotency key, time, policy version, and GitHub projection.

GitHub labels may expose these states for operators. Webhooks and reconciliation must tolerate duplicate, delayed, missing, and manually changed labels without creating contradictory execution.

Agent responsibilities

Responsibilities are logical roles, not necessarily permanent agents:

Begin with one agent taking multiple roles across isolated attempts if that is simpler. Add specialized or concurrent agents only when evaluation shows a quality, latency, or context benefit. No fixed agent topology is selected by this plan.

Human checkpoints

Required checkpoints initially are:

  1. Goal approval: confirm business outcome, constraints, risk, and budget.
  2. Milestone/decomposition approval: accept the epic and dependency shape before creating an actionable backlog.
  3. Plan approval: authorize a bounded issue for code changes. The first implementation delegates ordinary low-risk plan approval through explicit policy while retaining human approval for sensitive categories.
  4. Pull-request review: inspect changes and evidence before merge.
  5. Release or deployment approval: authorize production consequences.
  6. Outcome review: compare delivered evidence with the original goal and decide whether to continue, replan, or stop.

The sprint-delivery implementation delegates ordinary low-risk plan approval through explicit, versioned policy. Security boundaries, authentication, secrets, permissions, infrastructure, destructive data changes, external communications, billing, production deployment, and policy changes retain human approval unless separately reviewed.

GitHub as system of record

GitHub should contain durable, human-readable projections:

The orchestrator may use a separate durable store for leases, retries, checkpoints, high-volume events, and private operational metadata. It must reconcile that store with GitHub and make discrepancies visible. GitHub labels alone are not sufficient for concurrency control or exactly-once execution.

Policy and safety boundaries

Delivery phases

Phase 1 — Implement the sprint delivery orchestrator

Implement the approved sprint delivery orchestrator for an explicit issue list, including durable states, policy decisions, idempotency, reconciliation, failure recovery, bounded concurrency, automated pull request review, and human merge.

Phase 2 — Add epic decomposition

Accept a reviewed goal, generate a proposed epic and dependency graph, require human approval, and publish traceable GitHub issues without starting builds.

Phase 3 — Orchestrate approved work

Schedule dependency-ready issues through planning, build, validation, review, and pull-request creation with concurrency limits and human plan/PR gates.

Phase 4 — Add outcome feedback

Collect delivery and product evidence, compare it with goal measures, and propose reviewed replanning or termination.

Phase 5 — Evaluate broader autonomy

Use measured failure rates, review findings, rollback performance, cost, and human correction data to decide whether any checkpoint can safely become policy-based. Production deployment remains a separate decision.

Evaluation and operating measures

Open decisions

Explicitly deferred