the second scroll: the mesorah snapshot, pinned and read (bishe'arecha step 6)

Devarim 17:18 — the king writes his copy from before the priests, not from
memory. scripts/build_mesorah.py takes one open-licence version per work
per language from the Sefaria export (bucket sefaria-export, catalogue of
2026-10-02; Public Domain / CC0 / CC-BY / CC-BY-SA only, checked in every
file; no CC-BY-NC — the Bavli is Wikisource's) and lays it down beside
L1: mesorah/works/<slug>/{he,en}.json, index.json, integrity.sha256,
build_report.json. 128 works (Rashi, Onkelos, Ramban, Ibn Ezra, Sforno
on the Torah; all of Mishnah; 37 Bavli tractates; Bereshit and Shemot
Rabbah, Sifrei, Tanchuma), 256 files, 44.9 MiB, tree hash 7d5b3a6c…
computed as L1's (sorted relative path, then bytes; the two post-hash
files excluded). What is out, and why (licence), is in Terumah §E5.

Read, never fetched: korban_processor/mesorah.py finds citations as
written (Rashi on Devarim 6:5, Berakhot 2a, Mishnah Berakhot 1:1,
Bereshit Rabbah 1:1, Sifrei Devarim 32, Tanchuma Bereshit 1 …), resolves
each against the snapshot (complex works through their unnamed node,
Tanchuma by parashah), lists them as examination.mesorah_references, and
makes every passage found a given source for that examination — so a
claim about Rashi anchors in Rashi or does not. The Vav Pipeline couples
coupled(reference(R), mesorah(Work, [Address])) or not_in_mesorah; the
engine accepts mesorah/2 as a terminal and not_in_mesorah is Form 4.
VavPipeline.Mesorah pins the hash, re-reads the tree at startup and every
ten minutes, and /kodesh/health carries mesorah_hash. Mounted read-only at
/mnt/mesorah in the vav-pipeline and korban-processor images. L3
bedikot.mesorah (migration 20261013000002).

Also: the 1-in-12 Day6 serving failure of 2026-10-04 reproduced with seed
446116 — HaltMonitorTest left the system halted; it now resolves on exit
and the Day6 setup is defensive. Construction §3.11, Terumah §E5, Tamid
§1.1, bishearecha §IV, KOHEN, AGENTS. Doorpost 0638d4eb…. Elixir 604/0
(seeds 835592 and 446116), korban 294/1 skipped, Prolog bedikah 44/44,
L3 10/0.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
Scott KarpandClaude Fable 5.1 committed 2026-10-13 19:13:36 +00:00
1 parent ffccedb63a
commit 5e325d36cc
288 files changed
+8809 -10

No files matched your search

+7
View File
@@ -290,10 +290,17 @@ halt_check_self_grounding(
%% coupled(reference(R), not_in_l1) / coupled(root(S), not_in_torah)
%% Torah, when the output invokes it:
%% one given source among the others
%% coupled(reference(R), mesorah(Work, Address)) a mesorah citation the
%% snapshot has (the second scroll)
%% coupled(reference(R), not_in_mesorah) one it does not
%%
%% The terminal anchors a bedikah accepts: the L1 primitives, plus a
%% given source. Nothing else — same safety property as above.
is_given_grounded_coupling(coupled(_, source(_))).
%% The second scroll (bishe'arecha §IV): a citation that stands in the
%% mesorah snapshot is a terminal like a verse in L1; one that does not
%% (not_in_mesorah) terminates nowhere — Form 4, like not_in_l1.
is_given_grounded_coupling(coupled(_, mesorah(_, _))).
is_given_grounded_coupling(C) :- is_l1_grounded_coupling(C).
%% Form 2, given: a confident claim that rests on nothing it was given.
+13
View File
@@ -257,6 +257,19 @@ test(a_weigh_term_does_not_also_trip_the_other_rules) :-
Status == "halt",
length(Vs, 1).
%% --- The second scroll (bishearecha.md §IV) ---
test(a_citation_the_mesorah_has_grounds_the_claim) :-
check('{"action":"halt_check_interpretation","interpretation":{"ref":"bedikah-m1","confidence":"high","ground":"given","coupling_trace":["coupled(claim(1), source(mesorah_rashi_on_devarim_6_5))","coupled(reference(rashi_on_devarim_6_5), mesorah(rashi_on_devarim, [6,5]))"]}}',
Status, []),
Status == "ok".
test(a_citation_the_mesorah_does_not_have_is_self_grounding) :-
check('{"action":"halt_check_interpretation","interpretation":{"ref":"bedikah-m2","confidence":"high","ground":"given","coupling_trace":["coupled(claim(1), source(report))","coupled(reference(rashi_on_devarim_99_1), not_in_mesorah)"]}}',
Status, Vs),
Status == "halt",
member(V, Vs), sub_string(V, _, _, _, "self_grounding"), sub_string(V, _, _, _, "not_in_mesorah").
%% --- Every halt rule cites its verse (anchors.pl, bishearecha.md §X) ---
:- use_module('../src/halt/anchors').