Lows: show-working publishes by allowlist and prints Display, edition_year says first appearance

The split guard failed open on any new split name; it now allows Train and
split-less items only. The page printed Debug of Refusal/StoreError and the
EntityRead store message; it prints Display and a fixed line. edition_year
held the first-appearance year of the work or translation, not the page read:
the doc comment and published schema say so.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Weksa 2026-11-12 09:46:50 +00:00
commit ff3261a50f
4 changed files with 13 additions and 6 deletions

View file

@ -59,7 +59,9 @@ for m in re.finditer(r'^(item:\S+) \[(.*?)\]\n "(.*)"$', run([str(weksa_bin), "
if set(corpus) != cited:
sys.exit(f"corpus dump lacks cited items {sorted(cited - set(corpus))}; unexpected {sorted(set(corpus) - cited)}")
# The dump's meta ends with the split (`... group=g Validation`, `... excluded`).
held_out = {k: v["meta"].split()[-1] for k, v in corpus.items() if v["meta"].split()[-1] in ("Validation", "Test")}
# Only Train and split-less items publish; any other name, including a split
# added later, is held out until it is allowed here.
held_out = {k: v["meta"].split()[-1] for k, v in corpus.items() if v["meta"].split()[-1] not in ("Train", "excluded")}
if held_out:
sys.exit(f"refusing to publish held-out items (nothing written): {held_out}")
model = "qwen3-embedding:0.6b"