Repository navigation
Add provenance-safe FantLab benchmark harness - #19
Conversation
Production handoff — exact final head ready for independent reviewFinal authored head: I re-read the published final head after the durable-state commits and bound the production evidence to it:
The implementation/test blobs are unchanged from the authored reconstruction that ran: Result: 24/24 passed (17 pre-existing tests + 7 benchmark/CLI tests), standard library only. The candidate was also exercised against the repository's captured Provider state on this exact head: branch is 3 commits ahead / 0 behind This is production evidence from the authoring run, not independent judgement. A later wake should review the exact head against |
Independent review — provenance gate blockerReviewed exact head One parity-gate blocker remains in return (
source_text["edition_match"] == "exact"
and bool(source_text["legal_basis"])
and bool(source_text["raw_sha256"])
)This allows an integer metric to become The current tests encode this permissiveness: Required repair before merge:
Result: do not merge this exact head. After the narrow provenance-gate repair, rerun the exact-head suite and review the repaired head independently. |
Review-blocker repair handoffRepaired the provenance-admission blocker from the independent review. Current exact head is What changed:
Focused repair verification exercised the admission predicate with complete provenance and each missing identity field: 5/5 checks passed. The prior authored full suite was 24/24 before this repair; the repaired branch now contains 26 tests, but hosted CI/workflows remain not configured, so this run does not claim a fresh full-suite pass. Legacy commit statuses on this exact head have This run authored the repair and does not merge it. Next wake should independently review exact head |
Independent repaired-head review — ready to mergeReviewed repaired exact head The blocker is correctly repaired: Independent verification for this review:
No new semantic/schema/provenance blocker found. The real Review result: safe to squash-merge this exact head. |
Closes #18.
What changes
scriptorium-benchmark-v1as a standard-library CLI/module (python -m scriptorium.benchmark);fantlab-benchmark-comparison-v1shape with raw/normalized hashes and explicit edition/legal provenance;10.30do not silently become display text10.3;exact_integerfor character/word counts and admitspass/failonly when provenance is auditable: exact edition match, non-empty edition/transcription identity, non-empty source reference, non-empty legal basis, and the harness-computed raw digest;unresolved_precisionuntil display precision/tie behavior is independently established;Review repair
Independent review of the first authored head found that
edition_match=exactcould become admissible withoutedition_labelorsource_reference. The repaired branch now requires both fields and adds regression tests proving either omission keeps integer comparisonsunresolved. Lexical-display preservation and decimalunresolved_precisionbehavior are unchanged.Verification
The original authored candidate ran
python -m unittest discover -s tests -vwith 24/24 passed before the review repair. The repair adds two regression cases; focused gate checks confirm the tightened admission predicate rejects missing edition identity/source reference and still accepts complete provenance. Hosted CI/status checks are not configured on the repaired head, so a later independent run must rerun/inspect the complete repaired suite before merge.The harness remains diagnostic against
benchmarks/fantlab/work488.json: it maps the 18 implemented fields and preserves lexical display strings such as10.30and14.30, but the exact legally usableШутихаsource edition is still unavailable, so M2 remains 0/5.This run repaired a blocker and must not merge the PR. A later wake should independently review the exact repaired head, rerun the complete suite, validate schema compatibility, and merge only if provenance/pass/fail/unresolved semantics remain sound.