Skip to content

    The Method · Part 6 of 7

    Policy, testing and approvals

    What stays deterministic and what needs a person: branch policy, the test and verification pyramid, four classes of action risk, and the controls no agent can bypass.

    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?

    LayerTool or methodRequired evidence
    Fast static and unitLinting, type checks, compiler, unit tests, secret and vulnerability scanningCheck ID, commit, pass or fail log and duration
    Integration and contractTest harness, integration environments, provider and consumer contracts, API collections (for example Postman)Environment, collection version, results and failing cases
    End-to-end and UIBrowser tests (for example Playwright), cross-browser checks, critical user journeysTraces and artifacts, assertions, screenshots where needed, the tested commit
    Pre-releaseSmoke tests, migration validation, rollout and rollback rehearsal, release approvalsPipeline run ID, artifact provenance and authorization
    ProductionService-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.

    1. ARead and advise

      Read the requirement · Inspect code · Analyze traces · Draft a proposed plan

      Authorization: Scoped read permission; sources and outputs are logged.

    2. 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.

    3. 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.

    4. 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.

    Action risk and approval model: four classes from read-only advice to high-impact change.

    Which system does what?

    The method was designed with the stack below, but any tool that fills the same role works.

    SystemRole 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 graphRetrieve 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 pluginsLeast-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. [1]DORA, 2025 State of AI-assisted Software Development
    2. [2]DORA, AI Capabilities Model
    3. [3]Anthropic, Steering Claude Code: CLAUDE.md, skills, hooks and subagents (2026)
    4. [4]GitHub, About protected branches
    5. [5]Playwright documentation
    6. [6]Postman, Running API collections and CI
    7. [7]DORA, software delivery performance metrics
    8. [8]Pendo, Power your goal with Pendo
    9. [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.