From a558de0cd11c1e95bcf3e7e3c9c34262d2f4ae91 Mon Sep 17 00:00:00 2001 From: vochic-03 <117650933+vochic-03@users.noreply.github.com> Date: Sun, 29 Nov 2026 03:49:24 +0000 Subject: [PATCH 01/10] Add vochic03/document-library plugin --- .../.minimax-plugin/plugin.json | 20 + plugins/vochic03/document-library/LICENSE | 192 +++ .../vochic03/document-library/PROVENANCE.md | 62 + plugins/vochic03/document-library/README.md | 85 ++ .../agents/library-builder.md | 53 + .../examples/build-example.sh | 42 + .../espresso-2024/chapters/01-The-shot.md | 14 + .../espresso-2024/chapters/02-The-puck.md | 8 + .../filter-2025/chapters/01-The-brew.md | 11 + .../filter-2025/chapters/02-The-water.md | 8 + .../index/terms/espresso-2024.jsonl | 6 + .../index/terms/filter-2025.jsonl | 7 + .../index/terms/roast-2023.jsonl | 8 + .../paper-filter-2019/manifest.json | 18 + .../paper-filter-2019/outline.json | 33 + .../paper-filter-2019/paragraphs.jsonl | 3 + .../roast-2023/chapters/01-The-roast.md | 7 + .../roast-2023/chapters/02-The-cup.md | 7 + .../vochic03/document-library/icon-dark.png | Bin 0 -> 158049 bytes plugins/vochic03/document-library/icon.png | Bin 0 -> 127527 bytes .../pipeline/book2corpus/__init__.py | 3 + .../pipeline/book2corpus/admission.py | 631 ++++++++ .../pipeline/book2corpus/assignment.py | 170 +++ .../pipeline/book2corpus/batch.py | 151 ++ .../pipeline/book2corpus/book.py | 353 +++++ .../pipeline/book2corpus/cli.py | 372 +++++ .../pipeline/book2corpus/counts_line.py | 48 + .../pipeline/book2corpus/debris.py | 300 ++++ .../pipeline/book2corpus/digital.py | 546 +++++++ .../pipeline/book2corpus/emit.py | 429 ++++++ .../pipeline/book2corpus/figures.py | 802 ++++++++++ .../pipeline/book2corpus/html.py | 371 +++++ .../pipeline/book2corpus/ids.py | 114 ++ .../pipeline/book2corpus/index_block.py | 116 ++ .../pipeline/book2corpus/ingest.py | 140 ++ .../pipeline/book2corpus/ir.py | 87 ++ .../pipeline/book2corpus/judge.py | 561 +++++++ .../pipeline/book2corpus/layout.py | 189 +++ .../pipeline/book2corpus/notes.py | 1336 ++++++++++++++++ .../pipeline/book2corpus/notes_gate.py | 821 ++++++++++ .../pipeline/book2corpus/pipeline.py | 405 +++++ .../pipeline/book2corpus/profile.py | 153 ++ .../pipeline/book2corpus/projection.py | 724 +++++++++ .../pipeline/book2corpus/provenance.py | 45 + .../pipeline/book2corpus/qa.py | 608 ++++++++ .../pipeline/book2corpus/readscore.py | 145 ++ .../pipeline/book2corpus/scrub.py | 73 + .../pipeline/book2corpus/selfcheck.py | 237 +++ .../pipeline/book2corpus/stamp.py | 205 +++ .../pipeline/book2corpus/structure.py | 323 ++++ .../pipeline/book2corpus/tables.py | 92 ++ .../book2corpus/templates/reader.head.html | 415 +++++ .../book2corpus/templates/reader.tail.html | 326 ++++ .../pipeline/book2corpus/terms.py | 475 ++++++ .../pipeline/book2corpus/verify.py | 411 +++++ .../pipeline/file-manifest.json | 558 +++++++ .../pipeline/scripts/assemble_index.py | 329 ++++ .../pipeline/scripts/audit_figures.py | 546 +++++++ .../pipeline/scripts/build_database.py | 257 ++++ .../pipeline/scripts/build_inventory.py | 694 +++++++++ .../pipeline/scripts/build_read_packets.py | 237 +++ .../scripts/check_answers_reproduced.py | 92 ++ .../pipeline/scripts/check_inventory.py | 248 +++ .../pipeline/scripts/check_minimal.py | 176 +++ .../pipeline/scripts/check_reader_browser.py | 134 ++ .../pipeline/scripts/check_readers.py | 176 +++ .../pipeline/scripts/check_reproducible.py | 539 +++++++ .../pipeline/scripts/check_source_traces.py | 141 ++ .../pipeline/scripts/judge_forms.py | 1337 +++++++++++++++++ .../pipeline/scripts/make_corpus_index.py | 193 +++ .../pipeline/scripts/make_index.py | 260 ++++ .../pipeline/scripts/make_policy.py | 231 +++ .../pipeline/scripts/make_search_index.py | 152 ++ .../pipeline/scripts/make_terms.py | 1005 +++++++++++++ .../pipeline/scripts/md_corpus2html.py | 690 +++++++++ .../pipeline/scripts/pipeline.py | 527 +++++++ .../pipeline/scripts/rebuild_all.sh | 117 ++ .../pipeline/scripts/render_database_view.py | 350 +++++ .../pipeline/scripts/render_machine_reader.py | 141 ++ .../pipeline/scripts/score_read.py | 224 +++ .../pipeline/scripts/score_reread.py | 404 +++++ .../pipeline/scripts/scrub_source_traces.py | 179 +++ .../pipeline/scripts/write_run_record.py | 213 +++ .../pipeline/settings/pipeline.json | 81 + .../pipeline/tests/__init__.py | 0 .../pipeline/tests/fixtures.py | 96 ++ .../pipeline/tests/test_admission.py | 488 ++++++ .../pipeline/tests/test_answers_reproduced.py | 115 ++ .../pipeline/tests/test_build.py | 83 + .../pipeline/tests/test_corpus_pipeline.py | 241 +++ .../pipeline/tests/test_debris.py | 166 ++ .../pipeline/tests/test_forms.py | 191 +++ .../pipeline/tests/test_index.py | 286 ++++ .../pipeline/tests/test_inventory_identity.py | 468 ++++++ .../pipeline/tests/test_judge_escalation.py | 165 ++ .../pipeline/tests/test_judge_reuse.py | 200 +++ .../pipeline/tests/test_matching.py | 113 ++ .../pipeline/tests/test_missing_forms.py | 144 ++ .../pipeline/tests/test_pipeline.py | 92 ++ .../pipeline/tests/test_projection.py | 471 ++++++ .../pipeline/tests/test_read_packets.py | 112 ++ .../pipeline/tests/test_read_score.py | 129 ++ .../pipeline/tests/test_scrub.py | 51 + .../pipeline/tests/test_stamp.py | 122 ++ .../pipeline/tests/test_tool.py | 25 + .../pipeline/tools/register_prompt.py | 54 + .../pipeline/tools/scaffold_library.py | 141 ++ .../pipeline/tools/verify_vendored.py | 74 + .../pipeline/tools/write_readme.py | 87 ++ plugins/vochic03/document-library/plugin.json | 20 + .../vochic03/document-library/skills/SKILL.md | 151 ++ .../skills/document-library/SKILL.md | 151 ++ .../references/document-contract.md | 96 ++ .../references/identities-and-claims.md | 73 + .../document-library/references/settings.md | 98 ++ 115 files changed, 27695 insertions(+) create mode 100644 plugins/vochic03/document-library/.minimax-plugin/plugin.json create mode 100644 plugins/vochic03/document-library/LICENSE create mode 100644 plugins/vochic03/document-library/PROVENANCE.md create mode 100644 plugins/vochic03/document-library/README.md create mode 100644 plugins/vochic03/document-library/agents/library-builder.md create mode 100644 plugins/vochic03/document-library/examples/build-example.sh create mode 100644 plugins/vochic03/document-library/examples/coffee-library/espresso-2024/chapters/01-The-shot.md create mode 100644 plugins/vochic03/document-library/examples/coffee-library/espresso-2024/chapters/02-The-puck.md create mode 100644 plugins/vochic03/document-library/examples/coffee-library/filter-2025/chapters/01-The-brew.md create mode 100644 plugins/vochic03/document-library/examples/coffee-library/filter-2025/chapters/02-The-water.md create mode 100644 plugins/vochic03/document-library/examples/coffee-library/index/terms/espresso-2024.jsonl create mode 100644 plugins/vochic03/document-library/examples/coffee-library/index/terms/filter-2025.jsonl create mode 100644 plugins/vochic03/document-library/examples/coffee-library/index/terms/roast-2023.jsonl create mode 100644 plugins/vochic03/document-library/examples/coffee-library/paper-filter-2019/manifest.json create mode 100644 plugins/vochic03/document-library/examples/coffee-library/paper-filter-2019/outline.json create mode 100644 plugins/vochic03/document-library/examples/coffee-library/paper-filter-2019/paragraphs.jsonl create mode 100644 plugins/vochic03/document-library/examples/coffee-library/roast-2023/chapters/01-The-roast.md create mode 100644 plugins/vochic03/document-library/examples/coffee-library/roast-2023/chapters/02-The-cup.md create mode 100644 plugins/vochic03/document-library/icon-dark.png create mode 100644 plugins/vochic03/document-library/icon.png create mode 100644 plugins/vochic03/document-library/pipeline/book2corpus/__init__.py create mode 100644 plugins/vochic03/document-library/pipeline/book2corpus/admission.py create mode 100644 plugins/vochic03/document-library/pipeline/book2corpus/assignment.py create mode 100644 plugins/vochic03/document-library/pipeline/book2corpus/batch.py create mode 100644 plugins/vochic03/document-library/pipeline/book2corpus/book.py create mode 100644 plugins/vochic03/document-library/pipeline/book2corpus/cli.py create mode 100644 plugins/vochic03/document-library/pipeline/book2corpus/counts_line.py create mode 100644 plugins/vochic03/document-library/pipeline/book2corpus/debris.py create mode 100644 plugins/vochic03/document-library/pipeline/book2corpus/digital.py create mode 100644 plugins/vochic03/document-library/pipeline/book2corpus/emit.py create mode 100644 plugins/vochic03/document-library/pipeline/book2corpus/figures.py create mode 100644 plugins/vochic03/document-library/pipeline/book2corpus/html.py create mode 100644 plugins/vochic03/document-library/pipeline/book2corpus/ids.py create mode 100644 plugins/vochic03/document-library/pipeline/book2corpus/index_block.py create mode 100644 plugins/vochic03/document-library/pipeline/book2corpus/ingest.py create mode 100644 plugins/vochic03/document-library/pipeline/book2corpus/ir.py create mode 100644 plugins/vochic03/document-library/pipeline/book2corpus/judge.py create mode 100644 plugins/vochic03/document-library/pipeline/book2corpus/layout.py create mode 100644 plugins/vochic03/document-library/pipeline/book2corpus/notes.py create mode 100644 plugins/vochic03/document-library/pipeline/book2corpus/notes_gate.py create mode 100644 plugins/vochic03/document-library/pipeline/book2corpus/pipeline.py create mode 100644 plugins/vochic03/document-library/pipeline/book2corpus/profile.py create mode 100644 plugins/vochic03/document-library/pipeline/book2corpus/projection.py create mode 100644 plugins/vochic03/document-library/pipeline/book2corpus/provenance.py create mode 100644 plugins/vochic03/document-library/pipeline/book2corpus/qa.py create mode 100644 plugins/vochic03/document-library/pipeline/book2corpus/readscore.py create mode 100644 plugins/vochic03/document-library/pipeline/book2corpus/scrub.py create mode 100644 plugins/vochic03/document-library/pipeline/book2corpus/selfcheck.py create mode 100644 plugins/vochic03/document-library/pipeline/book2corpus/stamp.py create mode 100644 plugins/vochic03/document-library/pipeline/book2corpus/structure.py create mode 100644 plugins/vochic03/document-library/pipeline/book2corpus/tables.py create mode 100644 plugins/vochic03/document-library/pipeline/book2corpus/templates/reader.head.html create mode 100644 plugins/vochic03/document-library/pipeline/book2corpus/templates/reader.tail.html create mode 100644 plugins/vochic03/document-library/pipeline/book2corpus/terms.py create mode 100644 plugins/vochic03/document-library/pipeline/book2corpus/verify.py create mode 100644 plugins/vochic03/document-library/pipeline/file-manifest.json create mode 100644 plugins/vochic03/document-library/pipeline/scripts/assemble_index.py create mode 100644 plugins/vochic03/document-library/pipeline/scripts/audit_figures.py create mode 100644 plugins/vochic03/document-library/pipeline/scripts/build_database.py create mode 100644 plugins/vochic03/document-library/pipeline/scripts/build_inventory.py create mode 100755 plugins/vochic03/document-library/pipeline/scripts/build_read_packets.py create mode 100644 plugins/vochic03/document-library/pipeline/scripts/check_answers_reproduced.py create mode 100644 plugins/vochic03/document-library/pipeline/scripts/check_inventory.py create mode 100644 plugins/vochic03/document-library/pipeline/scripts/check_minimal.py create mode 100755 plugins/vochic03/document-library/pipeline/scripts/check_reader_browser.py create mode 100644 plugins/vochic03/document-library/pipeline/scripts/check_readers.py create mode 100755 plugins/vochic03/document-library/pipeline/scripts/check_reproducible.py create mode 100644 plugins/vochic03/document-library/pipeline/scripts/check_source_traces.py create mode 100644 plugins/vochic03/document-library/pipeline/scripts/judge_forms.py create mode 100644 plugins/vochic03/document-library/pipeline/scripts/make_corpus_index.py create mode 100644 plugins/vochic03/document-library/pipeline/scripts/make_index.py create mode 100644 plugins/vochic03/document-library/pipeline/scripts/make_policy.py create mode 100644 plugins/vochic03/document-library/pipeline/scripts/make_search_index.py create mode 100644 plugins/vochic03/document-library/pipeline/scripts/make_terms.py create mode 100755 plugins/vochic03/document-library/pipeline/scripts/md_corpus2html.py create mode 100644 plugins/vochic03/document-library/pipeline/scripts/pipeline.py create mode 100755 plugins/vochic03/document-library/pipeline/scripts/rebuild_all.sh create mode 100644 plugins/vochic03/document-library/pipeline/scripts/render_database_view.py create mode 100644 plugins/vochic03/document-library/pipeline/scripts/render_machine_reader.py create mode 100644 plugins/vochic03/document-library/pipeline/scripts/score_read.py create mode 100644 plugins/vochic03/document-library/pipeline/scripts/score_reread.py create mode 100644 plugins/vochic03/document-library/pipeline/scripts/scrub_source_traces.py create mode 100644 plugins/vochic03/document-library/pipeline/scripts/write_run_record.py create mode 100644 plugins/vochic03/document-library/pipeline/settings/pipeline.json create mode 100644 plugins/vochic03/document-library/pipeline/tests/__init__.py create mode 100644 plugins/vochic03/document-library/pipeline/tests/fixtures.py create mode 100644 plugins/vochic03/document-library/pipeline/tests/test_admission.py create mode 100644 plugins/vochic03/document-library/pipeline/tests/test_answers_reproduced.py create mode 100644 plugins/vochic03/document-library/pipeline/tests/test_build.py create mode 100644 plugins/vochic03/document-library/pipeline/tests/test_corpus_pipeline.py create mode 100644 plugins/vochic03/document-library/pipeline/tests/test_debris.py create mode 100644 plugins/vochic03/document-library/pipeline/tests/test_forms.py create mode 100644 plugins/vochic03/document-library/pipeline/tests/test_index.py create mode 100644 plugins/vochic03/document-library/pipeline/tests/test_inventory_identity.py create mode 100644 plugins/vochic03/document-library/pipeline/tests/test_judge_escalation.py create mode 100644 plugins/vochic03/document-library/pipeline/tests/test_judge_reuse.py create mode 100644 plugins/vochic03/document-library/pipeline/tests/test_matching.py create mode 100644 plugins/vochic03/document-library/pipeline/tests/test_missing_forms.py create mode 100644 plugins/vochic03/document-library/pipeline/tests/test_pipeline.py create mode 100644 plugins/vochic03/document-library/pipeline/tests/test_projection.py create mode 100644 plugins/vochic03/document-library/pipeline/tests/test_read_packets.py create mode 100644 plugins/vochic03/document-library/pipeline/tests/test_read_score.py create mode 100644 plugins/vochic03/document-library/pipeline/tests/test_scrub.py create mode 100644 plugins/vochic03/document-library/pipeline/tests/test_stamp.py create mode 100644 plugins/vochic03/document-library/pipeline/tests/test_tool.py create mode 100644 plugins/vochic03/document-library/pipeline/tools/register_prompt.py create mode 100644 plugins/vochic03/document-library/pipeline/tools/scaffold_library.py create mode 100644 plugins/vochic03/document-library/pipeline/tools/verify_vendored.py create mode 100644 plugins/vochic03/document-library/pipeline/tools/write_readme.py create mode 100644 plugins/vochic03/document-library/plugin.json create mode 100644 plugins/vochic03/document-library/skills/SKILL.md create mode 100644 plugins/vochic03/document-library/skills/document-library/SKILL.md create mode 100644 plugins/vochic03/document-library/skills/document-library/references/document-contract.md create mode 100644 plugins/vochic03/document-library/skills/document-library/references/identities-and-claims.md create mode 100644 plugins/vochic03/document-library/skills/document-library/references/settings.md diff --git a/plugins/vochic03/document-library/.minimax-plugin/plugin.json b/plugins/vochic03/document-library/.minimax-plugin/plugin.json new file mode 100644 index 00000000..b0f2b1de --- /dev/null +++ b/plugins/vochic03/document-library/.minimax-plugin/plugin.json @@ -0,0 +1,20 @@ +{ + "schemaVersion": 1, + "name": "document-library", + "displayName": "Document Library", + "version": "1.0.0", + "description": "Builds a document library: a folder of documents indexed into terms, shared names, concepts and a browsable database, with an inventory whose identities must hold, gates that stop the build, and a README that says what the library does not know.", + "author": "Baz", + "icon": "icon.png", + "darkIcon": "icon-dark.png", + "category": "Code", + "exampleQueries": [ + "Build a document library from this folder of notes and tell me what it holds.", + "Index these scanned PDFs into a library, judge which documents share a sense, and say what the judge is worth.", + "Check the inventory of my document library and say which stages have not run yet." + ], + "apps": [], + "mcpServers": [], + "skills": ["skills/document-library/SKILL.md"], + "agents": ["agents/library-builder.md"] +} \ No newline at end of file diff --git a/plugins/vochic03/document-library/LICENSE b/plugins/vochic03/document-library/LICENSE new file mode 100644 index 00000000..125be1b8 --- /dev/null +++ b/plugins/vochic03/document-library/LICENSE @@ -0,0 +1,192 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + Copyright 2026 MCode Plugins contributors + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/plugins/vochic03/document-library/PROVENANCE.md b/plugins/vochic03/document-library/PROVENANCE.md new file mode 100644 index 00000000..6367c616 --- /dev/null +++ b/plugins/vochic03/document-library/PROVENANCE.md @@ -0,0 +1,62 @@ +# The provenance of this package + +The pipeline in `pipeline/` is not written here. It is the pipeline of the tool +repository `vochic03/book2corpus`, taken at one commit and carried with its hash. + +| what | where | +|---|---| +| the source | https://gitlab.com/vochic03/book2corpus | +| the commit | `af059480a165930d468fdbc1ad72e765431ca17a` (master) | +| the files and their hashes | `pipeline/file-manifest.json` | +| what is carried | the pipeline: the scripts, the library, the settings template, the tools, the example, and the tests that cover them. The one-command runner is `pipeline/scripts/rebuild_all.sh`, and `pipeline/tools/scaffold_library.py` writes it into a library as `build.sh`. | +| what is not carried | the audits of one corpus: the calibration, the gold set, the admission replays, the scores, the shipping helper | + +## Why the audits are not here + +The audits are the work of one corpus. The corpus of forty-two textbooks has its +own calibration figures, its own gold set, its own measured scores and its own +way of being published, and a second library must build its own or claim +nothing. The mechanism travels; the values stay with the corpus they were +measured on. + +## The drift + +The copy here is a copy, and a copy can go stale. Three things keep it honest: + +- `pipeline/file-manifest.json` names every file and its hash, so a change in + the package is visible; +- the source commit is in this file and in the manifest; +- the tests of the carried core travel with it, and they pass here: + +```bash +cd /pipeline && python3 -m unittest discover -s tests -t . +``` + +To take a newer upstream: copy the pipeline scripts and the library out of the +tool repository at the new commit, copy the tests that cover them, run the +suite, and write the new commit and the new hashes into +`pipeline/file-manifest.json` and into this file. + +And check that the copy is the copy: + +```bash +python3 /pipeline/tools/verify_vendored.py +``` + +It reads the manifest and the package, and it names every file that changed, is +missing, or is here and not in the manifest. + +## The proofs + +| what | how | +|---|---| +| the carried tests pass | `cd pipeline && python3 -m unittest discover -s tests -t .` | +| a library that is not books builds, from this package alone | `bash examples/build-example.sh` | +| the gate stops when the README drifts | change a number in the marked section and run the gate | +| a lost document stops the build | remove a document folder and build | +| the money cap stops a run before the first call | set the cap to zero and run the judge | +| the corpus still rebuilds with this copy of the core | `bash /pipeline/scripts/rebuild_all.sh --corpus-root ` | + +The example is three short notes about coffee, and it ships with its terms, so it +builds with no model and no key. The stages that ask a model are the terms and +the links, and the cap stops them before they start when the cap is not set. \ No newline at end of file diff --git a/plugins/vochic03/document-library/README.md b/plugins/vochic03/document-library/README.md new file mode 100644 index 00000000..c14f3213 --- /dev/null +++ b/plugins/vochic03/document-library/README.md @@ -0,0 +1,85 @@ +# Document Library + +Builds a document library: a folder of documents indexed into the terms they share, the +concepts those terms make, the cross-document links, and a browsable database - with an +inventory whose identities must hold, gates that stop the build, and a README that says what +the library does not know. + +The problem: a pile of documents is not an index. Indexing one by hand loses rows, and the +loss is silent - the index still builds, it is just smaller than it should be, and every +number taken from it is quietly wrong. This plugin indexes a folder of documents with checks +that fail the build when a row is lost, and it is honest about what it does not know. + +## Try it + +```text +Build a document library from this folder of notes and tell me what it holds. +``` + +The expected result: the agent finds the folder, scaffolds the library, runs the stages that +ask no model, and reports the inventory: the documents, the book entries, the distinct names, +the forms, the concepts, the identities and their states, the gates, the cost, and the things +the library may not say. + +```text +==> [1/9] the index +books: 4 | canonical forms: 11 | shared forms: 7 | held back: 0 +==> [8/9] the inventory +the books: 4 | the book entries: 21 | the forms: 7 | the concepts: 0 + the term entries and the occurrence entries are the same set holds + the books grouped and the books unplaced are the books of every form not built yet + every form of the corpus has exactly one row in the manifest not built yet +the README and the inventory agree: books 4, book entries 21, distinct names 11 +==> done: the corpus is rebuilt and every gate passed +``` + +A stage that has not run says so, and the build does not fail for it: a library that has only +been indexed is not a broken library. + +## What is in the package + +| what | where | +|---|---| +| the procedure | `skills/document-library/SKILL.md`, with the document contract, the settings and the identities under `skills/document-library/references/` | +| the pipeline | `pipeline/` - the indexing, the judging, the concepts, the readers, the database, the inventory and the gates | +| the scaffold | `pipeline/tools/scaffold_library.py` - it makes a library, its settings and its build script | +| the example | `examples/coffee-library` - three short notes and one scanned-style document, and `examples/build-example.sh`, which builds it with no model and no key | +| the provenance | `PROVENANCE.md` and `pipeline/file-manifest.json` - the upstream commit and the hash of every vendored file | + +The pipeline is vendored from the tool repository `vochic03/book2corpus`, which is its upstream. +A change goes there first and is copied here, and `pipeline/tools/verify_vendored.py` checks +that the copy is the copy. + +## Requirements + +| what | why | +|---|---| +| Python 3.10 or later | the pipeline is the standard library and nothing else | +| an Anthropic, Google or OpenRouter key in `~/claude-keys/.header` | the stages that ask a model read it from there | +| macOS, Linux or Windows with a shell | the build is one command | + +The Plugin carries no key, no endpoint of its own and no installer, and it never writes a +credential into a library. + +## Data and network + +- The stages that ask no model never touch the network. +- The stages that ask a model send the passages that carry the term to the provider named in the + settings: `api.anthropic.com`, `generativelanguage.googleapis.com` or + `openrouter.ai`, and nothing else. +- The documents themselves are never uploaded anywhere else, and the library records the document, + not the copy it was read from. +- Every stage that asks a model has a money cap in the settings, and a stage with no cap is + refused before the first call. + +## Compatibility + +The package carries both manifests. MiniMax Code reads `.minimax-plugin/plugin.json`, which +also declares the subagent `agents/library-builder.md`, the icons, the category and the example +queries. A reader that uses the portable `plugin.json` at the root of the package gets the Skill +and the pipeline, and not the subagent: the subagent, the icons and the example queries are +declarations of the MiniMax manifest only. + +## Licence + +Apache-2.0. The vendored pipeline is the owner's own code, from the repository named above. \ No newline at end of file diff --git a/plugins/vochic03/document-library/agents/library-builder.md b/plugins/vochic03/document-library/agents/library-builder.md new file mode 100644 index 00000000..781de48b --- /dev/null +++ b/plugins/vochic03/document-library/agents/library-builder.md @@ -0,0 +1,53 @@ +--- +name: library-builder +description: Builds a document library with the document-library pipeline and reports what it holds, what it refuses and what it does not know. Use when a library has to be scaffolded, indexed, judged, rebuilt or checked, and when the build output is long enough to crowd the main conversation. +tools: [read, write, edit, bash, grep, glob] +skills: [document-library] +x-mavis: + displayName: Library Builder +--- + +You build document libraries. The pipeline is in ${PLUGIN_ROOT}/pipeline, and the +procedure is the document-library skill, which is loaded in full. + +The library is a folder of documents somewhere on this machine. Find it before +you start, and if there is more than one candidate, ask which one. + +## What you do + +1. Read the settings of the library: `/settings/pipeline.json`. Read the + caps first. If a cap is missing, the run is stopped before the first call, and + that is the first thing to report. +2. Scaffold the library if it has no settings and no build script: + `python3 ${PLUGIN_ROOT}/pipeline/tools/scaffold_library.py --root `. +3. Run the build: `bash /build.sh`. It writes the inventory and stops at + the inventory gate the first time, because the README does not yet say what + the inventory says. +4. Write the section of the README from the inventory it produced: + `python3 ${PLUGIN_ROOT}/pipeline/tools/write_readme.py --corpus-root `, + and build again. The build never writes the README itself: the gate is there + to catch a README that says something the inventory does not. +5. The stages that ask a model - the terms and the links - are only run when the + owner has asked for them and the caps are set. Say what a stage would cost + before you run it, and what it cost after. + +## What you report + +The inventory: the totals, the identities and their states, the gaps, the cost of +the run, and the stages that have not run yet. Then what the library cannot say: +no accuracy claim without a measured read, no ground truth, no validation, and +the concept count is not a bound on the shared senses. + +## How you work + +- The library is the corpus of truth: never write a number into the README that + the inventory does not carry, and never edit the inventory to make a gate + pass. +- A stage that has not run is not a failure and is not a result. Say which + stages are not there yet. +- A broken identity is a failure of the library, not of the reader. Report it + with the numbers on both sides and what the difference is. +- Never put a key in the library or in the plugin. The judge reads the key store + of the machine. +- Never rewrite history to make a gate pass: a build that changes the library + without the sources changing is drift, and the minimality gate says so. \ No newline at end of file diff --git a/plugins/vochic03/document-library/examples/build-example.sh b/plugins/vochic03/document-library/examples/build-example.sh new file mode 100644 index 00000000..e5aa308d --- /dev/null +++ b/plugins/vochic03/document-library/examples/build-example.sh @@ -0,0 +1,42 @@ +#!/bin/bash +# +# examples/build-example.sh [workdir] +# +# The example library is three short notes about coffee: three documents that +# share seven names. It builds with no model and no key, because the terms +# are shipped with it, and it is the proof that the pipeline builds a library +# that is not books. +# +# The work directory is a copy: the package itself stays clean. +set -eu + +HERE="$(cd "$(dirname "$0")" && pwd)" +PLUGIN="$(cd "$HERE/.." && pwd)" +WORK="${1:-$(mktemp -d "${TMPDIR:-/tmp}/document-library-example.XXXXXX")}" + +rm -rf "$WORK" +mkdir -p "$WORK" +cp -R "$HERE/coffee-library/." "$WORK/" +echo "== the library is scaffolded and built" +python3 "$PLUGIN/pipeline/tools/scaffold_library.py" --root "$WORK" --name coffee-library + +echo "== the gates on their own" +export B2C_SETTINGS="$WORK/settings/pipeline.json" +python3 "$PLUGIN/pipeline/scripts/check_inventory.py" --corpus-root "$WORK" +python3 "$PLUGIN/pipeline/scripts/check_answers_reproduced.py" --corpus-root "$WORK" + +echo "== the identities of the example" +python3 - "$WORK" <<'EOF' +import json, os, sys +root = sys.argv[1] +inventory = json.load(open(os.path.join(root, 'index', 'manifest', 'inventory.json'), encoding='utf-8')) +for item in inventory['identities']: + state = item.get('state') + if state == 'not_built': + shown = 'not built yet' + elif state == 'holds': + shown = 'holds' + else: + shown = 'GAP %s vs %s' % (item.get('left'), item.get('right')) + print(' %-58s %s' % (item['name'][:58], shown)) +EOF \ No newline at end of file diff --git a/plugins/vochic03/document-library/examples/coffee-library/espresso-2024/chapters/01-The-shot.md b/plugins/vochic03/document-library/examples/coffee-library/espresso-2024/chapters/01-The-shot.md new file mode 100644 index 00000000..dae821cb --- /dev/null +++ b/plugins/vochic03/document-library/examples/coffee-library/espresso-2024/chapters/01-The-shot.md @@ -0,0 +1,14 @@ +# The shot + +A shot of espresso is judged on its dose, its grind and its temperature. + +The dose is the mass of coffee in the basket. A dose of eighteen grams with a +double shot is the common starting point, and the dose is weighed, never guessed. + +The grind decides how fast the water moves through the puck. A finer grind slows +the water and raises the extraction, and a grind that is too coarse sends the +water through the basket faster than the coffee can give anything up. + +The temperature of the water changes the taste more than most people think. +Ninety-three degrees is the usual choice for a shot, and the water is measured +rather than judged by the kettle. diff --git a/plugins/vochic03/document-library/examples/coffee-library/espresso-2024/chapters/02-The-puck.md b/plugins/vochic03/document-library/examples/coffee-library/espresso-2024/chapters/02-The-puck.md new file mode 100644 index 00000000..4a50ed52 --- /dev/null +++ b/plugins/vochic03/document-library/examples/coffee-library/espresso-2024/chapters/02-The-puck.md @@ -0,0 +1,8 @@ +# The puck + +The puck is where the dose, the grind and the water meet. A channel forms when +the tamp is uneven, and the water takes the path of least resistance instead of +the whole bed. + +Extraction is the movement of soluble material out of the coffee and into the +water. Even extraction is the goal, and an even tamp is the start of it. diff --git a/plugins/vochic03/document-library/examples/coffee-library/filter-2025/chapters/01-The-brew.md b/plugins/vochic03/document-library/examples/coffee-library/filter-2025/chapters/01-The-brew.md new file mode 100644 index 00000000..6e5343d2 --- /dev/null +++ b/plugins/vochic03/document-library/examples/coffee-library/filter-2025/chapters/01-The-brew.md @@ -0,0 +1,11 @@ +# The brew + +A filter coffee is brewed by water passing through a bed of coffee. The ratio is +the mass of coffee to the mass of water, and one to sixteen is a familiar +starting point. + +The grind for a filter is coarser than for an espresso, because the water has +longer to work. Bloom is the first pour: wet, and left to stand. + +The temperature of the water still matters, and so does the dose, which is +measured by mass in both a filter and a shot. diff --git a/plugins/vochic03/document-library/examples/coffee-library/filter-2025/chapters/02-The-water.md b/plugins/vochic03/document-library/examples/coffee-library/filter-2025/chapters/02-The-water.md new file mode 100644 index 00000000..4b0280bd --- /dev/null +++ b/plugins/vochic03/document-library/examples/coffee-library/filter-2025/chapters/02-The-water.md @@ -0,0 +1,8 @@ +# The water + +Water is most of the drink, and its minerals change the extraction. Water that +is too soft leaves the coffee flat, and water that is too hard dulls the +acidity. + +The dose in a filter is measured by mass, and the water by the same. The grind is +the only thing that is judged by eye. diff --git a/plugins/vochic03/document-library/examples/coffee-library/index/terms/espresso-2024.jsonl b/plugins/vochic03/document-library/examples/coffee-library/index/terms/espresso-2024.jsonl new file mode 100644 index 00000000..19a2ff4e --- /dev/null +++ b/plugins/vochic03/document-library/examples/coffee-library/index/terms/espresso-2024.jsonl @@ -0,0 +1,6 @@ +{"canonical": "dose", "definition": null, "kind": "named", "label": "dose", "scope": "", "term_id": "espresso-2024:dose"} +{"canonical": "grind", "definition": null, "kind": "named", "label": "grind", "scope": "", "term_id": "espresso-2024:grind"} +{"canonical": "temperature", "definition": null, "kind": "named", "label": "temperature", "scope": "", "term_id": "espresso-2024:temperature"} +{"canonical": "extraction", "definition": null, "kind": "named", "label": "extraction", "scope": "", "term_id": "espresso-2024:extraction"} +{"canonical": "puck", "definition": null, "kind": "named", "label": "puck", "scope": "", "term_id": "espresso-2024:puck"} +{"canonical": "shot", "definition": null, "kind": "named", "label": "shot", "scope": "", "term_id": "espresso-2024:shot"} diff --git a/plugins/vochic03/document-library/examples/coffee-library/index/terms/filter-2025.jsonl b/plugins/vochic03/document-library/examples/coffee-library/index/terms/filter-2025.jsonl new file mode 100644 index 00000000..698877b1 --- /dev/null +++ b/plugins/vochic03/document-library/examples/coffee-library/index/terms/filter-2025.jsonl @@ -0,0 +1,7 @@ +{"canonical": "dose", "definition": null, "kind": "named", "label": "dose", "scope": "", "term_id": "filter-2025:dose"} +{"canonical": "grind", "definition": null, "kind": "named", "label": "grind", "scope": "", "term_id": "filter-2025:grind"} +{"canonical": "temperature", "definition": null, "kind": "named", "label": "temperature", "scope": "", "term_id": "filter-2025:temperature"} +{"canonical": "ratio", "definition": null, "kind": "named", "label": "ratio", "scope": "", "term_id": "filter-2025:ratio"} +{"canonical": "water", "definition": null, "kind": "named", "label": "water", "scope": "", "term_id": "filter-2025:water"} +{"canonical": "filter", "definition": null, "kind": "named", "label": "filter", "scope": "", "term_id": "filter-2025:filter"} +{"canonical": "bloom", "definition": null, "kind": "named", "label": "bloom", "scope": "", "term_id": "filter-2025:bloom"} diff --git a/plugins/vochic03/document-library/examples/coffee-library/index/terms/roast-2023.jsonl b/plugins/vochic03/document-library/examples/coffee-library/index/terms/roast-2023.jsonl new file mode 100644 index 00000000..a2660c22 --- /dev/null +++ b/plugins/vochic03/document-library/examples/coffee-library/index/terms/roast-2023.jsonl @@ -0,0 +1,8 @@ +{"canonical": "dose", "definition": null, "kind": "named", "label": "dose", "scope": "", "term_id": "roast-2023:dose"} +{"canonical": "grind", "definition": null, "kind": "named", "label": "grind", "scope": "", "term_id": "roast-2023:grind"} +{"canonical": "temperature", "definition": null, "kind": "named", "label": "temperature", "scope": "", "term_id": "roast-2023:temperature"} +{"canonical": "extraction", "definition": null, "kind": "named", "label": "extraction", "scope": "", "term_id": "roast-2023:extraction"} +{"canonical": "ratio", "definition": null, "kind": "named", "label": "ratio", "scope": "", "term_id": "roast-2023:ratio"} +{"canonical": "water", "definition": null, "kind": "named", "label": "water", "scope": "", "term_id": "roast-2023:water"} +{"canonical": "filter", "definition": null, "kind": "named", "label": "filter", "scope": "", "term_id": "roast-2023:filter"} +{"canonical": "cup", "definition": null, "kind": "named", "label": "cup", "scope": "", "term_id": "roast-2023:cup"} diff --git a/plugins/vochic03/document-library/examples/coffee-library/paper-filter-2019/manifest.json b/plugins/vochic03/document-library/examples/coffee-library/paper-filter-2019/manifest.json new file mode 100644 index 00000000..65f4f02e --- /dev/null +++ b/plugins/vochic03/document-library/examples/coffee-library/paper-filter-2019/manifest.json @@ -0,0 +1,18 @@ +{ + "schema_version": "1.0.0", + "book": { + "title": "The Paper Filter", + "authors": ["A short note on filter coffee"], + "year": "2019", + "edition": "", + "isbn": "", + "source_uri": "" + }, + "source": { + "type": "digital", + "format": "paragraphs", + "pages": 2, + "text_origin": "written for this example", + "text_layer_sha256": "" + } +} \ No newline at end of file diff --git a/plugins/vochic03/document-library/examples/coffee-library/paper-filter-2019/outline.json b/plugins/vochic03/document-library/examples/coffee-library/paper-filter-2019/outline.json new file mode 100644 index 00000000..7458b31b --- /dev/null +++ b/plugins/vochic03/document-library/examples/coffee-library/paper-filter-2019/outline.json @@ -0,0 +1,33 @@ +{ + "schema_version": "1.0.0", + "chapters": [ + { + "number": 1, + "label": "", + "title": "The paper filter", + "page_start": "31", + "page_end": "32", + "divisions": [], + "paragraphs": [ + { + "id": "p001", + "page": "31", + "grade": null, + "text": "A filter is the paper cone that holds the bed of coffee in a filter coffee. The water passes through the bed and through the filter, and the filter keeps the grounds in." + }, + { + "id": "p002", + "page": "31", + "grade": null, + "text": "The dose of ground coffee and the ratio of coffee to water are the two numbers a filter coffee is written down with, and the grind says how fast the water moves through the bed." + }, + { + "id": "p003", + "page": "32", + "grade": null, + "text": "A paper filter has no memory of the last brew, so the extraction of the first cup and of the tenth cup is the same when the dose and the grind are the same." + } + ] + } + ] +} \ No newline at end of file diff --git a/plugins/vochic03/document-library/examples/coffee-library/paper-filter-2019/paragraphs.jsonl b/plugins/vochic03/document-library/examples/coffee-library/paper-filter-2019/paragraphs.jsonl new file mode 100644 index 00000000..07dbb7dd --- /dev/null +++ b/plugins/vochic03/document-library/examples/coffee-library/paper-filter-2019/paragraphs.jsonl @@ -0,0 +1,3 @@ +{"id": "p001", "seq": 0, "kind": "body", "block_kind": "paragraph", "text": "A filter is the paper cone that holds the bed of coffee in a filter coffee. The water passes through the bed and through the filter, and the filter keeps the grounds in.", "section_path": [], "native_marker": null, "chapter": 1, "leaf_start": 4, "leaf_end": 4, "page_start": "31", "page_end": "31", "quality": {"grade": "A", "flags": []}, "flags": [], "footnote_ids": [], "bboxes": []} +{"id": "p002", "seq": 1, "kind": "body", "block_kind": "paragraph", "text": "The dose of ground coffee and the ratio of coffee to water are the two numbers a filter coffee is written down with, and the grind says how fast the water moves through the bed.", "section_path": [], "native_marker": null, "chapter": 1, "leaf_start": 4, "leaf_end": 4, "page_start": "31", "page_end": "31", "quality": {"grade": "A", "flags": []}, "flags": [], "footnote_ids": [], "bboxes": []} +{"id": "p003", "seq": 2, "kind": "body", "block_kind": "paragraph", "text": "A paper filter has no memory of the last brew, so the extraction of the first cup and of the tenth cup is the same when the dose and the grind are the same.", "section_path": [], "native_marker": null, "chapter": 1, "leaf_start": 5, "leaf_end": 5, "page_start": "32", "page_end": "32", "quality": {"grade": "A", "flags": []}, "flags": [], "footnote_ids": [], "bboxes": []} \ No newline at end of file diff --git a/plugins/vochic03/document-library/examples/coffee-library/roast-2023/chapters/01-The-roast.md b/plugins/vochic03/document-library/examples/coffee-library/roast-2023/chapters/01-The-roast.md new file mode 100644 index 00000000..2cd345f2 --- /dev/null +++ b/plugins/vochic03/document-library/examples/coffee-library/roast-2023/chapters/01-The-roast.md @@ -0,0 +1,7 @@ +# The roast + +A roast is a curve of temperature over time. The charge is the coffee going into +the drum, and the first crack is the sound that says the moisture is gone. + +Extraction depends on how much the bean has given up. A light roast keeps more +of the acidity, and the temperature at the drop decides the roast. diff --git a/plugins/vochic03/document-library/examples/coffee-library/roast-2023/chapters/02-The-cup.md b/plugins/vochic03/document-library/examples/coffee-library/roast-2023/chapters/02-The-cup.md new file mode 100644 index 00000000..c6669643 --- /dev/null +++ b/plugins/vochic03/document-library/examples/coffee-library/roast-2023/chapters/02-The-cup.md @@ -0,0 +1,7 @@ +# The cup + +In the cup the coffee is judged on the ratio of ground coffee to water, and on +the grind that was used. + +The dose of a single origin is often weighed twice. Water at ninety degrees, and +a filter that lets the bed breathe. diff --git a/plugins/vochic03/document-library/icon-dark.png b/plugins/vochic03/document-library/icon-dark.png new file mode 100644 index 0000000000000000000000000000000000000000..c1e0285549971415bdad333f99c0a6c94fcaa890 GIT binary patch literal 158049 zcmZ5|2RK`A*uH9Y(9+f{MYToLDynFxqIPRkjn=G~Rg@q$rD|_#kD65@HG){Fno*-R zN$gD%dq(&l9l!7U{<*FrCnx89&z18&&;8ub{X9pohMM9fN@hwjGO|m`N{^qBk)72z z+0LH@j!-yV8UWrdyj6MuB_pGvJ=so?C8sixk)5)(mXp(XYz=+;=9SwG4G}Uj*Hq`I zdetTkx)$}qXFneVQL|nb4wf6}qjYhw;-!TZmvnM1AClo<20EFUG%+9(evM%= zIyl}o^ujnNn~)XH^q0xHA8mg90vX`+c(c^Kk9vKSuRl~P^W}rLJkKSBm=`1bN5(S- zbrV{yFKc$bqUB-=(a?N%hGNR+us=dNg5OcsL_;8woUh}t@)g>$=FOjFksZX)@I zRZ#h>`R^Ps51)&R9#e;qi)*apF7cc2Titl(fQ)y%q;rfsuj_<()E@#XLG2{3=cHwC z;RJi-XilbJZE5=|z4Rl5jNJ0Q@?)9juBU#DO~e|Yok#X#cXhO3r*HILkGaX2*?3bT z?uLU|rJRdisoZSs(wGjN- z>A*ijA-9UwOm0X3j4IFdQ75&sNd>VzHsbaD25)qkavQN7f4~G?tW_`gzUvkpd1OlLklP2WL9E zY4G2c7E(kM&{7vtXSsTup!4YYP6_>rws^l89j6F}Un`yO43yPUklDTd9gd0v4qN?l zC^=4=KzD+bN`$4iF`k+plG&;0IxfLxc>$^jmgZgY{=(nkqPwS*(^))OikKBmIWmhr zHsGP?iFdha1yAWGIqwUbVvKvCb^YXFDGL+oUWtbg4f<51c5#~6frK^~f3yhu{AFcp zXJ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ze)N{T=3lOa6@)*$jk<__1UYfONKhyf;S3;tC zZdAIo`7r{tq;Pjf0}OHAc0i3rzcs7GG+M)c4)?o*=bl+3^9rx?nZJu2M#9;INLX(c zs2{aS|rX3#}zo}nWYac>|8zm5e!=}%@2HC~y?rLdF=!sqi zY7Opk8g~*v*Frzv4IgvnD2i=JW9lr|K+re3_JU!v4&NfsdBs+YvxR_I!%*7I5>$)(SKgv7cpBc^|~$dYt5TrqmcVcv$B0^!U7B< zCz;PNc>F4(Etj=8qzSZk-hM6$GC5>3-{twVzU{24Uoq*wgK_+G3&+Z2-T0qBKwTi5 zd@$a8x0YC!sFws{egVu;J@%zt(Wo@F7tH4=<;F6KL{p1@P01=`XfVS^myM$CNEJeXQ0>Bh|W=h;f5;07yAi5>U)Ifh+wzBRvP0~2up yUq|QM=t};35E>EiY64n!|K=2^7|iIHLWMuUZF3H<#g_lxuB&ONQF_}k?Ee7WQhPW6 literal 0 HcmV?d00001 diff --git a/plugins/vochic03/document-library/icon.png b/plugins/vochic03/document-library/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..406854dbca4abdcafa0ec79490c3190774f5e298 GIT binary patch literal 127527 zcmeFZcT`i+x9@8QK>;ZuN-=aqsUjVeu2e-tN{Ao`2#EC15|!RTkR~L82vQ?WYKS5o zBp|&*D1ihB0YXUvx$*Zq=bm%VyYJq6-gs|}_r|+_WUxb$@1AR|z2=&0&d=U4W+wU< znXWROIC0|QeFL3GCr+HCAD%qHc8>n%0>)Q_{^q%>wzip@w!XHfyQjDLYy0O;I<7vi z-R%R-_Wv19~OwH>qM-GzPYjC^{%MfAzj-(T5KY^BTmGq{DunP-D6-jtd(_p)x~G>)fj zENZXEWd_1e@l9w_tKXvD0KF9#9>F87hTytW1jRDjdSCyLIsM_OcI2bffW*xJ?itgB z+Ay(ac|zg!(X}5~UfaP{r5epcC&w`1nd>d(Z_nxVg2{(iZz zx27huCEhkAoUC%D@fJWMF?^NZeCPD*wUCpiiySx#(phZiy?*BTeQm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RT}z@NbSqT za{oluajRvrzXtt{;AvDlWuq;6?t01hPfa+-HW=UZ71b?+E)qsBhTY=ZlTph@J2sp! zNXn4RUT^@8@EFRKtx4+qHVWW z-!xYu;q=QhDe47d^e%0W_pR{sJx8z-zu4ojCPQl5be^N1Cjc~IKpNlRe5qN8GhL?5 zLMusx!H>8eHo$FhHfU7xEw}}_UEQD48qlIfOBMR!!@6rCVL&e}9Ic5Z#n+uV!{&Co b$q9_>E&) 2: + return False + return True + + +def people_shaped(label): + """True when the label reads as a name, the way the books file them. + + The test is a surname with a name, or a judge's title. It does not + use the single-letter shape, so the scope census below cannot + confirm itself. + """ + text = (label or "").strip() + words = text.split() + if len(words) < 2: + return False + if personal_tail(text): + return True + return words[-1].strip(",.").lower() in JUDGE_ABBR + + +def is_people_scope(labels): + """True when a scope is the book's own name index.""" + items = list(labels) + if len(items) < PEOPLE_MINIMUM: + return False + names = sum(1 for label in items if people_shaped(label)) + return names >= PEOPLE_FRACTION * len(items) + + +def citation_tier(label, books=(), law_books=frozenset(), + people_scope=False): + """Is this entry a name rather than a sense? The answer and the rule. + + The rule id is part of the answer, so the corpus can say how many + entries each rule held back, and a person can look at them. + """ + text = (label or "").strip() + words = text.split() + if len(words) < 2: + return HELD_NONE + in_law = any(book in law_books for book in books) + if CASE_SHAPE.search(text) and not personal_tail(text): + return HELD_CASE + if personal_tail(text) and (people_scope or in_law): + return HELD_SURNAME + last = words[-1].strip(",.").lower() + if last in JUDGE_ABBR and in_law: + return HELD_ABBR + if INITIAL.match(words[-1].strip(",")) and in_law: + return HELD_INITIAL + return HELD_NONE + + +def licensed(token, attested=frozenset()): + """The licence a short token needs. + + A token shorter than three characters is debris when it is ordinary + prose - "al", "ir" - and is a term when it carries its own mark: an + acronym ("CT", "ACh"), a digit ("fNIRS", "A1"), a Greek letter, a + hyphenated compound ("co-contraction"), or a word the book itself + uses. + """ + if not token: + return False + if any(ch.isdigit() for ch in token): + return True + if any(ch in GREEK for ch in token): + return True + if any(ch.isupper() for ch in token): + return True + if "-" in token: + return True + if token.casefold() in attested: + return True + return False + + +def _is_publisher(toks, lowered): + for phrase in PUBLISHER_PHRASES: + n = len(phrase) + for i in range(len(toks) - n + 1): + if tuple(lowered[i:i + n]) == phrase: + return True + for tok in toks: + if tok in PUBLISHER_EXACT: + return True + # a place on its own is a place + if len(toks) == 1 and lowered[0] in STANDALONE_PLACES: + return True + return False + + +def _is_furniture(toks, lowered): + """The furniture of a book: a word of the apparatus and a number. + + "Figure 3" and "Table 2.1" are debris. "table" and "figure" alone + are not: "the corruption perceptions index" and "Impossible figures" + are terms. + """ + for i, tok in enumerate(lowered): + if tok in FURNITURE_WORDS: + if i + 1 < len(toks) and re.match(r"^\d", toks[i + 1]): + return True + if tok in ("appendix", "appendices") and i + 1 < len(toks) \ + and re.match(r"^[a-z]$", lowered[i + 1]): + return True + return False + + +def _has_title_shape(toks): + """A title with a lower-case "of" or "and" in it: a manual, an act.""" + minor = 0 + for tok in toks: + if tok in TITLE_MINOR: + minor += 1 + elif tok[:1].islower(): + return False + return minor > 0 and len(toks) >= 3 + + +class Profile: + """What a corpus is, and what its rules are. + + One engine, two profiles. The prose profile is English psychology + textbooks; the law profile lets a Latin word open a term ("In re"), + admits a statute or a case by its shape, and counts its own + positions. + """ + + def __init__(self, kind="prose", max_words=MAX_TERM_WORDS, + latin_open=False, structural=False, short_words=frozenset()): + self.kind = kind + self.max_words = max_words + self.latin_open = latin_open + self.structural = structural + self.short_words = short_words + + def as_dict(self): + return {"kind": self.kind, "max_words": self.max_words, + "latin_open": self.latin_open, "structural": self.structural, + "short_words": sorted(self.short_words), + "rules_version": RULES_VERSION} + + +PROSE = Profile() +LAW = Profile(kind="law", max_words=MAX_TERM_WORDS, latin_open=True, + structural=True, + short_words=frozenset(["v", "i", "ii", "iii", "iv", + "in", "re", "ex", "de", "et"])) + + +def profile_for(book, kind=None): + """The profile of a book: prose unless the caller says law.""" + return LAW if kind == "law" else PROSE + + +def admit(name, profile=PROSE, attested=frozenset(), book_text=None, + caption_text=None, index_terms=frozenset()): + """The decision on one name. + + Returns a dict with "verdict" (admit, quarantine or reject), "rule" + (the id of the rule that decided it) and "reason" (a sentence for a + person). + """ + original = (name or "").strip() + if not original: + return {"verdict": REJECT, "rule": EMPTY, + "reason": "the name is empty"} + + head, alias = head_of(original) + judged = head if head else original + toks = tokens(judged) + if not toks: + return {"verdict": REJECT, "rule": NO_TOKENS, + "reason": "the name has no tokens"} + + lowered = [t.casefold() for t in toks] + folded = fold(original) + + # the length rule. A long name needs a shape; a name the book + # indexes but the body does not carry is held for a person. + if len(toks) > profile.max_words: + if profile.structural and (STATUTE_RE.search(original) + or CASE_RE.search(original)): + pass + elif _has_title_shape(toks): + pass + elif folded in index_terms: + return {"verdict": QUARANTINE, "rule": INDEX_ONLY, + "reason": "the book indexes this name but the body " + "does not carry it"} + else: + return {"verdict": REJECT, "rule": TOO_MANY_WORDS, + "reason": "the name has %d words and no shape" + % len(toks)} + + # the stopwords are matched on the word as it stands: a capitalised + # "A" is not the article, and "The Big Bang" keeps its "The". + if all(t in STOPWORDS for t in toks): + return {"verdict": REJECT, "rule": ALL_STOPWORDS, + "reason": "every word is a function word"} + + if toks[0] in OPEN_STOP and not (profile.latin_open + and lowered[0] in LATIN_OPEN): + return {"verdict": REJECT, "rule": STOPWORD_OPEN, + "reason": "the name opens with the function word %r" % toks[0]} + + if toks[-1] in CLOSE_STOP: + return {"verdict": REJECT, "rule": STOPWORD_CLOSE, + "reason": "the name ends with the function word %r" % toks[-1]} + if lowered[-1] in HEAD_BLOCK: + return {"verdict": REJECT, "rule": HEAD_CLOSE, + "reason": "the name ends with the position word %r" % toks[-1]} + if lowered[-1] in FURNITURE_LAST: + return {"verdict": REJECT, "rule": FURNITURE, + "reason": "the name ends with the furniture word %r" % toks[-1]} + + for tok, low in zip(toks, lowered): + if tok in STOPWORDS: + continue + if len(tok) < 3 and not licensed(tok, attested) \ + and low not in profile.short_words: + return {"verdict": REJECT, "rule": SHORT_TOKEN, + "reason": "the token %r has no licence" % tok} + + if _is_publisher(toks, lowered): + return {"verdict": REJECT, "rule": PUBLISHER, + "reason": "the name is a publisher or a place"} + + if _is_furniture(toks, lowered): + return {"verdict": REJECT, "rule": FURNITURE, + "reason": "the name is the furniture of a book"} + + if book_text is not None and not book_text.contains(original): + if caption_text is not None and caption_text.contains(original): + return {"verdict": QUARANTINE, "rule": CAPTION_ONLY, + "reason": "the name occurs only in a figure caption"} + return {"verdict": REJECT, "rule": NOT_VERBATIM, + "reason": "the name does not occur in the book"} + + return {"verdict": ADMIT, "rule": "", "reason": ""} + + +def edit_distance_at_most(a, b, limit): + """True when a and b are within limit edits of each other.""" + if abs(len(a) - len(b)) > limit: + return False + previous = list(range(len(b) + 1)) + for i, ca in enumerate(a, 1): + current = [i] + best = i + for j, cb in enumerate(b, 1): + value = min(previous[j] + 1, current[j - 1] + 1, + previous[j - 1] + (ca != cb)) + current.append(value) + if value < best: + best = value + if best > limit: + return False + previous = current + return previous[-1] <= limit + + +class BookText: + """The text of a book, folded once, so every name is cheap to check. + + The lookup is exact first: the name's words must stand together, in + their own order, in the book's words. Only if that fails is the + fuzzy path used, and it allows one word of the name to be off by up + to two characters, which is what a scan does to a word. + """ + + def __init__(self, text, tolerance=2): + self.tokens = fold_tokens(text) + self.positions = {} + for i, tok in enumerate(self.tokens): + self.positions.setdefault(tok, []).append(i) + self.tolerance = tolerance + self.set = set(self.tokens) + + def _near(self, a, b): + if a == b: + return True + if len(a) < 8 or len(b) < 8: + return False + if abs(len(a) - len(b)) > self.tolerance: + return False + if a[0] != b[0] and a[-1] != b[-1]: + return False + return edit_distance_at_most(a, b, self.tolerance) + + def _exact_at(self, start, needle): + window = self.tokens[start:start + len(needle)] + return len(window) == len(needle) and window == needle + + def contains(self, name): + """Does the name occur in the book?""" + needle = fold_tokens(name) + if not needle: + return False + n = len(needle) + for i, tok in enumerate(needle): + if tok in self.positions: + for pos in self.positions[tok]: + start = pos - i + if start >= 0 and self._exact_at(start, needle): + return True + if self.tolerance <= 0: + return False + # the fuzzy path: one word may be off by a character or two + for i, tok in enumerate(needle): + if tok in self.positions: + for pos in self.positions[tok]: + for shift in (i, -i): + start = pos + shift + if start < 0: + continue + window = self.tokens[start:start + n] + if len(window) < n: + continue + bad = [k for k in range(n) if window[k] != needle[k]] + if len(bad) == 1 and self._near(needle[bad[0]], + window[bad[0]]): + return True + return False diff --git a/plugins/vochic03/document-library/pipeline/book2corpus/assignment.py b/plugins/vochic03/document-library/pipeline/book2corpus/assignment.py new file mode 100644 index 00000000..17be7a38 --- /dev/null +++ b/plugins/vochic03/document-library/pipeline/book2corpus/assignment.py @@ -0,0 +1,170 @@ +"""Which picture is whose: an assignment, not a run of passes. + +A page holds a few figures and a few pictures, and the right answer is not +one figure at a time. Two figures can want the same picture, and a pass +that gives the picture to whichever figure it meets first is not a rule, +it is a race - and the order of the figures is the order of the notes, not +the order of the evidence. + +So the claims are written into a matrix, one row per figure and one column +per picture on that page, each claim worth its tier and its score, and the +best whole assignment of the matrix is taken. + +Then every match is asked the harder question: what was it worth against +the best alternative? Forbidding the match and settling the page again +says what the page would look like without it. A match whose alternative +is nearly as good is not a match, it is a coin toss, and a coin toss is +left unclaimed - the reader is told a picture is there and not told which. +Exact ties are left unclaimed too. + +The solver is the Hungarian algorithm for the assignment problem, written +out here so that the build needs nothing but the standard library. A page +is small, a book is very many pages, and the whole thing costs nothing. +""" + +INFINITY = float("inf") +# a weight this low is a weight that is never wanted +FORBID = 1e9 + + +def hungarian(cost): + """The cheapest assignment of rows to columns; rows <= columns. + + Returns the column index of every row, in row order. The algorithm is + the usual one: a potential for every row and every column, and the + shortest augmenting path for each row in turn. Ties go to the lowest + column index, so the answer does not depend on anything but the + matrix. + """ + rows = len(cost) + if not rows: + return [] + columns = len(cost[0]) + u = [0.0] * (rows + 1) + v = [0.0] * (columns + 1) + p = [0] * (columns + 1) # the row in each column + way = [0] * (columns + 1) # how the column was reached + for i in range(1, rows + 1): + p[0] = i + j0 = 0 + minv = [INFINITY] * (columns + 1) + used = [False] * (columns + 1) + while True: + used[j0] = True + i0 = p[j0] + delta = INFINITY + j1 = 0 + for j in range(1, columns + 1): + if used[j]: + continue + cur = cost[i0 - 1][j - 1] - u[i0] - v[j] + if cur < minv[j]: + minv[j] = cur + way[j] = j0 + if minv[j] < delta: + delta = minv[j] + j1 = j + for j in range(columns + 1): + if used[j]: + u[p[j]] += delta + v[j] -= delta + else: + minv[j] -= delta + j0 = j1 + if p[j0] == 0: + break + while True: + j1 = way[j0] + p[j0] = p[j1] + j0 = j1 + if j0 == 0: + break + out = [-1] * rows + for j in range(1, columns + 1): + if p[j]: + out[p[j] - 1] = j - 1 + return out + + +def solve(weights): + """The best assignment of a weight matrix; the column of every row.""" + cost = [[-w for w in row] for row in weights] + return hungarian(cost) + + +def _total(weights, chosen): + total = 0.0 + for row, column in enumerate(chosen): + if column >= 0: + total += weights[row][column] + return total + + +def match_page(rows, columns, edge, tier_rank, tier_step, margin): + """The claims of a page, settled. + + rows and columns are the figures and the pictures of one page, in a + canonical order. edge(row, column) returns (tier, score) when the row + claims that column, and None when it does not. + + The tiers are ordered by strength of evidence, not by how often they + happen to be right: a tier is worth tier_step, and the score inside + it is worth one, so a tier always beats a better score in a weaker + tier. Every row also gets a column of its own, worth nothing, which + is how a figure ends up with no picture at all. + + Returns a dict: row index -> what was found for that row, whether the + claim was accepted or refused. + """ + count = len(rows) + width = len(columns) + if not count or not width: + return {} + weights = [] + claims = {} + for i, row in enumerate(rows): + line = [] + for j, column in enumerate(columns): + found = edge(row, column) + if found is None: + line.append(-FORBID) + else: + tier, score = found + line.append(tier_rank.get(tier, 0) * tier_step + score) + claims[(i, j)] = found + # the column of its own: the figure is left without a picture + line.extend([0.0 if k == i else -FORBID for k in range(count)]) + weights.append(line) + + chosen = solve(weights) + best = _total(weights, chosen) + + # a row with one claim, on a column no other row claims, loses nothing + # but the claim itself: the margin is known without settling the page + # again, and the page is not settled again for nothing + claimants = {} + rows_claiming = {} + for (i, j) in claims: + claimants.setdefault(j, []).append(i) + rows_claiming[i] = rows_claiming.get(i, 0) + 1 + + out = {} + for i, j in enumerate(chosen): + if j < 0 or j >= width or (i, j) not in claims: + continue + weight = weights[i][j] + rival = None + if len(claimants.get(j, [])) == 1 and rows_claiming.get(i, 0) == 1: + loss = weight + else: + saved = weights[i][j] + weights[i][j] = -FORBID + other = solve(weights) + weights[i][j] = saved + loss = best - _total(weights, other) + if 0 <= other[i] < width and (i, other[i]) in claims: + rival = other[i] + tier, score = claims[(i, j)] + out[i] = {"column": j, "tier": tier, "score": score, + "margin": loss, "accepted": loss >= margin, "rival": rival} + return out \ No newline at end of file diff --git a/plugins/vochic03/document-library/pipeline/book2corpus/batch.py b/plugins/vochic03/document-library/pipeline/book2corpus/batch.py new file mode 100644 index 00000000..cb920474 --- /dev/null +++ b/plugins/vochic03/document-library/pipeline/book2corpus/batch.py @@ -0,0 +1,151 @@ +#!/usr/bin/env python3 +"""book2corpus/batch.py - the bulk route: one job, many questions. + +Written 27 Nov 2026 by MCode, after the Message Batches API of Anthropic. + +A corpus of forty books has thousands of independent questions to ask: +every chapter, every term, every pair of books that shares a term. Asking +them one at a time means holding a thread pool, waiting out rate limits, +and watching a cap. The Batches API takes the whole job at once: the +requests are submitted together, they are worked through asynchronously, +and the answers come back when they are all there. + +Two things are true of it and both are worth knowing. A batched request +costs half what the same request costs on its own. And a batch lives for +a day: if it has not finished by then it is gone, so the work it carries +must be worth doing again. + +The ledger does not care how the answer arrived. The key of a judgment is +the hash of the question and the model, so an answer from a batch and an +answer asked on its own are the same answer as far as the corpus is +concerned, and a rerun that has the key does not ask again. +""" +import json +import os +import time +import urllib.error +import urllib.request + +ANTHROPIC_API = "https://api.anthropic.com/v1/messages" +BATCHES_API = "https://api.anthropic.com/v1/messages/batches" +ANTHROPIC_VERSION = "2023-06-01" + +# how long to wait between the polls, and how long to wait at all +POLL_SECONDS = 20 +POLL_LIMIT = 6 * 60 * 60 + + +def _key(path): + """The key of a service, read from the store and never printed.""" + with open(os.path.expanduser(path), encoding="utf-8") as fh: + for line in fh: + line = line.strip() + if not line: + continue + if ":" in line: + return line.split(":", 1)[1].strip() + return line + raise RuntimeError("no key in %s" % path) + + +def _headers(): + return {"x-api-key": _key("~/claude-keys/anthropic.header"), + "anthropic-version": ANTHROPIC_VERSION, + "content-type": "application/json"} + + +def submit(requests, model="claude-sonnet-5-5", max_tokens=1500): + """Submit the requests as one batch and return its id. + + A request is {"key": ..., "prompt": ...}: the key is the hash of the + question and the model, and it is how the answer is filed. + """ + body = {"requests": []} + for item in requests: + body["requests"].append({ + "custom_id": item["key"], + "params": { + "model": model, + "max_tokens": max_tokens, + "system": item.get("system") or "", + "messages": [{"role": "user", + "content": [{"type": "text", + "text": item["prompt"]}]}], + }, + }) + request = urllib.request.Request(BATCHES_API, + data=json.dumps(body).encode("utf-8"), + headers=_headers()) + with urllib.request.urlopen(request, timeout=120) as response: + answer = json.load(response) + return answer.get("id") + + +def status(batch_id): + """Where the batch has got to.""" + request = urllib.request.Request("%s/%s" % (BATCHES_API, batch_id), + headers=_headers()) + with urllib.request.urlopen(request, timeout=60) as response: + return json.load(response) + + +def wait(batch_id, poll=POLL_SECONDS, limit=POLL_LIMIT): + """Wait for the batch, and say how long it took.""" + started = time.time() + while time.time() - started < limit: + answer = status(batch_id) + state = answer.get("processing_status") + if state == "ended": + return answer, time.time() - started + time.sleep(poll) + raise RuntimeError("the batch did not end in time: %s" % batch_id) + + +def collect(batch_id, poll=POLL_SECONDS, limit=POLL_LIMIT): + """The answers of a finished batch, keyed by the key of the question. + + A request that failed is not an answer: it comes back as missing, and + the ledger decides what to do with missing. + """ + answer, seconds = wait(batch_id, poll, limit) + if answer.get("processing_status") != "ended": + raise RuntimeError("the batch is not finished: %s" % batch_id) + url = answer.get("results_url") + if not url: + raise RuntimeError("the batch has no results: %s" % batch_id) + request = urllib.request.Request(url, headers=_headers()) + with urllib.request.urlopen(request, timeout=300) as response: + raw = response.read().decode("utf-8") + # the results come back one object a line + results = [] + for line in raw.splitlines(): + line = line.strip() + if not line: + continue + try: + results.append(json.loads(line)) + except ValueError: + continue + out = {} + for row in results: + key = row.get("custom_id") + if not key: + continue + result = row.get("result") or {} + if result.get("type") != "succeeded": + out[key] = {"key": key, "verdict": "error", "ok": False, + "answer": None, "raw": None, + "reason": str(result.get("error") or + "the batch did not answer")[:200], + "tokens_in": 0, "tokens_out": 0} + continue + message = result.get("message") or {} + content = message.get("content") or [] + text = "".join(block.get("text", "") for block in content + if block.get("type") == "text") + usage = message.get("usage") or {} + out[key] = {"key": key, "verdict": None, "ok": True, + "answer": None, "raw": text[:1200], + "reason": "", "tokens_in": usage.get("input_tokens", 0), + "tokens_out": usage.get("output_tokens", 0)} + return out, seconds diff --git a/plugins/vochic03/document-library/pipeline/book2corpus/book.py b/plugins/vochic03/document-library/pipeline/book2corpus/book.py new file mode 100644 index 00000000..1a9c7843 --- /dev/null +++ b/plugins/vochic03/document-library/pipeline/book2corpus/book.py @@ -0,0 +1,353 @@ +"""The pipeline: pages in, paragraphs out. + +Order matters. Chapters are found from the page bodies, because the running +head is furniture. Footnotes are split per page with the chapter's own +footnote number sequence as the constraint, because the OCR interleaves them +with the body text. Paragraphs are assembled from the marker spine, and the +mini-table-of-contents that opens each chapter is dropped and kept only as a +noisy list of headings to check the detected ones against. + +Every input line is counted, so the conservation gate can prove that no text +was lost on the way through. +""" +from collections import Counter + +from . import layout, scrub, structure +from .ir import Paragraph + + +class Book: + def __init__(self, pages, meta=None): + self.pages = pages + self.meta = meta or {} + self.chapters = [] + self.paragraphs = [] + self.footnotes = [] + # this book prints its notes at the foot of the page + self.note_layout = "foot_of_page" + # and it numbers its paragraphs: those numbers are its citation + # scheme, the way its own index and its tables of cases cite them + self.paragraph_numbering = "numbered" + self.note_anchors = [] # (note, paragraph) settled once ids exist + self.front_pages = [] + self.back_pages = [] + self.input_lines = sum(len(p.lines) for p in pages) + self.line_buckets = Counter() + self.anomalies = [] + self.spine = {"found": 0, "gaps": [], "expected_by_chapter": {}} + self._vocab = None + + # -- stages ------------------------------------------------------------ + def run(self): + for page in self.pages: + layout.split_furniture(page) + self.line_buckets["furniture"] += len(page.header_lines) + len(page.furniture) + self.chapters = structure.detect_chapters(self.pages) + titles = self._chapter_titles_from_contents() + for ch in self.chapters: + if ch.number in titles: + ch.title = titles[ch.number] + self._mark_minitoc() + self._split_footnotes() + self.hyphenated, self.joined = structure.build_vocabulary(self.pages) + for ch in self.chapters: + self._assemble(ch) + self._front_and_back() + return self + + def _chapter_titles_from_contents(self): + """The book's own contents pages list the chapters and their titles. + + They are clean where the running heads are not, so they win. + """ + import re as _re + found = {} + for page in self.pages[:60]: + for ln in page.lines: + m = _re.match(r"^Chapter\s+(\d{1,2})\s+(.{3,90})$", ln.text.strip()) + if m: + title = m.group(2).strip().rstrip(".,") + title = _re.sub(r"^[(\s]+", "", title) + if title and int(m.group(1)) not in found: + found[int(m.group(1))] = title + return found + + def _mark_minitoc(self): + """The mini-table-of-contents that opens a chapter. + + Its numbers are page references, not footnote numbers, and they poison + the footnote sequence, so they are marked and kept out of the split. + """ + self.minitoc_ids = set() + for ch in self.chapters: + page = self.pages[ch.start_leaf] + for ln in page.lines: + if structure.marker_of(ln): + break + # the chapter's first division heading sits before the first + # paragraph too, and it is real: keep it + m = structure.ROMAN_HEAD_RE.match(ln.text.strip()) + if m: + letters = [c for c in m.group(2) if c.isalpha()] + if letters and sum(1 for c in letters if c.isupper()) / len(letters) > 0.8: + ch.expected_headings.append(ln.text) + continue + self.minitoc_ids.add(id(ln)) + ch.expected_headings.append(ln.text) + ch.minitoc_dropped = len([ln for ln in page.lines if id(ln) in self.minitoc_ids]) + + def _split_footnotes(self): + """Per page, with the chapter's footnote sequence as the constraint. + + Every page is split, front and back matter included, so that no line + is left behind outside the chapter bodies. + """ + chapter_of = {} + for ch in self.chapters: + for leaf in range(ch.start_leaf, ch.end_leaf + 1): + chapter_of[leaf] = ch.number + expected_by_chapter = {} + for page in self.pages: + number = chapter_of.get(page.leaf) + if number is None: + # front and back matter: no footnote sequence to continue + layout.split_footnotes(page, expected_next=None, + exclude=self.minitoc_ids) + self.line_buckets["footnote"] += len(page.footnotes) + continue + expected = expected_by_chapter.get(number, 1) + layout.split_footnotes(page, expected_next=expected, + exclude=self.minitoc_ids) + self.line_buckets["footnote"] += len(page.footnotes) + nums = [layout.footnote_number(ln) for ln in page.footnotes] + nums = [n for n in nums if n is not None] + if nums: + expected_by_chapter[number] = max(nums) + 1 + for ln in page.footnotes: + if layout.PARAGRAPH_MARKER_RE.match(ln.text): + # a numbered paragraph inside the notes: the boundary of + # this page is wrong, and the paragraphs it swallowed are + # missing from the corpus + self.anomalies.append({"kind": "paragraph_in_notes", + "chapter": number, "leaf": page.leaf, + "marker": ln.text.strip()[:12]}) + break + + def _chapter_pages(self, ch): + return [p for p in self.pages if ch.start_leaf <= p.leaf <= ch.end_leaf] + + def _assemble(self, ch): + ch.pages = self._chapter_pages(ch) + ch.title = structure.majority_title(ch.pages, ch.title) + items = [] + for page in ch.pages: + for ln in page.body: + items.append((ln, page)) + if not items: + return + + # the mini-table-of-contents that opens the chapter is always dropped, + # whether or not a paragraph marker follows it + kept = [] + for ln, page in items: + if id(ln) in self.minitoc_ids: + self.line_buckets["dropped_minitoc"] += 1 + continue + kept.append((ln, page)) + items = kept + ch.expected_headings = [t for t in ch.expected_headings if 2 < len(t) < 120] + + section_path = [] + next_roman = 1 + current = None + + def close_current(): + nonlocal current + current = None + + for idx, (ln, page) in enumerate(items): + cand = structure.marker_candidate(ln.text) + # a marker whose chapter digit is not this chapter's is a + # cross-reference in the back matter, not the start of a + # paragraph, and must not become one + marker = structure.marker_of(ln) if (cand and cand["chapter"] == ch.number) else None + if marker: + close_current() + current = Paragraph(kind="body", chapter=ch.number, + native_marker=marker, section_path=list(section_path)) + current.leaf_start = page.leaf + current.page_start = page.printed_page + current.text = structure.strip_marker(ln.text) + current.path = list(section_path) + current.bboxes.append({"leaf": page.leaf, "x0": ln.x0, "y0": ln.y0, + "x1": ln.x1, "y1": ln.y1}) + self.paragraphs.append(current) + ch.paragraphs.append(current) + self.line_buckets["body"] += 1 + self._spine_check(ch, marker) + continue + + nxt = items[idx + 1][0] if idx + 1 < len(items) else None + nxt_is_marker = nxt is not None and structure.marker_of(nxt) is not None + pitch, right = layout.page_metrics(page)[1], max((x.x1 for x in page.lines), default=page.width) + nxt_is_heading = False + if nxt is not None and not nxt_is_marker: + # the line after the next one may be a paragraph marker, and + # that is what makes the next line a heading: a heading is + # often followed by a sub-heading, and the sub-heading by + # the paragraph it introduces + nxt2 = items[idx + 2][0] if idx + 2 < len(items) else None + nxt2_is_marker = (nxt2 is not None + and structure.marker_of(nxt2) is not None) + nxt_is_heading = bool(nxt2_is_marker and structure.is_heading_slot( + nxt, page, pitch, right, True, next_roman, False)) + heading = None + candidate = structure.division_candidate(ln.text.strip()) + if candidate: + value, raw, rest = candidate + # the chapter's own sequence decides: a division may not skip + # back, and the OCR's own variants are repaired by the sequence + if value == next_roman or (value == next_roman - 1 and "U" in raw): + title = rest if (len(rest) >= 3 and rest[:1].isupper()) else "[title not legible in the scan]" + if "\u2019" not in title and "\u2018" not in title: + title = title.rstrip("'\u201d\u2019!.").strip() + heading = ("h2", "%s. %s" % (structure.canonical_roman(next_roman), title), next_roman) + if heading is None: + heading = structure.is_heading_slot(ln, page, pitch, right, nxt_is_marker, + next_roman, nxt_is_heading) + if heading: + kind, text, value = heading + close_current() + para = Paragraph(kind="heading", text=text, chapter=ch.number, + section_path=list(section_path)) + para.level = kind + para.leaf_start = page.leaf + para.leaf_end = page.leaf + para.page_start = page.printed_page + para.page_end = page.printed_page + para.bboxes.append({"leaf": page.leaf, "x0": ln.x0, "y0": ln.y0, + "x1": ln.x1, "y1": ln.y1}) + self.paragraphs.append(para) + ch.paragraphs.append(para) + self.line_buckets["heading"] += 1 + if kind == "h2": + section_path = [text] + para.path = list(section_path) + next_roman = (value or next_roman) + 1 + else: + section_path = section_path[:1] + [text] + para.path = list(section_path) + continue + + if current is None: + # text with no paragraph marker in front of it: keep it as body + current = Paragraph(kind="body", chapter=ch.number, section_path=list(section_path)) + current.leaf_start = page.leaf + current.page_start = page.printed_page + current.text = ln.text + current.path = list(section_path) + self.paragraphs.append(current) + ch.paragraphs.append(current) + self.line_buckets["body"] += 1 + continue + current.text = structure.join_lines([current.text, ln.text], self.hyphenated, self.joined) + self.line_buckets["body"] += 1 + current.leaf_end = page.leaf + current.page_end = page.printed_page + current.bboxes.append({"leaf": page.leaf, "x0": ln.x0, "y0": ln.y0, + "x1": ln.x1, "y1": ln.y1}) + + self._footnotes_for(ch) + + def _spine_check(self, ch, marker): + parts = marker.split(".") + if int(parts[0]) != ch.number: + self.anomalies.append({"kind": "marker_chapter_mismatch", "chapter": ch.number, + "marker": marker}) + return + self.spine["found"] += 1 + tail = [int(p) for p in parts[1:]] + key = "ch%d" % ch.number + expected = self.spine["expected_by_chapter"].get(key, 0) + 1 + if tail and tail[-1] >= expected: + self.spine["expected_by_chapter"][key] = tail[-1] + else: + self.spine["gaps"].append({"chapter": ch.number, "marker": marker, "expected": expected}) + + def _footnotes_for(self, ch): + """Assign numbers and anchor the notes to paragraphs on their page.""" + page_paras = {} + for para in ch.paragraphs: + if para.kind != "body": + continue + page_paras.setdefault(para.leaf_start, []).append(para) + expected = 1 + for page in ch.pages: + if not page.footnotes: + continue + notes = [] + for ln in page.footnotes: + num = layout.footnote_number(ln) + if num is None: + if notes: + notes[-1]["text"] = structure.join_lines([notes[-1]["text"], ln.text]) + continue + use = num if abs(num - expected) <= 3 else expected + notes.append({"n": use, "text": ln.text, "anchor": "exact", + "leaf": page.leaf, "printed": page.printed_page, + "chapter": ch.number, "chapter_key": str(ch.number)}) + expected = use + 1 + clusters = len(structure.SUPERSCRIPT_RE.findall(" ".join(x.text for x in page.body))) + paras = page_paras.get(page.leaf, []) + if clusters and clusters == len(notes) and len(paras) == len(notes): + for para, note in zip(paras, notes): + note["anchor"] = "exact" + note["anchor_id"] = None + para.footnote_ids.append(note) + self.note_anchors.append((note, para)) + else: + for note in notes: + note["anchor"] = "approximate" + if paras: + paras[-1].footnote_ids.append(note) + note["anchor_id"] = None + self.note_anchors.append((note, paras[-1])) + else: + note["anchor_id"] = None + self.anomalies.append({"kind": "note_without_paragraph", + "chapter": ch.number, "leaf": page.leaf, + "number": note["n"]}) + self.footnotes.extend(notes) + + def link_footnotes(self): + """Point every note at the paragraph it belongs to. + + The paragraphs carry no ids until they are numbered, so the anchor + is settled after the numbering: until then the note knows the + paragraph but not what the paragraph is called. + """ + for note, para in self.note_anchors: + note["anchor_id"] = para.id or None + + def _front_and_back(self): + """Everything before the first chapter and after the last one.""" + if not self.chapters: + return + first = self.chapters[0].start_leaf + last = self.chapters[-1].end_leaf + self.front_pages = [p for p in self.pages if p.leaf < first] + self.back_pages = [p for p in self.pages if p.leaf > last] + for page in self.front_pages + self.back_pages: + stamped = set(id(ln) for ln in scrub.stamp_lines(page.body)) + for ln in page.body: + if id(ln) in stamped: + # the stamp of the digitisation, not the book: it goes + # in a bucket of its own, so that no line of the source + # vanishes and the conservation gate still holds + self.line_buckets["digitisation"] += 1 + continue + para = Paragraph(kind="body", text=ln.text, + leaf_start=page.leaf, leaf_end=page.leaf, + page_start=page.printed_page, page_end=page.printed_page) + self.paragraphs.append(para) + self.line_buckets["body"] += 1 diff --git a/plugins/vochic03/document-library/pipeline/book2corpus/cli.py b/plugins/vochic03/document-library/pipeline/book2corpus/cli.py new file mode 100644 index 00000000..8fed0a66 --- /dev/null +++ b/plugins/vochic03/document-library/pipeline/book2corpus/cli.py @@ -0,0 +1,372 @@ +"""book2corpus: turn a textbook into a corpus an AI agent can work from. + + python3 -m book2corpus.cli --pages pages.jsonl --leaf-map leaf_page_map.json \ + --out --title "The title" --author "The author" --year 2001 + +The build has one rule: files are only ever outputs. Everything a stage +needs is passed to it, so no stage can read back a file an earlier build +left behind and show the wrong title, the wrong counts or an empty +contents list. The corpus is built in a temporary directory and swapped +into place at the end, so a build that fails leaves the last good corpus +alone. +""" +import argparse +import json +import os +import shutil +import sys + +from . import emit, ids, ingest, profile as profile_mod, provenance, qa, verify +from .book import Book + +EXIT_GATE = 1 +EXIT_TOOL = 2 +EXIT_EXPECTATIONS = 3 +EXIT_PROFILE = 4 + +# the files a corpus carries that the build does not produce: the committed +# expectations the build is checked against, and the hand-written citations +CARRIED = ("expectations.json", "probes.json") + + +def _expectations_summary(gates, counts, profile_summary): + """What the corpus looks like today: the numbers a change should show.""" + return { + "counts": counts, + "profile": profile_summary, + "gates": {g.name: {"status": g.status, "checked": g.checked, + "suspect_count": g.suspect_count} + for g in gates}, + "suspects": {row["gate"]: row["count"] for row in verify.collect_suspects(gates)}, + } + + +def _compare_expectations(path, summary): + """The committed expectations, and what changed against them. + + A number that moves is either a regression or an improvement, and only + a person can tell which, so the build proposes and stops. + """ + if not path or not os.path.exists(path): + return [] + with open(path, encoding="utf-8") as fh: + expected = json.load(fh) + diff = [] + for section in ("counts", "profile"): + for key, value in (expected.get(section) or {}).items(): + got = (summary.get(section) or {}).get(key) + if got != value: + diff.append("%s.%s: expected %s, got %s" % (section, key, value, got)) + for name, wanted in (expected.get("gates") or {}).items(): + got = (summary.get("gates") or {}).get(name) + if got is None: + diff.append("gates.%s: not measured any more" % name) + continue + for key, value in wanted.items(): + if got.get(key) != value: + diff.append("gates.%s.%s: expected %s, got %s" + % (name, key, value, got.get(key))) + for name, value in (expected.get("suspects") or {}).items(): + got = (summary.get("suspects") or {}).get(name) + if got != value: + diff.append("suspects.%s: expected %s, got %s" % (name, value, got)) + return diff + + +def main(argv=None): + # the rules are checked before any work: a rule that quietly stops + # matching leaves the corpus without its citation scheme, and the + # conservation gate would still pass + from . import structure + structure.self_test() + from . import selfcheck + failures = selfcheck.run() + if failures: + print("the tool's own checks failed, so no corpus was built:") + for failure in failures: + print(" - %s" % failure) + return EXIT_TOOL + + ap = argparse.ArgumentParser(prog="book2corpus") + ap.add_argument("--pages", help="pages.jsonl from the scan adapter") + ap.add_argument("--pdf", help="a born-digital PDF") + ap.add_argument("--source", choices=["scan", "digital"], default="scan") + ap.add_argument("--leaf-map", default=None, help="leaf -> printed page map") + ap.add_argument("--source-pdf", default=None, + help="the PDF a scan was made from, hashed into the manifest") + ap.add_argument("--out", required=True) + ap.add_argument("--title", default="") + ap.add_argument("--author", default="") + ap.add_argument("--year", default="") + ap.add_argument("--edition", default="") + ap.add_argument("--isbn", default="") + ap.add_argument("--source-uri", default="") + ap.add_argument("--header-band", type=float, default=None, + help="the band at the top of the page that holds the running head") + ap.add_argument("--folio-band", type=float, default=None, + help="the band at the foot of the page that holds the folio") + ap.add_argument("--front-pages", type=int, default=0, + help="the leaves of the book that are front matter") + ap.add_argument("--note-layout", default="end_of_chapter", + choices=("end_of_chapter", "foot_of_page"), + help="where the book puts its notes") + ap.add_argument("--paragraph-numbers", default=None, + help="the pattern that marks the start of the book's own numbered paragraph") + ap.add_argument("--extracts-inline", action="store_true", + help="the book sets its extracts inside the paragraph they belong to") + ap.add_argument("--skip-html", action="store_true") + ap.add_argument("--expect-update", action="store_true", + help="write the new expectations as a proposal and stop") + ap.add_argument("--expect", default=None, + help="the committed expectations to check against " + "(default: expectations.json in the output directory)") + args = ap.parse_args(argv) + + if args.source == "digital": + if not args.pdf: + ap.error("--source digital needs --pdf") + bands = {} + if args.header_band is not None: + bands["header_band"] = args.header_band + if args.folio_band is not None: + bands["folio_band"] = args.folio_band + pages = ingest.load_digital_pdf(args.pdf, **bands) + from .digital import DigitalBook + book = DigitalBook(pages, meta={"title": args.title}, + extracts_inline=args.extracts_inline, + paragraph_numbers=args.paragraph_numbers, + note_layout=args.note_layout, + front_pages=args.front_pages).run() + # a book that numbers its own paragraphs has ids of its own; + # one that does not gets ids anchored to the text + synthetic = getattr(book, "paragraph_numbering", "unnumbered") != "numbered" + else: + if not args.pages: + ap.error("--source scan needs --pages") + pages = ingest.load_scan_jsonl(args.pages) + if args.leaf_map: + ingest.apply_leaf_page_map(pages, ingest.load_leaf_page_map(args.leaf_map)) + book = Book(pages, meta={"title": args.title}) + book.run() + synthetic = False + + front_leaf = book.chapters[0].start_leaf if book.chapters else 0 + assigner = ids.IdAssigner(native=not synthetic, front_leaf=front_leaf, synthetic=synthetic) + assigner.assign(book.paragraphs, book.footnotes) + if hasattr(book, "link_footnotes"): + book.link_footnotes() + + # what kind of book this is: what the source declares, and what the book + # itself says. The two have to agree, or one of them is wrong. + declared = {"note_layout": getattr(book, "note_layout", None), + "paragraph_numbering": getattr(book, "paragraph_numbering", None)} + book_profile = profile_mod.infer_all(book, declared) + profile_summary = {key: value["value"] for key, value in book_profile.items()} + broken = [key for key, value in book_profile.items() + if key in ("note_layout", "paragraph_numbering") + and value.get("status") in ("conflict", "unknown")] + if broken: + print("the book and its source disagree about %s:" % ", ".join(broken)) + for key in broken: + print(" %s: %s" % (key, book_profile[key].get("detail", ""))) + return EXIT_PROFILE + + book_meta = {"title": args.title, "authors": [args.author] if args.author else [], + "year": args.year, "edition": args.edition, "isbn": args.isbn, + "source_uri": args.source_uri} + counts = {"paragraphs": sum(1 for p in book.paragraphs if p.kind == "body"), + "headings": sum(1 for p in book.paragraphs if p.kind == "heading"), + "footnotes": len(book.footnotes), "leaves": len(book.pages), + "chapters": len(book.chapters)} + + # the gates that need nothing written yet + gates, failed = qa.run_all(book) + + # everything is built in a temporary directory and swapped into place at + # the end, so a build that fails leaves the last good corpus alone + out = args.out.rstrip("/") + tmp = out + ".tmp" + if os.path.isdir(tmp): + shutil.rmtree(tmp) + os.makedirs(tmp) + + files = [] + p, n = emit.emit_paragraphs(book, tmp) + files.append({"name": os.path.basename(p), "records": n}) + p, n = emit.emit_footnotes(book, tmp) + files.append({"name": os.path.basename(p), "records": n}) + cdir, written = emit.emit_chapters(book, tmp) + for name, count in written: + files.append({"name": "chapters/" + name, "records": count}) + table_leaves = set() + for page in book.front_pages: + if "Table" in (page.header or ""): + table_leaves.add(page.leaf) + if table_leaves: + p, n = emit.emit_tables(book, tmp, table_leaves) + files.append({"name": os.path.basename(p), "records": n}) + outline = {"chapters": emit.build_outline(book)} + emit.emit_outline(book, tmp) + files.append({"name": "outline.json", "records": len(book.chapters)}) + + records = emit.paragraph_records(book) + notes = emit.footnote_map(book) + if not args.skip_html: + from . import html as html_mod + html_text = html_mod.build_html(records, notes, outline, book_meta, counts, + "digital" if synthetic else "scan") + with open(os.path.join(tmp, "index.html"), "w", encoding="utf-8") as fh: + fh.write(html_text) + files.append({"name": "index.html", "records": len(records)}) + + # the reader and the chapter files are checked against the corpus they + # were made from: the reader is read back from the disk, the corpus is + # the one in memory + gates, failed = qa.run_all(book, render={ + "html_text": html_text if not args.skip_html else "", + "records": records, "book_meta": book_meta, "counts": counts, + "outline": outline, "corpus_dir": tmp}) + suspects = verify.collect_suspects(gates) + + if synthetic: + known_issues = [ + "The text is the PDF's own text layer, read as the publisher set it: " + "there is no OCR noise in it, and no reading of the page image was " + "needed.", + "This book does not number its paragraphs, so the paragraph ids are " + "anchored to the text: the unit, the opening words of the paragraph " + "and a collision counter. They survive a re-split, and the ordinal " + "id each one replaced is kept as an alias.", + "A paragraph is found by its indent, so a paragraph the printer set " + "flush, or one that opens with a quotation mark, may run into the " + "paragraph before it.", + "The notes stand at the end of their chapter and are numbered again " + "in every chapter, so a note is cited by its chapter and its number.", + "The reference marks in the prose are the PDF's own superscripts, so " + "every note is tied to the paragraph that cites it.", + "Tables and figure captions are kept as their own blocks: they are " + "not prose, and the paragraph gates do not judge them.", + "A table is read as its lines, not as its columns: the text layer " + "gives the row, and where the columns fell is not known. The reader " + "shows the rows as they were extracted and says so.", + ] + id_scheme = { + "type": "anchored", + "pattern": "^c\\d{2}-[a-z0-9-]+-\\d+$|^h-\\d{2}-\\d{3}$|^fn-\\d{4}$", + "native": False, + "human_citable": True, + "citation_template": "{authors_short}, {title} ({year}), unit {unit}, para {id}, p {page_start}", + } + page_scheme = {"printed_labels": True, "coverage": 1.0, + "source": "the book's own printed labels, read from the PDF text layer"} + else: + known_issues = [ + "The text comes from a page scan, re-read line by line with Tesseract " + "at 360 dpi and merged with the PDF's own text layer, so " + "that no printed line is merged with another and no line is lost.", + "Words are missing and some are garbled: a few paragraphs end " + "mid-sentence, and the page images are in the PDF if a better reading " + "is wanted. Grade C paragraphs are the worst; check the page image " + "before quoting any of them.", + "The reference marks inside the prose are OCR garbage - they read as " + "'*®' or '***' - so a note cannot be tied to the paragraph that " + "cites it. Every note is placed on the page of its paragraph; the QA " + "report says how many are exact.", + "The notes are numbered again in every chapter, and the OCR mangles " + "some of those numbers, so a note is cited by its chapter and its " + "number rather than by one sequence for the book.", + "A few paragraph numbers are missing or used twice, because the OCR " + "read the same number in two places. The ids stay unique; the book's " + "own number may not be.", + "The tables of cases and statutes are the worst-scanned part of the " + "book: the dot leaders came through as junk and entries run together. " + "Use the page image for an exact citation.", + "The mini-table-of-contents that opens each chapter is unreadable in " + "the OCR and is dropped; the chapter headings are taken from the body " + "instead.", + ] + id_scheme = None + page_scheme = None + + if synthetic: + source_meta = {"type": "digital", "format": "pdf", + "pages": len(book.pages), + "text_origin": "the PDF's own text layer; no OCR was run", + "text_layer_sha256": emit.sha256_of_text_layer(book.pages)} + else: + source_meta = {"type": "scan", "format": "pdf", + "pages_layer_sha256": emit.sha256_of(args.pages) if args.pages else None, + "ocr_engine": "tesseract", + "ocr_origin": "page images re-read line by line, merged " + "with the PDF's own text layer"} + source_meta["isbn_check"] = provenance.check_isbn(book.pages, args.isbn) + + summary = _expectations_summary(gates, counts, profile_summary) + expect_path = args.expect or os.path.join(out, "expectations.json") + diff = _compare_expectations(expect_path, summary) + if diff and not args.expect_update: + proposed = os.path.join(out, "expectations.proposed.json") + with open(proposed, "w", encoding="utf-8") as fh: + json.dump(summary, fh, indent=2, ensure_ascii=False) + print("the corpus no longer matches its committed expectations:") + for line in diff: + print(" %s" % line) + print("proposal written to %s" % proposed) + shutil.rmtree(tmp, ignore_errors=True) + return EXIT_EXPECTATIONS + + qp = os.path.join(tmp, "qa_report.json") + with open(qp, "w", encoding="utf-8") as fh: + json.dump({"gates": [g.as_dict() for g in gates], "failed": failed, + "suspects": suspects, + "anomalies": book.anomalies[:200], + "spine_gaps": book.spine["gaps"][:200]}, fh, indent=2, ensure_ascii=False) + files.append({"name": "qa_report.json", "records": len(gates)}) + + mp, manifest = emit.build_manifest(book, tmp, gates, files, book_meta, source_meta, + known_issues=known_issues, id_scheme=id_scheme, + page_scheme=page_scheme, profile=book_profile, + environment={"dictionary": qa.dictionary_fingerprint()}) + ip, _n = emit.emit_index_md(book, tmp, gates, manifest, files) + files.append({"name": "index.md", "records": _n}) + manifest["files"] = emit.with_hashes(tmp, files) + manifest["expectations"] = summary + + # the corpus carries the files the build does not produce: the committed + # expectations and the hand-written citations + for name in CARRIED: + source = os.path.join(out, name) + if os.path.exists(source): + shutil.copy2(source, os.path.join(tmp, name)) + + emit.write_manifest(mp, manifest) + + # swap it into place + old = out + ".old" + if os.path.isdir(old): + shutil.rmtree(old) + if os.path.isdir(out): + os.rename(out, old) + os.rename(tmp, out) + if os.path.isdir(old): + shutil.rmtree(old) + + print("paragraphs: %d | headings: %d | footnotes: %d" + % (counts["paragraphs"], counts["headings"], counts["footnotes"])) + print("profile:", profile_summary) + print("buckets:", dict(book.line_buckets)) + for g in gates: + print(" %-26s %-5s %s" % (g.name, g.status, g.value)) + if suspects: + print("suspects, worst first:") + for row in suspects: + print(" %-26s %-5s %d" % (row["gate"], row["status"], row["count"])) + if failed: + print("FAILED GATES:", failed) + return EXIT_GATE + print("out:", out) + return 0 + + +if __name__ == "__main__": + sys.exit(main()) diff --git a/plugins/vochic03/document-library/pipeline/book2corpus/counts_line.py b/plugins/vochic03/document-library/pipeline/book2corpus/counts_line.py new file mode 100644 index 00000000..f8164f05 --- /dev/null +++ b/plugins/vochic03/document-library/pipeline/book2corpus/counts_line.py @@ -0,0 +1,48 @@ +"""The counts line: what the reader says about the book it carries. + +One function for each kind of reader, and the renderer and the gate both +call them. The gate's independence does not come from a second +implementation of the wording - that would drift - it comes from +recomputing the numbers from the corpus and asking this module to write +them out. + +The counts are bound to the reader by an explicit attribute, +data-gate="counts", not by a class name: a class name is presentation and +presentation changes, while the gate has to keep meaning. +""" + +SEP = "\u00b7" + + +def law(counts): + """The counts of a machine corpus: its chapters, its paragraphs, its notes.""" + counts = counts or {} + return "%d chapters %s %d paragraphs %s %d footnotes" % ( + counts.get("chapters", 0), SEP, + counts.get("paragraphs", 0), SEP, + counts.get("footnotes", 0)) + + +def notes(chapters, paragraphs, figures, pictures): + """The counts of a study-notes book: what it holds and what it shows.""" + return "%d chapters %s %d paragraphs %s %d figures %s %d with pictures" % ( + chapters, SEP, paragraphs, SEP, figures, SEP, pictures) + + +def to_html(text): + """The counts as they go into the reader: the dot as an entity.""" + return (text or "").replace(SEP, "·") + + +def numbers(text): + """The numbers in a counts line, in order.""" + out, number = [], "" + for character in text or "": + if character.isdigit(): + number += character + elif number: + out.append(int(number)) + number = "" + if number: + out.append(int(number)) + return out \ No newline at end of file diff --git a/plugins/vochic03/document-library/pipeline/book2corpus/debris.py b/plugins/vochic03/document-library/pipeline/book2corpus/debris.py new file mode 100644 index 00000000..de8ad307 --- /dev/null +++ b/plugins/vochic03/document-library/pipeline/book2corpus/debris.py @@ -0,0 +1,300 @@ +#!/usr/bin/env python3 +"""book2corpus/debris.py - the debris of a book, and the one way of asking +whether a phrase is in a text. + +Written 26 Nov 2026 by MCode, following the term index of the corpus: the +rule-based extraction was offering the corpus its own furniture as +concepts - "bottom right", "arrow pointing", "(London: Routledge, 1998)" - +so the furniture is taken out first, and the terms are taken out of what +is left. + +The principle under all of it: THE MODEL PROPOSES, CODE PROVES. A model +may say that a phrase is a term; every occurrence of it in the index is +found here, in the actual text, by code. This module holds the one rule +the whole system uses to ask whether a phrase is in a text, so the term +index, the judge and the reader cannot disagree about what "occurs" means. + +Four things are kept apart on purpose: + + the boilerplate the phrases a figure is laid out in, never concepts + the clean text the text without the furniture, with the headings and + the order of the paragraphs left standing + the sentences the text as a reader would say it, and the topic of + each of its paragraphs + the occurrence the question "is this phrase in this text", asked one + way, for the whole corpus + +Every function here is pure: the same text gives the same answer on every +run, and nothing is written, printed or asked of the network. +""" +from __future__ import annotations + +import re +import unicodedata + +# the phrases a figure is laid out in: the words of the page around the +# picture, and never the concepts of the book +FIGURE_BOILERPLATE: frozenset[str] = frozenset(( + "above", + "adapted from", + "arrow point", + "arrow pointing", + "arrow points", + "arrows", + "audio narration", + "below", + "bottom left", + "bottom right", + "caption", + "center", + "centre", + "continued", + "courtesy of", + "diagram", + "figure", + "graph", + "illustration", + "image", + "left", + "overleaf", + "page", + "photo", + "photograph", + "plate", + "right", + "see also", + "source", + "table", + "top left", + "top right", +)) + +# the dashes a printer or a PDF writer leaves inside a compound; they are +# spaces for the comparison, so "Duty-of-Care" is the phrase "duty of care" +DASH_RE = re.compile("[\u002d\u2010\u2011\u2012\u2013\u2014\u2015\u2212]") + +# the headings that open the apparatus at the end of a book +REFERENCE_HEADINGS = frozenset(( + "references", + "bibliography", + "works cited", + "further reading", + "notes", +)) + +# a citation in brackets, and a year with the letter that may follow it +CITATION_PAREN = re.compile(r"\(([^()]*)\)") +YEAR_RE = re.compile(r"(?:1[5-9]\d\d|20\d\d)[a-z]?") +BARE_YEAR_RE = re.compile(r"^\s*(?:1[5-9]\d\d|20\d\d)[a-z]?\s*$") + +# "et al." with the comma that may follow it +ET_AL_RE = re.compile(r"\bet\s+al\.[,\s]*", re.IGNORECASE) + +# the marks that end a sentence +TERMINATOR_RE = re.compile(r"[.!?]") + +# a markdown heading: the hashes, a space, and the rest of the line +HEADING_RE = re.compile(r"^(#+)[ \t]+(.*)$") + + +def _boilerplate_pattern(): + """The one pattern that finds the boilerplate, the longest phrase first.""" + parts = [] + for phrase in sorted(FIGURE_BOILERPLATE, key=lambda item: (-len(item), item)): + words = [re.escape(word) for word in phrase.split()] + parts.append(r"(? str: + """The form a phrase is compared by: folded, one space between words. + + NFKC first, so the odd letters a PDF leaves behind become the letters + they mean; then casefold, so the comparison does not care about the + case; then every dash becomes a space, so "Duty-of-Care" is the phrase + "duty of care". Nothing at all is the empty string. + """ + text = unicodedata.normalize("NFKC", text or "") + text = text.casefold() + # a word broken across two lines is one word: "work-\ning" is "working" + text = LINE_BREAK_HYPHEN.sub("", text) + text = DASH_RE.sub(" ", text) + return re.sub(r"\s+", " ", text).strip() + + +# a word: letters and digits, the marks that hang off them, and the +# possessive that follows +WORD = re.compile(r"(?:[^\W_]|[\u0300-\u036f])+(?:['\u2019][sS])?") +POSSESSIVE = re.compile(r"['\u2019][sS]$") + + +def tokenise_spans(text): + """The words of a text, with the possessives folded into their words. + + A word is the word the text means: "Alzheimer's" is "alzheimer", + and the span covers the possessive, so the gap between two words of a + term never holds one. The words are normalised, so a letter the + book writes with a combining mark is the letter the canonical has. + """ + out = [] + for match in WORD.finditer(text or ""): + word = unicodedata.normalize("NFKC", + POSSESSIVE.sub("", match.group(0))) + out.append((word.casefold(), match.start(), match.end())) + return out + + +def words_of(text): + """The words of a phrase, the way the scan reads them.""" + return [word for word, _start, _end in tokenise_spans(text)] + + +def tokenise(text: str | None) -> list[str]: + """The words of a phrase: the runs of letters and digits in it.""" + return re.findall(r"[a-z0-9]+", normalise(text)) + + +def occurs(haystack: str | None, phrase: str | None) -> bool: + """Is this phrase in this text? The one answer the whole system uses. + + The tokens of the phrase must stand together, in their own order, + inside the tokens of the text. An empty phrase is in no text at all. + """ + want = tokenise(phrase) + if not want: + return False + got = tokenise(haystack) + length = len(want) + if length > len(got): + return False + first = want[0] + for start in range(len(got)): + if got[start] == first and got[start:start + length] == want: + return True + return False + + +def clean(text: str | None) -> str: + """The text without the furniture, the citations and the apparatus. + + The case and the line structure are kept: the headings stay headings + and the paragraphs stay in their order, because a model reads this + text and has to find the places the code found. + + Three things are taken out: + + the apparatus a trailing references section, and all that follows it + the citations "et al.", "(London: Routledge, 1998)", "(2019)" + the boilerplate the phrases of FIGURE_BOILERPLATE, wherever they stand + + The assumption: the last line that is exactly one of the reference + headings opens the apparatus, so everything from that line to the end + of the text goes with it. A "Notes" line in the middle of a book + therefore takes the rest of the book with it. + """ + text = text or "" + text = _drop_references(text) + text = _drop_citations(text) + text = _drop_boilerplate(text) + return _tidy(text) + + +def sentences(text: str | None) -> list[str]: + """The sentences of a text, in order. + + A sentence ends at a full stop, a question mark or an exclamation mark + that is followed by white space or by the end of the text. A piece of + text with no terminator at all is one sentence, because a fragment is + still a sentence to a reader. + """ + parts = re.split(r"(?<=[.!?])\s+", text or "") + return [part.strip() for part in parts if part.strip()] + + +def topic_sentences(text: str | None) -> list[str]: + """The first sentence of every paragraph, in order. + + A paragraph is a run of lines with a blank line between it and the + next. Its first sentence is its topic; when the paragraph has no + terminator at all, its first line stands in for it, cut at 300 + characters. + """ + out = [] + for block in re.split(r"\n[ \t\r]*\n", text or ""): + block = block.strip() + if not block: + continue + if TERMINATOR_RE.search(block): + first = sentences(block)[0] + else: + first = block.split("\n")[0].strip()[:300] + if first: + out.append(first) + return out + + +def headings(text: str | None) -> list[dict]: + """The markdown headings of a text, in order. + + The level is the number of the hashes; the text is the rest of the + line, without the hashes and without its trailing spaces. + """ + out = [] + for line in (text or "").split("\n"): + match = HEADING_RE.match(line) + if match: + out.append({"level": len(match.group(1)), "text": match.group(2).strip()}) + return out + + +def _drop_references(text): + """The text without the trailing references section.""" + lines = text.split("\n") + cut = None + for index, line in enumerate(lines): + label = line.strip().lstrip("#").strip() + if label.rstrip(":").strip().lower() in REFERENCE_HEADINGS: + cut = index + if cut is None: + return text + return "\n".join(lines[:cut]) + + +def _drop_citations(text): + """The text without the citations in brackets and without "et al.".""" + text = CITATION_PAREN.sub(_citation_removed, text) + return ET_AL_RE.sub(" ", text) + + +def _citation_removed(match): + """One bracket of text: gone when it holds a citation, kept when not.""" + inner = match.group(1) + if BARE_YEAR_RE.match(inner): + return " " + if YEAR_RE.search(inner) and ("," in inner or ":" in inner): + return " " + return match.group(0) + + +def _drop_boilerplate(text): + """The text without the phrases a figure is laid out in.""" + return BOILERPLATE_RE.sub(" ", text) + + +def _tidy(text): + """The white space that is left behind, tidied; the lines kept.""" + lines = [] + for line in text.split("\n"): + line = re.sub(r"[ \t]+", " ", line) + line = re.sub(r"^([ \t]*)([:;,])[ \t]+", r"\1", line) + line = re.sub(r"^([ \t]*)([:;,])[ \t]*$", r"\1", line) + line = re.sub(r"[ \t]+([,.;:!?)\]])", r"\1", line) + line = re.sub(r"([(\[])[ \t]+", r"\1", line) + lines.append(line.strip()) + return "\n".join(lines) diff --git a/plugins/vochic03/document-library/pipeline/book2corpus/digital.py b/plugins/vochic03/document-library/pipeline/book2corpus/digital.py new file mode 100644 index 00000000..290290d0 --- /dev/null +++ b/plugins/vochic03/document-library/pipeline/book2corpus/digital.py @@ -0,0 +1,546 @@ +"""Structure for a born-digital book. + +A digital book gives more than a scan does: real fonts, real indents and a +clean text layer, so the rules are sharper. The contents page is clean too, +so it supplies the units of the book, their titles and where each begins. +Section headings are the bold display face. A paragraph is a run of lines +that share an indent, and which indent means "a new paragraph" depends on +whether the unit is prose or a list. The notes are numbered at the end of +each chapter, and the reference mark in the prose names the note it belongs +to. +""" +import re +from collections import Counter + +from . import scrub, structure +from .ir import Chapter, Line, Paragraph + +ENDNOTE_RE = re.compile(r"^([0-9]{1,4})\.\s*\t?\s*(.*)$", re.S) +CHAPTER_NO_RE = re.compile(r"^Chapter\s+([0-9]{1,2})$") +HEAD_FONTS = ("Palatino-Bold", "Palatino-BoldItalic", + "TimesNewRomanPS-Bold", "TimesNewRomanPS-BoldItalic", + "Times-Bold", "Times-BoldItalic") +# the fonts a display line can be set in: the psychology books are set in +# Palatino, the law books in Times +DISPLAY_FONTS = ("Palatino", "TimesNewRomanPS", "Times") +# how much bigger than the body a display line is. A book whose body is +# set in a face we do not know gets its threshold from its own body. +DISPLAY_FACTOR = 1.4 +# a line of dot leaders is an entry in a list of contents +CONTENTS_RE = re.compile(r"\.{3,}") +TABLE_FONTS = ("Optima", "Optima-Bold", "Optima-Oblique") +DISPLAY_SIZE = 12.0 +INDENT_SLACK = 3.0 + +# what a unit is in the book +PROSE = "prose" # running prose: the chapters and the preface +FRONT = "front" # the lists that come before the book +BACK = "back" # the lists that come after it +APPENDIX = "appendix" # the appendices + +# a unit whose title says it is a list of things rather than prose +LIST_TITLE_RE = re.compile(r"^(list of|index\b|references\b|about the|supplemental)", re.I) +# front matter that is still prose +PROSE_TITLE_RE = re.compile(r"^(preface|foreword|introduction|acknowledg)", re.I) +# a line that is nothing but a list of page numbers +PAGE_LIST_RE = re.compile(r"^[0-9,\u2013\u2014\s]+$") + + +def _lines_by_leaf(items): + """The lines of a chapter, gathered by the page they are on.""" + out = {} + for line, page, margin in items: + out.setdefault(page.leaf, []).append(line) + return out + + +def _display_size(body_size, body_font): + """The size at which a line is display rather than text. + + The books we know are set in Palatino, and their display type starts + at twelve points. A book set in another face gets the threshold from + its own body, so that its headings are read as headings. + """ + if body_font and body_font.startswith("Palatino"): + return DISPLAY_SIZE + return max(DISPLAY_SIZE, (body_size or 0) * DISPLAY_FACTOR) + + +def _is_heading(line, display_size=None): + if not line.font.startswith(HEAD_FONTS): + return False + if line.size >= (display_size or DISPLAY_SIZE): + return False + return True + + +def _merge_headings(items): + """A heading that wraps over two lines is one heading.""" + out = [] + for item in items: + line, page, margin = item + if (out and _is_heading(line) and _is_heading(out[-1][0]) + and out[-1][1] is page and abs(out[-1][0].y1 - line.y0) < 40): + prev = out[-1][0] + merged = Line(text=prev.text.rstrip() + " " + line.text.strip(), + x0=prev.x0, x1=line.x1, + y0=prev.y0, y1=line.y1, size=max(prev.size, line.size), + font=prev.font, lead=prev.lead or line.lead, + sources=prev.sources + line.sources, + marks=list(prev.marks) + list(line.marks)) + out[-1] = (merged, page, margin) + continue + out.append(item) + return out + + +def _mostly_upper(text): + """Level one headings are set in capitals; level two in ordinary case.""" + letters = [c for c in text if c.isalpha()] + if not letters: + return False + return sum(1 for c in letters if c.isupper()) / len(letters) > 0.8 + + +def _is_display(line, display_size=None): + if not line.font.startswith(DISPLAY_FONTS): + return False + return line.size >= (display_size or DISPLAY_SIZE) + + +def _left_margin(lines): + """The text block's left edge. + + The leftmost of the two commonest line starts: a paragraph's first line + and its continuation lines sit at two different indents, and the block's + edge is the left of the two. The minimum over all the lines would be + wrong, because a centred heading sits further left than the text. + """ + xs = Counter(round(ln.x0, 1) for ln in lines if ln.x0 > 40) + if not xs: + return 0.0 + top = [x for x, _ in xs.most_common(2)] + return min(top) + + +def _role_of(label, title, before_first, after_last): + """What kind of unit this is: prose, a list, or an appendix.""" + if label.startswith("Appendix"): + return APPENDIX + if PROSE_TITLE_RE.match(title): + return PROSE + if LIST_TITLE_RE.match(title): + return BACK if not before_first else FRONT + if before_first: + return FRONT + if after_last: + return BACK + return PROSE + + +class DigitalBook: + """The same surface as Book, built from a born-digital text layer.""" + + def __init__(self, pages, meta=None, extracts_inline=False, + front_pages=0, + note_layout="end_of_chapter", + paragraph_numbers=None): + self.pages = pages + # a book may set its extracts inside the paragraph they belong to + self.extracts_inline = extracts_inline + # a book may print its contents and its tables before the text + self.front_leaf_count = front_pages + # a book that numbers its own paragraphs says where they begin + self.paragraph_numbers = (re.compile(paragraph_numbers) + if paragraph_numbers else None) + self.meta = meta or {} + self.chapters = [] + self.paragraphs = [] + self.footnotes = [] + # this book prints its notes at the end of the chapter + self.note_layout = note_layout + # and it does not number its paragraphs: it has no citation scheme + # of its own, so the ids are synthetic + self.paragraph_numbering = ("numbered" if paragraph_numbers else "unnumbered") + self.front_pages = [] + self.back_pages = [] + self.input_lines = sum(len(p.lines) for p in pages) + self.line_buckets = Counter() + self.anomalies = [] + self.pending_marks = [] # (paragraph, number) resolved once ids exist + self.spine = {"found": 0, "gaps": [], "expected_by_chapter": {}} + + def run(self): + self._find_chapters() + self._assemble() + self._front_and_back() + return self + + # -- chapters ---------------------------------------------------------- + def _contents_entries(self): + """(label, title, page) for every unit the contents page lists. + + A title that wraps over several lines is still one entry: the lines + are gathered until the line that gives the page number. + """ + items = [] + pending = [] + for page in self._contents_pages(): + for line in page.lines: + text = line.text.rstrip("\n").replace("\ufeff", "").strip() + if not text: + continue + if _is_display(line): + continue # the title of the contents page itself + page_label = (re.fullmatch(r"[0-9]{1,4}", text) + or re.fullmatch(r"[ivxlcdm]{1,7}", text, re.I)) + if page_label and pending: + items.append((pending, text)) + pending = [] + continue + if page_label: + continue # the folio of the contents page + # the number of a chapter entry is set in bold and its title + # in roman, so the leading face is what says "chapter" + pending.append((text, line.lead or line.font)) + out = [] + for lines, page in items: + joined = " ".join(t.replace("\t", " ") for t, _ in lines).strip() + bold = "Bold" in lines[0][1] + label, title = "", joined + m = re.match(r"^([0-9]{1,2})\s+(.*)$", joined) + if bold and m: + label, title = "Chapter %s" % m.group(1), m.group(2).strip() + else: + m = re.match(r"^(Appendix [A-Z])\s*:?\s*(.*)$", joined) + if m: + label, title = m.group(1), m.group(2).strip() + out.append((label, title, page)) + return out + + def _contents_pages(self): + """The pages the contents run over, found from the 'Contents' title. + + The run ends at the next page with a title of its own: the list of + figures and the list of tables are separate lists, not part of the + contents. + """ + index = None + for i, page in enumerate(self.pages[:40]): + if page.header.replace("\ufeff", "").strip().lower() == "contents": + index = i + break + if index is None: + for i, page in enumerate(self.pages[:40]): + if _display_title(page).lower() == "contents": + index = i + break + if index is None: + return [] + + def tabs(page): + return sum(1 for ln in page.lines if "\t" in ln.text) + + start = index + while start - 1 >= 0 and tabs(self.pages[start - 1]): + start -= 1 + end = index + while end + 1 < len(self.pages): + nxt = self.pages[end + 1] + title = _display_title(nxt) + if title and title.lower() != "contents": + break # the list of figures or the list of tables + head = nxt.header.replace("\ufeff", "").strip().lower() + if head and head != "contents": + break + if tabs(nxt) or not nxt.lines: + end += 1 + continue + break + return self.pages[start:end + 1] + + def _find_chapters(self): + """The units of the book, taken from the contents page.""" + folio = {} + for page in self.pages: + if page.printed_page: + folio.setdefault(str(page.printed_page).strip().lower(), page.leaf) + entries = self._contents_entries() + if not entries: + return self._chapters_from_display() + + first = last = None + for i, (label, title, page) in enumerate(entries): + if label.startswith("Chapter"): + if first is None: + first = i + last = i + if first is None: + first = last = 0 + + units = [] + for i, (label, title, page) in enumerate(entries): + leaf = folio.get(str(page).strip().lower()) + if leaf is None: + self.anomalies.append({"kind": "contents_page_not_found", + "title": title, "page": page}) + continue + role = _role_of(label, title, i < first, i > last) + units.append((leaf, label, title, role)) + units.sort(key=lambda u: u[0]) + + for index, (leaf, label, title, role) in enumerate(units): + end = (units[index + 1][0] - 1 if index + 1 < len(units) + else len(self.pages) - 1) + ch = Chapter(number=index + 1, title=title, + start_leaf=leaf, end_leaf=end) + ch.label = label + ch.expected_headings = [] if role == PROSE else [role] + self.chapters.append(ch) + + def _chapters_from_display(self): + """Fallback: find 'Chapter N' on the page and read the title beside it.""" + starts = [] + for page in self.pages: + number = None + title = "" + for line in page.lines: + text = line.text.strip().lstrip("\ufeff") + if number is None and CHAPTER_NO_RE.match(text) and _is_display(line): + number = int(CHAPTER_NO_RE.match(text).group(1)) + continue + if number is not None and _is_display(line) and not title: + title = text + break + if number is not None: + starts.append((number, title, page.leaf)) + for index, (number, title, leaf) in enumerate(starts): + end = starts[index + 1][2] - 1 if index + 1 < len(starts) else len(self.pages) - 1 + self.chapters.append(Chapter(number=number, title=title, start_leaf=leaf, end_leaf=end)) + + def _chapter_pages(self, ch): + return [p for p in self.pages if ch.start_leaf <= p.leaf <= ch.end_leaf] + + # -- paragraphs -------------------------------------------------------- + def _assemble(self): + for ch in self.chapters: + ch.pages = self._chapter_pages(ch) + items = [] + for page in ch.pages: + margin = _left_margin(page.lines) + for line in page.lines: + items.append((line, page, margin)) + self._chapter_text(ch, _merge_headings(items)) + + def _chapter_text(self, ch, items): + roles = set(ch.expected_headings) + flags = [r for r in ("appendix", "front", "back") if r in roles] + # a list hangs its entries: the entry itself is flush and its + # continuation lines are indented. Prose does the opposite. + hanging = bool(roles & {"front", "back"}) + # the body's own type size: a block quotation is set smaller + sizes = Counter(round(l.size, 1) for l, p, m in items + if not _is_display(l) and not l.font.startswith(TABLE_FONTS)) + body_size = sizes.most_common(1)[0][0] if sizes else 0 + body_fonts = Counter(l.font for l, p, m in items + if not _is_display(l) + and not l.font.startswith(TABLE_FONTS)) + body_font = body_fonts.most_common(1)[0][0] if body_fonts else "" + display_size = _display_size(body_size, body_font) + + # a page may be set in a smaller body than the rest of the + # chapter - a page of nothing but citations - so the size that + # tells a quotation from the text is the page's own + page_sizes = {} + for leaf, leaf_lines in _lines_by_leaf(items).items(): + counter = Counter(round(l.size, 1) for l in leaf_lines + if not _is_display(l) + and not l.font.startswith(TABLE_FONTS)) + if counter: + page_sizes[leaf] = counter.most_common(1)[0][0] + section = [] + current = None + prev_indented = None + in_notes = False + note = None + expected = 1 + + for line, page, margin in items: + text = line.text.strip().lstrip("\ufeff") + marker = None + if not text: + continue + if _is_display(line, display_size): + self.line_buckets["furniture"] += 1 + continue + if line.font.startswith(TABLE_FONTS): + # a table or a figure caption: kept, but not prose. It does + # not end the paragraph it stands beside: a figure at the top + # of a page carries on the paragraph from the page before. + para = Paragraph(kind="table", text=text, chapter=ch.number) + para.leaf_start = page.leaf + para.leaf_end = page.leaf + para.page_start = page.printed_page + para.page_end = page.printed_page + para.flags = list(flags) + self.paragraphs.append(para) + ch.paragraphs.append(para) + self.line_buckets["table"] += 1 + continue + + if in_notes: + m = ENDNOTE_RE.match(text) + if m and int(m.group(1)) == expected: + note = {"n": int(m.group(1)), "text": m.group(2).strip(), + "anchor": "exact", "leaf": page.leaf, + "printed": page.printed_page, "chapter": ch.number, + "chapter_key": str(ch.number)} + self.footnotes.append(note) + expected += 1 + self.line_buckets["footnote"] += 1 + elif note is not None: + note["text"] = structure.join_lines([note["text"], text], strict=True) + self.line_buckets["footnote"] += 1 + else: + self.line_buckets["furniture"] += 1 + continue + + if _is_heading(line, display_size): + current = None + if text.strip().upper() == "NOTES" and not (roles & {"front", "back"}): + # the notes of this chapter start here + in_notes = True + expected = 1 + note = None + level = "h2" if _mostly_upper(text) else "h3" + para = Paragraph(kind="heading", text=text, chapter=ch.number, + section_path=list(section)) + para.level = level + para.path = [text] + para.leaf_start = page.leaf + para.leaf_end = page.leaf + para.page_start = page.printed_page + para.page_end = page.printed_page + para.flags = list(flags) + self.paragraphs.append(para) + ch.paragraphs.append(para) + self.line_buckets["heading"] += line.sources + section = [text] + continue + + indented = line.x0 > margin + INDENT_SLACK + page_list = bool(PAGE_LIST_RE.match(text)) + if current is None: + start = True + elif hanging: + # a list: the entry is flush, its continuation lines hang + start = (not indented) and not page_list + else: + # prose: the paragraph's first line is indented, and the + # lines of a block quotation all are, so a new paragraph + # also needs the line before it to have been flush + # a book that sets its extracts inside the paragraph they + # belong to keeps the paragraph whole: the extract + # continues it instead of starting a new one + start = indented and not prev_indented + marker = None + if self.paragraph_numbers is not None: + found = self.paragraph_numbers.match(text) + if found: + start = True + marker = found.group(1) + if self.extracts_inline and abs(line.size - page_sizes.get(page.leaf, body_size)) > 0.25: + start = False + + if start: + current = Paragraph(kind="body", chapter=ch.number, + section_path=list(section)) + current.path = list(section) + current.leaf_start = page.leaf + current.page_start = page.printed_page + current.text = text + current.flags = list(flags) + if CONTENTS_RE.search(current.text or ""): + # a line of dot leaders is an entry in a list of + # contents, not prose + current.flags = list(flags) + ["contents"] + if marker: + current.native_marker = marker + page_body = page_sizes.get(page.leaf, body_size) + if abs(line.size - page_body) > 0.25: + current.flags = list(flags) + ["quotation"] + current.bboxes.append({"leaf": page.leaf, "x0": line.x0, "y0": line.y0, + "x1": line.x1, "y1": line.y1}) + self.paragraphs.append(current) + ch.paragraphs.append(current) + self.line_buckets["body"] += 1 + else: + current.text = structure.join_lines([current.text, text], strict=True) + current.leaf_end = page.leaf + current.page_end = page.printed_page + current.bboxes.append({"leaf": page.leaf, "x0": line.x0, "y0": line.y0, + "x1": line.x1, "y1": line.y1}) + self.line_buckets["body"] += 1 + prev_indented = indented + for mark in line.marks: + self.pending_marks.append((current, int(mark))) + + def link_footnotes(self): + """Tie each reference mark in the prose to the note it numbers. + + The notes come at the end of their chapter, so the marks are still + waiting when the prose is read, and the paragraphs have no ids until + they are numbered. Both are settled here, after the numbering. + """ + taken = set() + for para, number in self.pending_marks: + found = None + for note in self.footnotes: + if (note["n"] == number and note["chapter"] == para.chapter + and id(note) not in taken): + found = note + break + if found is None: + # the note this mark names is already anchored to another + # paragraph: the mark points at a note that is not there + self.anomalies.append({"kind": "mark_without_note", + "number": number, "chapter": para.chapter}) + continue + found["anchor_id"] = para.id or None + para.footnote_ids.append(found) + taken.add(id(found)) + + # -- front and back ---------------------------------------------------- + def _front_and_back(self): + if not self.chapters: + self.front_pages = list(self.pages) + return + first = self.chapters[0].start_leaf + last = self.chapters[-1].end_leaf + self.front_pages = [p for p in self.pages if p.leaf < first] + if self.front_leaf_count: + self.front_pages = [p for p in self.pages + if p.leaf < self.front_leaf_count] + self.back_pages = [p for p in self.pages if p.leaf > last] + for page in self.front_pages + self.back_pages: + stamped = set(id(ln) for ln in scrub.stamp_lines(page.lines)) + for line in page.lines: + if id(line) in stamped: + self.line_buckets["digitisation"] += 1 + continue + text = line.text.replace("\ufeff", "").strip() + if not text: + continue + para = Paragraph(kind="body", text=text, chapter=0, + leaf_start=page.leaf, leaf_end=page.leaf, + page_start=page.printed_page, page_end=page.printed_page) + self.paragraphs.append(para) + self.line_buckets["body"] += 1 + + +def _display_title(page): + """The title a page carries at the top: the display face, set large.""" + for line in page.lines: + if line.font.startswith("Palatino") and line.size >= 16.0: + return line.text.strip() + return "" diff --git a/plugins/vochic03/document-library/pipeline/book2corpus/emit.py b/plugins/vochic03/document-library/pipeline/book2corpus/emit.py new file mode 100644 index 00000000..c8f33b40 --- /dev/null +++ b/plugins/vochic03/document-library/pipeline/book2corpus/emit.py @@ -0,0 +1,429 @@ +"""Artefacts. + +The agent contract is paragraphs.jsonl plus manifest.json. Everything else - +the chapter Markdown, the HTML reader - is derived from it, so the files a +person reads and the files a machine reads cannot drift apart. +""" +import hashlib +import json +import os +import re + +SCHEMA_VERSION = "1.0.0" + +REFS_RE = re.compile(r"((?:\d{1,2}\.\d{1,3})(?:\s*[-–]\s*\d{1,2}\.\d{1,3})?(?:,\s*\d{1,2}\.\d{1,3})*)\s*$") +JUNK_RUN_RE = re.compile(r"[A-Za-z.,'’*|]{10,}") + + +def sha256_of(path): + h = hashlib.sha256() + with open(path, "rb") as fh: + for chunk in iter(lambda: fh.read(1 << 20), b""): + h.update(chunk) + return h.hexdigest() + + +def sha256_of_text_layer(pages): + """A hash of the reading itself: the lines, with their places on the page. + + This pins the text the corpus was built from, so a rebuild can be + checked against it, without saying anything about the file the reading + came out of. + """ + h = hashlib.sha256() + for page in pages: + h.update(("%d\t%s\n" % (page.leaf, page.printed_page)).encode("utf-8")) + for line in page.lines: + h.update(("%s\t%s\t%s\t%s\t%s\n" % (line.text, line.x0, line.y0, + line.x1, line.y1)).encode("utf-8")) + return h.hexdigest() + + +def _clean_entry(text): + """Drop the OCR of the dot leaders, which is low-entropy junk.""" + def repl(m): + run = m.group(0) + letters = [c for c in run.lower() if c.isalpha()] + if len(run) >= 10 and len(set(letters)) <= 3: + return " | " + return run + out = JUNK_RUN_RE.sub(repl, text) + out = re.sub(r"\s*\|\s*", " | ", out) + return re.sub(r"\s+", " ", out).strip(" |") + + +def parse_table_line(line): + """A flattened table line: name and citation, then the paragraph refs.""" + m = REFS_RE.search(line) + if not m: + return None + refs_raw = m.group(1) + head = line[:m.start()] + if not head.strip(): + return None + parts = [p.strip() for p in head.split("|") if p.strip()] + refs = [] + for r in re.findall(r"\d{1,2}\.\d{1,3}", refs_raw): + refs.append(r) + entries = [] + for part in parts: + part = _clean_entry(part) + if part: + entries.append(part) + if not entries: + return None + return entries, refs + + +def block_kind(para): + """What kind of thing this record is: prose, a quotation, a table, a heading. + + An agent that reads the corpus needs to know that a block quotation is + someone else's words and that a table is not a sentence. + """ + if para.kind == "heading": + return "heading" + if para.kind == "table": + return "table" + if "quotation" in (para.flags or []): + return "quotation" + return "paragraph" + + +def paragraph_records(book): + """The corpus itself: one record per paragraph, as a list. + + The reader and the gates are made from this list, so what they show and + what they check are the same records that are written out. + """ + records = [] + for i, para in enumerate(book.paragraphs): + para.seq = i + rec = { + "id": para.id, + "seq": para.seq, + "kind": para.kind, + "block_kind": block_kind(para), + "text": para.text, + "section_path": para.section_path, + "native_marker": para.native_marker, + "chapter": para.chapter, + "leaf_start": para.leaf_start, + "leaf_end": para.leaf_end, + "page_start": para.page_start, + "page_end": para.page_end, + "quality": para.quality or {"grade": "B", "flags": []}, + "flags": list(para.flags or []), + "footnote_ids": [f.get("id") for f in para.footnote_ids if f.get("id")], + } + if para.bboxes: + rec["bboxes"] = para.bboxes[:4] + if getattr(para, "aliases", None): + # the id this paragraph had before: a citation made against + # it still resolves + rec["aliases"] = list(para.aliases) + records.append(rec) + return records + + +def emit_paragraphs(book, outdir): + path = os.path.join(outdir, "paragraphs.jsonl") + records = paragraph_records(book) + with open(path, "w", encoding="utf-8") as fh: + for rec in records: + fh.write(json.dumps(rec, ensure_ascii=False) + "\n") + return path, len(records) + + +def footnote_map(book): + """The notes by their id, the way the reader wants them.""" + return {note["id"]: note for note in book.footnotes if note.get("id")} + + +def emit_footnotes(book, outdir): + path = os.path.join(outdir, "footnotes.jsonl") + with open(path, "w", encoding="utf-8") as fh: + for note in book.footnotes: + rec = dict(note) + rec.pop("chapter_key", None) + fh.write(json.dumps(rec, ensure_ascii=False) + "\n") + return path, len(book.footnotes) + + +def emit_chapters(book, outdir): + """One Markdown file per chapter, one paragraph per line, each with its id.""" + cdir = os.path.join(outdir, "chapters") + os.makedirs(cdir, exist_ok=True) + written = [] + for ch in book.chapters: + stem = ("%s - %s" % (ch.label, ch.title)) if ch.label else ch.title + stem = re.sub(r"[^A-Za-z0-9 ]", " ", stem) + stem = re.sub(r"\s+", " ", stem).strip() or "Untitled" + name = "%02d %s.md" % (ch.number, stem) + path = os.path.join(cdir, name) + heading = ("%s: %s" % (ch.label, ch.title)) if ch.label else ch.title + lines = ["# %s" % heading, ""] + pages = [p for p in ch.pages] + if pages: + lines.append("Pages %s-%s of the printed book." % ( + pages[0].printed_page or "?", pages[-1].printed_page or "?")) + lines.append("") + for para in ch.paragraphs: + if para.kind == "heading": + level = "##" if (para.section_path and para.section_path[0] == para.text) else "###" + lines.append("%s %s" % (level, para.text)) + lines.append("") + continue + lines.append("[%s] %s" % (para.id, para.text)) + for note in para.footnote_ids: + lines.append("[%s] %s" % (note.get("id"), note.get("text", ""))) + lines.append("") + with open(path, "w", encoding="utf-8") as fh: + fh.write("\n".join(lines).rstrip() + "\n") + written.append((name, len(ch.paragraphs))) + + # the front and back matter belong to the book too: they are in the + # corpus, so they are in the chapter files as well + loose = [p for p in book.paragraphs if p.kind == "body" and not (p.chapter or 0)] + if loose: + name = "00 Front and back matter.md" + path = os.path.join(cdir, name) + lines = ["# Front and back matter", ""] + for para in loose: + lines.append("[%s] %s" % (para.id, para.text)) + lines.append("") + with open(path, "w", encoding="utf-8") as fh: + fh.write("\n".join(lines).rstrip() + "\n") + written.append((name, len(loose))) + return cdir, written + + +def emit_tables(book, outdir, table_leaves): + """The tables of cases and statutes, parsed to entry/citation/refs.""" + path = os.path.join(outdir, "tables.jsonl") + rows = [] + for page in book.pages: + if page.leaf not in table_leaves: + continue + for ln in page.body: + parsed = parse_table_line(ln.text) + if not parsed: + continue + entries, refs = parsed + for entry in entries: + rows.append({"source": page.header or "Table", + "entry": entry, + "page": page.printed_page, + "leaf": page.leaf, + "refs": refs}) + with open(path, "w", encoding="utf-8") as fh: + for row in rows: + fh.write(json.dumps(row, ensure_ascii=False) + "\n") + return path, len(rows) + + +def _snippet(text, limit=120): + text = " ".join((text or "").split()) + return text if len(text) <= limit else text[:limit - 1].rstrip() + "…" + + +def _first_page(book, start_leaf, end_leaf): + for leaf in range(start_leaf, end_leaf + 1): + if book.pages[leaf].printed_page: + return book.pages[leaf].printed_page + return None + + +def _last_page(book, start_leaf, end_leaf): + for leaf in range(end_leaf, start_leaf - 1, -1): + if book.pages[leaf].printed_page: + return book.pages[leaf].printed_page + return None + + +def build_outline(book): + """The book's shape: chapters, divisions, sub-divisions, paragraphs. + + This is the index an agent reads to find a passage and the sidebar is + built from, so the two cannot disagree. + """ + chapters = [] + for ch in book.chapters: + entry = {"number": ch.number, "label": ch.label, "title": ch.title, + "page_start": _first_page(book, ch.start_leaf, ch.end_leaf), + "page_end": _last_page(book, ch.start_leaf, ch.end_leaf), + "divisions": [], "paragraphs": []} + division = None + subsection = None + for para in ch.paragraphs: + if para.kind == "heading": + if getattr(para, "level", "h3") == "h2": + division = {"title": para.text, "page": para.page_start, + "subsections": [], "paragraphs": []} + entry["divisions"].append(division) + subsection = None + else: + subsection = {"title": para.text, "page": para.page_start, + "paragraphs": []} + if division is None: + division = {"title": None, "page": para.page_start, + "subsections": [], "paragraphs": []} + entry["divisions"].append(division) + division["subsections"].append(subsection) + continue + item = {"id": para.id, "page": para.page_start, + "grade": (para.quality or {}).get("grade"), + "text": (para.text or "")[:160]} + if subsection is not None: + subsection["paragraphs"].append(item) + elif division is not None: + division["paragraphs"].append(item) + else: + entry["paragraphs"].append(item) + chapters.append(entry) + return chapters + + +def emit_outline(book, outdir): + path = os.path.join(outdir, "outline.json") + with open(path, "w", encoding="utf-8") as fh: + json.dump({"schema_version": SCHEMA_VERSION, "chapters": build_outline(book)}, + fh, indent=1, ensure_ascii=False) + return path + + +def emit_index_md(book, outdir, gates, manifest, files): + """The human-readable companion to manifest.json.""" + path = os.path.join(outdir, "index.md") + meta_book = manifest["book"] + lines = [] + lines.append("# %s - %s (%s)" % (meta_book.get("title", ""), ", ".join(meta_book.get("authors", [])), meta_book.get("year", ""))) + lines.append("") + lines.append("A chaptered corpus of the book, built for an AI agent to work from: the commentary as numbered paragraphs, the tables of cases and statutes parsed, and a self-contained HTML reader.") + lines.append("") + lines.append("## What is here") + lines.append("") + lines.append("| File | What it is |") + lines.append("| --- | --- |") + lines.append("| paragraphs.jsonl | The agent contract: one JSON object per paragraph, with its id, section path, pages and text. Start here. |") + lines.append("| footnotes.jsonl | The notes at the foot of each page, with the paragraph they are anchored to. |") + lines.append("| tables.jsonl | The table of cases and the table of statutes, parsed into entry, citation and paragraph references. |") + lines.append("| chapters/ | One Markdown file per chapter, one paragraph per line, each line prefixed with its paragraph number. |") + lines.append("| index.html | A self-contained reader: contents, search, paragraph jump, light and dark, print styles. |") + lines.append("| manifest.json | The machine-readable manifest: schema version, id scheme, counts, the QA results and the file list. |") + lines.append("| qa_report.json | Every QA gate, its value, its threshold and its status. |") + lines.append("") + lines.append("## The book") + lines.append("") + lines.append("- %d chapters, %d numbered paragraphs, %d headings, %d footnotes." % (manifest["counts"]["chapters"], manifest["counts"]["paragraphs"], manifest["counts"]["headings"], manifest["counts"]["footnotes"])) + source = (manifest.get("source") or {}).get("type", "scan") + if source == "digital": + lines.append("- Source: %d pages of the book's own PDF text layer; no OCR was run." % manifest["counts"]["leaves"]) + lines.append("- Printed page numbers are the book's own folios, read from the PDF text layer.") + lines.append("- Paragraph ids are anchored to the text: the unit, the paragraph's opening words and a collision counter. They survive a re-split, and the ordinal id each one replaced is kept as an alias.") + else: + lines.append("- Source: %d pages of scan, re-read line by line and merged with the PDF's own text layer." % manifest["counts"]["leaves"]) + lines.append("- Printed page numbers come from the scan's own page map, not from the OCR.") + lines.append("- Paragraph ids are the book's own paragraph numbers, so a passage can be cited the way the book cites it.") + lines.append("") + lines.append("## Chapters") + lines.append("") + for ch in build_outline(book): + lines.append("### %d. %s" % (ch["number"], + ("%s: %s" % (ch["label"], ch["title"])) + if ch.get("label") else ch["title"])) + lines.append("") + lines.append("Pages %s-%s." % (ch["page_start"] or "?", ch["page_end"] or "?")) + lines.append("") + for para in ch["paragraphs"]: + lines.append("- %s %s" % (para["id"], _snippet(para["text"]))) + for div in ch["divisions"]: + if div["title"]: + lines.append("") + lines.append("**%s** (p %s)" % (div["title"], div["page"] or "?")) + for para in div["paragraphs"]: + lines.append("- %s %s" % (para["id"], _snippet(para["text"]))) + for sub in div["subsections"]: + lines.append("") + lines.append(" *%s* (p %s)" % (sub["title"], sub["page"] or "?")) + for para in sub["paragraphs"]: + lines.append(" - %s %s" % (para["id"], _snippet(para["text"]))) + lines.append("") + lines.append("") + lines.append("## Quality gates") + lines.append("") + lines.append("| Gate | Status | Detail |") + lines.append("| --- | --- | --- |") + for g in gates: + lines.append("| %s | %s | %s |" % (g.name, g.status, g.detail or str(g.value)[:120])) + lines.append("") + lines.append("## Known issues") + lines.append("") + for issue in manifest.get("known_issues", []): + lines.append("- %s" % issue) + lines.append("") + with open(path, "w", encoding="utf-8") as fh: + fh.write(chr(10).join(lines)) + return path, len(lines) + + +def build_manifest(book, outdir, gates, files, book_meta, source_meta, known_issues=None, + id_scheme=None, page_scheme=None, profile=None, environment=None): + path = os.path.join(outdir, "manifest.json") + counts = { + "paragraphs": sum(1 for p in book.paragraphs if p.kind == "body"), + "headings": sum(1 for p in book.paragraphs if p.kind == "heading"), + "footnotes": len(book.footnotes), + "leaves": len(book.pages), + "chapters": len(book.chapters), + } + manifest = { + "schema_version": SCHEMA_VERSION, + "book": book_meta, + "source": source_meta, + "id_scheme": id_scheme or { + "type": "native", + "pattern": "^(fm|bm)-p\\d{4}$|^\\d{1,2}\\.\\d{1,3}(\\.\\d{1,3})?$", + "native": True, + "human_citable": True, + "citation_template": "{authors_short}, {title} ({year}), para {native_marker}, p {page_start}", + }, + "page_scheme": page_scheme or {"printed_labels": True, "coverage": 1.0, + "source": "the scan page map (machine inferred)"}, + "counts": counts, + "profile": profile or {}, + # the word list the grades were measured against, so that a gate + # result can be read again and not taken on trust + "environment": environment or {}, + "chapters": [{"number": c.number, "label": c.label, "title": c.title, + "leaf_start": c.start_leaf, "leaf_end": c.end_leaf, + "page_start": _first_page(book, c.start_leaf, c.end_leaf), + "page_end": _last_page(book, c.start_leaf, c.end_leaf), + "paragraphs": len([p for p in c.paragraphs if p.kind == "body"]), + "headings": len([p for p in c.paragraphs if p.kind == "heading"])} + for c in book.chapters], + "qa": [g.as_dict() for g in gates], + "files": files, + "build": {"tool_version": "0.1.0", "config_sha256": None}, + "known_issues": list(known_issues or []), + } + return path, manifest + + +def with_hashes(outdir, files): + """The file list with the hash of each file, so a stale manifest beside + a new corpus is detectable and not merely wrong.""" + out = [] + for entry in files: + path = os.path.join(outdir, entry["name"]) + row = dict(entry) + if os.path.exists(path): + row["bytes"] = os.path.getsize(path) + row["sha256"] = sha256_of(path) + out.append(row) + return out + + +def write_manifest(path, manifest): + with open(path, "w", encoding="utf-8") as fh: + json.dump(manifest, fh, indent=2, ensure_ascii=False) diff --git a/plugins/vochic03/document-library/pipeline/book2corpus/figures.py b/plugins/vochic03/document-library/pipeline/book2corpus/figures.py new file mode 100644 index 00000000..a597f93b --- /dev/null +++ b/plugins/vochic03/document-library/pipeline/book2corpus/figures.py @@ -0,0 +1,802 @@ +"""Matching the notes' figure blocks to the library's images. + +Every figure block in the notes asks for one image: the picture the book +printed. The library holds the pictures, one record per image, carrying +the page it was taken from, the chapter, the caption the book printed and +a written description of what the image shows. + +The rules here are evidence rules. A block gets an image only when the +data says which image it is, and the tier says on what: + + numbered the figure's own number agrees with the catalogue's + verified the printed caption agrees + description-match the two written descriptions agree closely + probable the captions share enough words + inferred one picture left on the page, one block still unmatched + ordinal the order of the pictures on the page says which is which + candidate several pictures could be; none of them is claimed + none no picture for that page + +How the claims are settled: + + The page is settled as a whole. The claims are written into a matrix, + one row per figure and one column per picture on that page, each claim + worth its tier and its score, and the best assignment of the matrix is + taken - see assignment.py. A greedy pass over the tiers would give a + contested picture to whichever figure it met first, and the order of + the figures is the order of the notes, not the order of the evidence. + + Every match is then asked what it was worth against its best + alternative: forbidding the match and settling the page again says what + the page would look like without it. A match whose alternative is + nearly as good is not a match. Exact ties are left unclaimed. + + A rival also has to be far away before a description can speak at all. + On a page, with a handful of pictures, a rival has to be a quarter of + the winner and three fifths of it below; in a chapter, with many + pictures, a rival has to be an eighth and three quarters below. Both + descriptions have to carry enough words to be compared at all: two + words match by luck, five words match by meaning. + + One picture may serve two figures in one case only: the panels of one + figure, which the notes write as 3.2a and 3.2b and the catalogue holds + once as 3.2. That sharing is declared, and the gate checks the + declaration. + + One printed figure may be held twice: once cut out of the page, once + rendered from the book's own vector art. That is one picture, not two, + and the second copy is never a rival for the first. +""" + +import hashlib +import os +import re + +from . import assignment + +# Bumped by hand when the meaning of a match changes: a new threshold, a +# new tier order, a new tie rule. The build key carries it, so a reader +# built by an older rule is never mistaken for one built by this rule. +ALGORITHM_VERSION = 1 + +STOPWORDS = frozenset(""" +a an the of and in on at to for with is are was were be been being it its +this that these those as by from not no or but if then than so such can +may might must will would shall should do does did done have has had +having we you they he she i their his her our your my me him them us +there here what which who whom whose when where why how all any both +each few more most other some only own same too very s t +""".split()) + +FIGURE_NUMBER_RE = re.compile(r"^(?:fig(?:ure)?\.?\s*)?(\d+(?:\.\d+)*)([a-z]?)$") + +# Thresholds. These are not guesses: they were measured against the +# blocks that a page key or a printed caption already resolves, where the +# answer is known, and the number at which the answer stops agreeing is +# where the threshold sits. See scripts/calibrate_figures.py. +DESCRIPTION_HI = 0.85 +# Two words match by luck. Five words match by meaning: below that a +# description cannot speak, however high the similarity. +MIN_DESC_WORDS = 5 +# A page pool holds a handful of pictures and one of them is right, so a +# rival has to be far away before it stops the rule. A chapter pool +# holds many, and the rival has to be further away still. The rival has +# to satisfy both: a ratio, which rules when the scores are low, and a +# gap, which rules when they are high. +RIVAL_RATIO_PAGE = 4.0 +RIVAL_GAP_PAGE = 0.60 +RIVAL_RATIO_CHAPTER = 8.0 +RIVAL_GAP_CHAPTER = 0.75 +VETO_LO = 0.30 +CAPTION_MIN = 0.50 +ORDINAL_MIN = 0.90 + +# The tiers, in the order of the strength of the evidence they assert: +# the book's own number, then the book's own caption, then text +# similarity. Measured precision does not separate the top four tiers +# within their confidence intervals; it decides what is shown, not which +# claim wins a contested picture. +TIER_RANK = {"numbered": 5, "verified": 4, "description-match": 3, + "probable": 2, "inferred": 1} +# A tier is worth this much and a score inside it is worth one, so a +# stronger tier always beats a better score in a weaker tier. +TIER_STEP = 10.0 +# How much a match has to be worth against its best alternative, in +# score. A match whose rival is nearly as good is a coin toss. +MARGIN = 0.15 + +GENERIC_PAGE = frozenset(("unnumbered", "none", "")) + +TIERS = ("numbered", "verified", "description-match", "probable", + "inferred", "ordinal", "candidate", "none") + +BADGE = { + "numbered": "matched by the figure's own number", + "verified": "matched by the printed caption", + "description-match": "descriptions agree (text similarity)", + "probable": "matched by a similar caption", + "inferred": "matched by position on the page", + "ordinal": "assumed by order (not certain)", + "candidate": "no picture confirmed; candidates named below", + "none": "no picture found for this figure", +} + +KEY_NAME = {"pdf-page": "the PDF page", "printed-page": "the printed page", + "chapter": "the chapter", "book": "the book"} + + +def norm(text): + return re.sub(r"[^a-z0-9]+", " ", (text or "").lower()).strip() + + +def tokens(text): + """The words that carry meaning in a description or a caption.""" + return set(word for word in re.findall(r"[a-z0-9]+", (text or "").lower()) + if word not in STOPWORDS and len(word) > 2) + + +def jaccard(left, right): + if not left or not right: + return 0.0 + union = len(left | right) + return len(left & right) / union if union else 0.0 + + +def figure_number(text): + """'Fig. 3.2' -> ('3.2', ''); '3.2a' -> ('3.2', 'a'); 'unnumbered' -> None.""" + if not text: + return None + raw = str(text).strip().lower() + if raw in ("none", "unnumbered", "un-numbered", "un numbered", ""): + return None + found = FIGURE_NUMBER_RE.match(raw) + if not found: + return None + return (found.group(1), found.group(2)) + + +def base_number(label): + """'3.2a' -> '3.2'; 'Figure 3.2' -> '3.2'; 'unnumbered' -> ''.""" + found = re.match(r"^(?:fig(?:ure)?\.?\s*)?(\d+(?:\.\d+)*)", + (label or "").strip().lower()) + return found.group(1) if found else "" + + +def picture_key(record): + """The printed picture a record holds. + +The library holds one printed figure twice: once cut out of the page +(fig_p0022_0.jpeg) and once rendered from the book's own vector art +(vec_p0022_0.png). The two are one picture. The name carries the page +and the place on the page, so the two copies are recognised by it and +not by their captions, which do not always agree. + """ + name = os.path.basename(record.get("file") or "") + stem = name.rsplit(".", 1)[0] + for prefix in ("fig_", "vec_"): + if stem.startswith(prefix): + stem = stem[len(prefix):] + break + return stem or str(record.get("id") or "") + + +def page_key(record): + """The order the pictures of a page are in, whatever order they arrive in. + +The catalogue's file name carries the place of the picture on its page +(fig_p0001_0, fig_p0001_1), so the order of a page is recovered from the +data and not from the order the records happen to come in. Everything +that depends on order depends on this. + """ + return (norm(record.get("page") or ""), + norm(record.get("printed_page") or ""), + picture_key(record), + str(record.get("id") or "")) + + +def build_pools(records): + by_pdf, by_printed, by_chapter = {}, {}, {} + for record in records: + by_pdf.setdefault(norm(record.get("page") or ""), []).append(record) + by_printed.setdefault(norm(record.get("printed_page") or ""), []).append(record) + by_chapter.setdefault(norm(record.get("chapter") or ""), []).append(record) + return by_pdf, by_printed, by_chapter + + +def pool_for(block, by_pdf, by_printed, by_chapter, records): + """The pictures a block could be, and the key that found them. + + The PDF page is the sharpest key and the printed page comes next; a + chapter is what is left for notes that carry no page at all. When + both page keys point somewhere, the one whose pictures carry the page + label the notes give wins, because the page label is the book's own. + """ + pdf = norm(block.get("pdf_page") or "") + printed = norm(block.get("page") or "") + if printed in GENERIC_PAGE: + printed = "" + pdf_pool = (by_pdf.get(pdf) or []) if pdf else [] + printed_pool = (by_printed.get(printed) or []) if printed else [] + if pdf_pool and printed_pool: + if any(norm(r.get("printed_page") or "") == printed for r in pdf_pool): + return pdf_pool, "pdf-page" + return printed_pool, "printed-page" + if pdf_pool: + return pdf_pool, "pdf-page" + if printed_pool: + return printed_pool, "printed-page" + chapter_pool = by_chapter.get(norm(block.get("stem") or "")) or [] + if chapter_pool: + return chapter_pool, "chapter" + return records, "book" + + +class Matcher(object): + """The claims of one book, settled page by page.""" + + def __init__(self, blocks, records, library=None): + self.records = records + self.library = library + self.by_pdf, self.by_printed, self.by_chapter = build_pools(records) + self._record_tokens = {} + self._record_captions = {} + self._digests = {} + self.figures = [b for b in blocks if b.get("kind") == "figure"] + self.claims = {} + self.used = set() + self.panel_groups = [] + for index, block in enumerate(self.figures): + for key in ("image", "tier", "candidates", "key", "conflict", "detail", + "released", "demoted", "shared_with", "refusal", "margin"): + block.pop(key, None) + pool, key = pool_for(block, self.by_pdf, self.by_printed, + self.by_chapter, records) + block["_pool"] = pool + block["_key"] = key + block["_index"] = index + block["_label_num"] = figure_number(block.get("label")) + caption = (block.get("fields", {}).get("CAPTION") or "") + block["_caption"] = norm(caption) + block["_caption_tokens"] = tokens(caption) + block["_content_tokens"] = tokens(block.get("fields", {}).get("CONTENT") or "") + block["_ranked"] = self.rank(block) + + # ---- the evidence ------------------------------------------------ + + def record_tokens(self, record): + key = record.get("id") + if key not in self._record_tokens: + self._record_tokens[key] = tokens(record.get("description") or "") + return self._record_tokens[key] + + def record_caption(self, record): + key = record.get("id") + if key not in self._record_captions: + self._record_captions[key] = norm(record.get("caption_clean") + or record.get("caption") or "") + return self._record_captions[key] + + def similarity(self, block, record): + return jaccard(block["_content_tokens"], self.record_tokens(record)) + + def columns_of(self, pictures): + """The printed pictures of a pool: the catalogue holds some twice.""" + columns = [] + index = {} + for record in pictures: + key = picture_key(record) + if key not in index: + index[key] = len(columns) + columns.append([]) + columns[index[key]].append(record) + return columns + + def rank(self, block): + """The pictures of the block's pool, best description first. + + The two copies of one printed figure are ranked as one picture: + the second copy is not a rival for the first. + """ + columns = self.columns_of(sorted(block["_pool"], key=page_key)) + ranked = [] + for records in columns: + best = max(records, key=lambda record: self.similarity(block, record)) + ranked.append((self.similarity(block, best), best, records)) + ranked.sort(key=lambda entry: (-entry[0], picture_key(entry[1]))) + return ranked + + def top_two(self, block, pool): + """The best two pictures for a block by description, and their scores.""" + best_score, best_record = 0.0, None + second_score, second_record = 0.0, None + for record in pool: + score = self.similarity(block, record) + if score > best_score: + second_score, second_record = best_score, best_record + best_score, best_record = score, record + elif score > second_score: + second_score, second_record = score, record + return best_score, best_record, second_score, second_record + + def enough_words(self, block, record): + """Do both descriptions carry enough words to be compared?""" + return (len(block["_content_tokens"]) >= MIN_DESC_WORDS + and len(self.record_tokens(record)) >= MIN_DESC_WORDS) + + def rival_far(self, block, winner, rival, winner_record, rival_record): + """Is the rival far enough away for the winner to stand? + + The rival is the best other picture of the pool. A rival that is + the same picture - the catalogue holds one figure twice on a page, + once as a vector render and once cut from the page - is not a + rival at all. + """ + if (rival_record is not None and winner_record is not None + and self.same_picture(winner_record, rival_record)): + return True + if block["_key"] in ("pdf-page", "printed-page"): + ratio, gap = RIVAL_RATIO_PAGE, RIVAL_GAP_PAGE + else: + ratio, gap = RIVAL_RATIO_CHAPTER, RIVAL_GAP_CHAPTER + return rival <= winner / ratio and rival <= winner - gap + + def same_picture(self, record, other): + """Are these two records the same printed picture?""" + if other is None or record is None: + return False + if record.get("id") == other.get("id"): + return True + if picture_key(record) and picture_key(record) == picture_key(other): + return True + caption = self.record_caption(record) + other_caption = self.record_caption(other) + if caption and caption == other_caption: + description = norm(record.get("description") or "") + other_description = norm(other.get("description") or "") + if description and description == other_description: + return True + return self.same_file(record, other) + + def file_digest(self, path): + if path not in self._digests: + digest = hashlib.sha256() + try: + with open(path, "rb") as handle: + for chunk in iter(lambda: handle.read(1 << 20), b""): + digest.update(chunk) + except OSError: + self._digests[path] = None + else: + self._digests[path] = digest.hexdigest() + return self._digests[path] + + def same_file(self, left, right): + """Are these two records the same picture on disk?""" + if not self.library: + return False + first = left.get("file") + second = right.get("file") + if not first or not second: + return False + if first == second: + return True + path_a = os.path.join(self.library, first) + path_b = os.path.join(self.library, second) + try: + if os.path.getsize(path_a) != os.path.getsize(path_b): + return False + except OSError: + return False + digest_a = self.file_digest(path_a) + digest_b = self.file_digest(path_b) + if digest_a is None or digest_b is None: + return False + return digest_a == digest_b + + # ---- the claims -------------------------------------------------- + + def figure_claims(self, block, pool_size, group_size): + """What this figure can claim on the pictures of its page. + + Every claim says which tier it would be and how well it scores. + The strongest claim for a figure and a picture is the one that is + kept, because a stronger tier always beats a better score in a + weaker tier. + """ + out = [] + number = block["_label_num"] + if number: + for record in block["_pool"]: + found = figure_number(record.get("figure")) + if not found: + continue + if found == number: + out.append((record, "numbered", self.similarity(block, record), + {"number": number[0], "panel": number[1]})) + elif found[1] == "" and found[0] == number[0]: + # the catalogue holds the figure, the notes write one + # of its panels + out.append((record, "numbered", self.similarity(block, record), + {"number": number[0], "panel": number[1], + "panel_tolerant": True})) + caption = block["_caption"] + if caption and caption != "none": + for record in block["_pool"]: + printed = self.record_caption(record) + if printed and printed == caption: + out.append((record, "verified", self.similarity(block, record), + None)) + ranked = block["_ranked"] + if ranked: + score, record = ranked[0][0], ranked[0][1] + rival_score = ranked[1][0] if len(ranked) > 1 else 0.0 + rival_record = ranked[1][1] if len(ranked) > 1 else None + if (score >= DESCRIPTION_HI and self.enough_words(block, record) + and self.rival_far(block, score, rival_score, record, + rival_record)): + out.append((record, "description-match", score, + {"similarity": round(score, 3)})) + if block["_caption_tokens"] and block["_caption"] != "none": + for record in block["_pool"]: + printed = record.get("caption_clean") or record.get("caption") or "" + if not printed or printed == "none": + continue + score = jaccard(block["_caption_tokens"], tokens(printed)) + if score >= CAPTION_MIN: + out.append((record, "probable", score, + {"similarity": round(score, 3)})) + if pool_size == 1 and group_size == 1: + # one picture on the page, one figure that wants it + out.append((block["_pool"][0], "inferred", 0.0, None)) + return out + + def numbered_claim(self, block, record): + """Does the figure claim this picture by its own number?""" + number = block["_label_num"] + if not number: + return None + found = figure_number(record.get("figure")) + if not found: + return None + if found == number: + return {"number": number[0], "panel": number[1]} + if found[1] == "" and found[0] == number[0]: + return {"number": number[0], "panel": number[1], "panel_tolerant": True} + return None + + def assign(self, block, record, tier, key, detail=None, margin=None): + block["image"] = dict(record) + block["tier"] = tier + block["key"] = key + if detail: + block["detail"] = detail + if margin is not None: + block["margin"] = round(margin, 3) + self.claims.setdefault(record.get("id"), block) + self.used.add(record.get("id")) + return True + + def unresolved(self): + return [b for b in self.figures if not b.get("image")] + + def groups(self): + """The figures that draw on the same pool, in the order they appear.""" + groups = {} + for block in self.figures: + groups.setdefault(id(block["_pool"]), []).append(block) + out = [] + for key in sorted(groups, key=lambda k: groups[k][0]["_index"]): + out.append((groups[key][0]["_pool"], groups[key])) + return out + + # ---- settling ----------------------------------------------------- + + def claim_panels(self): + """The panels of one figure, decided before the page is settled. + + The notes write a multi-panel figure as several blocks, 15.3a to + 15.3e, and the catalogue holds the panels once, as 15.3. The + book's own number says so, and nothing else does, so it is settled + first: the picture is theirs, and the rest of the page is settled + without them. Sharing is permitted, not required: if every panel + has a picture of its own, nothing is shared and this rule does + not come into it. + """ + self.panel_groups = [] + for pool, group in self.groups(): + reaching = {} + for block in group: + if self.exact_numbered(block): + continue # the figure has a picture of its own + for record in block["_pool"]: + claim = self.numbered_claim(block, record) + if not claim or not claim.get("panel_tolerant"): + continue + found = figure_number(record.get("figure")) + if not found or found[1]: + continue # the catalogue names the panel itself + reaching.setdefault(record.get("id"), []).append((block, record, claim)) + for record_id, claims in reaching.items(): + if len(claims) < 2: + continue + bases = set(base_number(block.get("label")) + for block, _record, _claim in claims) + if len(bases) != 1: + continue + suffixes = [(figure_number(block.get("label")) or ("", ""))[1] + for block, _record, _claim in claims] + if len(set(suffixes)) != len(suffixes): + continue # the same panel twice: not a panel group + for block, record, claim in claims: + block["_panel_claim"] = (record, claim) + block["shared_with"] = [other for other, _r, _c in claims + if other is not block] + self.panel_groups.append(([block for block, _r, _c in claims], + claims[0][1])) + + def exact_numbered(self, block): + """The picture this figure names exactly, if it names one.""" + for record in block["_pool"]: + claim = self.numbered_claim(block, record) + if claim and not claim.get("panel_tolerant"): + return record + return None + + def settle(self): + """Every page, settled as a whole.""" + self.claim_panels() + for pool, group in self.groups(): + pictures = sorted(pool, key=page_key) + columns = self.columns_of(pictures) + claims = {} + rows = [] + for block in group: + found = block.get("_panel_claim") + if found: + record, claim = found + self.assign(block, record, "numbered", block["_key"], + dict(claim)) + continue + rows.append(block) + claims[id(block)] = self.claims_of(block, len(pictures), len(group)) + + def edge(block, column, claims=claims): + """The strongest claim this figure has on this picture.""" + best = None + for record in column: + for held, tier, score, _detail in claims[id(block)]: + if held.get("id") != record.get("id"): + continue + rank = (TIER_RANK.get(tier, 0), score) + if best is None or rank > best[0]: + best = (rank, tier, score, held) + break + if best is None: + return None + return (best[1], best[2]) + + settled = assignment.match_page(rows, columns, edge, + TIER_RANK, TIER_STEP, MARGIN) + for index, block in enumerate(rows): + found = settled.get(index) + if not found: + continue + if not found["accepted"]: + # the rival was too close: the picture is not claimed, + # and the refusal says which rival and by how much + block["refusal"] = self.refusal(block, found, claims, columns) + continue + records = columns[found["column"]] + picture = records[0] + detail = None + for held, _tier, _score, note in claims[id(block)]: + if held.get("id") == picture.get("id"): + detail = note + break + self.assign(block, picture, found["tier"], block["_key"], + detail, found["margin"]) + + def resolve_conflicts(self): + """One picture, one figure. + + A page can be found by two keys - the PDF page and the printed page + - and two figures on either side of them draw on pools that + overlap, so the picture is offered to both. Within one pool the + assignment settles it; across pools the stronger evidence wins, + and the figure that loses keeps the picture as a candidate. + """ + owners = {} + for block in self.figures: + image = block.get("image") + if not image: + continue + owners.setdefault(image.get("id"), []).append(block) + for image_id, group in owners.items(): + if len(group) < 2: + continue + shared = set(id(other) for block in group + for other in (block.get("shared_with") or [])) + if len(group) == 2 and shared: + continue # the panels of one figure, declared + group.sort(key=lambda block: (-TIER_RANK.get(block.get("tier"), 0), + -(block.get("margin") or 0), + block.get("_index", 0))) + keeper = group[0] + for block in group[1:]: + record = block.get("image") + block["image"] = None + block["tier"] = "candidate" + block["candidates"] = ([dict(record)] + + [c for c in (block.get("candidates") or []) + if c.get("id") != record.get("id")]) + block["contested"] = keeper.get("_index") + + def claims_of(self, block, pool_size, group_size): + """The claims of one figure, strongest first.""" + found = self.figure_claims(block, pool_size, group_size) + found.sort(key=lambda claim: (-TIER_RANK.get(claim[1], 0), -claim[2])) + return found + + def refusal(self, block, found, claims, columns): + """What stopped the claim, and what the rival was.""" + winner = columns[found["column"]][0] + rival = None + rival_score = None + if found.get("rival") is not None: + for record in columns[found["rival"]]: + for held, _tier, score, _note in claims[id(block)]: + if held.get("id") == record.get("id"): + rival = record + rival_score = score + break + if rival is not None: + break + return {"margin": round(found["margin"], 3), + "tie": found["margin"] <= 0, + "picture": winner.get("id"), + "score": round(found["score"], 3), + "rival": (rival or {}).get("id"), + "rival_number": (rival or {}).get("figure"), + "rival_score": (round(rival_score, 3) + if rival_score is not None else None)} + + def pass_ordinal(self): + """The order of the pictures on the page says which is which. + + Measured against the blocks a key already resolves, the order gets + the picture right 0.856 of the time - under the bar a picture has + to clear. So the order names the pictures and claims none of + them: they are listed, in the order the page holds them, and the + reader is told they are unconfirmed. + """ + for pool, group in self.groups(): + if pool is self.records: + continue + if any(block.get("refusal") for block in group): + # a claim on this page was refused: the order of the page + # no longer says which picture is which + continue + free = [] + seen = set() + for record in sorted(pool, key=page_key): + if record.get("id") in self.used: + continue + key = picture_key(record) + if key in seen: + continue + seen.add(key) + free.append(record) + unresolved = [b for b in group if not b.get("image")] + if len(free) != len(unresolved) or len(free) < 2: + continue + if not self.order_consistent(pool, unresolved, free): + continue + for block, record in zip(unresolved, free): + block["candidates"] = free[:6] + block["tier"] = "ordinal" + block["key"] = block["_key"] + block["detail"] = {"assumed": "order on the page"} + + def order_consistent(self, pool, unresolved, free): + """Would the pairing contradict the matches already made?""" + order = {picture_key(record): index + for index, record in enumerate(sorted(pool, key=page_key))} + chosen = {} + for record_id, block in self.claims.items(): + if block.get("_pool") is pool and block.get("image"): + chosen[block["_index"]] = order.get(picture_key(block["image"]), -1) + pairs = [] + position = 0 + for block in sorted(self.figures, key=lambda b: b["_index"]): + if block.get("_pool") is not pool: + continue + if block in unresolved: + pairs.append((position, + order.get(picture_key(free[unresolved.index(block)]), -1))) + elif block["_index"] in chosen: + pairs.append((position, chosen[block["_index"]])) + position += 1 + for (first_at, first_record), (second_at, second_record) in zip(pairs, pairs[1:]): + if first_at < second_at and first_record >= second_record: + return False + return True + + def pass_veto(self): + """A key match the descriptions contradict: the key stands. + + The key is the evidence the book itself gives - the number it + printed, the caption it printed - and a description that reads + differently is not proof against it. So the block is flagged and + the flag goes to the audit, rather than the picture being taken + away on a weaker kind of evidence. + """ + for block in self.figures: + if block.get("tier") not in ("numbered", "verified"): + continue + if not block["_content_tokens"]: + continue + record = block.get("image") + if not record: + continue + if self.similarity(block, record) >= VETO_LO: + continue + score, other, second, rival = self.top_two(block, block["_pool"]) + if other is None or other.get("id") == record.get("id"): + continue + if score < DESCRIPTION_HI or second > DESCRIPTION_HI / RIVAL_RATIO_PAGE: + continue + if self.same_picture(record, rival): + continue + block["conflict"] = True + block["rival"] = other + detail = dict(block.get("detail") or {}) + detail["rival"] = other.get("id") + block["detail"] = detail + + def finish(self): + """What is left keeps its candidates, named and not shown.""" + for block in self.unresolved(): + if block.get("tier") == "ordinal": + # the pictures are named in order; none of them is claimed + continue + if not block["_pool"]: + block["tier"] = "none" + continue + block["candidates"] = [record for _score, record, _records + in block["_ranked"][:6]] + block["tier"] = "candidate" + for block in self.figures: + for key in ("_pool", "_key", "_index", "_label_num", "_caption", + "_caption_tokens", "_content_tokens", "_ranked", "rival", + "_panel_claim"): + block.pop(key, None) + return self.summary() + + def summary(self): + tiers = {} + keys = {} + for block in self.figures: + tier = block.get("tier") or "none" + tiers[tier] = tiers.get(tier, 0) + 1 + key = block.get("key") or "-" + keys[key] = keys.get(key, 0) + 1 + return {"tiers": tiers, "keys": keys, + "figures": len(self.figures), + "conflicts": sum(1 for b in self.figures if b.get("conflict"))} + + +def match(blocks, records, library=None): + """Give every figure block an image, on evidence, and say how.""" + if os.environ.get("B2C_MATCH", "on").strip().lower() == "off": + # the text only: no picture is looked for, and the reader says so + figures = [b for b in blocks if b.get("kind") == "figure"] + for block in figures: + block["tier"] = "none" + return {"tiers": {"none": len(figures)}, "keys": {}, + "figures": len(figures), "conflicts": 0} + matcher = Matcher(blocks, records, library) + matcher.settle() + matcher.resolve_conflicts() + matcher.pass_ordinal() + matcher.pass_veto() + return matcher.finish() \ No newline at end of file diff --git a/plugins/vochic03/document-library/pipeline/book2corpus/html.py b/plugins/vochic03/document-library/pipeline/book2corpus/html.py new file mode 100644 index 00000000..6a348772 --- /dev/null +++ b/plugins/vochic03/document-library/pipeline/book2corpus/html.py @@ -0,0 +1,371 @@ +"""The HTML reader. + +One self-contained file: no network, no build step, just open it. The reader +is generated from the corpus, so it cannot drift from paragraphs.jsonl. + +The reader reads nothing. Everything it shows is passed in - the records, +the notes, the outline, the book's own metadata and the counts - and it +returns a string. A stage that read back a file it had not just written +would show the previous build's title and contents, which is exactly the +kind of bug a reader cannot see in itself. + +The book is laid out as the book is: the text is grouped by the printed page +it came from, each page carries the running head and the folio, and the +contents sidebar is the book's own hierarchy - chapter, division, +sub-division, paragraph - with the current division opening as you read. + +Each block is one element of the kind it is: a paragraph is a paragraph, a +quotation is a quotation, and the lines of a table are shown as the lines +they are, because the text layer does not say where the columns were. +""" +import os +import re +from collections import OrderedDict + +from . import index_block + +from . import counts_line + +HERE = os.path.dirname(os.path.abspath(__file__)) +TEMPLATE = (open(os.path.join(HERE, "templates", "reader.head.html"), encoding="utf-8").read() + + open(os.path.join(HERE, "templates", "reader.tail.html"), encoding="utf-8").read()) + +TABLE_NOTE = ("Columns not recovered from the text layer; the rows are shown " + "as they were extracted.") + + +def _esc(text): + text = "" if text is None else str(text) + return text.replace("&", "&").replace("<", "<").replace(">", ">") + + +def _chapter_titles(outline): + """Each unit's own name and its title, by number.""" + return {ch["number"]: (ch.get("label") or "", ch["title"]) + for ch in outline.get("chapters", [])} + + +def _chapter_title(text): + """The chapter's own name, without the digit the running head carries. + + The running head of this book ends with a stray "1" on some chapters + ("Causation1", "Damages1"); it is a mark from the scan, not part of + the name. A digit that stands on its own is left alone. + """ + name = (text or "").strip() + if len(name) > 3 and name[-1] == "1" and name[-2].isalpha(): + name = name[:-1].rstrip() + return name + + +def _links(paragraphs): + out = [] + for para in paragraphs: + grade = (para.get("grade") or "") + # the book's own paragraph number when it has one, its own opening + # words otherwise: a list of internal ids helps nobody + label = (para.get("marker") or "").strip() + if not label: + words = (para.get("text") or "").split() + label = " ".join(words[:9]) + if not label: + label = para["id"] + out.append('%s' + % (" low" if grade == "C" else "", _esc(para["id"]), + _esc(para.get("page") or ""), + _esc((para.get("text") or "")[:160]), _esc(label))) + return chr(10).join(out) + + +def _build_nav(outline): + """The contents: chapter, division, sub-division, paragraphs.""" + out = [] + for ch in outline.get("chapters", []): + pages = "%s–%s" % (ch.get("page_start") or "?", ch.get("page_end") or "?") + out.append('

' + '%s%s' + '%s' + % (_esc(ch.get("label") or ch["number"]), + _esc(_chapter_title(ch.get("title"))), _esc(pages))) + if ch.get("paragraphs"): + out.append('
%s
' % _links(ch["paragraphs"])) + for div in ch.get("divisions", []): + title = div.get("title") or "Introduction" + out.append('
' + '%s%s' + % (_esc(div.get("page") or ""), _esc(title), _esc(div.get("page") or ""))) + if div.get("paragraphs"): + out.append('
%s
' % _links(div["paragraphs"])) + for sub in div.get("subsections", []): + out.append('
' + '%s%s%s
' + % (_esc(sub.get("page") or ""), _esc(sub.get("title") or ""), + _esc(sub.get("page") or ""), + _links(sub.get("paragraphs") or []))) + out.append("
") + out.append("
") + return "\n".join(out) + + +def _marks_in(text, notes, pid): + """The reference marks in the prose, made into links to their notes. + + The characters are not changed: the mark keeps its brackets and is + wrapped in a sup, so the reader and the corpus still hold the same + text, character for character. Returns the marked-up text and the + ids of the marks that were found - a scan whose reference marks are + OCR rubbish has none, and its notes then point back to the paragraph. + """ + marks = {} + for index, (fid, note) in enumerate(notes, 1): + marks[str(note.get("n"))] = ("%s-r%d" % (pid, index), fid) + out = [] + position = 0 + found = [] + for hit in re.finditer(r"\[(\d{1,4})\]", text or ""): + number = hit.group(1) + if number not in marks: + continue + ref_id, fid = marks[number] + out.append(_esc(text[position:hit.start()])) + out.append('[%s]' + % (_esc(ref_id), _esc(fid), _esc(fid), _esc(number))) + position = hit.end() + found.append(ref_id) + out.append(_esc(text[position:])) + return chr(10).join(out), found + + +DOT_RUN_RE = re.compile(r"\.{4,}") + + +def _without_dot_leaders(text): + """The books' own contents lines, without the dot leaders. + + The leaders are the book's own setting, but a screen cannot draw a + leader that ends on the margin, so the run of dots is hidden and the + words around it are left exactly as they are. + """ + return DOT_RUN_RE.sub( + lambda m: '' + m.group(0) + '', text) + + +LAW_TOC_RE = re.compile(r"^(.*?)(\s*\.{4,}\s*)(.*)$") + + +def _law_toc(text, pid=""): + """A line of the book own contents: the title, the leaders, the page. + + The book's own contents are apparatus, not text: they are the only + lines where a run of dots means something. The dots stay in the + document, so the text is still exactly the text, and the line is set + as a column instead of a row of dots. + """ + found = LAW_TOC_RE.match(text or "") + if not found: + return None + title, dots, page = found.group(1).strip(), found.group(2).strip(), found.group(3).strip() + if not title: + return None + # the book's own run of dots stays in the text: the reader hides it, + # the words are the book's own + return ('

%s' + '' + '%s

' + % (_esc(pid), _esc(title), _esc(dots), _esc(page))) + + +def _unit(rec, footnotes): + """One block: its wrapper, its number, its text, its notes. + + The element that holds the text is chosen by what the block is, so a + quotation reads as a quotation and a table's lines read as a table's + lines. The number stays outside the quotation: it is a locator for + the unit, not part of the quoted words. + """ + pid = rec["id"] + marker = rec.get("native_marker") or pid + grade = (rec.get("quality") or {}).get("grade", "") + cls = "para para-unit" + (" low" if grade == "C" else "") + notes = [] + for fid in rec.get("footnote_ids", []): + note = footnotes.get(fid) + if note: + notes.append((fid, note)) + marked, mark_ids = _marks_in(rec.get("text") or "", notes, pid) + # the books' own contents lines: the words stay, the dot leaders are + # hidden, because a screen cannot draw a leader that ends on the margin + marked = _without_dot_leaders(marked) + kind = rec.get("block_kind") or "paragraph" + if kind == "quotation": + content = '
%s
' % ( + _esc(pid), marked) + elif kind == "table": + content = '

%s

' % (_esc(pid), marked) + else: + toc = _law_toc(rec.get("text") or "", pid) + if toc: + content = toc + else: + content = '

%s

' % (_esc(pid), marked) + out = ['
' + % (cls, _esc(pid), _esc(pid), len(notes), _esc(kind))] + if rec.get("native_marker"): + out.append('%s' + % (_esc(pid), _esc(marker), _esc(marker))) + # the ids this paragraph had before: an old citation still lands + # on the right paragraph + for alias in rec.get("aliases", []) or []: + out.append('' % _esc(alias)) + out.append(content) + if notes: + out.append('
') + for index, (fid, note) in enumerate(notes, 1): + ref_id = "%s-r%d" % (pid, index) + back = ref_id if ref_id in mark_ids else pid + out.append('
' + % (_esc(fid), _esc(pid), _esc(ref_id), + _esc(str(note.get("n", ""))))) + # the number links to the mark in the prose when the + # source has one; a scan whose marks are OCR rubbish + # has none, and the number links to the paragraph + out.append('%s %s' + % (_esc(back), _esc(note.get("n", "")), + _esc(note.get("text", "")))) + out.append('↩ ¶%s' + % (_esc(back), _esc(back), _esc(marker), _esc(marker))) + out.append('
') + out.append('
') + out.append('
') + return chr(10).join(out) + + +def _build_body(records, footnotes, outline): + """The text, grouped into the printed pages it came from.""" + titles = _chapter_titles(outline) + pages = OrderedDict() + for rec in records: + key = rec.get("page_start") or ("leaf-%s" % rec.get("leaf_start")) + pages.setdefault(key, []).append(rec) + + out = [] + for page_key, recs in pages.items(): + folio = "" if page_key.startswith("leaf-") else page_key + # the folio repeats across the front matter, so the leaf is part of + # the anchor: two anchors with one id break every link to them + anchor = "page-%s-%s" % (folio or "leaf", recs[0].get("leaf_start")) + chapter = recs[0].get("chapter") or 0 + label, title = titles.get(chapter, ("", "")) + runhead = ("%s · %s" % (_esc(label), _esc(title))) if label else _esc(title) + out.append('
' % (_esc(anchor), _esc(folio))) + if runhead: + out.append('
%s
' % runhead) + out.append('
') + index = 0 + while index < len(recs): + rec = recs[index] + if rec.get("kind") == "heading": + level = "h2" if rec.get("level") == "h2" else "h3" + out.append('<%s class="sec" id="%s" data-para="%s">%s' + % (level, _esc(rec["id"]), _esc(rec["id"]), + _esc(rec["text"]), level)) + index += 1 + continue + if rec.get("block_kind") == "table": + # a run of table lines is one table: the text layer gives the + # lines, not the columns, so the rows are shown as they were + # extracted and the reader is told that + run = [] + while (index < len(recs) + and recs[index].get("kind") != "heading" + and recs[index].get("block_kind") == "table"): + run.append(recs[index]) + index += 1 + out.append('
') + out.append('

%s

' % _esc(TABLE_NOTE)) + for one in run: + out.append(_unit(one, footnotes)) + out.append('
') + continue + out.append(_unit(rec, footnotes)) + index += 1 + out.append("
") + if folio: + out.append('
%s
' % _esc(folio)) + out.append("
") + return "\n".join(out) + + +def _orphan_notes(records, footnotes): + """The notes that belong to no paragraph in this reading. + + They were read from the book, so they are part of it: the reader shows + them rather than dropping them, and says why they stand on their own. + """ + owned = set() + for rec in records: + for fid in rec.get("footnote_ids", []) or []: + owned.add(fid) + return [note for fid, note in sorted(footnotes.items()) if fid not in owned] + + +def _orphan_section(orphans): + if not orphans: + return "" + out = ['
', + '

Notes that belong to no paragraph in this reading

', + '

These notes were read from the book, but the ' + 'paragraph they belong to was not found. They are kept here rather ' + 'than dropped.

'] + for note in orphans: + out.append('
' + '%s %s
' + % (_esc(note.get("id")), _esc(str(note.get("n", ""))), + _esc(note.get("n", "")), _esc(note.get("text", "")))) + out.append('
') + return chr(10).join(out) + + +def build_html(records, footnotes, outline, book_meta, counts, source_type="scan", + index_payload=None): + """The reader, as a string. + + Nothing is read from disk here: the reader is a function of the corpus + it was handed, so it cannot show a title, a count or a contents list + left behind by an earlier build. + """ + doc = TEMPLATE + doc = doc.replace("{{TITLE}}", _esc((book_meta or {}).get("title", ""))) + doc = doc.replace("{{SUBTITLE}}", _esc("%s %s" % ( + ", ".join((book_meta or {}).get("authors", []) or []), + (book_meta or {}).get("year", "")))) + counts = counts or {} + doc = doc.replace("{{COUNTS}}", counts_line.to_html(counts_line.law(counts))) + doc = doc.replace("{{KIND}}", "law") + doc = doc.replace("{{SEARCH}}", "Search the book (press / )") + doc = doc.replace("{{JUMP}}", "paragraph 1.1") + doc = doc.replace("{{CITATION}}", _esc((book_meta or {}).get("citation") or "")) + if not (book_meta or {}).get("citation"): + doc = doc.replace('

', "") + doc = doc.replace("{{NAV}}", _build_nav(outline or {"chapters": []})) + doc = doc.replace("{{BODY}}", _build_body(records, footnotes, outline or {"chapters": []})) + doc = doc.replace("{{ORPHANS}}", _orphan_section(_orphan_notes(records, footnotes))) + doc = doc.replace("{{INDEX}}", index_block.render(index_payload)) + if source_type == "digital": + note = ("This text is the book's own, read from its born-digital PDF: there is no OCR " + "noise in it.") + note_more = ("Paragraphs marked as quotations are another author's words. The " + "paragraph numbers are the book's own, so a passage can be cited the " + "way the book cites it.") + else: + note = ("Scan with OCR text: the wording may carry OCR errors.") + note_more = ("Grade C paragraphs are marked; check the page image before quoting " + "them. The paragraph numbers are the book's own, so a passage can be " + "cited the way the book cites it.") + doc = doc.replace("{{NOTE}}", note) + doc = doc.replace("{{NOTE_MORE}}", "

%s

" % note_more) + return doc diff --git a/plugins/vochic03/document-library/pipeline/book2corpus/ids.py b/plugins/vochic03/document-library/pipeline/book2corpus/ids.py new file mode 100644 index 00000000..ff66d99b --- /dev/null +++ b/plugins/vochic03/document-library/pipeline/book2corpus/ids.py @@ -0,0 +1,114 @@ +"""Identifiers. + +Two schemes, declared in the manifest so an agent knows how to cite: + + native the book's own paragraph numbers (this book: "7.14"). Human + citable: it is how the book's index and its tables of cases + refer to passages. + + anchored content-anchored ids for a book with no native numbering + ("c05-the-state-of-nature-0"): the chapter, the opening + words of the paragraph, and a collision counter. An id that + survives a re-split, because it is anchored to the text and + not to a position - a paragraph that moves because something + else was re-split keeps its id. + +The ordinal id an anchored id replaces is kept as an alias, so a citation +made before the change still resolves: the alias table is total, and the +old id still finds the paragraph. +""" +import re +import unicodedata + +NATIVE_RE = re.compile(r"^\d{1,2}\.\d{1,3}(?:\.\d{1,3})?$") +SLUG_WORDS = 4 +SLUG_MAX = 24 + + +def slug_of(text, words=SLUG_WORDS, cap=SLUG_MAX): + """A short, readable fingerprint of a paragraph's opening words. + + The opening words are the anchor: a paragraph's end may move, and its + neighbours may be re-split, but where it begins is what identifies it. + """ + norm = unicodedata.normalize("NFKC", text or "").lower() + norm = "".join(ch for ch in norm if not unicodedata.combining(ch)) + tokens = re.findall(r"[a-z0-9]+", norm) + if not tokens: + return "x" + return "-".join(tokens[:words])[:cap].strip("-") or "x" + + +class IdAssigner: + def __init__(self, native, front_leaf=0, synthetic=False): + self.native = native + self.front_leaf = front_leaf + self.synthetic = synthetic + self.counters = {} + self.used = set() + self.aliases = {} + + def _next(self, prefix, key): + k = (prefix, key) + self.counters[k] = self.counters.get(k, 0) + 1 + return self.counters[k] + + def _legacy_id(self, para): + """The ordinal id this paragraph used to have.""" + if para.kind == "body" and para.native_marker is None: + if self.synthetic: + key = "c%02d" % (para.chapter or 0) + return "%s-p%04d" % (key, self._next(key, key)) + scope = "fm" if para.leaf_start < self.front_leaf else "bm" + return "%s-p%04d" % (scope, self._next(scope, scope)) + if para.kind == "heading": + return "h-%d-%03d" % (para.chapter or 0, self._next("h", para.chapter)) + return "x-%04d" % self._next("x", 0) + + def _anchored_ids(self, paragraphs): + """A content-anchored id per paragraph, with a collision counter. + + The counter is per chapter and per slug, assigned in reading + order, so two paragraphs that begin the same way are told apart. + """ + out = {} + counters = {} + for para in paragraphs: + if para.kind != "body" or para.native_marker: + continue + chapter = para.chapter or 0 + slug = slug_of(para.text) + key = (chapter, slug) + k = counters.get(key, 0) + counters[key] = k + 1 + out[id(para)] = "c%02d-%s-%d" % (chapter, slug, k) + return out + + def assign(self, paragraphs, footnotes): + anchored = self._anchored_ids(paragraphs) if self.synthetic else {} + for para in paragraphs: + if para.kind == "body" and self.native and para.native_marker: + para.id = para.native_marker + elif para.kind == "heading": + para.id = "h-%d-%03d" % (para.chapter or 0, + self._next("h", para.chapter)) + elif para.kind == "body" and para.native_marker is None: + legacy = self._legacy_id(para) + para.id = anchored.get(id(para), legacy) + if legacy != para.id: + para.aliases = [legacy] + self.aliases[legacy] = para.id + else: + para.id = "x-%04d" % self._next("x", 0) + while para.id in self.used: + para.id = para.id + "~" + self.used.add(para.id) + for note in footnotes: + if note.get("id"): + self.used.add(note["id"]) + continue + note["id"] = "%s-fn-%03d" % (note["chapter_key"], note["n"]) + while note["id"] in self.used: + note["id"] = note["id"] + "~" + self.used.add(note["id"]) + note["citation"] = "%s fn %s" % (note["chapter_key"], note["n"]) diff --git a/plugins/vochic03/document-library/pipeline/book2corpus/index_block.py b/plugins/vochic03/document-library/pipeline/book2corpus/index_block.py new file mode 100644 index 00000000..a59966fd --- /dev/null +++ b/plugins/vochic03/document-library/pipeline/book2corpus/index_block.py @@ -0,0 +1,116 @@ +#!/usr/bin/env python3 +"""book2corpus/index_block.py - the little block of cross-references. + +Written 26 Nov 2026 by MCode, after the ruling of Claude Opus 5.5 on the +corpus-wide term index (briefs 12 and 13). + +A reader has to stand on its own: it cannot ask the corpus a question at +read time. So the build answers the question in advance and writes the +answer into the reader, and this module says what that answer looks like. + +The ruling is that the reader shows ONE thing: a back-of-book index of the +book's own terms, and under each term one line saying which other books +use the same term. The counts, the five-places-per-book lists and the +whole slice are build data, not study aids, so they do not go in the page: +they go in .index.json beside it. + +So the block embedded in the HTML is small and holds only what is shown: +the term, the anchors of its first few occurrences in this book, and at +most three other books, each with its title, the chapter where the term +first appears there, and the link to that reader. +""" +import json +from html import escape + +BLOCK_VERSION = 1 + +# the anchors of the occurrences of one term +MAX_ANCHORS = 5 + +# the other books under one term +MAX_ALSO = 3 + + +def build(slice_rows, title_of=None, link_to=None, max_also=MAX_ALSO): + """The block, from the slice of one book. + + title_of(book) gives the title of another book; link_to(book, anchor) + gives the relative link to the place in that book where the term is. + """ + out = [] + for row in slice_rows: + also = [] + for other in row.get("also") or []: + book = other.get("book") + anchor = other.get("anchor") or "" + also.append([other.get("title") or book, + other.get("chapter") or "", + link_to(book, anchor) if link_to else ""]) + if len(also) >= max_also: + break + out.append({ + "l": row.get("label") or "", + "a": list(row.get("anchors") or [])[:MAX_ANCHORS], + "x": also, + }) + out.sort(key=lambda item: item["l"]) + return {"v": BLOCK_VERSION, "terms": out} + + +def render(payload): + """The index section, as the reader shows it. + + The reader shows one thing: the book's own terms, and under each term + the other books that use it in the same sense. The counts and the + whole slice stay in the data file; they are not study aids. + """ + rows = (payload or {}).get("terms") or [] + if not rows: + return "" + out = ['
', + '
Index
', + '
', + '

The terms of this book, and the other books ' + 'in the corpus that use the same term in the same sense. Every term ' + 'here was named by a reader of this book and checked against its ' + 'own text.

', + '
'] + for index, row in enumerate(rows, 1): + anchors = row.get("a") or [] + places = "" + if anchors: + links = [] + for number, anchor in enumerate(anchors, 1): + links.append('%d' + % (escape(anchor), number, number)) + places = ' (%s)' % " ".join(links) + out.append('
%s%s
' + % (index, escape(row.get("l") or ""), places)) + also = row.get("x") or [] + if also: + items = [] + for entry in also: + values = list(entry) + ["", "", ""] + title, chapter, href = values[0], values[1], values[2] + shown = escape(title) + if href: + shown = '%s' % (escape(href), shown) + if chapter: + shown += ' %s' % escape(chapter) + items.append(shown) + out.append('
Also in: %s
' % "; ".join(items)) + out.append('
') + return "\n".join(out) + + +def to_json(payload): + """The block as it is written into the page: one line, no spaces.""" + return json.dumps(payload, sort_keys=True, ensure_ascii=False, + separators=(",", ":")) + + +def from_json(text): + """The block, read back.""" + if not text: + return {"v": BLOCK_VERSION, "terms": []} + return json.loads(text) diff --git a/plugins/vochic03/document-library/pipeline/book2corpus/ingest.py b/plugins/vochic03/document-library/pipeline/book2corpus/ingest.py new file mode 100644 index 00000000..61a3896b --- /dev/null +++ b/plugins/vochic03/document-library/pipeline/book2corpus/ingest.py @@ -0,0 +1,140 @@ +"""Adapters: source files in, pages of lines out. + +Only this layer knows what the source is. Everything else works on the IR. +""" +import glob +import json +import os +import re +from collections import Counter + +from .ir import Line, Page + +MARKER_RE = re.compile(r"^\[(\d+\.\d+(?:\.\d+)?)\]") + + +def load_scan_jsonl(path): + """Adapter for a scanned PDF that has been dumped to pages.jsonl.""" + pages = [] + with open(path, encoding="utf-8") as fh: + for line in fh: + rec = json.loads(line) + page = Page(pdf_page=rec["pdf_page"], leaf=rec["pdf_page"] - 1, + printed_page=(str(rec["printed_page"]) if rec["printed_page"] is not None else None), + height=rec.get("page_height", 647.8), + width=rec.get("page_width", 403.6), + header=rec.get("header", ""), + header_marker=rec.get("marker_top")) + for b in rec.get("lines", []): + page.lines.append(Line(text=b["text"], x0=b["x0"], x1=b["x1"], + y0=b["y0"], y1=b["y1"], size=b["size"])) + pages.append(page) + return pages + + +def load_leaf_page_map(path): + """The page map of the scan: leaf index -> printed page label.""" + if not os.path.exists(path): + return {} + with open(path, encoding="utf-8") as fh: + return {int(k): v for k, v in json.load(fh).items()} + + +def apply_leaf_page_map(pages, mapping): + """The scan's own page map wins; the OCR'd folio is only a cross-check.""" + for p in pages: + if p.leaf in mapping: + p.printed_page = mapping[p.leaf] + + +# ---------------------------------------------------------------- digital --- + +HEADER_BAND = 60.0 # y below this is the running head +FOLIO_BAND = 45.0 # y above height-this is the foot of the page +MARK_SIZE = 8.5 # a reference mark is set smaller than the text + + +def _line_text(spans): + """The line's text: the spans are contiguous pieces, so join them.""" + return "".join(s.get("text", "") for s in spans) + + +def load_digital_pdf(path, header_band=HEADER_BAND, folio_band=FOLIO_BAND, + mark_size=MARK_SIZE): + """Adapter for a born-digital PDF: a real text layer with real fonts. + + The running head and the folio are furniture; reference marks (the + superscript numbers a scholarly book uses for its endnotes) are read off + the small type and kept with the line that carries them. + """ + import fitz + + doc = fitz.open(path) + pages = [] + for index in range(doc.page_count): + page = doc[index] + height, width = page.rect.height, page.rect.width + obj = Page(pdf_page=index + 1, leaf=index, printed_page=None, + height=height, width=width) + header, folio = [], None + for block in page.get_text("dict").get("blocks", []): + if block.get("type") != 0: + continue + for line in block.get("lines", []): + # a span that carries only a space is still a space: dropping + # it welds two words together ("ITS" + "CONSEQUENCES") + spans = [s for s in line.get("spans", []) if s.get("text", "")] + if not spans: + continue + size = max(s.get("size", 0) for s in spans) + # the line's face is the one that carries the most characters, + # and a tie is broken by name: a set has no order, so an + # arbitrary choice would change between runs + weight = Counter() + for s in spans: + weight[s.get("font", "")] += len(s.get("text", "")) + main = sorted(weight, key=lambda f: (-weight[f], f))[0] + lead = spans[0].get("font", "") + x0, y0, x1, y1 = line["bbox"] + # a reference mark is set smaller than the text: keep it, but + # mark it so the reader can link it to the note it numbers + parts = [] + marks = [] + for s in spans: + t = s.get("text", "") + if s.get("size", 99) <= mark_size and t.strip().isdigit(): + marks.append(t.strip()) + parts.append("[%s]" % t.strip()) + else: + parts.append(t) + text = "".join(parts) + if y1 < header_band: + header.append((text, main, size)) + continue + if y0 > height - folio_band: + t = text.strip() + if re.fullmatch(r"[0-9ivxlcdm]{1,5}", t, re.I) and size >= 8.5: + folio = t + continue + if not text.strip(): + continue # a line that carries only spaces is not text + obj.lines.append(Line(text=text, x0=round(x0, 1), x1=round(x1, 1), + y0=round(y0, 1), y1=round(y1, 1), + size=round(size, 2), font=main, lead=lead, + marks=marks)) + for text, font, size in header: + if "Italic" in font: + obj.header = text.strip() + elif folio is None and re.fullmatch(r"[0-9ivxlcdm]{1,5}", text.strip(), re.I): + folio = text.strip() + if folio is None: + # on a chapter's opening page the folio is dropped to the foot + for index, line in enumerate(obj.lines): + t = line.text.strip() + if 8.5 <= line.size <= 9.4 and re.fullmatch(r"[0-9ivxlcdm]{1,5}", t, re.I): + folio = t + del obj.lines[index] # the folio is furniture, not text + break + obj.printed_page = folio + pages.append(obj) + return pages diff --git a/plugins/vochic03/document-library/pipeline/book2corpus/ir.py b/plugins/vochic03/document-library/pipeline/book2corpus/ir.py new file mode 100644 index 00000000..07ec616f --- /dev/null +++ b/plugins/vochic03/document-library/pipeline/book2corpus/ir.py @@ -0,0 +1,87 @@ +"""Intermediate representation. + +Every adapter produces pages of lines; every later stage reads only these +objects. Nothing downstream touches the source file, which is what makes the +conservation gate possible: each line must end up in exactly one bucket. +""" +from dataclasses import dataclass, field +from typing import Optional + + +@dataclass +class Line: + text: str + x0: float + x1: float + y0: float + y1: float + size: float + font: str = "" + lead: str = "" # the face of the line's first span + sources: int = 1 # how many source lines this one stands for + marks: list = field(default_factory=list) # reference numbers carried by the line + + @property + def chars(self) -> int: + return max(1, len(self.text)) + + @property + def char_width(self) -> float: + """Rendered width per character: a measured proxy for the font size.""" + return (self.x1 - self.x0) / self.chars + + @property + def height(self) -> float: + return self.y1 - self.y0 + + +@dataclass +class Page: + pdf_page: int + leaf: int + printed_page: Optional[str] + height: float + width: float + lines: list = field(default_factory=list) + header: str = "" + header_marker: Optional[str] = None + header_lines: list = field(default_factory=list) + furniture: list = field(default_factory=list) + body: list = field(default_factory=list) + footnotes: list = field(default_factory=list) + + +@dataclass +class Paragraph: + kind: str = "body" # body | heading | footnote | table + text: str = "" + native_marker: Optional[str] = None + section_path: list = field(default_factory=list) + path: list = field(default_factory=list) + level: str = "" + leaf_start: int = 0 + leaf_end: int = 0 + page_start: Optional[str] = None + page_end: Optional[str] = None + quality: dict = field(default_factory=dict) + footnote_ids: list = field(default_factory=list) + anchor_id: Optional[str] = None + bboxes: list = field(default_factory=list) + id: str = "" + seq: int = 0 + chapter: int = 0 + flags: list = field(default_factory=list) + + +@dataclass +class Chapter: + number: int + title: str + start_leaf: int + label: str = "" # the book's own name for the unit: "Chapter 1" + end_leaf: int = 0 + paragraphs: list = field(default_factory=list) + expected_headings: list = field(default_factory=list) + minitoc_dropped: int = 0 + pages: list = field(default_factory=list) + divisions: list = field(default_factory=list) diff --git a/plugins/vochic03/document-library/pipeline/book2corpus/judge.py b/plugins/vochic03/document-library/pipeline/book2corpus/judge.py new file mode 100644 index 00000000..b0fcd454 --- /dev/null +++ b/plugins/vochic03/document-library/pipeline/book2corpus/judge.py @@ -0,0 +1,561 @@ +"""The judge: a model asked whether a picture is the figure the notes mean. + +The judge is the one part of the corpus that talks to a model. Everything +about it is written to be measured: + + * a call that fails is missing data, not a verdict. A rate of missing + calls is reported per tier, and a tier with more than a tenth of its + sample missing stays closed. + * a rate limit is waited out, a server error is tried again a few times, + and a request that is wrong is not tried again at all. + * the number of calls at once grows when the provider is happy and halves + when it is not, and a circuit breaker stops the run when the provider + has said no too often. + * every call is charged to a ledger, and the run stops before it + overshoots the cap. + * the verdict for a pair is cached under the hash of what was asked, so + the same question is never paid for twice and a correction re-audits + only the figures that changed. +""" +import base64 +import hashlib +import json +import os +import random +import re +import threading +import time +import urllib.error +import urllib.request + +from . import batch +from .pipeline import backoff_delay, classify_error + +SYSTEM = ("You check whether a picture from a textbook is the picture a note " + "describes.\nYou are given the picture itself, the caption the book " + "printed under it, and a written description of what the note says " + "the figure shows. Answer whether the picture and the text are about " + "the same figure.\nReply with one JSON object and nothing else:\n" + "{\"verdict\": \"match\" | \"partial\" | \"mismatch\" | " + "\"cannot_tell\", \"reason\": \"one sentence\"}\n" + "\"match\" means the picture shows what the text describes.\n" + "\"partial\" means it is the same figure but the text describes " + "something the picture does not show, or shows something extra.\n" + "\"mismatch\" means they are different figures.\n" + "\"cannot_tell\" means the picture is too small, blank or unclear " + "to judge.") + +# the models that think, and take the effort switch with them +THINKING_MODELS = ("claude-opus-5-5", "claude-sonnet-5-5") + +# the system of a general question: the question carries its own shape +TEXT_SYSTEM = ("You answer a question about documents. Reply with the JSON " + "object the question asks for, and nothing else.") + +QUESTION = ("The caption the book printed: {caption}\n" + "The written description of the figure: {description}\n" + "The kind of figure: {kind}\n" + "Is the picture the same figure as the text describes?") + +GEMINI_API = "https://generativelanguage.googleapis.com/v1beta/models/%s:generateContent?key=%s" +ANTHROPIC_API = "https://api.anthropic.com/v1/messages" +OPENROUTER_API = "https://openrouter.ai/api/v1/chat/completions" + + +def _key(path): + """The key of a service, read from the store and never printed.""" + with open(path, encoding="utf-8") as fh: + for line in fh: + line = line.strip() + if not line: + continue + if ":" in line: + return line.split(":", 1)[1].strip() + return line + raise RuntimeError("no key in %s" % path) + + +def media_type(path): + lower = path.lower() + if lower.endswith(".png"): + return "image/png" + if lower.endswith(".webp"): + return "image/webp" + if lower.endswith(".gif"): + return "image/gif" + return "image/jpeg" + + +class ParseFailure(Exception): + """The model answered, but not in the shape that was asked for. + + This is worth trying again: the same question, asked again, is often + answered properly. It is not a dead end, and it is never a verdict. + """ + + retryable = True + + +class Judge(object): + """One model asked one question, carefully.""" + + def __init__(self, settings, ledger, breaker, cache_path=None): + self.settings = settings + self.ledger = ledger + self.breaker = breaker + self.lock = threading.Lock() + self.workers = settings.get("workers", 4) + self.max_workers = settings.get("max_workers", 16) + self.attempts = settings.get("attempts", 5) + self.base = settings.get("backoff_base", 2.0) + self.cap = settings.get("backoff_cap", 60.0) + self.model = settings.get("model", "gemini-3.8-flash") + # what an answer may cost: a thinking model spends this before it + # says anything, and a prompt that needs thought can spend it all + self.max_output = int(settings.get("max_output_tokens", 900)) + self.fallback = settings.get("fallback_model", "claude-sonnet-5-5") + self.cache = {} + self.cache_path = cache_path + if cache_path and os.path.exists(cache_path): + with open(cache_path, encoding="utf-8") as fh: + for line in fh: + line = line.strip() + if not line: + continue + try: + row = json.loads(line) + except ValueError: + continue + self.cache[row.get("key")] = row + + # ---- the cache ---------------------------------------------------- + + @staticmethod + def pair_key(picture_path, caption, description, kind, model, prompt_hash): + """What makes a question the same question.""" + with open(picture_path, "rb") as fh: + picture = hashlib.sha256(fh.read()).hexdigest() + material = json.dumps({"picture": picture, "caption": caption or "", + "description": description or "", "kind": kind or "", + "model": model, "prompt": prompt_hash}, + sort_keys=True, ensure_ascii=False) + return hashlib.sha256(material.encode("utf-8")).hexdigest() + + def cached(self, key): + with self.lock: + return self.cache.get(key) + + def remember(self, key, row): + with self.lock: + self.cache[key] = row + if self.cache_path: + os.makedirs(os.path.dirname(self.cache_path), exist_ok=True) + with open(self.cache_path, "a", encoding="utf-8") as fh: + fh.write(json.dumps(row, sort_keys=True, ensure_ascii=False) + "\n") + + # ---- the call ----------------------------------------------------- + + def _gemini(self, path, kind, caption, description): + with open(path, "rb") as fh: + data = base64.b64encode(fh.read()).decode("ascii") + body = {"contents": [{"parts": [ + {"inline_data": {"mime_type": media_type(path), "data": data}}, + {"text": SYSTEM + "\n\n" + QUESTION.format( + caption=caption or "none", description=description or "none", + kind=kind or "unknown")}]}], + "generationConfig": {"maxOutputTokens": 900, "temperature": 0, + "thinkingConfig": {"thinkingBudget": 0}}} + key = _key(os.path.expanduser("~/claude-keys/gemini.header")) + url = GEMINI_API % (self.model, key) + request = urllib.request.Request( + url, data=json.dumps(body).encode("utf-8"), + headers={"content-type": "application/json"}) + with urllib.request.urlopen(request, timeout=180) as response: + answer = json.load(response) + text = "".join(part.get("text", "") + for part in answer["candidates"][0]["content"]["parts"]) + usage = answer.get("usageMetadata") or {} + return text, usage.get("promptTokenCount", 0), usage.get("candidatesTokenCount", 0) + + def _anthropic(self, path, kind, caption, description): + with open(path, "rb") as fh: + data = base64.b64encode(fh.read()).decode("ascii") + body = {"model": self.fallback, "max_tokens": 1500, + "thinking": {"type": "adaptive"}, + "output_config": {"effort": "low"}, + "system": SYSTEM, + "messages": [{"role": "user", "content": [ + {"type": "image", "source": {"type": "base64", + "media_type": media_type(path), + "data": data}}, + {"type": "text", "text": QUESTION.format( + caption=caption or "none", + description=description or "none", + kind=kind or "unknown")}]}]} + key = _key(os.path.expanduser("~/claude-keys/anthropic.header")) + request = urllib.request.Request( + ANTHROPIC_API, data=json.dumps(body).encode("utf-8"), + headers={"x-api-key": key, "content-type": "application/json", + "anthropic-version": "2023-06-01"}) + with urllib.request.urlopen(request, timeout=180) as response: + answer = json.load(response) + text = "".join(block.get("text", "") for block in answer.get("content", []) + if block.get("type") == "text") + usage = answer.get("usage") or {} + return text, usage.get("input_tokens", 0), usage.get("output_tokens", 0) + + def _gemini_text(self, prompt, model, config): + """One answer from a Gemini model. + + A model that only works in thinking mode refuses a thinking + budget of zero, so the question is asked again without one: the + model then thinks as much as it wants, and the room for the + answer grows to cover the thinking. + """ + key = _key(os.path.expanduser("~/claude-keys/gemini.header")) + url = GEMINI_API % (model, key) + body = {"contents": [{"parts": [{"text": prompt}]}], + "generationConfig": config} + request = urllib.request.Request( + url, data=json.dumps(body).encode("utf-8"), + headers={"content-type": "application/json"}) + try: + with urllib.request.urlopen(request, timeout=180) as response: + answer = json.load(response) + except urllib.error.HTTPError as exc: + detail = exc.read().decode("utf-8", "replace") + if exc.code != 400 or "thinking" not in detail.lower(): + raise + body["generationConfig"] = { + name: value for name, value in config.items() + if name != "thinkingConfig"} + body["generationConfig"]["maxOutputTokens"] = max( + 8192, config.get("maxOutputTokens") or 0) + request = urllib.request.Request( + url, data=json.dumps(body).encode("utf-8"), + headers={"content-type": "application/json"}) + with urllib.request.urlopen(request, timeout=180) as response: + answer = json.load(response) + text = "".join(part.get("text", "") + for part in answer["candidates"][0]["content"]["parts"]) + usage = answer.get("usageMetadata") or {} + return (text, usage.get("promptTokenCount", 0), + usage.get("candidatesTokenCount", 0)) + + @staticmethod + def _bearer(path): + """A key that is already a header value, ready to be sent.""" + value = _key(os.path.expanduser(path)) + if value.lower().startswith("bearer "): + return value + return "Bearer " + value + + def _openrouter(self, prompt, model, max_tokens=1024): + """One answer from a model that another account pays for. + + The same model can be reached through more than one door. When + the door it came from is spent, the same model behind another + door is the same model, and the answer is the same answer. + """ + body = {"model": model, "max_tokens": max_tokens, "temperature": 0, + "messages": [{"role": "user", "content": prompt}]} + request = urllib.request.Request( + OPENROUTER_API, data=json.dumps(body).encode("utf-8"), + headers={"content-type": "application/json", + "Authorization": self._bearer("~/claude-keys/openrouter.header")}) + with urllib.request.urlopen(request, timeout=180) as response: + answer = json.load(response) + text = answer["choices"][0]["message"]["content"] + usage = answer.get("usage") or {} + return text, usage.get("prompt_tokens", 0), usage.get("completion_tokens", 0) + + @staticmethod + def _verdict(text): + """The answer in the text: the last complete JSON object. + + The model sometimes writes an object, then thinks, then writes the + final object. The greedy span from the first brace to the last takes + all of it, which is two objects and does not parse, so the objects + are taken one at a time and the last one wins. The first and the + last are compared, and a difference is written down, because that is + the case where the model changed its mind. + """ + objects = Judge._objects(text or "") + if not objects: + return None + if len(objects) > 1 and objects[0] != objects[-1]: + print("the model wrote %d JSON objects and the first is not the " + "last; the last one is the answer" % len(objects)) + return objects[-1] + + @staticmethod + def _objects(text): + """Every complete top-level JSON object in the text, in order. + + A brace inside a string is not a brace, so the strings are read + as strings while the object is counted, and the objects inside an + object are not counted again. + """ + found = [] + index = 0 + length = len(text) + while index < length: + start = text.find('{', index) + if start < 0: + break + depth = 0 + in_string = False + escape = False + end = -1 + for position in range(start, length): + ch = text[position] + if in_string: + if escape: + escape = False + elif ch == chr(92): + escape = True + elif ch == chr(34): + in_string = False + continue + if ch == chr(34): + in_string = True + elif ch == '{': + depth += 1 + elif ch == '}': + depth -= 1 + if depth == 0: + end = position + break + if end < 0: + break + try: + found.append(json.loads(text[start:end + 1])) + except ValueError: + pass + index = end + 1 + return found + + def text(self, prompt, key, model=None, expect=None, allowed=None, + parse=None): + """One answer from the model, from the cache when it is there. + + This is the same call as judge() without the picture: it is how + the corpus asks the model a question about two things at once, and + how the cache keeps the answer. + + `expect` names the field the answer has to carry and `allowed` + the values it may carry. An answer without that field, or with a + value outside the set, is not an answer: it is a parse failure and + it is tried again like any other failure. Nothing here invents a + default - a question the model did not answer stays missing. + """ + model = model or self.model + found = self.cached(key) + if found is not None: + found = dict(found) + found["cached"] = True + return found + attempt = 0 + while attempt < self.attempts: + attempt += 1 + try: + if model.startswith("claude-"): + body = {"model": model, "max_tokens": 1500, + "system": TEXT_SYSTEM, + "messages": [{"role": "user", + "content": [{"type": "text", + "text": prompt}]}]} + if model in THINKING_MODELS: + # the 5.x models think, and their thinking is + # billed as output; the older ones do not take the + # switch at all + body["thinking"] = {"type": "adaptive"} + body["output_config"] = {"effort": "low"} + request = urllib.request.Request( + ANTHROPIC_API, data=json.dumps(body).encode("utf-8"), + headers={"x-api-key": _key(os.path.expanduser( + "~/claude-keys/anthropic.header")), + "content-type": "application/json", + "anthropic-version": "2023-06-01"}) + with urllib.request.urlopen(request, timeout=180) as response: + answer = json.load(response) + text = "".join(block.get("text", "") + for block in answer.get("content", []) + if block.get("type") == "text") + usage = answer.get("usage") or {} + tokens_in = usage.get("input_tokens", 0) + tokens_out = usage.get("output_tokens", 0) + elif "/" in model: + text, tokens_in, tokens_out = self._openrouter(prompt, model) + else: + text, tokens_in, tokens_out = self._gemini_text( + prompt, model, + {"maxOutputTokens": self.max_output, + "temperature": 0, + "thinkingConfig": {"thinkingBudget": 0}}) + parsed = (parse or self._verdict)(text) + if parsed is None: + raise ParseFailure("the model wrote no verdict") + if expect is not None and parsed.get(expect) not in allowed: + # the model answered outside the set: this is a parse + # failure, and it is tried again, not accepted with a + # value nobody said + raise ParseFailure("the model answered %r for %r" + % (parsed.get(expect), expect)) + self.ledger.add(model, tokens_in, tokens_out) + self.breaker.record(True) + # the answer is kept whole: a prompt may ask for "verdict" + # (a picture) or for "relation" (two terms), and the shape + # of the question decides the shape of the answer + if isinstance(parsed, dict): + # a prompt may ask for a field this prompt did not + # ask for: a form answer has no "verdict", and saying + # "error" would be a lie + verdict = parsed.get("verdict") + relation = parsed.get("relation") + else: + verdict = None + relation = None + # the answer was an answer: a prompt may ask for a field + # this prompt did not ask for, and "verdict" is not the + # field every answer carries + ok = True + row = {"key": key, "verdict": verdict, + "relation": relation, + "ok": ok, + "answer": parsed, + "raw": text[:1200], + "reason": (parsed.get("reason") or "")[:300] + if isinstance(parsed, dict) else "", + "model": model, "tokens_in": tokens_in, + "tokens_out": tokens_out, "cached": False} + self.remember(key, row) + return row + except Exception as exc: + kind_of = classify_error(exc) + self.ledger.failed += 1 + self.breaker.record(False) + if kind_of == "fatal" or attempt >= self.attempts: + # a call that failed is missing data, not an answer: + # it is not cached, so the next run asks again + row = {"key": key, "verdict": "error", + "relation": None, "ok": False, + "answer": None, "raw": None, + "reason": str(exc)[:200], "model": model, + "tokens_in": 0, "tokens_out": 0, "cached": False} + return row + self.ledger.retried += 1 + wait = getattr(exc, "headers", None) and \ + exc.headers.get("retry-after") + if not wait: + wait = backoff_delay(attempt, self.base, self.cap) + time.sleep(float(wait)) + return {"key": key, "verdict": "error", "relation": None, + "answer": None, "raw": None, + "reason": "the judge gave up", + "model": model, "cached": False} + + def text_batch(self, items, model=None, parse=None): + """Many answers, asked as one job. + + The items are (key, prompt) pairs and the keys are the same keys + the single calls use, so an answer that came from a batch and an + answer that was asked on its own are the same answer as far as the + corpus is concerned. The answer is parsed with the same parser and + a request that failed comes back as missing, never as a verdict. + """ + model = model or self.model + if not items: + return {}, None, 0.0 + if parse is None: + parse = self._verdict + batch_id = batch.submit([{"key": key, "prompt": prompt} + for key, prompt in items], + model=model) + answers, seconds = batch.collect(batch_id) + rows = {} + for key, row in answers.items(): + if row.get("ok"): + try: + row["answer"] = parse(row.get("raw") or "") + except Exception: + row["ok"] = False + row["answer"] = None + row["reason"] = "the answer was not the shape that was asked for" + row["model"] = model + if row.get("ok"): + # the batch is not metered by the ledger until now: its + # answers are charged like any other + self.ledger.add(model, row.get("tokens_in", 0), + row.get("tokens_out", 0)) + rows[key] = row + return rows, batch_id, seconds + + def judge(self, path, kind, caption, description, model=None): + """One judgement, with the failures handled and the cost charged.""" + prompt_hash = hashlib.sha256((SYSTEM + QUESTION).encode("utf-8")).hexdigest() + model = model or self.model + key = self.pair_key(path, caption, description, kind, model, prompt_hash) + found = self.cached(key) + if found is not None: + found = dict(found) + found["cached"] = True + return found + attempt = 0 + while attempt < self.attempts: + attempt += 1 + try: + if model == self.fallback: + text, tokens_in, tokens_out = self._anthropic( + path, kind, caption, description) + else: + text, tokens_in, tokens_out = self._gemini( + path, kind, caption, description) + parsed = self._verdict(text) + if parsed is None: + raise RuntimeError("the model wrote no verdict") + self.ledger.add(model, tokens_in, tokens_out) + self.breaker.record(True) + row = {"key": key, "verdict": parsed.get("verdict") or "error", + "reason": (parsed.get("reason") or "")[:300], + "model": model, "tokens_in": tokens_in, + "tokens_out": tokens_out, "cached": False} + self.remember(key, row) + return row + except Exception as exc: + kind_of = classify_error(exc) + self.ledger.failed += 1 + self.breaker.record(False) + if kind_of == "fatal" or attempt >= self.attempts: + row = {"key": key, "verdict": "error", + "relation": None, "answer": None, "raw": None, + "reason": str(exc)[:200], "model": model, + "tokens_in": 0, "tokens_out": 0, "cached": False} + self.remember(key, row) + return row + self.ledger.retried += 1 + wait = getattr(exc, "headers", None) and \ + exc.headers.get("retry-after") + if not wait: + wait = backoff_delay(attempt, self.base, self.cap) + time.sleep(float(wait)) + return {"key": key, "verdict": "error", "relation": None, + "answer": None, "raw": None, + "reason": "the judge gave up", + "model": model, "cached": False} + + +def plant(pairs, share, seed=20261128): + """Put the held-out pairs into a batch, where the judge cannot see them. + + A planted pair must be indistinguishable from a real one: the same + prompt, the same picture, an opaque name, and a position among the + others. The pairs come from a file that is pinned by its hash, so a + change to it has to be deliberate. + """ + random.seed(seed) + held = list(pairs) + random.shuffle(held) + take = int(round(len(pairs) * share)) + planted = held[:take] + return planted \ No newline at end of file diff --git a/plugins/vochic03/document-library/pipeline/book2corpus/layout.py b/plugins/vochic03/document-library/pipeline/book2corpus/layout.py new file mode 100644 index 00000000..40f774ce --- /dev/null +++ b/plugins/vochic03/document-library/pipeline/book2corpus/layout.py @@ -0,0 +1,189 @@ +"""Geometry: where the furniture is, and where the footnotes start. + +Nothing here reads meaning from words. The footnote split is a small +per-page optimisation over candidate boundaries, scored on three measured +signals: type size (rendered character width), the book's own footnote +number sequence, and the vertical gap. +""" +import re + +FOOTNOTE_NUMBER_RE = re.compile(r"^[^A-Za-z0-9]{0,3}(\d{1,3})[^A-Za-z0-9.]{0,3}(?:\s|$)") +# a numbered paragraph of the book, in the shape the book prints it: "[1.20]" +PARAGRAPH_MARKER_RE = re.compile(r"^\s*\[\s*\d{1,2}\s*\.\s*\d{1,3}(?:\s*\.\s*\d{1,3})?\s*\]") +HEADER_BAND = 42.0 # y below this is the running head +FOOTER_BAND = 48.0 # y above height-this is the foot of the page +MIN_FOOTNOTE_GAP = 13.0 # a visible gap between the body and the notes +# a sentence can end here +TERMINAL = ".!?\"'\u2019\u201d\u2019)\"'" + + +def split_furniture(page): + """Take the running head and the folio off the page. Tag, do not delete.""" + head, foot, rest = [], [], [] + for line in page.lines: + if line.y1 < HEADER_BAND: + head.append(line) + elif line.y0 > page.height - FOOTER_BAND and re.fullmatch(r"[0-9ivxlcdm]{1,5}", line.text.strip(), re.I): + foot.append(line) + else: + rest.append(line) + page.header_lines = head + page.furniture = foot + page.lines = rest + return page + + +def median(values): + values = sorted(values) + if not values: + return 0.0 + mid = len(values) // 2 + if len(values) % 2: + return values[mid] + return (values[mid - 1] + values[mid]) / 2.0 + + +def page_metrics(page): + """Measured proxies: character width, line pitch, right margin.""" + widths = [ln.char_width for ln in page.lines] + cw = median(widths) + y0s = [ln.y0 for ln in page.lines] + pitch = median([b - a for a, b in zip(y0s, y0s[1:])]) or 10.0 + right = max((ln.x1 for ln in page.lines), default=page.width) + return cw, pitch, right + + +def footnote_number(line): + m = FOOTNOTE_NUMBER_RE.match(line.text) + return int(m.group(1)) if m else None + + +def split_footnotes(page, expected_next=None, exclude=None): + """Choose the boundary between the body and the notes at the foot. + + Three signals, in this order of trust: + + * the book's own footnote numbering - the notes at the foot carry the + numbers that continue the chapter's sequence, and that sequence is + intact even where the OCR has mangled the words; + * justification - body lines are justified to the right margin, notes are + ragged, so the notes start after the last justified line; + * type size and the vertical gap. + + Block quotations are set smaller than the body, so size alone cannot + separate them from notes; the number and the margin can. + """ + if not page.lines: + return + cw, pitch, right = page_metrics(page) + lower = page.height * 0.45 + + justified = [i for i, ln in enumerate(page.lines) if right and ln.x1 >= right * 0.93] + + exclude = exclude or set() + candidates = [] + for i, line in enumerate(page.lines): + if line.y0 < lower or id(line) in exclude: + continue + if footnote_number(line) is not None or line.char_width < cw * 0.93: + candidates.append(i) + if not candidates: + page.body = list(page.lines) + page.footnotes = [] + return + + def score(i): + below = page.lines[i:] + if not below: + return -1e9 + small_below = sum(1 for ln in below if ln.char_width < cw * 0.93) / len(below) + s = 2.0 * small_below + nums = [footnote_number(ln) for ln in below] + nums = [x for x in nums if x is not None] + if nums and expected_next is not None: + if nums[0] == expected_next: + s += 6.0 + elif expected_next <= nums[0] <= expected_next + 5: + s += 3.0 + else: + s -= 2.0 + if i > 0: + gap = page.lines[i].y0 - page.lines[i - 1].y1 + s += min(gap / pitch, 3.0) / 3.0 + else: + s -= 1.0 + return s + + # Two independent signals, and the page is split where they agree. + # + # 1. The layout: the notes at the foot are separated from the body by a + # visible gap, bigger than the line pitch. + # 2. The book: the notes carry the numbers that continue the chapter's + # sequence, and that sequence survives even where the OCR has mangled + # the words. + lower = page.height * 0.45 + gap_split = len(page.lines) + best_gap = 0.0 + for i in range(1, len(page.lines)): + if page.lines[i].y0 < lower: + continue + gap = page.lines[i].y0 - page.lines[i - 1].y1 + if gap > best_gap: + best_gap, gap_split = gap, i + + seq_split = None + for i, ln in enumerate(page.lines): + if id(ln) in exclude: + continue + n = footnote_number(ln) + if n is None: + continue + if expected_next is None or (expected_next <= n <= expected_next + 5): + seq_split = i + break + + if seq_split is not None and page.lines[seq_split].y0 > page.height * 0.55: + # the book's own numbering says where the notes start + start = seq_split + elif best_gap >= MIN_FOOTNOTE_GAP: + start = gap_split + else: + page.body = list(page.lines) + page.footnotes = [] + return + + # notes whose number the OCR lost sit above the first readable one + limit = max(0, start - 12) + while start > limit: + ln = page.lines[start - 1] + if id(ln) in exclude: + break + if PARAGRAPH_MARKER_RE.match(ln.text): + # a numbered paragraph of the book is body text, whatever its + # width: the notes cannot start above it, or the paragraphs it + # introduces would be swallowed by the notes + break + ragged = bool(right) and ln.x1 < right * 0.90 + if ragged or ln.char_width < cw * 0.93: + start -= 1 + else: + break + # The boundary is wrong if a numbered paragraph of the book sits in the + # notes, or if the body's last line runs on: in both cases the notes + # start lower, at the first line that carries a note number. This + # happens when the gap between body and notes is not where the layout + # thinks it is, and the note numbers on the page then match nothing. + runs_on = True + if start > 0: + tail = page.lines[start - 1].text.rstrip() + runs_on = bool(tail) and (tail[-1] in TERMINAL or tail.endswith("-")) + swallowed = any(PARAGRAPH_MARKER_RE.match(ln.text) + for ln in page.lines[start:]) + if (not runs_on or swallowed) and start < len(page.lines): + for k in range(start, len(page.lines)): + if footnote_number(page.lines[k]) is not None: + start = k + break + + page.body = page.lines[:start] + page.footnotes = page.lines[start:] diff --git a/plugins/vochic03/document-library/pipeline/book2corpus/notes.py b/plugins/vochic03/document-library/pipeline/book2corpus/notes.py new file mode 100644 index 00000000..8b958e77 --- /dev/null +++ b/plugins/vochic03/document-library/pipeline/book2corpus/notes.py @@ -0,0 +1,1336 @@ +"""The notes corpora: study notes turned into a book reader. + +The notes in these corpora are plain text with two structures in them. A +page marker says which page of the book a stretch of text came from. A +figure block records a visual: its type, the caption the book printed, a +written description of what it shows, the text printed inside it, and +where the description came from. + +The pictures themselves live in a separate library of images taken from the +books' own PDFs. This finds the image for each figure on evidence - the +printed caption, then the page, then the order on the page - and puts it +next to the description, saying how it was matched. A figure whose image +cannot be found on evidence keeps its description and says so. + +Nothing is cleaned up and nothing is summarised: the notes are the corpus, +and the reader shows them as they are. +""" +import base64 +import hashlib +import io +import json +import os +import re +from html.parser import HTMLParser + +from . import counts_line +from . import index_block +from . import figures + +# The marker comes in two shapes: bare, and with a note of how the page +# was read ("; read from the image: OCR mode"). Both are the same +# marker, and a marker that is not recognised loses the page it names. +PAGE_RE = re.compile(r"^=== PAGE (.+?) \(PDF page (\d+)(?:;[^)]*)?\) ===\s*$") +FIGURE_RE = re.compile(r"\[FIGURE ([^\]]*)\]\s*$") +CITATION_RE = re.compile(r"^Source:\s*(.+?)\s*$") +FIELDS = ("TYPE", "CAPTION", "CONTENT", "TEXT IN FIGURE", "SOURCE") +FIGURE_INDEX = "agent-index" +MAX_EDGE = 1200 +WEBP_QUALITY = 76 +EMBED_BUDGET = 14 * 1024 * 1024 +SOFT_BUDGET = 25 * 1024 * 1024 +HARD_BUDGET = 50 * 1024 * 1024 +LEVELS = ((1200, 76), (1000, 70), (900, 66)) +RECORDS = {} +CATALOGUE = {} + + +def _norm(text): + return re.sub(r"[^a-z0-9]+", " ", (text or "").lower()).strip() + + +def _sha256(path): + digest = hashlib.sha256() + with open(path, "rb") as fh: + for chunk in iter(lambda: fh.read(1 << 20), b""): + digest.update(chunk) + return digest.hexdigest() + + +def parse_chapter(path): + """One chapter file: its title, its citation and its blocks. + + A paragraph is a run of lines separated by a blank line. A figure + block is a header line - which may carry a prefix such as + "FIGURES ON THIS PAGE:" - followed by its fields and a "--". + """ + with io.open(path, encoding="utf-8") as fh: + lines = fh.read().splitlines() + title = "" + citation = "" + blocks = [] + page = None + pdf_page = None + paragraph = [] + index = 0 + + def flush_paragraph(): + if paragraph: + blocks.append({"kind": "paragraph", "text": chr(10).join(paragraph), + "page": page, "pdf_page": pdf_page}) + del paragraph[:] + + while index < len(lines): + line = lines[index] + stripped = line.strip() + found = PAGE_RE.match(line) + if found: + flush_paragraph() + page = found.group(1) + pdf_page = found.group(2) + blocks.append({"kind": "page", "text": stripped, "page": page, + "pdf_page": pdf_page}) + index += 1 + continue + found = FIGURE_RE.search(line) + if found: + flush_paragraph() + if not _fields_follow(lines, index + 1): + # a marker that says a figure sits here, not a figure's own + # record: the notes write it where the picture is + blocks.append({"kind": "placeholder", "text": found.group(1).strip(), + "page": page, "pdf_page": pdf_page, + "fields": {}, "label": found.group(1).strip()}) + index += 1 + continue + fields = {} + last_field = None + cursor = index + 1 + while cursor < len(lines): + nxt = lines[cursor].strip() + if nxt == "--" or nxt == "": + break + if ":" in nxt: + key, value = nxt.split(":", 1) + name = field_name(key) + if name in FIELDS: + fields.setdefault(name, value.strip()) + last_field = name + cursor += 1 + continue + # a line that fits no field belongs to the field above it: + # the descriptions are written over several lines + if fields and last_field: + fields[last_field] = (fields[last_field] + " " + nxt).strip() + cursor += 1 + blocks.append({"kind": "figure", "text": "", "page": page, + "pdf_page": pdf_page, "fields": fields, + "label": found.group(1).strip()}) + index = cursor + 1 + continue + if stripped.startswith("# ") and not title: + title = stripped[2:].strip() + index += 1 + continue + found = CITATION_RE.match(stripped) + if found and not citation: + citation = found.group(1) + index += 1 + continue + if not stripped: + flush_paragraph() + index += 1 + continue + paragraph.append(stripped) + index += 1 + flush_paragraph() + return {"title": title, "citation": citation, "blocks": blocks} + + +def field_name(key): + """The field a line belongs to: the notes write "CONTENT, by type: ..." + as well as "CONTENT: ...", and the two are the same field.""" + return key.strip().upper().split(",")[0].strip() + + +def _fields_follow(lines, start): + """Do a figure's own fields follow this line?""" + for line in lines[start:start + 4]: + stripped = line.strip() + if not stripped: + continue + if stripped == "--": + return False + if ":" in stripped: + return field_name(stripped.split(":", 1)[0]) in FIELDS + return False + return False + + +def _catalogue(library): + """The whole catalogue, read once, grouped by book. + + The file is 31 MB and there are 38 books in it: reading it once per + book made a build read it 38 times. This reads it once and hands out + the group each book needs. + """ + if library in CATALOGUE: + return CATALOGUE[library] + index = os.path.join(library, FIGURE_INDEX + ".jsonl") + grouped = {} + if os.path.exists(index): + with io.open(index, encoding="utf-8") as fh: + for line in fh: + line = line.strip() + if not line: + continue + record = json.loads(line) + grouped.setdefault(record.get("book"), []).append(record) + CATALOGUE[library] = grouped + return grouped + + +def _all_records(library, book): + """Every catalogue record for one book.""" + return list(_catalogue(library).get(book, [])) + + +def records_for(library, book): + """The catalogue records for one book. + + The whole book, not one chapter. The page is what finds a picture, + and a chapter's name is only one of the keys: a catalogue that names + some chapters and not others must not cut the pictures away. + """ + key = "book|%s" % book + if key not in RECORDS: + RECORDS[key] = _all_records(library, book) + return RECORDS[key] + + +def match_figures(blocks, records, library=None): + """Give every figure block an image, on evidence, and say how. + + The blocks are the whole book's: the passes run one tier at a time + over all of them, so that "the picture left on the page" means the + same thing wherever it is read. + """ + return figures.match(blocks, records, library) + + +def _manifest_entries(book_dir): + """The manifest of the last build, read once. + + It used to be read once per picture: a book with 385 pictures read + and parsed the whole manifest 385 times, which was most of the build. + """ + manifest_path = os.path.join(book_dir, "figures.json") + if not os.path.exists(manifest_path): + return {} + try: + with open(manifest_path, encoding="utf-8") as fh: + return {e.get("id"): e + for e in (json.load(fh) or {}).get("figures", [])} + except Exception: + return {} + + +def _made_picture(book_dir, image_id, entries=None, library=None): + """The picture that is already made, if it is still the right one. + + A rebuild that changes nothing should not spend an hour turning the + library's pictures into WebP again: the file beside the reader is + kept only if its hash is the one the manifest names. + """ + if entries is None: + entries = _manifest_entries(book_dir) + entry = entries.get(image_id) + if not entry or entry.get("hosted"): + return None + name = entry.get("derivative_file") or "" + path = os.path.join(book_dir, name) + if not name or not os.path.exists(path): + return None + with open(path, "rb") as fh: + data = fh.read() + if hashlib.sha256(data).hexdigest() != entry.get("derivative_sha256"): + return None + # the picture the derivative was made from must still be the same + # picture: the build key carries the size and the date of the source, + # so a source that moved is read again here and compared by its + # content + source = entry.get("catalogue_file") + if source and library: + path_on_disk = os.path.join(library, source) + try: + info = os.stat(path_on_disk) + except OSError: + return None + recorded = entry.get("original_mtime_ns") + if recorded is not None and info.st_mtime_ns != recorded: + if _sha256(path_on_disk) != entry.get("original_sha256"): + return None # the picture changed: make it again + return (data, entry.get("mime") or "image/webp", + entry.get("pixels"), entry.get("derivative_sha256"), + os.path.basename(name), entry) + + +def _image_bytes(path, edge=MAX_EDGE, quality=WEBP_QUALITY, method=4): + """The image, made ready for a browser: a WebP at a sane size. + + Without Pillow the picture cannot be made smaller, and a picture that + is not smaller is not what the reader wants. So this says so rather + than passing the original through. + """ + try: + from PIL import Image + except ImportError: + raise RuntimeError( + "Pillow is needed to make the pictures small: pip install pillow") + with Image.open(path) as image: + if image.mode not in ("RGB", "RGBA"): + image = image.convert("RGBA" if "A" in image.mode else "RGB") + if max(image.size) > edge: + image.thumbnail((edge, edge), Image.LANCZOS) + buffer = io.BytesIO() + image.save(buffer, format="WEBP", quality=quality, method=method) + size = image.size + return buffer.getvalue(), "image/webp", size + + +def _escape(text): + """Text safe to put in an attribute and in the body. + + The quotes matter: a description that contains one would otherwise end + the attribute early, and the reader would lose the picture. + """ + return ("" if text is None else str(text)).replace("&", "&").replace("<", "<") .replace(">", ">").replace('"', """).replace("'", "'") + + +def _slug(text, limit=40): + out = re.sub(r"[^A-Za-z0-9]+", "-", text or "").strip("-").lower() + return out[:limit] or "x" + + +MD_HEADING_RE = re.compile(r"^(#{1,3})\s+(.*)$") +TOC_LINE_RE = re.compile(r"^(.*?)(\s*\.{4,}\s*)((?:\d{1,4})|(?:[IVXLC]{1,6}))\s*$") +# Emphasis is only read where it cannot change the words: the opening star +# must not sit between two word characters, and neither must the closing +# one. A formula such as "=B4*B9" and a name such as "Niedzw*wien*ska" +# are left exactly as they are. +STRONG_RE = re.compile(r"(?" + match.group(1) + "" + def emphasis(match): + if not re.search(r"[A-Za-z0-9]", match.group(1)): + return match.group(0) + return "" + match.group(1) + "" + out = STRONG_RE.sub(strong, out) + out = EMPHASIS_RE.sub(emphasis, out) + return out + + +TABLE_SEPARATOR_RE = re.compile(r"^:?-{2,}:?$") + + +def _table_rows(lines): + """The rows of a markdown table, and where the header ends. + + A markdown table is a run of lines that begin with a pipe; the row + that is only dashes and colons is the rule under the header. The + words are not changed - only the marks around them - so the reader + still shows the notes as they were written. + """ + rows = [] + for line in lines: + stripped = line.strip() + if not stripped.startswith("|"): + return None + rows.append([cell.strip() for cell in stripped.strip("|").split("|")]) + if rows and all(all(TABLE_SEPARATOR_RE.match(cell or "") for cell in row) + for row in rows): + return [], [] # a rule on its own carries no words + for index, row in enumerate(rows): + if index and all(TABLE_SEPARATOR_RE.match(cell or "") for cell in row): + return rows[:index], rows[index + 1:] + return [], rows + + +def _table_html(lines): + """A markdown table, as a table.""" + found = _table_rows(lines) + if found is None: + return "" + header, body = found + out = [""] + if header: + out.append("") + for row in header: + for cell in row: + out.append("\n" % _inline(cell)) + out.append("\n") + if body: + out.append("") + for row in body: + out.append("\n") + for cell in row: + out.append("\n" % _inline(cell)) + out.append("\n") + out.append("\n") + out.append("\n
%s
%s
") + return "".join(out) + + +def _is_table(block): + """Does this block of the notes carry a table?""" + if not block or block.get("kind") != "paragraph": + return False + return any(line.strip().startswith("|") for line in (block.get("text") or "").split("\n")) + + +def _markdown_block(text): + """A paragraph of the notes: the element that carries it, and its words. + + Most paragraphs are prose. Some carry a table the notes wrote in + markdown, and those are shown as tables, in a block of their own so + that the browser has somewhere to put a table. + """ + if os.environ.get("B2C_MD", "on").strip().lower() == "off": + cls, inner = _markdown(text) + return "p", cls, inner + lines = (text or "").split("\n") + parts = [] + prose = [] + table = [] + for line in lines: + if line.strip().startswith("|"): + if prose: + parts.append(("prose", prose)) + prose = [] + table.append(line) + continue + if table: + parts.append(("table", table)) + table = [] + prose.append(line) + if table: + parts.append(("table", table)) + if prose: + parts.append(("prose", prose)) + if not any(kind == "table" for kind, _ in parts): + cls, inner = _markdown(text) + return "p", cls, inner + out = [] + for kind, payload in parts: + if kind == "prose": + cls, inner = _markdown("\n".join(payload)) + out.append('

%s

' % (cls, inner)) + else: + out.append(_table_html(payload)) + return "div", "ptext pblock", "".join(out) + + +def _markdown(text): + """The notes carry a little of the markdown they were written in. + + A line that begins with # is a heading, *word* is italics, and a line + with a run of dots is the book's own contents line. Rendering them + keeps the reader from showing "# NOTICE" as if it were the book's + text, and keeps the dot leaders out of the prose. + + The words are not changed - only the marks around them - so the + reader still shows the notes as they were written, and the gate, + which compares the reader with the notes letter by letter, still + holds. B2C_MD=off brings the older behaviour back. + """ + if os.environ.get("B2C_MD", "on").strip().lower() == "off": + return "ptext", _inline(text) + heading = MD_HEADING_RE.match(text) + if heading: + level = len(heading.group(1)) + cls = "mdhead" if level == 1 else "mdhead mdh%d" % level + return cls, _inline(heading.group(2)) + toc = TOC_LINE_RE.match(text) + if toc: + title, dots, page = toc.groups() + return ("tocline", + '%s' + '' + '%s' + % (_escape(title.strip()), _escape(dots.strip()), _escape(page.strip()))) + return "ptext", _inline(text) + + +CAPTION_NUMBER_RE = re.compile(r"^\s*(fig(?:ure)?|table)\s*\.?\s*([0-9][0-9.\-]*)\s*[:.\-]?\s*", re.I) + + +def _caption_without_number(caption, label): + """The printed caption without the figure number it repeats. + + The book prints "FIGURE 1.1 Key aspects of ..." and the reader shows + the number on a line of its own above, so the number is taken out of + the caption. The words are the book's; only the number that is + already shown is dropped. + """ + text = (caption or "").strip() + found = CAPTION_NUMBER_RE.match(text) + if not found: + return text + number = found.group(2).replace("-", ".").rstrip(".") + label_number = re.sub(r"[^0-9.]", "", label or "").rstrip(".") + if not number or number != label_number: + return text + return text[found.end():].strip() + + +TIER_PHRASE = { + "numbered": "the figure's own number", + "verified": "the printed caption", + "description-match": "the two written descriptions", + "probable": "a similar caption", + "inferred": "the position on the page", + "ordinal": "the order on the page", +} + + +def _figure_block(book, chapter_index, block_index, block, figure_dir, + claimed=None): + """One figure, and one state. + + A figure is in one of three states, and the reader says which: + + matched the picture is shown, and the line under it says why it + was chosen: the figure's own number, the printed + caption, the two written descriptions, or the position + on the page + unconfirmed no picture is claimed; the candidates are shown small, + so that the reader can judge for himself + absent the notes mark a figure here and no picture was found + + A picture that another figure has already claimed is never offered + again as a candidate: the reader has just seen it. + """ + claimed = claimed or set() + fields = block.get("fields", {}) + tier = block.get("tier") or "none" + label = (block.get("label") or "").strip() + kind = (fields.get("TYPE") or "").strip() + caption = _caption_without_number(fields.get("CAPTION"), label) + content = (fields.get("CONTENT") or "").strip() + in_figure = (fields.get("TEXT IN FIGURE") or "").strip() + fid = block.get("figure_id") or ("f-%02d-%04d" % (chapter_index, block_index)) + image = block.get("image") + has_image = bool(image and image.get("derivative")) + candidates = [c for c in (block.get("candidates") or []) + if c.get("id") and c.get("id") not in claimed] + if has_image: + state = "matched" + elif candidates: + state = "unconfirmed" + else: + state = "absent" + if tier in ("candidate", "ordinal") and not candidates: + # every picture this figure could have had is already shown under + # another figure, so there is nothing left to offer it + tier = "none" + + out = ['
' + % (fid, _escape((image or {}).get("id", "")), state, _escape(tier))] + if has_image: + entry = image["derivative"] + src = image.get("embed_src") or entry["derivative_file"] + alt = (content or caption or label or "figure") + out.append('%s' + % (src, _escape(alt))) + numbered = bool(label) and label.lower() not in ("unnumbered", "none") + + # the caption: the figure's own number and the caption the book printed. + # Nothing else belongs here: the words printed inside the picture and + # the kind of figure are the picture's own business. + head = ['
Figure'] + if numbered: + head.append(' %s' % _escape(label)) + head.append("") + if caption and caption.lower() != "none": + head.append('%s' + % _escape(caption)) + head.append("
") + out.append("".join(head)) + + # the line that says what happened, in the open + if state == "matched": + phrase = TIER_PHRASE.get(tier, "the evidence") + where = figures.KEY_NAME.get(block.get("key") or "", "") + extra = "" + similarity = (block.get("detail") or {}).get("similarity") + if tier in ("description-match", "probable") and similarity is not None: + # the score means something here: it is the similarity the + # two descriptions reached + extra = ' · score %.2f' % similarity + out.append('

Matched by %s%s%s.

' + % (_escape(phrase), + (", on %s" % _escape(where)) if where else "", + extra)) + elif state == "unconfirmed": + refusal = block.get("refusal") + if refusal: + # the claim was refused, and the line says why: a tie, or a + # rival that was nearly as good + if refusal.get("tie"): + out.append('

Two pictures matched equally ' + 'well, so neither is claimed.

') + else: + detail = "" + if (refusal.get("score") is not None + and refusal.get("rival_score") is not None): + detail = (" (%.2f against %.2f)" + % (refusal["score"], refusal["rival_score"])) + elif refusal.get("rival_number"): + detail = (" (the picture numbered %s)" + % _escape(str(refusal["rival_number"]))) + out.append('

Another picture matched nearly ' + 'as well%s, so neither is claimed.

' % detail) + else: + out.append('

Picture not confirmed.

') + else: + out.append('

The notes mark a figure here; ' + 'no picture was found.

') + + # what the figure is, for a reader who cannot see the picture or who + # wants to know what a model made of it + details = [] + if content and content.lower() != "none": + details.append('
What the picture shows
' + '
%s
' + % _escape(content)) + if in_figure and in_figure.lower() != "none": + details.append('
Words printed in the picture
' + '
%s
' + % _escape(in_figure)) + if kind and kind.lower() != "none": + details.append('
Kind
' + '
%s
' + % _escape(kind)) + if not numbered: + details.append('
Number in the notes
' + '
%s
' + % _escape(label or "")) + + if state == "unconfirmed": + # the candidates, as small pictures: the reader can judge for himself + # whether one of them is the figure + out.append('
    ') + for cand in candidates[:4]: + thumb = cand.get("thumb") + # a candidate is not a picture of this figure, and it is not an + # : the gate forbids a figure that shows a picture it has + # not claimed, and that rule must stay exact + picture = ('' + % _escape(thumb)) if thumb else "" + out.append('
  • %s%s
  • ' + % (picture, _escape(cand.get("id", "")))) + out.append("
") + + if details: + out.append('
Picture details' + '
%s
' % "".join(details)) + out.append("
") + return "".join(out) + + +def render_html(built, book_meta, template_dir, index_payload=None): + """The reader, as a string.""" + head = open(os.path.join(template_dir, "reader.head.html"), encoding="utf-8").read() + tail = open(os.path.join(template_dir, "reader.tail.html"), encoding="utf-8").read() + chapters = built["chapters"] + paragraphs = sum(1 for c in chapters for b in c["blocks"] if b["kind"] == "paragraph") + figures = [b for c in chapters for b in c["blocks"] if b["kind"] == "figure"] + images = sum(1 for b in figures if b.get("image")) + # the pictures that are already claimed: a figure is never offered a + # picture the reader has just seen under another figure + claimed = set(entry.get("id") for entry in built.get("manifest") or []) + + nav = [] + for index, chapter in enumerate(chapters): + count = sum(1 for b in chapter["blocks"] if b["kind"] == "paragraph") + figs = sum(1 for b in chapter["blocks"] if b["kind"] == "figure") + items = [] + for position, block in enumerate(chapter["blocks"]): + if block["kind"] != "figure": + continue + label = (block.get("label") or "").strip() + if not label or label.lower() == "unnumbered": + label = "figure %d" % (position + 1) + fid = block.get("figure_id") or ("f-%02d-%04d" % (index + 1, position)) + items.append('%s' + % (_escape(fid), _escape(label))) + nav.append('
' + '%d' + '%s' + '%d · %d fig' + '
%d figure%s' + '
%s
' + % (index + 1, " open" if index == 0 else "", index + 1, + index + 1, + _escape(chapter["title"] or chapter["stem"]), count, figs, + figs, "" if figs == 1 else "s", "".join(items))) + body = [] + for index, chapter in enumerate(chapters): + body.append('
' + % (index + 1, _escape(chapter["stem"]))) + body.append('
%s
' + % _escape(chapter["title"] or chapter["stem"])) + body.append('
') + para_index = 0 + for block_index, block in enumerate(chapter["blocks"]): + if block["kind"] == "page": + # the book's own page label, when it printed one: a page + # with no number says so by saying only where it is + printed = (block.get("page") or "").strip() + if printed.lower() in ("unnumbered", "none", ""): + printed = "" + body.append('
%s' + 'PDF %s
' + % (index + 1, _escape(block.get("pdf_page") or "0"), + _escape(printed), + _escape(block.get("pdf_page") or ""))) + continue + if block["kind"] == "paragraph": + para_index += 1 + tag, cls, inner = _markdown_block(block["text"]) + if "pblock" in cls: + # a table: it may continue the one before it, and it + # may be continued by the one after it + before = chapter["blocks"][block_index - 1] if block_index else None + after = (chapter["blocks"][block_index + 1] + if block_index + 1 < len(chapter["blocks"]) else None) + if _is_table(before): + cls += " mdtable-cont" + if _is_table(after): + cls += " mdtable-more" + body.append('<%s class="%s" id="t-%02d-%04d">%s' + % (tag, cls, index + 1, para_index, inner, tag)) + continue + if block["kind"] == "placeholder": + body.append('

The notes mark another figure on this ' + 'page, and do not describe it.

') + continue + if block["kind"] == "figure": + body.append(_figure_block(built, index + 1, block_index, block, None, + claimed=claimed)) + body.append("
") + + if built.get("picture_base"): + body.append('

This copy of the reader carries no ' + 'pictures of its own: each one is loaded from %s, where the ' + 'pictures of this corpus live.

' + % _escape(built["picture_base"])) + + index_rows = [] + index_groups = [] + for index, chapter in enumerate(chapters): + for block in chapter["blocks"]: + if block["kind"] != "figure": + continue + label = block.get("label") or "Figure" + kind = (block.get("fields", {}).get("TYPE") or "").strip() + caption = (block.get("fields", {}).get("CAPTION") or "").strip() + if caption.lower() == "none": + caption = (block.get("fields", {}).get("CONTENT") or "")[:90] + fid = block.get("figure_id") or ("f-%02d-%04d" % (index + 1, chapter["blocks"].index(block))) + index_rows.append('
  • %s %s' + ' %s %s
  • ' + % (_escape(fid), _escape(label), + _escape(kind), _escape(caption), + _escape(block.get("page") or ""))) + if index_rows: + # the list says which chapter each figure belongs to, so it + # says it: the figures of a chapter are under its name + index_groups.append('

    %d · %s

    ' + '
      %s
    ' + % (index + 1, _escape(chapter["title"] or chapter["stem"]), + "".join(index_rows))) + index_rows = [] + body.append('
    ' + 'Figures
    ' + '

    Every figure the notes record, with the chapter it belongs to ' + 'and the page it is on.

    %s
    ' + % "".join(index_groups)) + + first_page = last_page = "" + for chapter in chapters: + for block in chapter["blocks"]: + if block["kind"] == "page": + if not first_page: + first_page = (block.get("pdf_page") or "").strip() + last_page = (block.get("pdf_page") or "").strip() + pages = "" + if first_page and last_page and first_page != last_page: + pages = "PDF pages %s to %s" % (first_page, last_page) + elif first_page: + pages = "PDF page %s" % first_page + + counts = counts_line.to_html(counts_line.notes(len(chapters), paragraphs, + len(figures), images)) + note = ("These are study notes: the book's own text, page by page, with the pictures " + "matched to their figures.") + note_more = ("The notes are the corpus: the text is reproduced exactly, and every figure " + "the notes record is here. The pictures are the book's own, taken from its " + "PDF; the descriptions were written by a vision model reading the page. " + "Where a picture could not be matched to its figure on evidence, the figure " + "says so and names the candidates it could not claim. A sampled audit " + "estimates how often a match is right: the text is exact, the match is an " + "estimate.") + doc = head + tail + doc = doc.replace("{{TITLE}}", _escape(book_meta.get("title") or built["book"])) + doc = doc.replace("{{SUBTITLE}}", _escape(pages)) + citation = re.split(r",\s*PDF pages", book_meta.get("citation") or "")[0].strip() + if citation == (book_meta.get("title") or ""): + citation = "" + doc = doc.replace("{{CITATION}}", _escape(citation)) + if not citation: + doc = doc.replace('

    ', "") + doc = doc.replace("{{COUNTS}}", counts) + doc = doc.replace("{{KIND}}", "notes") + doc = doc.replace("{{SEARCH}}", "Search the book (press / )") + doc = doc.replace("{{JUMP}}", "page C12 or Fig 15.2") + doc = doc.replace("{{NAV}}", "".join(nav)) + doc = doc.replace("{{BODY}}", "\n".join(body)) + doc = doc.replace("{{ORPHANS}}", "") + doc = doc.replace("{{INDEX}}", index_block.render(index_payload)) + doc = doc.replace("{{NOTE}}", note) + doc = doc.replace("{{NOTE_MORE}}", "

    %s

    " % note_more) + return doc + + +def picture_policy(corpus_root): + """The policy that decides which tiers may show a picture. + + It lives in the corpus, beside the evidence it was computed from, so + the numbers are never written into the code: a re-audit changes the + decisions by itself. + """ + path = os.path.join(os.path.abspath(corpus_root), "picture-policy.json") + if not os.path.exists(path): + return None + try: + with open(path, encoding="utf-8") as fh: + return json.load(fh) + except Exception: + return None + + +def canonical_order(): + """Is the canonical order in force? + + The canonical order writes every list in the same way whatever order + the inputs came in: the manifest by picture id, a figure's candidates + by picture id. B2C_ORDER=legacy turns it off, which is the switch + that brings the older behaviour back. + """ + return os.environ.get("B2C_ORDER", "canonical").strip().lower() != "legacy" + + +def build_book(book_dir, library, out_dir=None, embed=True, level=None, + picture_base=None): + """Build one book: the reader, the figures and the record of what was used. + + With a picture_base the reader borrows its pictures from another + host - the mirror keeps the corpus on one side and the pictures on + the other - and the book carries no pictures of its own. + """ + book = os.path.basename(book_dir.rstrip("/")) + level = level or LEVELS[0] + chapters_dir = os.path.join(book_dir, "chapters") + out_dir = out_dir or book_dir + figures_dir = os.path.join(out_dir, "figures") + if not os.path.isdir(chapters_dir): + return None + names = sorted(n for n in os.listdir(chapters_dir) if n.endswith(".md")) + chapters = [] + blocks = [] + for name in names: + stem = name[:-3] + parsed = parse_chapter(os.path.join(chapters_dir, name)) + for block in parsed["blocks"]: + block["stem"] = stem + blocks.extend(parsed["blocks"]) + parsed["file"] = name + parsed["stem"] = stem + chapters.append(parsed) + # one matching run over the whole book: a picture is free only if no + # figure in any chapter has claimed it + match_figures(blocks, records_for(library, book), library) + + # what the audit asked for: a picture the judge found to be the wrong + # one is not shown, and the figure says why it has no picture + demotions = {} + demotion_path = os.path.join(book_dir, "demotions.json") + if os.path.exists(demotion_path): + with open(demotion_path, encoding="utf-8") as fh: + demotions = (json.load(fh) or {}).get("demoted") or {} + + # the policy: a tier that does not clear the bar does not show a + # picture, and a book whose catalogue is not sound does not show a + # text-only picture. The picture is released and offered back as a + # candidate, so the reader can see what was found and why it was not + # claimed. + policy = picture_policy(os.path.dirname(os.path.abspath(book_dir))) + if policy: + tiers_ok = set(t for t, info in (policy.get("gate_b", {}).get("tiers") or {}).items() + if info.get("shows_picture")) + gate_a = set(policy.get("gate_a", {}).get("pass") or []) + text_only = set(policy.get("text_only_tiers") or []) + for chapter in chapters: + for block in chapter["blocks"]: + if block.get("kind") != "figure" or not block.get("image"): + continue + tier = block.get("tier") + allowed = tier in tiers_ok + if allowed and tier in text_only and book not in gate_a: + allowed = False + if allowed: + continue + image = block.get("image") + block["candidates"] = [dict(image)] + [ + c for c in (block.get("candidates") or []) if c.get("id") != image.get("id")] + block["image"] = None + block["tier"] = "candidate" + block["released"] = tier + + for index, chapter in enumerate(chapters): + for position, block in enumerate(chapter["blocks"]): + if block.get("kind") != "figure": + continue + figure_id = "f-%02d-%04d" % (index + 1, position) + block["figure_id"] = figure_id + if figure_id in demotions: + image = block.get("image") + if image: + block["candidates"] = [dict(image)] + block["image"] = None + block["tier"] = "candidate" + block["demoted"] = demotions[figure_id] + + # the panels of one figure share one picture, and the sharing is + # declared: the gate checks the declaration against the notes + for chapter in chapters: + for block in chapter["blocks"]: + if block.get("kind") != "figure": + continue + shared = block.get("shared_with") + if shared: + block["shared_with"] = [other.get("figure_id") + for other in shared + if other.get("figure_id")] + + # every picture a figure claims, with that figure's own notes about + # it: one picture may serve two figures, the panels of one figure + used = [] + claiming = {} + for chapter in chapters: + for block in chapter["blocks"]: + image = block.get("image") + if image: + fields = block.get("fields", {}) + image["tier"] = block.get("tier") + image["chapter"] = chapter["stem"] + image["notes_caption"] = (fields.get("CAPTION") or "").strip() + image["notes_description"] = (fields.get("CONTENT") or "").strip() + image["notes_type"] = (fields.get("TYPE") or "").strip() + image["notes_text_in_figure"] = (fields.get("TEXT IN FIGURE") or "").strip() + used.append(image) + claiming.setdefault(image["id"], []).append(block) + + # the manifest of the last build is read once, not once per picture + made_entries = _manifest_entries(book_dir) + + if not picture_base: + # the pictures that are already made are kept until the build has + # decided which of them it wants; the rest go at the end + os.makedirs(figures_dir, exist_ok=True) + manifest = [] + total = 0 + # one picture file per distinct original: the same diagram often appears + # in several chapters, and it is the same file + by_digest = {} + entries = {} + embeds = {} + written = set() + local = {} + if picture_base: + # the pictures live elsewhere, and their names there were decided + # by the build that made them: the hosted reader must use those + # names, not make its own + local_path = os.path.join(book_dir, "figures.json") + if os.path.exists(local_path): + with open(local_path, encoding="utf-8") as fh: + for entry in (json.load(fh) or {}).get("figures", []): + local[entry.get("id")] = entry + for image in used: + image_id = image["id"] + if image_id in entries: + # the same picture, claimed by two figures + image["derivative"] = entries[image_id] + image["embed_src"] = embeds[image_id] + continue + source = os.path.join(library, image["file"]) + if picture_base and image_id in local: + entry = dict(local[image_id]) + entry["hosted"] = True + entry["hosted_url"] = "%s/%s/%s" % (picture_base.rstrip("/"), book, + entry["derivative_file"]) + manifest.append(entry) + entries[image_id] = entry + embeds[image_id] = entry["hosted_url"] + image["derivative"] = entry + image["embed_src"] = entry["hosted_url"] + continue + made = _made_picture(book_dir, image_id, made_entries, library) + if made is not None: + data, mime, size, digest, made_name, made_entry = made + written.add(made_name) + # the original's hash is already written down: reading the file + # again out of the cloud costs a minute a book for nothing + original_hash = made_entry.get("original_sha256") + original_bytes = made_entry.get("original_bytes") + else: + data = mime = size = digest = None + original_hash = original_bytes = None + for attempt in (range(3) if data is None else ()): + try: + data, mime, size = _image_bytes(source, *level) + break + except Exception: + # a picture in the library that is not there, or that the + # cloud has not fetched yet: the figure must not claim a + # picture it cannot show + data = None + if data is None: + for block in claiming.get(image_id, []): + block["candidates"] = [dict(image)] + block["image"] = None + block["tier"] = "candidate" + block["unreadable"] = True + continue + if digest is None: + digest = hashlib.sha256(data).hexdigest() + name = by_digest.get(digest) + if name is None: + name = image_id + ".webp" + by_digest[digest] = name + if not picture_base: + with open(os.path.join(figures_dir, name), "wb") as fh: + fh.write(data) + written.add(name) + if original_hash is None: + original_hash = _sha256(source) + original_bytes = os.path.getsize(source) + try: + original_stat = os.stat(source) + # the second, not the nanosecond: the cloud filesystem reads + # the same file with a slightly different clock each time, and + # a manifest that changes on every build is not a manifest + original_mtime = original_stat.st_mtime_ns // 1000000000 + except OSError: + original_mtime = None + entry = {"id": image_id, "catalogue_file": image["file"], + "original_sha256": original_hash, + "original_bytes": original_bytes, + "original_mtime_ns": original_mtime, + "derivative_file": "figures/" + name, + "derivative_sha256": digest, + "derivative_bytes": len(data), "mime": mime, + "pixels": size, "kind": image.get("kind"), + "chapter": image.get("chapter"), + "caption": image.get("caption"), + "description": image.get("description"), + "printed_page": image.get("printed_page")} + if picture_base: + entry["hosted"] = True + entry["hosted_url"] = "%s/%s/%s" % (picture_base.rstrip("/"), book, + entry["derivative_file"]) + manifest.append(entry) + entries[image_id] = entry + if picture_base: + embeds[image_id] = entry["hosted_url"] + elif embed: + embeds[image_id] = ("data:%s;base64,%s" + % (mime, base64.b64encode(data).decode("ascii"))) + else: + embeds[image_id] = "figures/" + name + image["derivative"] = entry + image["embed_src"] = embeds[image_id] + total += len(data) + # the pictures this build does not use are listed, not removed: a + # build whose reader fails its gate must leave the corpus as it was + stale = [] + if not picture_base and os.path.isdir(figures_dir): + for name in sorted(os.listdir(figures_dir)): + if name not in written: + stale.append(name) + for chapter in chapters: + for block in chapter["blocks"]: + if block.get("image"): + block["image"]["embed"] = embed and total <= EMBED_BUDGET + # the pictures a figure could not claim are shown small, so that the + # reader can judge for himself whether one of them is the figure. + # A picture that several figures offer is made once. + thumbs = {} + cache_dir = os.path.expanduser("~/.cache/book2corpus/thumbs") + for chapter in chapters: + for block in chapter["blocks"]: + if block.get("kind") != "figure" or block.get("image"): + continue + for cand in block.get("candidates") or []: + cid = cand.get("id") + if not cid or cid in thumbs or not cand.get("file"): + continue + path = os.path.join(library, cand["file"]) + if not os.path.exists(path): + continue + # the thumb is made once and kept: the same picture is + # offered by many figures, and a rebuild must not spend + # an encoder on it again + cache_path = os.path.join(cache_dir, cid + ".webp") + data = None + if os.path.exists(cache_path): + try: + with open(cache_path, "rb") as fh: + data = fh.read() + except Exception: + data = None + if data is None: + try: + data, _, _ = _image_bytes(path, 72, 50, method=0) + except Exception: + continue + try: + os.makedirs(cache_dir, exist_ok=True) + with open(cache_path, "wb") as fh: + fh.write(data) + except Exception: + pass + thumbs[cid] = ("data:image/webp;base64," + + base64.b64encode(data).decode("ascii")) + if thumbs: + for chapter in chapters: + for block in chapter["blocks"]: + for cand in block.get("candidates") or []: + if cand.get("id") in thumbs: + cand["thumb"] = thumbs[cand["id"]] + + if canonical_order(): + # one order everywhere: the manifest by picture id, and a figure's + # candidates by picture id + for chapter in chapters: + for block in chapter["blocks"]: + if block.get("kind") == "figure" and block.get("candidates"): + block["candidates"].sort(key=lambda c: c.get("id") or "") + manifest.sort(key=lambda entry: entry.get("id") or "") + figure_map = [] + for index, chapter in enumerate(chapters): + for position, block in enumerate(chapter["blocks"]): + if block.get("kind") != "figure": + continue + image = block.get("image") + figure_map.append({ + "id": block.get("figure_id"), + "chapter": chapter["stem"], + "label": block.get("label"), + "index": position, + "tier": block.get("tier"), + "key": block.get("key"), + "image": image.get("id") if image else None, + "demoted": block.get("demoted"), + "shared_with": block.get("shared_with") or [], + "refusal": block.get("refusal"), + "caption": (block.get("fields", {}).get("CAPTION") or "").strip(), + "description": (block.get("fields", {}).get("CONTENT") or "").strip(), + "candidates": [c.get("id") for c in block.get("candidates", [])], + }) + return {"book": book, "chapters": chapters, "manifest": manifest, + "figure_map": figure_map, "picture_base": picture_base, + "stale_derivatives": stale, + "embedded_bytes": total, "embed": embed and total <= EMBED_BUDGET} + + +class _Scan(HTMLParser): + """The reader, read back: its ids, its texts and its figures.""" + + def __init__(self): + HTMLParser.__init__(self, convert_charrefs=True) + self.ids = [] + self.texts = {} + self.figures = {} + self.links = [] + self._open = None + self._tag = None + self._figure = None + self._figure_class = None + self._buf = None + + def handle_starttag(self, tag, attrs): + found = dict(attrs) + if found.get("id"): + self.ids.append(found["id"]) + href = found.get("href") or "" + if href.startswith("#"): + self.links.append(href[1:]) + classes = (found.get("class") or "").split() + if tag == "figure": + self._figure = found.get("id") + self._figure_class = "" + self.figures[self._figure] = {} + if self._figure and found.get("data-para") is None and classes: + self._figure_class = classes[0] + if self._open is None and (found.get("id") or "").startswith("t-"): + self._open = {"id": found["id"], "text": []} + self._tag = tag + + def handle_endtag(self, tag): + if self._open is not None and tag == self._tag: + self.texts.setdefault(self._open["id"], "".join(self._open["text"])) + self._open = None + self._tag = None + if tag == "figure" and self._figure: + self._figure = None + + def handle_data(self, data): + if self._open is not None: + self._open["text"].append(data) + elif self._figure and self._figure_class: + key = self._figure_class + self.figures[self._figure][key] = (self.figures[self._figure].get(key, "") + data).strip() + + +def verify(book_dir, out_dir, built, html_text): + """Check the reader against the notes it was made from. + + The source is read again here, line by line, with a grammar of its own: + a line that fits no bucket fails loudly rather than being passed over. + """ + problems = [] + chapters_dir = os.path.join(book_dir, "chapters") + source_lines = 0 + source_paragraphs = [] + source_figures = [] + source_pages = 0 + for name in sorted(n for n in os.listdir(chapters_dir) if n.endswith(".md")): + with io.open(os.path.join(chapters_dir, name), encoding="utf-8") as fh: + lines = fh.read().splitlines() + paragraph = [] + in_figure = False + fields = {} + last_field = None + for line in lines: + stripped = line.strip() + if not stripped: + if paragraph: + source_paragraphs.append(chr(10).join(paragraph)) + paragraph = [] + if in_figure: + in_figure = False + source_figures.append(fields) + fields = {} + continue + source_lines += 1 + if PAGE_RE.match(line): + if paragraph: + source_paragraphs.append(chr(10).join(paragraph)) + paragraph = [] + source_pages += 1 + continue + if FIGURE_RE.search(line): + if paragraph: + source_paragraphs.append(chr(10).join(paragraph)) + paragraph = [] + in_figure = True + fields = {} + continue + if in_figure: + if stripped == "--": + in_figure = False + source_figures.append(fields) + fields = {} + continue + if ":" in stripped: + key, value = stripped.split(":", 1) + if key.strip().upper() in FIELDS: + fields.setdefault(key.strip().upper(), value.strip()) + last_field = key.strip().upper() + continue + if fields and last_field: + fields[last_field] = (fields[last_field] + " " + stripped).strip() + continue + problems.append("a line inside a figure block fits no field: %s" + % stripped[:60]) + continue + if stripped.startswith("# ") or CITATION_RE.match(stripped): + continue + paragraph.append(stripped) + if paragraph: + source_paragraphs.append(chr(10).join(paragraph)) + if in_figure: + source_figures.append(fields) + + scan = _Scan() + scan.feed(html_text) + rendered_paragraphs = [scan.texts[k] for k in sorted(scan.texts) if k.startswith("t-")] + # a line that carries no words - the rule under a table's header - is + # not text, and the reader may show it or leave it out + wanted = [p for p in source_paragraphs if _norm(p)] + shown_words = [p for p in rendered_paragraphs if _norm(p)] + if len(shown_words) != len(wanted): + problems.append("the reader shows %d paragraphs, the notes have %d" + % (len(shown_words), len(wanted))) + else: + for index, (got, want) in enumerate(zip(shown_words, wanted)): + if _norm(got) != _norm(want): + problems.append("paragraph %d differs between the notes and the reader" % index) + break + rendered_figures = [scan.figures[k] for k in sorted(scan.figures)] + if len(rendered_figures) != len(source_figures): + problems.append("the reader shows %d figures, the notes have %d" + % (len(rendered_figures), len(source_figures))) + else: + for index, (got, want) in enumerate(zip(rendered_figures, source_figures)): + for key, cls in (("TYPE", "figtype"), ("CAPTION", "figcaption"), + ("CONTENT", "figdesc"), ("TEXT IN FIGURE", "figtext")): + source_value = (want.get(key) or "").strip() + shown = (got.get(cls) or "").strip() + if source_value.lower() in ("none", ""): + if shown: + problems.append("figure %d shows a %s the notes do not have" % (index, key)) + elif _norm(shown) != _norm(source_value): + problems.append("figure %d: the %s differs between the notes and the reader" + % (index, key)) + break + if len(scan.ids) != len(set(scan.ids)): + problems.append("the reader has an id that appears twice") + missing = sorted(set(scan.links) - set(scan.ids)) + if missing: + problems.append("%d links in the reader point at ids that are not there" % len(missing)) + for marker in ("http://", "https://", "file://", "/Users/"): + if marker in html_text: + problems.append("the reader refers to %s - it must stand on its own" % marker) + break + for entry in built["manifest"]: + path = os.path.join(out_dir, entry["derivative_file"]) + if not os.path.exists(path): + problems.append("a figure file is missing: %s" % entry["derivative_file"]) + continue + if _sha256(path) != entry["derivative_sha256"]: + problems.append("a figure file does not match its hash: %s" % entry["derivative_file"]) + return problems diff --git a/plugins/vochic03/document-library/pipeline/book2corpus/notes_gate.py b/plugins/vochic03/document-library/pipeline/book2corpus/notes_gate.py new file mode 100644 index 00000000..33213f7e --- /dev/null +++ b/plugins/vochic03/document-library/pipeline/book2corpus/notes_gate.py @@ -0,0 +1,821 @@ +"""The gate: is the reader the notes it was made from? + +This is a second, independent reading of the source. It is a line +classifier, not a paragraph builder: every line of every chapter file is +sorted into exactly one bucket, and the buckets must add up. Where the +builder's rules and this one's disagree, the disagreement is the finding. + +The rules, stated once: + + blank a line with nothing on it + heading the chapter title, "# something" + citation the line that says which book this is + page marker "=== PAGE 61 (PDF page 87) ===" + figure header a line that ends with "[FIGURE ...]" + figure field a "KEY: value" line inside a figure block, or a + continuation of the field above it + prose anything else, and prose is gathered into a segment that + ends at the next line that is not prose + unclassified anything that fits no bucket - a failure, never a shrug +""" +import io +import json +import os +import re +import unicodedata +from html.parser import HTMLParser + +from . import counts_line + +# the marker comes bare or with a note of how the page was read; both are +# the same marker, and a marker the gate does not know is a line that fits +# no bucket +PAGE_MARKER_RE = re.compile(r"^=== PAGE (.+?) \(PDF page (\d+)(?:;[^)]*)?\) ===\s*$") +FIGURE_HEADER_RE = re.compile(r"\[FIGURE ([^\]]*)\]\s*$") +CITATION_RE = re.compile(r"^Source:\s*(.+?)\s*$") +FIELDS = ("TYPE", "CAPTION", "CONTENT", "TEXT IN FIGURE", "SOURCE") +# the tags that never close: they must not be counted as nesting +VOID_TAGS = frozenset(("area", "base", "br", "col", "embed", "hr", "img", + "input", "link", "meta", "param", "source", "track", "wbr")) +FIELD_LABELS = {"LABEL": "Figure", "TYPE": "Type", "CAPTION": "Caption", + "CONTENT": "Description", "TEXT IN FIGURE": "Text printed in the figure"} +# what counts is a reference, not the word: a URL quoted in the book's own +# text is the book, not a reach-out of the reader +EXTERNAL_MARKERS = ('src="http', 'href="http', 'srcset="http', "url(http", + "@import", "file://", 'href="/Users', 'src="/Users', + " + + diff --git a/plugins/vochic03/document-library/pipeline/book2corpus/terms.py b/plugins/vochic03/document-library/pipeline/book2corpus/terms.py new file mode 100644 index 00000000..374af8f2 --- /dev/null +++ b/plugins/vochic03/document-library/pipeline/book2corpus/terms.py @@ -0,0 +1,475 @@ +#!/usr/bin/env python3 +"""book2corpus/terms.py - the terms of a book, and the rules they must pass. + +Written 26 Nov 2026 by MCode, following the ruling of Claude Opus 5.5 on +the corpus-wide term index (briefs 12, 13 and 14), and the coding practice +of the s2n repository: a header that says what the file is and where the +idea came from, output that is byte-for-byte the same on every run, and the +old file kept beside the new one. + +The principle under all of it: THE MODEL PROPOSES, CODE PROVES. A model +may say that a phrase is a term; every location, every definition span and +every occurrence in the index is found here, in the actual text, by code. +Nothing a model says is written into the index without a span this module +located. + +Three objects, and they are kept apart on purpose: + + a term a phrase as used in one book: its surface form, its + canonical form, where it was named, what kind it is + an occurrence where the term appears in its own book + a concept a set of terms in different books judged to be one sense + +The per-book list is the ground truth. A wrong merge in the concept layer +must never corrupt a book's own index. + +Two lists that are NOT terms, and are kept apart on purpose: + + the seeds what a book's own text offers: its headings, its captions + and its recurring phrases. They are hints for the model and + nothing else. A seed is never admitted to the index. + the rejected the names the model gave that did not survive the code: the + reason is written down with every one of them. +""" +import json +import os +import re + +from . import debris + +# the rules version. It is part of every key the stages compute, so a +# change to the rules invalidates what the rules produced, and nothing else. +RULES_VERSION = 4 + +# the corpus's own words, and the ones that are never terms +STOPWORDS = frozenset(""" +the a an and or but of in on at to for with without from by as is are was +were be been being it its this that these those there here their his her +our your my me him them us they he she we you i not no nor so if then than +because while when where which who whom whose what how why all any both each +few more most other some only own same too very can could may might must +will would shall should do does did done have has had having +one two three four five six seven eight nine ten first second third next +last new old good better best bad worse worst large small long short high +low early late full empty able unable +about per versus vs eg ie etc +figure table page chapter section part note notes source text see also +caption content type none placeholder value data +example examples definition definitions however therefore thus hence +""".split()) + +# the words that may not end a term: a term is "duty of care", not "care of", +# and it is not "bottom right" +HEAD_BLOCK = frozenset(""" +right left top bottom centre center middle front back side end edge +point points number numbers line lines list lists name names +area areas part parts kind kinds type types form forms order orders +""".split()) + +# the phrases that are a publisher, a place, or the furniture of a book +NON_TERM_PATTERNS = ( + "university press", " press ", " ltd", " inc", " publishing", + "routledge", "palgrave", "macmillan", "springer", "wiley", "oxford", + "harvard", "yale", "princeton", "cambridge", " et al", + "chapter ", "volume ", "edition ", "appendix ", "preface ", + "foreword ", "acknowledg", "glossary", "bibliograph", "references", +) + +# the words that carry a definition in a law code +DEFINITION_PATTERNS = ( + re.compile(r"\bmeans\b", re.I), + re.compile(r"\bhas the meaning (?:given|assigned)\b", re.I), + re.compile(r"\bincludes\b", re.I), + re.compile(r"\bfor the purposes of\b", re.I), + re.compile(r"\bshall (?:be deemed to|mean)\b", re.I), +) + +# a term is a phrase of one to six words +MAX_TERM_WORDS = 6 + + +def canonical(text): + """The form a term is compared by: folded, joined, without its ends.""" + text = debris.normalise(text) + for article in ("the ", "a ", "an "): + if text.startswith(article): + text = text[len(article):] + break + return text + + +def singular(word): + """The plain singular of a word, so plurals are one term. + + The rules are careful with the words that end in s and are not + plurals - "bias", "analysis", "stimulus", "hypothesis" - because + cutting their s made keys that the text could never match: + "adenovirus" was filed as "adenoviru" and "corpus callosum" as + "corpu callosum". A word that ends in "is", "us" or "ss" is left + alone, and so is one that ends in "as", because its plural takes an + "es" ("biases", "atlases"). + + The "ses" family needs three rules, not one: "biases" is "bias", + "synapses" is "synapse" and "processes" is "process". + """ + if len(word) > 4 and word.endswith("ies"): + return word[:-3] + "y" + if len(word) > 4 and word.endswith("ses"): + return word[:-2] + if len(word) > 3 and word.endswith("s") and not word.endswith("ss"): + return word[:-1] + return word + + +def canonical_form(text): + """The canonical form of a term: folded, singular, no punctuation.""" + words = canonical(text).split() + return " ".join(singular(word) for word in words) + + +def rule_filter(phrase): + """The last word. The model names a term; the rules decide. + + An empty string means the phrase passes. Anything else is the reason + it does not, and the reason is written down with the rejection. + """ + original = (phrase or "").strip() + if not original: + return "empty" + words = original.split() + if len(words) > MAX_TERM_WORDS: + return "length" + # the article is stripped for the comparison, but not for the rule: + # "the journal" is not a term and "journal" is + tokens = debris.normalise(original).split() + if not tokens: + return "empty" + if all(token in STOPWORDS for token in tokens): + return "rule_filter" + if tokens[0] in STOPWORDS: + return "rule_filter" + if tokens[-1] in STOPWORDS or tokens[-1] in HEAD_BLOCK: + return "rule_filter" + for token in tokens: + if token not in STOPWORDS and len(token) < 3: + # "al", "ir", "b", "e": the debris of a scan, not a term + return "rule_filter" + folded = " %s " % debris.normalise(original) + if debris.normalise(original) in debris.FIGURE_BOILERPLATE: + return "rule_filter" + for pattern in NON_TERM_PATTERNS: + if pattern in folded: + return "rule_filter" + return "" + + +def clean_caption(caption): + """The caption's own words, without the label in front of them. + + A caption names a concept (FIGURE 11.2 Speech problems in Broca's + aphasia), and the words after the label are the seed. How much of the + caption is the term is for the model to narrow and for the code to + check, so the seed keeps the caption's own words. + """ + text = (caption or "").strip() + folded = text.lower() + if folded in ("none", "caption none", "caption: none", "n/a", "not given"): + return "" + text = re.sub(r"^(?:caption|figure|table|fig|chart|plate)\s*[:.\-]\s*", "", + text, flags=re.I) + text = re.sub(r"^(?:FIGURE|TABLE|FIG|Chart|Plate)\s*\d+(?:[.\-]\d+)*\s*[:.\-]?\s*", + "", text, flags=re.I) + text = re.sub(r"\s+", " ", text).strip() + if not text or text.lower() in ("none", "caption none"): + return "" + words = [] + for word in text.split()[:8]: + stripped = word.strip(".,;:()\"'") + if stripped: + words.append(stripped) + return " ".join(words) + + +def ngrams(text, size=4): + """The phrases of a text, shortest first.""" + words = re.findall(r"[A-Za-z][A-Za-z'-]*", text or "") + out = [] + for start in range(len(words)): + for length in range(1, size + 1): + if start + length > len(words): + break + phrase = " ".join(words[start:start + length]) + out.append((phrase, start, length)) + return out + + +def frequent_phrases(text, minimum=3, limit=60): + """The phrases a book uses often: the seeds, never the terms. + + A seed is a hint. It is written to index/seeds/ and shown to the model + as a hint, and it is never admitted to the index on its own. + """ + counts = {} + for phrase, _start, length in ngrams(text): + if length < 2: + continue + words = phrase.lower().split() + if words[0] in STOPWORDS: + continue + if words[-1] in STOPWORDS: + continue + counts[phrase] = counts.get(phrase, 0) + 1 + ranked = [(count, phrase) for phrase, count in counts.items() if count >= minimum] + ranked.sort(key=lambda pair: (-pair[0], pair[1])) + return [(phrase, count) for count, phrase in ranked[:limit]] + + +# the sentences that define, even when the term is not in quotes +DEFINITION_MARKERS = ( + re.compile(r"\bin this (?:act|context|section|schedule|part|article|order)\b", re.I), + re.compile(r"\bfor the purposes of\b", re.I), + re.compile(r"\bherein\b", re.I), + re.compile(r"\bin this book\b", re.I), +) + + +# a sentence is not cut after an abbreviation: "Art. 212" is one sentence +ABBREVIATIONS = re.compile( + r"\b(?:Art|Sec|No|Rep|Sen|Col|Pp|Vol|Ch|Cl|Rr|Ord|Reg)\.$", re.I) + + +def sentences_of(text): + """The sentences of a paragraph, with where each one begins.""" + out = [] + at = 0 + for piece in re.split(r"(?<=[.;])\s+", text or ""): + out.append((piece, at)) + at += len(piece) + 1 + # the pieces that follow an abbreviation are put back together + merged = [] + for piece, start in out: + if merged and ABBREVIATIONS.search(merged[-1][0].rstrip()): + previous, previous_at = merged.pop() + merged.append((previous + " " + piece, previous_at)) + else: + merged.append((piece, start)) + return merged + + +def definition_span(sentence): + """Where the defined term sits in the sentence that defines it. + + A law code defines a term by quoting it and saying what it means: the + term "strike" means a cessation of work. A sentence that merely uses + the word "means" is not a definition, and the words before it are not + a term - "it is by no means a handmaiden of the law" defines nothing. + """ + found = re.search( + r"[\"\u201c\u2018]([A-Za-z][A-Za-z' \-]{1,60}?)[\"\u201d\u2019']\s+(?:herein\s+)?means\b", + sentence, re.I) + if found: + return found.group(1).strip(), found.start(1), found.end(1) + if any(marker.search(sentence) for marker in DEFINITION_MARKERS): + found = re.search( + r"\b([A-Za-z][A-Za-z' \-]{1,60}?)\s+(?:herein\s+)?means\b", + sentence, re.I) + if found: + return found.group(1).strip(), found.start(1), found.end(1) + return None, None, None + + +def law_terms(paragraphs): + """The terms of a law code: the ones it defines. + + A law code defines its terms, so the code alone knows them. The + phrases a code uses often are the same noise a study-notes book has, + and they are not admitted. + """ + defined = {} + for record in paragraphs: + body = (record.get("text") or "") + if record.get("kind") not in (None, "body"): + continue + scope = " / ".join(record.get("section_path") or []) + for sentence, at in sentences_of(body): + if not any(pattern.search(sentence) for pattern in DEFINITION_PATTERNS): + continue + term, start, end = definition_span(sentence) + if not term: + continue + term = term.strip() + if len(term) < 3 or len(term.split()) > MAX_TERM_WORDS: + continue + key = canonical_form(term) + if not key: + continue + if rule_filter(term): + # the rules have the last word here as well: a span that + # is not a term is not a term, whatever the code said + continue + defined.setdefault(key, { + "term_id": "law:%s" % key, + "label": term, + "canonical": key, + "kind": "defined", + "scope": scope, + "definition": { + "paragraph": record.get("id"), + "chapter": record.get("chapter"), + "page": record.get("page_start"), + "span": [at + start, at + end], + "sentence": sentence.strip()[:400], + }, + }) + return sorted(defined.values(), key=lambda row: row["term_id"]) + + + +def label_words(row): + """The book's own words for a term, as the scan reads them. + + The canonical is singular and drops the leading article; the book's + own spelling is neither, and the text is written in the book's own + spelling. The words are taken with the tokeniser the text is read + with, so the two sides of a match agree on what a word is: a letter + the book writes with a combining mark, or a possessive, is one word + and not two. + """ + return tuple(debris.words_of(row.get("label") or "")) + + +# the routes a term is looked for under, and the order they are tried +ROUTE_RANK = {"canonical": 0, "surface": 1, "head": 2} + +# the gap between two words of a term may hold punctuation, but not a +# word, not a line break and not much of anything +GAP_MAX = 12 +WORDY = re.compile(r"[^\W_]|\d", re.UNICODE) +ONE_LETTER = re.compile(r"^[^\W\d]$", re.UNICODE) +DIGITS = re.compile(r"^\d+$") + + +def term_table(rows): + """The terms of a book as a table: first word -> the phrases and their terms. + + A term is looked for under three phrases: its canonical one, which + is singular; the book's own spelling; and the head phrase, which is + the canonical without its parenthetical alias. The order is fixed, so + the route that found a term is the first one that matched anywhere. + + A phrase maps to every term that has it, so "acetylcholine" and + "acetylcholine (ACh)" do not overwrite each other. + """ + table = {} + for row in rows: + term_id = row["term_id"] + canonical = row.get("canonical") or "" + seen = set() + for route, text in (("canonical", canonical), + ("surface", row.get("label") or ""), + ("head", canonical.split("(")[0])): + words = tuple(debris.words_of(text)) + if not words or words in seen: + continue + seen.add(words) + table.setdefault(words[0], []).append((words, term_id, route)) + return table + + +def _gap_allows(gap, before): + """May two words of a term stand with this gap between them? + + Punctuation is allowed: an initial ("Donald O. Hebb"), a number + ("Article 17.1"), a comma ("Apex CoVantage, LLC"), a bracket + ("unconditioned stimulus (UCS)"). A word is not: "working. + Memory" is two things and not one, so a full stop that ends a word + of more than one letter is a sentence's end and the gap holds it. + """ + if len(gap) > GAP_MAX: + return False + if "\n" in gap or "\r" in gap: + return False + if WORDY.search(gap): + return False + if "." in gap and not (ONE_LETTER.match(before) or DIGITS.match(before)): + return False + return True + + +def scan_terms(text, table): + """Every place a term is found, with the offset and the route. + + The words of the text are read once, with their offsets, and the table + is looked up at every word. A term is found under the first route + that matches it anywhere in the text, so the route is a property of + the term and not of where it was found. + """ + words = debris.tokenise_spans(text) + found = {} + for start in range(len(words)): + options = table.get(words[start][0]) + if not options: + continue + for phrase, term_id, route in options: + length = len(phrase) + if start + length > len(words): + continue + if not all(words[start + step][0] == phrase[step] + for step in range(length)): + continue + apart = False + for step in range(length - 1): + gap = text[words[start + step][2]:words[start + step + 1][1]] + if not _gap_allows(gap, words[start + step][0]): + apart = True + break + if apart: + continue + found.setdefault(term_id, {}).setdefault(route, []).append( + words[start][1]) + for term_id in sorted(found): + routes = found[term_id] + best = min(routes, key=lambda name: ROUTE_RANK[name]) + for offset in sorted(routes[best]): + yield term_id, offset, best + + +def occurrence_counts(text, terms): + """How often each term appears in its own book. + + The same scan the evidence uses, so the reader's counts and the + judge's passages cannot disagree. + """ + counts = {} + if not terms: + return counts + table = term_table(terms) + for term_id, _offset, _route in scan_terms(text, table): + counts[term_id] = counts.get(term_id, 0) + 1 + return counts + + +def write_terms(path, terms): + """The terms of a book, written the way the corpus writes everything: + sorted, one object a line, the keys in one order.""" + terms = sorted(terms, key=lambda row: row["term_id"]) + directory = os.path.dirname(path) + if directory: + os.makedirs(directory, exist_ok=True) + with open(path, "w", encoding="utf-8") as fh: + for row in terms: + fh.write(json.dumps(row, sort_keys=True, ensure_ascii=False) + "\n") + return len(terms) + + +def read_terms(path): + """The terms of a book, read back.""" + if not os.path.exists(path): + return [] + out = [] + with open(path, encoding="utf-8") as fh: + for line in fh: + line = line.strip() + if line: + out.append(json.loads(line)) + return out diff --git a/plugins/vochic03/document-library/pipeline/book2corpus/verify.py b/plugins/vochic03/document-library/pipeline/book2corpus/verify.py new file mode 100644 index 00000000..3e1a6286 --- /dev/null +++ b/plugins/vochic03/document-library/pipeline/book2corpus/verify.py @@ -0,0 +1,411 @@ +"""The checks that need the artefacts, and the list a reviewer should read. + +Three things live here: + +- the index oracle: the book's own tables of cases point at paragraphs, and + the case name should occur in the paragraph they point at. The table is + evidence about the corpus, not authority over it: a name that is not in + the paragraph is a suspect to read, never a paragraph to invent. +- the render gate: the text in the reader must be the text in the corpus, + paragraph for paragraph. +- the suspect report: everything the gates found, in one ordered list, so + that a reviewer reads tens of items and not thousands. +""" +import json +import os +import re +from collections import Counter +from html.parser import HTMLParser + +from . import counts_line +from . import tables + +STOPWORDS = {"the", "and", "case", "re", "of", "in", "on", "at", "to", "a", "an", + "vs", "v"} +# the tags that never close: they must not be counted as nesting +VOID_TAGS = frozenset(("area", "base", "br", "col", "embed", "hr", "img", + "input", "link", "meta", "param", "source", "track", "wbr")) +SEVERITY = {"fail": 3, "warn": 2, "pass": 1, "reported": 0, "skip": 0} +MIN_PARSE_RATE = 0.5 +CONFIRMED_RATE = 0.9 +NEAR_RATE = 0.75 +TRUSTWORTHY_RATE = 0.9 + + +def _norm(text): + norm = (text or "").lower() + norm = re.sub(r"[^a-z0-9' ]+", " ", norm) + return re.sub(r"\s+", " ", norm).strip() + + +NAME_RE = re.compile(r"^(.*?)(?=\s*\[|\s*\(\s*\d|\s+\d{4}\b|\s*\d{1,2}\s+[A-Z]{2,3}\b)") +DOT_LEADERS = re.compile(r"\.{2,}") + + +def _name_of(entry): + """The case name in a table entry, without its citation.""" + found = NAME_RE.match(entry or "") + return (found.group(1) if found else (entry or "")).strip() + + +def _key_words(entry): + """The words of a table entry that identify the case it names. + + Only the name counts: the citation beside it ("[1993] 1 IR 359") says + where the case was reported, not which case it is. + """ + words = [] + for word in re.findall(r"[a-z][a-z'-]{3,}", _name_of(entry).lower()): + if word in STOPWORDS or word in words: + continue + words.append(word) + return words[:3] + + +def _legible(entry): + """Can this entry be read as a case name at all? + + A line the scan turned into dot leaders and fragments names nothing, + and cannot judge anything. + """ + if DOT_LEADERS.search(entry or ""): + return False + return bool(_key_words(entry)) + + +def index_oracle(book): + """Do the names in the book's own tables occur in the paragraphs they cite?""" + from . import qa + lines = tables.table_lines(book) + rows = tables.table_rows(book) + known = {} + for para in book.paragraphs: + marker = getattr(para, "native_marker", None) + if para.kind == "body" and marker: + known[marker] = para + order = [p for p in book.paragraphs if p.kind == "body"] + position = {id(p): i for i, p in enumerate(order)} + checked = confirmed = near = absent = unresolved = skipped = 0 + suspects = [] + for row in rows: + keys = _key_words(row["entry"]) + if not _legible(row["entry"]): + skipped += 1 + continue + for ref in row["refs"]: + checked += 1 + para = known.get(ref) + if para is None: + unresolved += 1 + suspects.append({"entry": row["entry"], "ref": ref, + "why": "no paragraph carries that number"}) + continue + text = _norm(para.text) + if all(key in text for key in keys): + confirmed += 1 + continue + here = any(key in text for key in keys) + index = position.get(id(para), 0) + beside = False + close = False + for step in (1, 2, 3): + for other in (order[max(0, index - step):index] + + order[index + 1:index + 1 + step]): + if any(key in _norm(other.text) for key in keys): + if step == 1: + beside = True + else: + close = True + break + if beside or close: + break + if here or beside: + near += 1 + suspects.append({"entry": row["entry"], "ref": ref, + "why": "the name is in the paragraph or beside it"}) + elif close: + # a few paragraphs away: the reference may be off, or a + # paragraph may have been split in the wrong place + absent += 1 + suspects.append({"entry": row["entry"], "ref": ref, + "why": "the name is a few paragraphs away"}) + else: + absent += 1 + suspects.append({"entry": row["entry"], "ref": ref, + "why": "the name is not in the paragraph"}) + parsed_lines = len({(id(page), line.text) for page, line in lines + if tables.parse_table_line(line.text)}) + parse_rate = (parsed_lines / len(lines)) if lines else 0.0 + value = {"table_lines": len(lines), "rows": len(rows), + "parsed_lines": parsed_lines, "parse_rate": round(parse_rate, 4), + "rows_without_a_readable_name": skipped, + "checked": checked, "confirmed": confirmed, "near": near, + "absent": absent, "unresolved": unresolved} + if not checked: + return qa.Gate("index_oracle", value, {"confirmed_rate": CONFIRMED_RATE}, + "skip", 0, + "the book has no table of cases to check the paragraphs against", + suspects=suspects, suspect_count=len(suspects)) + rate = (confirmed + near) / checked + value["rate"] = round(rate, 4) + if rate < TRUSTWORTHY_RATE: + # the table's own reading is too poor to hold the conversion to a + # rate: it is reported, not gated. On a scan of a book of case + # tables about half the names sit in the paragraph the table points + # at, and the misses are the table's reading rather than the + # conversion's. + return qa.Gate("index_oracle", value, {"confirmed_rate": CONFIRMED_RATE}, + "reported", checked, + "the tables of cases are read too badly to judge the " + "paragraphs: %d of %d cited names are in the paragraph " + "they cite, so the measure is reported, not gated" + % (confirmed + near, checked), + suspects=suspects, suspect_count=len(suspects)) + status = "pass" if rate >= CONFIRMED_RATE else ("warn" if rate >= NEAR_RATE else "fail") + return qa.Gate("index_oracle", value, {"confirmed_rate": CONFIRMED_RATE}, + status, checked, + "%d of %d cited names were found in the paragraph they cite" + % (confirmed + near, checked), + suspects=suspects, suspect_count=len(suspects)) + + +class _ReaderScan(HTMLParser): + """What the reader actually shows: its frame and its blocks. + + The frame matters as much as the text. A reader with the right + paragraphs and the wrong title, or with an empty contents list, is + broken in a way that a comparison of the text alone cannot see. + """ + + def __init__(self): + super().__init__(convert_charrefs=True) + self.title = "" + self.counts = [] # one entry per data-gate="counts" element + self.nav_hrefs = [] + self.ids = [] + self.hrefs = [] + self.units = [] # (id, text) + self.classes = Counter() + self.tags = Counter() + self._in_title = False + self._gate_depth = 0 + self._buf = None + self._open = None + self._open_tag = None + + def handle_starttag(self, tag, attrs): + found = dict(attrs) + self.tags[tag] += 1 + classes = (found.get("class") or "").split() + for name in classes: + self.classes[name] += 1 + if found.get("id"): + self.ids.append(found["id"]) + href = found.get("href") or "" + if href.startswith("#"): + self.hrefs.append(href[1:]) + if "navitem" in classes: + self.nav_hrefs.append(href[1:]) + if tag == "title": + self._in_title = True + if self._gate_depth: + if tag not in VOID_TAGS: + self._gate_depth += 1 + elif found.get("data-gate") == "counts": + # the counts are bound by an attribute, not by a class name: + # the gate must not break when the styling changes + self._gate_depth = 1 + self._buf = [] + if "data-para" in found and self._open is None: + self._open = {"id": found["data-para"], "text": []} + self._open_tag = tag + + def handle_endtag(self, tag): + if self._open is not None and tag == self._open_tag: + self.units.append((self._open["id"], "".join(self._open["text"]))) + self._open = None + self._open_tag = None + if tag == "title": + self._in_title = False + if self._gate_depth: + self._gate_depth -= 1 + if self._gate_depth == 0: + self.counts.append(" ".join("".join(self._buf).split())) + self._buf = None + + def handle_data(self, data): + if self._in_title: + self.title += data + if self._gate_depth and self._buf is not None: + self._buf.append(data) + if self._open is not None: + self._open["text"].append(data) + + +def _markdown_units(corpus_dir): + """The paragraphs the chapter files carry, by id, and their headings. + + A heading is written as a heading line, not as a numbered paragraph, + so it is counted by its text. + """ + found = {} + headings = set() + chapters = os.path.join(corpus_dir, "chapters") + if not os.path.isdir(chapters): + return found, headings + for name in sorted(os.listdir(chapters)): + if not name.endswith(".md"): + continue + with open(os.path.join(chapters, name), encoding="utf-8") as fh: + for line in fh: + if line.startswith("#"): + headings.add(line.lstrip("#").strip()) + continue + if not line.startswith("["): + continue + end = line.find("]") + if end < 0: + continue + found[line[1:end]] = line[end + 1:].strip() + return found, headings + + +def _outline_paragraph_ids(outline): + """The paragraphs the contents list is made of, in order.""" + out = [] + for ch in (outline or {}).get("chapters", []): + out.extend(p["id"] for p in ch.get("paragraphs", [])) + for div in ch.get("divisions", []): + out.extend(p["id"] for p in div.get("paragraphs", [])) + for sub in div.get("subsections", []): + out.extend(p["id"] for p in sub.get("paragraphs", [])) + return out + + +def render_conservation(book, html_text, records, book_meta, counts, outline, + corpus_dir=None): + """The reader must show the corpus: its text, its frame and its blocks. + + The text is compared paragraph by paragraph, not by length: a + concatenation hides a dropped paragraph balanced by a duplicated one. + The frame is compared too - the title, the counts, the contents list, + the kinds of block - because a reader with the right text and an empty + contents list is broken in a way that comparing the text cannot see. + """ + from . import qa + scan = _ReaderScan() + scan.feed(html_text) + rendered = {} + for pid, text in scan.units: + rendered.setdefault(pid, _norm(text)) + problems = [] + + for rec in records: + want = _norm(rec.get("text")) + got = rendered.get(rec["id"]) + if got is None: + problems.append({"id": rec["id"], "why": "not in the reader"}) + elif got != want: + problems.append({"id": rec["id"], "why": "the text differs in the reader"}) + + title = (book_meta or {}).get("title") or "" + if not scan.title.strip(): + problems.append({"id": "reader", "why": "the reader has no title"}) + elif scan.title.strip() != title.strip(): + problems.append({"id": "reader", + "why": "the reader's title is not the book's title"}) + counts = counts or {} + want_counts = counts_line.law(counts) + if len(scan.counts) != 1: + problems.append({"id": "reader", + "why": "the reader shows %d counts lines, it should show one" + % len(scan.counts)}) + elif scan.counts[0] != want_counts: + problems.append({"id": "reader", + "why": "the reader's counts are not the corpus's counts"}) + + expected_nav = _outline_paragraph_ids(outline) + if scan.nav_hrefs != expected_nav: + problems.append({"id": "reader", + "why": "the contents list does not match the outline: " + "%d entries against %d" % (len(scan.nav_hrefs), + len(expected_nav))}) + known = set(scan.ids) + missing = sorted(set(t for t in scan.hrefs if t not in known)) + if missing: + problems.append({"id": "reader", + "why": "%d links point at ids that are not there" % len(missing)}) + duplicates = sorted(set(i for i in scan.ids if scan.ids.count(i) > 1)) + if duplicates: + problems.append({"id": "reader", + "why": "%d ids appear twice" % len(duplicates)}) + + quotations = sum(1 for r in records if r.get("block_kind") == "quotation") + tables = sum(1 for r in records if r.get("block_kind") == "table") + if scan.tags.get("blockquote", 0) != quotations: + problems.append({"id": "reader", + "why": "the reader shows %d quotations, the corpus has %d" + % (scan.tags.get("blockquote", 0), quotations)}) + if scan.classes.get("tl", 0) != tables: + problems.append({"id": "reader", + "why": "the reader shows %d table lines, the corpus has %d" + % (scan.classes.get("tl", 0), tables)}) + notes = len(getattr(book, "footnotes", [])) + owned = sum(len(rec.get("footnote_ids", []) or []) for rec in records) + if scan.classes.get("note", 0) != notes: + problems.append({"id": "reader", + "why": "the reader shows %d notes, the corpus has %d" + % (scan.classes.get("note", 0), notes)}) + if scan.classes.get("note-back", 0) != owned: + problems.append({"id": "reader", + "why": "%d notes have no way back to their paragraph" + % (owned - scan.classes.get("note-back", 0))}) + + chapter_records = 0 + if corpus_dir: + markdown, headings = _markdown_units(corpus_dir) + chapter_records = len(markdown) + for rec in records: + if rec.get("kind") == "heading": + if rec.get("text") not in headings: + problems.append({"id": rec["id"], + "why": "the heading is not in the chapter files"}) + continue + got_md = markdown.get(rec["id"]) + if got_md is None: + problems.append({"id": rec["id"], "why": "not in the chapter files"}) + elif _norm(got_md) != _norm(rec.get("text")): + problems.append({"id": rec["id"], + "why": "the text differs in the chapter files"}) + + value = {"records": len(records), "reader_units": len(rendered), + "reader_title": scan.title.strip(), + "reader_counts": scan.counts[0] if scan.counts else "", + "contents_entries": len(scan.nav_hrefs), + "quotations": scan.tags.get("blockquote", 0), + "table_lines": scan.classes.get("tl", 0), + "notes_shown": scan.classes.get("note", 0), + "links": len(scan.hrefs), + "chapter_records": chapter_records, + "problems": len(problems)} + status = "pass" if not problems else "fail" + return qa.Gate("render_conservation", value, {"mismatches": 0}, status, + len(records), + "" if not problems else + "%d things about the reader do not match the corpus" % len(problems), + suspects=problems[:50], suspect_count=len(problems)) + + +def collect_suspects(gates): + """Everything the gates found, worst first.""" + out = [] + for gate in gates: + items = getattr(gate, "suspects", None) or [] + count = getattr(gate, "suspect_count", None) or len(items) + if not count: + continue + out.append({"gate": gate.name, "status": gate.status, + "severity": SEVERITY.get(gate.status, 1), + "count": count, "items": items[:50]}) + out.sort(key=lambda row: (-row["severity"], -row["count"])) + return out diff --git a/plugins/vochic03/document-library/pipeline/file-manifest.json b/plugins/vochic03/document-library/pipeline/file-manifest.json new file mode 100644 index 00000000..768a8be8 --- /dev/null +++ b/plugins/vochic03/document-library/pipeline/file-manifest.json @@ -0,0 +1,558 @@ +{ + "files": [ + { + "bytes": 2940, + "path": "PROVENANCE.md", + "sha256": "070e6a27947f560e95cae6a6953d224cffbdc85634c4171faa9015c2f10c49f9" + }, + { + "bytes": 158049, + "path": "icon-dark.png", + "sha256": "0fd55e85743af48e878be6f1a8e2b6198c967570026aee73132561f24c2712ac" + }, + { + "bytes": 127527, + "path": "icon.png", + "sha256": "888547c34c661e12f25a98252a25b8745d80b0a836861cc71ab67e5908d0d088" + }, + { + "bytes": 3107, + "path": "pipeline/settings/pipeline.json", + "sha256": "dcd3d21c7695da36ebccdcd5a4dc6093b608df8c1143757b6f89d73cab071c69" + }, + { + "bytes": 1944, + "path": "pipeline/tools/register_prompt.py", + "sha256": "63a627b8deb41154b77550bd97eeeb6e2476356bfdcebcc8a3402fbebfbd3666" + }, + { + "bytes": 6190, + "path": "pipeline/tools/scaffold_library.py", + "sha256": "dc8264e2e2e3582189b6c4c72433199d653c8afcbf31be1d9a16b6e2409aafa7" + }, + { + "bytes": 2700, + "path": "pipeline/tools/verify_vendored.py", + "sha256": "1d3c1a1174d7ebfe0bd55b9e5e785ca883cd91eb82636dcbc2c5e99d076accb7" + }, + { + "bytes": 3367, + "path": "pipeline/tools/write_readme.py", + "sha256": "eb1c22f9fbd35cd390e0476352bc214be7f3bbe195ee6da4b5504ad7f685b30c" + }, + { + "bytes": 0, + "path": "pipeline/tests/__init__.py", + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + { + "bytes": 4471, + "path": "pipeline/tests/fixtures.py", + "sha256": "e9f3a7218e71e0af052c6bc0a039fec2db246b6185329cb77bcc29f490496306" + }, + { + "bytes": 22116, + "path": "pipeline/tests/test_admission.py", + "sha256": "8c6aabd1c64da9985790fea562193f636c5a584b8a660b75a77d22a607d75325" + }, + { + "bytes": 4554, + "path": "pipeline/tests/test_answers_reproduced.py", + "sha256": "0b53164ad19c5e455f349191798fb4f0ecc49078b1b73d5a9a85fc9607f61593" + }, + { + "bytes": 3493, + "path": "pipeline/tests/test_build.py", + "sha256": "b3fcb73b158bf376f3bd213aa6140b91e7b0204771598448371923de5e4d3741" + }, + { + "bytes": 10672, + "path": "pipeline/tests/test_corpus_pipeline.py", + "sha256": "b516022491fa557b4e397be2048da322552a06ac0f829a1c3714b5b6fadacd25" + }, + { + "bytes": 7263, + "path": "pipeline/tests/test_debris.py", + "sha256": "ee977207cd6d987c8942d4616bbb876d4b2bda8fe60ec61c6547bb24424d32cb" + }, + { + "bytes": 8091, + "path": "pipeline/tests/test_forms.py", + "sha256": "f138142bcd5b5c1892ed3fef0d2ed9cb1295ca7d6367ab2f45306847d89ed101" + }, + { + "bytes": 12061, + "path": "pipeline/tests/test_index.py", + "sha256": "16a4079c2c2df4e5c20096e8d949bafb07475a90835a0d69f918bf02652786dc" + }, + { + "bytes": 21270, + "path": "pipeline/tests/test_inventory_identity.py", + "sha256": "72903a9448a255cfdad5c129f6f869fafb68879d8d267fca041cbe62b2d2aef5" + }, + { + "bytes": 7176, + "path": "pipeline/tests/test_judge_escalation.py", + "sha256": "d15e20608a83c0ee610e55d89468d18baf00d8f02df5e234cf0db273fd98b80f" + }, + { + "bytes": 8114, + "path": "pipeline/tests/test_judge_reuse.py", + "sha256": "f3a4b42f18171285381bc085b5aa3f763e3947c1267a45ca249ddfac1f453a0b" + }, + { + "bytes": 5563, + "path": "pipeline/tests/test_matching.py", + "sha256": "7129ac93cad153f0a629589bf7e67cfa57afe3eed19cf27712886e772937a2b7" + }, + { + "bytes": 5478, + "path": "pipeline/tests/test_missing_forms.py", + "sha256": "d4eb4ee121f4c12f20ad07d4de541d879cb222ce66458bac85d5d3343ff2c789" + }, + { + "bytes": 3825, + "path": "pipeline/tests/test_pipeline.py", + "sha256": "31dfcd27355639a0d2923f1ced2ac760818e48fb2aa6e1b4dfbfecf77632fdab" + }, + { + "bytes": 23198, + "path": "pipeline/tests/test_projection.py", + "sha256": "338e12731fc518f774f2db430f0f5cab81125cbf2293e979c7cfaedb7725b847" + }, + { + "bytes": 4929, + "path": "pipeline/tests/test_read_packets.py", + "sha256": "bce97b6bd6aca4b998b02fd1ea58b36d894d3df72349b11ec855dacaee2cb413" + }, + { + "bytes": 5607, + "path": "pipeline/tests/test_read_score.py", + "sha256": "e7760513b2f0dab7d4ef8332388bed0b1f0c4358b6f8a7a64ff35e341176d257" + }, + { + "bytes": 1564, + "path": "pipeline/tests/test_scrub.py", + "sha256": "4106d9f190fcb83b6275113e8c91240c10460b46df4855781ff6f0db68e67031" + }, + { + "bytes": 5206, + "path": "pipeline/tests/test_stamp.py", + "sha256": "76fedb6044f80910a05cc0e15ab7712a09d420f72e6c96fe9417dbc71ea0a67d" + }, + { + "bytes": 628, + "path": "pipeline/tests/test_tool.py", + "sha256": "a58464903faef59a0e27c4bfb5f36423403c82b02abf09fa3111a5d7d537e166" + }, + { + "bytes": 99, + "path": "pipeline/book2corpus/__init__.py", + "sha256": "867d36fb3d5bc07341819ab6059874971f197b08e03b3c38fa7cf7ccd41fd59e" + }, + { + "bytes": 24235, + "path": "pipeline/book2corpus/admission.py", + "sha256": "559fcb4513497c0a1f10f1c26d3a18de8730213e67a082517b343c4026d561a4" + }, + { + "bytes": 6112, + "path": "pipeline/book2corpus/assignment.py", + "sha256": "12a5f9341c3edcb173ca94992fbeecd3a59574689b2015ffc597c177086e8817" + }, + { + "bytes": 5919, + "path": "pipeline/book2corpus/batch.py", + "sha256": "33c679c99abdda6c6f542a6f64b77f1b882a078908ffce20f13b78dc9eada373" + }, + { + "bytes": 16722, + "path": "pipeline/book2corpus/book.py", + "sha256": "ad88074c922fdd6384f7a4f94033c1aac98e7d5951574dc5e2014188a68c1301" + }, + { + "bytes": 17835, + "path": "pipeline/book2corpus/cli.py", + "sha256": "090af9dddbfcf981bfbdb8af54f6d1ef4f3d0b4a054fd6d89b0aedbb77911f4e" + }, + { + "bytes": 1626, + "path": "pipeline/book2corpus/counts_line.py", + "sha256": "f58ae9210f31489b08f7bc20c7a9f0317dc619a8c6e62ce44bad39ada7f6ea14" + }, + { + "bytes": 10262, + "path": "pipeline/book2corpus/debris.py", + "sha256": "7276348347d5c33807656340eb93f3aa92e7b59d9f92a6b0cd8f06260d8e9104" + }, + { + "bytes": 23644, + "path": "pipeline/book2corpus/digital.py", + "sha256": "fa5f502a31370111be58c1195ce7dafb8ae6022fa514f4c0b7fc9d05426fda9e" + }, + { + "bytes": 18109, + "path": "pipeline/book2corpus/emit.py", + "sha256": "23e05df29a4b0fba2e6b964dcc4f1fadb17ed209a800c5c55ac8da6e5b5608da" + }, + { + "bytes": 35137, + "path": "pipeline/book2corpus/figures.py", + "sha256": "9a591fb20f807260a0d34bdbbac8c9498de2e061a1dfdd88e4ce1907111dc321" + }, + { + "bytes": 16949, + "path": "pipeline/book2corpus/html.py", + "sha256": "6454f88d91a8c6d90c448a2dafd92873f3493c7c8f919231f41e8f452b06c654" + }, + { + "bytes": 4584, + "path": "pipeline/book2corpus/ids.py", + "sha256": "4e4ce63f8197d1d53c9675ca5657058375db64f1df8d05f31680101ea8a0458a" + }, + { + "bytes": 4504, + "path": "pipeline/book2corpus/index_block.py", + "sha256": "f080438eba3d1cbd6ed444c1400251e3fbeb9841c5dd0bb5071193eae099a275" + }, + { + "bytes": 5951, + "path": "pipeline/book2corpus/ingest.py", + "sha256": "b4401324a8e3cd6f9fd4e92b2bc3b629a6045d2a9fc529add139731c1828521c" + }, + { + "bytes": 2584, + "path": "pipeline/book2corpus/ir.py", + "sha256": "b5704fc03fb528b2698505edc50976934eeb114ccc1124b707ad611a6c92b633" + }, + { + "bytes": 25953, + "path": "pipeline/book2corpus/judge.py", + "sha256": "6d0d6b5d945e93ae341ab394f89440cf49efc564c796b1f013e07efa64b1117b" + }, + { + "bytes": 7000, + "path": "pipeline/book2corpus/layout.py", + "sha256": "957d77de7ecad834f6a0b1ec1996e9f0fea3d6e49b4304c84be88180a39b6b68" + }, + { + "bytes": 57976, + "path": "pipeline/book2corpus/notes.py", + "sha256": "b7b610f18d430654ac733cff25974dbd7f6c44ebb21a09d0bce3ff4c5763a10f" + }, + { + "bytes": 36446, + "path": "pipeline/book2corpus/notes_gate.py", + "sha256": "28a9949d560b86673b7118df838291efe242839a6060a4ecbde8ef18a61e9921" + }, + { + "bytes": 15465, + "path": "pipeline/book2corpus/pipeline.py", + "sha256": "a64f62779becf10a0948cddb254ad64d314d0d53d5bf1d03b48f1cf3260de4d7" + }, + { + "bytes": 6788, + "path": "pipeline/book2corpus/profile.py", + "sha256": "638a4abf3b519dd9d4f6da49a54b89e2d2805b2b5d9d464d131ac678927d6a24" + }, + { + "bytes": 25348, + "path": "pipeline/book2corpus/projection.py", + "sha256": "8bdb12cd8c99c1aeb5c71bf7eba88554b9036f788786b888bfdc245661a94393" + }, + { + "bytes": 1913, + "path": "pipeline/book2corpus/provenance.py", + "sha256": "9ae314eaa61a7d0ab3c116d9f852d8bf59b2a3b86ecb3978cdb24c8b0ea41a23" + }, + { + "bytes": 25894, + "path": "pipeline/book2corpus/qa.py", + "sha256": "94f0ca73815c9a59b68a603bbdf0346e89f95775e4ca46acc6cf79463a736765" + }, + { + "bytes": 4827, + "path": "pipeline/book2corpus/readscore.py", + "sha256": "356cadd0f6423f0b787118c4106f27d116770a1c12572056d7e405771e49d025" + }, + { + "bytes": 2648, + "path": "pipeline/book2corpus/scrub.py", + "sha256": "9e28553cfbacb89cf2e00b52c7ff270b41f9b9e91807587719682d7067f8b966" + }, + { + "bytes": 7859, + "path": "pipeline/book2corpus/selfcheck.py", + "sha256": "6a14614b04e67a430b5e482df329769eebe254cc953fc17c4a0955cdbe30f17b" + }, + { + "bytes": 7443, + "path": "pipeline/book2corpus/stamp.py", + "sha256": "c7476a15ecda077e01817a0e133a6bbfc2c1c7fc805f6ea9feef859e57950986" + }, + { + "bytes": 10975, + "path": "pipeline/book2corpus/structure.py", + "sha256": "458bd8773a92246699e39d108cd3e4a64bca3de286d2f0dabc0ee32e0ff0016a" + }, + { + "bytes": 2900, + "path": "pipeline/book2corpus/tables.py", + "sha256": "9a5a8e54e7129905a46b90fd02fda878ae16303b868af08d442e66a936555edc" + }, + { + "bytes": 18126, + "path": "pipeline/book2corpus/terms.py", + "sha256": "b9ee80b32389bfefcd5997a36472f63f9ec0481265f39069706043198fa90697" + }, + { + "bytes": 17350, + "path": "pipeline/book2corpus/verify.py", + "sha256": "d32182c966048f4011dae1c8c41baaf724855ee18875b3ed234c280049edfaf2" + }, + { + "bytes": 22332, + "path": "pipeline/book2corpus/templates/reader.head.html", + "sha256": "1f520513877c905d3a13736ee4d74fba06dfec12965dce3296d99c6c89dde6f9" + }, + { + "bytes": 14631, + "path": "pipeline/book2corpus/templates/reader.tail.html", + "sha256": "a792f18057cd2be929906115e38e6af45797d595085011d117df0706534b3e74" + }, + { + "bytes": 13257, + "path": "pipeline/scripts/assemble_index.py", + "sha256": "85ee7e20144b9ff725b4bd3e682ba2c0e8f05ac9dbd375d0a0ea619df6eec844" + }, + { + "bytes": 23278, + "path": "pipeline/scripts/audit_figures.py", + "sha256": "52762a0069d80002142eb82e5a6b37ad6e6508097a3e9e6ab1668d0e8178feee" + }, + { + "bytes": 10684, + "path": "pipeline/scripts/build_database.py", + "sha256": "06194aa0a9df79a741b9340f42240508c7cd25a0ba2c529fc596b61b7485e7ff" + }, + { + "bytes": 36693, + "path": "pipeline/scripts/build_inventory.py", + "sha256": "6b13260f6be531ed4139f2f85bb4a9eb1ca42e4bf5746eba5289b83e0c1eca72" + }, + { + "bytes": 9961, + "path": "pipeline/scripts/build_read_packets.py", + "sha256": "5788975aa4f39018915d65bf96a95102d0ee1fc3975c5879f8e8279dc1c9be6b" + }, + { + "bytes": 4107, + "path": "pipeline/scripts/check_answers_reproduced.py", + "sha256": "b342131f71c379d74394b956928dd09cca4795ed6f313ead2403a00240a328d7" + }, + { + "bytes": 10231, + "path": "pipeline/scripts/check_inventory.py", + "sha256": "97380ba6d32e90891b7bcc2e9b0577e3210850e479887b17fdba16816734c565" + }, + { + "bytes": 6890, + "path": "pipeline/scripts/check_minimal.py", + "sha256": "db48c0e4ee5589dbcca4f2546495e17b56d719c4f0a0d8e8857c52253d17a9c6" + }, + { + "bytes": 5751, + "path": "pipeline/scripts/check_reader_browser.py", + "sha256": "27a6c39691830cd5f83ec534881ad3b66456686d398234e137c37e803e3409c3" + }, + { + "bytes": 6859, + "path": "pipeline/scripts/check_readers.py", + "sha256": "252629afa2ac11ea7a7a07fcf300775faf867db2af78d52d52f234efd681dc79" + }, + { + "bytes": 22969, + "path": "pipeline/scripts/check_reproducible.py", + "sha256": "730d8904e6accf199a0562a9f1efade2c5ef4a551f40f064576d3c36a3ea4ac5" + }, + { + "bytes": 5733, + "path": "pipeline/scripts/check_source_traces.py", + "sha256": "3c60315c6d14ee98012b08801a003ad3568ab0dc8bcdb807a1e210deba5eaa9b" + }, + { + "bytes": 57050, + "path": "pipeline/scripts/judge_forms.py", + "sha256": "37cfd3bb17b3c4e29c43dbf96fb4b650f05c6b646b6a760f457508788534a167" + }, + { + "bytes": 7016, + "path": "pipeline/scripts/make_corpus_index.py", + "sha256": "a2ebcc554adff3c4cb85266a8e00c562ee974c854aa3ee9a200affadfd915a59" + }, + { + "bytes": 10410, + "path": "pipeline/scripts/make_index.py", + "sha256": "69f314210407ce402ccf4645ffeb1080a1f661b6cbbb32db798bef1eafca3d82" + }, + { + "bytes": 10894, + "path": "pipeline/scripts/make_policy.py", + "sha256": "7ef6ddfada66813b331da3c8081eb1a31afd591e7357a94ef5710b4a2ab1f300" + }, + { + "bytes": 5498, + "path": "pipeline/scripts/make_search_index.py", + "sha256": "a7ff4b22b8207582bd07870bfc7a4075a0fdaffd13a04de1b93d8553cd213772" + }, + { + "bytes": 41063, + "path": "pipeline/scripts/make_terms.py", + "sha256": "1fb3d1a8ca4a5e8c9aa530c0215f920299ab9d80be15f208691cb1191a44a4e8" + }, + { + "bytes": 29120, + "path": "pipeline/scripts/md_corpus2html.py", + "sha256": "c1a0e6b8424096a7272a63cf54d2aeda617380473952bddb3b44661444f02e40" + }, + { + "bytes": 24328, + "path": "pipeline/scripts/pipeline.py", + "sha256": "283ac684d47a6fd12e0aa30b01822c313b1bc29071a4e0f847e2b6e9d11cfbfd" + }, + { + "bytes": 4271, + "path": "pipeline/scripts/rebuild_all.sh", + "sha256": "1ce6fcabf8a983aa58bce95b13dac1892391d0159dc8a88174a8e69ba2be6ebf" + }, + { + "bytes": 15420, + "path": "pipeline/scripts/render_database_view.py", + "sha256": "959b0e09265ca711ad49796d4042d630e8c40083549c235a1e1d010b25a0c69d" + }, + { + "bytes": 5900, + "path": "pipeline/scripts/render_machine_reader.py", + "sha256": "e0419e8d4edd3a63977afabc46c4075336f6eafdaf5545b661334531745bc908" + }, + { + "bytes": 8942, + "path": "pipeline/scripts/score_read.py", + "sha256": "177a234348aa6b7ca41f86fde0752e328184623e95af8c842443fc5edf25c8bd" + }, + { + "bytes": 17402, + "path": "pipeline/scripts/score_reread.py", + "sha256": "b45732bb30fdf20177b85b0f2d13e31ab126fbb0db10595240314e896d5e59a4" + }, + { + "bytes": 6288, + "path": "pipeline/scripts/scrub_source_traces.py", + "sha256": "cd29c2f617685265b06ff64a8bba061d11befb19df9c0d5b7a37c95d9969cd7c" + }, + { + "bytes": 12404, + "path": "pipeline/scripts/write_run_record.py", + "sha256": "49bcc83f28f0949ed097a0203915a591d48a263c8cddfb86617a0abe55077dd6" + }, + { + "bytes": 2777, + "path": "agents/library-builder.md", + "sha256": "7e4e05f79974e2d46b3960191874ed640afc874f6c273d8c5b7c7a4a0148c8a2" + }, + { + "bytes": 918, + "path": ".minimax-plugin/plugin.json", + "sha256": "8fe67cb61275df9625bbaaba489a5600e465154b799e0c13ffb7ff36217ca546" + }, + { + "bytes": 1512, + "path": "examples/build-example.sh", + "sha256": "2b85c6b1b3b441958a2fa2d9b048b0cb7864e9cc60b93bd4edd0f7d16e6e18bd" + }, + { + "bytes": 368, + "path": "examples/coffee-library/paper-filter-2019/manifest.json", + "sha256": "5a7007f1666bc915e66c45aa17c96ed6d7a6e25458521b9ab909a673677198a3" + }, + { + "bytes": 971, + "path": "examples/coffee-library/paper-filter-2019/outline.json", + "sha256": "957ded37795f0b2ea72957ff8f1270a8baca7563b1ccab08b92e36c6bba5f560" + }, + { + "bytes": 1383, + "path": "examples/coffee-library/paper-filter-2019/paragraphs.jsonl", + "sha256": "a7fd0bf317e4b12d4208b28e56a50f19996051580778f446d979c174dc971876" + }, + { + "bytes": 666, + "path": "examples/coffee-library/espresso-2024/chapters/01-The-shot.md", + "sha256": "94ad6b4b0b878e2a53e09e8681e2386535cb33e97f5b0832e970a0e7354d1ecf" + }, + { + "bytes": 338, + "path": "examples/coffee-library/espresso-2024/chapters/02-The-puck.md", + "sha256": "bf939af666ff43901c8fe59bcc5ece9a670a64bd7639129a5485c35206573faf" + }, + { + "bytes": 449, + "path": "examples/coffee-library/filter-2025/chapters/01-The-brew.md", + "sha256": "f67e0e7436f5c5580322b1f1398aa222f4750f2fa5fb09d1a8d68f484c97a186" + }, + { + "bytes": 295, + "path": "examples/coffee-library/filter-2025/chapters/02-The-water.md", + "sha256": "71fe997b5bca36fb960db3fce8b0955fc8b5d07324c54f31371532cb2c7af55a" + }, + { + "bytes": 774, + "path": "examples/coffee-library/index/terms/espresso-2024.jsonl", + "sha256": "62ee97bafb4e9c14c34cbbf50ba77c4b1646f8fa2fd43b926bd70d24341ef937" + }, + { + "bytes": 879, + "path": "examples/coffee-library/index/terms/filter-2025.jsonl", + "sha256": "ccb8893ade4ab1c4a4b71b79593080fe24ff7d135ac3dfac2e0538e24f779a54" + }, + { + "bytes": 1003, + "path": "examples/coffee-library/index/terms/roast-2023.jsonl", + "sha256": "501ed80d75506504de1582b66f80649ee3e9935316df23ca494732f4df0358d1" + }, + { + "bytes": 316, + "path": "examples/coffee-library/roast-2023/chapters/01-The-roast.md", + "sha256": "6412fbbb3eb9c54e40b9ecf1005fc536db4558c1ac8722700ef43beb47a05ca9" + }, + { + "bytes": 233, + "path": "examples/coffee-library/roast-2023/chapters/02-The-cup.md", + "sha256": "35da743e5668feda8a8e3827b07339c2d5d833274681029732fbb3f06d34a7ac" + }, + { + "bytes": 6340, + "path": "skills/document-library/SKILL.md", + "sha256": "aa94b2c688803506f22b0504f3b6f205fa5832a86bca2bd5f80b7ae0766c47a2" + }, + { + "bytes": 3680, + "path": "skills/document-library/references/document-contract.md", + "sha256": "05c2ff2d6d7267d16a1fb79aac7f4ed28fe4a0a1515fddb5be7101ac5712ca69" + }, + { + "bytes": 3555, + "path": "skills/document-library/references/identities-and-claims.md", + "sha256": "4ec7cf996061f84e02c9d2682fd3ca326ab803d5b547a59d21ab7271dbd40cdf" + }, + { + "bytes": 4712, + "path": "skills/document-library/references/settings.md", + "sha256": "6912d28699fd9d40dea43c60923d0788803886cee5d4f10953408dcf3d5afb79" + } + ], + "source": "vochic03/book2corpus", + "source_commit": "af059480a165930d468fdbc1ad72e765431ca17a", + "source_repository": "https://gitlab.com/vochic03/book2corpus", + "vendored": "the pipeline and the tests that cover it; the audits of one corpus are not here" +} diff --git a/plugins/vochic03/document-library/pipeline/scripts/assemble_index.py b/plugins/vochic03/document-library/pipeline/scripts/assemble_index.py new file mode 100644 index 00000000..5ec572e3 --- /dev/null +++ b/plugins/vochic03/document-library/pipeline/scripts/assemble_index.py @@ -0,0 +1,329 @@ +#!/usr/bin/env python3 +"""scripts/assemble_index.py - the assemble stage: pure code, no model. + +Written 26 Nov 2026 by MCode, after the ruling of Claude Opus 5.5 on the +corpus-wide term index (briefs 12, 13 and 14). + +This stage asks nothing of any model. It takes the terms the terms stage +admitted and the links the link stage judged, and it works out where those +terms are, which books share them, and what each book's reader should say +about the others. + + python3 scripts/assemble_index.py --corpus-root + +What it writes: + + index/occurrences/.jsonl where the terms of one book are + index/slices/.json what that book's reader says of others +""" +import argparse +import hashlib +import json +import os +import re +import sys +import time + +HERE = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) +sys.path.insert(0, HERE) + +from book2corpus import debris, projection, terms # noqa: E402 + +ASSEMBLER_VERSION = 3 + +# the most other books one term may name in the full slice +MAX_BOOKS_PER_TERM = 20 + +# the most places of one term the reader may link to +MAX_ANCHORS = 5 + + +def _file_hash(path): + """The hash of a file, or nothing when there is no file.""" + if not os.path.exists(path): + return "" + digest = hashlib.sha256() + with open(path, "rb") as fh: + digest.update(fh.read()) + return digest.hexdigest() + + +def _body_hash(units): + """The hash of the text a book's slice was made from.""" + digest = hashlib.sha256() + for _anchor, _title, body in units: + digest.update(body.encode("utf-8")) + return digest.hexdigest() + + +def read_jsonl(path): + """A file of objects, one a line.""" + rows = [] + if not os.path.exists(path): + return rows + with open(path, encoding="utf-8") as fh: + for line in fh: + line = line.strip() + if line: + rows.append(json.loads(line)) + return rows + + +def _title_from_source(text): + """The book's own name, from the source line its notes carry. + + The line reads "Author, The Book's Title, 5th edition (2025), PDF pages + 1 to 1". The title is what is between the author and the edition, + and when the author is the only name before the pages, the title is + what comes before the year. + """ + parts = [part.strip() for part in text.split(",")] + if len(parts) > 1 and not parts[1].lower().startswith("pdf pages"): + title = ", ".join(parts[1:]) + else: + title = parts[0] + title = re.split(r"\s+\d+(st|nd|rd|th) edition|\s*\(\d{4}\)", title)[0] + title = title.strip().rstrip(",").strip() + return title if len(title) > 2 else "" + + +def book_title(corpus, book): + """The book's own title, as the reader shows it. + + A reader whose title is a folder name names the wrong thing, so the + title is taken from the book itself: the manifest when there is one, + and otherwise the source line the notes carry at the top of their + first chapter. + """ + manifest = os.path.join(corpus, book, "manifest.json") + if os.path.exists(manifest): + with open(manifest, encoding="utf-8") as fh: + data = json.load(fh) + found = (data.get("book") or {}).get("title") + if found: + return found + chapters = os.path.join(corpus, book, "chapters") + if os.path.isdir(chapters): + for name in sorted(os.listdir(chapters)): + if not name.endswith(".md"): + continue + with open(os.path.join(chapters, name), encoding="utf-8") as fh: + for line in fh: + if line.startswith("Source:"): + found = _title_from_source(line.split(":", 1)[1].strip()) + if found: + return found + break + break + return book + + +def chapter_title(name, body): + """The title of a chapter: its own heading, or the name of its file.""" + for head in debris.headings(body): + if head["level"] == 1 and head["text"]: + return head["text"] + stem = re.sub(r"\.md$", "", name) + stem = re.sub(r"^\d+\s*", "", stem) + return stem.strip() or name + + +def chapters_of(book_dir): + """The chapters of a notes book, in the order the reader shows them.""" + folder = os.path.join(book_dir, "chapters") + out = [] + for index, name in enumerate(sorted(n for n in os.listdir(folder) + if n.endswith(".md")), 1): + with open(os.path.join(folder, name), encoding="utf-8") as fh: + body = fh.read() + out.append(("ch-%02d" % index, chapter_title(name, body), body)) + return out + + +def paragraphs_of(book_dir): + """The paragraphs of a law code, with the ids the reader gives them.""" + path = os.path.join(book_dir, "paragraphs.jsonl") + out = [] + with open(path, encoding="utf-8") as fh: + for line in fh: + line = line.strip() + if not line: + continue + record = json.loads(line) + if record.get("kind") not in (None, "body"): + continue + title = " / ".join(record.get("section_path") or []) + if not title and record.get("chapter"): + title = "chapter %s" % record["chapter"] + out.append((record.get("id") or "", title, record.get("text") or "")) + return out + + +def locate(units, rows, furniture=None): + """Where each term is, in its own book: how often, and where. + + One pass over the words, with the terms in a table, so a book is read + once and not once per term. The tokenizer is the one in debris, so + "occurs" means the same thing here and in the terms stage. + """ + table = terms.term_table(rows) + counts = {} + places = {} + for anchor, title, body in units: + # the page furniture and the running heads are not the book's + # words, so they are not counted + body = projection.strip_furniture(body, furniture) + for term_id, _offset, _route in terms.scan_terms(body, table): + counts[term_id] = counts.get(term_id, 0) + 1 + seen = places.setdefault(term_id, []) + if len(seen) < MAX_ANCHORS and (anchor, title) not in seen: + seen.append((anchor, title)) + return counts, places + + +def main(argv=None): + ap = argparse.ArgumentParser(prog="assemble_index.py") + ap.add_argument("--corpus-root", required=True) + ap.add_argument("--dry-run", action="store_true") + args = ap.parse_args(argv) + + corpus = args.corpus_root + index_root = os.path.join(corpus, "index") + started = time.time() + books = sorted(d for d in os.listdir(corpus) + if not d.startswith(".") + and os.path.isdir(os.path.join(corpus, d)) + and (os.path.isdir(os.path.join(corpus, d, "chapters")) + or os.path.exists(os.path.join(corpus, d, + "paragraphs.jsonl")))) + titles = {name: book_title(corpus, name) for name in books} + + concepts = read_jsonl(os.path.join(index_root, "concepts.jsonl")) + member_of = {} + shared = {} + for concept in concepts: + members = concept.get("members") or [] + for member in members: + member_of[member] = concept["concept_id"] + names = sorted(set(member.split("|", 1)[0] for member in members)) + for i in range(len(names)): + for j in range(i + 1, len(names)): + pair = (names[i], names[j]) + shared[pair] = shared.get(pair, 0) + 1 + + found = {} + for name in books: + rows = terms.read_terms(os.path.join(index_root, "terms", "%s.jsonl" % name)) + if not rows: + continue + book_dir = os.path.join(corpus, name) + if os.path.exists(os.path.join(book_dir, "paragraphs.jsonl")): + units = paragraphs_of(book_dir) + else: + units = chapters_of(book_dir) + furniture = projection.furniture_lines("\n".join(body for _a, _t, body in units)) + counts, places = locate(units, rows, furniture) + found[name] = {"rows": rows, "counts": counts, "places": places} + + written = 0 + for name in sorted(found): + rows = found[name]["rows"] + places = found[name]["places"] + slice_rows = [] + for row in rows: + canonical = row["canonical"] + mine = "%s|%s" % (name, canonical) + concept_id = member_of.get(mine) + also = [] + if concept_id: + for other in books: + if other == name or other not in found: + continue + if member_of.get("%s|%s" % (other, canonical)) != concept_id: + continue + # the other book's own term: the id carries the book + seen = found[other]["places"].get( + "%s:%s" % (other, canonical), []) + anchor, title = seen[0] if seen else ("", "") + also.append({"book": other, "title": titles.get(other, other), + "anchor": anchor, "chapter": title, + "count": found[other]["counts"].get(row["term_id"], 0), + "shared": shared.get(tuple(sorted((name, other))), 0), + "concept_id": concept_id}) + also.sort(key=lambda item: (-item["shared"], item["book"])) + also = also[:MAX_BOOKS_PER_TERM] + seen = places.get(row["term_id"], []) + slice_rows.append({ + "term_id": row["term_id"], "label": row["label"], + "canonical": canonical, "kind": row.get("kind") or "", + "scope": row.get("scope") or "", + "count": found[name]["counts"].get(row["term_id"], 0), + "anchors": [item[0] for item in seen], + "chapter": seen[0][1] if seen else "", + "concept_id": concept_id or "", + "also": also, + }) + slice_rows.sort(key=lambda row: row["term_id"]) + if not args.dry_run: + path = os.path.join(index_root, "slices", "%s.json" % name) + os.makedirs(os.path.dirname(path), exist_ok=True) + with open(path, "w", encoding="utf-8") as fh: + json.dump({"book": name, "title": titles.get(name, name), + "terms": slice_rows}, fh, indent=1, sort_keys=True, + ensure_ascii=False) + fh.write("\n") + occurrences = [] + for row in slice_rows: + occurrences.append({ + "term_id": row["term_id"], "label": row["label"], + "canonical": row["canonical"], "kind": row["kind"], + "scope": row["scope"], "count": row["count"], + "anchors": row["anchors"], "chapter": row["chapter"], + "concept_id": row["concept_id"], + }) + path = os.path.join(index_root, "occurrences", "%s.jsonl" % name) + os.makedirs(os.path.dirname(path), exist_ok=True) + with open(path, "w", encoding="utf-8") as fh: + for row in occurrences: + fh.write(json.dumps(row, sort_keys=True, ensure_ascii=False) + "\n") + written += 1 + + # the manifest: one row per book, with the hash of what it holds + old_manifest = {} + old_keys = set() + old_path = os.path.join(index_root, "manifest", "assemble.jsonl") + for row in read_jsonl(old_path): + old_manifest[row["unit"]] = row + old_keys.add(row["key"]) + manifest = [] + for name in sorted(found): + path = os.path.join(index_root, "slices", "%s.json" % name) + payload = hashlib.sha256() + with open(path, "rb") as fh: + payload.update(fh.read()) + # the key is the hash of what this book was made from, so it + # changes exactly when the book does + terms_path = os.path.join(index_root, "terms", "%s.jsonl" % name) + material = {"book": name, "version": ASSEMBLER_VERSION, + "terms": _file_hash(terms_path), + "concepts": _file_hash(os.path.join(index_root, "concepts.jsonl")), + "text": _body_hash(units)} + key = hashlib.sha256( + json.dumps(material, sort_keys=True).encode("utf-8")).hexdigest() + status = "reused" if key in old_keys else "computed" + manifest.append({"unit": name, "key": key, "status": status, + "output": payload.hexdigest(), + "terms": len(found[name]["rows"])}) + if not args.dry_run: + path = os.path.join(index_root, "manifest", "assemble.jsonl") + os.makedirs(os.path.dirname(path), exist_ok=True) + with open(path, "w", encoding="utf-8") as fh: + for row in sorted(manifest, key=lambda item: item["unit"]): + fh.write(json.dumps(row, sort_keys=True, ensure_ascii=False) + "\n") + print("books: %d | concepts: %d | slices: %d | %.1f s" + % (written, len(concepts), written, time.time() - started)) + return 0 + + +if __name__ == "__main__": + sys.exit(main()) diff --git a/plugins/vochic03/document-library/pipeline/scripts/audit_figures.py b/plugins/vochic03/document-library/pipeline/scripts/audit_figures.py new file mode 100644 index 00000000..426e8d4d --- /dev/null +++ b/plugins/vochic03/document-library/pipeline/scripts/audit_figures.py @@ -0,0 +1,546 @@ +#!/usr/bin/env python3 +"""Ask a model whether the picture on the page is the picture the book printed. + +The matcher works on evidence - a figure's number, a caption, a written +description - and this is the check on that evidence: a second model, +which has not seen the matcher's reasoning, is shown the picture, the +caption the book printed and the description the notes carry, and is asked +whether they are the same figure. + +It also measures the model that does the asking. A control set of pairs +that are known to be wrong says how often it says yes to a wrong picture; +without that number, a pass rate means nothing. + +What it reports, per tier: the sample size, the verdicts, the pass rate +under both readings of "partial" (partial as a pass, partial as a fail), +the rate of "cannot tell", and the Wilson 95% interval on each. + + python3 scripts/audit_figures.py --corpus-root --book \\ + --sample 25 --census description-match,probable,inferred +""" +import argparse +import json +import os +import random +import re +import sys +import threading +import urllib.request +import base64 + +HERE = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) +sys.path.insert(0, HERE) + +API = "https://api.anthropic.com/v1/messages" +KEY_FILE = os.path.expanduser("~/claude-keys/anthropic.header") +MODEL = "claude-sonnet-5-5" # this model has deprecated the temperature parameter +GEMINI_API = "https://generativelanguage.googleapis.com/v1beta/models/%s:generateContent?key=%s" +GEMINI_MODEL = "gemini-3.8-flash" +GEMINI_KEY_FILE = os.path.expanduser("~/claude-keys/gemini.header") +CENSUS_DEFAULT = "description-match,probable,inferred" + +SYSTEM = """You check whether a picture from a textbook is the picture a note describes. +You are given the picture itself, the caption the book printed under it, and a +written description of what the note says the figure shows. Answer whether the +picture and the text are about the same figure. +Reply with one JSON object and nothing else: +{"verdict": "match" | "partial" | "mismatch" | "cannot_tell", "reason": "one sentence"} +"match" means the picture shows what the text describes. +"partial" means it is the same figure but the text describes something the +picture does not show, or shows something extra. +"mismatch" means they are different figures. +"cannot_tell" means the picture is too small, blank or unclear to judge.""" + +QUESTION = """The caption the book printed: {caption} +The written description of the figure: {description} +The kind of figure: {kind} +Is the picture the same figure as the text describes?""" + + +def wilson(k, n, z=1.96): + if not n: + return 0.0, 1.0 + p = k / float(n) + d = 1 + z * z / n + centre = p + z * z / (2 * n) + spread = z * ((p * (1 - p) / n + z * z / (4 * n * n)) ** 0.5) + return max(0.0, (centre - spread) / d), min(1.0, (centre + spread) / d) + + +def api_key(): + with open(KEY_FILE, encoding="utf-8") as fh: + for line in fh: + line = line.strip() + if line.lower().startswith("x-api-key:"): + return line.split(":", 1)[1].strip() + if ":" in line: + return line.split(":", 1)[1].strip() + raise SystemExit("no key in %s" % KEY_FILE) + + +def gemini_key(): + path = os.path.expanduser("~/claude-keys/gemini.header") + with open(path, encoding="utf-8") as fh: + for line in fh: + line = line.strip() + if ":" in line: + return line.split(":", 1)[1].strip() + if line: + return line.strip() + raise SystemExit("no key in %s" % path) + + +def gemini_judge(image_path, kind, caption, description, timeout=180): + """One judgement from Gemini. + + The judge has to be one judge for the whole corpus: a tier measured + with one model and a tier measured with another are not the same + measurement. + """ + with open(image_path, "rb") as fh: + data = base64.b64encode(fh.read()).decode("ascii") + body = {"contents": [{"parts": [ + {"inline_data": {"mime_type": "image/webp", "data": data}}, + {"text": SYSTEM + "\n\nThe caption the book printed: " + (caption or "none") + + "\nThe written description of the figure: " + (description or "none") + + "\nThe kind of figure: " + (kind or "unknown") + + "\nIs the picture the same figure as the text describes?"}]}], + # the thinking budget has to be off: a model that thinks for two + # hundred tokens never reaches its answer + "generationConfig": {"maxOutputTokens": 900, "temperature": 0, + "thinkingConfig": {"thinkingBudget": 0}}} + url = GEMINI_API % (GEMINI_MODEL, gemini_key()) + request = urllib.request.Request(url, data=json.dumps(body).encode("utf-8"), + headers={"content-type": "application/json"}) + try: + with urllib.request.urlopen(request, timeout=timeout) as response: + answer = json.load(response) + except Exception as exc: + raise JudgeError(exc) + try: + text = "".join(part.get("text", "") + for part in answer["candidates"][0]["content"]["parts"]) + except Exception: + raise JudgeError(RuntimeError(str(answer)[:120])) + parsed = _parse_verdict(text) + if parsed is None: + return {"verdict": "error", "reason": text[:120]} + parsed["usage"] = {"judge": GEMINI_MODEL} + return parsed + + +class JudgeError(Exception): + """A call that did not come back.""" + + def __init__(self, exc): + Exception.__init__(self, str(exc)) + self.cause = exc + + @property + def kind(self): + from book2corpus.pipeline import classify_error + return classify_error(self.cause) + + +def ask_with_retries(ask, image_path, kind, caption, description, + attempts=5, base=2.0, cap=60.0, on_wait=None): + """One judgement, with the failures handled. + + A rate limit is waited out, a server error is tried again a few times, + and a request that is wrong is not tried again at all: a failed call is + missing data, not a verdict, and the run has to know which it was. + """ + import time + from book2corpus.pipeline import backoff_delay + for attempt in range(1, attempts + 1): + try: + return ask(image_path, kind, caption, description) + except JudgeError as exc: + kind_of = exc.kind + if kind_of == "fatal" or attempt >= attempts: + return {"verdict": "error", "reason": str(exc)[:120], + "failed_kind": kind_of, "attempts": attempt} + wait = getattr(exc.cause, "headers", None) and \ + exc.cause.headers.get("retry-after") + if not wait: + wait = backoff_delay(attempt, base, cap) + if on_wait: + on_wait(kind_of, attempt, float(wait)) + time.sleep(float(wait)) + return {"verdict": "error", "reason": "the judge gave up", + "failed_kind": "fatal", "attempts": attempts} + + +def _parse_verdict(text): + """The JSON the judge wrote, if it wrote one.""" + match = re.search(r"\{.*\}", text, re.S) + if not match: + return None + try: + return json.loads(match.group(0)) + except ValueError: + return None + + +def judge(image_path, kind, caption, description, timeout=180): + """One judgement from the API.""" + with open(image_path, "rb") as fh: + data = base64.b64encode(fh.read()).decode("ascii") + body = { + "model": MODEL, "max_tokens": 200, + "system": SYSTEM, + "messages": [{"role": "user", "content": [ + {"type": "image", "source": {"type": "base64", + "media_type": "image/webp", "data": data}}, + {"type": "text", "text": QUESTION.format( + kind=kind or "unknown", caption=caption or "none", + description=description or "none")}]}], + } + request = urllib.request.Request( + API, data=json.dumps(body).encode("utf-8"), + headers={"x-api-key": api_key(), "content-type": "application/json", + "anthropic-version": "2023-06-01"}) + try: + with urllib.request.urlopen(request, timeout=timeout) as response: + answer = json.load(response) + except Exception as exc: + raise JudgeError(exc) + text = "".join(block.get("text", "") for block in answer.get("content", []) + if block.get("type") == "text") + match = re.search(r"\{.*\}", text, re.S) + if not match: + return {"verdict": "error", "reason": text[:120]} + try: + parsed = json.loads(match.group(0)) + except ValueError: + return {"verdict": "error", "reason": text[:120]} + parsed["usage"] = answer.get("usage", {}) + return parsed + + +_PAIRS_CACHE = {} + + +def pairs_for(book_dir): + """Every figure the reader shows, with the notes' own words. + + The reader is the thing under audit, so the pairs come from it: the + tier it shows, and the description it prints. The picture files come + from the manifest that names them. + """ + key = os.path.abspath(book_dir) + if key in _PAIRS_CACHE: + return _PAIRS_CACHE[key] + from book2corpus import notes_gate + with open(os.path.join(book_dir, "index.html"), encoding="utf-8") as fh: + html = fh.read() + scan = notes_gate.Scan() + scan.feed(html) + with open(os.path.join(book_dir, "figures.json"), encoding="utf-8") as fh: + data = json.load(fh) + entries = {e["id"]: e for e in data["figures"]} + chapters = {} + for row in data.get("figure_map", []): + if row.get("image"): + chapters.setdefault(row["image"], row.get("chapter")) + out = [] + for figure_id, figure in scan.figures.items(): + catalogue = figure.get("catalogue") or "" + entry = entries.get(catalogue) + if entry is None: + continue + description = (figure.get("fields", {}).get("CONTENT") or "").strip() + if not description or description.lower() == "none": + continue + out.append({ + "id": catalogue, + "figure_id": figure_id, + "tier": figure.get("tier"), + "book": os.path.basename(book_dir.rstrip("/")), + "chapter": entry.get("chapter") or chapters.get(catalogue), + "kind": (figure.get("fields", {}).get("TYPE") or "").strip(), + "caption": (figure.get("fields", {}).get("CAPTION") or "").strip(), + "description": description, + "image": os.path.join(book_dir, entry["derivative_file"]), + }) + _PAIRS_CACHE[key] = out + return out + + +def candidate_pairs(book_dir, limit=1): + """The pictures a figure named but did not claim. + + These are the ones the matcher would not stand behind. Judging them + says how much the corpus is leaving on the table: a picture that was + right and was not shown. + """ + from book2corpus import notes_gate + path = os.path.join(book_dir, "figures.json") + if not os.path.exists(path): + return [] + with open(path, encoding="utf-8") as fh: + data = json.load(fh) + entries = {e["id"]: e for e in data["figures"]} + out = [] + for figure in data.get("figure_map", []): + if figure.get("tier") not in ("candidate", "ordinal"): + continue + description = (figure.get("description") or "").strip() + if not description or description.lower() == "none": + continue + for catalogue in (figure.get("candidates") or [])[:limit]: + entry = entries.get(catalogue) + if entry is None: + continue + out.append({ + "id": catalogue, + "figure_id": figure.get("id"), + "tier": "candidate", + "book": os.path.basename(book_dir.rstrip("/")), + "chapter": figure.get("chapter"), + "kind": "", + "caption": (figure.get("caption") or "").strip(), + "description": description, + "image": os.path.join(book_dir, entry["derivative_file"]), + }) + return out + + +def controls_for(pairs, count): + """Pairs that are known to be wrong: the judge's false-accept rate. + + A hard negative is the same kind of figure from another chapter: that + is the realistic failure, a wrong but plausible picture. An easy + negative is a different kind of figure from another book: a judge that + passes those is broken. + """ + by_book = {} + for pair in pairs: + by_book.setdefault(pair["book"], []).append(pair) + hard = [] + easy = [] + for book, group in by_book.items(): + for pair in group: + # a hard negative is another picture from the same book, from + # another chapter, whose caption shares no words with this + # one: the realistic failure, a wrong but plausible picture + for other in group: + if other["id"] == pair["id"]: + continue + if other["chapter"] == pair["chapter"]: + continue + if set((other["caption"] or "").lower().split()) & \ + set((pair["caption"] or "").lower().split()): + continue + hard.append({"pair": pair, "image_of": other}) + break + for pair in pairs: + # an easy negative is a picture from another book: a judge that + # passes those is broken + for other in pairs: + if other["book"] == pair["book"]: + continue + easy.append({"pair": pair, "image_of": other}) + break + return hard[:count], easy[:count] + + +def tier_row(group): + """One tier's numbers, under both readings of "partial".""" + n = len(group) + cannot = sum(1 for r in group if r["verdict"] == "cannot_tell") + errors = sum(1 for r in group if r["verdict"] == "error") + effective = n - cannot - errors + lenient = sum(1 for r in group if r["verdict"] in ("match", "partial")) + strict = sum(1 for r in group if r["verdict"] == "match") + low_l, high_l = wilson(lenient, effective) + low_s, high_s = wilson(strict, effective) + return {"n": n, "effective": effective, + "passed_lenient": lenient, "passed_strict": strict, + "cannot_tell": cannot, "errors": errors, + "pass_rate_lenient": round(lenient / effective, 4) if effective else 0, + "pass_rate_strict": round(strict / effective, 4) if effective else 0, + "cannot_tell_rate": round(cannot / n, 4) if n else 0, + "wilson_lenient": [round(low_l, 4), round(high_l, 4)], + "wilson_strict": [round(low_s, 4), round(high_s, 4)], + "mismatches": [r for r in group if r["verdict"] == "mismatch"], + "verdicts": group} + + +def main(argv=None): + parser = argparse.ArgumentParser() + parser.add_argument("--corpus-root", required=True) + parser.add_argument("--book", required=True) + parser.add_argument("--tiers", default="numbered,verified,description-match,probable,inferred") + parser.add_argument("--census", default=CENSUS_DEFAULT, + help="tiers that are audited in full") + parser.add_argument("--sample", type=int, default=25) + parser.add_argument("--candidates", type=int, default=0, + help="how many unclaimed candidates to judge") + parser.add_argument("--seed", type=int, default=20261124) + parser.add_argument("--workers", type=int, default=4) + parser.add_argument("--judge", default="gemini", choices=("gemini", "sonnet")) + parser.add_argument("--controls", type=int, default=12, + help="how many wrong pairs of each kind to judge") + parser.add_argument("--dry-run", action="store_true") + parser.add_argument("--fresh", action="store_true", + help="ask again about every pair, even the answered ones") + args = parser.parse_args(argv) + + book_dir = os.path.join(os.path.abspath(os.path.expanduser(args.corpus_root)), + args.book) + random.seed(args.seed) + wanted = [t.strip() for t in args.tiers.split(",") if t.strip()] + census = [t.strip() for t in args.census.split(",") if t.strip()] + + pairs = pairs_for(book_dir) + samples = {} + for tier in wanted: + group = [p for p in pairs if p["tier"] == tier] + if tier in census: + samples[tier] = group + elif len(group) <= args.sample: + samples[tier] = group + else: + samples[tier] = random.sample(group, args.sample) + + jobs = [] + for tier, group in samples.items(): + for item in group: + jobs.append(("tier:" + tier, item, item["image"])) + if args.candidates: + for item in candidate_pairs(book_dir)[:args.candidates]: + jobs.append(("candidate", item, item["image"])) + + root = os.path.abspath(os.path.expanduser(args.corpus_root)) + pool = [] + for other in sorted(os.listdir(root)): + other_dir = os.path.join(root, other) + if other == args.book or not os.path.isdir(other_dir): + continue + if not os.path.exists(os.path.join(other_dir, "figures.json")): + continue + try: + pool.extend(pairs_for(other_dir)) + except Exception: + continue + hard, easy = controls_for(pool + pairs, args.controls) + for item in hard: + jobs.append(("control-hard", item["pair"], item["image_of"]["image"])) + for item in easy: + jobs.append(("control-easy", item["pair"], item["image_of"]["image"])) + + # the verdicts of the last run are worth keeping: a call that came + # back is an answer, and a correction elsewhere does not make it + # wrong. Only the pairs that never came back are asked again. + kept = [] + answered = set() + if not args.fresh: + previous = os.path.join(args.corpus_root, args.book, "figure-audit.json") + if os.path.exists(previous): + try: + with open(previous, encoding="utf-8") as fh: + old = json.load(fh) + except Exception: + old = {} + wanted_model = GEMINI_MODEL if args.judge == "gemini" else MODEL + if old.get("model") and old.get("model") != wanted_model: + # another judge answered these pairs: they are not answers + # to this judge questions, so they are asked again + old = {} + for tier, block in (old.get("tiers") or {}).items(): + for verdict in block.get("verdicts") or []: + if verdict.get("verdict") == "error": + # a call that never came back is missing data, + # not an answer: it is asked again + continue + kept.append(verdict) + answered.add(("tier:" + tier, verdict.get("id"), + verdict.get("figure_id"))) + for label, block in (old.get("controls") or {}).items(): + for verdict in block.get("verdicts") or []: + if verdict.get("verdict") == "error": + continue + kept.append(verdict) + answered.add((label, verdict.get("id"), verdict.get("figure_id"))) + jobs = [job for job in jobs + if (job[0], job[1].get("id"), job[1].get("figure_id")) not in answered] + + if args.dry_run: + for label, pair, image_path in jobs: + print("%-16s %-28s %s" % (label, pair["id"], os.path.basename(image_path))) + print("jobs:", len(jobs), "| kept from the last run:", len(kept)) + return 0 + + results = list(kept) + lock = threading.Lock() + + ask = gemini_judge if args.judge == "gemini" else judge + + def work(job): + label, pair, image_path = job + verdict = ask_with_retries(ask, image_path, pair["kind"], pair["caption"], + pair["description"]) + with lock: + results.append({"label": label, "id": pair["id"], + "figure_id": pair.get("figure_id"), + "tier": pair["tier"], "book": pair["book"], + "chapter": pair.get("chapter"), + "verdict": verdict.get("verdict"), + "reason": verdict.get("reason"), + "usage": verdict.get("usage")}) + + threads = [] + for job in jobs: + thread = threading.Thread(target=work, args=(job,)) + thread.start() + threads.append(thread) + while len([t for t in threads if t.is_alive()]) >= args.workers: + threads[0].join(0.2) + threads = [t for t in threads if t.is_alive()] + for thread in threads: + thread.join() + + report = {"book": args.book, + "model": GEMINI_MODEL if args.judge == "gemini" else MODEL, + "judge": args.judge, "seed": args.seed, + "sample": args.sample, "census": census, "tiers": {}, "controls": {}} + for tier in wanted: + group = [r for r in results if r["label"] == "tier:" + tier] + report["tiers"][tier] = tier_row(group) + candidates = [r for r in results if r["label"] == "candidate"] + if candidates: + report["candidates"] = tier_row(candidates) + for label in ("control-hard", "control-easy"): + group = [r for r in results if r["label"] == label] + accepted = sum(1 for r in group if r["verdict"] in ("match", "partial")) + strict = sum(1 for r in group if r["verdict"] == "match") + low, high = wilson(accepted, len(group)) + low_s, high_s = wilson(strict, len(group)) + report["controls"][label] = {"n": len(group), "accepted": accepted, + "accepted_strict": strict, + "false_accept_rate": round(accepted / len(group), 4) if group else 0, + "false_accept_rate_strict": round(strict / len(group), 4) if group else 0, + "wilson_95": [round(low, 4), round(high, 4)], + "wilson_95_strict": [round(low_s, 4), round(high_s, 4)], + "verdicts": group} + out = os.path.join(book_dir, "figure-audit.json") + with open(out, "w", encoding="utf-8") as fh: + json.dump(report, fh, indent=1, ensure_ascii=False) + print("audit written to", out) + for tier, row in report["tiers"].items(): + print("%-16s n=%-4d lenient=%.3f strict=%.3f cannot_tell=%.3f wilson=%s" + % (tier, row["n"], row["pass_rate_lenient"], row["pass_rate_strict"], + row["cannot_tell_rate"], row["wilson_lenient"])) + if "candidates" in report: + row = report["candidates"] + print("%-16s n=%-4d lenient=%.3f strict=%.3f" % ("candidates", row["n"], + row["pass_rate_lenient"], row["pass_rate_strict"])) + for label, row in report["controls"].items(): + print("%-16s n=%-4d false-accept=%.3f wilson=%s" % (label, row["n"], + row["false_accept_rate"], row["wilson_95"])) + return 0 + + +if __name__ == "__main__": + sys.exit(main()) diff --git a/plugins/vochic03/document-library/pipeline/scripts/build_database.py b/plugins/vochic03/document-library/pipeline/scripts/build_database.py new file mode 100644 index 00000000..69eb4b79 --- /dev/null +++ b/plugins/vochic03/document-library/pipeline/scripts/build_database.py @@ -0,0 +1,257 @@ +#!/usr/bin/env python3 +'''scripts/build_database.py - the corpus as a database. + +The corpus is a repository of text files, and it is also a database. This +builds the database from the repository: the books and what each of them +holds, the terms and where they are used, the concepts and the books in +them, the figures, the runs and the inventory, with a full-text index over +the terms, the concepts and the passages. + +It is DERIVED. The repository is the source of truth and the database is +rebuilt from it, so the database is stamped with what it was built from: +the commit, the rule that produced the links, and the hashes of the files +it read. + + python3 scripts/build_database.py --corpus-root + python3 scripts/build_database.py --corpus-root --query amygdala +''' +import argparse +import hashlib +import json +import os +import sqlite3 +import subprocess +import sys + +HERE = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) +sys.path.insert(0, HERE) + +DATABASE = 'index/corpus.db' + +SCHEMA = ''' +DROP TABLE IF EXISTS books; +DROP TABLE IF EXISTS concept_members; +DROP TABLE IF EXISTS figures; +DROP TABLE IF EXISTS runs; +DROP TABLE IF EXISTS inventory; +DROP TABLE IF EXISTS terms; +DROP TABLE IF EXISTS concepts; +DROP TABLE IF EXISTS passages; +DROP TABLE IF EXISTS meta; +CREATE TABLE books ( + name TEXT PRIMARY KEY, kind TEXT, terms INTEGER, forms INTEGER, + concept_entries INTEGER, figure_blocks INTEGER, paragraphs INTEGER); +CREATE TABLE concept_members ( + concept_id TEXT, book TEXT, canonical TEXT); +CREATE INDEX concept_members_book ON concept_members (book, canonical); +CREATE TABLE figures ( + book TEXT, figure_id TEXT, caption TEXT, description TEXT, tier TEXT, + picture TEXT); +CREATE TABLE runs (id TEXT, what TEXT, detail TEXT); +CREATE TABLE inventory (key TEXT PRIMARY KEY, value TEXT); +CREATE VIRTUAL TABLE terms USING fts5( + book UNINDEXED, canonical UNINDEXED, label, scope, chapter, + tokenize='unicode61 remove_diacritics 2'); +CREATE VIRTUAL TABLE concepts USING fts5( + concept_id UNINDEXED, label, books, + tokenize='unicode61 remove_diacritics 2'); +CREATE VIRTUAL TABLE passages USING fts5( + book UNINDEXED, canonical UNINDEXED, passage, + tokenize='unicode61 remove_diacritics 2'); +CREATE TABLE meta (key TEXT PRIMARY KEY, value TEXT); +''' + + +def read_jsonl(path): + rows = [] + if not os.path.exists(path): + return rows + with open(path, encoding='utf-8') as fh: + for line in fh: + line = line.strip() + if line: + try: + rows.append(json.loads(line)) + except ValueError: + continue + return rows + + +def read_json(path, default=None): + try: + with open(path, encoding='utf-8') as fh: + return json.load(fh) + except Exception: + return default + + +def sha256_of(path): + digest = hashlib.sha256() + try: + with open(path, 'rb') as fh: + for chunk in iter(lambda: fh.read(1 << 20), b''): + digest.update(chunk) + except OSError: + return '' + return digest.hexdigest() + + +def commit_of(corpus): + try: + out = subprocess.run(['git', 'rev-parse', 'HEAD'], cwd=corpus, + capture_output=True, text=True).stdout.strip() + return out + except Exception: + return '' + + +def build(corpus, path): + """The database, built from the repository.""" + directory = os.path.dirname(path) + if directory: + os.makedirs(directory, exist_ok=True) + if os.path.exists(path): + os.remove(path) + con = sqlite3.connect(path) + con.executescript(SCHEMA) + terms = 0 + for name in sorted(os.listdir(os.path.join(corpus, 'index', 'occurrences'))): + if not name.endswith('.jsonl'): + continue + book = name[:-len('.jsonl')] + for row in read_jsonl(os.path.join(corpus, 'index', 'occurrences', name)): + con.execute('INSERT INTO terms VALUES (?,?,?,?,?)', + (book, row.get('canonical') or '', row.get('label') or '', + row.get('scope') or '', row.get('chapter') or '')) + terms += 1 + passages = 0 + for form in read_jsonl(os.path.join(corpus, 'index', 'links', + 'forms.jsonl')): + canonical = form.get('canonical') or '' + for book in form.get('books') or []: + for text in (book.get('use') or '', book.get('wide') or ''): + if not text: + continue + con.execute('INSERT INTO passages VALUES (?,?,?)', + (book.get('book') or '', canonical, text)) + passages += 1 + concepts = 0 + for row in read_jsonl(os.path.join(corpus, 'index', 'concepts.jsonl')): + members = row.get('members') or [] + books = [] + label = '' + for member in members: + book, _sep, canonical = member.partition('|') + books.append('%s: %s' % (book, canonical)) + con.execute('INSERT INTO concept_members VALUES (?,?,?)', + (row.get('concept_id') or '', book, canonical)) + con.execute('INSERT INTO concepts VALUES (?,?,?)', + (row.get('concept_id') or '', label, '; '.join(books))) + concepts += 1 + for book in sorted(os.listdir(corpus)): + path = os.path.join(corpus, book) + if not os.path.isdir(path) or book.startswith('.'): + continue + if not (os.path.isdir(os.path.join(path, 'chapters')) + or os.path.exists(os.path.join(path, 'paragraphs.jsonl'))): + continue + terms_here = len(read_jsonl(os.path.join(corpus, 'index', 'terms', + '%s.jsonl' % book))) + forms_here = len([row for row in read_jsonl(os.path.join(corpus, 'index', + 'links', 'forms.jsonl')) + if any(item.get('book') == book + for item in row.get('books') or [])]) + figures = read_json(os.path.join(path, 'figures.json'), {}) or {} + paragraphs = len(read_jsonl(os.path.join(path, 'paragraphs.jsonl'))) + con.execute('INSERT INTO books VALUES (?,?,?,?,?,?,?)', + (book, 'machine corpus' if paragraphs else 'notes', + terms_here, forms_here, 0, len(figures.get('figure_map') or []), + paragraphs)) + for entry in figures.get('figure_map') or []: + image = entry.get('image') + if isinstance(image, dict): + image = image.get('id') or '' + con.execute('INSERT INTO figures VALUES (?,?,?,?,?,?)', + (book, entry.get('id') or '', + (entry.get('caption') or '')[:300], + (entry.get('description') or '')[:1200], + entry.get('tier') or '', + str(image or ''))) + inventory = read_json(os.path.join(corpus, 'index', 'manifest', + 'inventory.json'), {}) or {} + for key, value in (inventory.get('totals') or {}).items(): + con.execute('INSERT INTO inventory VALUES (?,?)', (key, str(value))) + run = read_json(os.path.join(corpus, 'index', 'manifest', 'link-run.json'), + {}) or {} + judge = run.get('judge') or {} + con.execute('INSERT INTO runs VALUES (?,?,?)', + ('links', 'the run that judged every form', + json.dumps({'model': judge.get('model'), + 'date': (run.get('dates') or {}).get('run'), + 'cost': (run.get('money') or {}).get('links_total'), + 'question_fingerprint': judge.get('question_fingerprint'), + 'forms_answered': (run.get('completion') or {}).get('forms_answered')}, + ensure_ascii=False))) + settings = read_json(os.path.join(HERE, 'settings', 'pipeline.json'), {}) or {} + rule = (settings.get('index') or {}).get('link_rule') or {} + con.execute('INSERT INTO meta VALUES (?,?)', ('commit', commit_of(corpus))) + con.execute('INSERT INTO meta VALUES (?,?)', ('rule_prompt_hash', + str(rule.get('prompt_hash') or ''))) + con.execute('INSERT INTO meta VALUES (?,?)', ('terms', str(terms))) + con.execute('INSERT INTO meta VALUES (?,?)', ('concepts', str(concepts))) + con.execute('INSERT INTO meta VALUES (?,?)', ('passages', str(passages))) + for name, key in (('index/manifest/link.jsonl', 'link'), + ('index/concepts.jsonl', 'concepts'), + ('index/links/forms.jsonl', 'forms')): + con.execute('INSERT INTO meta VALUES (?,?)', + ('hash:' + key, sha256_of(os.path.join(corpus, name)))) + con.commit() + con.close() + return terms, concepts, passages + + +def search(path, query, limit=25): + """What the corpus holds for a word.""" + if not os.path.exists(path): + return None + con = sqlite3.connect(path) + hits = [] + try: + for row in con.execute( + 'SELECT book, label, chapter FROM terms WHERE terms MATCH ? ' + 'ORDER BY rank LIMIT ?', (query, limit)): + hits.append(('term',) + row) + for row in con.execute( + 'SELECT concept_id, label, books FROM concepts ' + 'WHERE concepts MATCH ? ORDER BY rank LIMIT ?', (query, limit)): + hits.append(('concept',) + row) + for row in con.execute( + 'SELECT book, canonical, passage FROM passages ' + 'WHERE passages MATCH ? ORDER BY rank LIMIT ?', (query, limit)): + hits.append(('passage',) + row) + except sqlite3.OperationalError as exc: + print('the query is not one FTS5 understands: %s' % exc) + con.close() + return hits + + +def main(argv=None): + ap = argparse.ArgumentParser(prog='build_database.py') + ap.add_argument('--corpus-root', required=True) + ap.add_argument('--query', default='') + ap.add_argument('--path', default='') + args = ap.parse_args(argv) + path = args.path or os.path.join(args.corpus_root, DATABASE) + if args.query: + hits = search(path, args.query) + for row in hits or []: + print(' | '.join(str(part)[:160] for part in row)) + return 0 + terms, concepts, passages = build(args.corpus_root, path) + print('the database is written to', path) + print('terms: %d | concepts: %d | passages: %d' % (terms, concepts, passages)) + return 0 + + +if __name__ == '__main__': + sys.exit(main()) diff --git a/plugins/vochic03/document-library/pipeline/scripts/build_inventory.py b/plugins/vochic03/document-library/pipeline/scripts/build_inventory.py new file mode 100644 index 00000000..b32b2197 --- /dev/null +++ b/plugins/vochic03/document-library/pipeline/scripts/build_inventory.py @@ -0,0 +1,694 @@ +#!/usr/bin/env python3 +'''scripts/build_inventory.py - the inventory of the corpus. + +What the corpus holds, what it refuses, what it cannot say, and where every +number comes from. The inventory is generated from the artefacts themselves, +so it cannot drift from them: every count is read out of the files it +describes, and the identities that must hold are checked and written down with +the result. An identity that does not hold is written down as a gap, with the +numbers on both sides and what the difference is. + +The bases matter. A name, a book entry, a group and a form are four different +counts, and the corpus has more than one number for the same word. Every +number here says which one it is. + + python3 scripts/build_inventory.py --corpus-root +''' +import argparse +import collections +import glob +import hashlib +import json +import os +import sys + +HERE = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) +sys.path.insert(0, HERE) + +# the identities the corpus must hold, and that no README may excuse. The +# gate does not trust the inventory to say which ones these are: it reads +# this list. +REQUIRED_IDENTITIES = ( + "the books grouped and the books unplaced are the books of every form", + "every form of the corpus has exactly one row in the manifest", + "the forms of the corpus are the names the books share", + "the concepts are the groups of the last answer to every form", + "the answers of the manifest are the answers of the ledger", + "the books of the corpus are the books of the terms and of the terms manifest", + "the evidence of the corpus is the evidence of the run", +) + +# the artefacts each identity needs. An identity whose stage has not run yet +# has nothing to say: it says so, and it does not fail the build. A library +# that has only been indexed is not a broken library, and a reader has to be +# able to see which parts of it are not there yet. +STAGES_THE_IDENTITY_NEEDS = { + "the distinct names proposed are the names of the books added up": + ["index/admission/replay.json"], + "every distinct name was admitted, refused or quarantined": + ["index/admission/replay.json"], + "the names in more than one book are the forms and the held back": + ["index/links/forms.jsonl", "index/links/held-back.jsonl"], + "the gold set adds up": ["index/admission/replay.json"], + "the concepts are the groups of two or more": ["index/concepts.jsonl"], + "the books grouped and the books unplaced are the books of every form": + ["index/manifest/link.jsonl"], + "every form of the corpus has exactly one row in the manifest": + ["index/manifest/link.jsonl"], + "the forms of the corpus are the names the books share": + ["index/links/forms.jsonl"], + "the concepts are the groups of the last answer to every form": + ["index/links/form-judgments.jsonl"], + "the answers of the manifest are the answers of the ledger": + ["index/manifest/link.jsonl", "index/links/form-judgments.jsonl"], + "the books of the corpus are the books of the terms and of the terms manifest": + ["index/manifest/terms.jsonl"], + "the evidence of the corpus is the evidence of the run": + ["index/manifest/link-run.json"], +} + + +def read_jsonl(path): + rows = [] + if not os.path.exists(path): + return rows + with open(path, encoding='utf-8') as fh: + for line in fh: + line = line.strip() + if line: + try: + rows.append(json.loads(line)) + except ValueError: + continue + return rows + + +def read_json(path, default=None): + try: + with open(path, encoding='utf-8') as fh: + return json.load(fh) + except Exception: + return default + + +def sha256_of(path): + digest = hashlib.sha256() + try: + with open(path, 'rb') as fh: + for chunk in iter(lambda: fh.read(1 << 20), b''): + digest.update(chunk) + except OSError: + return '' + return digest.hexdigest() + + +def main(argv=None): + ap = argparse.ArgumentParser(prog='build_inventory.py') + ap.add_argument('--corpus-root', required=True) + ap.add_argument('--out', default='') + args = ap.parse_args(argv) + corpus = os.path.abspath(os.path.expanduser(args.corpus_root)) + out_path = args.out or os.path.join(corpus, 'index', 'manifest', + 'inventory.json') + + books = [] + for name in sorted(os.listdir(corpus)): + path = os.path.join(corpus, name) + if not os.path.isdir(path) or name.startswith('.'): + continue + machine = os.path.exists(os.path.join(path, 'paragraphs.jsonl')) + notes = os.path.isdir(os.path.join(path, 'chapters')) + if not (machine or notes): + continue + books.append(name) + + terms = [] + for path in sorted(glob.glob(os.path.join(corpus, 'index', 'terms', + '*.jsonl'))): + terms.extend(read_jsonl(path)) + occurrences = 0 + for path in sorted(glob.glob(os.path.join(corpus, 'index', 'occurrences', + '*.jsonl'))): + occurrences += len(read_jsonl(path)) + forms = read_jsonl(os.path.join(corpus, 'index', 'links', 'forms.jsonl')) + held = read_jsonl(os.path.join(corpus, 'index', 'links', + 'held-back.jsonl')) + concepts = read_jsonl(os.path.join(corpus, 'index', 'concepts.jsonl')) + manifest_rows = read_jsonl(os.path.join(corpus, 'index', 'manifest', + 'link.jsonl')) + rejected = read_jsonl(os.path.join(corpus, 'index', + 'terms_rejected.jsonl')) + replay = read_json(os.path.join(corpus, 'index', 'admission', + 'replay.json'), {}) or {} + run = read_json(os.path.join(corpus, 'index', 'manifest', + 'link-run.json'), {}) or {} + figure_read = read_json(os.path.join(corpus, 'index', 'manifest', + 'figure-read.json'), {}) or {} + settings = read_json(os.path.join(HERE, 'settings', 'pipeline.json'), {}) or {} + index_settings = settings.get('index') or {} + + names = collections.Counter(row.get('canonical') for row in terms) + books_per_name = collections.defaultdict(set) + for row in terms: + books_per_name[row.get('canonical')].add(row.get('term_id', '').split(':')[0]) + shared_names = [name for name, books in books_per_name.items() if len(books) > 1] + form_names = set(form.get('canonical') for form in forms) + held_names = set() + for row in held: + if isinstance(row, dict): + held_names.add(row.get('canonical')) + else: + held_names.add(row) + reasons = collections.Counter(row.get('reason') for row in rejected) + groups = sum(1 for concept in concepts if concept.get('size', 0) > 1) + members = set() + for concept in concepts: + for member in concept.get('members') or []: + members.add(member) + + identities = [] + + def identity(name, left, right, note='', base_left='', base_right='', + waivable=True): + identities.append({'name': name, 'left': left, 'right': right, + 'holds': left == right, 'note': note, + 'base_left': base_left, 'base_right': base_right, + 'waivable': waivable}) + + identity('the term entries and the occurrence entries are the same set', + len(terms), occurrences, + 'a book entry is a term in a book, counted the same way in both', + 'book entries', 'book entries') + identity('the distinct names proposed are the names of the books added up', + replay.get('unique_names'), + sum((row.get('names') or 0) + for row in (replay.get('per_book') or {}).values()), + 'a name is proposed once per book, and the distinct names are counted once', + 'distinct names', 'the sum of the names of the books') + tiers = replay.get('tiers') or {} + identity('every distinct name was admitted, refused or quarantined', + replay.get('unique_names'), sum(tiers.values()), + 'the admission tiers cover every distinct name', + 'distinct names', 'distinct names') + identity('the names in more than one book are the forms and the held back', + len(shared_names), len(form_names) + len(held_names), + 'a name in two books is a form, unless it is a name and not a sense', + 'distinct names in more than one book', + 'the forms plus the held back') + exceptions = read_jsonl(os.path.join(corpus, 'index', 'gold', + 'exceptions.jsonl')) + identity('the gold set adds up', + replay.get('gold_terms'), + (replay.get('gold_admitted_by_the_new_rules') or 0) + + (replay.get('gold_held_for_a_person') or 0) + + (replay.get('gold_rejected_by_the_new_rules') or 0) + + len(exceptions), + 'the gold set is the books own terms, ruled on by the same rules, with the exceptions a person reviewed', + 'gold terms', 'gold terms') + identity('the concepts are the groups of two or more', + len(concepts), groups, + 'a concept is a group of two or more books', + 'concepts', 'groups of two or more') + # the sources. A name in two or more books is a form of the corpus, + # unless it is a name and not a sense, and the books of that form are the + # books that carry the name. The terms are written by the stage that + # reads the books, so a check anchored here cannot be fooled by a later + # stage that drops a row: the corpus lost 2,955 forms once, and every + # check that was built on the manifest held. + books_of_name = collections.defaultdict(set) + for row in terms: + books_of_name[row.get('canonical')].add(row.get('term_id', '').split(':')[0]) + expected_forms = set(name for name, books in books_of_name.items() + if len(books) > 1) - held_names + books_of_every_form = sum(len(books_of_name.get(name, set())) + for name in expected_forms) + attestations = {} + for form in forms: + books_of_form = set() + for item in form.get("books") or []: + books_of_form.add(item.get("book")) + attestations[form.get("canonical")] = books_of_form + # the books of every form, one form at a time: the books the judge + # grouped and the books it left unplaced are exactly the books that + # carry the name. The forms are compared one by one and not added up, + # because one form losing a book and another gaining one would cancel + # in a total. + forms_exact = 0 + forms_short = 0 + forms_over = 0 + books_double = 0 + forms_with_a_double = 0 + books_grouped = 0 + books_unplaced = 0 + forms_checked = 0 + for row in manifest_rows: + canonical = row.get("unit") + books_of_form = books_of_name.get(canonical) + if books_of_form is None or canonical not in expected_forms: + continue + forms_checked += 1 + placed = set(row.get("books") or []) + unplaced = set(row.get("unplaced") or []) + both = placed | unplaced + books_grouped += len(placed) + books_unplaced += len(unplaced) + if both == books_of_form and not (placed & unplaced): + forms_exact += 1 + elif len(both) < len(books_of_form): + forms_short += 1 + else: + forms_over += 1 + double = placed & unplaced + if double: + forms_with_a_double += 1 + books_double += len(double) + identity("the books grouped and the books unplaced are the books of every form", + forms_exact, len(expected_forms), + "for every form the books the judge grouped and the books it left unplaced are exactly the books that carry the name, form by form", + "the forms whose books add up", "the forms of the corpus", + waivable=False) + seventh = identities[-1] + seventh["forms_checked"] = forms_checked + seventh["forms_in_the_corpus"] = len(expected_forms) + seventh["books_grouped_and_unplaced"] = books_grouped + books_unplaced + seventh["books_of_every_form"] = books_of_every_form + seventh["forms_with_a_book_missing"] = forms_short + seventh["forms_with_a_book_extra"] = forms_over + seventh["books_in_two_groups"] = books_double + seventh["forms_with_a_double_book"] = forms_with_a_double + if forms_short or forms_over or books_double: + seventh["holds"] = False + seventh["note"] = (seventh["note"] + + "; a form is short or over, or a book is both grouped and unplaced") + # the forms of the corpus against the rows of the manifest. The names are + # compared and not the counts: one form can have two rows, and a duplicate + # can hide a form that is missing. + manifest_unit_list = [row.get("unit") for row in manifest_rows] + manifest_units = set(manifest_unit_list) + duplicate_units = sorted(unit for unit, number + in collections.Counter(manifest_unit_list).items() + if number > 1) + forms_with_a_row = len(expected_forms & manifest_units) + missing_forms = sorted(expected_forms - manifest_units) + rows_with_no_form = sorted(manifest_units - expected_forms) + identity("every form of the corpus has exactly one row in the manifest", + forms_with_a_row, len(expected_forms), + "the forms of the corpus and the rows of the manifest are the same names, one row each", + "the forms of the corpus the manifest carries", "the forms of the corpus", + waivable=False) + coverage = identities[-1] + coverage["forms_missing_from_the_manifest"] = len(missing_forms) + coverage["rows_with_no_form"] = len(rows_with_no_form) + coverage["duplicate_rows"] = len(duplicate_units) + coverage["manifest_rows"] = len(manifest_rows) + coverage["manifest_units"] = len(manifest_units) + coverage["missing_forms"] = missing_forms[:50] + coverage["rows_named"] = rows_with_no_form[:50] + coverage["duplicate_units"] = duplicate_units[:50] + if missing_forms or rows_with_no_form or duplicate_units: + coverage["holds"] = False + coverage["note"] = (coverage["note"] + + "; a form is missing, a row has no form, or a row is there twice") + # the forms of the corpus against the books that carry the name. The + # attestations are checked against the terms, so a form that is lost in + # the attestations shows here and not only in the manifest. + forms_matching = 0 + forms_mismatching = [] + for name in sorted(expected_forms): + have = attestations.get(name) + if have is not None and have == books_of_name.get(name, set()): + forms_matching += 1 + else: + forms_mismatching.append(name) + identity("the forms of the corpus are the names the books share", + forms_matching, len(expected_forms), + "every name the books share, and not held back, is a form of the corpus with the books that carry the name", + "the forms that match the books", "the names the books share", + waivable=False) + anchors = identities[-1] + anchors["forms_in_the_attestations"] = len(attestations) + anchors["forms_that_do_not_match"] = len(forms_mismatching) + anchors["names_named"] = forms_mismatching[:50] + if forms_mismatching: + anchors["holds"] = False + anchors["note"] = (anchors["note"] + + "; a name the books share is not a form of the corpus, or its books differ") + # the concepts against the ledger. The concepts are the groups of the + # last answer to every form, and the ledger is where they are read from, + # so a concept that is lost shows here. + ledger_rows = read_jsonl(os.path.join(corpus, 'index', 'links', + 'form-judgments.jsonl')) + judge_model = (run.get('judge') or {}).get('model') or '' + last_answer = {} + for row in ledger_rows: + if judge_model and row.get('model') and row.get('model') != judge_model: + continue + canonical = row.get('canonical') + if canonical is None: + continue + last_answer[canonical] = row + expected_groups = set() + for canonical, row in last_answer.items(): + for group in row.get('groups') or []: + group_members = frozenset("%s|%s" % (book, canonical) + for book in group) + if len(group_members) >= 2: + expected_groups.add(group_members) + actual_groups = [frozenset(concept.get('members') or []) + for concept in concepts] + actual_set = set(actual_groups) + # the groups are sets of members, and a set of sets has no order of + # its own, so they are sorted by what they hold + groups_not_expected = sorted(expected_groups - actual_set, + key=lambda group: sorted(group)) + concepts_not_expected = sorted(actual_set - expected_groups, + key=lambda group: sorted(group)) + duplicated_concepts = [group for group, number + in collections.Counter(actual_groups).items() + if number > 1] + small_concepts = [group for group in actual_set if len(group) < 2] + identity("the concepts are the groups of the last answer to every form", + len(expected_groups), len(actual_groups), + "the concepts of the corpus are the groups of the last answer to every form, and the ledger is where they are read from", + "the groups of the last answers", "the concepts", + waivable=False) + concepts_identity = identities[-1] + concepts_identity["groups_not_in_the_concepts"] = len(groups_not_expected) + concepts_identity["concepts_not_in_the_groups"] = len(concepts_not_expected) + concepts_identity["duplicate_concepts"] = len(duplicated_concepts) + concepts_identity["concepts_with_fewer_than_two_members"] = len(small_concepts) + if groups_not_expected or concepts_not_expected or duplicated_concepts or small_concepts: + concepts_identity["holds"] = False + concepts_identity["note"] = (concepts_identity["note"] + + "; a concept is lost, or there is one that is not a group") + # the answers of the manifest against the answers of the ledger. The + # manifest names the answer it carries by its hash, so a row the ledger + # loses, or a row the ledger holds twice, is named here. + ledger_by_key = collections.defaultdict(list) + for row in ledger_rows: + ledger_by_key[row.get("key")].append(row) + answers_pinned = 0 + answers_missing = [] + answers_twice = [] + answers_not_the_last = [] + for row in manifest_rows: + key = row.get("key") + hits = [item for item in (ledger_by_key.get(key) or []) + if item.get("canonical") == row.get("unit")] + if len(hits) != 1: + if not hits: + answers_missing.append(row.get("unit")) + else: + answers_twice.append(row.get("unit")) + continue + # and it is the last answer the ledger holds for that form: a row + # the ledger lost would leave an earlier answer as the last one + last = last_answer.get(row.get("unit")) + if last is None or last.get("key") != key: + answers_not_the_last.append(row.get("unit")) + continue + answers_pinned += 1 + identity("the answers of the manifest are the answers of the ledger", + answers_pinned, len(manifest_rows), + "every answer the manifest carries is an answer of the ledger, is there once, and is the last answer the ledger holds for that form", + "the answers of the manifest the ledger holds", "the answers of the manifest", + waivable=False) + answers_identity = identities[-1] + answers_identity["answers_not_in_the_ledger"] = len(answers_missing) + answers_identity["answers_in_the_ledger_twice"] = len(answers_twice) + answers_identity["answers_that_are_not_the_last"] = len(answers_not_the_last) + answers_identity["forms_named"] = (answers_missing + answers_twice + + answers_not_the_last)[:50] + if answers_missing or answers_twice or answers_not_the_last: + answers_identity["holds"] = False + answers_identity["note"] = (answers_identity["note"] + + "; an answer of the manifest is not in the ledger, is there twice, or is not the last one") + # the books of the corpus against the books of the terms. The books are + # the folders the corpus is made of, and the terms are what the stage + # that reads those books wrote, so a book that is lost between the two + # shows here. + term_books = set() + for path in glob.glob(os.path.join(corpus, 'index', 'terms', '*.jsonl')): + term_books.add(os.path.basename(path)[:-len('.jsonl')]) + # and the books the terms manifest names: the manifest of the stage that + # read the books is a third account of them, and a book that is lost + # from the folders and from the terms is still in it + manifest_books = set() + for row in read_jsonl(os.path.join(corpus, 'index', 'manifest', + 'terms.jsonl')): + unit = str(row.get('unit') or '') + if unit: + manifest_books.add(unit.split('/')[0]) + identity("the books of the corpus are the books of the terms and of the terms manifest", + len(manifest_books), len(books), + "every book of the corpus has its terms, every set of terms has a book of the corpus, and the terms manifest names the same books", + "the books of the terms manifest", "the books of the corpus", + waivable=False) + books_identity = identities[-1] + books_identity["books_without_terms"] = sorted(set(books) - term_books) + books_identity["terms_without_a_book"] = sorted(term_books - set(books)) + books_identity["books_not_in_the_terms_manifest"] = sorted(set(books) - manifest_books) + books_identity["books_in_the_manifest_without_a_book"] = sorted(manifest_books - set(books)) + books_identity["books_with_terms"] = len(term_books) + if (books_identity["books_without_terms"] or books_identity["terms_without_a_book"] + or books_identity["books_not_in_the_terms_manifest"] + or books_identity["books_in_the_manifest_without_a_book"]): + books_identity["holds"] = False + books_identity["note"] = (books_identity["note"] + + "; a book of the corpus has no terms, the terms have no book, or the terms manifest names another book") + # the evidence of the run: the cache of the answers, the ledger and the + # forms. The run record names them by their hash, and the run record is + # written by the stage that judged and not by the build, so a cache that + # is swapped after the run is named here. + evidence = run.get("evidence") or {} + evidence_matching = 0 + evidence_changed = [] + for name, path in (("cache", "index/links/form-answers.jsonl"), + ("ledger", "index/links/form-judgments.jsonl"), + ("forms", "index/links/forms.jsonl")): + wanted = (evidence.get(name) or {}).get("sha256") + if not wanted: + continue + if sha256_of(os.path.join(corpus, path)) == wanted: + evidence_matching += 1 + else: + evidence_changed.append(path) + identity("the evidence of the corpus is the evidence of the run", + evidence_matching, 3, + "the cache of the answers, the ledger and the forms are the ones the run was made on, named by their hash in the run record", + "the evidence that matches the run", "the files the run names", + waivable=False) + evidence_identity = identities[-1] + evidence_identity["files_changed"] = evidence_changed + if evidence_changed or evidence_matching < 3: + evidence_identity["holds"] = False + evidence_identity["note"] = (evidence_identity["note"] + + "; the evidence of the corpus is not the evidence of the run") + # the stages that have not run yet: an identity that needs one of them + # has nothing to say, and says so, and does not fail the build + not_built = [] + for item in identities: + needed = STAGES_THE_IDENTITY_NEEDS.get(item["name"]) + missing = [] + if needed: + missing = [path for path in needed + if not os.path.exists(os.path.join(corpus, path))] + if missing: + item["state"] = "not_built" + item["left"] = None + item["right"] = None + item["note"] = (item["note"] + "; the stage that answers this has not" + " run yet: " + ", ".join(missing)) + not_built.append(item["name"]) + else: + item["state"] = "holds" if item["holds"] else "gap" + # the identities that no README may excuse. A form the manifest does not + # carry, or a form whose books do not add up, is a broken corpus and not + # a gap a reader can be told about. + broken = [item for item in identities + if item["name"] in REQUIRED_IDENTITIES and item["state"] == "gap"] + gaps = [] + for item in identities: + if item["state"] == "gap": + gaps.append({'name': item['name'], 'left': item['left'], + 'right': item['right'], + 'difference': (item['left'] or 0) - (item['right'] or 0), + 'note': item['note']}) + + per_book = [] + for name in books: + book_terms = len(read_jsonl(os.path.join(corpus, 'index', 'terms', + '%s.jsonl' % name))) + book_forms = len([form for form in forms + if any(item.get('book') == name + for item in form.get('books') or [])]) + book_members = len([member for member in members + if member.startswith(name + '|')]) + figures = read_json(os.path.join(corpus, name, 'figures.json'), {}) or {} + paragraphs = len(read_jsonl(os.path.join(corpus, name, + 'paragraphs.jsonl'))) + per_book.append({'book': name, + 'kind': 'machine corpus' if paragraphs else 'notes', + 'terms': book_terms, + 'forms': book_forms, + 'concept_entries': book_members, + 'figure_blocks': len(figures.get('figure_map') or []), + 'paragraphs': paragraphs}) + + # the evidence: how much of it is cut off, at the narrow window the + # judge reads first and at the wide one it asks for when the narrow + # one shows no sense. A passage sitting exactly at the wide cap is + # evidence the builder could not keep whole. + narrow = 0 + wide_at_cap = 0 + evidence_books = 0 + for form in forms: + for book in form.get('books') or []: + evidence_books += 1 + passage = book.get('use') or '' + if len(passage) >= 300: + narrow += 1 + wider = book.get('wide') or '' + if wider and len(wider) >= 2400: + wide_at_cap += 1 + evidence = {'books': evidence_books, + 'at_the_narrow_cap': narrow, + 'share_at_the_narrow_cap': round(narrow / float(evidence_books), 4) if evidence_books else 0.0, + 'at_the_wide_cap': wide_at_cap, + 'share_at_the_wide_cap': round(wide_at_cap / float(evidence_books), 4) if evidence_books else 0.0} + + rule = index_settings.get('link_rule') or {} + inventory = { + 'what': 'the inventory of the corpus: what it holds, what it refuses, and where every number comes from', + 'generated': '2026-11-28', + 'bases': 'a name, a book entry, a group and a form are four different counts, and every number here says which one it is', + 'books': per_book, + 'totals': {'books': len(books), + 'book_entries': len(terms), + 'distinct_names': len(names), + 'names_in_more_than_one_book': len(shared_names), + 'forms': len(forms), + 'held_back': len(held), + 'concepts': len(concepts), + 'concept_entries': len(members), + 'refused_entries': len(rejected), + 'figure_blocks': sum(row['figure_blocks'] for row in per_book), + 'paragraphs': sum(row['paragraphs'] for row in per_book)}, + 'identities': identities, + 'not_built': not_built, + 'evidence': evidence, + 'gaps': gaps, + 'rule': {'registered': rule.get('registered'), + 'outcomes': rule.get('outcomes'), + 'evidence_window': rule.get('evidence_window'), + 'prompt_hash': rule.get('prompt_hash'), + 'why': rule.get('why'), + 'read': index_settings.get('link_read') or {}}, + 'runs': [{'what': 'the run that judged every form', + 'model': (run.get('judge') or {}).get('model'), + 'date': (run.get('dates') or {}).get('run'), + 'cost': (run.get('money') or {}).get('links_total'), + 'question_fingerprint': (run.get('judge') or {}).get('question_fingerprint'), + 'forms_answered': (run.get('completion') or {}).get('forms_answered'), + 'forms_unanswered': (run.get('completion') or {}).get('forms_unanswered')}, + {'what': 'the read of the ninety demotions', + 'demotions': (figure_read.get('result') or {}).get('demotions'), + 'confirmed': (figure_read.get('result') or {}).get('confirmed'), + 'controls': (figure_read.get('result') or {}).get('controls'), + 'outcome': (figure_read.get('result') or {}).get('outcome')}], + 'refusals_by_reason': dict(reasons), + 'gold_exceptions': exceptions, + 'admission_by_book': replay.get('per_book') or {}, + 'admission_totals': {'names_proposed': replay.get('names_replayed'), + 'distinct_names': replay.get('unique_names'), + 'admitted': (tiers or {}).get('admit'), + 'refused': (tiers or {}).get('reject'), + 'quarantined': (tiers or {}).get('quarantine'), + 'gold_terms': replay.get('gold_terms'), + 'gold_admitted': replay.get('gold_admitted_by_the_new_rules'), + 'gold_held': replay.get('gold_held_for_a_person'), + 'gold_refused': replay.get('gold_rejected_by_the_new_rules')}, + 'input_hashes': {'index/manifest/link.jsonl': sha256_of(os.path.join(corpus, 'index', 'manifest', 'link.jsonl')), + 'index/concepts.jsonl': sha256_of(os.path.join(corpus, 'index', 'concepts.jsonl')), + 'index/links/forms.jsonl': sha256_of(os.path.join(corpus, 'index', 'links', 'forms.jsonl')), + 'index/admission/replay.json': sha256_of(os.path.join(corpus, 'index', 'admission', 'replay.json'))}, + 'lineage': {'computed_from_the_lineage': [ + 'the books and what each of them holds', + 'the counts of terms, entries, forms, concepts and refusals', + 'the identities that must sum, and the gaps that do not', + 'the rule, the window and the hash of the prompt', + 'the runs: the model, the date, the cost and the question fingerprint'], + 'needs_a_label': [ + 'how good the links are: a rate needs a judge and a reader that agree, and the readers do not', + 'whether the concept count is above or below the number of shared senses: that needs the senses themselves', + 'whether a picture is the figure the text names: that needs a reader of the pictures', + 'whether the demotions are right: the read did not confirm them']}, + 'never_claims': ['a judge error rate or accuracy', + 'that the concept count is a bound on the shared senses', + 'that anything in the corpus is verified', + 'that no placement is waiting for a person, because the placements are right', + 'that one judge is better than another by more than the readers differ']} + + with open(out_path, 'w', encoding='utf-8') as fh: + json.dump(inventory, fh, indent=1, ensure_ascii=False, sort_keys=True) + fh.write(chr(10)) + print('the inventory is written to', out_path) + print('the books:', len(books), '| the book entries:', len(terms), + '| the forms:', len(forms), '| the concepts:', len(concepts)) + for item in identities: + state = item.get('state') or ('holds' if item['holds'] else 'gap') + if state == 'not_built': + shown = 'not built yet' + elif state == 'holds': + shown = 'holds' + else: + shown = 'GAP %s vs %s' % (item['left'], item['right']) + print(' %-54s %s' % (item['name'][:54], shown)) + if gaps: + print('the gaps:', len(gaps), '- the inventory names them and the README must too') + if broken: + # the inventory that was written is the failing one, so the corpus + # never keeps the old inventory that passed + print('FAILED: the corpus does not hold the identity it must hold,') + print(' and a README that names the gap does not excuse it') + for item in broken: + print(' ', item['name']) + print(' the two sides:', item['left'], 'against', item['right']) + for name in item.get('missing_forms') or []: + print(' the form the manifest does not carry:', name) + if len(item.get('missing_forms') or []) < item.get('forms_missing_from_the_manifest', 0): + print(' and %d more' + % (item['forms_missing_from_the_manifest'] + - len(item['missing_forms']))) + for name in item.get('rows_named') or []: + print(' the row the corpus has no form for:', name) + for name in item.get('forms_named') or []: + print(' the answer of the manifest is not in the ledger:', name) + for name in item.get('books_without_terms') or []: + print(' the book of the corpus without its terms:', name) + for name in item.get('books_not_in_the_terms_manifest') or []: + print(' the book of the corpus that the terms manifest does not name:', name) + for name in item.get('books_in_the_manifest_without_a_book') or []: + print(' the book the terms manifest names and the corpus does not hold:', name) + for name in item.get('terms_without_a_book') or []: + print(' the terms with no book of the corpus:', name) + for name in item.get('duplicate_units') or []: + print(' the row that is there twice:', name) + for name in item.get('names_named') or []: + print(' the name the books share that is not a form:', name) + if item.get('concepts_not_in_the_groups'): + print(' the concepts that are not a group of any answer:', + item['concepts_not_in_the_groups']) + if item.get('groups_not_in_the_concepts'): + print(' the groups of the answers that are not a concept:', + item['groups_not_in_the_concepts']) + if item.get('duplicate_concepts'): + print(' the concepts that are there twice:', + item['duplicate_concepts']) + return 1 + return 0 + + +if __name__ == '__main__': + sys.exit(main()) + diff --git a/plugins/vochic03/document-library/pipeline/scripts/build_read_packets.py b/plugins/vochic03/document-library/pipeline/scripts/build_read_packets.py new file mode 100755 index 00000000..50e32ddd --- /dev/null +++ b/plugins/vochic03/document-library/pipeline/scripts/build_read_packets.py @@ -0,0 +1,237 @@ +#!/usr/bin/env python3 +"""scripts/build_read_packets.py - the packets a blind read is given. + +A blind read of the figures needs a packet per figure: the description the +book gives, and the picture the figure claims. The picture has to be a file +that exists, or the reader is asked about nothing. The packet therefore +resolves the picture id to a file, and says where it found it. + +The pictures live in the library's catalogue (`agent-index.jsonl`), which names +the file of every picture the extraction made - the corpus keeps only the +pictures it claims, and the pictures a demotion names are usually among the +ones the corpus does not keep. A picture that is in the corpus's own figures +directory is used from there. + +A picture that cannot be resolved is not written into a packet: it is named in +`unresolved.jsonl` and the run exits 2, so that a read cannot be scored over +forms nobody saw. + +The figures to read are the demotions the audit decided and has not applied +(`index/manifest/figure-demotions.json`) and a matched number of kept +pictures from the same books, drawn with the seed the rule names. + + python3 scripts/build_read_packets.py --corpus-root \ + --library --out [--batches 6] [--seed 20261128] +""" +import argparse +import collections +import json +import os +import random +import sys + + +def read_jsonl(path): + rows = [] + if not os.path.exists(path): + return rows + with open(path, encoding="utf-8") as fh: + for line in fh: + line = line.strip() + if line: + try: + rows.append(json.loads(line)) + except ValueError: + continue + return rows + + +def catalogue(library): + """Every picture the library holds, by its id.""" + out = {} + for row in read_jsonl(os.path.join(library, "agent-index.jsonl")): + if row.get("id"): + out[row["id"]] = row + return out + + +def resolve(picture, book, corpus, catalogue, library): + """The file of a picture, or nothing: where it is, and whether it is there.""" + if not picture: + return "", "no picture named" + name = picture + ".webp" + local = os.path.join(corpus, book, "figures", name) + if os.path.exists(local): + return local, "the corpus" + entry = catalogue.get(picture) + if entry and entry.get("file"): + path = os.path.join(library, entry["file"]) + if os.path.exists(path): + return path, "the library" + return "", "the catalogue names a file that is not there" + return "", "the catalogue does not hold it" + + +def figure_map(corpus, books): + blocks = {} + for book in books: + path = os.path.join(corpus, book, "figures.json") + if not os.path.exists(path): + continue + with open(path, encoding="utf-8") as fh: + data = json.load(fh) + for entry in data.get("figure_map") or []: + blocks[(book, entry.get("id"))] = entry + return blocks + + +def audited_pictures(corpus, books): + """The picture the audit judged for each figure, from the audit's own record. + + A demotion names the figure, and the figure may name no picture any more: + the corpus keeps the pictures it claims, and a demoted figure's picture + is often among the ones it does not keep. The audit's verdict names both, + so that is where the picture comes from. + """ + out = {} + for book in books: + path = os.path.join(corpus, book, "figure-audit.json") + if not os.path.exists(path): + continue + with open(path, encoding="utf-8") as fh: + data = json.load(fh) + for tier, block in (data.get("tiers") or {}).items(): + for verdict in block.get("verdicts") or []: + figure_id = verdict.get("figure_id") + picture = verdict.get("id") + if figure_id and picture: + out[(book, figure_id)] = picture + return out + + +def main(argv=None): + ap = argparse.ArgumentParser(prog="build_read_packets.py") + ap.add_argument("--corpus-root", default=os.path.expanduser( + "")) + ap.add_argument("--library", default=os.path.expanduser( + "~/Library/Mobile Documents/com~apple~CloudDocs/Textbooks")) + ap.add_argument("--out", required=True) + ap.add_argument("--batches", type=int, default=6) + ap.add_argument("--seed", type=int, default=20261128) + ap.add_argument("--controls", type=int, default=0, + help="how many kept pictures to read beside the demotions") + ap.add_argument("--only", default="both", + choices=("both", "demotions", "controls"), + help="which packets to write") + args = ap.parse_args(argv) + corpus = os.path.abspath(os.path.expanduser(args.corpus_root)) + library = os.path.abspath(os.path.expanduser(args.library)) + out_dir = os.path.abspath(os.path.expanduser(args.out)) + os.makedirs(out_dir, exist_ok=True) + + manifest_path = os.path.join(corpus, "index", "manifest", + "figure-demotions.json") + with open(manifest_path, encoding="utf-8") as fh: + manifest = json.load(fh) + demoted = manifest.get("decided") or {} + books = sorted(demoted) + blocks = figure_map(corpus, books) + audited = audited_pictures(corpus, books) + cat = catalogue(library) + + items = [] + for book in books: + for figure_id in sorted(demoted[book]): + entry = blocks.get((book, figure_id)) + if entry is None: + continue + candidates = entry.get("candidates") or [] + picture = candidates[0] if candidates else "" + if not picture: + picture = audited.get((book, figure_id)) or "" + items.append({"book": book, "figure": figure_id, + "picture": picture, + "caption": entry.get("caption") or "none", + "description": entry.get("description") or "none", + "tier": entry.get("tier"), "kind": "demotion"}) + + # the controls: pictures the corpus keeps, in the tiers the demotions + # are in, from figures the audit did not demote. A control is a picture + # the reader shows, so that "judged demotable" means the judge would + # have taken a good picture away. + demoted_figures = set((row["book"], row["figure"]) for row in items) + tiers = set(row["tier"] for row in items) + per_book = collections.Counter(row["book"] for row in items) + kept = collections.defaultdict(list) + for (book, figure_id), entry in blocks.items(): + image = entry.get("image") + if not image or (book, figure_id) in demoted_figures: + continue + if entry.get("tier") not in tiers: + continue + kept[book].append((figure_id, image, entry)) + controls = [] + for book, count in per_book.items(): + pool = sorted(kept.get(book) or []) + random.Random(args.seed).shuffle(pool) + for figure_id, image, entry in pool[:count]: + controls.append({"book": book, "figure": figure_id, + "picture": image, + "caption": entry.get("caption") or "none", + "description": entry.get("description") or "none", + "tier": entry.get("tier"), "kind": "control"}) + + unresolved = [] + for row in items + controls: + path, where = resolve(row["picture"], row["book"], corpus, cat, library) + row["image"] = path + row["where"] = where + if not path: + unresolved.append({"book": row["book"], "figure": row["figure"], + "picture": row["picture"], "reason": where}) + print("the demotions: %d | the controls: %d | unresolved: %d" + % (len(items), len(controls), len(unresolved))) + where = collections.Counter(row["where"] for row in items + controls) + print("where the pictures came from:", dict(where)) + if unresolved: + with open(os.path.join(out_dir, "unresolved.jsonl"), "w", + encoding="utf-8") as fh: + for row in unresolved: + fh.write(json.dumps(row, ensure_ascii=False) + "\n") + print("the figures whose picture could not be found are written to:", + os.path.join(out_dir, "unresolved.jsonl")) + return 2 + + rows = items + controls + if args.only == "demotions": + rows = items + elif args.only == "controls": + rows = controls + random.Random(args.seed).shuffle(rows) + batches = max(1, args.batches) + size = (len(rows) + batches - 1) // batches + number = 0 + for start in range(0, len(rows), size): + chunk = rows[start:start + size] + number += 1 + path = os.path.join(out_dir, "batch %d of %d.jsonl" % (number, batches)) + with open(path, "w", encoding="utf-8") as fh: + for row in chunk: + # the packet does not say which figures the judge wanted + # demoted and which are the controls: that is in labels.json, + # and a reader that can tell them apart is not blind + packet = {key: row[key] for key in + ("book", "figure", "picture", "image", "caption", + "description", "tier")} + fh.write(json.dumps(packet, ensure_ascii=False) + "\n") + print("wrote", path, len(chunk), "figures") + with open(os.path.join(out_dir, "labels.json"), "w", encoding="utf-8") as fh: + json.dump({"demotions": [[row["book"], row["figure"]] for row in items], + "controls": [[row["book"], row["figure"]] for row in controls], + "seed": args.seed}, fh, indent=1) + print("the labels are written to", os.path.join(out_dir, "labels.json")) + return 0 + + +if __name__ == "__main__": + sys.exit(main()) diff --git a/plugins/vochic03/document-library/pipeline/scripts/check_answers_reproduced.py b/plugins/vochic03/document-library/pipeline/scripts/check_answers_reproduced.py new file mode 100644 index 00000000..e18b1da1 --- /dev/null +++ b/plugins/vochic03/document-library/pipeline/scripts/check_answers_reproduced.py @@ -0,0 +1,92 @@ +#!/usr/bin/env python3 +"""scripts/check_answers_reproduced.py - the manifest is what the ledger and +the cache say it is. + +The defect this corpus had was a re-derivation that did not replay the +escalation: the answer the tool read again was not the answer the judge gave, +and 2,955 forms dropped out of the manifest without a word. The fix is tested +on a fixture in the tool own tests. This checks the same thing on the corpus: +every form is read again from the cached evidence, with the escalation +replayed, and the answer that comes out must be the answer the manifest +carries. Nothing is asked of a model, and nothing costs money: the answers +are read out of the cache the judge wrote. + + python3 scripts/check_answers_reproduced.py --corpus-root +""" +import argparse +import json +import os +import sys + +HERE = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) +sys.path.insert(0, HERE) +sys.path.insert(0, os.path.join(HERE, "scripts")) + +import judge_forms # noqa: E402 + + +def read_json(path, default=None): + try: + with open(path, encoding="utf-8") as fh: + return json.load(fh) + except Exception: + return default + + +def main(argv=None): + ap = argparse.ArgumentParser(prog="check_answers_reproduced.py") + ap.add_argument("--corpus-root", required=True) + ap.add_argument("--model", default="") + args = ap.parse_args(argv) + corpus = os.path.abspath(os.path.expanduser(args.corpus_root)) + forms = judge_forms.read_jsonl(os.path.join(corpus, "index", "links", "forms.jsonl")) + history = judge_forms.read_jsonl(os.path.join(corpus, "index", "links", "form-judgments.jsonl")) + cache = judge_forms.read_cache(os.path.join(corpus, "index", "links")) + manifest = judge_forms.read_jsonl(os.path.join(corpus, "index", "manifest", "link.jsonl")) + model = args.model + if not model: + run = read_json(os.path.join(corpus, "index", "manifest", "link-run.json"), {}) or {} + model = (run.get("judge") or {}).get("model") or "" + decided, incomplete = judge_forms.current_rows(history, forms, corpus, cache, model=model) + latest = {} + for canonical in sorted(decided): + latest[canonical] = decided[canonical] + for canonical in sorted(incomplete): + latest.setdefault(canonical, incomplete[canonical]) + committed = dict((row.get("unit"), row) for row in manifest) + problems = [] + for canonical in sorted(latest): + row = latest[canonical] + books = sorted(set(book for group in row["groups"] for book in group)) + unplaced = sorted(row.get("unplaced") or {}) + groups = len(row["groups"]) + was = committed.get(canonical) + if was is None: + problems.append("the manifest does not carry the form: " + canonical) + continue + if (was.get("books") or []) != books: + problems.append("the books read again are not the books of the manifest: " + canonical) + continue + if (was.get("unplaced") or []) != unplaced: + problems.append("the books left unplaced read again are not the books of the manifest: " + canonical) + continue + if was.get("groups") != groups: + problems.append("the groups read again are not the groups of the manifest: " + canonical) + for canonical in sorted(set(committed) - set(latest)): + problems.append("the manifest carries a form the ledger does not answer: " + canonical) + print("the forms read again:", len(latest), "| the forms of the manifest:", len(manifest)) + if problems: + print("FAILED: the answers read again are not the answers of the manifest,") + print(" and a manifest that does not match the evidence is not a build") + for problem in problems[:20]: + print(" ", problem) + if len(problems) > 20: + print(" and %d more" % (len(problems) - 20)) + return 1 + print("every answer read again from the evidence is the answer the manifest") + print(" carries, with the escalation replayed") + return 0 + + +if __name__ == "__main__": + sys.exit(main()) \ No newline at end of file diff --git a/plugins/vochic03/document-library/pipeline/scripts/check_inventory.py b/plugins/vochic03/document-library/pipeline/scripts/check_inventory.py new file mode 100644 index 00000000..cafd5e0c --- /dev/null +++ b/plugins/vochic03/document-library/pipeline/scripts/check_inventory.py @@ -0,0 +1,248 @@ +#!/usr/bin/env python3 +'''scripts/check_inventory.py - the README must say what the inventory says. + +The inventory is generated from the artefacts, so it cannot drift from them. +The README is written by hand, so it can. This gate reads the marked section +of the README and checks every number in it against the inventory, and checks +that the gaps the inventory names are the gaps the README names. + + python3 scripts/check_inventory.py --corpus-root +''' +import argparse +import json +import os +import re +import sys +import tempfile + +HERE = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) +sys.path.insert(0, HERE) +sys.path.insert(0, os.path.join(HERE, 'scripts')) + +import build_inventory # noqa: E402 + + +def read_json(path, default=None): + try: + with open(path, encoding='utf-8') as fh: + return json.load(fh) + except Exception: + return default + +BEGIN = '' +END = '' + + +def required_problems(inventory, text=''): + """The identities the corpus must hold, and that no README may excuse. + + The list is the tool own, and not the one the inventory carries: an + inventory that left an identity out must not be able to say that the + identity was not needed. + """ + present = dict((item.get('name'), item) + for item in inventory.get('identities') or []) + problems = [] + for name in build_inventory.REQUIRED_IDENTITIES: + item = present.get(name) + if item is None: + problems.append('the inventory does not carry the identity: ' + name) + continue + state = item.get('state') + if state is None: + state = 'holds' if item.get('holds') else 'gap' + if state == 'gap': + problems.append('the identity does not hold: ' + name) + # the stages that have not run yet: the README has to say so, or a reader + # takes a library that is half built for a whole one + if inventory.get('not_built') and 'not built' not in text.lower(): + problems.append('the inventory has stages that have not run yet, and the' + ' README does not say so') + return problems + +# the labels the README uses, and the key of the inventory they carry +LABELS = [('books', 'books'), + ('book entries', 'book_entries'), + ('distinct names', 'distinct_names'), + ('names in more than one book', 'names_in_more_than_one_book'), + ('forms', 'forms'), + ('held back', 'held_back'), + ('concepts', 'concepts'), + ('concept entries', 'concept_entries'), + ('refused entries', 'refused_entries'), + ('figure blocks', 'figure_blocks'), + ('numbered paragraphs', 'paragraphs')] + + +def books_named_in_readme(text): + """The books the README names, out of the table of the books. + + The README is written by hand, so it is the one account of the books + that a build cannot rewrite: a book lost by the stage that reads the + books is still named here, and the gate says so. + """ + names = [] + lines = text.splitlines() + start = None + for index, line in enumerate(lines): + if line.strip().startswith('| Folder |'): + start = index + break + if start is None: + return names + for line in lines[start + 1:]: + stripped = line.strip() + if not stripped: + continue + if not stripped.startswith('|'): + break + cells = [cell.strip() for cell in stripped.strip('|').split('|')] + first = cells[0] + if first == 'Folder' or set(first) <= set('-:'): + continue + names.append(first) + return names + + +def number(text): + text = text.strip().replace(',', '') + match = re.search(r'-?[0-9]+', text) + return int(match.group(0)) if match else None + + +def main(argv=None): + ap = argparse.ArgumentParser(prog='check_inventory.py') + ap.add_argument('--corpus-root', required=True) + ap.add_argument('--readme', default='') + args = ap.parse_args(argv) + corpus = os.path.abspath(os.path.expanduser(args.corpus_root)) + readme_path = args.readme or os.path.join(corpus, 'README.md') + if not os.path.exists(readme_path): + print('FAILED: the corpus has no README, and the README is where the' + ' inventory is shown') + return 1 + with open(readme_path, encoding='utf-8') as fh: + readme = fh.read() + if BEGIN not in readme or END not in readme: + print('FAILED: the README has no marked inventory section') + return 1 + section = readme.split(BEGIN, 1)[1].split(END, 1)[0] + handle, path = tempfile.mkstemp(prefix='inventory-', suffix='.json') + os.close(handle) + code = build_inventory.main(['--corpus-root', corpus, '--out', path]) + with open(path, encoding='utf-8') as fh: + inventory = json.load(fh) + os.remove(path) + # the identities that no README may excuse: the corpus either holds them + # or it is broken, and a README that names the gap does not make it whole + broken = required_problems(inventory, readme) + if broken or code: + for problem in broken: + print('FAILED:', problem) + for item in inventory.get('identities') or []: + state = item.get('state') + if state is None: + state = 'holds' if item.get('holds') else 'gap' + if item.get('name') in build_inventory.REQUIRED_IDENTITIES \ + and state == 'gap': + print(' ', item['name'], ':', item['left'], 'against', item['right']) + for name in item.get('missing_forms') or []: + print(' the form the manifest does not carry:', name) + if not broken: + print('FAILED: the corpus does not hold the identity it must hold') + print(' and a README that names the gap does not excuse it') + return 1 + stated = {} + gaps = None + for line in section.splitlines(): + if '|' not in line: + continue + cells = [cell.strip() for cell in line.strip().strip('|').split('|')] + if len(cells) < 2: + continue + label = cells[0].split('(')[0].strip().lower() + value = cells[1].strip() + if label == 'gaps': + gaps = value + continue + stated[label] = number(value) + problems = [] + for label, key in LABELS: + if label not in stated: + problems.append('the README does not say the ' + label) + continue + expected = inventory['totals'].get(key) + if stated[label] != expected: + problems.append('the README says %s %s and the inventory says %s' + % (label, stated[label], expected)) + # the identities: the README names each one and gives the two numbers + # it holds between, so a drift in either is a gate failure and not a + # thing a reader has to notice + for item in inventory.get('identities') or []: + left = item.get('left') + right = item.get('right') + if left is None or right is None: + continue + # the README gives each identity its own line, and the line names + # the identity and carries its numbers, so the gate reads that line + name = item.get('name') or '' + line = None + for candidate in section.splitlines(): + if name and name in candidate: + line = candidate + break + if line is None: + problems.append('the README does not name the identity: ' + name) + continue + # a number is written with commas or with spaces, and the README may + # write it either way, so both forms are accepted + def forms(value): + return [str(value), ('{:,}'.format(value)), + ('{:,}'.format(value)).replace(',', ' ')] + wanted = forms(left) + if left != right: + wanted += forms(right) + if not any(one in line for one in wanted): + problems.append('the README does not give the numbers of %s' + % name) + named = [gap['name'] for gap in inventory.get('gaps') or []] + if not named: + if gaps is None or 'none' not in gaps.lower(): + problems.append('the inventory has no gaps and the README does not say so') + else: + if gaps is None: + problems.append('the inventory names gaps and the README does not') + else: + for name in named: + if name.split(' ')[0].lower() not in gaps.lower(): + problems.append('the README does not name the gap: ' + name) + # the evidence: a passage that sits exactly at the wide cap is evidence + # the builder could not keep whole, and the gate says so + settings = read_json(os.path.join(HERE, 'settings', 'pipeline.json'), {}) or {} + rule = (settings.get('index') or {}).get('link_rule') or {} + limit = rule.get('evidence_wide_cap_share_max') + share = (inventory.get('evidence') or {}).get('share_at_the_wide_cap') + if limit is not None and share is not None and share > limit: + problems.append('%.1f per cent of the passages sit exactly at the wide cap,' + ' and the limit is %.1f per cent' % (100 * share, 100 * limit)) + # the books the README names against the books of the corpus: the + # README is written by hand, so it is the one account of the books that + # a build cannot rewrite + named = books_named_in_readme(readme) + have = [row.get('book') for row in inventory.get('books') or []] + if named and set(named) != set(have): + problems.append('the books the README names and the books of the corpus' + ' are not the same') + problems.append('the README names: %s' % ', '.join(sorted(set(named) - set(have)))) + problems.append('the corpus holds: %s' % ', '.join(sorted(set(have) - set(named)))) + for problem in problems: + print('FAILED:', problem) + if problems: + return 1 + print('the README and the inventory agree:', + ', '.join('%s %s' % (label, stated[label]) for label, _ in LABELS)) + return 0 + + +if __name__ == '__main__': + sys.exit(main()) diff --git a/plugins/vochic03/document-library/pipeline/scripts/check_minimal.py b/plugins/vochic03/document-library/pipeline/scripts/check_minimal.py new file mode 100644 index 00000000..20e7c9bb --- /dev/null +++ b/plugins/vochic03/document-library/pipeline/scripts/check_minimal.py @@ -0,0 +1,176 @@ +#!/usr/bin/env python3 +"""scripts/check_minimal.py - the proof that a rerun does the least. + +Written 26 Nov 2026 by MCode, after the ruling of Claude Opus 5.5 on the +corpus-wide term index (brief 13). + +"Provably minimal" is not a promise, it is a check. This script compares +the manifest of a stage now against the manifest of that stage as it was +committed, and it fails the run when the work was not the least it could +be. + +The three rules: + + * a unit whose key did not change must have the same output it had. + The same inputs gave different bytes, and that is never right. + * a unit whose key is new is a unit that had to be made: for the links + it must be a form that touches a book the corpus did not have, or a + form whose judge changed. Anything else is work that was not asked + for. + * a unit whose key is new must carry an output of its own: a unit that + was made for nothing is a unit that was not needed. + + python3 scripts/check_minimal.py --corpus-root --ref HEAD +""" +import argparse +import json +import os +import subprocess +import sys + +HERE = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) +sys.path.insert(0, HERE) + +STAGES = ("terms", "link", "assemble") + + +def read_jsonl(text): + rows = [] + for line in (text or "").splitlines(): + line = line.strip() + if line: + try: + rows.append(json.loads(line)) + except ValueError: + continue + return rows + + +def git(corpus, *args): + result = subprocess.run(["git"] + list(args), cwd=corpus, + capture_output=True, text=True) + return result.stdout + + +def old_manifest(corpus, stage, ref): + """The manifest of the stage as it was committed.""" + return read_jsonl(git(corpus, "show", "%s:index/manifest/%s.jsonl" + % (ref, stage))) + + +def old_books(corpus, ref): + """The books the corpus had before the change.""" + names = set() + for line in git(corpus, "ls-tree", "--name-only", ref).splitlines(): + path = os.path.join(corpus, line) + if os.path.isdir(path) and (os.path.isdir(os.path.join(path, "chapters")) + or os.path.exists(os.path.join(path, + "paragraphs.jsonl"))): + names.add(line) + return names + + +def new_books(corpus): + """The books the corpus has now.""" + names = set() + for line in os.listdir(corpus): + path = os.path.join(corpus, line) + if os.path.isdir(path) and not line.startswith("."): + if (os.path.isdir(os.path.join(path, "chapters")) + or os.path.exists(os.path.join(path, "paragraphs.jsonl"))): + names.add(line) + return names + + +def check_stage(corpus, stage, ref): + """The check for one stage.""" + path = os.path.join(corpus, "index", "manifest", "%s.jsonl" % stage) + if not os.path.exists(path): + return {"stage": stage, "ok": True, "note": "no manifest yet", + "problems": []} + with open(path, encoding="utf-8") as fh: + new_rows = read_jsonl(fh.read()) + old_rows = old_manifest(corpus, stage, ref) + if not old_rows: + # there is nothing to compare with: this is the first build of this + # stage, and everything is new. The next build is the one the + # check can hold to account. + return {"stage": stage, "ok": True, "old": 0, "new": len(new_rows), + "computed": len(new_rows), "reused": 0, + "note": "first build: no manifest to compare with", + "problems": []} + old_by_key = {} + old_by_unit = {} + for row in old_rows: + old_by_key[row["key"]] = row + old_by_unit[row.get("unit")] = row + new_by_key = {row["key"]: row for row in new_rows} + computed = set(new_by_key) - set(old_by_key) + reused = set(new_by_key) & set(old_by_key) + problems = [] + for key in sorted(reused): + before = old_by_key[key] + after = new_by_key[key] + if (before.get("content") or "") != (after.get("content") or ""): + # the question changed, so the answer may change with it + continue + if (before.get("output") or "") != (after.get("output") or ""): + problems.append("the same question gave different bytes: %s" + % after.get("unit")) + break + if stage == "link": + fresh = new_books(corpus) - old_books(corpus, ref) + for key in sorted(computed): + row = new_by_key[key] + books = row.get("books") or [] + if [name for name in books if name in fresh]: + continue + before = old_by_unit.get(row.get("unit")) + if before is None: + continue + if before.get("model") != row.get("model"): + # the judge changed, so every answer had to be given again + continue + if sorted(before.get("books") or []) != sorted(row.get("books") or []): + # the books the form is in changed, so the question is not + # the question that was asked before, even when the passages + # that carry it are the same + continue + if (before.get("content") or "") != (row.get("content") or ""): + # the question itself changed, so the answer had to be + # given again + continue + problems.append("a form was judged that no new book is in, " + "that no judge changed and whose terms did not " + "change: %s" % row.get("unit")) + break + return {"stage": stage, "ok": not problems, "old": len(old_by_key), + "new": len(new_by_key), "computed": len(computed), + "reused": len(reused), "problems": problems} + + +def main(argv=None): + ap = argparse.ArgumentParser(prog="check_minimal.py") + ap.add_argument("--corpus-root", required=True) + ap.add_argument("--ref", default="HEAD") + ap.add_argument("--stage", default="") + args = ap.parse_args(argv) + corpus = args.corpus_root + stages = [args.stage] if args.stage else list(STAGES) + failed = 0 + for stage in stages: + report = check_stage(corpus, stage, args.ref) + print("%-9s old %4d | new %4d | computed %4d | reused %4d | %s%s" + % (stage, report.get("old", 0), report.get("new", 0), + report.get("computed", 0), report.get("reused", 0), + "ok" if report["ok"] else "FAILED", + (" (%s)" % report["note"]) if report.get("note") else "")) + for problem in report.get("problems") or []: + print(" %s" % problem) + if not report["ok"]: + failed += 1 + return 1 if failed else 0 + + +if __name__ == "__main__": + sys.exit(main()) diff --git a/plugins/vochic03/document-library/pipeline/scripts/check_reader_browser.py b/plugins/vochic03/document-library/pipeline/scripts/check_reader_browser.py new file mode 100755 index 00000000..79b263ad --- /dev/null +++ b/plugins/vochic03/document-library/pipeline/scripts/check_reader_browser.py @@ -0,0 +1,134 @@ +#!/usr/bin/env python3 +"""Drive a reader in a real browser and report what happened. + +The reader's search, its jump, its filter and its progress bar are +JavaScript, and a screenshot cannot show whether they work. This copies a +reader, adds a script that drives them, and asks a headless browser what +the result was. +""" +import json, os, re, subprocess, sys, tempfile + +CHROME = "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" + +TEST = r""" + +""" + + +def main(argv): + if not os.path.exists(CHROME): + # a machine with no browser cannot run it; the check is not a + # failure there, it is simply not available + print("skipped: no Chrome at %s" % CHROME) + return 0 + reader = argv[0] if argv else os.path.expanduser( + "//index.html") + if not os.path.exists(reader): + print("skipped: no reader at %s" % reader) + return 0 + # the number of pictures the book declares, so that a check which + # examined nothing cannot pass: the reader must show the pictures the + # manifest says the book has + expected = 0 + manifest = os.path.join(os.path.dirname(reader), "figures.json") + if os.path.exists(manifest): + with open(manifest, encoding="utf-8") as fh: + data = json.load(fh) + expected = len(data.get("figures") or []) + work = tempfile.mkdtemp(prefix="reader-browser-") + copy = os.path.join(work, "reader.html") + html = open(reader, encoding="utf-8").read() + # the word to search for comes from the book itself, so the check means + # something on every book and not only on the ones that happen to + # contain a common word + word = "" + title = re.search(r"(.*?)", html, re.S) + if title: + for candidate in re.findall(r"[A-Za-z]{8,}", title.group(1)): + word = candidate.lower() + break + if not word: + word = "the" + html = html.replace("", TEST.replace("SEARCHWORD", word) + "", 1) + with open(copy, "w", encoding="utf-8") as fh: + fh.write(html) + profile = os.path.join(work, "profile") + result = subprocess.run( + [CHROME, "--headless", "--disable-gpu", "--user-data-dir=" + profile, + "--virtual-time-budget=15000", "--dump-dom", "file://" + copy], + capture_output=True, text=True) + match = re.search(r"(.*?)", result.stdout, re.S) + if not match or not match.group(1).startswith("RESULT"): + print("the reader did not answer; the browser said:") + print(result.stdout[:400]) + print(result.stderr[:400]) + return 1 + print(match.group(1).replace(" | ", "\n")) + # a check that examined nothing has proved nothing: the reader must + # show the pictures the manifest declares + found = re.search(r"pictures=(\d+)", match.group(1)) + pictures = int(found.group(1)) if found else 0 + if expected and pictures < expected: + print("FAILED: the reader shows %d pictures and the manifest declares %d" + % (pictures, expected)) + return 1 + return 0 + + +if __name__ == "__main__": + sys.exit(main(sys.argv[1:])) diff --git a/plugins/vochic03/document-library/pipeline/scripts/check_readers.py b/plugins/vochic03/document-library/pipeline/scripts/check_readers.py new file mode 100644 index 00000000..532d95b6 --- /dev/null +++ b/plugins/vochic03/document-library/pipeline/scripts/check_readers.py @@ -0,0 +1,176 @@ +#!/usr/bin/env python3 +"""Check the committed readers against the notes they were made from. + +The build needs the picture library; this check does not. It reads the +reader, the notes and the manifest that names the pictures, and asks the +gate the same questions it asks at build time: is this reader still the +notes, are the pictures there, is anything pointing outside the book. + + python3 scripts/check_readers.py --corpus-root +""" +import argparse +import json +import os +import re +import sys + +HERE = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) +sys.path.insert(0, HERE) +sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) + +from book2corpus import notes_gate +from book2corpus import stamp + +HOSTED_RE = re.compile(r'src="(https?://[^"]+?/figures/)') +ID_RE = re.compile(r'id="([^"]+)"') +HREF_RE = re.compile(r'href="#([^"]+)"') + + +def check_machine_reader(book_dir, reader_path): + """A machine corpus's reader, checked against the corpus it was made from. + + A machine corpus keeps its paragraphs in paragraphs.jsonl. The reader + must carry every one of them, must not be missing a single paragraph + from the corpus it claims to show, and must not point at an id it does + not have. + """ + problems = [] + records = [] + with open(os.path.join(book_dir, "paragraphs.jsonl"), encoding="utf-8") as fh: + for line in fh: + line = line.strip() + if line: + records.append(json.loads(line)) + with open(reader_path, encoding="utf-8") as fh: + html = fh.read() + ids = set(ID_RE.findall(html)) + wanted = {r.get("id") for r in records if r.get("id")} + missing = wanted - ids + if missing: + problems.append("%d paragraphs of the corpus are not in the reader" + % len(missing)) + if "{{" in html: + problems.append("the reader has a placeholder that was never filled in") + broken = {h for h in HREF_RE.findall(html) if h and h not in ids} + if broken: + problems.append("%d links in the reader point at ids that are not there" + % len(broken)) + # and the words: the reader must show the corpus paragraph by paragraph, + # which is the question the machine corpus's own gate asks + try: + from book2corpus import verify + scan = verify._ReaderScan() + scan.feed(html) + rendered = {} + for pid, text in scan.units: + rendered.setdefault(pid, verify._norm(text)) + differing = 0 + for record in records: + want = verify._norm(record.get("text")) + got = rendered.get(record.get("id")) + if got is None or got != want: + differing += 1 + if differing: + problems.append("%d paragraphs of the corpus differ in the reader" + % differing) + except Exception as exc: + problems.append("the reader could not be read back: %s" % exc) + return problems + + +def stamp_difference(found): + """What changed in the tool between the reader and today.""" + today = set(stamp.tool_state(HERE)["files"]) + then = set(found.get("files") or []) + added = sorted(today - then) + gone = sorted(then - today) + if not added and not gone: + return "" + parts = [] + if added: + parts.append("now covered: " + ", ".join(added[:4])) + if gone: + parts.append("no longer covered: " + ", ".join(gone[:4])) + return " (" + "; ".join(parts) + ")" + + +def stamp_problems(html, root, book): + """What the reader's stamp says about it, and what it should say. + + A reader without a stamp cannot be checked, and a reader whose + stamp is older than the index it shows is a reader of another + corpus. Both fail: a stale reader that passes the gate is worse + than no reader at all. + """ + found = stamp.read_stamp(html) + if not found: + return ["the reader has no build stamp"] + problems = [] + if found["index"] != stamp.index_hash(root, book): + problems.append("the reader was built from another index") + if found["tool"] != stamp.tool_hash(HERE): + problems.append("the reader was built by another version of the tool" + + stamp_difference(found)) + return problems + + +def main(argv=None): + parser = argparse.ArgumentParser() + parser.add_argument("--corpus-root", required=True) + parser.add_argument("--picture-base", default="", + help="the host the pictures come from, if not the book") + args = parser.parse_args(argv) + root = os.path.abspath(os.path.expanduser(args.corpus_root)) + + failed = [] + checked = 0 + for book in sorted(os.listdir(root)): + book_dir = os.path.join(root, book) + reader = os.path.join(book_dir, "index.html") + manifest = os.path.join(book_dir, "figures.json") + if not os.path.exists(reader) or not os.path.exists(manifest): + continue + with open(manifest, encoding="utf-8") as fh: + data = json.load(fh) + with open(reader, encoding="utf-8") as fh: + html = fh.read() + base = args.picture_base + if not base: + found = HOSTED_RE.search(html) + if found: + base = found.group(1).rstrip("/") + base = base[: base.rindex("/")] if "/" in base[len("http"):] else base + if os.path.exists(os.path.join(book_dir, "paragraphs.jsonl")): + # a machine corpus: its own reader, its own paragraphs, its own gate + problems = check_machine_reader(book_dir, reader) + else: + built = {"manifest": data.get("figures", []), + "figure_map": data.get("figure_map", [])} + problems = notes_gate.check(book_dir, built, html, picture_base=base or None) + problems.extend(stamp_problems(html, root, book)) + checked += 1 + if problems: + failed.append((book, problems)) + print("%-28s FAILED %s" % (book, problems[0])) + else: + print("%-28s ok" % book) + # the readers and the books the corpus knows about are the same books + terms_dir = os.path.join(root, "index", "terms") + books = set() + if os.path.isdir(terms_dir): + for name in os.listdir(terms_dir): + if name.endswith(".jsonl"): + books.add(name[:-6]) + if books and len(books) != checked: + failed.append(("readers", ["the corpus knows %d books and there" + % len(books)])) + failed[-1][1].append("are %d readers" % checked) + print("ALARM: the corpus knows %d books and there are %d readers" + % (len(books), checked)) + print() + print("readers checked: %d | failed: %d" % (checked, len(failed))) + return 1 if failed else 0 + + +if __name__ == "__main__": + sys.exit(main()) diff --git a/plugins/vochic03/document-library/pipeline/scripts/check_reproducible.py b/plugins/vochic03/document-library/pipeline/scripts/check_reproducible.py new file mode 100755 index 00000000..b47b5c56 --- /dev/null +++ b/plugins/vochic03/document-library/pipeline/scripts/check_reproducible.py @@ -0,0 +1,539 @@ +#!/usr/bin/env python3 +"""Is the build reproducible? Build the same book twice and compare. + +The readers are committed to a repository, so the build that makes them +has to give the same bytes every time: on any machine, under any hash +seed, with the folders listed in any order, with the parse cache warm or +cold. This test builds a small book of notes against a small catalogue of +pictures, twice, and compares the two readers byte for byte. + +It also proves the test can see a difference: a control that must differ, +and a planted fault that must be caught. + + python3 scripts/check_reproducible.py +""" +import hashlib +import json +import os +import shutil +import subprocess +import sys +import tempfile + +HERE = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) +BUILD = os.path.join(HERE, "scripts", "md_corpus2html.py") + +NOTES = { + "01 The first chapter.md": """# The first chapter + +Source: A Test Book (2026) + +=== PAGE 7 (PDF page 9) === + +The first paragraph of the test book, long enough to be a sentence of its own. + +[FIGURE 1] +TYPE: diagram +CAPTION: Figure 1.1 A test diagram +CONTENT: A box with an arrow pointing at another box, which is what a test diagram is. +TEXT IN FIGURE: none +-- + +=== PAGE 8 (PDF page 10) === + +A second paragraph, with a figure that has no number. + +[FIGURE unnumbered] +TYPE: illustration +CAPTION: A picture of a lamp +CONTENT: A lamp on a table, lit, standing next to a window. +TEXT IN FIGURE: none +-- + +[FIGURE unnumbered] +TYPE: photograph +CAPTION: A photograph of a chair +CONTENT: A wooden chair by a door, seen from the side, with a coat on its back. +TEXT IN FIGURE: none +-- + +[FIGURE unnumbered] +TYPE: diagram +CAPTION: A diagram of a door +CONTENT: A rectangle with an arrow pointing at it, which the catalogue does not describe. +TEXT IN FIGURE: none +-- +""", + "02 The second chapter.md": """# The second chapter + +Source: A Test Book (2026) + +=== PAGE 11 (PDF page 13) === + +A third paragraph, and a figure that the catalogue also holds. + +[FIGURE 2] +TYPE: diagram +CAPTION: Figure 2.1 Another test diagram +CONTENT: Two circles joined by a line, which is what another test diagram is. +TEXT IN FIGURE: none +-- + +[FIGURE 2.2] +TYPE: diagram +CAPTION: Figure 2.2 A third test diagram +CONTENT: A circle with a dot in the middle, which is what a third test diagram is. +TEXT IN FIGURE: none +-- +""", +} + +# a one pixel PNG, the smallest picture a book can hold +PNG = bytes.fromhex( + "89504e470d0a1a0a0000000d494844520000000100000001080600000" + "01f15c4890000000a49444154789c6300010000050001" + "0d0a2db40000000049454e44ae426082") + + +RECORDS = [ + {"id": "Test-0001", "book": "Test", "file": "Test/chapters/one.png", + "page": "7", "printed_page": "7", "chapter": "01 The first chapter", + "caption": "Figure 1.1 A test diagram", + "description": "A box with an arrow pointing at another box, which is what a test diagram is.", + "figure": "1.1", "kind": "raster"}, + {"id": "Test-0002", "book": "Test", "file": "Test/chapters/two.png", + "page": "8", "printed_page": "8", "chapter": "01 The first chapter", + "caption": "A picture of a lamp", + "description": "A lamp on a table, lit, standing next to a window.", + "figure": "", "kind": "raster"}, + {"id": "Test-0004", "book": "Test", "file": "Test/chapters/four.png", + "page": "8", "printed_page": "8", "chapter": "01 The first chapter", + "caption": "A photograph of a chair", + "description": "A wooden chair by a door, seen from the side, with a coat on its back.", + "figure": "", "kind": "raster"}, + {"id": "Test-0003", "book": "Test", "file": "Test/chapters/three.png", + "page": "11", "printed_page": "11", "chapter": "02 The second chapter", + "caption": "Figure 2.1 Another test diagram", + "description": "Two circles joined by a line, which is what another test diagram is.", + "figure": "2.1", "kind": "raster"}, + {"id": "Test-0005", "book": "Test", "file": "Test/chapters/five.png", + "page": "8", "printed_page": "8", "chapter": "01 The first chapter", + "caption": "A picture of a window", + "description": "A window with the curtains drawn back, showing a garden.", + "figure": "", "kind": "raster"}, + {"id": "Test-0006", "book": "Test", "file": "Test/chapters/six.png", + "page": "8", "printed_page": "8", "chapter": "01 The first chapter", + "caption": "A picture of a tree", + "description": "A tree in a garden, seen against the sky.", + "figure": "", "kind": "raster"}, + {"id": "Test-0007", "book": "Test", "file": "Test/chapters/seven.png", + "page": "11", "printed_page": "11", "chapter": "02 The second chapter", + "caption": "Figure 2.2 A third test diagram", + "description": "A circle with a dot in the middle, which is what a third test diagram is.", + "figure": "2.2", "kind": "raster"}, +] + + +# A book whose two figures the catalogue cannot tell apart: the same +# number, the same description, two pictures. Nothing decides between +# them, so nothing may be claimed. +TIE_NOTES = { + "01 The tie chapter.md": """# The tie chapter + +Source: A Test Book (2026) + +=== PAGE 3 (PDF page 5) === + +Two figures the catalogue cannot tell apart. + +[FIGURE 1.1] +TYPE: diagram +CAPTION: Figure 1.1 A test diagram +CONTENT: A box with an arrow pointing at another box, which is what a test diagram is. +TEXT IN FIGURE: none +-- + +[FIGURE 1.1] +TYPE: diagram +CAPTION: Figure 1.1 A test diagram +CONTENT: A box with an arrow pointing at another box, which is what a test diagram is. +TEXT IN FIGURE: none +-- +"""} + +TIE_RECORDS = [ + {"id": "Tie-0001", "book": "Tie", "file": "Tie/chapters/one.png", + "page": "3", "printed_page": "3", "chapter": "01 The tie chapter", + "caption": "Figure 1.1 A test diagram", + "description": "A box with an arrow pointing at another box, which is what a test diagram is.", + "figure": "1.1", "kind": "raster"}, + {"id": "Tie-0002", "book": "Tie", "file": "Tie/chapters/two.png", + "page": "3", "printed_page": "3", "chapter": "01 The tie chapter", + "caption": "Figure 1.1 A test diagram", + "description": "A box with an arrow pointing at another box, which is what a test diagram is.", + "figure": "1.1", "kind": "raster"}, +] + + +def records_in_order(): + """The catalogue records, in the order they are written by default.""" + return [dict(record) for record in RECORDS] + + +def picture_library(root, order=None): + """A small catalogue: four pictures, one page of the test book holding + two of them, so that one figure has more than one candidate.""" + os.makedirs(os.path.join(root, "book", "chapters"), exist_ok=True) + records = records_in_order() + for record in records: + path = os.path.join(root, record["file"]) + os.makedirs(os.path.dirname(path), exist_ok=True) + with open(path, "wb") as fh: + fh.write(PNG) + with open(os.path.join(root, "agent-index.jsonl"), "w", encoding="utf-8") as fh: + for record in (order if order is not None else records): + fh.write(json.dumps(record, sort_keys=True) + '\n') + + +def notes_corpus(root, order, mutate=False): + """The notes, written in the order given, so the folder listing differs.""" + book = os.path.join(root, "corpus", "Test") + os.makedirs(os.path.join(book, "chapters"), exist_ok=True) + for name in order: + text = NOTES[name] + if mutate and name.startswith("02"): + text = text.replace("Figure 2.1 Another test diagram", + "Figure 2.1 Another test diagram, changed") + with open(os.path.join(book, "chapters", name), "w", encoding="utf-8") as fh: + fh.write(text) + return os.path.join(root, "corpus") + + +def tie_corpus(root): + """A book whose figures the catalogue cannot tell apart.""" + book = os.path.join(root, "corpus", "Tie") + os.makedirs(os.path.join(book, "chapters"), exist_ok=True) + for name, text in TIE_NOTES.items(): + with open(os.path.join(book, "chapters", name), "w", encoding="utf-8") as fh: + fh.write(text) + return os.path.join(root, "corpus") + + +def tie_library(root, order=None): + """The catalogue of the tie book: two pictures that look the same.""" + os.makedirs(os.path.join(root, "book", "chapters"), exist_ok=True) + for record in TIE_RECORDS: + path = os.path.join(root, record["file"]) + os.makedirs(os.path.dirname(path), exist_ok=True) + with open(path, "wb") as fh: + fh.write(PNG) + with open(os.path.join(root, "agent-index.jsonl"), "w", encoding="utf-8") as fh: + for record in (order if order is not None else TIE_RECORDS): + fh.write(json.dumps(record, sort_keys=True) + "\n") + + +def build(corpus, library, seed, env=None, order=None, force=True, books="Test", + extra=None): + """Build the book and return the bytes of what it wrote.""" + environment = dict(os.environ) + environment["PYTHONHASHSEED"] = str(seed) + if env: + environment.update(env) + command = [sys.executable, BUILD, "--corpus-root", corpus, "--library", library, + "--books", books, "--jobs", "1"] + if force: + command.append("--force") + if extra: + command.extend(extra) + result = subprocess.run(command, capture_output=True, text=True, + env=environment) + if result.returncode: + raise SystemExit("the build failed:\n%s\n%s" % (result.stdout, result.stderr)) + reader = os.path.join(corpus, books, "index.html") + with open(reader, "rb") as fh: + data = fh.read() + with open(os.path.join(corpus, books, "figures.json"), "rb") as fh: + manifest = fh.read() + return data, manifest, result.stdout + + +def same(a, b): + return hashlib.sha256(a).hexdigest() == hashlib.sha256(b).hexdigest() + + +def swapped_records(): + """The catalogue with two descriptions exchanged: a picture swapped.""" + records = records_in_order() + by_id = {record["id"]: record for record in records} + first = by_id["Test-0003"]["description"] + second = by_id["Test-0007"]["description"] + by_id["Test-0003"]["description"] = second + by_id["Test-0007"]["description"] = first + return records + + +def moved_records(): + """The catalogue with one picture taken from another book's folder.""" + records = records_in_order() + for record in records: + if record["id"] == "Test-0001": + record["file"] = "Elsewhere/chapters/one.png" + return records + + +def build_and_report(corpus, library, books="Test"): + """Build and say what the gate said, without raising.""" + result = subprocess.run( + [sys.executable, BUILD, "--corpus-root", corpus, "--library", library, + "--books", books, "--force", "--jobs", "1"], + capture_output=True, text=True) + return result.returncode, result.stdout + result.stderr + + +def real_corpus(): + """The library the check compares a real book of, if there is one. + + The environment names it, and the settings of the run name it, and a + library that has neither simply does without a real book. + """ + corpus = os.environ.get("B2C_CORPUS_ROOT", "") + if corpus: + return corpus + settings = os.path.join(HERE, "settings", "pipeline.json") + if not os.path.exists(settings): + return "" + try: + with open(settings, encoding="utf-8") as fh: + return (json.load(fh) or {}).get("corpus_root") or "" + except Exception: + return "" + + +def real_book_check(work, corpus, checks): + """A real book, with its pictures, built twice.""" + if not os.path.isdir(corpus): + return + candidates = [] + for name in sorted(os.listdir(corpus)): + reader = os.path.join(corpus, name, "index.html") + manifest = os.path.join(corpus, name, "figures.json") + if not (os.path.exists(reader) and os.path.exists(manifest)): + continue + try: + with open(manifest, encoding="utf-8") as fh: + data = json.load(fh) + except Exception: + continue + shown = sum(1 for f in data.get("figure_map", []) if f.get("image")) + if shown < 10: + continue + candidates.append((os.path.getsize(reader), name)) + if not candidates: + return + candidates.sort() + name = candidates[0][1] + # the book, its notes and the policy that governs its pictures, copied + # out of the corpus so that the corpus itself is not touched + book_root = os.path.join(work, "real", "corpus", name) + shutil.copytree(os.path.join(corpus, name, "chapters"), + os.path.join(book_root, "chapters")) + for extra in ("picture-policy.json", "picture-verdicts.jsonl"): + source = os.path.join(corpus, extra) + if os.path.exists(source): + shutil.copy(source, os.path.join(work, "real", "corpus", extra)) + library = os.environ.get("B2C_LIBRARY") or os.path.expanduser( + "~/Library/Mobile Documents/com~apple~CloudDocs/Textbooks") + if not os.path.isdir(library): + return + code, output = build_and_report(os.path.join(work, "real", "corpus"), + library, books=name) + ok = code == 0 + checks.append(("A real book passes its own gate", ok, + "passed" if ok else "failed:\n%s" % output[-600:])) + if not ok: + return + reader = os.path.join(work, "real", "corpus", name, "index.html") + with open(reader, "rb") as fh: + data = fh.read() + # every picture file is the file the manifest says it is + with open(os.path.join(work, "real", "corpus", name, "figures.json"), + encoding="utf-8") as fh: + manifest = json.load(fh) + bad = [] + for entry in manifest.get("figures", []): + path = os.path.join(work, "real", "corpus", name, entry["derivative_file"]) + if not os.path.exists(path): + bad.append(entry["derivative_file"]) + continue + with open(path, "rb") as fh: + digest = hashlib.sha256(fh.read()).hexdigest() + if digest != entry.get("derivative_sha256"): + bad.append(entry["derivative_file"]) + checks.append(("Every picture is the file the manifest says", not bad, + "they are" if not bad else "wrong: %s" % ", ".join(bad[:3]))) + # one picture, one figure, unless the sharing is declared + shared = {} + for figure in manifest.get("figure_map", []): + if figure.get("image"): + shared.setdefault(figure["image"], []).append(figure) + undeclared = [image for image, group in shared.items() + if len(group) > 1 and not group[0].get("shared_with")] + checks.append(("A picture is used by one figure, unless it is declared", + not undeclared, + "they are" if not undeclared else + "%d pictures are used twice" % len(undeclared))) + + +def main(argv=None): + work = tempfile.mkdtemp(prefix="book2corpus-repro-") + checks = [] + try: + # two catalogues: the same pictures, written down in the other order + library = os.path.join(work, "library") + library_b = os.path.join(work, "library-b") + picture_library(library) + picture_library(library_b, order=list(reversed(records_in_order()))) + + names = sorted(NOTES) + forward = notes_corpus(os.path.join(work, "a"), names) + backward = notes_corpus(os.path.join(work, "b"), list(reversed(names))) + + reader_a, manifest_a, _ = build(forward, library, 1) + reader_b, manifest_b, _ = build(backward, library, 2) + checks.append(("Hash seeds 1 and 2", same(reader_a, reader_b), + "the readers differ" if not same(reader_a, reader_b) else "the same, byte for byte")) + checks.append(("The manifest, likewise", same(manifest_a, manifest_b), + "the same, byte for byte" if same(manifest_a, manifest_b) else "the manifests differ")) + + # the folders listed in the other order + reader_c, _, _ = build(backward, library_b, 1) + checks.append(("The catalogue in the other order", same(reader_a, reader_c), + "the same, byte for byte" if same(reader_a, reader_c) else "the readers differ")) + + # the control: the test must be able to see a difference + control_a, _, _ = build(forward, library, 1, + env={"B2C_MATCH": "off"}) + checks.append(("Matching off: the control", + not same(reader_a, control_a), + "the readers differ, as they must" if not same(reader_a, control_a) + else "the control did not differ: the test cannot see")) + legacy, _, _ = build(forward, library, 1, env={"B2C_ORDER": "legacy"}) + checks.append(("The old order of the manifest: the control", + not same(manifest_a, legacy), + "the manifest differs, as it must" + if not same(manifest_a, legacy) + else "the control did not differ: the test cannot see")) + + # a planted fault: a caption changed must change the reader + planted_corpus = notes_corpus(os.path.join(work, "c"), names, mutate=True) + reader_d, _, _ = build(planted_corpus, library, 1) + checks.append(("A planted change to a caption", not same(reader_a, reader_d), + "found" if not same(reader_a, reader_d) else "not found: the test is blind")) + + # an incremental build must give the same bytes as a clean one + clean_corpus = notes_corpus(os.path.join(work, "inc-clean"), names) + clean_reader, clean_manifest, _ = build(clean_corpus, library, 1) + inc_corpus = notes_corpus(os.path.join(work, "inc"), names) + build(inc_corpus, library, 1, force=False) + chapter = os.path.join(inc_corpus, "Test", "chapters", + "02 The second chapter.md") + os.utime(chapter, None) + inc_reader, inc_manifest, output = build(inc_corpus, library, 1, force=False) + checks.append(("An incremental build equals a clean one", + same(clean_reader, inc_reader) + and same(clean_manifest, inc_manifest), + "the same, byte for byte" + if same(clean_reader, inc_reader) else "the readers differ")) + checks.append(("A book whose notes were touched is left alone", + "unchanged" in output, + "left alone" if "unchanged" in output + else "it was rebuilt: the key followed the date")) + + # the reader must not depend on the locale or the timezone + for name, env in (("the locale", {"LC_ALL": "C"}), + ("the locale, in UTF-8", {"LC_ALL": "en_US.UTF-8"}), + ("the timezone", {"TZ": "UTC"}), + ("the timezone, east of it", {"TZ": "Pacific/Auckland"})): + reader_x, _, _ = build(forward, library, 1, env=env) + checks.append(("The reader does not depend on %s" % name, + same(reader_a, reader_x), + "it does not" if same(reader_a, reader_x) + else "the readers differ")) + + # a tie is a coin toss, and nothing may be claimed + tie_lib = os.path.join(work, "tie-library") + tie_library(tie_lib) + tie_book = tie_corpus(os.path.join(work, "tie")) + tie_reader, tie_manifest, _ = build(tie_book, tie_lib, 1, books="Tie") + with open(os.path.join(tie_book, "Tie", "figures.json"), + encoding="utf-8") as fh: + tie_map = json.load(fh) + refusals = [f for f in tie_map.get("figure_map", []) if f.get("refusal")] + tied = (len(refusals) == 2 + and all(r["refusal"].get("tie") for r in refusals) + and all(r["refusal"].get("margin") == 0 for r in refusals)) + checks.append(("A tie is left unclaimed, with the margin written down", + tied, + "it is" if tied else "the figures claimed: %s" + % [f.get("tier") for f in tie_map.get("figure_map", [])])) + orders = [] + for index, order in enumerate((TIE_RECORDS, list(reversed(TIE_RECORDS))), 1): + lib = os.path.join(work, "tie-library-%d" % index) + tie_library(lib, order=order) + reader_x, _, _ = build(tie_book, lib, 1 + index, books="Tie") + orders.append(reader_x) + checks.append(("A tie gives the same reader whatever the order", + same(orders[0], orders[1]), + "it does" if same(orders[0], orders[1]) + else "the readers differ")) + + # the planted faults: a picture swapped, and a picture moved + swap_library = os.path.join(work, "swap-library") + picture_library(swap_library, order=swapped_records()) + code, output = build_and_report(forward, swap_library) + # the number the book printed stands against a description that + # reads differently, so a swap is a finding for the audit and not + # a failure of the book: it must be written down all the same + suspects = [] + try: + with open(os.path.join(forward, "Test", "notes-report.json"), + encoding="utf-8") as fh: + suspects = json.load(fh).get("suspects") or [] + except Exception: + suspects = [] + found = [s for s in suspects if "swapped" in s] + checks.append(("A swapped picture is found and written down", + bool(found), + "found: %s" % found[0] if found + else "not found:\n%s" % output[-600:])) + move_library = os.path.join(work, "move-library") + picture_library(move_library, order=moved_records()) + code, output = build_and_report(forward, move_library) + checks.append(("A picture moved from another book is caught", + code != 0 and "another book" in output, + "caught" if (code != 0 and "another book" in output) + else "not caught:\n%s" % output[-600:])) + + # and a real book, with its pictures: the library that is being + # built, so that the check is not tied to one corpus + real_book_check(work, os.path.expanduser(real_corpus()), checks) + + print("Reproducible build check") + print() + print("| Check | Result |") + print("| --- | --- |") + for name, ok, detail in checks: + print("| %s | %s |" % (name, detail)) + print() + failed = [name for name, ok, _ in checks if not ok] + if failed: + print("FAILED: %s" % ", ".join(failed)) + return 1 + print("every check held.") + return 0 + finally: + shutil.rmtree(work, ignore_errors=True) + + +if __name__ == "__main__": + sys.exit(main()) diff --git a/plugins/vochic03/document-library/pipeline/scripts/check_source_traces.py b/plugins/vochic03/document-library/pipeline/scripts/check_source_traces.py new file mode 100644 index 00000000..d9b892e1 --- /dev/null +++ b/plugins/vochic03/document-library/pipeline/scripts/check_source_traces.py @@ -0,0 +1,141 @@ +#!/usr/bin/env python3 +"""The gate for the traces of the copy: does a corpus name where it came from? + +A corpus artefact records the book, not the copy. The name of the place +the file was downloaded from, the name of that file and the hash of that +file identify a copy, and a corpus that carries them points at where a +copy can be found. So they are not allowed, and this is the gate that +looks for them: a corpus with a trace in it does not pass. + + python3 scripts/check_source_traces.py + +WHAT IT READS: every .md, .jsonl, .json and .html file in the tree, and +the search index. The number of files examined of each type is printed, +because a gate that examined nothing has proved nothing: if a type that +was expected held no file at all, the run fails. + +WHAT IT LOOKS FOR: the name of a place a copy is downloaded from, the +digitisation stamp that says who scanned the book, the hash of the file +the book was read from standing on its own, and the name of that file. + +The rewriter is the other script: scripts/scrub_source_traces.py takes the +old download headers out. A manifest that names the copy is not rewritten +blindly - the tool writes that field, so the build writes it again. +""" +import argparse +import collections +import os +import re +import sys + +# the places a copy is downloaded from +COLLECTIONS = ("Anna's Archive", "Anna\u2019s Archive", "Internet Archive", + "Archive.org", "Z-Library", "Library Genesis", "libgen", + "libgen.li", "z-lib", "Open Library", "HathiTrust") + +# a book that mentions a file of its own is the book: the name of a file +# is a trace only where the line says the file was read from somewhere +FILE_NAME_RE = re.compile( + rb"(?i)(downloaded?|saved|copied|obtained|retrieved|scraped|extracted from|" + rb"source file|the file|read from)[^\n]{0,80}" + rb"\.(pdf|epub|djvu|mobi|azw3|rar|zip)\b") + +# the hash of the file the book was read from, standing on its own: not +# part of a longer token, and not part of an address +FILE_HASH_RE = re.compile(rb"(? + +What it writes: + + index/links/forms.jsonl the forms: one row per canonical form + index/links/form-judgments.jsonl the ledger: one row per form + index/concepts.jsonl the concepts: the groups + index/review.jsonl the books the model could not place + index/manifest/link.jsonl one row per form: key, status +""" +import argparse +import collections +import hashlib +import json +import os +import random +import sys +import threading +import time +from concurrent.futures import ThreadPoolExecutor + +HERE = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) +sys.path.insert(0, HERE) + +from book2corpus.judge import Judge # noqa: E402 +from book2corpus.pipeline import (CircuitBreaker, Ledger, # noqa: E402 + Settings, hash_of) + +# the most books one call may carry +MAX_BOOKS_PER_CALL = 20 + +# the passage a book is shown in the first place: the sentence that has +# the term, cut here. A book whose passage shows no sense is asked again +# with the wide window, and only then is it unplaced. +EVIDENCE_NARROW = 300 + +# the passage a book is shown, and the window the judge reads it in. The +# window is the one the blind readers are given, so that a read of the judge +# is a read of the same evidence: a judge that sees less cannot be measured +# against a reader that sees more. +EVIDENCE_WINDOW = 2000 + +# what an answer is assumed to cost: the measured mean of a link answer is +# 41 tokens and the measured worst is under 200, and the pre-flight must +# not be a guess +OUTPUT_TOKENS = 120 + +FORM_PROMPT = """You are given one term and every book in a corpus that uses it. + +Book | the term as the book writes it | the passage the code found it in +%s + +THE QUESTION: in how many different senses do these books use this term? + +Every book gets one of three answers. + +* The same sense as another book: put it in that group. +* A different sense from the others: put it in a group of its own. +* No sense at all: the passage does not show which sense the book means. + +A passage that gives no sense is a contents line, a key-terms list, an index +entry, a heading with no sentence around it, or a passage that names the term +without using it. Such a book is UNPLACED: it is not a sense of its own, and +it is not the same sense as anything either. Do not group it and do not +separate it. + +Before you answer, say for each book in your own words what the sense is, from +that passage alone. If you cannot write that gloss, the book is unplaced. + +Answer with one JSON object and nothing else: +{"groups": [["Book A", "Book B"], ["Book C"]], "unplaced": ["Book D"], "why": {"Book D": "the passage is a contents line"}} + +Use the book names exactly as they are given. Every book appears exactly once: +in a group or in the unplaced list. +""" + + +def read_jsonl(path): + """A file of objects, one a line.""" + rows = [] + if not os.path.exists(path): + return rows + with open(path, encoding="utf-8") as fh: + for line in fh: + line = line.strip() + if line: + rows.append(json.loads(line)) + return rows + + +def append_jsonl(path, row): + """One row, on the disk, now.""" + directory = os.path.dirname(path) + if directory: + os.makedirs(directory, exist_ok=True) + with open(path, "a", encoding="utf-8") as fh: + fh.write(json.dumps(row, sort_keys=True, ensure_ascii=False) + "\n") + fh.flush() + os.fsync(fh.fileno()) + + +def key_for(prompt, model): + """The hash of the question: the same question is asked once.""" + return hashlib.sha256(prompt.encode("utf-8") + model.encode("utf-8")).hexdigest() + + +def book_title(corpus, book): + """The book's own title, for the model.""" + manifest = os.path.join(corpus, book, "manifest.json") + if os.path.exists(manifest): + with open(manifest, encoding="utf-8") as fh: + data = json.load(fh) + found = (data.get("book") or {}).get("title") + if found: + return found + return book + + +def blocks_of(form, corpus): + """The books of a form, in chunks that share an anchor book. + + A form with many books is split, so that no call carries more than + MAX_BOOKS_PER_CALL books. The anchor book is in every chunk, so the + chunks can be put back together. + + Every item carries the book's title as well as its key: the question + shows the title, and the answer has to be read back to the key. + """ + books = [] + for item in form["books"]: + entry = dict(item) + entry["title"] = book_title(corpus, item["book"]) + books.append(entry) + if len(books) <= MAX_BOOKS_PER_CALL: + return [books] + anchor = books[0] + chunks = [] + rest = books[1:] + for start in range(0, len(rest), MAX_BOOKS_PER_CALL - 1): + chunk = [anchor] + rest[start:start + MAX_BOOKS_PER_CALL - 1] + chunks.append(chunk) + return chunks + + +def prompt_for(form, chunk, corpus, must_place=None): + """The question asked about one chunk of a form. + + When the model left books out, the question is asked again with those + books named. It is not told which group they belong to: it is told + that it has to say. + """ + lines = [] + for item in chunk: + lines.append("%s | %s | %s" + % (book_title(corpus, item["book"]), + item["label"], + (item.get("use") or "not given")[:EVIDENCE_NARROW])) + if must_place: + lines.append("") + lines.append("Every one of these books must appear in exactly one " + "group: %s." % ", ".join(must_place)) + return FORM_PROMPT % "\n".join(lines) + + +ESCALATE_PROMPT = """You are given one term and the books of a corpus that use it. + +%s + +The passage of some of these books was too short to show which sense they mean. +Here is each of those books with the same passage and more of it around the term. + +Book | the term as the book writes it | the passage in full +%s + +THE QUESTION: which of these books show a sense now? + +* the same sense as the books already grouped here: +%s + Put such a book in that group. +* a different sense from every other book: put it in a group of its own. +* still no sense: it stays unplaced, and say why. + +Answer with one JSON object and nothing else: +{"groups": [["Book A", "Book B"]], "unplaced": ["Book C"], "why": {"Book C": "the passage still gives no sense"}} +""" + + +def escalate_prompt(form, chunk, groups, unplaced, corpus): + """The books whose narrow passage showed no sense, with more of it.""" + lines = [] + for item in chunk: + if item.get("book") not in unplaced: + continue + wide = (item.get("wide") or "").strip() + if not wide: + wide = (item.get("use") or "not given")[:EVIDENCE_NARROW] + lines.append("%s | %s | %s" + % (book_title(corpus, item["book"]), item["label"], wide)) + placed = [] + for group in groups: + names = [book_title(corpus, book) for book in group] + if names: + placed.append(" " + ", ".join(names) + " (one sense)") + if not placed: + placed.append(" (no other book is placed yet)") + return ESCALATE_PROMPT % ("The term is: %s" % form.get("canonical"), + "\n".join(lines), "\n".join(placed)) + + +def merge_escalation(groups, escalation, escalated): + """The escalated books join the groups the first pass made. + + A book the second answer put with a book that is already placed joins + that group; a book it put on its own is a sense of its own; a book it + left unplaced stays unplaced. + """ + known = {} + for index, group in enumerate(groups): + for book in group: + known[book] = index + out = [list(group) for group in groups] + for group in escalation: + target = None + for book in group: + if book in known: + target = known[book] + break + if target is None: + out.append(list(group)) + continue + for book in group: + if book not in known and book in escalated: + out[target].append(book) + return [sorted(set(group)) for group in out] + + +def parse_groups(parsed, books): + """The answer: the books, grouped by sense. + + The question shows a book by its title, so the answer names it by its + title; a title is read back to the key the corpus uses. A book the + model left out, or put in two groups, is not guessed at: it goes to + the review queue, where a person settles it. + """ + if isinstance(parsed, str): + import re + match = re.search(r"\{.*\}", parsed or "", re.S) + if not match: + raise ValueError("the model wrote no object") + parsed = json.loads(match.group(0)) + groups = parsed.get("groups") + if not isinstance(groups, list): + raise ValueError("the answer has no groups") + keys = set(item["book"] for item in books) + # the names a book may be answered by: its key, and its title + aliases = {} + for item in books: + key = item["book"] + aliases.setdefault(key, key) + title = (item.get("title") or "").strip() + if title: + aliases.setdefault(title.casefold(), key) + clean = [] + placed = set() + extra = [] + for group in groups: + if not isinstance(group, list): + continue + members = [] + for book in group: + name = (book or "").strip() + key = aliases.get(name) or aliases.get(name.casefold()) + if key is None: + extra.append(book) + continue + if key in placed: + # the model put this book in two groups: it is placed in + # the first, and it is not counted twice + continue + placed.add(key) + members.append(key) + if members: + clean.append(sorted(members)) + # the books the answer names as unplaced: the passage gave no sense, so + # the book is neither a sense of its own nor the same sense as anything + unplaced = {} + why = parsed.get("why") or {} + if not isinstance(why, dict): + why = {} + for name in parsed.get("unplaced") or []: + key = aliases.get((name or "").strip()) + if key is None: + key = aliases.get((name or "").strip().casefold()) + if key is None: + extra.append(name) + continue + unplaced[key] = str(why.get(name) or why.get(key) + or "the passage gives no sense")[:200] + left = sorted(keys - placed - set(unplaced)) + return clean, left, sorted(set(extra)), unplaced + + +def content_for(form, corpus, must=None): + """The hash of the questions asked about a form. + + Two forms with the same books and the same evidence are the same + question, and a form whose books or evidence changed is a + different question. The hash is what tells them apart. + """ + questions = [prompt_for(form, chunk, corpus, must) + for chunk in blocks_of(form, corpus)] + return hash_of("\n".join(questions)) + + +def form_key(form, model): + """The key of the question about a form: the same question, the same key.""" + return hash_of({"canonical": form["canonical"], "model": model, + "books": [item["book"] for item in form["books"]], + "content": form["_content"]}) + + +def answers_this_form(row, form, corpus, groups=None, left=None): + """True when the row answers the question the corpus is asking now. + + The row has to be about the same books and about the same + question: the books the term is in, and the text the question + shows. A row without the hash of the question is taken on trust: + it was written before the hash was kept, and it answered the + question the corpus would ask. + """ + if groups is None: + groups = row.get("groups") or [] + if left is None: + left = row.get("left") or [] + covered = set() + for group in groups: + covered.update(group) + covered.update(left) + # a book the answer names as unplaced is answered for: it is not a + # sense, and not the same sense as anything, and the row says so + covered.update(row.get("unplaced") or {}) + if covered != set(item["book"] for item in form["books"]): + return False + content = row.get("content") + if not content: + return True + if content == form["_content"]: + return True + if left and content == content_for(form, corpus, left): + return True + # the retry asked the form again with the books it left out named, + # so its question is the form with those books named, and the answer + # may leave none of them out + if row.get("retry"): + named = set() + for group in row.get("groups") or []: + named.update(group) + named.update(row.get("unplaced") or {}) + for book in sorted(named): + if content == content_for(form, corpus, [book]): + return True + return False + + +def current_rows(history, forms, corpus, cache=None, model=None): + """The rows that answer the questions the corpus is asking now. + + The ledger keeps the history: a row for another question is + history, not an answer. The rows are read in the order they were + written, so the last answer to a form is the answer. Every answer + is read again with the parser of today, so a rule about the names + does not stay in the index for ever. + + A row answered by another judge is history as well: the corpus is + judged by one judge, and an answer from another model does not + answer the question this corpus is asking. + """ + by_canonical = {form["canonical"]: form for form in forms} + decided = {} + incomplete = {} + for row in history: + if model and row.get("model") and row.get("model") != model: + # another judge answered this form: its answer is not the + # answer this corpus is asking for + continue + form = by_canonical.get(row.get("canonical")) + if form is None: + continue + if "_content" not in form: + form["_content"] = content_for(form, corpus) + groups = row.get("groups") or [] + left = row.get("left") or [] + extra = row.get("extra") or [] + fresh = reparse_row(row, form, corpus, cache) if cache else None + if fresh is not None: + groups = fresh["groups"] + left = fresh["left"] + extra = fresh["extra"] + if not answers_this_form(row, form, corpus, groups=groups, left=left): + continue + entry = dict(row) + entry["groups"] = groups + entry["left"] = left + entry["extra"] = extra + if left: + incomplete[row["canonical"]] = entry + else: + decided[row["canonical"]] = entry + return decided, incomplete + + +def read_cache(links): + """The answers the judge has already paid for, by the question.""" + cache = {} + for row in read_jsonl(os.path.join(links, "form-answers.jsonl")): + key = row.get("key") + if key: + cache[key] = row + return cache + + +def reparse_row(row, form, corpus, cache): + """The row's answer, read again with the parser of today. + + The ledger keeps the decision and the cache keeps the evidence: the + model said which books go together, and the parser says which book + names it used. When the parser changes, the answer is read again + from the evidence, so a rule about the names does not stay in the + index for ever. + """ + if row.get("retry"): + # the retry asked a different question, and the books it named + # are not in the row: the row's own answer is what there is + return None + model = row.get("model") or "" + groups = [] + left = [] + extra = [] + unplaced = {} + for chunk in blocks_of(form, corpus): + prompt = prompt_for(form, chunk, corpus) + cached = cache.get(key_for(prompt, model)) + if not cached or not cached.get("ok"): + return None + answer = cached.get("answer") + if not isinstance(answer, dict): + return None + try: + found, missing, unknown, none_placed = parse_groups(answer, chunk) + except Exception: + return None + for member in found: + groups.append(member) + left.extend(missing) + extra.extend(unknown) + unplaced.update(none_placed) + if none_placed: + # the run asked again with the wide window for the books that + # showed no sense, and the second answer is merged into the + # groups gathered so far, this chunk included. The re-read has + # to replay that, or the answer it derives covers fewer books + # than the form has, and the form drops out of the manifest. + escalated = set(none_placed) + eprompt = escalate_prompt(form, chunk, groups, escalated, corpus) + ecached = cache.get(key_for(eprompt, model)) + if not ecached or not ecached.get("ok"): + # the escalated answer is missing: the row cannot be + # re-derived, and saying so is better than a silent drop + return None + eanswer = ecached.get("answer") + if not isinstance(eanswer, dict): + return None + try: + efound, _el, _eu, eunplaced = parse_groups(eanswer, chunk) + except Exception: + return None + efound = [group for group in efound + if any(book in escalated for book in group)] + groups = merge_escalation(groups, efound, escalated) + for book in escalated: + unplaced.pop(book, None) + for book, reason in (eunplaced or {}).items(): + if book in escalated: + unplaced[book] = reason + return {"groups": groups, "left": sorted(set(left)), + "extra": sorted(set(extra)), "unplaced": unplaced} + + +def main(argv=None): + ap = argparse.ArgumentParser(prog="judge_forms.py") + ap.add_argument("--corpus-root", required=True) + ap.add_argument("--limit", type=int, default=0) + ap.add_argument("--jobs", type=int, default=0, + help="how many forms to ask at once") + ap.add_argument("--model", default="") + ap.add_argument("--strong-model", default="") + ap.add_argument("--batch", action="store_true", + help="ask every form as one batch job instead of one at a time") + ap.add_argument("--pilot", action="store_true") + ap.add_argument("--plain", action="store_true", + help="the pilot samples the corpus evenly, with nothing" + "chosen for it") + ap.add_argument("--sample-offset", type=int, default=0, + help="move the sample, so a second pilot is a fresh one") + ap.add_argument("--seed", type=int, default=20261127, + help="the seed of the draw, so the sample can be drawn again") + ap.add_argument("--exclude-sample", default="", + help="a manifest whose sample is left out of the draw") + ap.add_argument("--dry-run", action="store_true") + args = ap.parse_args(argv) + + settings = Settings() + index_settings = settings.get("index") or {} + prices = settings["money"]["prices"] + model = args.model or index_settings.get("link_model", "gemini-3.8-flash") + strong_model = args.strong_model or index_settings.get("strong_model", + "gemini-3.8-flash") + allocation = index_settings.get("link_cap_usd", 1.4) + preflight = index_settings.get("link_preflight_usd", 1.05) + if allocation is None or preflight is None: + # a stage with no cap is stopped before the first call + print("REFUSED: the link stage has no money cap. A stage that has not") + print(" been given a cap is stopped before the first call.") + return 2 + allocation = float(allocation) + preflight = float(preflight) + corpus = args.corpus_root + links = os.path.join(corpus, "index", "links") + + forms = read_jsonl(os.path.join(links, "forms.jsonl")) + forms = [form for form in forms if len(form.get("books") or []) > 1] + if args.limit: + forms = forms[:args.limit] + if args.dry_run: + # what the run would cost: a question the cache already holds + # is free, and the rest is a call + for form in forms: + form["_content"] = content_for(form, corpus) + form["key"] = form_key(form, model) + history = read_jsonl(os.path.join(links, "form-judgments.jsonl")) + decided, _incomplete = current_rows(history, forms, corpus, model=model) + known = set(row["key"] for row in history) + paid = set(row.get("key") for row in + read_jsonl(os.path.join(links, "form-answers.jsonl"))) + to_ask = 0 + fresh = 0 + cached = 0 + prompt_tokens = 0 + for form in forms: + if form["canonical"] in decided or form["key"] in known: + continue + to_ask += 1 + for chunk in blocks_of(form, corpus): + prompt = prompt_for(form, chunk, corpus) + if key_for(prompt, model) in paid: + cached += 1 + continue + fresh += 1 + prompt_tokens += len(prompt) // 4 + price = prices.get(model) or {} + estimate = (prompt_tokens * price.get("in", 0.0) + + fresh * OUTPUT_TOKENS * price.get("out", 0.0)) + print("forms: %d | to ask: %d | fresh calls: %d | already paid: %d" + % (len(forms), to_ask, fresh, cached)) + print("estimated $%.4f of the $%.2f pre-flight line and the $%.2f cap" + % (estimate, preflight, allocation)) + return 0 + + judge_settings = dict(settings["judge"]) + judge_settings["model"] = model + # the widest forms make the model think, and thinking is spent out of + # the same budget as the answer + judge_settings["max_output_tokens"] = int(index_settings.get( + "link_max_output_tokens", 2048)) + ledger = Ledger(prices) + breaker = CircuitBreaker(judge_settings) + judge = Judge(judge_settings, ledger, breaker, + cache_path=os.path.join(links, "form-answers.jsonl")) + strong_settings = dict(judge_settings) + strong_settings["model"] = strong_model + # a model that thinks spends its output on the thinking, so it + # needs more room than the cheap one + strong_settings["max_output_tokens"] = int( + index_settings.get("strong_max_output_tokens", 8192)) + # the strong judge spends from the same ledger, so the cap covers + # both, and it keeps its own answers, so a pilot that is run again + # does not pay for the same question twice + strong_judge = Judge(strong_settings, ledger, + CircuitBreaker(strong_settings), + cache_path=os.path.join(links, + "form-answers-strong.jsonl")) + + if args.pilot: + history = read_jsonl(os.path.join(links, "form-judgments.jsonl")) + rows = {} + for row in history: + rows[row["canonical"]] = row + cap = float(index_settings.get("pilot_cap_usd", 2.0)) + exclude = set() + if args.exclude_sample and os.path.exists(args.exclude_sample): + with open(args.exclude_sample, encoding="utf-8") as fh: + exclude = set(json.load(fh).get("sample") or []) + return run_pilot(forms, judge, strong_judge, model, strong_model, + corpus, rows=rows, ledger=ledger, cap=cap, + plain=args.plain, offset=args.sample_offset, + seed=args.seed, exclude=exclude, + rule=index_settings.get("pilot") or {}) + + ledger_path = os.path.join(links, "form-judgments.jsonl") + # the ledger in the order it was written: the history is what says + # which answer came last + history = read_jsonl(ledger_path) + known = {} + for row in history: + known[row["key"]] = row + + lock = threading.Lock() + max_call_cost = [0.0] + state = {"asked": 0, "reused": 0} + asked = set() + # the forms that got no answer: a failed call is missing data, + # not a verdict, and a form with no answer is not decided + missing = [] + + def ask(form): + """One form: the books, grouped by sense.""" + groups = [] + left = [] + extra = [] + unplaced = {} + escalated_books = set() + calls = 0 + tokens_in = 0 + tokens_out = 0 + failed = False + questions = [] + for chunk in blocks_of(form, corpus): + prompt = prompt_for(form, chunk, corpus) + questions.append(prompt) + key = key_for(prompt, model) + result = judge.text(prompt, key, model) + calls += 1 + tokens_in += result.get("tokens_in", 0) + tokens_out += result.get("tokens_out", 0) + answer = result.get("answer") + if not isinstance(answer, dict) or not isinstance(answer.get("groups"), list): + # the model wrote something else: the call is missing data, + # not a verdict, and this form is not decided + failed = True + break + try: + found, missing, unknown, none_placed = parse_groups(answer, chunk) + except Exception: + found, missing, unknown, none_placed = [], [], [], {} + for member in found: + groups.append(member) + left.extend(missing) + extra.extend(unknown) + unplaced.update(none_placed) + if none_placed: + # the passage was too short to show a sense: ask again with + # more of it around the term, and only then is the book + # unplaced. One rule, applied the same way to every form. + escalated = set(none_placed) + eprompt = escalate_prompt(form, chunk, groups, escalated, + corpus) + questions.append(eprompt) + eresult = judge.text(eprompt, key_for(eprompt, model), model) + calls += 1 + tokens_in += eresult.get("tokens_in", 0) + tokens_out += eresult.get("tokens_out", 0) + eanswer = eresult.get("answer") + if not isinstance(eanswer, dict): + # the second question was not answered: the form is + # not decided, and the run says so + failed = True + break + try: + efound, _el, _eu, eunplaced = parse_groups(eanswer, chunk) + except Exception: + efound, eunplaced = [], {} + efound = [group for group in efound + if any(book in escalated for book in group)] + groups = merge_escalation(groups, efound, escalated) + for book in escalated: + unplaced.pop(book, None) + for book, reason in (eunplaced or {}).items(): + if book in escalated: + unplaced[book] = reason + escalated_books.update(escalated) + out = {"groups": groups, "left": sorted(set(left)), + "extra": sorted(set(extra)), "unplaced": unplaced, + "escalated": sorted(escalated_books), + "failed": failed, + "calls": calls, "tokens_in": tokens_in, "tokens_out": tokens_out} + price = prices.get(model) or {} + cost = (tokens_in * price.get("in", 0.0) + + tokens_out * price.get("out", 0.0)) + with lock: + if cost > max_call_cost[0]: + max_call_cost[0] = cost + return form, out + + started = time.time() + # the question about a form, and the key of that question: the same + # question asked twice is the same question, and a form whose books + # or whose evidence changed is a different question + for form in forms: + form["_content"] = content_for(form, corpus) + form["key"] = form_key(form, model) + + # the rows that answer the questions the corpus is asking now: the + # ledger keeps the history, and a row for another question is not an + # answer to this one + decided, incomplete = current_rows(history, forms, corpus, judge.cache, + model=model) + + todo = [] + for form in forms: + canonical = form["canonical"] + done = decided.get(canonical) + if done is not None: + form["key"] = done["key"] + form["model"] = done.get("model") or model + state["reused"] += 1 + continue + row = known.get(form["key"]) + if row is not None: + # this exact question was asked before and the answer left + # books out: asking it again would pay for the same answer, + # and those books wait for a person + form["key"] = row["key"] + form["model"] = row.get("model") or model + incomplete[canonical] = row + state["reused"] += 1 + continue + todo.append(form) + + # the pre-flight: what the run will cost, before it starts + calls = sum(len(blocks_of(form, corpus)) for form in todo) + prompt_tokens = 0 + for form in todo: + for chunk in blocks_of(form, corpus): + prompt_tokens += len(prompt_for(form, chunk, corpus)) // 4 + estimate = (prompt_tokens * (prices.get(model) or {}).get("in", 0.0) + + calls * OUTPUT_TOKENS * (prices.get(model) or {}).get("out", 0.0)) + if estimate > preflight: + print("REFUSED: the link stage is estimated at $%.4f, and the " + "pre-flight line is $%.2f" % (estimate, preflight)) + return 2 + print("link stage: %d forms (%d to ask, %d reused), %d calls, estimated $%.4f" + % (len(forms), len(todo), state["reused"], calls, estimate)) + + # the rate the judge is given, and never faster than the settings + # ask for: a model asked past its rate fails the calls, and a + # failed call is missing data + workers = max(1, args.jobs) if args.jobs else max(1, judge_settings.get("workers", 3)) + queue = list(todo) + pending = [] + stopped = False + results = {} + if args.batch: + # the bulk route: every form is asked in one job, and the answers + # come back together + items = [] + for form in todo: + for chunk in blocks_of(form, corpus): + prompt = prompt_for(form, chunk, corpus) + items.append((key_for(prompt, model), prompt)) + rows, batch_id, seconds = judge.text_batch(items, model) + for form in todo: + groups = [] + left = [] + unplaced = {} + for chunk in blocks_of(form, corpus): + prompt = prompt_for(form, chunk, corpus) + row = rows.get(key_for(prompt, model)) + if not row or not row.get("ok"): + continue + answer = row.get("answer") + if not isinstance(answer, dict): + continue + try: + found, missing, _unknown, none_placed = parse_groups(answer, chunk) + except Exception: + continue + groups.extend(found) + left.extend(missing) + unplaced.update(none_placed) + record = {"key": form["key"], "canonical": form["canonical"], + "groups": groups, "left": sorted(set(left)), "extra": [], + "unplaced": unplaced, + "model": model, "calls": len(blocks_of(form, corpus)), + "tokens_in": 0, "tokens_out": 0, "batch": batch_id} + with lock: + known[form["key"]] = record + history.append(record) + asked.add(form["key"]) + append_jsonl(ledger_path, record) + print("batch %s: %d forms asked, %.0f s" % (batch_id, len(todo), seconds)) + return write_results(known, history, corpus, ledger, + time.time() - started, model, asked) + with ThreadPoolExecutor(max_workers=workers) as pool: + while queue or pending: + while queue and len(pending) < workers and not stopped: + with lock: + spent = ledger.usd() + if spent + 1.5 * max_call_cost[0] >= allocation: + stopped = True + break + form = queue.pop(0) + pending.append(pool.submit(ask, form)) + if not pending: + break + form, out = pending.pop(0).result() + results[form["key"]] = (form, out) + if out["failed"]: + with lock: + missing.append(form["canonical"]) + continue + # the hash of the question itself, so a change in the text + # that was asked is visible even when the key is the same + questions = [prompt_for(form, chunk, corpus) + for chunk in blocks_of(form, corpus)] + row = {"key": form["key"], "canonical": form["canonical"], + "groups": out["groups"], "left": out["left"], + "extra": out["extra"], "unplaced": out["unplaced"], + "escalated": out["escalated"], + "model": model, + "calls": out["calls"], "tokens_in": out["tokens_in"], + "tokens_out": out["tokens_out"], + "content": hash_of("\n".join(questions))} + with lock: + known[form["key"]] = row + history.append(row) + asked.add(form["key"]) + state["asked"] += 1 + append_jsonl(ledger_path, row) + if len(known) % 200 == 0: + print(" %d judged | %d to go | $%.4f" + % (len(known), len(queue), ledger.usd()), flush=True) + # the completion pass: a form that left books out is asked again with + # those books named, so that the index does not carry a hole that one + # careless answer made + by_canonical = {} + for form in forms: + by_canonical[form["canonical"]] = form + unplaced = {} + asked_once = set() + dropped = {} + for row in known.values(): + if row.get("retry"): + # this form has already been asked again: asking it a third + # time would cost money for an answer that keeps moving + asked_once.add(row["canonical"]) + elif row.get("left"): + unplaced[row["canonical"]] = row["left"] + elif row.get("escalated"): + # the wide window was asked for these books, and the second + # answer may have dropped one of them: the answer then covers + # fewer books than the form has, and the form would leave the + # manifest. The book is noticed here and the form is asked + # again with it named. + named = set() + for group in row.get("groups") or []: + named.update(group) + named.update(row.get("unplaced") or {}) + gone = sorted(set(row.get("escalated") or []) - named) + if gone: + dropped[row["canonical"]] = gone + if unplaced or dropped: + retries = [] + for canonical in sorted(set(unplaced) | set(dropped)): + if canonical in asked_once: + continue + form = by_canonical.get(canonical) + if form is None: + continue + must = list(unplaced.get(canonical) or []) + must += list(dropped.get(canonical) or []) + retries.append((form, sorted(set(must)))) + + def complete(item): + form, must = item + groups = [] + left = [] + none_placed_books = {} + calls = 0 + tokens_in = 0 + tokens_out = 0 + questions = [] + for chunk in blocks_of(form, corpus): + prompt = prompt_for(form, chunk, corpus, must) + questions.append(prompt) + result = judge.text(prompt, key_for(prompt, model), model) + calls += 1 + tokens_in += result.get("tokens_in", 0) + tokens_out += result.get("tokens_out", 0) + answer = result.get("answer") + if not isinstance(answer, dict): + continue + try: + found, missing, _unknown, none_placed = parse_groups(answer, chunk) + except Exception: + continue + groups.extend(found) + none_placed_books.update(none_placed) + left.extend(missing) + content = hash_of("\n".join(questions)) + return (form, groups, sorted(set(left)), calls, tokens_in, + tokens_out, content, none_placed_books) + + with ThreadPoolExecutor(max_workers=workers) as pool: + for (form, groups, left, calls, tokens_in, tokens_out, + content, none_placed_books) in pool.map(complete, retries): + # the retry asks a different question, so it has its + # own key: the two answers cannot be confused + retry_key = hash_of({"canonical": form["canonical"], + "model": model, + "books": [item["book"] for item in form["books"]], + "content": content}) + row = {"key": retry_key, "canonical": form["canonical"], + "groups": groups, "left": left, "extra": [], + "unplaced": none_placed_books, + "model": model, "calls": calls, "tokens_in": tokens_in, + "tokens_out": tokens_out, "retry": True, + "content": content} + with lock: + known[retry_key] = row + history.append(row) + asked.add(retry_key) + append_jsonl(ledger_path, row) + print("completion pass: %d form(s) asked again" % len(retries)) + if stopped: + print("STOPPED at the cap: $%.4f of $%.2f" % (ledger.usd(), allocation)) + + # a form that got no answer is not decided: the run says so, and the + # forms are written down, so that a silent loss cannot pass for a build + if missing: + path = os.path.join(corpus, "index", "links", "missing-forms.jsonl") + with open(path, "w", encoding="utf-8") as fh: + for canonical in sorted(missing): + fh.write(json.dumps({"canonical": canonical, + "reason": "the judge did not answer"}, + ensure_ascii=False) + "\n") + print("MISSING: %d form(s) got no answer and are not decided" % len(missing)) + print("the forms are written to:", path) + + write_results(known, history, corpus, ledger, + time.time() - started, model, asked, + missing=set(missing)) + return 2 if missing else 0 + + +def write_results(known, history, corpus, ledger, seconds, model, + asked=None, missing=None): + """The concepts, the review queue and the manifest.""" + concepts = [] + review = [] + # the question a form asks now, as a hash: the manifest says what was + # asked, and not only what it was called + forms = {} + for row in read_jsonl(os.path.join(corpus, "index", "links", "forms.jsonl")): + forms[row["canonical"]] = row + # the rows that answer the questions the corpus is asking now: the + # ledger keeps the history, and a row for another question is not an + # answer to this one + decided, incomplete = current_rows( + history, list(forms.values()), corpus, + read_cache(os.path.join(corpus, "index", "links")), model=model) + latest = {} + for canonical in sorted(decided): + latest[canonical] = decided[canonical] + for canonical in sorted(incomplete): + latest.setdefault(canonical, incomplete[canonical]) + for key in sorted(latest): + row = latest[key] + for group in row["groups"]: + # a book is in a group once: the ledger is written by older + # runs too, and a member twice is not two members + members = sorted(set("%s|%s" % (book, row["canonical"]) + for book in group)) + if len(members) < 2: + continue + concepts.append({ + "concept_id": "c:%s" % hashlib.sha256( + "|".join(members).encode("utf-8")).hexdigest()[:16], + "members": members, "size": len(members), + }) + for book in row["left"]: + review.append({"term": "%s|%s" % (book, row["canonical"]), + "reason": "the model did not place this book"}) + for book in row["extra"]: + review.append({"term": book, + "reason": "the model named a book that does not have " + "the term"}) + concepts.sort(key=lambda row: row["concept_id"]) + review.sort(key=lambda row: (row["term"], row["reason"])) + with open(os.path.join(corpus, "index", "concepts.jsonl"), "w", + encoding="utf-8") as fh: + for row in concepts: + fh.write(json.dumps(row, sort_keys=True, ensure_ascii=False) + "\n") + with open(os.path.join(corpus, "index", "review.jsonl"), "w", + encoding="utf-8") as fh: + for row in review: + fh.write(json.dumps(row, sort_keys=True, ensure_ascii=False) + "\n") + # the status is measured against the manifest that was committed, not + # against the last run: a form that was decided two runs ago and not + # since is still reused + before = {} + for row in read_jsonl(os.path.join(corpus, "index", "manifest", "link.jsonl")): + before[row["key"]] = row + manifest = [] + for key in sorted(latest): + row = latest[key] + form = forms.get(row["canonical"]) + if form is None: + # the corpus does not have this form any more: the ledger + # keeps its history, the manifest describes what is here + continue + placed = sorted(set(book for group in row["groups"] for book in group)) + output = hash_of(sorted(row["groups"])) + status = "reused" if key in before else "computed" + questions = [prompt_for(form, chunk, corpus) + for chunk in blocks_of(form, corpus)] + content = hash_of("\n".join(questions)) + manifest.append({"unit": row["canonical"], "key": row["key"], + "status": status, + "model": row.get("model") or "", + "content": content, + "output": output, + "groups": len(row["groups"]), + "unplaced": sorted(row.get("unplaced") or {}), + "books": placed}) + # a builder that drops a row without failing is the root defect this + # corpus had, so a form the ledger answers but the manifest does not + # carry is an error, not a quiet omission + carried = set(row["unit"] for row in manifest) + # a form that got no answer is already written down and named; + # a form the ledger answers and the manifest does not carry is the + # silent error this check is for + dropped = sorted(set(forms.keys()) - carried - (missing or set())) + if dropped: + raise SystemExit("the manifest is missing %d form(s) the ledger" + " answers, and a manifest that drops a form is a" + " silent error: %s" + % (len(dropped), ", ".join(dropped[:12]))) + with open(os.path.join(corpus, "index", "manifest", "link.jsonl"), "w", + encoding="utf-8") as fh: + for row in manifest: + fh.write(json.dumps(row, sort_keys=True, ensure_ascii=False) + "\n") + wide = max([row["size"] for row in concepts] or [0]) + # the grouping is over-splitting when a form carries more concepts + # than one: a term two books share is usually one sense, and a count + # of concepts on its own says nothing about that + split = len([key for key in latest + if len([row for row in concepts + if any(member.endswith("|" + key) + for member in row["members"])]) > 1]) + per_form = (len(concepts) / float(len(latest))) if latest else 0.0 + print("forms: %d | concepts: %d | widest: %d | review: %d | cost $%.4f | %.0f s" + % (len(known), len(concepts), wide, len(review), ledger.usd(), seconds)) + print("a form carries %.2f concepts on average | %d form(s) carry more than one" + % (per_form, split)) + if per_form > 1.15: + print("ALARM: %.2f concepts a form; the grouping is over-splitting" + % per_form) + return 0 + + +def run_pilot(forms, judge, strong_judge, model, strong_model, corpus, + rows=None, ledger=None, cap=2.0, plain=False, offset=0, + seed=0, exclude=(), rule=None): + """The link pilot: is the cheap model good enough to decide a sense? + + The terms pilot measured a different job, so it does not carry over. + Here both models partition the same forms, and the cheap model is + ruled good enough only if it agrees with the strong one on at least + 95% of the forms and catches at least 90% of the splits the strong + model makes. + + The rule is pre-registered, in the settings and in the manifest of the + runs: 95% and 90%, one run, no rerun, no new seed and no change to a + threshold, and a fail means the two-model agreement is not fit to certify + these links - the disagreements are adjudicated by hand and a hand-read + sample of the agreements is read beside them. The pilot spends at most the + cap, and the cap is checked against what was really spent. + """ + chosen = pilot_forms(forms, rows, plain=plain, offset=offset, + seed=seed, exclude=exclude) + agree = 0 + strong_splits = 0 + caught = 0 + details = [] + empty = 0 + stopped = [False] + def both(form): + if stopped[0]: + return form, None, None + lite = partition(judge, form, model, corpus) + strong = partition(strong_judge, form, strong_model, corpus) + if ledger is not None and ledger.usd() >= cap: + stopped[0] = True + return form, lite, strong + + with ThreadPoolExecutor(max_workers=8) as pool: + for form, lite, strong in pool.map(both, chosen): + if lite is None: + continue + same = _same_partition(lite, strong) + if same: + agree += 1 + splits = _apart(strong) + strong_splits += len(splits) + caught += len(splits & _apart(lite)) + if not strong: + # the strong model said nothing: the instrument failed + # on this form, and there is nothing to compare + empty += 1 + details.append({"canonical": form["canonical"], + "books": len(form["books"]), + "lite_groups": len(lite), "strong_groups": len(strong), + "agree": same}) + print(" %-40s %2d books | lite %2d groups | strong %2d groups | %s" + % (form["canonical"][:40], len(form["books"]), len(lite), + len(strong), "same" if same else "different"), flush=True) + # the breakdown: by the route that found the passage, and by whether + # the form carries a passage at all + by_canonical = {form["canonical"]: form for form in forms} + by_route = collections.defaultdict(lambda: [0, 0]) + by_evidence = collections.defaultdict(lambda: [0, 0]) + for detail in details: + form = by_canonical.get(detail["canonical"]) + route = "none" + has = True + if form is not None: + route = "/".join(sorted(set(m.get("route") or "none" + for m in form["books"]))) + has = all((m.get("use") or "").strip() for m in form["books"]) + by_route[route][0] += 1 + by_evidence["with a passage" if has else "without a passage"][0] += 1 + if detail["agree"]: + by_route[route][1] += 1 + by_evidence["with a passage" if has else "without a passage"][1] += 1 + total = len(details) or 1 + agreement = agree / float(total) + catches = (caught / float(strong_splits)) if strong_splits else 1.0 + lost = (agreement < 0.95) or (catches < 0.90) or (empty > 0) + print() + print("link pilot: %d forms | agreement %.1f%% | splits caught %.1f%% | empty %d" + % (total, agreement * 100, catches * 100, empty)) + print("VERDICT: the cheap model is %s" % ("LOST" if lost else "good enough")) + if stopped[0]: + print("the pilot stopped at the cap: $%.4f of $%.2f" + % (ledger.usd(), cap)) + os.makedirs(os.path.join(corpus, "index", "manifest"), exist_ok=True) + import time + path = os.path.join(corpus, "index", "manifest", "link-pilot.json") + payload = {} + if os.path.exists(path): + with open(path, encoding="utf-8") as fh: + payload = json.load(fh) + # the manifest is the history of the runs and not the last run alone: a + # pilot that failed is evidence, and a run that was void has to be + # marked void with its reason + runs = payload.get("runs") or [] + provider = "google" if model.startswith("gemini") else ( + "anthropic" if model.startswith("claude") else "openrouter") + run = { + "id": "%s, seed %s" % (time.strftime("%Y-%m-%d"), seed), + "date": time.strftime("%Y-%m-%d"), + "status": "failed" if lost else "passed", + "reason": ("the agreement or the splits caught fell short of the rule" + if lost else "the rule was met"), + "models": {"cheap": model, "strong": strong_model}, + "provider": provider, + "seed": seed, + "sample": len(chosen), + "strata": "book", + "sample_hash": hash_of([form["canonical"] for form in chosen]), + "excluded": len(exclude), + "rule": rule or {}, + "thresholds": {"agreement": 0.95, "splits_caught": 0.9}, + "results": {"agreement": round(agreement, 4), + "splits_caught": round(catches, 4), + "empty": empty}, + "cost_usd": round(ledger.usd(), 4) if ledger else 0, + "cap_usd": cap, + } + runs.append(run) + payload["runs"] = runs + payload["rule"] = rule or payload.get("rule") or {} + payload.update({"forms": total, "agreement": round(agreement, 4), + "sample": [form["canonical"] for form in chosen], + "splits_caught": round(catches, 4), + "lite": model, "strong": strong_model, + "empty": empty, + "seed": seed, + "excluded": len(exclude), + "by_route": {name: {"forms": cell[0], "agree": cell[1]} + for name, cell in by_route.items()}, + "by_evidence": {name: {"forms": cell[0], "agree": cell[1]} + for name, cell in by_evidence.items()}, + "cost_usd": round(ledger.usd(), 4) if ledger else 0, + "cap_usd": cap, + "threshold_agreement": 0.95, + "threshold_splits_caught": 0.9, + "lite_lost": bool(lost), + "blocks_corpus_mr": bool(lost), + "details": details}) + with open(path, "w", encoding="utf-8") as fh: + json.dump(payload, fh, indent=1, sort_keys=True, ensure_ascii=False) + fh.write(chr(10)) + return 0 + +# the words that mean different things in different books: the forms +# where the sense has to be decided rather than assumed +HOMONYMS = ("bank", "issue", "capital", "action", "attention", + "treatment", "process", "party", "term", "state", + "nature", "object", "power", "right", "case", "rule", + "scale", "measure", "value", "form", "unit", "field", + "level", "order", "point", "line", "model", "market", + "labour", "labor", "development", "structure") + + +def pilot_forms(forms, rows=None, size=250, plain=False, offset=0, + seed=0, exclude=()): + """The pilot's forms: a seeded random draw, stratified by book. + + Every book gets the same share of the sample, so the sample is not + the alphabet of the corpus, and the draw is seeded, so the same + sample can be drawn again and a fresh one can be drawn on purpose. + The forms of an earlier pilot are left out. + """ + if plain: + # an even sample of the corpus, with nothing chosen for it; the + # offset moves the sample, so a second pilot can be a fresh one + step = max(1, len(forms) // size) + return forms[offset::step][:size] + by_book = collections.defaultdict(list) + for form in forms: + by_book[form["books"][0]["book"]].append(form) + books = sorted(by_book) + share = max(1, size // len(books)) if books else size + rng = random.Random(seed) + picks = [] + rest = [] + for book in books: + pool = [form for form in by_book[book] + if form["canonical"] not in exclude] + rng.shuffle(pool) + picks.extend(pool[:share]) + rest.extend(pool[share:]) + rng.shuffle(rest) + picks.extend(rest[:max(0, size - len(picks))]) + rng.shuffle(picks) + return picks[:size] + + +def partition(judge, form, model, corpus): + """The groups of a form, from one model.""" + groups = [] + for chunk in blocks_of(form, corpus): + prompt = prompt_for(form, chunk, corpus) + result = judge.text(prompt, key_for(prompt, model), model) + try: + found, _missing, _unknown, _none = parse_groups(result.get("answer"), chunk) + except Exception: + found = [] + groups.extend(found) + return groups + + +def _same_partition(left, right): + """Do the two partitions put the books in the same groups?""" + def pairs(groups): + out = set() + for group in groups: + for i in range(len(group)): + for j in range(i + 1, len(group)): + out.add(frozenset((group[i], group[j]))) + return out + return pairs(left) == pairs(right) + + +def _splits(groups): + """How many pairs the partition puts apart.""" + return len(_apart(groups)) + + +def _apart(groups): + """The pairs of books the partition puts apart. + + A pair of books that ended up in different groups is a "different" + verdict, and this is how many of them the partition makes. A group of + three makes no split: the three are one sense. + """ + books = set() + for group in groups: + books.update(group) + within = set() + for group in groups: + members = sorted(set(group)) + for i in range(len(members)): + for j in range(i + 1, len(members)): + within.add(frozenset((members[i], members[j]))) + apart = set() + names = sorted(books) + for i in range(len(names)): + for j in range(i + 1, len(names)): + pair = frozenset((names[i], names[j])) + if pair not in within: + apart.add(pair) + return apart + + +if __name__ == "__main__": + sys.exit(main()) diff --git a/plugins/vochic03/document-library/pipeline/scripts/make_corpus_index.py b/plugins/vochic03/document-library/pipeline/scripts/make_corpus_index.py new file mode 100644 index 00000000..fb12efe5 --- /dev/null +++ b/plugins/vochic03/document-library/pipeline/scripts/make_corpus_index.py @@ -0,0 +1,193 @@ +#!/usr/bin/env python3 +"""scripts/make_corpus_index.py - the corpus-wide view of the index. + +Written 26 Nov 2026 by MCode, after the ruling of Claude Opus 5.5 on the +corpus-wide term index. + +A reader cannot ask the corpus a question at read time, so the build +answers the question in advance and writes the answer into each reader. +This page is the other half: the whole corpus at once, the concepts that +cross the books, and a way into every one of them. + + python3 scripts/make_corpus_index.py --corpus-root + +What it writes: + + corpus-index.html the corpus-wide view, standing on its own +""" +import argparse +import html +import json +import os +import sys +import time + +HERE = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) +sys.path.insert(0, HERE) + +from book2corpus import index_block # noqa: E402 + +TEMPLATE = """ + + + + +The corpus index + + + +
    +

    The corpus index

    +

    Every term in the corpus, the books that use it, and the books that use +it in the same sense. A term named in one book and confirmed in another is a +shared concept: the same idea, in two books, in one sense.

    +

    {{COUNT}}

    + +

    {{N}} concepts shown; a shared sense the judge split is counted as two and two senses it merged are counted as one, and the blind read found more merges made than missed, so this count is neither an established upper nor an established lower bound

    +

    The shared concepts

    +
    +{{BODY}} +
    +
    + + + +""" + + +def read_jsonl(path): + rows = [] + if not os.path.exists(path): + return rows + with open(path, encoding="utf-8") as fh: + for line in fh: + line = line.strip() + if line: + rows.append(json.loads(line)) + return rows + + +def book_title(corpus, book): + """The book's own title.""" + manifest = os.path.join(corpus, book, "manifest.json") + if os.path.exists(manifest): + with open(manifest, encoding="utf-8") as fh: + data = json.load(fh) + found = (data.get("book") or {}).get("title") + if found: + return found + return book + + +def main(argv=None): + ap = argparse.ArgumentParser(prog="make_corpus_index.py") + ap.add_argument("--corpus-root", required=True) + ap.add_argument("--dry-run", action="store_true") + args = ap.parse_args(argv) + + corpus = args.corpus_root + index_root = os.path.join(corpus, "index") + started = time.time() + concepts = read_jsonl(os.path.join(index_root, "concepts.jsonl")) + review = read_jsonl(os.path.join(index_root, "review.jsonl")) + + # where every term of every book is, so a concept can point at it + places = {} + terms_by_book = {} + occurrences_dir = os.path.join(index_root, "occurrences") + for name in sorted(os.listdir(occurrences_dir)) if os.path.isdir(occurrences_dir) else []: + if not name.endswith(".jsonl"): + continue + path = os.path.join(occurrences_dir, name) + book = name[:-len(".jsonl")] + terms_by_book[book] = read_jsonl(path) + for row in terms_by_book[book]: + places["%s|%s" % (name, row["canonical"])] = row + titles = {name: book_title(corpus, name) for name in terms_by_book} + + rows = [] + for concept in concepts: + members = concept.get("members") or [] + if len(members) < 2: + continue + label = None + places_out = [] + for member in members: + found = places.get(member) + book = member.split("|", 1)[0] + if label is None and found: + label = found["label"] + anchors = (found or {}).get("anchors") or [] + places_out.append((book, titles.get(book, book), + anchors[0] if anchors else "")) + rows.append({"label": label or members[0].split("|", 1)[1], + "id": concept["concept_id"], + "size": len(members), "places": places_out}) + rows.sort(key=lambda row: (-row["size"], row["label"])) + + body = [] + for row in rows: + links = [] + for book, title, anchor in row["places"]: + href = "%s/index.html" % book + if anchor: + href += "#%s" % anchor + links.append('%s' + % (html.escape(href), html.escape(title))) + body.append("
    %s
    " % html.escape(row["label"])) + body.append('
    %s
    ' % ", ".join(links)) + total_terms = sum(len(rows) for rows in terms_by_book.values()) + count = ("%d books · %d terms · %d shared concepts · " + "%d terms waiting for a person" + % (len(terms_by_book), total_terms, len(rows), len(review))) + page = TEMPLATE.replace("{{COUNT}}", count) + page = page.replace("{{N}}", str(len(rows))) + page = page.replace("{{BODY}}", "\n".join(body)) + if not args.dry_run: + path = os.path.join(corpus, "corpus-index.html") + with open(path, "w", encoding="utf-8") as fh: + fh.write(page) + print("corpus index: %d books, %d terms, %d concepts, %d review | %.1f s" + % (len(terms_by_book), total_terms, len(rows), len(review), + time.time() - started)) + return 0 + + +if __name__ == "__main__": + sys.exit(main()) diff --git a/plugins/vochic03/document-library/pipeline/scripts/make_index.py b/plugins/vochic03/document-library/pipeline/scripts/make_index.py new file mode 100644 index 00000000..9f18131c --- /dev/null +++ b/plugins/vochic03/document-library/pipeline/scripts/make_index.py @@ -0,0 +1,260 @@ +#!/usr/bin/env python3 +"""scripts/make_index.py - the pairs a judge has to decide, and the evidence. + +Written 26 Nov 2026 by MCode, after the ruling of Claude Opus 5.5 on the +corpus-wide term index (briefs 12, 13 and 14). + +The forms are the terms that two or more books share, each with the books +that have it and the sentence the code found it in. The candidates were +the same canonical form. Every candidate carries the evidence: the +sentence in each book where the term is used, found here in the actual text +by code. The judge is asked about two words; the evidence tells it what +those words mean in these two books, and it is the code that found them. + + python3 scripts/make_index.py --corpus-root + +What it writes: + + index/links/forms.jsonl the forms: one term and every book with it + index/links/held-back.jsonl the names held back, and the rule that held them + +It is a build step: it reads the corpus and the admitted terms, and it +writes the candidates and nothing else. It asks nothing of any model. +""" +import argparse +import bisect +import collections +import json +import os +import re +import sys +import time + +HERE = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) +sys.path.insert(0, HERE) + +from book2corpus import admission # noqa: E402 +from book2corpus import terms # noqa: E402 +from book2corpus.pipeline import Settings # noqa: E402 + +# a sentence, with its offset in the text +SENTENCE = re.compile(r"[^.!?]*[.!?]+|[^.!?]+") + + +# the two windows of a term's evidence: the narrow one the judge reads +# first, and the wide one it asks for when the narrow one shows no sense. +# Both are measured: the wide window is the one the pilot used. +EVIDENCE_NARROW = 300 +EVIDENCE_WIDE = 1200 + + +def sentences_with_spans(text): + """The sentences of the text, with where they begin.""" + out = [] + for match in SENTENCE.finditer(text or ""): + body = match.group(0).strip() + if body: + out.append((match.start(), body)) + return out + + +def pattern_for(label): + """The pattern that finds a term in the text, however it is spaced.""" + words = [word for word in re.findall(r"[A-Za-z0-9]+", label or "") if word] + if not words: + return None + body = r"[\s\-]+".join(re.escape(word) for word in words) + return r"(?= 0: + start = max(start, before + 2) + after = text.find("\n\n", offset) + if after >= 0: + end = min(end, after) + return text[start:end].strip() + + +def main(argv=None): + ap = argparse.ArgumentParser(prog="make_index.py") + ap.add_argument("--corpus-root", required=True) + ap.add_argument("--books", default="") + ap.add_argument("--dry-run", action="store_true") + args = ap.parse_args(argv) + + corpus = args.corpus_root + index_root = os.path.join(corpus, "index") + # the links folder is the corpus own: a library that has never been + # judged has no index/links yet, and the build must make it + if not os.path.isdir(os.path.join(index_root, "links")): + os.makedirs(os.path.join(index_root, "links")) + wanted = [b.strip() for b in args.books.split(",") if b.strip()] + books = sorted(d for d in os.listdir(corpus) + if not d.startswith(".") + and os.path.isdir(os.path.join(corpus, d)) + and (os.path.isdir(os.path.join(corpus, d, "chapters")) + or os.path.exists(os.path.join(corpus, d, + "paragraphs.jsonl"))) + and (not wanted or d in wanted)) + started = time.time() + settings = Settings() + index_settings = settings.get("index") or {} + law_books = frozenset(index_settings.get("law_books") or ()) + by_canonical = {} + # what each scope of each book holds, so the name indexes can be found + scope_labels = collections.defaultdict(list) + for name in books: + rows = terms.read_terms(os.path.join(index_root, "terms", "%s.jsonl" % name)) + if not rows: + continue + text, _marks = book_text(corpus, name) + snippets, wide, routes = evidence(text, rows) + for row in rows: + scope = row.get("scope") or "" + scope_labels[(name, scope)].append(row.get("label") or "") + by_canonical.setdefault(row["canonical"], []).append({ + "book": name, + "term_id": row["term_id"], + "label": row["label"], + "kind": row.get("kind") or "", + "scope": scope, + "use": snippets.get(row["term_id"], ""), + "wide": wide.get(row["term_id"], ""), + "route": routes.get(row["term_id"], ""), + }) + + # the scopes that are the book's own name index: the entries in them + # are names, and a name there is a name everywhere else too + people_scopes = set(key for key, labels in scope_labels.items() + if admission.is_people_scope(labels)) + + # the forms: one row per canonical form, with every book that has it + forms = [] + held = [] + rules = collections.Counter() + for canonical, found in sorted(by_canonical.items()): + # a form is a term two books share, so the books have to be two + # books: a book that files the same term twice (a singular and a + # plural, a hyphen and a space) is still one book, and it is + # one member of the form + members = [] + seen_books = set() + for item in sorted(found, key=lambda item: item["book"]): + if item["book"] in seen_books: + continue + seen_books.add(item["book"]) + members.append(item) + if len(members) < 2: + continue + # a name is not a sense two books can share: it stays in the book + # index and is held back from the link stage + rule_id = "" + for item in members: + people = (item["book"], item.get("scope") or "") in people_scopes + is_held, rule = admission.citation_tier( + item["label"], books=[item["book"]], + law_books=law_books, people_scope=people) + if is_held: + rule_id = rule + break + if rule_id: + rules[rule_id] += 1 + held.append({"canonical": canonical, "rule_id": rule_id, + "label": members[0]["label"], + "books": [item["book"] for item in members], + "scopes": sorted(set(item.get("scope") or "" + for item in members)), + "reason": "a name, not a sense two books can share"}) + continue + forms.append({"canonical": canonical, "books": members, + "pairs": len(members) * (len(members) - 1) // 2}) + if not args.dry_run: + path = os.path.join(index_root, "links", "forms.jsonl") + with open(path, "w", encoding="utf-8") as fh: + for row in forms: + fh.write(json.dumps(row, sort_keys=True, ensure_ascii=False) + "\n") + path = os.path.join(index_root, "links", "held-back.jsonl") + with open(path, "w", encoding="utf-8") as fh: + for row in held: + fh.write(json.dumps(row, sort_keys=True, ensure_ascii=False) + "\n") + print("books: %d | canonical forms: %d | shared forms: %d | held back: %d | %.1f s" + % (len(books), len(by_canonical), len(forms), len(held), + time.time() - started)) + for rule in sorted(rules): + print(" held by %-20s %d" % (rule, rules[rule])) + return 0 + + +if __name__ == "__main__": + sys.exit(main()) diff --git a/plugins/vochic03/document-library/pipeline/scripts/make_policy.py b/plugins/vochic03/document-library/pipeline/scripts/make_policy.py new file mode 100644 index 00000000..07270846 --- /dev/null +++ b/plugins/vochic03/document-library/pipeline/scripts/make_policy.py @@ -0,0 +1,231 @@ +#!/usr/bin/env python3 +"""The picture policy: which tiers may show a picture, and why. + +The policy is data, not code: it lives in the corpus beside the evidence it +is computed from, so that a re-audit changes the decisions by itself. This +computes it. + +The rules: + + * a tier shows pictures only if the Wilson 95% lower bound of its + audited rate clears the bar, pooled over the books that pass the + per-book integrity gate. + * a book whose audited error rate over the text-only tiers is above the + integrity limit shows no text-only picture; a book with fewer than the + minimum of audited pairs is not measured and inherits the tier + decisions. + * the rate is corrected for the judge that measured it. A judge that + accepts a wrong picture eight times in a hundred makes a tier look + eight points better than it is, so the observed rate is corrected by + the Rogan-Gladen estimator and the uncertainty is carried. + * a tier whose bound straddles the bar is measured again, once, under a + stricter bar; if it still straddles, it stays closed. + * a tier whose sample is more than a tenth missing stays closed: a + failed call is missing data, not a verdict. + + python3 scripts/make_policy.py --corpus-root [--settings ] +""" +import argparse +import json +import os +import sys + +HERE = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) +sys.path.insert(0, HERE) + +from book2corpus.pipeline import rogan_gladen, wilson # noqa: E402 + +TIER_ORDER = ("numbered", "verified", "description-match", "probable", + "inferred", "ordinal", "candidate", "none") +TEXT_ONLY = ("verified", "probable", "description-match") + + +def wilson_interval(k, n, z=1.959964): + """The lower and the upper bound of a rate.""" + if n <= 0: + return (0.0, 1.0) + p = k / float(n) + d = 1 + z * z / n + centre = p + z * z / (2 * n) + spread = z * ((p * (1 - p) / n + z * z / (4 * n * n)) ** 0.5) + return (max(0.0, (centre - spread) / d), min(1.0, (centre + spread) / d)) + + +def load_audits(corpus): + """What every book was judged to be, and how many calls never came back.""" + books = {} + for name in sorted(os.listdir(corpus)): + path = os.path.join(corpus, name, "figure-audit.json") + if not os.path.exists(path): + continue + with open(path, encoding="utf-8") as fh: + audit = json.load(fh) + tiers = {} + for tier, block in (audit.get("tiers") or {}).items(): + verdicts = block.get("verdicts") or [] + answered = [v for v in verdicts if v.get("verdict") != "error"] + right = sum(1 for v in answered + if v.get("verdict") in ("match", "partial")) + wrong = sum(1 for v in answered + if v.get("verdict") == "mismatch") + tiers[tier] = {"asked": len(verdicts), "answered": len(answered), + "right": right, "wrong": wrong, + "missing": len(verdicts) - len(answered)} + books[name] = {"tiers": tiers, + "judge": audit.get("judge"), + "model": audit.get("model")} + return books + + +def integrity(books, settings): + """The per-book gate: is this book's catalogue sound enough to trust?""" + limit = settings.get("integrity_limit", 0.15) + minimum = settings.get("min_audit_pairs", 10) + out = {} + for book, data in books.items(): + asked = sum(t["asked"] for t in data["tiers"].values()) + answered = sum(t["answered"] for t in data["tiers"].values()) + right = sum(t["right"] for t in data["tiers"].values()) + wrong = sum(t["wrong"] for t in data["tiers"].values()) + text = {tier: data["tiers"][tier] for tier in TEXT_ONLY + if tier in data["tiers"]} + text_asked = sum(t["asked"] for t in text.values()) + text_right = sum(t["right"] for t in text.values()) + text_wrong = sum(t["wrong"] for t in text.values()) + rate = (text_wrong / float(text_asked)) if text_asked else 0.0 + measured = text_asked >= minimum + if not measured: + verdict = "not measured" + elif rate > limit: + verdict = "fails" + else: + verdict = "pass" + out[book] = {"audited": text_asked, "error_rate": round(rate, 4), + "measured": measured, "right": text_right, + "wrong": text_wrong, "verdict": verdict, + "all_audited": answered, "all_asked": asked} + return out + + +def tier_decisions(books, gate_pass, settings, judge_error=None): + """Which tiers may show a picture.""" + bar = settings.get("bar", 0.90) + second = settings.get("second_look_bar", 0.975) + missing_limit = settings.get("missing_sample_limit", 0.10) + judge_error = judge_error or {} + sensitivity = judge_error.get("sensitivity") + specificity = judge_error.get("specificity") + decisions = {} + for tier in TIER_ORDER: + asked = right = wrong = missing = 0 + for book, data in books.items(): + if book not in gate_pass: + continue + cell = data["tiers"].get(tier) + if not cell: + continue + asked += cell["asked"] + right += cell["right"] + wrong += cell["wrong"] + missing += cell["missing"] + if not asked: + decisions[tier] = {"audited": 0, "right": 0, "rate": 0.0, + "wilson_lower": 0.0, "shows_picture": False, + "reason": "no audited pairs"} + continue + answered = right + wrong + missing_share = missing / float(asked) + observed = right / float(answered) if answered else 0.0 + corrected = rogan_gladen(observed, sensitivity, specificity) \ + if sensitivity and specificity else observed + lower, upper = wilson_interval(answered, answered) # placeholder + lower, upper = wilson_interval(right, answered) + corrected_lower, corrected_upper = wilson_interval( + int(round(corrected * answered)), answered) + shows = corrected_lower >= bar and missing_share <= missing_limit + reason = "the bound clears the bar" + if missing_share > missing_limit: + reason = "too much of the sample never came back" + elif corrected_lower < bar and corrected_upper >= bar: + reason = "the bound straddles the bar; it stays closed" + elif not shows: + reason = "the bound does not clear the bar" + decisions[tier] = {"audited": asked, "answered": answered, + "right": right, "wrong": wrong, + "missing": missing, + "missing_share": round(missing_share, 4), + "observed_rate": round(observed, 4), + "rate": round(corrected, 4), + "wilson_lower": round(corrected_lower, 4), + "wilson_upper": round(corrected_upper, 4), + "shows_picture": shows, "reason": reason} + return decisions + + +def main(argv=None): + ap = argparse.ArgumentParser(prog="make_policy.py") + ap.add_argument("--corpus-root", required=True) + ap.add_argument("--settings", default=os.path.join(HERE, "settings", "pipeline.json")) + ap.add_argument("--judge-error", default="", + help="a JSON file with the measured sensitivity and specificity of the judge") + ap.add_argument("--dry-run", action="store_true") + args = ap.parse_args(argv) + + from book2corpus.pipeline import Settings + settings = Settings(args.settings).values + books = load_audits(args.corpus_root) + gate = integrity(books, settings) + passing = [book for book, cell in gate.items() if cell["verdict"] == "pass"] + judge_error = {} + if args.judge_error and os.path.exists(args.judge_error): + with open(args.judge_error, encoding="utf-8") as fh: + judge_error = json.load(fh) + decisions = tier_decisions(books, passing, settings, judge_error) + policy = {"schema": 2, "bar": settings.get("bar", 0.90), + "z": 1.959964, + "integrity_limit": settings.get("integrity_limit", 0.15), + "min_audit": settings.get("min_audit_pairs", 10), + "missing_sample_limit": settings.get("missing_sample_limit", 0.10), + "text_only_tiers": list(TEXT_ONLY), + "judge_error": judge_error, + "gate_a": {"pass": passing, + "fail": [b for b, c in gate.items() if c["verdict"] == "fails"], + "unmeasured": [b for b, c in gate.items() if c["verdict"] == "not measured"], + "rule": settings.get("integrity_rule", "a book whose audited error rate over the text-only tiers is above the limit shows no text-only picture; a book with fewer than the minimum of audited pairs is not measured and inherits the tier decisions")}, + "gate_b": {"rule": "a tier shows pictures only if the Wilson lower bound of its corrected audited rate, pooled over the books that passed Gate A, clears the bar", + "tiers": decisions}, + "integrity": gate} + verdicts = [] + for book in sorted(books): + for tier, cell in sorted(books[book]["tiers"].items()): + verdicts.append({"book": book, "tier": tier, + "audited": cell["asked"], "answered": cell["answered"], + "right": cell["right"], "wrong": cell["wrong"], + "missing": cell["missing"], + "source": "figure-audit.json"}) + out_policy = os.path.join(args.corpus_root, "picture-policy.json") + out_verdicts = os.path.join(args.corpus_root, "picture-verdicts.jsonl") + if not args.dry_run: + with open(out_policy, "w", encoding="utf-8") as fh: + json.dump(policy, fh, indent=1, sort_keys=True, ensure_ascii=False) + with open(out_verdicts, "w", encoding="utf-8") as fh: + for row in verdicts: + fh.write(json.dumps(row, sort_keys=True, ensure_ascii=False) + "\n") + print("Gate A: %d pass, %d fail, %d not measured" + % (len(policy["gate_a"]["pass"]), len(policy["gate_a"]["fail"]), + len(policy["gate_a"]["unmeasured"]))) + print("Gate B:") + for tier in TIER_ORDER: + cell = decisions.get(tier) or {} + print(" %-18s audited %-5s lower %-7s %s" + % (tier, cell.get("audited"), cell.get("wilson_lower"), + "shows" if cell.get("shows_picture") else "closed")) + if args.dry_run: + print("would write: %s (dry run)" % out_policy) + else: + print("written: %s" % out_policy) + return 0 + + +if __name__ == "__main__": + sys.exit(main()) \ No newline at end of file diff --git a/plugins/vochic03/document-library/pipeline/scripts/make_search_index.py b/plugins/vochic03/document-library/pipeline/scripts/make_search_index.py new file mode 100644 index 00000000..4643fb25 --- /dev/null +++ b/plugins/vochic03/document-library/pipeline/scripts/make_search_index.py @@ -0,0 +1,152 @@ +#!/usr/bin/env python3 +"""scripts/make_search_index.py - the search index, derived from the index. + +Written 26 Nov 2026 by MCode, after the ruling of Claude Opus 5.5 on the +corpus-wide term index. + +The index's source of truth is the sorted JSONL in the corpus: it is +diffable, merge-friendly and byte-reproducible. Searching sixteen +thousand rows of it with a scan is fine for a person and slow for +anything else, so this builds the derived thing that is fast: an SQLite +database with FTS5 over the terms and over the concepts. + +It is DERIVED. It is rebuilt from the JSONL every time, it is not +committed, and nothing depends on it except the search. + + python3 scripts/make_search_index.py --corpus-root + python3 scripts/make_search_index.py --corpus-root --query amygdala +""" +import argparse +import json +import os +import sqlite3 +import sys + +HERE = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) +sys.path.insert(0, HERE) + +SEARCH_INDEX = "index/search.sqlite3" + +SCHEMA = """ +DROP TABLE IF EXISTS terms; +DROP TABLE IF EXISTS concepts; +CREATE VIRTUAL TABLE terms USING fts5( + book UNINDEXED, canonical UNINDEXED, label, scope, chapter, + tokenize='unicode61 remove_diacritics 2'); +CREATE VIRTUAL TABLE concepts USING fts5( + concept_id UNINDEXED, label, books, + tokenize='unicode61 remove_diacritics 2'); +CREATE TABLE meta (key TEXT PRIMARY KEY, value TEXT); +""" + + +def read_jsonl(path): + rows = [] + if not os.path.exists(path): + return rows + with open(path, encoding="utf-8") as fh: + for line in fh: + line = line.strip() + if line: + rows.append(json.loads(line)) + return rows + + +def build(corpus, path): + """The database, built from the JSONL.""" + directory = os.path.dirname(path) + if directory: + os.makedirs(directory, exist_ok=True) + if os.path.exists(path): + os.remove(path) + con = sqlite3.connect(path) + con.executescript(SCHEMA) + terms = 0 + for name in sorted(os.listdir(os.path.join(corpus, "index", "occurrences"))): + if not name.endswith(".jsonl"): + continue + book = name[:-len(".jsonl")] + for row in read_jsonl(os.path.join(corpus, "index", "occurrences", name)): + con.execute("INSERT INTO terms VALUES (?,?,?,?,?)", + (book, row.get("canonical") or "", row.get("label") or "", + row.get("scope") or "", row.get("chapter") or "")) + terms += 1 + concepts = 0 + for row in read_jsonl(os.path.join(corpus, "index", "concepts.jsonl")): + members = row.get("members") or [] + books = [] + for member in members: + book, _sep, canonical = member.partition("|") + books.append("%s: %s" % (book, canonical)) + label = "" + for member in members: + book, _sep, canonical = member.partition("|") + path2 = os.path.join(corpus, "index", "occurrences", + "%s.jsonl" % book) + for found in read_jsonl(path2): + if found.get("canonical") == canonical: + label = found.get("label") or canonical + break + if label: + break + con.execute("INSERT INTO concepts VALUES (?,?,?)", + (row.get("concept_id") or "", label, "; ".join(books))) + concepts += 1 + con.execute("INSERT INTO meta VALUES ('terms', ?)", (str(terms),)) + con.execute("INSERT INTO meta VALUES ('concepts', ?)", (str(concepts),)) + con.commit() + con.close() + return terms, concepts + + +def search(path, query, limit=25): + """What the index holds for a word.""" + if not os.path.exists(path): + return None + con = sqlite3.connect(path) + hits = [] + try: + for row in con.execute( + "SELECT book, label, chapter FROM terms WHERE terms MATCH ? " + "ORDER BY rank LIMIT ?", (query, limit)): + hits.append(("term",) + row) + for row in con.execute( + "SELECT concept_id, label, books FROM concepts " + "WHERE concepts MATCH ? ORDER BY rank LIMIT ?", (query, limit)): + hits.append(("concept",) + row) + except sqlite3.OperationalError as exc: + print("the query is not one FTS5 understands: %s" % exc) + con.close() + return hits + + +def main(argv=None): + ap = argparse.ArgumentParser(prog="make_search_index.py") + ap.add_argument("--corpus-root", required=True) + ap.add_argument("--query", default="") + ap.add_argument("--path", default="") + args = ap.parse_args(argv) + path = args.path or os.path.join(args.corpus_root, SEARCH_INDEX) + if args.query: + hits = search(path, args.query) + if hits is None: + print("no search index yet: run without --query first") + return 1 + if not hits: + print("nothing for %r" % args.query) + return 0 + for kind, first, second, third in hits: + if kind == "term": + print("term %-24s %-40s %s" % (first, second[:40], third)) + else: + print("concept %-24s %-40s %s" % (first[:24], second[:40], + third[:60])) + return 0 + terms, concepts = build(args.corpus_root, path) + print("search index: %d terms, %d concepts | %s" + % (terms, concepts, path)) + return 0 + + +if __name__ == "__main__": + sys.exit(main()) diff --git a/plugins/vochic03/document-library/pipeline/scripts/make_terms.py b/plugins/vochic03/document-library/pipeline/scripts/make_terms.py new file mode 100644 index 00000000..41246b09 --- /dev/null +++ b/plugins/vochic03/document-library/pipeline/scripts/make_terms.py @@ -0,0 +1,1005 @@ +#!/usr/bin/env python3 +"""scripts/make_terms.py - the terms stage: the model names, the code proves. + +Written 26 Nov 2026 by MCode, after the ruling of Claude Opus 5.5 on the +corpus-wide term index (briefs 12, 13 and 14). + +THE RULE: THE MODEL PROPOSES, CODE PROVES. A model names the terms of a +chapter; the code then checks that each name occurs verbatim in that +chapter and runs the rule filter over it. A name that fails either test is +written down as a rejection, with its reason, and never enters the index. + +The model does not read the book. It reads a PROJECTION of the chapter: its +headings, its figure captions, the openings of a spread of its paragraphs, +the spans the chapter emphasises, the sentences that define something and +its glossary lines. The whole corpus is 26 million tokens and one pass over +it is not on the table, so the projection is what the model sees. What the +projection cannot show, the index does not claim: a term that occurs only +inside body prose is not in the index, and the corpus README says so in +those words. + +The money is bounded three times over: the stage has its own allocation, +the pre-flight refuses to start on an estimate that is too big, and the +pilot decides whether the cheap model is good enough before the real run. + + python3 scripts/make_terms.py --corpus-root the stage + python3 scripts/make_terms.py --corpus-root --pilot the pilot + +What it writes: + + index/terms/.jsonl the terms of one book, named and verified + index/seeds/.jsonl the hints this book's own text offers + index/cache/terms.jsonl the answer of every call, keyed by its hash + index/terms_rejected.jsonl every name that did not survive, and why + index/manifest/terms.jsonl one row per chapter: key, hashes, status +""" +import argparse +import hashlib +import json +import os +import re +import sys +import time +from concurrent.futures import ThreadPoolExecutor + +HERE = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) +sys.path.insert(0, HERE) + +from book2corpus import debris, projection, terms # noqa: E402 +from book2corpus.judge import Judge, ParseFailure # noqa: E402 +from book2corpus.pipeline import (CircuitBreaker, Ledger, # noqa: E402 + Settings, hash_of) + +TERMS_PROMPT = """You are naming the terms of one chapter of a textbook. + +You are given the parts of the chapter where its terms live. Every line is +tagged with what it is: a heading, a caption, the opening of a paragraph, a +definition, an emphasised span, or a glossary line. These are the places +where a term can be shown to be; they are not the whole chapter. + +%s + +HINTS: phrases this book uses often. They may be terms and they may not be: +%s + +Name the terms of this chapter: the concepts, mechanisms, theories, kinds of +thing, named parts, named laws and named people that the chapter is about. +Leave out layout words, credit lines, citation words and ordinary words. + +Reply with ONE JSON array of strings and nothing else, for example: +["working memory", "central executive"] + +At most %d terms. Each term must be written exactly as the chapter writes +it. +""" + +# the pilot: how many chapters, from how many books +PILOT_BOOKS = 12 +PILOT_CHAPTERS_PER_BOOK = 2 + +# a chapter goes to the strong model when this much of what the cheap +# model named did not survive the code +STRONG_RETRY_SHARE = 0.4 + + +def parse_terms(text): + """The answer is a bare JSON array of term strings. + + Anything else is a parse failure, and a parse failure is worth trying + again: the same question, asked again, is often answered properly. + """ + match = re.search(r"\[.*\]", text or "", re.S) + if not match: + raise ParseFailure("the model wrote no array") + try: + parsed = json.loads(match.group(0)) + except ValueError as exc: + raise ParseFailure("the array is not JSON: %s" % exc) + if not isinstance(parsed, list): + raise ParseFailure("the answer is not a list") + out = [] + for item in parsed: + if isinstance(item, str): + out.append(item) + elif isinstance(item, dict) and isinstance(item.get("term"), str): + out.append(item["term"]) + return out + + +def key_for(prompt, model): + """The hash of the question: the same question is asked once.""" + return hashlib.sha256((prompt + model).encode("utf-8")).hexdigest() + + +def book_title(corpus, book): + """The book's own title, for the header of the call.""" + manifest = os.path.join(corpus, book, "manifest.json") + if os.path.exists(manifest): + with open(manifest, encoding="utf-8") as fh: + data = json.load(fh) + found = (data.get("book") or {}).get("title") + if found: + return found + return book + + +def chapters_of(book_dir): + """The chapters of a notes book, in order, with their text.""" + out = [] + folder = os.path.join(book_dir, "chapters") + for name in sorted(os.listdir(folder)): + if not name.endswith(".md"): + continue + with open(os.path.join(folder, name), encoding="utf-8") as fh: + out.append((name, fh.read())) + return out + + +def figures_of(book_dir): + """The figures a notes book shows, with their captions.""" + path = os.path.join(book_dir, "figures.json") + if not os.path.exists(path): + return [] + with open(path, encoding="utf-8") as fh: + data = json.load(fh) + return data.get("figures") or [] + + +def seeds_of(book_dir, chapters, figures): + """The hints this book's own text offers. + + The seeds are per book and are computed from that book's text alone: a + corpus-wide seed count would move when a book is added and would + silently change every chapter's key. + """ + seeds = {} + for _name, body in chapters: + for head in debris.headings(body): + key = terms.canonical_form(head["text"]) + if key and len(key) > 2: + seeds.setdefault(key, {"term_id": "seed:%s" % key, + "canonical": key, "label": head["text"], + "count": 0, "kind": "heading"}) + for figure in figures: + phrase = terms.clean_caption(figure.get("caption")) + key = terms.canonical_form(phrase) + if key and len(key) > 2: + seeds.setdefault(key, {"term_id": "seed:%s" % key, + "canonical": key, "label": phrase, + "count": 0, "kind": "caption"}) + text = "\n\n".join(body for _name, body in chapters) + for phrase, count in terms.frequent_phrases(text): + key = terms.canonical_form(phrase) + if key and len(key) > 2 and key not in seeds: + seeds[key] = {"term_id": "seed:%s" % key, "canonical": key, + "label": phrase, "count": count, "kind": "frequent"} + rows = list(seeds.values()) + rows.sort(key=lambda row: row["canonical"]) + return rows + + +def seed_slice(seeds, body, limit=30): + """The hints for one chapter: the seeds that occur in it. + + The chapter is read once: its phrases are put in a table and the seeds + are looked up in it. Looking a seed up by scanning the chapter again + would read every chapter once per seed, and there are a hundred seeds. + """ + words = debris.tokenise(body) + table = set() + for start in range(len(words)): + for length in range(1, 5): + table.add(tuple(words[start:start + length])) + rows = [] + for row in seeds: + key = tuple(row["canonical"].split()) + if key and key in table: + rows.append(row) + rows.sort(key=lambda row: (-row["count"], row["canonical"])) + return rows[:limit] + + +def prompt_for(title, chapter, path, items, hints, max_terms): + """The question asked of the model.""" + lines = [] + for item in items: + lines.append("[%s] %s" % (item["kind"], item["text"])) + head = ("BOOK: %s\nCHAPTER: %s\nSECTION: %s\n" + % (title, chapter, path or "-")) + hint_text = "; ".join(row["label"] for row in hints) or "none" + return TERMS_PROMPT % (head + "\n".join(lines), hint_text, max_terms) + + +def chapter_path(chapter_name, body): + """The title of a chapter, for the header of the call and the scope. + + The first heading of the chapter, and only that: a chapter with a + hundred sub-headings would otherwise give every term in it a scope + of a thousand words. + """ + for head in debris.headings(body): + if head["level"] == 1 and head["text"]: + return head["text"][:120] + for head in debris.headings(body): + if head["text"]: + return head["text"][:120] + stem = re.sub(r"\.md$", "", chapter_name) + stem = re.sub(r"^\d+\s*", "", stem) + return stem.strip()[:120] + + +def verify(term, body): + """Is this name really in the chapter? The rules have the last word. + + Returns "" when the term is admitted, or the reason it is not. + """ + if not debris.occurs(body, term): + return "not_verbatim" + return terms.rule_filter(term) + + +def call_cost(prices, model, tokens_in, tokens_out): + """What one call cost.""" + price = prices.get(model) or {} + return (tokens_in * price.get("in", 0.0)) + (tokens_out * price.get("out", 0.0)) + + +def estimate_cost(prices, model, calls, tokens_in_each, tokens_out_each): + """What a stage will cost, before it starts: the pre-flight.""" + total_in = calls * tokens_in_each + total_out = calls * tokens_out_each + return call_cost(prices, model, total_in, total_out) + + +def append_cache(path, row): + """One chapter's answer, on the disk, now. + + The flush and the fsync are the point: a run that is killed after this + line has lost nothing, and the next run reads the answer back. + """ + directory = os.path.dirname(path) + if directory: + os.makedirs(directory, exist_ok=True) + with open(path, "a", encoding="utf-8") as fh: + fh.write(json.dumps(row, sort_keys=True, ensure_ascii=False) + "\n") + fh.flush() + os.fsync(fh.fileno()) + + + +PROSE_PROMPT = """You are reading part of a chapter of a textbook and naming +its terms. + +%s + +Name the terms: the concepts, mechanisms, theories, kinds of thing, named +parts, named laws and named people that this text is about. Leave out +layout words, credit lines, citation words and ordinary words. + +Reply with ONE JSON array of strings and nothing else, for example: +["working memory", "central executive"] + +At most %d terms. Each term must be written exactly as the text writes +it. +""" + +# the most tokens of text one call may carry +PROSE_TOKENS = 8000 + +# the most characters that is, at four characters a token +PROSE_CHARS = PROSE_TOKENS * 4 + +# how many pieces one unit of a machine corpus holds, so that a finished +# unit is kept and a stopped run loses only the unit in flight +PROSE_UNIT_PIECES = 24 + + +def prose_chunks(body, limit=PROSE_CHARS): + """The text of a chapter, in pieces, cut at the paragraph boundary. + + A piece is never cut inside a paragraph: a term that is broken over + two pieces is a term the model cannot see. + """ + pieces = [] + current = "" + for paragraph in re.split(r"\n\s*\n", body): + block = paragraph + "\n\n" + if len(block) > limit: + if current: + pieces.append(current) + current = "" + for start in range(0, len(block), limit): + pieces.append(block[start:start + limit]) + continue + if len(current) + len(block) > limit: + pieces.append(current) + current = "" + current += block + if current: + pieces.append(current) + return pieces + + +def paragraphs_of(book_dir): + """The text of a machine corpus: its paragraphs, in order.""" + pieces = [] + path = os.path.join(book_dir, "paragraphs.jsonl") + with open(path, encoding="utf-8") as fh: + for line in fh: + line = line.strip() + if not line: + continue + record = json.loads(line) + if record.get("kind") not in (None, "body"): + continue + pieces.append(record.get("text") or "") + return "\n\n".join(pieces) + + +def prose_units(corpus, books): + """The units of the second pass: the text the projection did not show. + + The first pass reads a projection of each chapter: its headings, its + captions, a spread of its paragraph openings, its definitions and its + glossary. That is six per cent of the words. This pass reads the + rest, so that the index is not blind to a term that the prose names + and the structure does not. + """ + out = [] + for name in books: + book_dir = os.path.join(corpus, name) + if os.path.exists(os.path.join(book_dir, "paragraphs.jsonl")): + # a machine corpus has no chapters, but it has text, and the + # text is where its terms are. It is cut into units that can + # be finished and kept: one unit of a thousand pieces is + # one unit of an hour, and a run that is stopped loses it. + body = paragraphs_of(book_dir) + pieces = prose_chunks(body) + for start in range(0, len(pieces), PROSE_UNIT_PIECES): + group = pieces[start:start + PROSE_UNIT_PIECES] + out.append({"kind": "prose", "book": name, + "title": book_title(corpus, name), + "name": "the code %d" % (start // PROSE_UNIT_PIECES + 1), + "body": "\n\n".join(group), "pieces": group, + "hints": [], "path": ""}) + continue + chapters = chapters_of(book_dir) + seeds = seeds_of(book_dir, chapters, figures_of(book_dir)) + for chapter_name, body in chapters: + if projection.excluded_chapter(chapter_name, chapter_name): + continue + pieces = prose_chunks(body) + if not pieces: + continue + out.append({"kind": "prose", "book": name, + "title": book_title(corpus, name), + "name": chapter_name, "body": body, + "pieces": pieces, + "hints": seed_slice(seeds, body), + "path": chapter_path(chapter_name, body)}) + return out + + +def run_prose_unit(judge, unit, model, max_terms): + """The terms of one chapter, read from the prose.""" + admitted = [] + rejected = [] + named = [] + calls = 0 + tokens_in = 0 + tokens_out = 0 + for piece in unit["pieces"]: + prompt = PROSE_PROMPT % (piece, max_terms) + result = judge.text(prompt, key_for(prompt, model), model, + parse=parse_terms) + calls += 1 + tokens_in += result.get("tokens_in", 0) + tokens_out += result.get("tokens_out", 0) + answer = result.get("answer") + if not isinstance(answer, list): + return {"failed": True, "calls": calls, "tokens_in": tokens_in, + "tokens_out": tokens_out, "admitted": [], "rejected": [], + "named": []} + for term in answer[:max_terms]: + term = (term or "").strip() + if not term or term in named: + continue + named.append(term) + reason = verify(term, unit["body"]) + if reason: + rejected.append({"term": term, "reason": reason}) + else: + admitted.append(term) + return {"failed": False, "calls": calls, "tokens_in": tokens_in, + "tokens_out": tokens_out, "admitted": admitted, + "rejected": rejected, "named": named} + +def unit_key(unit, model, prompt_hash): + """The key of a unit of work. + + It is the hash of what was asked: the text, the hints, the prompt, the + model and the rules. A chapter whose key is already in the manifest is + not asked again, and a new book does not move any other book's keys. + """ + if unit["kind"] == "prose": + material = {"book": unit["book"], "kind": "prose", + "chapter": unit.get("name") or "", + "text": debris.normalise(unit["body"]), + "prompt": hashlib.sha256(PROSE_PROMPT.encode("utf-8")).hexdigest()[:16], + "model": model, "rules": terms.RULES_VERSION} + elif unit["kind"] == "law": + material = {"book": unit["book"], "kind": "law", + "text": hashlib.sha256( + "\n".join(p.get("text") or "" for p in unit["paragraphs"]) + .encode("utf-8")).hexdigest(), + "prompt": prompt_hash, "model": model, + "rules": terms.RULES_VERSION, + "projection": projection.PROJECTION_VERSION} + else: + material = {"book": unit["book"], "chapter": unit["name"], + "kind": "chapter", + "text": debris.normalise(unit["body"]), + "seeds": [row["canonical"] for row in unit["hints"]], + "prompt": prompt_hash, "model": model, + "rules": terms.RULES_VERSION, + "projection": projection.PROJECTION_VERSION} + return hash_of(material) + + +def units_of(corpus, books): + """The units of the stage: one chapter of a notes book, or one law code. + + A chapter that is a bibliography is not a unit: naming terms from a + list of references is waste, and the rule says so. + """ + out = [] + for name in books: + book_dir = os.path.join(corpus, name) + title = book_title(corpus, name) + paragraphs_path = os.path.join(book_dir, "paragraphs.jsonl") + if os.path.exists(paragraphs_path): + records = [] + with open(paragraphs_path, encoding="utf-8") as fh: + for line in fh: + line = line.strip() + if line: + records.append(json.loads(line)) + out.append({"kind": "law", "book": name, "title": title, + "paragraphs": records}) + continue + chapters = chapters_of(book_dir) + seeds = seeds_of(book_dir, chapters, figures_of(book_dir)) + for chapter_name, body in chapters: + if projection.excluded_chapter(chapter_name, chapter_name): + continue + items = projection.build(body, chapter_name) + if not items: + continue + hints = seed_slice(seeds, body) + out.append({"kind": "chapter", "book": name, "title": title, + "name": chapter_name, "body": body, "items": items, + "path": chapter_path(chapter_name, body), + "hints": hints, "seeds": seeds, + "headings": len([i for i in items if i["kind"] == "heading"])}) + return out + + +def run_unit(judge, unit, model, max_terms): + """Name the terms of one unit, and let the code decide. + + Every name the model gives is checked: first that it really occurs in + the text, then that it passes the rules. A name that fails is a + rejection, with its reason, and it is never admitted. + """ + admitted = [] + rejected = [] + named = [] + calls = 0 + tokens_in = 0 + tokens_out = 0 + groups = (projection.pack(unit["items"]) if unit["kind"] == "chapter" + else [unit["items"]]) + for group in groups: + prompt = prompt_for(unit["title"], unit.get("name") or "the code", + unit.get("path") or "", group, + unit.get("hints") or [], max_terms) + result = judge.text(prompt, key_for(prompt, model), model, + parse=parse_terms) + calls += 1 + tokens_in += result.get("tokens_in", 0) + tokens_out += result.get("tokens_out", 0) + if result.get("verdict") == "error" or result.get("answer") is None: + return {"failed": True, "calls": calls, "tokens_in": tokens_in, + "tokens_out": tokens_out, "admitted": [], "rejected": [], + "named": []} + for term in (result.get("answer") or [])[:max_terms]: + term = (term or "").strip() + if not term or term in named: + continue + named.append(term) + reason = verify(term, unit["body"] if unit["kind"] == "chapter" + else " ".join(p.get("text") or "" + for p in unit["paragraphs"])) + if reason: + rejected.append({"term": term, "reason": reason}) + else: + admitted.append(term) + return {"failed": False, "calls": calls, "tokens_in": tokens_in, + "tokens_out": tokens_out, "admitted": admitted, + "rejected": rejected, "named": named} + + +def law_run(unit): + """The terms of a law code: the ones the code itself defines.""" + found = terms.law_terms(unit["paragraphs"]) + records = [] + for row in found: + records.append({"term_id": "%s:%s" % (unit["book"], row["canonical"]), + "label": row["label"], "canonical": row["canonical"], + "kind": "defined", "scope": row.get("scope") or "", + "definition": row.get("definition")}) + return {"failed": False, "calls": 0, "tokens_in": 0, "tokens_out": 0, + "admitted": [row["label"] for row in found], + "rejected": [], "named": [row["label"] for row in found], + "records": records} + + +def pilot_chapters(units): + """The pilot's chapters: two from each of twelve books. + + The books are spread through the corpus, so the pilot is not taken from + one kind of book only. + """ + by_book = {} + for unit in units: + if unit["kind"] != "chapter": + continue + by_book.setdefault(unit["book"], []).append(unit) + names = sorted(by_book) + if not names: + return [] + step = max(1, len(names) // PILOT_BOOKS) + chosen = [] + for index in range(0, len(names), step): + # the chapters are taken from inside the book, not from its front + # matter: a cover page has nothing in it, and a pilot of cover + # pages says nothing about the books + chapters = by_book[names[index]] + picks = [] + for part in range(PILOT_CHAPTERS_PER_BOOK): + at = int(len(chapters) * (part + 1) / (PILOT_CHAPTERS_PER_BOOK + 1)) + at = min(at, len(chapters) - 1) + if chapters[at] not in picks: + picks.append(chapters[at]) + chosen.extend(picks) + if len({unit["book"] for unit in chosen}) >= PILOT_BOOKS: + break + return chosen[:PILOT_BOOKS * PILOT_CHAPTERS_PER_BOOK] + + +def main(argv=None): + ap = argparse.ArgumentParser(prog="make_terms.py") + ap.add_argument("--corpus-root", required=True) + ap.add_argument("--books", default="") + ap.add_argument("--model", default="") + ap.add_argument("--strong-model", default="") + ap.add_argument("--jobs", type=int, default=8) + ap.add_argument("--limit", type=int, default=0) + ap.add_argument("--pilot", action="store_true") + ap.add_argument("--pass2", action="store_true", + help="read the text the projection did not show") + ap.add_argument("--prose-model", default="", + help="the model that reads the prose") + ap.add_argument("--dry-run", action="store_true") + args = ap.parse_args(argv) + + settings = Settings() + index_settings = settings.get("index") or {} + prices = settings["money"]["prices"] + model = args.model or index_settings.get("terms_model", "gemini-3.1-flash-lite") + strong_model = args.strong_model or index_settings.get("strong_model", + "gemini-3.8-flash") + allocation = index_settings.get("terms_cap_usd", 2.0) + preflight = index_settings.get("terms_preflight_usd", 1.5) + if args.pass2: + allocation = index_settings.get("prose_cap_usd", 3.0) + preflight = index_settings.get("prose_preflight_usd", 2.25) + if allocation is None or preflight is None: + # a stage with no cap is stopped before the first call + print("REFUSED: the terms stage has no money cap. A stage that has not") + print(" been given a cap is stopped before the first call.") + return 2 + allocation = float(allocation) + preflight = float(preflight) + strong_cap = float(index_settings.get("strong_retry_cap_usd", 0.6)) + max_terms = int(index_settings.get("terms_per_call", 40)) + corpus = args.corpus_root + index_root = os.path.join(corpus, "index") + + books = sorted(d for d in os.listdir(corpus) + if not d.startswith(".") + and os.path.isdir(os.path.join(corpus, d)) + and (os.path.isdir(os.path.join(corpus, d, "chapters")) + or os.path.exists(os.path.join(corpus, d, + "paragraphs.jsonl")))) + wanted = [b.strip() for b in args.books.split(",") if b.strip()] + if wanted: + books = [b for b in books if b in wanted] + units = (prose_units(corpus, books) if args.pass2 + else units_of(corpus, books)) + if args.limit: + units = units[:args.limit] + prompt_hash = hashlib.sha256(TERMS_PROMPT.encode("utf-8")).hexdigest()[:16] + started = time.time() + + if args.dry_run: + calls = 0 + tokens = 0 + for unit in units: + if unit["kind"] == "chapter": + calls += len(projection.pack(unit["items"])) + tokens += projection.tokens(unit["items"]) + elif unit["kind"] == "prose": + pieces = unit.get("pieces") or [] + calls += len(pieces) + tokens += sum(len(piece) // 4 + 120 for piece in pieces) + else: + calls += 1 + print("units: %d | calls: %d | projection tokens: %d" + % (len(units), calls, tokens)) + print("estimated cost on %s: $%.4f (allocation $%.2f, pre-flight $%.2f)" + % (model, estimate_cost(prices, model, calls, tokens // max(calls, 1), 400), + allocation, preflight)) + return 0 + + judge_settings = dict(settings["judge"]) + judge_settings["attempts"] = 3 + judge_settings["model"] = model + if args.pass2: + model = args.prose_model or index_settings.get( + "prose_model", "gemini-2.5-flash-lite") + judge_settings["model"] = model + ledger = Ledger(prices) + breaker = CircuitBreaker(judge_settings) + judge = Judge(judge_settings, ledger, breaker) + strong_settings = dict(judge_settings) + strong_settings["model"] = strong_model + strong_breaker = CircuitBreaker(strong_settings) + strong_judge = Judge(strong_settings, Ledger(prices), strong_breaker) + + if args.pilot: + return run_pilot(units, judge, strong_judge, model, strong_model, + max_terms, prices, index_root) + + # the manifest: what has been asked, and what came of it + manifest_path = os.path.join(index_root, "manifest", "terms.jsonl") + cache_path = os.path.join(index_root, "cache", "terms.jsonl") + manifest = {} + if os.path.exists(manifest_path): + with open(manifest_path, encoding="utf-8") as fh: + for line in fh: + line = line.strip() + if line: + row = json.loads(line) + manifest[row["key"]] = row + cache = {} + if os.path.exists(cache_path): + with open(cache_path, encoding="utf-8") as fh: + for line in fh: + line = line.strip() + if line: + row = json.loads(line) + cache[row["key"]] = row + + todo = [] + for unit in units: + key = unit_key(unit, model, prompt_hash) + if key in cache and key in manifest: + unit["key"] = key + unit["cached"] = cache[key] + continue + unit["key"] = key + todo.append(unit) + + # the pre-flight: the estimate is measured, not guessed + calls = 0 + tokens = 0 + for unit in todo: + if unit["kind"] == "chapter": + groups = projection.pack(unit["items"]) + calls += len(groups) + tokens += projection.tokens(unit["items"]) + elif unit["kind"] == "prose": + pieces = unit.get("pieces") or [] + calls += len(pieces) + tokens += sum(len(piece) // 4 + 120 for piece in pieces) + else: + calls += 1 + estimate = estimate_cost(prices, model, calls, tokens // max(calls, 1), + 400 if not args.pass2 else 200) + if estimate > preflight: + print("REFUSED: the terms pass is estimated at $%.4f, and the " + "pre-flight line is $%.2f" % (estimate, preflight)) + print("the allocation for this stage is $%.2f" % allocation) + return 2 + print("terms pass: %d units (%d to ask, %d reused), %d calls, " + "estimated $%.4f" + % (len(units), len(todo), len(units) - len(todo), calls, estimate)) + + results = {} + failures = [] + max_call_cost = [0.0] + strong_spend = [0.0] + lock = __import__("threading").Lock() + + def ask(unit): + if unit["kind"] == "law": + out = law_run(unit) + elif unit["kind"] == "prose": + out = run_prose_unit(judge, unit, model, max_terms) + else: + out = run_unit(judge, unit, model, max_terms) + cost = call_cost(prices, model, out["tokens_in"], out["tokens_out"]) + with lock: + if cost > max_call_cost[0]: + max_call_cost[0] = cost + return unit, out + + workers = max(1, args.jobs) + pending = [] + queue = list(todo) + stopped = False + with ThreadPoolExecutor(max_workers=workers) as pool: + while queue or pending: + while queue and len(pending) < workers and not stopped: + if ledger.usd() + 1.5 * max_call_cost[0] >= allocation: + stopped = True + break + unit = queue.pop(0) + pending.append(pool.submit(ask, unit)) + if not pending: + break + unit, out = pending.pop(0).result() + results[unit["key"]] = (unit, out) + if out["failed"]: + failures.append(unit) + continue + # the strong model, for the chapters the cheap model got wrong + named = max(1, len(out["named"])) + share = len(out["rejected"]) / float(named) + needs_strong = (share > STRONG_RETRY_SHARE + or (not out["admitted"] and unit.get("headings", 0) >= 5)) + if needs_strong and strong_spend[0] < strong_cap: + if unit["kind"] == "prose": + strong_out = run_prose_unit(strong_judge, unit, + strong_model, max_terms) + else: + strong_out = run_unit(strong_judge, unit, strong_model, + max_terms) + strong_spend[0] += call_cost(prices, strong_model, + strong_out["tokens_in"], + strong_out["tokens_out"]) + if not strong_out["failed"]: + out = strong_out + out["retried"] = True + else: + failures.append(unit) + continue + else: + out["retried"] = False + unit["out"] = out + with lock: + records = out.get("records") + if records is None: + records = [] + for label in out["admitted"]: + key = terms.canonical_form(label) + if not key: + continue + records.append({"term_id": "%s:%s" % (unit["book"], key), + "label": label, "canonical": key, + "kind": "named", + "scope": unit.get("path") or "", + "definition": None}) + cache[unit["key"]] = { + "key": unit["key"], "book": unit["book"], + "chapter": unit.get("name") or "code", + "model": strong_model if out.get("retried") else model, + "admitted": out["admitted"], "rejected": out["rejected"], + "terms": records, + "calls": out["calls"], "tokens_in": out["tokens_in"], + "tokens_out": out["tokens_out"]} + append_cache(cache_path, cache[unit["key"]]) + + return write_results(units, units, results, cache, manifest, manifest_path, + cache_path, index_root, ledger, failures, + time.time() - started, model, strong_model) + + +def read_rows(path): + """The rows of a file, one a line.""" + rows = [] + if not os.path.exists(path): + return rows + with open(path, encoding="utf-8") as fh: + for line in fh: + line = line.strip() + if line: + rows.append(json.loads(line)) + return rows + + +def write_results(units, all_units, results, cache, manifest, manifest_path, + cache_path, index_root, ledger, failures, seconds, model, + strong_model): + """The terms of every book, the seeds, the rejections and the manifest.""" + rejected_rows = [] + per_book = {} + for unit in units: + if unit["key"] not in cache: + continue + row = cache[unit["key"]] + for item in row["rejected"]: + rejected_rows.append({"book": unit["book"], + "chapter": unit.get("name") or "code", + "term": item["term"], "reason": item["reason"]}) + per_book.setdefault(unit["book"], []).append(unit) + rejected_rows.sort(key=lambda row: (row["book"], row["chapter"], row["term"])) + + written = 0 + for book, book_units in sorted(per_book.items()): + found = {} + # what is already in the index stays: the second pass adds to it + for row in terms.read_terms(os.path.join(index_root, "terms", + "%s.jsonl" % book)): + found[row["canonical"]] = row + for unit in book_units: + row = cache.get(unit["key"]) + if not row: + continue + for record in row.get("terms") or []: + key = record["canonical"] + if not key or key in found: + continue + record = dict(record) + record["scope"] = unit.get("path") or record.get("scope") or "" + found[key] = record + terms.write_terms(os.path.join(index_root, "terms", "%s.jsonl" % book), + list(found.values())) + seeds = [] + for unit in book_units: + if unit.get("seeds"): + seeds = unit["seeds"] + break + if seeds: + terms.write_terms(os.path.join(index_root, "seeds", "%s.jsonl" % book), + seeds) + written += len(found) + + rejected_path = os.path.join(index_root, "terms_rejected.jsonl") + seen = set() + merged = [] + for row in rejected_rows: + mark = (row["book"], row["chapter"], row["term"], row["reason"]) + if mark in seen: + continue + seen.add(mark) + merged.append(row) + for row in read_rows(rejected_path): + mark = (row.get("book"), row.get("chapter"), row.get("term"), + row.get("reason")) + if mark in seen: + continue + seen.add(mark) + merged.append(row) + merged.sort(key=lambda row: (row["book"], row["chapter"], row["term"])) + with open(rejected_path, "w", encoding="utf-8") as fh: + for row in merged: + fh.write(json.dumps(row, sort_keys=True, ensure_ascii=False) + "\n") + + rows = [] + # the manifest describes every unit the corpus has, not only the ones + # this run touched: the cache holds them all + for key in sorted(cache): + cache_row = cache[key] + row = manifest.get(key) + if not cache_row: + continue + status = "reused" if row else "computed" + rows.append({ + "unit": "%s/%s" % (cache_row["book"], cache_row.get("chapter") or "code"), + "key": key, + "status": status, + "terms": len(cache_row["admitted"]), + "rejected": len(cache_row["rejected"]), + "calls": cache_row["calls"], + "model": cache_row["model"], + "output": hash_of(cache_row["admitted"]), + }) + rows.sort(key=lambda row: row["unit"]) + os.makedirs(os.path.dirname(manifest_path), exist_ok=True) + with open(manifest_path, "w", encoding="utf-8") as fh: + for row in rows: + fh.write(json.dumps(row, sort_keys=True, ensure_ascii=False) + "\n") + + os.makedirs(os.path.dirname(cache_path), exist_ok=True) + cache_rows = sorted(cache.values(), key=lambda row: row["key"]) + with open(cache_path, "w", encoding="utf-8") as fh: + for row in cache_rows: + fh.write(json.dumps(row, sort_keys=True, ensure_ascii=False) + "\n") + + print("terms: %d | rejected: %d | units: %d | failures: %d | " + "cost $%.4f | %.0f s" + % (written, len(rejected_rows), len(rows), len(failures), + ledger.usd(), seconds)) + if failures: + print("FAILED: %d chapter(s) could not be named; the stage fails" + % len(failures)) + return 1 + return 0 + + +def run_pilot(units, judge, strong_judge, model, strong_model, max_terms, + prices, index_root): + """The pilot: is the cheap model good enough? + + Twenty-four chapters, two from each of twelve books, each named by both + models. The cheap model is lost if it admits less than seventy per + cent of what the strong model admits on the same chapters, or if more + than thirty-five per cent of what it names does not survive the code. + """ + chosen = pilot_chapters(units) + if not chosen: + print("no chapters to pilot on") + return 1 + lite_admitted = 0 + strong_admitted = 0 + lite_rejected = 0 + lite_named = 0 + strong_named = 0 + details = [] + def both(unit): + lite = run_unit(judge, unit, model, max_terms) + strong = run_unit(strong_judge, unit, strong_model, max_terms) + return unit, lite, strong + + with ThreadPoolExecutor(max_workers=8) as pool: + for unit, lite, strong in pool.map(both, chosen): + lite_admitted += len(lite["admitted"]) + strong_admitted += len(strong["admitted"]) + lite_rejected += len(lite["rejected"]) + lite_named += len(lite["named"]) + strong_named += len(strong["named"]) + details.append({"book": unit["book"], "chapter": unit["name"], + "lite_admitted": len(lite["admitted"]), + "strong_admitted": len(strong["admitted"]), + "lite_rejected": len(lite["rejected"]), + "lite_named": len(lite["named"])}) + print(" %-26s %-34s lite %2d/%-2d strong %2d/%-2d" + % (unit["book"], unit["name"][:34], len(lite["admitted"]), + len(lite["named"]), len(strong["admitted"]), + len(strong["named"])), flush=True) + lite_share = (lite_admitted / float(strong_admitted)) if strong_admitted else 0.0 + rejection = (lite_rejected / float(lite_named)) if lite_named else 1.0 + lost = (lite_share < 0.7) or (rejection > 0.35) + verdict = {"chapters": len(chosen), "lite": model, "strong": strong_model, + "lite_admitted": lite_admitted, "strong_admitted": strong_admitted, + "lite_share": round(lite_share, 4), + "lite_rejection": round(rejection, 4), + "lite_lost": bool(lost), "details": details} + os.makedirs(os.path.join(index_root, "manifest"), exist_ok=True) + with open(os.path.join(index_root, "manifest", "pilot.json"), "w", + encoding="utf-8") as fh: + json.dump(verdict, fh, indent=1, sort_keys=True, ensure_ascii=False) + fh.write("\n") + print() + print("pilot: %d chapters | lite admitted %d, strong admitted %d (%.0f%%) | " + "lite rejection %.1f%%" + % (len(chosen), lite_admitted, strong_admitted, lite_share * 100, + rejection * 100)) + print("VERDICT: the cheap model is %s" % ("LOST" if lost else "good enough")) + return 0 + + +if __name__ == "__main__": + sys.exit(main()) diff --git a/plugins/vochic03/document-library/pipeline/scripts/md_corpus2html.py b/plugins/vochic03/document-library/pipeline/scripts/md_corpus2html.py new file mode 100755 index 00000000..88ffe1f0 --- /dev/null +++ b/plugins/vochic03/document-library/pipeline/scripts/md_corpus2html.py @@ -0,0 +1,690 @@ +#!/usr/bin/env python3 +r"""Turn the notes corpora into books: an HTML reader for each. + + python3 scripts/md_corpus2html.py --corpus-root \ + --library ~/Library/Mac\ Documents/com~apple~CloudDocs/Textbooks + +Every book gets index.html (the reader), figures/ (the pictures it uses), +figures.json (what was used, with the hash of every file) and a report. Each +book is checked against its own notes by a second, independent reading of the +source, and a book that fails the check is reported as failing rather than +quietly shipped. + +Before anything is built the gate is itself checked: a reader with a +paragraph removed, a figure field changed, a link broken, an id duplicated +and an outside reference added must each be caught. + +The build is a build system, so it behaves like one: + + * it measures itself (--profile says where the time went); + * it does only what changed (a book whose inputs are unchanged is left + alone, and --force says to redo it anyway); + * it can be run in parallel (--jobs); + * it writes the same bytes every time (the same inputs give the same + reader, whatever order the folders are listed in); + * it keeps a log of what it did (build-log.jsonl); + * and every switch it has can be turned off (see SWITCHES below). +""" +import argparse +import hashlib +import json +import multiprocessing +import os +import re +import shutil +import sys +import tempfile +from concurrent.futures import ThreadPoolExecutor +import time + +sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) + +from book2corpus import figures, index_block, notes, notes_gate +from book2corpus import stamp +from book2corpus.figures import ALGORITHM_VERSION + +HERE = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) +TEMPLATES = os.path.join(HERE, "book2corpus", "templates") +CACHE = os.path.expanduser("~/.cache/book2corpus") + +# The switches. Each has a default that does the right thing and an +# escape hatch that brings the older behaviour back, so a build can always +# be reproduced exactly as it was before a change. +SWITCHES = { + "B2C_MATCH": ("on", "on|off", + "match pictures to figures; off builds the text only"), + "B2C_ORDER": ("canonical", "canonical|legacy", + "the order the manifest and the candidates are written in"), + "B2C_MD": ("on", "on|off", + "render the notes' own markdown in the reader"), + "B2C_JOBS": ("4", "a number", + "how many books to build at once"), +} + + +def switch(name): + """A switch, with its default, and a warning if it is set to nonsense.""" + default, values, _ = SWITCHES[name] + value = os.environ.get(name, default).strip().lower() + allowed = values.split("|") + if value not in allowed and not value.isdigit(): + print("warning: %s=%s is not one of %s; using %s" + % (name, value, values, default)) + return default + return value + + +def switch_report(): + out = {} + for name, (default, values, meaning) in SWITCHES.items(): + out[name] = {"value": os.environ.get(name, default), + "default": default, "allowed": values, "meaning": meaning} + return out + + +SAMPLE = """# A Chapter + +Source: A Test Book (2026) + +=== PAGE 7 (PDF page 9) === + +The first paragraph of the test book, long enough to be a sentence of its own. + +[FIGURE 1] +TYPE: diagram +CAPTION: Figure 1.1 A test diagram +CONTENT: A box with an arrow pointing at another box, which is what a test diagram is. +TEXT IN FIGURE: none +-- +""" + + +def self_test(): + """A gate that has never been seen to fail proves little.""" + failures = [] + work = tempfile.mkdtemp(prefix="book2corpus-gate-") + try: + corpus = os.path.join(work, "book") + os.makedirs(os.path.join(corpus, "chapters")) + with open(os.path.join(corpus, "chapters", "01 A Chapter.md"), "w", + encoding="utf-8") as fh: + fh.write(SAMPLE) + library = os.path.join(work, "library") + os.makedirs(library) + built = notes.build_book(corpus, library) + meta = {"title": "A Test Book", "citation": "A Test Book (2026)"} + html = notes.render_html(built, meta, TEMPLATES) + problems = notes_gate.check(corpus, built, html) + if problems: + failures.append("the gate fails on a good reader: %s" % problems[:2]) + return failures + mutations = { + "a paragraph is removed": lambda text: re.sub(r'

    ]*>.*?

    ', + "", text, count=1, flags=re.S), + "a figure field is changed": lambda text: text.replace("A box with an arrow", + "A circle without an arrow"), + "a link is broken": lambda text: text.replace('href="#ch-01"', 'href="#nowhere"'), + "the contents loses a chapter": lambda text: text.replace( + 'class="chapter" data-chapter="1"', 'class="lost" data-chapter="1"'), + "an id is used twice": lambda text: text.replace('id="ch-01"', 'id="t-01-0001"'), + "the reader reaches outside": lambda text: text.replace("", + ''), + } + for name, mutate in mutations.items(): + broken = mutate(html) + if broken == html: + failures.append("the mutation did nothing: %s" % name) + continue + if not notes_gate.check(corpus, built, broken): + failures.append("the gate did not catch: %s" % name) + return failures + finally: + shutil.rmtree(work, ignore_errors=True) + + +def book_meta(book_dir): + """The book's own name and citation. + + The title is the book's own citation, as the notes give it, and not + the name of the file the notes were made from: a reader whose title + is a file name names the wrong thing. + """ + title = os.path.basename(book_dir.rstrip("/")) + citation = "" + source = "" + sources = [] + chapters = os.path.join(book_dir, "chapters") + if os.path.isdir(chapters): + for name in sorted(os.listdir(chapters)): + if not name.endswith(".md"): + continue + with open(os.path.join(chapters, name), encoding="utf-8") as fh: + for line in fh: + if line.startswith("Source:"): + sources.append(line.split(":", 1)[1].strip()) + break + if sources: + source = sources[0] + # the book own extent, not the first chapter: the pages run from + # the first chapter first page to the last chapter last page + pages = [] + for text in sources: + found = re.search(r"PDF pages\s+([0-9]+)\s+to\s+([0-9]+)", text) + if found: + pages.append((int(found.group(1)), int(found.group(2)))) + if pages: + first = min(p[0] for p in pages) + last = max(p[1] for p in pages) + source = re.sub(r",\s*PDF pages\s+[0-9]+\s+to\s+[0-9]+", + ", PDF pages %d to %d" % (first, last), source) + citation = source + title = re.split(r",\s*PDF pages\b", source)[0].strip() + title = re.sub(r"\s*\(printed page.*$", "", title).strip() + else: + path = os.path.join(book_dir, "index.md") + if os.path.exists(path): + with open(path, encoding="utf-8") as fh: + for line in fh: + if line.startswith("# "): + title = line[2:].strip() + break + return {"title": title, "citation": citation} + + +def _sha256_file(path): + digest = hashlib.sha256() + with open(path, "rb") as fh: + for chunk in iter(lambda: fh.read(1 << 20), b""): + digest.update(chunk) + return digest.hexdigest() + + +def tool_state(): + """The tool that builds the readers: its hash and the files it covers. + + The closure is walked from the builders, so a change to code no + reader depends on - the term tokeniser, say - does not invalidate + every reader in the corpus. A walk that cannot be trusted falls + back to the whole package, which is the safe direction. + """ + return stamp.tool_state(HERE) + + +def tool_hash(): + """The hash of the tool that builds the readers.""" + return tool_state()["hash"] + + +def environment_hash(): + """The hash of what the build depends on besides the notes. + + The Python that runs it, the Pillow that makes the pictures and the + libwebp that encodes them: a different encoder writes different + bytes, so the reader has to be built again. + """ + parts = ["python=%d.%d" % (sys.version_info[0], sys.version_info[1])] + try: + import PIL + parts.append("pillow=" + PIL.__version__) + try: + from PIL import features + parts.append("webp=" + str(features.version("webp"))) + except Exception: + parts.append("webp=unknown") + except Exception: + parts.append("pillow=missing") + return hashlib.sha256("\n".join(parts).encode("utf-8")).hexdigest() + + +def switches_hash(args, embed, level, picture_base): + """The hash of the switches that change what the reader says. + + The switches that only change how fast the build runs are not here: + the number of jobs and the verbosity do not touch the bytes. + """ + parts = ["embed=%s" % embed, + "level=%s" % (level or ""), + "picture_base=%s" % (picture_base or ""), + "match=%s" % os.environ.get("B2C_MATCH", "on"), + "order=%s" % os.environ.get("B2C_ORDER", "canonical"), + "md=%s" % os.environ.get("B2C_MD", "on")] + return hashlib.sha256("\n".join(parts).encode("utf-8")).hexdigest() + + +def corpus_file_hash(path): + """The hash of a file of the corpus, or nothing when it is not there.""" + if not os.path.exists(path): + return "absent" + return _sha256_file(path) + + +def catalogue_slice_hash(records): + """The hash of the catalogue's lines that belong to one book. + + The catalogue holds every book, so hashing it whole would rebuild + every book when any one of them changes. Each book takes its own + slice, in a canonical order. + """ + parts = [] + for record in records: + item = json.dumps(record, sort_keys=True, ensure_ascii=False) + parts.append((record.get("file") or "", item)) + parts.sort() + return hashlib.sha256("\n".join(item for _file, item in parts) + .encode("utf-8")).hexdigest() + + +def picture_digests(library, records, cache): + """The digest of every picture the book uses. + + The digest is of the content, not of the size and the date: a file + that changed must change the reader. The library lives in the cloud, + and a picture that has not been read for a while costs a third of a + second to open however small it is, so the digests are cached by the + file's size and its date, and only a picture that moved is read + again. The cache is filled by scripts/warm_picture_cache.py. + """ + parts = [] + todo = [] + for record in records: + name = record.get("file") + if not name: + continue + path = os.path.join(library, name) + try: + info = os.stat(path) + except OSError: + parts.append("%s:absent" % name) + continue + key = os.path.abspath(path) + entry = cache.get(key) + if not entry or entry[0] != info.st_size or entry[1] != info.st_mtime_ns: + todo.append((name, key, info.st_size, info.st_mtime_ns, path)) + parts.append("%s:pending" % name) + else: + parts.append("%s:%s" % (name, entry[2])) + if todo: + workers = max(1, min(16, (os.cpu_count() or 4) * 2)) + with ThreadPoolExecutor(max_workers=workers) as pool: + digests = list(pool.map(_sha256_file, [item[4] for item in todo])) + for item, digest in zip(todo, digests): + name, key, size, mtime, _path = item + cache[key] = [size, mtime, digest] + parts.append("%s:%s" % (name, digest)) + parts.sort() + return hashlib.sha256("\n".join(parts).encode("utf-8")).hexdigest() + + +def verdicts_slice_hash(path, book): + """The hash of the verdicts that belong to one book. + + The verdicts are the evidence the picture policy rests on. A new + verdict for one book must not rebuild the others. + """ + if not os.path.exists(path): + return "absent" + parts = [] + with open(path, encoding="utf-8") as fh: + for line in fh: + line = line.strip() + if not line: + continue + try: + row = json.loads(line) + except Exception: + continue + if row.get("book") == book: + parts.append(json.dumps(row, sort_keys=True, ensure_ascii=False)) + parts.sort() + return hashlib.sha256("\n".join(parts).encode("utf-8")).hexdigest() + + +def stat_cache_path(): + """Where the digests of the library's pictures are kept.""" + os.makedirs(CACHE, exist_ok=True) + return os.path.join(CACHE, "picture-stat.json") + + +def index_payload_for(corpus_root, book): + """The compact block of cross-references this book's reader carries. + + The reader stands alone, so the build answers the corpus-wide question + in advance and writes the answer into the page. The full slice stays + in the corpus index; the page carries only what it shows. + """ + path = os.path.join(corpus_root, "index", "slices", "%s.json" % book) + if not os.path.exists(path): + return None + with open(path, encoding="utf-8") as fh: + payload = json.load(fh) + def link_to(other, anchor): + return "../%s/index.html#%s" % (other, anchor) + return index_block.build(payload.get("terms") or [], link_to=link_to) + + +def book_key(book_dir, book, tool, environment, switches, policy, verdicts, + catalogue, pictures): + """Everything a book's reader depends on, as one hash. + + This is Make's rule: a product is redone when an input is newer than + the result. The inputs are the notes, the builder, the environment + it runs in, the switches it runs with, the catalogue's own lines for + this book, the pictures it uses, the policy the pictures must obey + and the demotions the audit wrote. + """ + parts = [tool, environment, switches, policy, verdicts, catalogue, + pictures, "algorithm=%d" % figures.ALGORITHM_VERSION] + chapters = os.path.join(book_dir, "chapters") + for name in sorted(os.listdir(chapters)): + if name.endswith(".md"): + parts.append(name + ":" + _sha256_file(os.path.join(chapters, name))) + slice_path = os.path.join(os.path.dirname(os.path.abspath(book_dir)), + "index", "slices", "%s.json" % book) + if os.path.exists(slice_path): + parts.append("index:" + _sha256_file(slice_path)) + for name in ("demotions.json", "figure-audit.json", "audit-adjudication.json", + "golden.json"): + path = os.path.join(book_dir, name) + if os.path.exists(path): + parts.append(name + ":" + _sha256_file(path)) + return hashlib.sha256("\n".join(parts).encode("utf-8")).hexdigest() + + +def index_slice_hash(corpus_root, book): + """The hash of the index slice this book's reader shows.""" + return stamp.index_hash(corpus_root, book) + + +def stamp_html(html, corpus_root, book, tool, files=()): + """The reader carries the stamp of what it was built from. + + A reader that cannot say what it was built from cannot be checked: + the gate has to be able to tell a reader made from this index from + one made from the index before it. The files the tool hash covers + are in the stamp too, so a mismatch can be explained and not + guessed at. + """ + return stamp.stamp_html(html, index_slice_hash(corpus_root, book), tool, + files) + + +def cache_path(corpus_root): + os.makedirs(CACHE, exist_ok=True) + name = hashlib.sha256(os.path.abspath(corpus_root).encode("utf-8")).hexdigest()[:16] + return os.path.join(CACHE, "build-cache-%s.json" % name) + + +def log_path(): + os.makedirs(CACHE, exist_ok=True) + return os.path.join(CACHE, "build-log.jsonl") + + +def write_log(record): + """The audit trail: one line per build, with the switches in force.""" + with open(log_path(), "a", encoding="utf-8") as fh: + fh.write(json.dumps(record, sort_keys=True, ensure_ascii=False) + "\n") + + +def _build_one(job): + """Build one book and write it. Runs in its own process.""" + (corpus_root, library, folder, embed, picture_base, level) = job + book_dir = os.path.join(corpus_root, folder) + started = time.time() + built = notes.build_book(book_dir, library, embed=embed, level=level, + picture_base=picture_base) + if built is None: + return None + meta = book_meta(book_dir) + index_payload = index_payload_for(corpus_root, folder) + html = notes.render_html(built, meta, TEMPLATES, index_payload) + # the stamp says what this reader was built from, so the gate can + # tell it from one built from an older index + html = stamp_html(html, corpus_root, folder, tool_hash(), + tool_state()["files"]) + size = len(html.encode("utf-8")) + # a book that is too heavy to open gets smaller pictures, and a book + # that is still too heavy keeps its pictures beside it instead of + # inside it. A book that borrows its pictures carries none, so there + # is nothing to make smaller. + if size > notes.SOFT_BUDGET and embed and not picture_base: + for level_try in notes.LEVELS[1:]: + built = notes.build_book(book_dir, library, embed=True, level=level_try, + picture_base=picture_base) + html = notes.render_html(built, meta, TEMPLATES, index_payload) + size = len(html.encode("utf-8")) + if size <= notes.SOFT_BUDGET: + break + else: + built = notes.build_book(book_dir, library, embed=False, + level=notes.LEVELS[-1], picture_base=picture_base) + html = notes.render_html(built, meta, TEMPLATES, index_payload) + size = len(html.encode("utf-8")) + problems = notes_gate.check(book_dir, built, html, picture_base=picture_base) + # the findings that are not failures: a picture that another figure's + # description fits better is the audit's business, not the book's + suspects = [] + if not picture_base: + scan = notes_gate.Scan() + scan.feed(html) + suspects = notes_gate.swap_suspects(scan, built["manifest"], + built.get("figure_map") or []) + figures = sum(1 for c in built["chapters"] for b in c["blocks"] + if b["kind"] == "figure") + attached = sum(1 for c in built["chapters"] for b in c["blocks"] + if b.get("image")) + tiers = {} + for chapter in built["chapters"]: + for block in chapter["blocks"]: + if block["kind"] == "figure": + tier = block.get("tier") or "none" + tiers[tier] = tiers.get(tier, 0) + 1 + if size > notes.HARD_BUDGET: + problems.append("the reader is %.1f MB, over the %.0f MB ceiling" + % (size / 1e6, notes.HARD_BUDGET / 1e6)) + report = {"book": folder, "title": meta["title"], + "algorithm": ALGORITHM_VERSION, + "chapters": len(built["chapters"]), + "paragraphs": sum(1 for c in built["chapters"] for b in c["blocks"] + if b["kind"] == "paragraph"), + "figures": figures, "figures_with_pictures": attached, + "tiers": tiers, "pictures_bytes": built["embedded_bytes"], + "embedded": built["embed"], "html_bytes": size, + "problems": problems, "suspects": suspects} + if not problems: + # the pictures the reader does not use are removed only now: a + # build that failed its gate must leave the corpus as it was + for name in built.get("stale_derivatives") or []: + path = os.path.join(book_dir, "figures", name) + if os.path.exists(path): + os.remove(path) + with open(os.path.join(book_dir, "index.html"), "w", encoding="utf-8") as fh: + fh.write(html) + slice_path = os.path.join(corpus_root, "index", "slices", "%s.json" % folder) + if os.path.exists(slice_path): + with open(slice_path, encoding="utf-8") as source: + payload = json.load(source) + with open(os.path.join(book_dir, "%s.index.json" % folder), "w", + encoding="utf-8") as fh: + json.dump(payload, fh, indent=1, sort_keys=True, + ensure_ascii=False) + fh.write("\n") + with open(os.path.join(book_dir, "figures.json"), "w", encoding="utf-8") as fh: + json.dump({"book": folder, + "algorithm": ALGORITHM_VERSION, + "figures": built["manifest"], + "figure_map": built.get("figure_map", [])}, + fh, indent=1, ensure_ascii=False, sort_keys=True) + with open(os.path.join(book_dir, "notes-report.json"), "w", encoding="utf-8") as fh: + json.dump(report, fh, indent=1, ensure_ascii=False, sort_keys=True) + return {"folder": folder, "report": report, "seconds": time.time() - started} + + +def main(argv=None): + ap = argparse.ArgumentParser(prog="md_corpus2html.py") + ap.add_argument("--corpus-root", required=True) + ap.add_argument("--library", required=True) + ap.add_argument("--books", default="", help="comma separated; default: every book") + ap.add_argument("--no-embed", action="store_true", + help="reference the picture files instead of embedding them") + ap.add_argument("--dry-run", action="store_true") + ap.add_argument("--picture-base", default="", + help="borrow the pictures from this host instead of carrying them") + ap.add_argument("--force", action="store_true", + help="rebuild every book, even the ones whose inputs have not changed") + ap.add_argument("--jobs", type=int, default=0, + help="how many books to build at once (default: from B2C_JOBS)") + ap.add_argument("--profile", action="store_true", + help="say where the time went") + args = ap.parse_args(argv) + + try: + import PIL # noqa: F401 + except ImportError: + print("Pillow is needed to build the readers: pip install pillow") + return 2 + failures = self_test() + if failures: + print("the gate's own checks failed, so nothing was built:") + for failure in failures: + print(" - %s" % failure) + return 2 + + wanted = [b.strip() for b in args.books.split(",") if b.strip()] + folders = sorted(d for d in os.listdir(args.corpus_root) + if os.path.isdir(os.path.join(args.corpus_root, d, "chapters"))) + # a machine corpus keeps its own reader, in its own typography, with the + # book's own paragraph numbers. Its chapters are not notes, and feeding + # them to the notes reader would throw that reader away. + machine = [d for d in folders + if os.path.exists(os.path.join(args.corpus_root, d, "paragraphs.jsonl"))] + folders = [d for d in folders if d not in machine or d in wanted] + if machine and not wanted: + print("not touched (a machine corpus, with its own reader): %s" + % ", ".join(machine)) + if wanted: + folders = [f for f in folders if f in wanted] + + jobs = args.jobs or int(switch("B2C_JOBS") or 4) + jobs = max(1, min(jobs, len(folders) or 1)) + embed = not args.no_embed + picture_base = args.picture_base or None + started = time.time() + + # the catalogue is read once, in this process; the children inherit it + catalogue = notes._catalogue(args.library) + + tool = tool_hash() + environment = environment_hash() + switches = switches_hash(args, embed, None, picture_base) + policy = corpus_file_hash(os.path.join(args.corpus_root, "picture-policy.json")) + verdicts_path = os.path.join(args.corpus_root, "picture-verdicts.jsonl") + # the digests of the library's pictures, kept between the builds so + # that only a picture that changed is read again + stat_file = stat_cache_path() + stat_cache = {} + if os.path.exists(stat_file): + try: + with open(stat_file, encoding="utf-8") as fh: + stat_cache = json.load(fh) + except Exception: + stat_cache = {} + + cache_file = cache_path(args.corpus_root) + cache = {} + if os.path.exists(cache_file) and not args.force: + try: + with open(cache_file, encoding="utf-8") as fh: + cache = json.load(fh).get("books", {}) + except Exception: + cache = {} + + todo = [] + reused = [] + keys = {} + for folder in folders: + book_dir = os.path.join(args.corpus_root, folder) + records = catalogue.get(folder) or [] + key = book_key(book_dir, folder, tool, environment, switches, policy, + verdicts_slice_hash(verdicts_path, folder), + catalogue_slice_hash(records), + picture_digests(args.library, records, stat_cache)) + keys[folder] = key + reader = os.path.join(book_dir, "index.html") + if (not args.force and not args.dry_run and cache.get(folder, {}).get("key") == key + and os.path.exists(reader)): + reused.append(folder) + continue + todo.append((args.corpus_root, args.library, folder, embed, picture_base, None)) + + if reused: + print("unchanged, so left alone (use --force to redo): %s" + % ", ".join(reused)) + if not todo: + print("nothing to do: every book is up to date") + return 0 + + results = [] + if jobs > 1 and len(todo) > 1: + context = multiprocessing.get_context("fork") + with context.Pool(processes=jobs) as pool: + results = pool.map(_build_one, todo) + else: + results = [_build_one(job) for job in todo] + + summary = [] + failed = [] + for result in results: + if result is None: + continue + folder = result["folder"] + report = result["report"] + summary.append(report) + if report["problems"]: + failed.append(folder) + else: + cache[folder] = {"key": keys.get(folder, ""), + "built": time.strftime("%Y-%m-%dT%H:%M:%S")} + print("%-26s chapters=%-4d figures=%-5d pictures=%-5d %-6s html=%5.1f MB %5.1fs %s" + % (folder, report["chapters"], report["figures"], + report["figures_with_pictures"], + "OK" if not report["problems"] else "FAILED", + report["html_bytes"] / 1e6, result["seconds"], + "" if not report["problems"] else report["problems"][:1])) + + if not args.dry_run: + os.makedirs(os.path.dirname(cache_file), exist_ok=True) + # the key of the whole corpus: the books' own keys, in order, and + # the policy that governs them + corpus_key = hashlib.sha256("\n".join("%s:%s" % (name, keys[name]) + for name in sorted(keys) + ).encode("utf-8")).hexdigest() + with open(cache_file, "w", encoding="utf-8") as fh: + json.dump({"schema": 2, "tool": tool, "environment": environment, + "policy": policy, "corpus": corpus_key, + "books": cache}, fh, indent=1, sort_keys=True) + with open(stat_file, "w", encoding="utf-8") as fh: + json.dump(stat_cache, fh, indent=1, sort_keys=True) + write_log({"time": time.strftime("%Y-%m-%dT%H:%M:%S"), + "corpus": os.path.abspath(args.corpus_root), + "switches": switch_report(), + "jobs": jobs, + "built": [r["folder"] for r in results if r], + "reused": reused, + "failed": failed, + "seconds": round(time.time() - started, 2)}) + + total_figures = sum(r["figures"] for r in summary) + total_pictures = sum(r["figures_with_pictures"] for r in summary) + print() + print("books: %d built, %d unchanged | figures: %d | with a picture: %d | failed: %d" + % (len(summary), len(reused), total_figures, total_pictures, len(failed))) + if failed: + print("failed:", ", ".join(failed)) + if args.profile: + print("time: %.1fs for %d books, %d at a time" + % (time.time() - started, len(summary), jobs)) + return 1 if failed else 0 + + +if __name__ == "__main__": + sys.exit(main()) diff --git a/plugins/vochic03/document-library/pipeline/scripts/pipeline.py b/plugins/vochic03/document-library/pipeline/scripts/pipeline.py new file mode 100644 index 00000000..afc1d8fc --- /dev/null +++ b/plugins/vochic03/document-library/pipeline/scripts/pipeline.py @@ -0,0 +1,527 @@ +#!/usr/bin/env python3 +"""The pipeline: one command for the next book, and every book after it. + + python3 scripts/pipeline.py run --book # one book + python3 scripts/pipeline.py run --all # every book + python3 scripts/pipeline.py status # what the last run did + python3 scripts/pipeline.py resolve H-0007 --accept + python3 scripts/pipeline.py selftest # the tester, tested + +Each run writes under its date: runs/_