Question 370
A development agent is told to record edits but silently skips its log entry in a multi-tool run. Which TWO complementary actions provide an appropriate solution and the evidence needed to verify it? Select TWO.
Explanation
Correct Answers
Use deterministic lifecycle hooks for mandatory logging, validation and policy checks instead of relying on a prompt asking the model to remember them. Deterministic hooks are reliable for guardrails only when placed on the relevant execution path with fail-closed semantics. Verify the prerequisites with: Inspect hook event type, exit codes, execution order, failure handling and independent policy enforcement. Situation: A development agent is told to record edits but silently skips its log entry in a multi-tool run.
Inspect hook event type, exit codes, execution order, failure handling and independent policy enforcement. Deterministic hooks are reliable for guardrails only when placed on the relevant execution path with fail-closed semantics. The appropriate response is: Use deterministic lifecycle hooks for mandatory logging, validation and policy checks instead of relying on a prompt asking the model to remember them. Situation: A development agent is told to record edits but silently skips its log entry in a multi-tool run.
Incorrect Answers
Inspect step variability, dependency graph, tool side effects, missing-information branches and evaluation outcomes. This step may apply to Tool-use pattern versus fixed chain but is not one of the two required complementary decisions. The relevant pair is: Use deterministic lifecycle hooks for mandatory logging, validation and policy checks instead of relying on a prompt asking the model to remember them. and Inspect hook event type, exit codes, execution order, failure handling and independent policy enforcement. Situation: A development agent is told to record edits but silently skips its log entry in a multi-tool run.
Build an Agent SDK workflow using explicitly authorized tools, controlled session state and inspected execution events rather than treating the SDK as automatic policy enforcement. This step may apply to Claude Agent SDK session and tool boundaries but is not one of the two required complementary decisions. The relevant pair is: Use deterministic lifecycle hooks for mandatory logging, validation and policy checks instead of relying on a prompt asking the model to remember them. and Inspect hook event type, exit codes, execution order, failure handling and independent policy enforcement. Situation: A development agent is told to record edits but silently skips its log entry in a multi-tool run.
The process takes reproducible paths for predictable cases and invokes model-directed planning only for approved ambiguous cases. This step may apply to Deterministic workflow versus autonomous agent but is not one of the two required complementary decisions. The relevant pair is: Use deterministic lifecycle hooks for mandatory logging, validation and policy checks instead of relying on a prompt asking the model to remember them. and Inspect hook event type, exit codes, execution order, failure handling and independent policy enforcement. Situation: A development agent is told to record edits but silently skips its log entry in a multi-tool run.

