Owner ruling (26/10): 'the budget has never been a priority and must
never harm us here.' The cap=6 from #28 (my call, never agreed) cut the
Socialist International claim — it was #7 of 46 in the lead chunk of
live run 20261026-170521 — so the KG never held the third presidency
reading and the judge could not offer it.
- claims_from: NO cap, NO semantic filter. Code-only honesty: exact
repeats dropped (live finding: glm listed its 46-claim list with ~26
exact repeats + thinking leakage as items). Case/whitespace-insensitive
dedup keeps the FIRST occurrence. Every unique claim gets its TYPE
call.
- max_claims_per_chunk: deprecated in config (kept only for the
table-frags legacy path).
- budget.max_llm_calls: 80 -> 200 (bounds runaway runs only).
TDD: two_pass_extract 6/6 (new: dedup keeps unique claims verbatim).
Suite: 30 test files green.
Live cloud run 20261026-164236 found both on the wire:
1. TypeClaim carried ONLY the claim — the model could not copy the
verbatim quote from anywhere, so it invented one and the containment
check rejected 69/70 candidates (the safety net working, the
CONTRACT wrong). Fix: TypeClaim gains the chunk text; the model finds
the real quote there ('find the VERBATIM quote here, copied exactly').
2. One charge per claim starved the budget: ~70 claims ate all 80
llm_calls before Q2 (80/80, baseline fallback, no FINAL). Fix:
max_claims_per_chunk=6 (each claim costs a TYPE call; without a cap
one big article starves the run).
The speed win is real and kept: CLAIMS 14-20s/chunk, TYPE 2.8-8s/claim
(the 40-minute output budget is gone). Honest note: the cap bounds per
chunk, not the whole run (3 articles x 6 chunks x 7 calls ~ 126 > 80)
— if the run starves again, next lever is claim selection or a lower
cap, his call.
TDD: two_pass_extract 5/5 on the new contract (TypeClaim fields
{claim,text,fact}). Suite: 29 test files green.
His diagnosis accepted (26/10): the single-pass EXTRACT's giant typed
JSON array (verbatim quotes + temporal restrictions + sibling orders)
is the output budget behind the 40-minute arithmetic on slow local
models. Two-pass shortens EVERY output:
- Pass 1 ExtractClaims: plain claim strings, coreferences resolved
(entities named, never pronouns) — near-zero format tax.
- Pass 2 TypeClaim: ONE claim -> one typed Fact per call (same Fact
schema the store eats; temporal fields optional, containment-checked
downstream as always). Orders NEVER produced here: one claim at a
time has no siblings — the legacy Fact keeps orders for the
single-pass path and table frags, untouched.
- extract_mode: two_pass (default) | single (legacy) — config-driven,
read from config.yaml's knowledge block by run_app.
- Budget: Pass 1 charges once per chunk; Pass 2 charges once per
claim. Table frags keep the legacy single-pass call.
- Prompt log: CLAIMS/TYPE stage labels added.
TDD: two_pass_extract 5/5 (signatures, coref law, honest empties) +
two_pass_wiring 2/2 (end-to-end on a real store: two_pass ingests
typed facts with windows kept; single-pass control green). Suite: 29
test files green. The router from #26 makes the upcoming
extraction-model swap a pure config edit.