🎓 Claude Certification Prep

Home › CCDV-P › M08

Agent Fleet Operations for Software Delivery

Domain 8 10% of exam 48 practice questions ~24 min read

Run many coding agents in parallel on isolated worktrees, decompose tasks to avoid merge conflicts, and diagnose fleet failures from telemetry; take AI code review from shadow mode to a merge gate; run agents toward goals, on schedules, or on CI/CD events with checkpointing, notification, and escalation; configure Claude Code org-wide with managed settings, MCP allowlists, telemetry, gateways, and governance for Skills/plugins.

Skills measured in this domain:
  • Parallel Agent Orchestration for Engineering Work: isolated worktrees, task decomposition, merge and conflict strategy, diagnosing fleet failures from telemetry
  • Verification and AI Code Review Operations: shadow mode, calibration against human review before merge gating, human oversight
  • Unattended and Event-Driven Agent Operations: goal-, schedule-, or event-driven runs (CI/CD incidents), checkpointing, notification, escalation
  • Organization-Wide Coding Agent Configuration: managed settings and policies, MCP allowlists, telemetry, gateway routing, standards for sharing prompts, Skills, and MCP servers

Domain overview

Domain 8 accounts for 10% of the CCDV-P exam (about 6 of the 60 scored items). The Exam Guide describes the Professional candidate as someone who directs a fleet of coding agents carrying out engineering work under their supervision. Four skills:

Skill Typical item focus Keywords to recognize instantly
Parallel Agent Orchestration Decomposing large work, isolating files, reading fleet telemetry worktree, /batch, agent teams, dynamic workflows, query_source
Verification & AI Code Review Output generated faster than it can be reviewed feedback loop, Stop hook, Code Review, REVIEW.md, shadow mode
Unattended & Event-Driven Agents running toward goals, on schedules, on CI/CD incidents scheduled task, claude -p, dontAsk, resume, control band
Org-Wide Configuration Standardizing for hundreds of engineers managed settings, MCP allowlist, OTLP lock, gateway, Publishing

(Sources: CCDV-P Exam Guide, Domain 8; Claude Certification exam prep: CCDV-P Prep Course — Agent Fleet Operations for Software Delivery)

General multi-agent architecture and durable execution are covered in m01; hooks, sandboxing, and identity in m07; token accounting and span trees in m03. This module only revisits what you need for operating a fleet of coding agents.

Key point

The common thread in D8: when one engineer runs many agents, human attention becomes the bottleneck. Control must come from configuration (hooks, permissions, managed settings, branch protection), not from watching every step. The right number of agents is the number of streams the reviewer can still keep up with.

Parallel agent orchestration

