// SPDX-License-Identifier: Apache-2.0 // © 2026 Lutar, Stephen P. — SZL Holdings · ORCID 0009-0001-0110-4173 // a11oy.code — 7-tier organ-mapped LLM router UI (Doctrine v11 §14). ADDITIVE page at /code. import { useEffect, useState } from "react"; type Tier = { tier: string; rank: number; organ: string; model_id: string; role: string; cost_per_1k_usd: number; }; type RouteResult = { organ_routed: string; tier_used: string; llm_model_id: string; response: string; lambda_signal: number; latency_ms: number; cost_estimate_usd: number; traceparent_propagated: string | null; λ_receipt?: { signature_status: string }; }; const API = "/api/a11oy/v1/code"; export default function A11oyCode() { const [tiers, setTiers] = useState([]); const [query, setQuery] = useState("prove the lambda boundedness lemma in Lean"); const [organ, setOrgan] = useState(""); const [auto, setAuto] = useState(true); const [result, setResult] = useState(null); const [busy, setBusy] = useState(false); useEffect(() => { fetch(`${API}/tiers`) .then((r) => r.json()) .then((d) => setTiers(d.tiers || [])) .catch(() => setTiers([])); }, []); async function runRoute() { setBusy(true); const endpoint = auto ? `${API}/auto` : `${API}/route`; const body: Record = { query, axis_scores: Array(13).fill(0.96), require_λ_receipt: true, traceparent: "00-a11oycode-localspan-01", }; if (!auto) body.organ_context = organ; try { const r = await fetch(endpoint, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify(body), }); setResult(await r.json()); } catch { setResult(null); } finally { setBusy(false); } } return (

a11oy.code

7-tier organ-mapped LLM router baked into the anatomy. Doctrine v11 §14. The response is an honest stub (no model key wired); tier selection, organ routing, Λ-signal and the Λ-receipt are real deterministic math. Λ-receipt signature is a{" "} PLACEHOLDER (Sigstore not wired); traceparent is in-process only (Wire D not yet implemented).

7 tiers → 7 organs

{tiers.map((t) => ( ))}
TierOrganModelRole
{t.tier} {t.organ} {t.model_id} {t.role}

Route a query