SkimPromoteSignature: decisions as list[PromotionDecision] (table_index int, promote bool, column) — the 'idx: YES col' regex parser gone
VerifyCountSignature: unchanged shape (quote str + NOQUOTE convention predates typed migration; kept — it is an answer-shaped field, not a format protocol)
Callers consume typed objects directly. Test fakes updated to the new contracts (promote/store/guards).
Verified:
suite 14/14 green (84 tests)
live E2E (ollama-cloud glm-5.3-flash, Italy rivers, fresh KG): correct answer 2014 m3/s (Po 1540 + Adige 235 + Tiber 239) with verified join; wire prompts show list[str]/TableChoice/Confidence/list[Fact] schemas rendered natively
The typed-output migration completes: every knowledge signature now declares its structure as Python types and dspy renders/parses it.
**The change:**
- `TranslateSignature`: queries/entities as `list[str]` — the 'QUERIES:'/'ENTITIES:' line protocol and its prefix-scraping parser are gone
- `AnswerFromKG`: confidence is a local `Confidence(str, Enum)` (knowledge stays decoupled from floop)
- `SelectTableSignature`: `chosen` is `TableChoice | None` (index int, column, set_name) — 'NONE' string handling gone; origin_question dropped (it duplicated the input)
- `SkimPromoteSignature`: decisions as `list[PromotionDecision]` (table_index int, promote bool, column) — the 'idx: YES col' regex parser gone
- `VerifyCountSignature`: unchanged shape (quote str + NOQUOTE convention predates typed migration; kept — it is an answer-shaped field, not a format protocol)
Callers consume typed objects directly. Test fakes updated to the new contracts (promote/store/guards).
**Verified:**
- suite 14/14 green (84 tests)
- live E2E (ollama-cloud glm-5.3-flash, Italy rivers, fresh KG): correct answer 2014 m3/s (Po 1540 + Adige 235 + Tiber 239) with verified join; wire prompts show list[str]/TableChoice/Confidence/list[Fact] schemas rendered natively
The typed-output migration completes: every knowledge signature now
declares its structure as Python types and dspy renders/parses it.
- TranslateSignature: queries/entities as list[str] — the
'QUERIES:'/'ENTITIES:' line protocol and its prefix-scraping parser
are gone
- AnswerFromKG: confidence is a local Confidence(str, Enum)
(knowledge stays decoupled from floop)
- SelectTableSignature: chosen is TableChoice | None (index int,
column, set_name) — 'NONE' string handling gone; origin_question
dropped (it duplicated the input)
- SkimPromoteSignature: decisions as list[PromotionDecision]
(table_index int, promote bool, column) — the 'idx: YES col' regex
parser gone
- VerifyCountSignature: unchanged shape (quote str + NOQUOTE
convention predates typed migration; kept — it is an answer-shaped
field, not a format protocol)
Callers consume typed objects directly. Test fakes updated to the new
contracts (promote/store/guards).
VERIFIED:
- suite 14/14 green (84 tests)
- live E2E (ollama-cloud glm-5.3-flash, Italy rivers, fresh KG):
correct answer 2014 m3/s (Po 1540 + Adige 235 + Tiber 239) with
verified join; wire prompts show list[str]/TableChoice/Confidence/
list[Fact] schemas rendered natively
onibot
merged commit 12a1ffd77f into main2026-10-22 15:11:42 +02:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
The typed-output migration completes: every knowledge signature now declares its structure as Python types and dspy renders/parses it.
The change:
TranslateSignature: queries/entities aslist[str]— the 'QUERIES:'/'ENTITIES:' line protocol and its prefix-scraping parser are goneAnswerFromKG: confidence is a localConfidence(str, Enum)(knowledge stays decoupled from floop)SelectTableSignature:chosenisTableChoice | None(index int, column, set_name) — 'NONE' string handling gone; origin_question dropped (it duplicated the input)SkimPromoteSignature: decisions aslist[PromotionDecision](table_index int, promote bool, column) — the 'idx: YES col' regex parser goneVerifyCountSignature: unchanged shape (quote str + NOQUOTE convention predates typed migration; kept — it is an answer-shaped field, not a format protocol)Callers consume typed objects directly. Test fakes updated to the new contracts (promote/store/guards).
Verified: