fix: two-pass Pass 2 needs the chunk text (invented quotes) + claim cap #28

Merged
onibot merged 1 commits from fix/two-pass-contract into main 2026-10-26 17:05:16 +01:00
Owner

Live cloud run found both: TypeClaim without the chunk text invented quotes (containment check rejected 69/70 — net working, contract wrong); one charge per claim starved the budget (80/80 before Q2). Fix: text field on TypeClaim (verbatim quote copied from the chunk) + max_claims_per_chunk=6. Speed win kept (CLAIMS 14-20s, TYPE 2.8-8s). Suite 29 green.

Live cloud run found both: TypeClaim without the chunk text invented quotes (containment check rejected 69/70 — net working, contract wrong); one charge per claim starved the budget (80/80 before Q2). Fix: text field on TypeClaim (verbatim quote copied from the chunk) + max_claims_per_chunk=6. Speed win kept (CLAIMS 14-20s, TYPE 2.8-8s). Suite 29 green.
onibot added 1 commit 2026-10-26 17:05:15 +01:00
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.
onibot merged commit 2ee3b54661 into main 2026-10-26 17:05:16 +01:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: onibot/floop#28