{
  "expectations": [
    {"text": "The answer cites at least 3 distinct wiki pages by relative markdown link, each link resolving to a real file under wiki/", "passed": true, "evidence": "citations-check.md: 5 distinct markdown links in answer.md (auth, request-routing, app-server, db-write-path, audit-log) — all 5 target files exist under wiki/."},
    {"text": "events.jsonl records op='query' with details.search_phase: 'summaries' (or equivalent flag) preceding any per-page reads, evidencing summaries-first search — no op='query' whose first read is a full wiki page is acceptable", "passed": true, "evidence": "events.jsonl query event has details.search_phase='summaries'. pages_read[0]=wiki/summaries.md precedes all 5 per-page reads. pages-read.md documents the ordering."},
    {"text": "details.reduction_ratio in the events entry is >0.8 (final synthesis token count is <20% of total tokens read)", "passed": true, "evidence": "events.jsonl details.reduction_ratio=0.8256 (>0.8). reduction-ratio-calc.md: tokens_in=2918, tokens_out=509, 1 − 509/2918 = 0.8256."},
    {"text": "The answer ends with a '## Knowledge gaps' (or equivalent labeled) section listing at least one specific gap when the source pages don't cover (a) request-id propagation OR (b) error-path rollback — both of which the fixture intentionally omits", "passed": true, "evidence": "knowledge-gaps-check.md: answer ends with `## Knowledge gaps` section listing BOTH items (request-ID propagation AND error-path rollback behavior) — exceeds 'at least one' requirement."},
    {"text": "The archive at outputs/queries/<YYYY-MM-DD>-<topic-slug>.md exists with frontmatter containing topic, tags, and created ISO date; filename slug derives from the question", "passed": true, "evidence": "Archive at outputs/queries/2026-04-14-request-lifecycle.md (YYYY-MM-DD + topic slug); frontmatter has topic=request-lifecycle, tags=[auth,jwt,nginx,routing,app-server,postgres,audit,lifecycle], created=2026-04-14T00:00:00Z (ISO)."},
    {"text": "The synthesized answer mentions concrete artifacts from at least 3 of the 5 pages (e.g., JWT, nginx, pg connection pool, audit_log table) — a generic answer that doesn't surface page-specific terms fails", "passed": true, "evidence": "artifacts-check.md: all 4 named terms (JWT, nginx, pg connection pool, audit_log) surface in answer.md, plus bonus terms (sessions table, X-Forwarded-For, worker pool)."},
    {"text": "The events entry includes tokens_in, tokens_out, and a non-zero pages_read[] array of length >=3", "passed": true, "evidence": "events.jsonl: tokens_in=2918, tokens_out=509 (both non-zero), pages_read array length=6 (≥3)."}
  ],
  "summary": {"passed": 7, "failed": 0, "total": 7, "pass_rate": 1.0},
  "timing": {"executor_duration_seconds": 0, "total_duration_seconds": 0},
  "execution_metrics": {},
  "eval_feedback": {
    "suggestions": [
      {"reason": "pages_read includes wiki/summaries.md as a '1st page read' — the assertion allows this but a future eval could tighten it to distinguish summaries.md from 'wiki pages' (the 5-page requirement becomes 6 if summaries counts; 5 is still satisfied here but the boundary is ambiguous)."},
      {"reason": "Query synthesis is simulated by the subagent, not driven by a /wiki-query CLI. There's no query script, so the eval measures the skill's *specification* more than a runtime contract. A real query driver would give this more bite."}
    ],
    "overall": "All 7 pass with specific evidence. Summaries-first search visible in event trace, reduction ratio exceeds 0.8, knowledge-gaps section surfaces both intentionally-omitted topics."
  }
}
