Knowledge check¶
Test your understanding of Monocle, test tools, and Okahu for CI/CD pipelines with agentic AI workloads.
1. What does the Fluent API's does_not_call_tool() assertion validate?¶
Correct! Negative assertions test that the agent's reasoning is correct — it should refuse to act when conditions are ambiguous or invalid, not just succeed when conditions are right.
Incorrect. Negative assertions test that the agent's reasoning is correct — it should refuse to act when conditions are ambiguous or invalid, not just succeed when conditions are right.
2. What is the main advantage of the Okahu Cloud approach over embedding Monocle JSON in GitHub issues?¶
Correct! The Cloud approach lets agents use MCP tools (okahu/get_traces, okahu/analyze_error_with_ai, etc.) to dynamically query and analyze traces, with no 50KB issue body limit.
Incorrect. The Cloud approach lets agents use MCP tools (okahu/get_traces, okahu/analyze_error_with_ai, etc.) to dynamically query and analyze traces, with no 50KB issue body limit.
3. What does .with_evaluation("okahu").check_eval("hallucination", "no_hallucination") do in a test?¶
Correct! The hallucination check sends the complete trace to Okahu's quality assessment API, which verifies the response is grounded in the given context, tools, and user request.
Incorrect. The hallucination check sends the complete trace to Okahu's quality assessment API, which verifies the response is grounded in the given context, tools, and user request.
4. How does Monocle tag traces so they can be looked up by CI/CD run?¶
Correct! Monocle uses set_scopes() to propagate the run ID via OTel baggage. Okahu indexes scope.* attributes as searchable facts, enabling ?fact_ids=github_{RUN_ID} queries.
Incorrect. Monocle uses set_scopes() to propagate the run ID via OTel baggage. Okahu indexes scope.* attributes as searchable facts, enabling ?fact_ids=github_{RUN_ID} queries.
5. What is the difference between called_tool() and called_agent() in the Fluent API?¶
Correct! The Fluent API distinguishes between tool invocations (function calls) and agent delegations (sub-agents). Both are visible as spans in the trace.
Incorrect. The Fluent API distinguishes between tool invocations (function calls) and agent delegations (sub-agents). Both are visible as spans in the trace.
6. What quality dimensions does Okahu support beyond hallucination checks?¶
Correct! Okahu's assessment API supports multiple quality dimensions. You can chain multiple .check_eval() assertions in a single test to validate different aspects of agent behavior.
Incorrect. Okahu's assessment API supports multiple quality dimensions. You can chain multiple .check_eval() assertions in a single test to validate different aspects of agent behavior.
7. What is the four-tier CI/CD progression for agentic AI testing?¶
Correct! Each tier adds capability: Tier 1 runs tests, Tier 2 attaches Monocle traces to issues, Tier 3 assigns AI agents (Claude, Copilot, Kahu) to investigate, and Tier 4 gives agents dynamic trace access via Okahu MCP tools.
Incorrect. Each tier adds capability: Tier 1 runs tests, Tier 2 attaches Monocle traces to issues, Tier 3 assigns AI agents (Claude, Copilot, Kahu) to investigate, and Tier 4 gives agents dynamic trace access via Okahu MCP tools.