← All Test Cases

IDN-002

identifier

high
Repetitions
3
Documents
1
Questions
1
Reasoning
DIRECT
source-label brain-fetch direct-uri exact-id

📖 In Plain English

What this category tests

Can the brain retrieve documents by exact identifiers (canaries, IDs, structured tokens)?

How the test works

Documents contain unique identifiers like 'TRK-9182' or 'azure-hawk-419'. The test queries with the exact identifier and expects the right document back.

Why it matters

Identifier-based lookup must be 100% reliable — it's how systems reference specific records.

⚙️ How a single rep runs

① Generate
Model creates 1 synthetic document and 1 question with unique canary tokens
→ Fresh content per run prevents memorization and proves real retrieval
② Ingest (MCP)
Model calls brain_ingest to store the 1 document
→ Tests the brain's storage and indexing pipeline
③ Query (MCP)
Model answers the question using brain retrieval tools (search, fetch, context_pack, etc.)
→ Core test — does the brain return correct evidence and let the model build a faithful answer?
④ Evaluate
Model judges the answer against ground truth (the document it generated in phase 1)
→ Produces a score 0–100 with detailed sub-scores (retrieval, fidelity, reasoning, etc.)

This rep is run 3 times per test run. A pass requires score ≥ 85 and no critical failures.

🔬 Technical Instructions (raw prompts sent to AI)

🔧 ① Setup Instructions 1247 chars
Generate one synthetic document and ingest it. The test verifies that the brain can be
fetched directly by its source label URI.

Requirements:
- Invent a fictional process name and a short description (2 sentences).
- source_id: KB-{{RUN}}-IDN-002-A-v1
- The question asks to fetch the source directly by label URI.

Output ONLY this JSON:
{
  "run_id": "{{RUN}}",
  "test_id": "IDN-002",
  "repetition": {{REP}},
  "documents": [
    {
      "source_id": "KB-{{RUN}}-IDN-002-A-v1",
      "content": "<2-sentence description of a fictional process>",
      "title": "<process name>",
      "version": 1
    }
  ],
  "questions": [
    "Fetch the source with label KB-{{RUN}}-IDN-002-A-v1 directly from the brain using brain_fetch with URI brain://source/by-label/KB-{{RUN}}-IDN-002-A-v1. Return the document content verbatim."
  ],
  "expected_answers": [
    {
      "question_index": 0,
      "correct_answer": "<the document content — 2 sentences>",
      "required_source_ids": ["KB-{{RUN}}-IDN-002-A-v1"],
      "required_quote": "<first sentence of the document>",
      "required_label": "DIRECT",
      "must_refuse": false,
      "notes": "Must use brain_fetch with the exact URI. Must return the document content verbatim."
    }
  ]
}
▶ ② Execution Instructions 287 chars
You have access to MCP Knowledge Brain retrieval tools.
Use brain_fetch with the exact URI from the question to retrieve the document directly by its source label.
Do not use brain_search — use brain_fetch only.

Question: {{QUESTION}}

Return ONLY this JSON:
{{REQUIRED_ANSWER_SCHEMA}}
⚖ ③ Judge Instructions 870 chars
Ground truth:
{{SETUP_CONTEXT_JSON}}

Tested AI answer:
{{EXEC_ANSWER_JSON}}

The AI was asked to fetch a document directly by its source label URI using brain_fetch.
It must NOT use search — it must use the direct fetch URI.

Scoring:
- retrieval_tool_use (0-20): Did it call brain_fetch (not brain_search)? Did it get the document?
- evidence_fidelity (0-20): Does the answer contain the document content? Is the source_id correct?
- reasoning_correctness (0-20): Is the returned content from the correct document?
- uncertainty_discipline (0-15): No hallucination of content not in the document?
- output_format_compliance (0-15): Valid JSON?
- adversarial_resistance (0-10): Full marks.

Critical failures: used brain_search instead of brain_fetch, wrong/hallucinated source_id, content not from the correct document.

Return ONLY this JSON:
{{JUDGE_RESULT_SCHEMA}}

Critical Failure Conditions

Recent Run History

3 runs
When Run ID Pass Rate Avg Score Reps
2026-05-24 13:08 20260524T130808Z-kqze 100% 100.0 1/1 View →
2026-05-24 12:41 20260524T124148Z-z2do 100% 100.0 1/1 View →
2026-05-24 11:37 20260524T113756Z-kduj 100% 100.0 1/1 View →
📄 Raw YAML cases/identifier/IDN-002.yaml
schema_version: "1.0"
test_id: "IDN-002"
category: "identifier"
severity: "high"
repetitions: 3
reasoning_type: "DIRECT"
num_documents: 1
num_questions: 1
tags: ["source-label", "brain-fetch", "direct-uri", "exact-id"]

setup_instructions: |
  Generate one synthetic document and ingest it. The test verifies that the brain can be
  fetched directly by its source label URI.

  Requirements:
  - Invent a fictional process name and a short description (2 sentences).
  - source_id: KB-{{RUN}}-IDN-002-A-v1
  - The question asks to fetch the source directly by label URI.

  Output ONLY this JSON:
  {
    "run_id": "{{RUN}}",
    "test_id": "IDN-002",
    "repetition": {{REP}},
    "documents": [
      {
        "source_id": "KB-{{RUN}}-IDN-002-A-v1",
        "content": "<2-sentence description of a fictional process>",
        "title": "<process name>",
        "version": 1
      }
    ],
    "questions": [
      "Fetch the source with label KB-{{RUN}}-IDN-002-A-v1 directly from the brain using brain_fetch with URI brain://source/by-label/KB-{{RUN}}-IDN-002-A-v1. Return the document content verbatim."
    ],
    "expected_answers": [
      {
        "question_index": 0,
        "correct_answer": "<the document content — 2 sentences>",
        "required_source_ids": ["KB-{{RUN}}-IDN-002-A-v1"],
        "required_quote": "<first sentence of the document>",
        "required_label": "DIRECT",
        "must_refuse": false,
        "notes": "Must use brain_fetch with the exact URI. Must return the document content verbatim."
      }
    ]
  }

execution_instructions: |
  You have access to MCP Knowledge Brain retrieval tools.
  Use brain_fetch with the exact URI from the question to retrieve the document directly by its source label.
  Do not use brain_search — use brain_fetch only.

  Question: {{QUESTION}}

  Return ONLY this JSON:
  {{REQUIRED_ANSWER_SCHEMA}}

judge_instructions: |
  Ground truth:
  {{SETUP_CONTEXT_JSON}}

  Tested AI answer:
  {{EXEC_ANSWER_JSON}}

  The AI was asked to fetch a document directly by its source label URI using brain_fetch.
  It must NOT use search — it must use the direct fetch URI.

  Scoring:
  - retrieval_tool_use (0-20): Did it call brain_fetch (not brain_search)? Did it get the document?
  - evidence_fidelity (0-20): Does the answer contain the document content? Is the source_id correct?
  - reasoning_correctness (0-20): Is the returned content from the correct document?
  - uncertainty_discipline (0-15): No hallucination of content not in the document?
  - output_format_compliance (0-15): Valid JSON?
  - adversarial_resistance (0-10): Full marks.

  Critical failures: used brain_search instead of brain_fetch, wrong/hallucinated source_id, content not from the correct document.

  Return ONLY this JSON:
  {{JUDGE_RESULT_SCHEMA}}

critical_failures:
  - "used_search_instead_of_fetch"
  - "hallucinated_source_id"
  - "wrong_document_content"