Devarim 6:9 / 11:20 — on your gates. POST /gate/anthropic/v1/messages and POST /gate/openai/v1/chat/completions take the model's own request shape under the caller's own upstream key (x-api-key, or Authorization with the courtyard key in X-Shorashim-Key), forward it unchanged (OTP inets/ssl, verify_peer; the Korban socket is serial, so the upstream call is made in the Vav Pipeline and the reply enters as korban like every bedikah), examine the reply with the request in hand — sources = the system prompt and the user turns, query = the last user turn; the model's prior turns are not sources — and deliver it with its fringe (Bamidbar 15:39): a trailer on the last text block naming ref, verdict, the rules with their verses and sentences; X-Shorashim-Bedikah / X-Shorashim-Verdict; a `shorashim` object. A non-200 passes through as it came; a reply with no text is not delivered; stream is refused. Rebuke once (Vayikra 19:17; X-Shorashim-Rebuke: once): a lo_tov reply is answered once more with the finding; the second reply is examined like the first, its record carries rebukes: <first ref> (migration 20261007000002), and it is delivered marked with both. Never a third. Manna: one api_calls_external per upstream call, gathered before any call. Stateless: no conversation, no key kept; the log is the path class. Gate.bearer accepts X-Shorashim-Key. Construction §3.10, Tamid §1.1, KOHEN "Standing at the gate", bishearecha §I/§III/§VII marked built. Elixir 592/0 (+14 gate tests incl. a real httpc round trip to a local model double), L3 9/0. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
46 lines
1.0 KiB
Elixir
46 lines
1.0 KiB
Elixir
defmodule VavPipeline.MixProject do
|
|
use Mix.Project
|
|
|
|
def project do
|
|
[
|
|
app: :vav_pipeline,
|
|
version: "0.1.0",
|
|
elixir: "~> 1.16.1",
|
|
start_permanent: Mix.env() == :prod,
|
|
deps: deps(),
|
|
aliases: aliases()
|
|
]
|
|
end
|
|
|
|
def application do
|
|
[
|
|
extra_applications: [:logger, :crypto, :inets, :ssl, :public_key],
|
|
mod: {VavPipeline.Application, []}
|
|
]
|
|
end
|
|
|
|
defp aliases do
|
|
[
|
|
setup: ["deps.get", "ecto.setup"],
|
|
"ecto.setup": ["ecto.create", "ecto.migrate"],
|
|
"ecto.reset": ["ecto.drop", "ecto.setup"],
|
|
test: ["test"]
|
|
]
|
|
end
|
|
|
|
# Construction spec §1.5 — exact version pins
|
|
defp deps do
|
|
[
|
|
{:jason, "~> 1.4.1"},
|
|
{:sanhedrin, path: "../sanhedrin", manager: :rebar3},
|
|
# L3 — Oral Tradition (PostgreSQL append-only)
|
|
# Architecture §3.7, Construction §1.5
|
|
{:ecto_sql, "~> 3.11.1"},
|
|
{:postgrex, "~> 0.22.3"},
|
|
# Bigdei Kodesh — HTTP API layer (Shemot 28:2)
|
|
{:bandit, "~> 1.2"},
|
|
{:plug, "~> 1.15"}
|
|
]
|
|
end
|
|
end
|