neuralnets commited on
Commit
bea1dbe
·
verified ·
1 Parent(s): 977bcfc

Stage AAIB-Cause evidence-linked construction pilot

Browse files
PROJECT_STATUS.md ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # AAIB-Cause project status
2
+
3
+ Last updated: 2026-10-01 (Asia/Kolkata). This is a **construction pilot**, not a public gold dataset or completed benchmark.
4
+
5
+ ## Current corpus
6
+
7
+ | Measure | Verified value | Evidence |
8
+ | --- | ---: | --- |
9
+ | Official report URL entries | 252 | data/raw/inventory.csv; 246 annual archive + 6 What's New assets |
10
+ | Downloaded and independently SHA-256-verified PDFs | 252/252 | Inventory integrity audit: 0 problems |
11
+ | Distinct PDF byte streams | 247 | Five exact-byte alternate-link pairs |
12
+ | Provisional occurrence groups | 243 | Inventory occurrence IDs; completeness is unproven |
13
+ | Frozen parsed pilot reports | 20 | data/interim/pilot_selection.csv, page JSONL and original hashes |
14
+ | Candidate occurrence records | 20 | data/processed/pilot_candidates/manifest.json |
15
+ | Candidate events / claims / recommendations | 174 / 511 / 184 | JSONL and Parquet; all unreviewed |
16
+ | Candidate evidence spans / causal edges | 3,488 / 0 | Exact page-text offsets; no graph claim yet |
17
+ | Documentary prior-recommendation mentions | 3 candidates | Earlier VT-MPQ/VT-PTE items cited by later Port Blair report; not a regulatory-response or recurrence label |
18
+ | OCR pages awaiting visual review | 55 across 17 pilot reports | data/interim/ocr_review_queue.csv; 13 high priority |
19
+ | Human-adjudicated / gold benchmark reports | 0 / 0 | Independent review is diagnostic, not gold annotation |
20
+
21
+ The 252 URL entries cover 9,114 page instances; the 247 unique byte streams contain 8,951 pages. Source reports are stored locally unchanged and are not licensed for redistribution by this repository.
22
+
23
+ ## Milestones
24
+
25
+ | Milestone | Status | Evidence / gate |
26
+ | --- | --- | --- |
27
+ | 1. Novelty audit | Working audit complete | 24-entry research/novelty_matrix.csv; close competitors documented; refresh before submission |
28
+ | 2. Corpus inventory and acquisition | Complete for currently discoverable official URLs | 252/252 fetched and verified; 2022/2023 aggregate publication gaps remain |
29
+ | 3. Pilot dataset | Candidate construction complete | Frozen 20 reports; schema, page provenance, JSONL/Parquet and explorer validated |
30
+ | 4. Human QA | Diagnostic review complete; gold pending | Frozen 58-item sample and complete 20-item cause-section role audit; no double-annotated gold or agreement yet |
31
+ | 5. Full structured corpus | Pending | Item-boundary and OCR QA gates before scaling extraction from 20 to 247 byte streams |
32
+ | 6. Benchmark | Protocol complete; labels pending | No held-out gold split or baseline results |
33
+ | 7. Research release | Construction package only | Paper draft, card, figure and code exist; rights, privacy, annotation and baseline gates remain |
34
+
35
+ ## Team board
36
+
37
+ | Team | Task | Status | Dependencies | Findings | Output files | Blockers | Next action |
38
+ | --- | --- | --- | --- | --- | --- | --- | --- |
39
+ | A: prior work | Novelty and independent pilot review | Frozen diagnostic review complete | Final regenerated candidate JSONL | Prior KGs and benchmarks preclude broad first-KG claims; latest 58-item sample has 20/20 events, 20/20 claims, 17/18 recommendations source-item correct | research/prior_work.md; research/novelty_matrix.csv; research/expanded_pilot_review_2026-10-01_cause_roles.md | Held-out QA, causal-role accuracy and recall unavailable | Use diagnostic errors to design gold annotation, then test out of sample |
40
+ | B/C: sources | Official discovery, acquisition and independent cause-role audit | Acquisition and audits complete | AAIB listing, assets, repaired pilot | 252 verified downloads; five byte-identical aliases; 2022/2023 statistics gaps; 20/20 listed cause-section items and 16/16 continuous cause-prose candidates pass exact-source checks | data/raw/inventory.csv; data/raw/pdfs/; research/source_discovery.md; research/cause_section_role_independent_review_2026-10-01.md | Unlisted report identities unknown; two cause-section role edge cases | Re-crawl at release, reconcile gaps, adjudicate source-role exceptions |
41
+ | D/G/H: schema | Ontology, validation, annotation, benchmark | Construction complete; factor review complete | Parsed pages and source PDF | Explicit factor lists checked in CHG/PWI/TBA; IEH and AXH corrections made | schemas/; docs/; scripts/validate/; data/analytics/ | Human annotators unavailable | Adjudicate gold subset and measure agreement |
42
+ | Lead: pipeline | Parse, group, export, explorer, integration | Pilot candidate release validated | Stable source inventory | Validator 0 errors/0 warnings; DuckDB snapshot matches export | src/; scripts/; data/processed/pilot_candidates/; paper/ | OCR review, chronology and causal edges | Resolve high-priority OCR, validate item recall, build gold chains |
43
+
44
+ ## Important discoveries and novelty threats
45
+
46
+ - Closely related aviation accident KGs and reasoning benchmarks already exist. The prospective differentiator is an official Indian AAIB corpus with exact span provenance, source/inference separation, human-adjudicated chains, and documentary recommendation links. The candidate export does not yet demonstrate it.
47
+ - The listing has 2022 and 2023 gaps against official investigated-occurrence counts (one and four respectively); aggregate gaps do not identify specific missing reports.
48
+ - A later Port Blair report cites earlier VT-MPQ/VT-PTE recommendations and reports implementation status. Three exact-offset cross-document mention candidates are in `data/interim/recommendation_followup_candidates.jsonl`, generated by `scripts/extract/recommendation_followup_seed.py`. It does not say nonimplementation caused the Airprox.
49
+
50
+ ## Extraction quality and known bugs
51
+
52
+ - The provenance validator checks schema, source PDF hashes, cross-record IDs, paragraph/section ranges and exact page-text offsets. Latest result: **0 errors, 0 warnings**. Reused shared recommendation headings are explicitly marked `source_assembly=shared_subject_noncontiguous` and checked as ordered verbatim fragments. These checks do not establish semantic support or faithful OCR.
53
+ - The current export's frozen deterministic one-per-report/class diagnostic sample is **20/20 events, 20/20 source claims, 17/18 recommendations** strictly source-item correct. The selected VT-AXE recommendation fails because of corrupted OCR. The 58 decisions and export hashes are in `research/expanded_pilot_review_2026-10-01_cause_roles.md`. Four known event false positives were filtered using this same pilot, so these are tuned-pilot diagnostics, not held-out quality or recall. The VT-TBA sampled item still bundles two observations and is not an atomic timeline node.
54
+ - Probable Cause section bullets now retain `source_section=probable_cause` but export as `unadjudicated_source_item` until their individual causal roles are reviewed. The 511-claim count reflects finer source-bullet segmentation, not 105 newly established causes.
55
+ - An independent complete audit checked all 20 listed cause-section items and all 16 continuous probable-cause candidates against exact offsets; rendered pages confirmed all five reports containing listed items. It found two role edge cases for adjudication: VT-AXE's four numbered items follow an explicit contributing-factor lead-in, and VT-EDD/VT-JBE's sole bullet appears to be the complete report-stated probable-cause sentence. Their current labels are conservative but do not fully encode these distinctions.
56
+ - Candidate event order is report narrative order. VT-JGD reverses takeoff/landing in that order; absolute clock times and causal chronology are unadjudicated.
57
+ - VT-AXE PDF p.34 has corrupted OCR in safety recommendations despite valid page-text offsets. All 55 OCR pages are queued for visual review.
58
+ - A hash-tied, opt-in visual transcription sidecar for four VT-AXE p.34 candidate recommendations is in `data/interim/ocr_corrections/`; it leaves the processed source-claim text unchanged pending human verification and an OCR-aware provenance model.
59
+ - Twenty VT-ESH list items now carry an explicit governing recipient (13 operator, 6 DGCA, 1 AAI/IMD); other recipients and all finding-to-recommendation links remain unassigned. Some numbered/umbrella hierarchies still need human annotation.
60
+ - Zero causal edges, zero gold annotations, no inter-annotator agreement, no benchmark score, and no verified regulatory-action/recurrence relation.
61
+
62
+ ## Next priorities
63
+
64
+ 1. Adjudicate the VT-AXE and VT-EDD/VT-JBE cause-section roles, resolve VT-AXE OCR corruption, and measure report-level item recall without changing source PDFs.
65
+ 2. Visually review the 13 high-priority OCR pages, recording any correction as a hash-tied patch.
66
+ 3. Obtain two independent human annotators for 30–50 diverse reports; adjudicate events, time, cause/factor and source support.
67
+ 4. Only after that gate, scale structured extraction, freeze occurrence-disjoint benchmark splits, run baselines and complete rights review.
README.md ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pretty_name: AAIB-Cause construction pilot
3
+ language:
4
+ - en
5
+ tags:
6
+ - aviation
7
+ - document-understanding
8
+ - provenance
9
+ configs:
10
+ - config_name: inventory
11
+ default: true
12
+ data_files:
13
+ - split: inventory
14
+ path: data/inventory.parquet
15
+ - config_name: documents
16
+ data_files:
17
+ - split: pilot
18
+ path: data/documents.parquet
19
+ - config_name: occurrences
20
+ data_files:
21
+ - split: pilot
22
+ path: data/occurrences.parquet
23
+ - config_name: claims
24
+ data_files:
25
+ - split: pilot
26
+ path: data/claims.parquet
27
+ - config_name: events
28
+ data_files:
29
+ - split: pilot
30
+ path: data/events.parquet
31
+ - config_name: evidence
32
+ data_files:
33
+ - split: pilot
34
+ path: data/evidence.parquet
35
+ - config_name: recommendations
36
+ data_files:
37
+ - split: pilot
38
+ path: data/recommendations.parquet
39
+ - config_name: followup_mentions
40
+ data_files:
41
+ - split: pilot
42
+ path: data/followup_mentions.parquet
43
+ ---
44
+
45
+ # AAIB-Cause: evidence-linked construction pilot
46
+
47
+ **Status: private research staging, 2026-10-01. No gold causal graph or benchmark labels.**
48
+
49
+ This package records 252 discovered official Indian AAIB report URLs, including 20 documents in a frozen extraction pilot. It includes 174 event candidates, 511 report-source claim candidates, 184 safety-recommendation candidates and 3488 exact parsed-page evidence spans. The three cross-report records are documentary *mentions* of earlier recommendations. They do not establish a regulatory response or later accident causation. Causal edges and entities currently have zero rows.
50
+
51
+ The original AAIB PDFs are **not** uploaded. `inventory` and `documents` contain official source URLs and SHA-256 hashes. Extracted quotation text appears in the pilot tables and is intended only for private review until source rights and privacy are cleared. The repository's software MIT license does not license AAIB reports or extracted text. Visibility must remain private pending that review.
52
+
53
+ ## Configurations
54
+
55
+ Each configuration is one relational table in Parquet. No `train`, `validation` or `test` split is claimed. The `inventory` configuration spans every discovered report URL; the remaining configurations are pilot candidates. The source JSONL files are preserved under `canonical/`, including empty `causal_edges` and `entities` files. `manifest.json` records counts and SHA-256 hashes.
56
+
57
+ | Configuration | Rows | Meaning |
58
+ | --- | ---: | --- |
59
+ | `inventory` | 252 | Official report URL ledger, including duplicate/version/status fields |
60
+ | `documents` | 20 | Pilot report versions and PDF hashes |
61
+ | `occurrences` | 20 | Pilot occurrence metadata, without embedded claims |
62
+ | `claims` | 511 | One row per verbatim candidate finding or cause-section item |
63
+ | `events` | 174 | Narrative-order event candidates; not verified chronology |
64
+ | `evidence` | 3488 | Exact offsets into locally parsed PDF-page text |
65
+ | `recommendations` | 184 | Candidate report recommendations |
66
+ | `followup_mentions` | 3 | Source-linked mentions of earlier recommendations |
67
+
68
+ Join `claims`, `events` and `recommendations` to `evidence` through `evidence_refs`; join `evidence` to `documents` through `document_id`. `page_number` is the physical PDF page number. `char_start` and `char_end` refer to the project parser's page text, so exact span reconstruction requires running the pinned parser on the linked original PDF. An exact offset match does not prove that OCR is faithful to the visible PDF or that a quote semantically supports a causal interpretation.
69
+
70
+ ```python
71
+ from datasets import load_dataset
72
+
73
+ repo = "YOUR_USERNAME/aaib-cause"
74
+ claims = load_dataset(repo, "claims", split="pilot", token=True)
75
+ evidence = load_dataset(repo, "evidence", split="pilot", token=True)
76
+ ```
77
+
78
+ The canonical project and reproduction commands are in the accompanying `PROJECT_STATUS.md`, `dataset_card.md`, `docs/annotation_guidelines.md` and `docs/benchmark_design.md`. The source export manifest SHA-256 is `df0f2ba936947768a635e6e32096b7ef3d21a4ebb925c52bd86e57847b3b5d46`. The package was built from its frozen 20-document pilot; regeneration requires a new manifest and review.
79
+
80
+ ## Quality and responsible use
81
+
82
+ Source PDFs were hash-checked, and candidate references passed structural, exact-offset and PDF-hash validation. A frozen diagnostic sample found 20/20 selected event items, 20/20 source claim items and 17/18 recommendation items faithful to their cited PDF pages. This is a tuned-pilot item check, **not** held-out precision, recall, causal accuracy or a gold benchmark score. One selected VT-AXE recommendation contains corrupted OCR. Twenty list items under Probable Cause headings retain an unadjudicated individual causal role; several need explicit human review. Do not infer causation from event order or assign blame to crew, operators or regulators from these candidates. No public research release or model baseline is claimed.
canonical/causal_edges.jsonl ADDED
File without changes
canonical/documents.jsonl ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"document_id": "aaib-04da1a0d894d74047229", "occurrence_id": "2014-01-05-VT-SGU", "title": "Serious Incident to aircraft VT-SGU at Delhi on 05.01.2014", "source_url": "https://aaib.gov.in/Reports/2014/Serious%20Incident/Accepted%20Report%20VT-SGU.pdf", "source_page_url": "https://aaib.gov.in/", "local_pdf_path": "data/raw/pdfs/aaib-7455218797ff859d.pdf", "pdf_sha256": "04da1a0d894d74047229c330f43e7a43eefdf134f4c20cb625975b755db0fa0b", "page_count": 27, "report_date": null, "report_status": "final", "download_status": "accessible", "text_extractability": "native", "notes": "Pilot candidate export; report status and objective metadata require review."}
2
+ {"document_id": "aaib-15cfba8fa85311be4994", "occurrence_id": "2015-03-08-VT-SUA", "title": "Accident to aircraft VT-SUA at Hubli on 08.03.2015", "source_url": "https://aaib.gov.in/Reports/2015/Accident/Accepted%20Report%20VT-SUA.pdf", "source_page_url": "https://aaib.gov.in/", "local_pdf_path": "data/raw/pdfs/aaib-89b3080934999fc3.pdf", "pdf_sha256": "15cfba8fa85311be499499ed89454ec12c4c94124debeb678eb44cb96d34f568", "page_count": 40, "report_date": null, "report_status": "final", "download_status": "accessible", "text_extractability": "mixed", "notes": "Pilot candidate export; report status and objective metadata require review."}
3
+ {"document_id": "aaib-1bae43840c457a09efcf", "occurrence_id": "2018-01-28-VT-IEH", "title": "Serious Incident to aircraft VT-IEH & A6EPJ at Nagpur ACC on 28.01.2018", "source_url": "https://aaib.gov.in/Reports/2018/Serious%20Incident/SERIOUS%20INCIDENT%20TO%20AIRCRAFT%20VT-IEH%20&%20A6EPJ%20AT%20NAGPUR%20ACC%20ON%2021.08.2018.pdf", "source_page_url": "https://aaib.gov.in/", "local_pdf_path": "data/raw/pdfs/aaib-8ad5bd37c5c53225.pdf", "pdf_sha256": "1bae43840c457a09efcfa1c99777231cbc317cd6265bb6f9992892f550d5577d", "page_count": 18, "report_date": null, "report_status": "final", "download_status": "accessible", "text_extractability": "native", "notes": "Pilot candidate export; report status and objective metadata require review."}
4
+ {"document_id": "aaib-216142e3e407cdbf7975", "occurrence_id": "2017-01-22-VT-JTD", "title": "Serious Incident to aircraft VT-JTD at Dhaka on 22.01.2017", "source_url": "https://aaib.gov.in/Reports/2017/Serious%20Incident/Accepted%20Report%20VT-JTD.pdf", "source_page_url": "https://aaib.gov.in/", "local_pdf_path": "data/raw/pdfs/aaib-e40ba172304bcbf3.pdf", "pdf_sha256": "216142e3e407cdbf7975cbf0b423c4bc377030ea6981488d9b8fc4e92d9b0c42", "page_count": 25, "report_date": null, "report_status": "final", "download_status": "accessible", "text_extractability": "native", "notes": "Pilot candidate export; report status and objective metadata require review."}
5
+ {"document_id": "aaib-2f156960e423dcca14e5", "occurrence_id": "2012-08-14-VT-AXE", "title": "Serious Incident to aircraft VT-AXE at Mangalore Airport on 14.08.2012", "source_url": "https://aaib.gov.in/Reports/2012/Serious%20Incident/Accepted%20Report%20VT-AXE.pdf", "source_page_url": "https://aaib.gov.in/", "local_pdf_path": "data/raw/pdfs/aaib-8fbc0f39e7d68c38.pdf", "pdf_sha256": "2f156960e423dcca14e5959caf6ee6531384876aa37939ddbb19d6e6f01ac7bb", "page_count": 34, "report_date": null, "report_status": "unknown", "download_status": "accessible", "text_extractability": "mixed", "notes": "Pilot candidate export; report status and objective metadata require review."}
6
+ {"document_id": "aaib-366637a2c2bb99142b13", "occurrence_id": "2022-05-12-VT-CHG", "title": "Final Investigation Report on accident involving Government of Chhattisgarh Agusta A109E Helicopter VT-CHG at Raipur Airport on 12 May 2022", "source_url": "https://aaib.gov.in/Reports/2025/Accident/VT-CHG%20Final%20Investigation%20Report%20-%20Accepted.pdf", "source_page_url": "https://aaib.gov.in/", "local_pdf_path": "data/raw/pdfs/aaib-7ac7705f8a4690c3.pdf", "pdf_sha256": "366637a2c2bb99142b133939e230d9dc222195ce7142fec60be5d8e6e96c46f9", "page_count": 128, "report_date": null, "report_status": "final", "download_status": "accessible", "text_extractability": "mixed", "notes": "Pilot candidate export; report status and objective metadata require review."}
7
+ {"document_id": "aaib-45720cbabb401d2d797f", "occurrence_id": "2013-06-21-VT-PED", "title": "Accident to helicopter VT-PED at Rambara near Kedarnath Shrine, Uttarakhand on 21.06.2013", "source_url": "https://aaib.gov.in/Reports/2013/Accident/Accepted%20Report%20VT-PED.pdf", "source_page_url": "https://aaib.gov.in/", "local_pdf_path": "data/raw/pdfs/aaib-fbcb133625f3809d.pdf", "pdf_sha256": "45720cbabb401d2d797f015eee179ea4db0bb6ca473c87e138b07f3b43ddd523", "page_count": 24, "report_date": null, "report_status": "final", "download_status": "accessible", "text_extractability": "mixed", "notes": "Pilot candidate export; report status and objective metadata require review."}
8
+ {"document_id": "aaib-4c3261c76350e7017c1a", "occurrence_id": "2017-04-26-VT-DDA", "title": "Accident to helicopter VT-DDA at Chintagufa Helipad, Chhattisgarh on 26.04.2017", "source_url": "https://aaib.gov.in/Reports/2017/Accident/Accepted%20report%20VT-DDA%20.pdf", "source_page_url": "https://aaib.gov.in/", "local_pdf_path": "data/raw/pdfs/aaib-a9c17d469aa05309.pdf", "pdf_sha256": "4c3261c76350e7017c1a95b669a64fa29c29ecdc1f947e7a2873a70a72e4ac7f", "page_count": 29, "report_date": null, "report_status": "final", "download_status": "accessible", "text_extractability": "mixed", "notes": "Pilot candidate export; report status and objective metadata require review."}
9
+ {"document_id": "aaib-639aa88537c41c276564", "occurrence_id": "2015-01-14-VT-JGE", "title": "Serious Incident to aircraft VT-JGE at Kolkata Airport on 14.01.2015", "source_url": "https://aaib.gov.in/Reports/2015/Serious%20Incident/Accepted%20Report%20VT-JGE.pdf", "source_page_url": "https://aaib.gov.in/", "local_pdf_path": "data/raw/pdfs/aaib-a0798fd4be95338a.pdf", "pdf_sha256": "639aa88537c41c276564fc335e0cce839967b3ac86da337943b314431224d4ab", "page_count": 34, "report_date": null, "report_status": "final", "download_status": "accessible", "text_extractability": "mixed", "notes": "Pilot candidate export; report status and objective metadata require review."}
10
+ {"document_id": "aaib-642440754ca08afb4ca2", "occurrence_id": "2014-01-05-VT-ESH", "title": "Accident to aircraft VT-ESH at Jaipur on 05.01.2014", "source_url": "https://aaib.gov.in/Reports/2014/Accident/Accepted%20Report%20VT-ESH.pdf", "source_page_url": "https://aaib.gov.in/", "local_pdf_path": "data/raw/pdfs/aaib-a66d7a03346ad65b.pdf", "pdf_sha256": "642440754ca08afb4ca24ff4bf9a7073f0415467148833fd3fa674a65d02a3a5", "page_count": 82, "report_date": null, "report_status": "final", "download_status": "accessible", "text_extractability": "mixed", "notes": "Pilot candidate export; report status and objective metadata require review."}
11
+ {"document_id": "aaib-642b2deeb16f3c3bdcc2", "occurrence_id": "2024-02-02-VT-SCV", "title": "Final Investigation Report on Serious Incident of Airprox between ALH MK III (Defence Helicopter) and A319-112 Aircraft VT-SCV (AIC788) operated by Air India at Port Blair Airport on 02 Feb 2024", "source_url": "https://aaib.gov.in/Reports/2026/Serious%20Incident/Final%20report_%20MK%20III%20ALH-%20AI%20788%20Airprox%20at%20Port%20Blair.pdf", "source_page_url": "https://aaib.gov.in/", "local_pdf_path": "data/raw/pdfs/aaib-4e9072348413b5cf.pdf", "pdf_sha256": "642b2deeb16f3c3bdcc2ff08ce08e1ddf288cb5a4c5ffc0b7d3195ae686e3587", "page_count": 20, "report_date": null, "report_status": "final", "download_status": "accessible", "text_extractability": "native", "notes": "Pilot candidate export; report status and objective metadata require review."}
12
+ {"document_id": "aaib-9fb06bf2b16d6f0ee5f7", "occurrence_id": "2020-08-07-VT-AXH", "title": "Accident to aircraft VT-AXH of M/s air India express Ltd at Kozhikode International Airport (Kerala) on 07.08.2020", "source_url": "https://aaib.gov.in/Reports/2020/accident/Final%20Report%20AXH.pdf", "source_page_url": "https://aaib.gov.in/", "local_pdf_path": "data/raw/pdfs/aaib-48dd76b7ae18bb5e.pdf", "pdf_sha256": "9fb06bf2b16d6f0ee5f7ef432d4ae246052439f15634c0ca8f0e91c4a0f824eb", "page_count": 281, "report_date": null, "report_status": "unknown", "download_status": "accessible", "text_extractability": "mixed", "notes": "Pilot candidate export; report status and objective metadata require review."}
13
+ {"document_id": "aaib-acc268242ad3f985b454", "occurrence_id": "2012-08-29-VT-TBA", "title": "Accident to helicopter VT-TBA at Godhra (Gujarat) on 29.08.2012", "source_url": "https://aaib.gov.in/Reports/2012/Accident/Accepted%20Report%20VT-TBA.pdf", "source_page_url": "https://aaib.gov.in/", "local_pdf_path": "data/raw/pdfs/aaib-0f4aae573304db2d.pdf", "pdf_sha256": "acc268242ad3f985b4547137b052b14f633ce3df4c46aa228a0a10c8401928c3", "page_count": 53, "report_date": null, "report_status": "final", "download_status": "accessible", "text_extractability": "mixed", "notes": "Pilot candidate export; report status and objective metadata require review."}
14
+ {"document_id": "aaib-b758684f58b409a45a09", "occurrence_id": "2012-09-07-VT-KPC", "title": "Accident to aircraft VT-KPC at Pune Airport on 07.09.2012", "source_url": "https://aaib.gov.in/Reports/2012/Accident/Accepted%20Report%20VT-KPC.pdf", "source_page_url": "https://aaib.gov.in/", "local_pdf_path": "data/raw/pdfs/aaib-1c94def3ef68f2f5.pdf", "pdf_sha256": "b758684f58b409a45a0946c37ca1744c67848475e1c81d5d67c50506c076c438", "page_count": 28, "report_date": null, "report_status": "final", "download_status": "accessible", "text_extractability": "native", "notes": "Pilot candidate export; report status and objective metadata require review."}
15
+ {"document_id": "aaib-c09e7256c7b9def2b9ad", "occurrence_id": "2018-01-13-VT-PWA", "title": "Accident to helicopter VT-PWA at 30 NM from Juhu on 13.01.2018", "source_url": "https://aaib.gov.in/Reports/2018/Accident/Accepted%20Report%20VT-PWA.pdf", "source_page_url": "https://aaib.gov.in/", "local_pdf_path": "data/raw/pdfs/aaib-e18a4ea093b4ac91.pdf", "pdf_sha256": "c09e7256c7b9def2b9ad7c436632f2dda8c5083f0a1434fa785492ff308e95bf", "page_count": 87, "report_date": null, "report_status": "final", "download_status": "accessible", "text_extractability": "mixed", "notes": "Pilot candidate export; report status and objective metadata require review."}
16
+ {"document_id": "aaib-cabcab2105063a8093e8", "occurrence_id": "2019-02-05-VT-RDX", "title": "Accident to aircraft VT-RDX at Baramati Airport 05.02.2019", "source_url": "https://aaib.gov.in/Reports/2019/Accident/Accepted%20Report%20%20VT-RDX.pdf", "source_page_url": "https://aaib.gov.in/", "local_pdf_path": "data/raw/pdfs/aaib-e91e66ea69b9e927.pdf", "pdf_sha256": "cabcab2105063a8093e8c843e8786ae6e18e546d0411f5227531b2eabfc82a71", "page_count": 31, "report_date": null, "report_status": "final", "download_status": "accessible", "text_extractability": "mixed", "notes": "Pilot candidate export; report status and objective metadata require review."}
17
+ {"document_id": "aaib-ccd233ac994d1278d033", "occurrence_id": "2016-01-30-VT-EDD-VT-JBE", "title": "Serious Incident between aircrafts VT-JBE and VT-EDD at Delhi on 30.01.2016", "source_url": "https://aaib.gov.in/Reports/2016/Serious%20Incident/Accepted%20report%20VT-EDD.pdf", "source_page_url": "https://aaib.gov.in/", "local_pdf_path": "data/raw/pdfs/aaib-ea9d20fb692e301f.pdf", "pdf_sha256": "ccd233ac994d1278d0334ad58230ae937bf47e94a0f1d5acae0f9b1e20058a7e", "page_count": 44, "report_date": null, "report_status": "final", "download_status": "accessible", "text_extractability": "mixed", "notes": "Pilot candidate export; report status and objective metadata require review."}
18
+ {"document_id": "aaib-dd9b7b3bd23bc9007a71", "occurrence_id": "2022-06-28-VT-PWI", "title": "Accident involving Pawan Hans' S-76D helicopter VT-PWI at Mumbai off-shore on 28.06.2022", "source_url": "https://aaib.gov.in/Reports/2022/Accident/Final%20Investigation%20Report%20of%20accident%20involving%20Pawan%20Hans%27%20S-76D%20helicopter%20bearing%20registration%20VT-PWI%20at%20Mumbai%20off-shore%20on%2028%20June%202022.pdf", "source_page_url": "https://aaib.gov.in/", "local_pdf_path": "data/raw/pdfs/aaib-472fca4c021c2b7d.pdf", "pdf_sha256": "dd9b7b3bd23bc9007a71bdadc55069232c7c25faa96b30c61157a8d0f71ba4be", "page_count": 89, "report_date": null, "report_status": "final", "download_status": "accessible", "text_extractability": "mixed", "notes": "Pilot candidate export; report status and objective metadata require review."}
19
+ {"document_id": "aaib-e451e0c3c83dd6b6ca62", "occurrence_id": "2016-03-03-VT-JGD", "title": "Accident to aircraft VT-JGD at Mumbai airport on 03.03.2016", "source_url": "https://aaib.gov.in/Reports/2016/Accident/Accepted%20Report%20VT-JGD.pdf", "source_page_url": "https://aaib.gov.in/", "local_pdf_path": "data/raw/pdfs/aaib-69840d1a70b97f9c.pdf", "pdf_sha256": "e451e0c3c83dd6b6ca6238767a98b225e7256ec146611ce1c0d2583a81b3aa01", "page_count": 44, "report_date": null, "report_status": "final", "download_status": "accessible", "text_extractability": "mixed", "notes": "Pilot candidate export; report status and objective metadata require review."}
20
+ {"document_id": "aaib-ed59a748dfab17003d21", "occurrence_id": "2013-01-04-VT-EGK", "title": "Serious Incident to helicopter VT-EGK at IGI Airport New Delhi on 04.01.2013", "source_url": "https://aaib.gov.in/Reports/2013/Serious%20Incident/Accepted%20Report%20VT-EGK.pdf", "source_page_url": "https://aaib.gov.in/", "local_pdf_path": "data/raw/pdfs/aaib-30ebd586adc59bd7.pdf", "pdf_sha256": "ed59a748dfab17003d2152e75d399ee3856e721e219ad8cfaf61da1bdd41140a", "page_count": 24, "report_date": null, "report_status": "final", "download_status": "accessible", "text_extractability": "mixed", "notes": "Pilot candidate export; report status and objective metadata require review."}
canonical/entities.jsonl ADDED
File without changes
canonical/events.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
canonical/evidence.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
canonical/occurrences.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
canonical/recommendations.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
data/claims.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:72dffe1de282c46516211d83cae63e061dac03701f8a75c3e3e9faa4b27f51dc
3
+ size 64655
data/documents.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:13b572d9157083ee6c96e69ce51fa7611647eace998f9e3d5bdf02409daf0143
3
+ size 7570
data/events.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5e874e8d10a74c89ad398f0a16babf4729f671cb82a16a79aea87a2132438701
3
+ size 20501
data/evidence.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d445d56cc8d91f9b842b55093d102daf38683eb99abc61e5f7b7c17bf2850bc7
3
+ size 153022
data/followup_mentions.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bf8e1d004774bb8862617f28fedd81a19cf9ad84a1081e02edff53625042287e
3
+ size 16460
data/inventory.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1db2fbd0e5fe4ec2ec13cc7ad40ecc92e02da41771119b051228a73a3e59ea4b
3
+ size 42823
data/occurrences.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:981b85b0c19a7aba6486d6c7f2da156e1d1c18d2cf4e3cd442b8b0ba37bb10d9
3
+ size 7223
data/recommendations.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3091c478f823c08784d84db26451fbbc1fee66fab9416eeb041e89ddbd15f843
3
+ size 33064
dataset_card.md ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Dataset card: AAIB-Cause construction pilot
2
+
3
+ ## Status and intended use
4
+
5
+ This is a research construction artifact, **not** a validated accident-causation dataset. The pilot release contains official-source inventory records and automatically extracted, unreviewed candidate records. It is intended for developing provenance checks, annotation procedures and benchmark tasks. It must not be used to assign blame, assess operator or regulator performance, or present candidate links as confirmed accident causes.
6
+
7
+ ## Sources and coverage
8
+
9
+ The source inventory records 252 report-document URLs from India's [Aircraft Accident Investigation Bureau](https://aaib.gov.in/), with five exact-byte alternate-link pairs and 243 provisional occurrence groups. All listed URLs were downloaded and hash-checked. Coverage is of discoverable public reports, not necessarily every investigated occurrence; 2022/2023 aggregate statistics exceed distinct listed occurrences. Annual statistics and site listings are reconciled in [source_discovery.md](research/source_discovery.md). Download and parsing status are per document; missing and malformed documents remain visible. Exact current counts are in [PROJECT_STATUS.md](PROJECT_STATUS.md).
10
+
11
+ ## Records
12
+
13
+ `documents`, `occurrences`, `events`, `causal_edges`, `evidence`, `recommendations`, and `entities` are exported as JSONL and Parquet. Their contract is in [records.schema.json](schemas/records.schema.json). The current causal-edge and entity files can be empty. This is an honest representation of extraction status. Candidate event order is narrative order until a human verifies chronology. Evidence records identify source document, PDF page, section, exact page-text offsets and quote.
14
+
15
+ ## Construction and quality
16
+
17
+ Official PDFs are acquired without modification and SHA-256 hashed. Native text is preferred; pages with inadequate native text receive selective OCR. Tables are separately extracted. Rule-based candidates are grouped and exported without an LLM. The validator checks schema, references, exact quote offsets and source hashes. Repeated governing headings in recommendation lists are flagged as `shared_subject_noncontiguous` and validated as ordered verbatim fragments rather than represented as one continuous report quote. Bullets printed under Probable Cause retain their source section while their individual causal roles remain unadjudicated. These checks establish structural provenance, **not semantic correctness**. A 55-page pilot OCR queue identifies 13 high-priority visual checks. The [latest frozen 58-item diagnostic review](research/expanded_pilot_review_2026-10-01_cause_roles.md) found 20/20 selected events, 20/20 source claims and 17/18 recommendations strictly source-item correct; VT-AXE OCR caused the selected recommendation failure. An [independent cause-section audit](research/cause_section_role_independent_review_2026-10-01.md) checked all 20 listed items and identified two source-role edge cases for adjudication. The event filter was tuned on this same pilot, so these are not held-out estimates; recall, causal-role accuracy and atomic event granularity remain unmeasured. No gold extraction score, inter-annotator agreement or model baseline is available. The [annotation guidelines](docs/annotation_guidelines.md) and [benchmark protocol](docs/benchmark_design.md) define the work needed for a validated release.
18
+
19
+ ## Bias, limits and safety
20
+
21
+ Publicly available, accepted reports are subject to publication delay and uneven document quality. Different report authors use different structures and causal language. OCR and table extraction can fail. A report's conclusions are attributed to its investigating authority; candidate extraction does not independently verify them. Missing regulator responses mean `unknown`, not non-compliance. Recurrence of a similar hazard does not prove earlier recommendations failed.
22
+
23
+ ## Rights and distribution
24
+
25
+ The MIT software license covers original repository code and documentation only. AAIB reports remain source documents of their respective rights holders. This repository does not grant reuse rights to third-party PDFs or report text. Before public distribution of source PDFs, extensive excerpts, or derived records, conduct a documented rights and privacy review. A release can distribute URL/hash manifests and permitted annotations while requiring users to fetch official documents themselves.
26
+
27
+ ## Maintenance
28
+
29
+ Re-run the crawler with a date-stamped manifest, retain vanished report rows, verify hashes, review revised reports and freeze every benchmark split. Human corrections should be stored as append-only annotations or patches, never silent edits to source files.
docs/annotation_guidelines.md ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Annotation guidelines (pilot protocol, v0.1)
2
+
3
+ ## Unit and authority
4
+
5
+ Annotate an **occurrence**, not a PDF. Preliminary, final, and revised reports for the same occurrence stay linked but are not independent examples. Prefer the latest accessible final report for adjudicated labels while retaining earlier versions and recording substantive revisions. Treat an AAIB finding as a claim made by the report; the dataset does not independently certify the accident's real-world cause.
6
+
7
+ Each annotation must identify `document_id`, 1-based page, section, exact supporting quote, and half-open character offsets in the preserved page text. If text is OCR-derived, mark the method and inspect the PDF image. Do not place a label on an unresolvable page or a paraphrase with no source span. Preserve original wording in `verbatim_text`; use `normalized_text` only for an optional analytic paraphrase. When a statement crosses a page, cite ordered adjacent spans from both pages and keep the full wording; do not truncate it at the page break or stitch unrelated passages. Never silently repair source text. Record corrections as versioned patches.
8
+
9
+ ## Labels
10
+
11
+ 1. **Observation:** directly reported state, measurement, action, or witness account. It need not explain the outcome.
12
+ 2. **Evidence:** the particular report span or cited source (FDR, CVR, ATC, weather, maintenance, wreckage, test, etc.) supporting a statement. A report can narrate evidence whose underlying recording is unavailable; identify the evidence as reported by AAIB.
13
+ 3. **Timeline event:** a bounded action or change of state during the occurrence. One event can be uncertain, but it must have evidence. Do not split a single continuous action into arbitrary graph nodes.
14
+ 4. **Technical, human, organizational, maintenance, or environmental finding:** report discussion or finding of that category. These are orthogonal to causal status.
15
+ 5. **Contributing factor:** report-authored contributing-factor wording or an adjudicated annotation explicitly labeled as analyst interpretation. Keep the two distinct.
16
+ 6. **Probable cause:** report's own probable/root cause statement, quoted verbatim. If absent, leave absent; do not synthesize a cause to fill the field.
17
+ 7. **Safety recommendation:** report-authored recommendation, quoted verbatim with recipient if stated. A general lesson or action already taken is not automatically a recommendation.
18
+
19
+ Do not assign a factor's label solely from its section heading. The pilot reports include explicit contributing-factor bullets inside a `Probable Cause` section; preserve the report's bullet label and separate those statements from the main probable-cause sentence. A finding cited by a recommendation remains a finding, not automatically a cause.
20
+
21
+ In candidate exports, `source_section` records the parsed report heading and `claim_role` records what can be asserted about the individual item. A list item under `source_section=probable_cause` receives `claim_role=unadjudicated_cause_section_item` and `category=unadjudicated_source_item` unless an explicit source statement or human adjudication establishes its causal role. Such a bullet may be an event, condition, or link in the report's explanation. Its heading alone does not make it an independent probable cause. Unlisted, continuous probable-cause prose remains a verbatim `report_stated_probable_cause` candidate. The candidate exporter does not adjudicate whether that prose is causally atomic. The explorer displays the section and role separately; filters for report-stated probable causes should use `category=probable_cause`, never `source_section` alone.
22
+
23
+ **Pilot adjudication queue:** VT-AXE PDF p.33 explicitly introduces four numbered items as contributing factors even though the parser places them under its Probable Cause section. VT-EDD/VT-JBE PDF p.42 contains one bullet that appears to be the entire printed probable-cause statement, followed by a separate contributory-factors section. Review those five item roles against the rendered PDF and preserve the exact lead-in as role evidence before changing categories. The present export deliberately leaves their individual roles unadjudicated; see [the independent review](../research/cause_section_role_independent_review_2026-10-01.md).
24
+
25
+ ## Chronology and causality
26
+
27
+ Order events by explicit timestamps first, then explicit report sequencing. If neither resolves the order, mark `temporal_basis=unknown` or leave the ordering under review. Preserve an isolated report clock mention in `timestamp_text`, cited to an exact quote; use `timestamp_absolute` only after anchoring its date and timezone. Distinguish local clock time, UTC, and elapsed time; do not convert without a documented offset. A single report can contain multiple aircraft and overlapping actions.
28
+
29
+ An edge is causal only if evidence supports the specific direction **and** relation. Adjacency in the timeline supports `preceded` at most. For `explicit_cause` or `explicit_contributing_factor`, cite the report sentence or finding that states the relation. `strongly_supported` requires an annotator rationale connecting the cited spans; it is not a report-authored fact. `model_inferred` is never gold by itself. When support is ambiguous, omit the edge or mark it as candidate. Do not infer cause from a recommendation alone.
30
+
31
+ For a proposed relation annotate: both event IDs; direction; relation type; exact evidence spans; status; a concise rationale; and whether the report itself states the relation. For absent support in a verification task, use `insufficient_evidence` rather than `unsupported` when source coverage is incomplete. Reserve `contradicted` for direct conflicting evidence.
32
+
33
+ ## Recommendation follow-up
34
+
35
+ Record the recommendation text, recipient, date, and report span. Search official response/action documents and later reports with a dated, reproducible query log. `documented_response` means a source explicitly reports the response; `possibly_related` is only a thematic or temporal match. Use `caused_by_recommendation` only if a source explicitly links the action to that recommendation; record the exact supporting quote and URL. A later recurring hazard does not establish regulatory failure.
36
+
37
+ ## Gold pilot and adjudication
38
+
39
+ Select 30–50 occurrences by stratified sampling across occurrence class, report decade, PDF quality, aircraft/operator type, and event complexity. Freeze the sampling manifest and exclusion reasons before annotation. At least two annotators independently label the same pilot reports when staffing permits. Train on a separate practice set; reconcile the guide, then annotate the frozen evaluation set blind to model outputs. Keep each annotator's files and an adjudicated file; never overwrite disagreements.
40
+
41
+ Adjudicate in this order: document identity and version; evidence span; event boundary and order; report-authored finding type; causal relation; recommendation link. A third reviewer resolves unresolved disagreements. Log every decision with source evidence and reason. Report agreement separately for span overlap, event matching, categorical labels, and edge labels; raw accuracy alone obscures prevalence. Candidate metrics include span token F1, category Cohen's kappa (or Krippendorff's alpha for more than two annotators), event-order pairwise agreement, and causal-edge precision/recall after an explicit event alignment. Do not report an agreement statistic until actual double annotations exist.
42
+
43
+ ## QA gates
44
+
45
+ - Every published adjudicated event, claim, edge, and recommendation resolves to exact page text.
46
+ - Audit a random sample against rendered PDFs, including OCR pages and tables.
47
+ - Publish precision estimates with denominators and confidence intervals for aircraft metadata, event candidates, causes, contributing factors, recommendations, and evidence references.
48
+ - Track unsupported candidates and parser failures as errors, not hidden exclusions.
49
+ - Do not promote a model-produced relation to a source claim by changing its label.
docs/benchmark_design.md ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Benchmark design (protocol; no results yet)
2
+
3
+ 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.
4
+
5
+ ## Tasks
6
+
7
+ | Task | Input | Target | Primary measure |
8
+ |---|---|---|---|
9
+ | Causal event extraction | Report pages or fixed sections | Ordered events plus causal edges | Event span F1, causal edge F1 after event matching |
10
+ | Cause versus factor | Finding and local context | probable cause / contributing factor / background condition / non-causal observation | Macro F1 and confusion matrix |
11
+ | Evidence retrieval | Claim and report | Exact supporting page spans | Recall@k and span token F1 |
12
+ | Temporal reconstruction | Shuffled gold events and report context | Partial/total order with uncertainty | Pairwise order accuracy, Kendall tau only on comparable pairs |
13
+ | Causal link verification | Two events, proposed relation, report | supported / unsupported / contradicted / insufficient evidence | Macro F1, calibration, evidence precision |
14
+ | Recommendation matching | Findings and recommendations from same report | Supported finding–recommendation links | Precision/recall with span support |
15
+ | Cross-accident hazard retrieval | Source factor and earlier reports | Related occurrences | Recall@k and graded relevance nDCG |
16
+ | Recommendation recurrence | Earlier recommendation and later reports | Related hazard + evidence, with no regulatory-failure inference | Retrieval recall@k, evidence precision |
17
+
18
+ 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.
19
+
20
+ ## Splits and leakage controls
21
+
22
+ 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.
23
+
24
+ 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.
25
+
26
+ ## Evaluation details
27
+
28
+ 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.
29
+
30
+ 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.
31
+
32
+ ## Read-only candidate QA with DuckDB
33
+
34
+ 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:
35
+
36
+ ```bash
37
+ python -m pip install -e '.[analysis]'
38
+ python scripts/benchmark/load_duckdb.py data/processed/pilot_candidates data/analytics/pilot_candidates.duckdb
39
+ python scripts/benchmark/qa_summary.py data/analytics/pilot_candidates.duckdb
40
+ python scripts/benchmark/qa_summary.py data/analytics/pilot_candidates.duckdb --json
41
+ ```
42
+
43
+ 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.
manifest.json ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "counts": {
3
+ "claims": 511,
4
+ "documents": 20,
5
+ "events": 174,
6
+ "evidence": 3488,
7
+ "followup_mentions": 3,
8
+ "inventory": 252,
9
+ "occurrences": 20,
10
+ "recommendations": 184
11
+ },
12
+ "empty_canonical_tables": [
13
+ "causal_edges",
14
+ "entities"
15
+ ],
16
+ "files": {
17
+ "PROJECT_STATUS.md": {
18
+ "bytes": 8859,
19
+ "sha256": "78c9062cb155f4a1693da3752c7a894ddbc74e7714dcd898b96ee6c016514c9e"
20
+ },
21
+ "README.md": {
22
+ "bytes": 4948,
23
+ "sha256": "b08c00b3ae5abbee3027d820f3e302bef52a2f9d48b4c0f18672e395763540bb"
24
+ },
25
+ "canonical/causal_edges.jsonl": {
26
+ "bytes": 0,
27
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
28
+ },
29
+ "canonical/documents.jsonl": {
30
+ "bytes": 13795,
31
+ "sha256": "75fb67a9e9880873daf91cf0494964189c5b0dcec8cb212879c10d5ac04df101"
32
+ },
33
+ "canonical/entities.jsonl": {
34
+ "bytes": 0,
35
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
36
+ },
37
+ "canonical/events.jsonl": {
38
+ "bytes": 109547,
39
+ "sha256": "75a26719f96ff714112f55f917d7256d0eefae7c5c04c94e3c1a92796d2bf1c3"
40
+ },
41
+ "canonical/evidence.jsonl": {
42
+ "bytes": 1993863,
43
+ "sha256": "22a05038789eee97bc0c09d43e7fe001b27bc9ae654f6862612f2defbc495bc7"
44
+ },
45
+ "canonical/occurrences.jsonl": {
46
+ "bytes": 289919,
47
+ "sha256": "1b80021fc25a9636864e4217c5a36800a03db1e68e96aac36b882a2a8e81f03d"
48
+ },
49
+ "canonical/recommendations.jsonl": {
50
+ "bytes": 137933,
51
+ "sha256": "ff7f53ce377ee8841fa2009b8cbae2b147270f78b718e0331f12f750ab1606a5"
52
+ },
53
+ "data/claims.parquet": {
54
+ "bytes": 64655,
55
+ "sha256": "72dffe1de282c46516211d83cae63e061dac03701f8a75c3e3e9faa4b27f51dc"
56
+ },
57
+ "data/documents.parquet": {
58
+ "bytes": 7570,
59
+ "sha256": "13b572d9157083ee6c96e69ce51fa7611647eace998f9e3d5bdf02409daf0143"
60
+ },
61
+ "data/events.parquet": {
62
+ "bytes": 20501,
63
+ "sha256": "5e874e8d10a74c89ad398f0a16babf4729f671cb82a16a79aea87a2132438701"
64
+ },
65
+ "data/evidence.parquet": {
66
+ "bytes": 153022,
67
+ "sha256": "d445d56cc8d91f9b842b55093d102daf38683eb99abc61e5f7b7c17bf2850bc7"
68
+ },
69
+ "data/followup_mentions.parquet": {
70
+ "bytes": 16460,
71
+ "sha256": "bf8e1d004774bb8862617f28fedd81a19cf9ad84a1081e02edff53625042287e"
72
+ },
73
+ "data/inventory.parquet": {
74
+ "bytes": 42823,
75
+ "sha256": "1db2fbd0e5fe4ec2ec13cc7ad40ecc92e02da41771119b051228a73a3e59ea4b"
76
+ },
77
+ "data/occurrences.parquet": {
78
+ "bytes": 7223,
79
+ "sha256": "981b85b0c19a7aba6486d6c7f2da156e1d1c18d2cf4e3cd442b8b0ba37bb10d9"
80
+ },
81
+ "data/recommendations.parquet": {
82
+ "bytes": 33064,
83
+ "sha256": "3091c478f823c08784d84db26451fbbc1fee66fab9416eeb041e89ddbd15f843"
84
+ },
85
+ "dataset_card.md": {
86
+ "bytes": 4715,
87
+ "sha256": "0045c6d9a7db0fb857eb9a548782c5a79a60ffbeccb5713ba89234e6c3a157e1"
88
+ },
89
+ "docs/annotation_guidelines.md": {
90
+ "bytes": 8032,
91
+ "sha256": "5ca282fd5888b5fe04486d36b3581acc3878a1a4ca95b585de9c2f1ea67a7e03"
92
+ },
93
+ "docs/benchmark_design.md": {
94
+ "bytes": 5164,
95
+ "sha256": "c04c1b42aa29f2b500db36c4efce2d04ab6f73e135e5e076d3dd8b5d0544eaa9"
96
+ },
97
+ "research/cause_section_role_independent_review_2026-10-01.md": {
98
+ "bytes": 3892,
99
+ "sha256": "c05afc249d5e64dbe3d02e5af780ec9cb717ae82a18e1fe1dc7946e7cdd06b2f"
100
+ },
101
+ "research/expanded_pilot_review_2026-10-01_cause_roles.md": {
102
+ "bytes": 7100,
103
+ "sha256": "ac53228352c4d9a2e4e8e9c52a3c8ae747b5c400447f81694d4d77f7b5e823c5"
104
+ }
105
+ },
106
+ "source_export_manifest_sha256": "df0f2ba936947768a635e6e32096b7ef3d21a4ebb925c52bd86e57847b3b5d46",
107
+ "status": "private_unreviewed_construction_pilot"
108
+ }
research/cause_section_role_independent_review_2026-10-01.md ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Independent review of Probable Cause section roles
2
+
3
+ Audit target: the current 20-document `data/processed/pilot_candidates` export. The audited `occurrences.jsonl` SHA-256 is `1b80021fc25a9636864e4217c5a36800a03db1e68e96aac36b882a2a8e81f03d`; its manifest records 20 occurrences and 3,488 evidence rows. This is an audit of **candidate classification and provenance**, not a causal gold annotation.
4
+
5
+ ## Complete check of listed items
6
+
7
+ There are **20 `unadjudicated_source_item` claims in five reports**:
8
+
9
+ | Occurrence | Physical PDF page | Items | Rendered-page check |
10
+ |---|---:|---:|---|
11
+ | VT-SGU | 26 | 4 | Four bullets follow the `3.2 PROBABLE CAUSE` heading and its lead-in. |
12
+ | VT-JTD | 24 | 6 | Six bullets follow `3.2 Probable Cause of Tail Strike` and its lead-in. One describes speed-brake deployment as a sequence event. |
13
+ | VT-AXE | 33 | 4 | Four numbered items follow the report's `Contributing to the incident were:` line within the Probable Cause section. |
14
+ | VT-ESH | 78 | 5 | Five bullets follow the report's combination-of-organizational-factors-and-human-error lead-in. |
15
+ | VT-EDD/VT-JBE | 42 | 1 | One bullet appears under `3.2 Probable cause of Incident`, before a separate `3.3 Contributory Factors` list. |
16
+
17
+ All **20/20** items have `source_section=probable_cause`, `claim_role=unadjudicated_cause_section_item`, `category=unadjudicated_source_item`, `assertion_basis=source_claim`, and candidate review status. Every evidence reference resolves to the same document's Probable Cause section. Every exported evidence quote exactly equals the cited parsed-page character slice, and normalized cited quotes exactly reconstruct the claim text. All five local source PDFs match the hashes recorded in `documents.jsonl`. Visual inspection of all five rendered source pages confirmed the heading, bullet boundaries, and item order. No listed item is assigned `category=probable_cause` or `claim_role=report_stated_probable_cause`; the export has no causal edges. The explorer also labels these as having an **unadjudicated individual causal role**, separately from the section title.
18
+
19
+ ## Continuous-prose sample
20
+
21
+ The export has **16 `report_stated_probable_cause`** claims. All 16 pass the same evidence-reference, section, exact parsed-page offset, and normalized wording checks. I inspected five rendered examples spanning short, long, and page-crossing prose: VT-AXE p.33, VT-RDX p.31, VT-AXH p.232, VT-CHG p.87, and VT-EGK pp.23–24. Each appears as continuous prose below a Probable Cause heading, without an item-list marker. VT-EGK continues onto p.24 before the Safety Recommendations heading. These rows preserve report wording; some prose describes several interacting failures and should not be treated as one atomic causal edge.
22
+
23
+ ## Classification issues for adjudication
24
+
25
+ 1. **VT-AXE's four numbered items are explicitly introduced as contributing factors.** The printed phrase `Contributing to the incident were:` precedes them on PDF p.33. The current `unadjudicated_source_item` label avoids falsely calling each a root cause, but it loses the report's explicit contributing-factor designation. Human adjudication should consider `report_stated_contributing_factor` for these four while preserving `source_section=probable_cause`.
26
+ 2. **VT-EDD/VT-JBE's sole bullet is the report's entire probable-cause statement.** It is isolated under `3.2 Probable cause of Incident`; `3.3 Contributory Factors` starts separately below it. The conservative unadjudicated role is safe, but may understate the report's explicit cause designation. This single item merits review for promotion to `report_stated_probable_cause`; that would still not assert it is a fully atomic root cause.
27
+
28
+ No code or processed data was changed for this review. Downstream analysis should filter on `category` and `claim_role`, not infer an item's causal status from `source_section` alone.
research/expanded_pilot_review_2026-10-01_cause_roles.md ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Final diagnostic sample after finding and claim-role repairs
2
+
3
+ Review date: 2026-10-01 (Asia/Kolkata). This is an independent review of the newly regenerated 20-document candidate export identified by the hashes below. The 58 decisions are frozen in [`expanded_pilot_sample_2026-10-01_cause_roles.csv`](expanded_pilot_sample_2026-10-01_cause_roles.csv). No extractor, parser, or processed record was edited during this review.
4
+
5
+ ## Selection and decision rule
6
+
7
+ For each document and each available class, select the record with the lexicographically smallest SHA-256 digest of `E|F|R + document_id + record_id`, concatenated without separators. This selects **20 events, 20 source claims, and 18 recommendations**. VT-IEH and VT-DDA have no recommendation candidate and do not enter that class's denominator. Each item passes only when it is a sufficiently complete, source-faithful single item of its stated class at the cited physical PDF page, without material OCR corruption or unrelated page furniture. An event may contain closely related source-level observations; this item test does not certify an atomic timeline node. A claim headed `Probable Cause` passes only if its own `category` and `claim_role` avoid asserting an individual causal role the source has not established.
8
+
9
+ The event and recommendation selections are unchanged from the preceding frozen review. Seventeen claim selections are also unchanged. I rechecked their IDs, normalized text prefixes, cited pages, and exact evidence offsets before retaining those earlier manual judgments; the two long unchanged recommendations had previously been read beyond the CSV excerpt. The three newly selected claims were read against parsed page context and rendered local official PDFs. I also re-rendered the unchanged VT-PWA finding page to inspect the numbered-item boundary. This is a repeat diagnostic on the **same tuned pilot**, not held-out evaluation, a random corpus sample, or a gold annotation set.
10
+
11
+ | Class | Strict item-correct / selected | Diagnostic rate | Selected failure |
12
+ |---|---:|---:|---|
13
+ | Event | **20 / 20** | **100.0%** | None selected. |
14
+ | Source claim | **20 / 20** | **100.0%** | None selected after the split and role repair. |
15
+ | Safety recommendation | **17 / 18** | **94.4%** | VT-AXE PDF p.34 has materially corrupted OCR. |
16
+
17
+ The prior snapshot's claim sample was **17/20**: VT-SGU, VT-JTD, and VT-ESH each selected one merged multi-bullet claim. The new selection chooses a single source bullet in each report, so this is a changed-sample diagnostic, **not** a paired three-item treatment effect. It does not estimate missing-claim recall or causal-category accuracy.
18
+
19
+ ## Changed and high-risk report checks
20
+
21
+ - **VT-SGU, PDF p.24:** The selected Certificate of Airworthiness/Registration/Release-to-Service statement is one complete bullet under `3.1 FINDINGS`. Its three cited text spans cover that bullet only. The neighboring bullets are separate in the rendered PDF. The export has 26 `other_finding` and four unadjudicated cause-section items for this report; this item-level check does not establish completeness of either list.
22
+ - **VT-JTD, PDF p.24:** The selected first-officer pitch-warning statement is one complete bullet under `3.2 Probable Cause of Tail Strike`. It is exported as `source_section=probable_cause`, `claim_role=unadjudicated_cause_section_item`, and `category=unadjudicated_source_item`. The nearby speed-brake-deployment bullet is likewise a source item, not an independently asserted probable cause. The six listed components are separated; the introductory phrase is not a standalone grammatical cause statement and is not exported as one. Human adjudication must decide how to represent the report's composite causal explanation.
23
+ - **VT-ESH, PDF p.74:** The selected runway-shutdown statement is one complete bullet, separate from the preceding medical check and following tech-log bullet. On p.78, five items under the report's cause heading carry unadjudicated individual roles; this avoids promoting a whole chain's component to an independent root cause. The report's cause introduction is not a complete atomic claim. Its composite meaning remains an annotation task.
24
+ - **VT-PWA, PDF p.86:** The selected numbered finding 5 is still a complete single source item, distinct from numbered findings 4 and 6. The following probable-cause paragraph remains continuous report-authored prose and is exported as `report_stated_probable_cause`, without splitting it into independently asserted causes.
25
+ - **VT-AXE, PDF p.34:** The selected recommendation still includes OCR corruption around the transmissometer/AWOS wording. Exact offsets point into the parsed OCR, but that wording fails strict source-faithful usability. It needs a controlled transcription or OCR patch checked against the rendered PDF.
26
+
27
+ ## Provenance and interpretation limits
28
+
29
+ All **3,488/3,488** evidence quotes match `page_text[char_start:char_end]` in the cited parsed page, and all **20/20** local PDFs match the SHA-256 values in `documents.jsonl`. **81** evidence rows have `paragraph_id=null`; every non-null paragraph ID resolves to a same-section span containing the cited character interval. The release validator reports **0 errors, 0 warnings**. These are mechanical provenance checks. They do not establish that OCR matches the PDF, that a quote semantically supports every claim, or that sequence is chronological.
30
+
31
+ The claim-category distribution is 436 `other_finding`, 20 `unadjudicated_source_item`, 16 `probable_cause`, and 39 `contributing_factor`. `other_finding` is a source-section item label, not a conclusion of non-causality. A `probable_cause` claim represents report-authored continuous prose, which can still contain interacting factors and is not necessarily atomic. The 58-row sample includes only one unadjudicated cause-section bullet, so it cannot estimate the quality of that category. The export has **zero causal edges** and no adjudicated event order. Recommendation recipients, finding-to-recommendation links, follow-up status, recall, and inter-annotator agreement remain outside this diagnostic.
32
+
33
+ ## Frozen snapshot
34
+
35
+ | File | SHA-256 |
36
+ |---|---|
37
+ | `data/processed/pilot_candidates/documents.jsonl` | `75fb67a9e9880873daf91cf0494964189c5b0dcec8cb212879c10d5ac04df101` |
38
+ | `data/processed/pilot_candidates/occurrences.jsonl` | `1b80021fc25a9636864e4217c5a36800a03db1e68e96aac36b882a2a8e81f03d` |
39
+ | `data/processed/pilot_candidates/events.jsonl` | `75a26719f96ff714112f55f917d7256d0eefae7c5c04c94e3c1a92796d2bf1c3` |
40
+ | `data/processed/pilot_candidates/evidence.jsonl` | `22a05038789eee97bc0c09d43e7fe001b27bc9ae654f6862612f2defbc495bc7` |
41
+ | `data/processed/pilot_candidates/recommendations.jsonl` | `ff7f53ce377ee8841fa2009b8cbae2b147270f78b718e0331f12f750ab1606a5` |
42
+ | `research/expanded_pilot_sample_2026-10-01_cause_roles.csv` | `06ec455e018b7e1d67cff20d7d1a43f3eb1dc02eeb50b02c69664cb18c61dde0` |
43
+
44
+ Source URLs and per-PDF hashes are retained in `documents.jsonl`. Any future regeneration changes the audit population and requires fresh selection and review.