Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/production-truth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,14 @@ jobs:
run: |
node scripts/build-draw-pool.mjs
git diff --exit-code -- assets/oracles.draw-pool.js data/production/draw-pool.report.json

- name: Run 解曰 layer regression suite (three halls, holds, fail-closed counter-examples)
run: node scripts/test-interpretation-pool.mjs

- name: Committed 解曰 pools + holds must match a rebuild from corpus sources
run: |
node scripts/build-interpretation-pool.mjs
git diff --exit-code -- assets/interpretation-pool.guanyin.js assets/interpretation-pool.guandi.js assets/interpretation-holds.js data/production/interpretation-pool.report.json data/production/interpretation-pool.guandi.report.json

- name: Arrival mechanics contracts (incl. 紙落定即入簿)
run: node scripts/test-arrival.mjs
84 changes: 84 additions & 0 deletions assets/interpretation-holds.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
// GENERATED by scripts/build-interpretation-pool.mjs — DO NOT EDIT BY HAND.
// What the 解曰 layer withholds, and why (reason codes only). Regenerate with the pools.
window.INTERPRETATION_HOLDS = {
"schema": "interpretation-holds/0.1",
"note": "What the 解曰 layer deliberately does NOT show, and why. Reason codes only — no withheld text ever enters this file. The page may state the reason; it may not fill the gap.",
"reason_codes": {
"unsettled_transcription": "source status UNRESOLVED/CANDIDATE (missing or undecided characters)",
"suspect_reading": "a character in the transcription is flagged as a likely misreading; not yet checked against the original image",
"irregular_form": "the transcription's form/punctuation is irregular for this edition; not yet checked against the original image",
"license_unresolved": "reuse licence of the source text is not confirmed",
"single_pass_ocr": "transcription is single-pass OCR with no human image check"
},
"corpora": {
"guanyin": {
"scope": "slip",
"edition_id": "ed-guanyin-xue2008-appendix2-image",
"content_version": "e34cea042c1748a4bcc7e1a51d1ee21e843e3b5942606715ff94688c056a0b22",
"slips": {
"12": "unsettled_transcription",
"20": "unsettled_transcription",
"35": "unsettled_transcription",
"44": "unsettled_transcription",
"65": "unsettled_transcription",
"77": "unsettled_transcription"
}
},
"guandi": {
"scope": "slip",
"edition_id": "ed-guandi-daozang-fuye-1225",
"content_version": "b69098e9cc77e40d306899f12931e12f389c423277efacb000768c358d2fe90d",
"slips": {
"5": "suspect_reading",
"6": "suspect_reading",
"10": "suspect_reading",
"11": "suspect_reading",
"12": "suspect_reading",
"25": "suspect_reading",
"31": "suspect_reading",
"33": "suspect_reading",
"36": "suspect_reading",
"38": "suspect_reading",
"46": "suspect_reading",
"47": "suspect_reading",
"52": "suspect_reading",
"56": "suspect_reading",
"58": "suspect_reading",
"66": "suspect_reading",
"67": "suspect_reading",
"68": "suspect_reading",
"69": "suspect_reading",
"71": "suspect_reading",
"73": "irregular_form",
"75": "suspect_reading",
"80": "suspect_reading",
"83": "suspect_reading",
"85": "suspect_reading",
"87": "suspect_reading",
"88": "suspect_reading",
"91": "irregular_form",
"94": "suspect_reading",
"100": "unsettled_transcription"
}
},
"liushijiazi": {
"scope": "corpus",
"reasons": [
"license_unresolved",
"single_pass_ocr"
],
"evidence": {
"license_status": "unsure",
"item_license_status": "unresolved",
"layer_status": "DRAFT",
"entries": 360,
"probable": 3,
"candidate": 349,
"unresolved": 8,
"human_image_confirmed": 0
},
"official_url": "https://www.matsu.org.tw/?act=menuinfo&ml_id=20240116002&cmd=list",
"official_name": "北港朝天宮"
}
}
};
Loading
Loading