What has to exist before agents can work?
The foundation sets the standards every team must meet, gives agents the context they need, packages repeatable behavior as tools, and limits what agents can reach outside the repository.
It is grouped into six capabilities: govern, instruct, ground, equip, connect and operate.
Govern
Constitution, policy and approval rights
- Risk classes and autonomy limits
- Security, privacy and compliance
- Guardrails that are audited and enforced
Instruct
Repository instructions and decisions
- Repository commands and conventions
- Ownership and Definition of Done
- A versioned source of truth
Ground
Code index and knowledge graph
- Code, APIs and dependencies
- Architecture and system context
- Provenance and freshness checks
Equip
Skills, subagents, hooks and plugins
- Reusable stage procedures
- Delegated roles and tool scopes
- Repeatable enforcement checks
Connect
Scoped tools and work systems
- Access to requirements and work items
- Browser and API test execution
- Telemetry and product analytics
Operate
Runtime, pipeline and trunk
- Isolated workspace and credentials
- A protected trunk and release path
- Telemetry, tracing and cost limits
What does each capability require, and who owns it?
| Capability | Required assets | Suggested owner |
|---|---|---|
| Govern | Engineering constitution, security and privacy policy, change classes, autonomy policy, approval authority, logging and the exception procedure. | Engineering and Security |
| Instruct | CLAUDE.md, and AGENTS.md where supported; coding and build conventions; code owners; architecture decisions; Definition of Done. | Repository owners |
| Ground | A code search index, architecture, ownership, API contracts, deployment inventory, a knowledge graph, and provenance and freshness indicators. | Platform and Architecture |
| Equip | Stage skills, specialized subagents, templates, plugins, deterministic hooks and reviewer criteria. | Platform Engineering |
| Connect | Work tracking, source control, documentation, API and browser testing, monitoring and product analytics, through scoped MCP or API integrations. | Platform and application owners |
| Operate | An inference gateway, sandbox, secrets, CI/CD, a protected trunk branch, feature flags, telemetry and cost limits. | SRE and Platform |
Which rules are enforced, and which are guidance?
The foundation separates what an agent is told from what the system enforces. Each layer has a different job:
- Constitution: sets organization-level engineering and security obligations.
- Repository guidance: explains the actual architecture and repository-specific conventions. Keep it concise, versioned and owned.
- Skills and subagents: package repeatable procedures and delegated specializations. They do not enforce organization policy on their own.
- Hooks, permissions, CI, branch rules and deployment controls: enforce prohibitions and quality requirements no matter how the model behaves.
- MCP servers and plugins: grant narrow, task-specific capabilities. Tool descriptions and retrieved text are untrusted input, never higher-level policy.
Anthropic draws the same lines between CLAUDE.md, skills, hooks and subagents, and recommends implementing hard restrictions with permissions or deterministic enforcement rather than natural-language instructions alone. [3]
What must discovery output contain?
Every discovery output names the sources it queried, the code revision, owners, dependency edges, relevant architecture decisions, missing facts, and its confidence and limits.
A code search index grounds the agent in the current repositories, and a knowledge graph connects services to each other and to their owners.
Stale or contradictory material either stops the stage or is recorded as an explicit risk, so the agent does not fill the gap with a guess.
How does the whole system fit together?
The six capabilities feed one orchestration layer that holds stage state, work contracts, the review queue and decision records. Human and agent work use the same six-field contract.
For readability, the graph groups the twelve lifecycle stages into five. Horizontal arrows are handoffs between stage groups; vertical connectors are orchestration and evidence dependencies. Production findings route back to intake and to engineering knowledge.
Standing organizational capabilities
Governance and safety
Constitution, policy and approval rights
Repository instructions
Repository instructions and decisions
Engineering knowledge
Code index and knowledge graph
Agent behaviors
Skills, subagents, hooks and plugins
MCP and connections
Scoped tools and work systems
Runtime and delivery
Runtime, pipeline and trunk
Inputs are versioned, permissioned and checked for readiness.
Orchestration layer and workflow control
Stage state · work contracts · review queue · decision records
Human and agent work use the same six-field contract
Stage groups and systems of record
01–02
Intake and specify
- Read the requirement, clarify scope
- Behavior, nonfunctional requirements and tests
Work item, requirement and specification
03–05
Discover, plan and analyze
- Code index and architecture
- Design and decomposition
- Cross-artifact gaps
Decisions, plan and tasks
06–07
Implement, run and test
- Small changes and unit tests
- CI, API and browser tests
Source control, CI and test runs
08–10
Review, merge and release
- Independent review
- Protected trunk
- Deploy from the trunk
Source control and delivery records
11–12
Observe and learn
- Telemetry and product analytics
- Work item and knowledge updates
Telemetry and follow-on work
Evidence chain: requirement · specification · architecture · tasks · commit · CI and test evidence · pull request · deployment · outcome
Production findings become new work and updated knowledge
The lifecycle page keeps all twelve stages and their individual contracts.
What does a first setup checklist look like?
01Governance and safety
- Engineering constitution and guardrails
- Security, privacy, compliance and role-based access
- Autonomy limits and human approval gates
- Policy ownership, audits and exceptions
02Repository instructions
- CLAUDE.md and agent-specific AGENTS.md
- Conventions, build and test commands
- Architecture decisions and ownership
- Definition of Done and review standards
03Engineering knowledge
- Code and repository search index
- Knowledge graph of services and dependencies
- Architecture, contracts and domain model
- Grounded retrieval with source citations
04Agent behaviors
- Agent roles and agent definition files
- Reusable skills, plugins and hooks
- Requirement, specification, plan and task templates
- Deterministic checks and stop conditions
05MCP and connections
- The orchestration layer's MCP server and other authorized integrations
- Work tracking, source control and documentation sources
- Browser and API test tooling
- Read access to monitoring and product analytics
06Runtime and delivery
- Model access through a controlled inference gateway
- Sandbox, secrets and traceable tool calls
- Trunk branch protection and CI/CD
- Ephemeral environments and feature flags
Agent execution readiness gate
Policies known · context grounded · tools authorized · quality gates enforceable
References
- [1]DORA, 2025 State of AI-assisted Software Development
- [2]DORA, AI Capabilities Model
- [3]Anthropic, Steering Claude Code: CLAUDE.md, skills, hooks and subagents (2026)
- [4]GitHub, About protected branches
- [5]Playwright documentation
- [6]Postman, Running API collections and CI
- [7]DORA, software delivery performance metrics
- [8]Pendo, Power your goal with Pendo
- [9]GitHub Spec Kit, Agentic SDD: constitution, specify, plan, tasks, analyze, implement
From AI-Enabled Software Delivery, version 9.3, October 31, 2026. Brandon Zweifel, Zweifel Tech LLC.