Planning material — fictional examples, no production behavior

Governed Codex Automation Client-Sharing Plan

Status

Working direction — not approved for implementation. This plan evolves the internal proposal to centralize GitHub label-driven Codex automation into a solution that can be adopted safely by consultancy clients. It contains no client-specific identities, infrastructure details, credentials, or commercial terms.

Product direction

Offer a versioned, self-managed release of ai-delivery-orchestrator that a client can fork into its own GitHub organization and provision in an AWS account it controls. The release should preserve the demonstrated human-gated workflow while allowing each client to retain control of infrastructure, Terraform state, credentials, policies, repositories, generated code, logs, backups, costs, and final publication decisions.

Do not distribute the implementation directly from ai-consulting-meta. This repository should remain the public planning record. Prepare the dedicated ai-delivery-orchestrator implementation repository for client distribution only after selecting a license and publishing appropriate security, release, installation, upgrade, and support documentation. Its current private and proprietary terms do not grant clients permission to fork or reuse it.

The initial offering is a self-managed accelerator supported through consulting engagements. A hosted control plane or consultancy-operated GitHub App is a separate future product that requires its own threat model, tenant isolation, privacy terms, operations, and incident-response capability.

Client-ready architecture

Forkable, versioned orchestrator

Client-owned infrastructure, adapter, and policy

Each client deployment retains:

Provide versioned Terraform variables and outputs, a configuration schema, validator, example environment, upgrade checker, and onboarding checklist. Reject unknown fields and unsafe combinations so a configuration mistake fails closed rather than silently weakening policy.

Use the client repository provisioning plan as the standard onboarding path for new target repositories. Each client maintains a credential-free node-v1 template and uses an idempotent provisioner from its orchestrator fork to reconcile labels, GitHub governance, App selection, adapter registration, and compatibility. Do not fork the client portal or duplicate its monolithic workflow for each application.

Self-provisioning contract

The supported client path must document and test:

  1. Prerequisite GitHub, AWS, DNS, Terraform, and operator permissions.
  2. Human bootstrap of protected remote state and repository-bound GitHub OIDC trust, including safe adoption of an existing account-level OIDC provider.
  3. Creation and installation of a client-owned GitHub App with the minimum target-repository permissions and allowlist.
  4. Protected Terraform plan/apply, database migration, image rollout, and smoke-test workflows using short-lived credentials.
  5. Budget configuration, monitoring, backup/restore, upgrades, rollback, break-glass disablement, and separately approved teardown.

Acceptance requires a clean synthetic fork and fresh test account. A second authorized operator must be able to provision and recover the deployment using only published documentation. Examples must use placeholders and fictional fixtures, with no account-specific consultancy dependency.

Security and tenant boundary

Service and adoption model

Initial consulting offer

Deliver the solution as a configurable accelerator rather than promising a turnkey autonomous developer. A standard engagement should include:

  1. Repository and governance assessment.
  2. Threat-model and data-boundary review.
  3. Label/state-machine configuration and client-owned credential setup.
  4. Prompt and validation-profile adaptation.
  5. A dry-run using synthetic issues and mocked publishers.
  6. A limited pilot in one non-critical repository.
  7. Maintainer training, operating runbook, rollback procedure, and acceptance review.

State clearly that the client remains responsible for approving scope, reviewing generated code, protecting credentials, merging pull requests, and authorizing deployment. Define supported GitHub plans, repository visibility, runner types, languages, and validation profiles before quoting an engagement.

Implementation sequence

Phase 1 — Extract and stabilize

Phase 2 — Prove portability

Phase 3 — Conduct a client pilot

Phase 4 — Productize only with evidence

Interfaces and compatibility

The v1 public contracts include Terraform inputs and outputs, backend state layout, GitHub OIDC trust conditions, Secrets Manager names and formats, database migrations, operator API schemas, target-repository configuration, and the label-state contract. The implementation must document defaults, required labels, supported events, permissions, retry semantics, migration behavior, and which values may differ between environments.

Provisioning outputs must contain only the identifiers operators need for subsequent configuration and verification. Secrets, source code, prompts, model traces, raw failure output, and temporary credentials must never become Terraform outputs, workflow artifacts, or issue comments. Patch releases may fix bugs without weakening gates; changes that alter authority, infrastructure state, schemas, or workflow transitions require explicit release notes and client reacceptance.

Test and acceptance plan

Assumptions and explicit boundaries