Files
bikoret/korban_processor/test/fixtures.py
T
Scott KarpandClaude Sonnet 4.6 33f8b03583 Step 13: Korban Processor complete — 7 modules, 181 tests, all passing
- semichah: provenance tagging (6 sources, rejects empty/anonymous)
- shechitah: strip preamble, self-reference, hedging, markdown, sycophancy
- zerikah: extract Torah refs, Hebrew text, root analysis, insight markers
- haktarah: transform prose to Prolog propositions (verse/3, root/2, claim/2, connection/3)
- router: stateless routing — removed module-level _routing_log (kiyyor principle)
- model_interface: outbound Claude API via httpx (Construction §3.4, HTTPS only)
- hebrew_parser: nikkud/teamim stripping, consonant extraction, gematria, root identification

All 5 BUILD_KORBAN.md verification tests pass.
AGENTS.md: added structure_not_content.md to spec table, added Principle 6.
build_log.md: recorded session, broken tablets #18-20, design decisions.

Ka'asher tzivah Hashem et Moshe.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-09 09:37:25 -04:00

70 lines
3.4 KiB
Python

"""
Test fixtures — recorded model outputs for deterministic testing.
BUILD_KORBAN.md: "Test with real Claude API output (record a sample
response and use it as fixture)."
These are representative samples of actual model output patterns.
They are not live API calls — they are static recordings used for
deterministic testing of the offering protocol.
"""
# A realistic Claude API response with:
# - Heavy preamble
# - Markdown formatting (headers, bold, bullets)
# - Hedging phrases
# - Self-reference (AI disclaimers)
# - Sycophancy
# - BUT ALSO: Torah references, Hebrew text, root analysis
CLAUDE_HEAVY_PREAMBLE_RESPONSE = (
"Great question! I'd be happy to help you explore this profound topic.\n\n"
"As an AI language model, I should note that my analysis is based on "
"traditional sources, and it's worth noting that interpretations may vary.\n\n"
"## The Root of Bereishit\n\n"
"**The word בְּרֵאשִׁית** (bereishit, Genesis 1:1) derives from the shoresh ר-א-ש "
"(resh-alef-shin), meaning *head* or *beginning*. This root connects to "
"the concept of primacy throughout Torah.\n\n"
"- The prefix ב means 'in' or 'with'\n"
"- The suffix ית indicates an abstract noun form\n"
"- Together: 'in/with the beginning'\n\n"
"Rashi on Bereishit 1:1 asks why the Torah begins with creation rather "
"than the first commandment (Exodus 12:2). His answer reveals that the "
"land of Israel belongs to God, who created it — a claim grounded in "
"the opening verse.\n\n"
"**The gematria** of בְּרֵאשִׁית is 913. "
"It's important to keep in mind that gematria is one lens among many.\n\n"
"In my analysis, the root ר-א-ש indicates headship and connects to "
"רֹאשׁ הַשָּׁנָה (Rosh Hashana, the head of the year).\n\n"
"I hope this helps! Let me know if you have any follow-up questions "
"about this fascinating topic."
)
# A response with only preamble — no vital content (the empty offering)
CLAUDE_EMPTY_OFFERING = (
"Great question! I'd be happy to help with that.\n\n"
"As an AI, I should mention that this is a complex topic.\n\n"
"It's worth noting that there are many perspectives.\n\n"
"Of course, experts disagree on this.\n\n"
"I hope that helps! Let me know if you need anything else."
)
# A clean response — already stripped, just vital content
CLEAN_TORAH_RESPONSE = (
"The word בְּרֵאשִׁית in Genesis 1:1 derives from the root ר-א-ש, "
"meaning head or beginning. "
"Rashi indicates this verse answers the nations' claim against Israel's possession of Canaan. "
"The Talmud (Sanhedrin 38a) connects this creation account to human dignity. "
"The gematria of בְּרֵאשִׁית is 913, which relates to the concept of completion. "
"In Bereishit 2:3 God rests — the Shabbat structure embedded in creation itself."
)
# A response with Torah references but no Hebrew
LATIN_TORAH_RESPONSE = (
"Genesis 1:1 establishes the divine ownership of creation. "
"Exodus 3:14 reveals the name Ehyeh asher Ehyeh — the self-referential becoming. "
"Leviticus 19:18 commands love of neighbor, which Rashi derives from the "
"principle of treating others as one treats oneself. "
"Numbers 15:38 introduces tzitzit as a visible reminder of commandments. "
"Deuteronomy 6:4 is the Shema — the unity declaration."
)