ClaudeArena

950+ practice questions and leaderboards for Claude Certified Architect: Foundations (CCAR-F) and Professional (CCAR-P).

Sign in

Foundations domain 1 · Agentic architecture and orchestration

27% of the Foundations exam · Last checked: 30 September 2026

The agentic loop and stop reasons

A loop sends a request, reads why the model stopped, and acts on that. The stop_reason is the signal. Don't parse the text to guess.

stop_reasonMeaningWhat to do
end_turnThe model finishedExit the loop
tool_useIt wants a tool runRun it, send the result back, loop again
max_tokensOutput hit your limit and was cut offTreat as unfinished. If it was cut off inside a tool call, the input is incomplete: don't execute it; retry with more room
stop_sequenceOne of your stop strings was producedCheck which one, then usually exit
pause_turnA long-running turn (such as server tools) was pausedSend the response back as it is to let it continue
refusalThe model declinedDon't resend the same prompt unchanged
model_context_window_exceededThe context window filled upReduce or restructure what you send
Exam guide vs todayStudy notes often list six stop reasons. Current docs have a seventh, model_context_window_exceeded. On the newest models, a refused request can sometimes be served by retrying on a different Claude model. The exam guide itself names only tool_use and end_turn.

Always pair the loop with a safety bound, such as a maximum number of iterations or a budget, and make hitting it a visible outcome, not a silent stop.

Tool results and parallel calls

Hooks: deterministic enforcement

Exam guide vs todayOlder notes list nine hook events: SessionStart, UserPromptSubmit, PreToolUse, PostToolUse, Notification, Stop, SubagentStop, PreCompact, SessionEnd. Those are still the core, but Claude Code now has more than thirty. Examples include PermissionRequest, PostToolUseFailure, SubagentStart, PostCompact and InstructionsLoaded.

Subagents and coordination

See also: Professional domain 1 · Multi-agent systems and decomposition.

Sessions

See also: Exam guide vs today · Foundations (CCAR-F).

Docs: Stop reasonsHandling tool callsParallel tool useHooksSubagentsSessions

Practise Domain 1