Parallel sessions and subagents

  • A parallel session is a full Claude Code instance working on one task in its own Git worktree. Sessions are unaware of each other; the only things they share are the engineer directing them and CLAUDE.md.
  • A subagent runs inside a session with its own context and tool restrictions, and suits repeated jobs (verifier, researcher, code simplifier). Define it in .claude/agents/*.md (name, description, tools) and commit it to Git.

Start with 2–3 sessions; add more only while review keeps up. (Source: Anthropic Academy: The AI-native SDLC playbook — Parallel sessions and subagents)

Way to run in parallel Who coordinates Operational notes
Subagents Claude, within one conversation Returns summaries; view with /tasks
Agent view (claude agents) You dispatch and come back later Research preview; a session moves itself into its own worktree before editing files
Agent teams A lead assigns and supervises Experimental, off by default; teammates message each other and share a task list; does not use worktrees
Projects Claude opens threads in the cloud Public beta; work spanning several days
Dynamic workflows A script holds the plan Tens to hundreds of agents, cross-checking results; view with /workflows

Supporting tools: worktrees, cross-session messaging, and /batch, which splits a large change across 5 to 30 subagents, each in its own worktree. Running many agents at once multiplies token usage. (Source: Claude Code Docs: Run agents in parallel)

Worktrees, task decomposition, and merge conflicts

  • claude --worktree feature-auth: a separate checkout on its own branch; a clean worktree is removed automatically when the session exits. .worktreeinclude lists git-ignored files (env files, local config) to copy into each worktree; without it, tests in the worktree often fail.
  • Use the plan from plan mode to find independent parts. Tasks touching different files run in parallel; tasks sharing files are grouped into one session and done sequentially. Agent teams have no isolation, so you must assign file ownership to teammates.
  • Each branch becomes a PR through branch protection; agents have no path to push directly to main. Hooks and permissions in the repo apply to every session; actions are logged and attributed to the engineer who ran them. Pre-approve safe commands so sessions do not sit waiting for approval.

(Sources: Anthropic Academy: Claude Code in action — Steering long sessions; Anthropic Academy: The AI-native SDLC playbook — Parallel sessions and subagents, CI/CD integration and deployment)

Exam trap

When many PRs conflict in a shared module, "add more agents with smaller scopes" is wrong: the conflicts come from task splits with overlapping files. Fix the decomposition (file ownership, grouping shared parts into one session) or give each session that shares a checkout its own worktree.

Dynamic workflows for large fan-out

Subagents Dynamic workflow
Who decides the next step Claude, turn by turn The script
Intermediate results The lead's context Variables in the script
What is repeatable The worker definitions The orchestration as well
When interrupted Rerun the turn Resume in the same session

Claude writes a JavaScript script for the Workflow tool: agent() spawns a subagent with a clean context (you can attach a schema and a model), parallel() is a barrier, and pipeline() passes items through independent stages. Logic between steps costs no tokens. Up to 16 concurrent agents and 1,000 agents per run; the script does not touch the filesystem or shell. A failed stage shows [Failed]; a relaunch reuses cached results from agents that already finished. Save scripts in .claude/workflows/ so the team can rerun them. A typical pattern: fan-out + adversarial verification (one verifier per claim, with a skeptic challenging every verdict). Mechanical stages can use a cheaper model. (Source: Claude Cookbooks: Claude Agent SDK — Orchestrate subagents at scale with dynamic workflows)

Diagnosing fleet failures from telemetry

Symptom Claude Code OTel signal How to read it
Cost spikes after fan-out claude_code.cost.usage by query_source (main, subagent), agent.name, skill.name Shows whether cost sits in the workers or the main session
Reconstructing a workflow run Events carrying workflow.run_id (wf_...) Filter by run ID, not by session.id
Delegation tree agent_id, parent_agent_id Which agent spawned which
Many agents hitting API errors api_retries_exhausted (total_attempts, status_code) Fan-out multiplies token usage and easily hits rate limits; check status_code before considering CLAUDE_CODE_MAX_RETRIES (default 10, max 15)
A worker switched models midway subagent_completed.model_swapped, final_model A fallback explains inconsistent quality
Cloud sessions merged together ccr.session.id Group by it instead of session.id
Separating headless from interactive app.entrypoint (cli, sdk-py, claude-in-slack) Requires OTEL_METRICS_INCLUDE_ENTRYPOINT=true

Merge conflicts and rework are read from PR history; they are not in OTel. Leading indicator: concurrent sessions per engineer while review quality holds; lagging: changes merged per week alongside the rework rate. (Sources: Claude Code Docs: Monitoring; Anthropic Academy: The AI-native SDLC playbook — Parallel sessions and subagents)

Scenario example

A 400-file migration runs as a dynamic workflow; the weekly bill triples and many runs show [Failed]. The right move: filter events by workflow.run_id to see which stages failed and were rerun, break down claude_code.cost.usage by query_source and agent.name to see which stages consume the tokens, and only then change the model for the extraction stage or trim redundant verification. "Increase CLAUDE_CODE_MAX_RETRIES" or "go back to a single agent" both ignore the data you already have.

Verification and AI code review operations

Feedback loops: let the agent verify itself

When the "the code works" signal arrives late, a human has to check every agent output and becomes the bottleneck. The playbook recommends:

  • Package the check as one command (make test) that returns a non-zero code on failure; document the command and sample output in CLAUDE.md; set a quantitative target.
  • Bug fixes: write a failing test first, confirm it fails for the right reason, commit; then ask for it to pass without modifying the test.
  • Protect the loop: a hook blocks edits to test files in bug-fix tasks.
  • A verifier subagent packages the final check in a fresh context, uncolored by the assumptions that produced the code.
Where to put a rule Nature Use for
CLAUDE.md Instructions that are always loaded Conventions, build/test commands
Skill Instructions loaded when the description matches Repeated procedures, e.g., a verification skill
Hook Executed code Rules that must never be skipped

(Sources: Anthropic Academy: The AI-native SDLC playbook — Give Claude a feedback loop; Anthropic Academy: Claude Code in action — Verification skills)

Verifying unsupervised runs

The less you watch, the more thoroughly you must verify. Unattended runs should use auto mode rather than bypass permissions, but the auto mode classifier only blocks dangerous actions and does not judge whether the code is correct. Read the diff before the summary (/code-review, then git diff); a Stop hook runs tests and refuses to end the turn on failure, a PostToolUse hook lints after every edit, and exit 2 pushes errors back to Claude; headless runs are checked via the JSON result and exit code; get a cold second opinion from a fresh session or subagent. (Source: Anthropic Academy: Claude Code in action — Trust it: Verifying unsupervised runs)

Two ways to bring Claude into PRs

Criterion Code Review (managed) claude-code-action@v1
Operation Hosted by Anthropic; an Owner enables "Allow code review", installs the Claude GitHub App, and selects repos A workflow in your CI; set up with /install-github-app
Trigger When a PR opens, on every push, or @claude review @claude comments, cron, workflow_dispatch
What it does Review agents analyze the diff against the whole codebase; inline findings tagged with severity, a summary table in the check run Executes changes, pushes commits, reports on a schedule
Limits Does not approve, block, or push fixes; Team/Enterprise plans You handle permissions and routing yourself (use_bedrock, use_vertex, use_foundry)

If you only need review, use the managed service; if Claude needs to do work in CI, use the action. In the managed service, @claude review requests a new review; fix rounds driven by @claude comments run through the action. (Sources: Anthropic Academy: Claude Code in action — GitHub Actions and Code Review; Anthropic Academy: The AI-native SDLC playbook — AI in the PR review loop)

REVIEW.md, shadow mode, and calibration

REVIEW.md at the repo root defines the passes (bugs, security, compliance with spec.md and plan.md), distinguishes Important from Nit, caps nits (for example, at most 5), and excludes generated files and things CI already checks. Findings do not approve or block on their own; branch protection still requires code owners. To gate merges, read the machine-readable severity count table in the check run. Each month a tech lead scores the findings; a defect caught a second time is recorded in CLAUDE.md. (Source: Anthropic Academy: The AI-native SDLC playbook — AI in the PR review loop)

The Exam Guide calls for introducing AI review in shadow mode and calibrating it against human review before merge gating. The sequence synthesized from the sources:

  1. Shadow: AI review runs on every PR but has no gating authority; human review remains the gate. Managed Code Review is in this state by design.
  2. Measure agreement: how many Important findings reviewers confirm, and how many defects found by humans or incidents the AI missed.
  3. Tune REVIEW.md, reduce nits, exclude noisy paths.
  4. Limited gating using the severity count table once agreement is acceptable, while keeping code owner approval.

This logic mirrors LLM-as-judge calibration in m05 (withhold gating authority until it agrees with human labels) and the advice to run a new option "in shadow on a traffic slice before cutover". The official documentation has no dedicated section describing shadow mode for Code Review. (Sources: CCDV-P Exam Guide, Domain 8, Sample Question 2; Claude Docs: Optimizing for cost and intelligence)

Exam trap

Turning on a merge gate based on AI findings on day one, or letting the AI approve in place of code owners, is a classic wrong answer. "Turn off AI review because of false positives" is also wrong: keep it in shadow, measure, tune, and only then grant gating authority. The agent that wrote the code must not be the approver (separation of duties); the PR history is the audit record.

Measure human oversight with: time to first review, share of comments resolved without a human touching the branch, defects caught before merge vs. those that reach production, first-pass CI success, and change failure rate. (Sources: Anthropic Academy: The AI-native SDLC playbook — Give Claude a feedback loop, AI in the PR review loop)

Unattended and event-driven agent operations

The spectrum of options

Mechanism Where it runs Points to remember
Cloud scheduled task (formerly called a routine) Anthropic infrastructure Prompt + repo + connectors + trigger (cron, HTTP POST, GitHub event); research preview; schedule at most hourly; fresh clone from the default branch, pushes to claude/
Claude Tag routine A Slack channel Belongs to the channel, keeps running after its creator leaves
GitHub Actions + action Your runner Scheduled runs do not comment on their own; check the logs
claude -p Your environment Loads like an interactive session; --bare skips auto-discovery and requires ANTHROPIC_API_KEY
Agent SDK Your product query() with allowedTools and a permission mode
Managed Agents scheduled deployment Hosted by Anthropic Beta; starts sessions on a cron schedule

Default to a scheduled task; move down the spectrum when the job needs its own environment or must run more often than hourly. Restrict which branches can be pushed with branch protection or rulesets. /goal <condition> keeps Claude working until a fast evaluator confirms the condition; the evaluator only reads the transcript, so the condition must be verifiable from output (for example, test results). /loop runs on a fixed interval until canceled or after 7 days. (Sources: Anthropic Academy: Claude Code in action — Steering long sessions, Scheduled tasks and headless, GitHub Actions and Code Review; Anthropic Academy: Introduction to Claude Tag — Put recurring work on a schedule)

A bounded scheduled agent

options = ClaudeAgentOptions(
    tools=["Read", "Glob", "Grep"],          # no write tools, no shell
    allowed_tools=[f"Read(/{repo}/**)", "Glob", "Grep"],
    permission_mode="dontAsk",              # anything not listed is denied
    model="claude-sonnet-5-5",              # pin the model
    strict_mcp_config=True,                 # only MCP servers declared here
    setting_sources=[],                     # the reviewed repo cannot configure the reviewer
    max_turns=14, max_budget_usd=0.20,      # exceeded -> error_max_turns / error_max_budget_usd
    resume=last_session_id,
)

Exceeding a limit ends the run with a ResultError; max_budget_usd stops after the budget is exceeded, so it can overshoot slightly. Wrap the cron job in flock -n -E 99 to skip overlapping runs; print easily grepped marker lines and alert when the completion line is missing. (Source: Claude Cookbooks: Claude Agent SDK — Build a Scheduled Repository Reviewer)

Checkpointing: resume or start fresh

Option Fits
New session every run A CI reviewer gating PRs: carries no earlier opinions
New session + previous findings fed in Tracking TODO debt: only needs what the last run reported
Resume (resume=session_id) Nightly dependency audit: compares against everything the last run read

Long-lived sessions cost more and can become anchored to old conclusions; reset them periodically. Remote Control keeps the session on your machine (the machine must stay on); cloud sessions run from a fresh clone, so unpushed commits and local MCP servers do not carry over. For checkpoint artifacts for multi-session agents, see m01. (Sources: Claude Cookbooks: Claude Agent SDK — Build a Scheduled Repository Reviewer; Anthropic Academy tutorial: Choose between a cloud session and Remote Control for a long task)

CI/CD incident first response

  • Deterministic detection: a script computes the mean and σ over 30 days of hourly readings, plus Western Electric rules (4 of the last 5 readings above 1σ, or 8 consecutive readings above the mean). There is no model in the detection step.
  • Tiers in a versioned bands.yaml: 1σ only logs; 2σ calls Claude read-only to diagnose; 3σ lets Claude propose through exactly two paths: open a PR into the review gate, or run a pre-approved runbook such as rollback-deploy.
  • Claude writes its diagnosis to intent.md; the service owner triages it (fix now, schedule, ignore). The fix ships with an eval for the incident. Rollback is the most rehearsed path.
  • A simple CI step: if: failure(), then claude -p reads the build log and judges whether the failure is flaky or real.
  • SRE agent: separate investigation (read tools) from remediation (write tools); a PreToolUse hook checks the content of the change (for example, DB_POOL_SIZE must be within 5–100).

(Sources: Anthropic Academy: The AI-native SDLC playbook — CI/CD integration and deployment, Closing the loop on metrics; Claude Cookbooks: Claude Agent SDK — The SRE Incident Response Agent)

Exam trap

"Let Claude poll the dashboard and decide when to act" sounds more automated but is wrong: detection should be deterministic, the model is invoked only by tier, and even the highest tier goes only through a PR or a pre-approved runbook, never a hotfix pushed straight to production.

Notification and escalation

  • Post only when attention is needed: a Claude Tag routine should state explicitly "if nothing needs attention, do not post", so every post means something.
  • Claude Tag watches the incident channel under its own identity, checks metrics against the baseline through MCP, and writes the postmortem to a versioned lessons file.
  • The reason for ask is shown to the human, the reason for deny is shown to Claude, so a deny must state the path to request approval. Non-interactive runs act under the agent's own identity, separate from the engineer who triggered them.

(Sources: Anthropic Academy: Introduction to Claude Tag — Put recurring work on a schedule; Anthropic Academy: The AI-native SDLC playbook — Hooks as approval gates, CI/CD integration and deployment, Closing the loop on metrics)

Scenario example

At 14:00 the 5xx rate reaches 1.9% against a mean of 0.2% (σ 0.02); a release went out at 13:52. The script prints tier 3sigma. The agent runs the approved rollback-deploy runbook, confirms the previous version is live, and writes an intent.md stating its hypothesis (the cache was set to 0, and the downstream system can only handle 50 requests/second). It does not fix code on main by itself; the fix goes through a PR and leaves behind an eval that checks the cache.

Organization-wide coding agent configuration

Managed settings

The platform team deploys managed settings through MDM or the admin console (server-managed) or as a file on the machine; engineers cannot override them. Team hooks live in .claude/settings.json; non-negotiable hooks live in managed settings. (Source: Anthropic Academy: The AI-native SDLC playbook — Hooks as approval gates)

Managed key Effect
allowManagedPermissionRulesOnly, disableBypassPermissionsMode Nobody can loosen the rules
allowManagedHooksOnly Only managed hooks run
allowManagedMcpServersOnly The tool surface is the platform team's allowlist
strictKnownMarketplaces, disableSideloadFlags Plugins only from approved marketplaces; sideload flags are rejected
requiredMinimumVersion Refuses to start below the evaluated version

The claude_code.managed_settings_resolved event shows which managed source a machine is running, whether the policy helper is healthy, and why a machine refused to start (error.type: helper_failed, provider_not_allowed, version_below_minimum...). Set OTEL_LOG_MANAGED_SETTINGS=1 to get resolved_sha256: machines with the same digest run the same policy. This variable cannot be enabled from project settings. (Source: Claude Code Docs: Monitoring)

MCP allowlists, telemetry, and gateways

  • MCP: allowManagedMcpServersOnly, allowedMcpServers, deniedMcpServers, managed-mcp.json; the Agent SDK uses strict_mcp_config=True; CI uses --bare plus --mcp-config. Claude Enterprise: connectors pass three gates (organization, role, member); set write/delete tools to "Needs approval" or "Blocked".
  • Telemetry: the env block in managed settings; setting the endpoint or credentials in managed settings removes the developer's endpoint, but exporter selectors are still per key, so a repo can turn off a signal with none unless managed settings also set the selector. Tag teams with OTEL_RESOURCE_ATTRIBUTES. Cloud sessions receive variables through server-managed settings or environment variables (Claude Tag only through the environment; do not put credentials there); the collector domain must be on the environment's network allowlist.
  • Gateway: an LLM gateway provides centralized authentication, per-team chargeback, and spend control; point to it with ANTHROPIC_BASE_URL (the proxy receives plain HTTP, so it can attach credentials). The Claude apps gateway attaches IdP identity (identity.source: gateway-oidc, user.groups). allowedProviders blocks disallowed providers or hosts.

(Sources: Claude Code Docs: Monitoring; Anthropic Academy: Deploying Claude Enterprise with confidence — Connectors; Claude Code Docs: Securely deploying AI agents; Claude Certification exam prep: Claude Architect learning path — Deployment Architecture)

Sharing prompts, Skills, and MCP servers: governance and quality bar

Channel Scope Fits
.claude/skills, .claude/agents in the repo Anyone who clones the repo Team standards
Plugins through a private marketplace Many repos Versioned toolkits
Managed settings The whole organization, highest precedence Mandatory standards

Plugins run code with your permissions; a plugin's hooks add to your own hooks. Being on a marketplace does not make something trustworthy: read the hooks, agents, and MCP servers before installing, and version the manifest like a dependency. (Sources: Anthropic Academy: Claude Code in action — Plugins; Anthropic Academy: Introduction to agent skills — Sharing skills)

On Claude Enterprise, Publishing has Off, Requires review, and Open. With Requires review, every submission and every later version waits for approval, and nobody can approve their own submission. Three postures: open build, reviewed spread; centralized (only Owners provision); fully open. Tightening Publishing does not remove Skills that are already published. Quality bar: Skills include verification, mandatory rules live in hooks, and changes to CLAUDE.md, Skills, and hooks pass through an eval gate (m05). (Source: Anthropic Academy: Deploying Claude Enterprise with confidence — Governing customizations)

Key point

A repo cannot enable or redirect telemetry and cannot override managed settings, but it can still configure the agent through .claude/settings.json, CLAUDE.md, and .mcp.json. An automated agent reviewing repos you do not control should therefore run with setting_sources=[] or --bare.

Exam tip

"Engineers add unknown MCP servers themselves" → allowManagedMcpServersOnly. "A community plugin calls out to the network" → strictKnownMarketplaces + disableSideloadFlags. "Machines run different policies" → managed_settings_resolved + digest. "Cloud session telemetry is not arriving" → the environment's network allowlist. "A patch must be on every machine" → requiredMinimumVersion.

Key point

Gates must exist before automation speeds up everything that passes through them: set up the review gate and approval hooks first, then add write steps in CI and event-driven agents.

Quick summary

  • A parallel session is a full instance in its own worktree; a subagent is a helper inside one session. Start with 2–3 sessions; the ceiling is review capacity.
  • .worktreeinclude copies git-ignored files into worktrees; agent teams do not use worktrees, so split files among teammates.
  • Tasks that share files run sequentially in one session; every output becomes a PR through branch protection.
  • /batch splits a large change across 5–30 subagents with worktrees; dynamic workflows: the script holds the plan, 16 concurrent agents, 1,000 agents per run.
  • Fleet diagnosis: query_source, agent.name, workflow.run_id, agent_id/parent_agent_id, api_retries_exhausted, ccr.session.id.
  • Feedback loop: one test command, failing test written first, a hook blocks test edits; mandatory rules belong in hooks.
  • Unsupervised runs: diff before summary, a Stop hook runs tests, a cold second opinion; auto mode does not judge code correctness.
  • Managed Code Review does not approve, block, or push fixes; use the action when Claude needs to do work in CI.
  • AI review: shadow, measure agreement with human review, tune REVIEW.md, and only then gate with the severity count table, still keeping code owners.
  • Scheduled tasks: at most hourly, fresh clone of the default branch, push to claude/; restrict with branch protection.
  • Scheduled agents: dontAsk, max_turns, max_budget_usd, strict_mcp_config, setting_sources=[], a pinned model, flock.
  • A PR gate uses a new session each run; an audit that compares against everything from the last run resumes; reset periodically.
  • Control band: 1σ logs, 2σ read-only diagnosis, 3σ only a PR or a pre-approved runbook; output is intent.md and a new eval.
  • Managed settings lock permissions, hooks, MCP, marketplaces, minimum version, and the OTLP destination; managed_settings_resolved verifies the fleet is on the right policy.
  • Publishing Requires review also reviews new versions, nobody self-approves; tightening the posture does not remove what is already published.