Scott Karp and Claude Opus 4.6
191d76b480
Bigdei Kodesh: HTTP API layer — four garments for four access tiers
...
Shemot 28:2 — V'asita vigdei kodesh l'Aharon achicha,
l'khavod ul'tifaret.
The builder makes the garments. The kohen wears them.
Four access tiers (Operations spec §1.1):
- Pe'ah (GET/POST /peah/ask) — public, no auth, no tracking.
The stranger is safe to approach.
- Courtyard (POST /courtyard/offering) — Bearer token auth,
offering types: shelamim, olah, chatat, minchah
- Chatzer (POST /chatzer/sanhedrin) — Sanhedrin deliberation,
returns majority/minority with preserved dissent
- Kodesh (GET /kodesh/health, /kodesh/status) — operator interface,
health checks for K8s liveness/readiness probes
Error format follows chatat protocol (Operations spec §1.2):
KIYOR_* (422), SHABBAT (503), MANNA_DEPLETED (503),
CLOUD_MOVING (503), HALT_* (503), UNAUTHORIZED (401)
Implementation:
- Plug.Router with Bandit HTTP server
- Added to supervision tree via maybe_add_http_server
- Checks system availability (Shabbat, halt) before processing
- Health check reads L1 integrity, cloud, manna, halt monitor
- Status shows all component states, signal count, refuge list
- 16 API tests covering all four tiers + error format
All 235 Elixir + 19 L3 + 195 Prolog + 33 Haskell = 463+ tests, 0 failures
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-22 07:32:15 -04:00
Scott Karp and Claude Opus 4.6
d34e2799ac
L3 Oral Tradition: PostgreSQL persistence layer for interpretations, minority opinions, teiku
...
Devarim 17:9 — v'darashta v'higidu lekha et d'var hamishpat.
The inquiry requires that what is found is RECORDED.
- Ecto Repo with graceful degradation (maybe_add_repo, like other engines)
- Migration: interpretations, minority_opinions, teiku_registry tables
- Append-only enforcement via REVOKE UPDATE/DELETE
- Includes eish_zarah fields: coupling_trace, grounding_type, challenge_sequence
- Ecto schemas: Interpretation, MinorityOpinion, TeikuRecord
- Changeset validations: status inclusion, panel_size > 0, grounding_type enum
- TeikuRecord.resolve_changeset restricts updates to resolved_at/resolution only
- L3.Store bridge module: record, query, count operations
- L3 tests tagged @moduletag :l3, excluded by default (no local PostgreSQL)
- Enable with: SHORASHIM_L3=1 mix test --include l3
- All 76 existing Elixir tests pass, 195 Prolog tests pass, 33 Haskell tests pass
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-17 09:43:44 -04:00
Scott Karp and Claude Sonnet 4.6
80ec364da6
Phase 1-2 build: Steps 5-6, 8-13
...
Shoresh Engine (Haskell, Step 5)
- 12 modules: Types, Lexicon, Binyanim, Teamim, Gematria, Graph,
KetivQere, Smikhut, Havdalah, Kriah, KiTov, Firmware
- 33 EUnit tests, 0 failures
- Firmware module verifies L1 SHA-256 hash at startup
Talmudic Engine (SWI-Prolog, Step 6)
- 15 modules: halt, reasoning, specification, interface
- 57 PlUnit tests, 0 failures
- Three cardinal halt conditions: avodah_zarah, shfichut_damim, gilui_arayot
Vav Pipeline (Elixir, Steps 8-11)
- 14 modules: BereishitCycle, Shema, Cloud, Manna, L1Reader,
Specification, HaltConditions, ShabbatTimer, CycleLog, Chatzotzrot,
ShoreshEngineClient, TalmudicEngineClient, Application
- 46 ExUnit tests, 0 failures
- Nishma-first architecture: hears before it speaks
Sanhedrin Framework (Erlang/OTP, Step 12)
- 8 modules: sanhedrin_app, sanhedrin_sup, escalation, panel_sup,
panel, judge, clerk, halt_monitor
- 46 EUnit tests, 0 failures (includes fix: rejected outcome now reachable)
- Panel sizes: 1/3/23/71 — unanimous capital guilty → acquit (Sanhedrin 17a)
- Minority opinions append-only, never deleted
Korban Processor (Python, Step 13)
- 6 modules: korban, shechitah, semichah, zerikah, haktarah, router
Builder tooling: AGENTS.md, opencode.json, memory/, src/tools/
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-02-26 14:02:34 -05:00