Which branch is the trunk?
The model assumes one integration trunk for the main repository (develop, in many teams). Agents create short-lived task branches from the trunk for isolated changes and open pull requests that target it.
Builds and deployments to shared environments come only from the trunk, never from a release, hotfix, epic, feature or personal branch. Production fixes are made and merged into the trunk first, then deployed through the same approved path. Feature flags separate deploying a change from exposing it.
Branch rules and CI/CD enforce this policy; an instruction in CLAUDE.md would only ask for it. Required status checks, reviews, conversation resolution and protected-branch restrictions are all configurable in the source-control platform. [4]
What evidence does each test layer produce?
| Layer | Tool or method | Required evidence |
|---|---|---|
| Fast static and unit | Linting, type checks, compiler, unit tests, secret and vulnerability scanning | Check ID, commit, pass or fail log and duration |
| Integration and contract | Test harness, integration environments, provider and consumer contracts, API collections (for example Postman) | Environment, collection version, results and failing cases |
| End-to-end and UI | Browser tests (for example Playwright), cross-browser checks, critical user journeys | Traces and artifacts, assertions, screenshots where needed, the tested commit |
| Pre-release | Smoke tests, migration validation, rollout and rollback rehearsal, release approvals | Pipeline run ID, artifact provenance and authorization |
| Production | Service-level objectives and error budgets, logs and traces (for example Datadog), product adoption and user paths (for example Pendo) | Tagged deployment, baseline comparison and a product outcome report |
Browser end-to-end tests run in CI, and API collections can run automatically from the command line with results CI can read. [5][6]
Who may authorize which actions?
Who may authorize an action depends on its risk and the environment it touches. The team's maturity level does not change that.
ARead and advise
Read the requirement · Inspect code · Analyze traces · Draft a proposed plan
Authorization: Scoped read permission; sources and outputs are logged.
BBounded sandbox write
Create a specification or task · Edit a branch · Run isolated tests · Draft a pull request
Authorization: Allowed within the approved task and its tool and branch limits.
CControlled shared change
Merge into the trunk · Modify shared build configuration · Turn on a feature flag
Authorization: Existing branch and release controls and designated approvals.
DHigh impact
Write production data · Expand access · Change security policy · Run a destructive migration
Authorization: A named human owner and separate authorization; no unilateral agent action.
Which system does what?
The method was designed with the stack below, but any tool that fills the same role works.
| System | Role in the workflow |
|---|---|
| Work tracking and requirements (for example Jira) | Intake, acceptance, clarification, task breakdown, status, closure and follow-up. |
| The orchestration layer, code index and knowledge graph | Retrieve current code and architecture, ownership, dependencies and grounded references; hold stage state. |
| Coding agent and skills (for example Claude Code) | Run bounded analysis, specification, code, test and review procedures. |
| MCP servers and plugins | Least-privilege connections to authorized repositories, work systems and execution tools. |
| Source control and CI/CD (for example GitHub) | Branch and pull-request lifecycle, enforced checks, independent review, build provenance and trunk deployment. |
| Browser and API testing (for example Playwright and Postman) | Real browser and API validation with traces, reports and pass or fail results. |
| Monitoring and product analytics (for example Datadog and Pendo) | Evidence of reliability and product behavior that feeds the backlog and knowledge. |
| Model access (for example an inference gateway on Amazon Bedrock) | Controlled, logged access to models with cost limits. |
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.