# Benchmark design (protocol; no results yet) The benchmark uses only adjudicated human labels. `candidate` and `reviewed` extraction records are development material, not test gold. A reported benchmark score requires a frozen corpus version, split manifest, prompt/model versions, and an auditable evaluation script. A few synthetic fixtures used for validator tests are not benchmark examples. ## Tasks | Task | Input | Target | Primary measure | |---|---|---|---| | Causal event extraction | Report pages or fixed sections | Ordered events plus causal edges | Event span F1, causal edge F1 after event matching | | Cause versus factor | Finding and local context | probable cause / contributing factor / background condition / non-causal observation | Macro F1 and confusion matrix | | Evidence retrieval | Claim and report | Exact supporting page spans | Recall@k and span token F1 | | Temporal reconstruction | Shuffled gold events and report context | Partial/total order with uncertainty | Pairwise order accuracy, Kendall tau only on comparable pairs | | Causal link verification | Two events, proposed relation, report | supported / unsupported / contradicted / insufficient evidence | Macro F1, calibration, evidence precision | | Recommendation matching | Findings and recommendations from same report | Supported finding–recommendation links | Precision/recall with span support | | Cross-accident hazard retrieval | Source factor and earlier reports | Related occurrences | Recall@k and graded relevance nDCG | | Recommendation recurrence | Earlier recommendation and later reports | Related hazard + evidence, with no regulatory-failure inference | Retrieval recall@k, evidence precision | Document the denominator for every task. A report with no authored recommendation is not a negative pair for a recommendation matching task unless the report was completely reviewed. A report without a causal edge may be valid; do not fabricate one to make a connected graph. Mark unanswerable questions explicitly. ## Splits and leakage controls Split by **occurrence**, grouping all report versions and documents for that occurrence. Freeze train/dev/test IDs and document hashes. Stratify by year, occurrence class, aircraft/operator category, report length, and OCR quality where sample size allows. Deduplicate by PDF hash and near-duplicate text. For recurrence tasks, enforce a date cutoff: retrieval candidates and regulatory sources must predate the query's evaluation cutoff, while later outcomes are target labels. Ensure one occurrence's revised report never appears on a different split. Report which official sources were searchable at evaluation time. Gold text spans and causal rationales must not appear in baseline prompts except as permitted task input. Record retrieval corpus, chunking, top-k, context budget, model ID, temperature, prompt version, random seed, and run timestamp. Avoid one opaque end-to-end LLM score: include a deterministic metadata/rule baseline and retrieval plus structured extraction baseline. Cost and latency accompany quality. The model cannot see adjudication notes or labels from held-out reports. ## Evaluation details Align predicted events to gold events by evidence-span overlap plus action/state semantics before scoring edges. Score edge direction and relation separately; `preceded` earns no causal credit. Report source-authored (`explicit_cause`, `explicit_contributing_factor`) performance separately from `strongly_supported` and inferred relations. Evidence retrieval requires the cited page and overlapping span, not merely a correct document. Macro average across occurrence classes and report-length buckets; include bootstrap confidence intervals by occurrence. Publish failure cases with safely redacted source snippets when redistribution terms permit. The dataset should be useful even if the cross-document recommendation subset is small. Release its coverage and unresolved-match rate rather than claiming complete regulatory traceability. No benchmark scores are claimed in this protocol. ## Read-only candidate QA with DuckDB The pilot Parquet files can be copied into a local DuckDB snapshot without modifying the export. Install the pinned optional analysis dependency, rebuild the snapshot, then inspect it: ```bash python -m pip install -e '.[analysis]' python scripts/benchmark/load_duckdb.py data/processed/pilot_candidates data/analytics/pilot_candidates.duckdb python scripts/benchmark/qa_summary.py data/analytics/pilot_candidates.duckdb python scripts/benchmark/qa_summary.py data/analytics/pilot_candidates.duckdb --json ``` The loader checks all seven Parquet row counts against `manifest.json`, records SHA-256 hashes, and atomically replaces the generated DuckDB file only after a successful load. The summary opens that file read-only and reports table counts, review states, time-mention coverage, evidence extraction methods, missing PDF hashes, per-document extraction counts, and whether the source export still matches the loaded snapshot. These are **unvalidated candidate QA counts**, never benchmark results or causal-factor prevalence estimates.