Layer Thesis
Separate declarative surface contracts from executable interaction controllers, with explicit memory/load safeguards.
Controllers are now explicitly mapped to surface contracts. The goal is predictable behavior, inspectable evidence, and fast validation.
Separate declarative surface contracts from executable interaction controllers, with explicit memory/load safeguards.
{"events-table":true,"request-id":true,"export":["json","markdown"]}GET /core GET /assets/core.js GET /api/core/dashboard
{"filters":["source","score","query","sort"],"timeline":true,"lane-view":true}GET /corpus/explorer GET /assets/corpus-explorer.js GET /api/corpus/explorer GET /api/corpus/summary GET /api/corpus/prompts GET /api/corpus/sessions GET /api/corpus/intensity
{"max-inflight":24,"server-threads":16,"server-queue-capacity":256,"failure-code":"OVERLOAD_THROTTLED","strategy":"bounded ingress executor + reject-fast global gate"}saturate requests -> expect 503 and OVERLOAD_THROTTLED envelope
{"max-heavy-inflight":12,"executor-threads":2,"executor-queue-capacity":8,"timeout-ms-default":1200,"strategy":"bounded heavy execution with deterministic failure envelopes"}saturate heavy gate -> expect 503 HEAVY_ROUTE_BUSY saturate delegate queue -> expect 503 DELEGATE_QUEUE_SATURATED simulate delay over timeout -> expect 504 TIME_BUDGET_EXCEEDED
{"marshal-max-response-bytes":4194304,"strategy":"reject over-budget response envelopes deterministically"}force oversized envelope -> expect 507 MARSHAL_BUDGET_EXCEEDED
{"principles":["semantic tokens over ad-hoc styling","entity-typed affordances over generic cards","queue/cancel/export over fire-and-forget actions","evidence-first operatorship","memory-safe sharding and marshalling by default","delegate heavy work to bounded executors, never unbounded pools"],"commands":["clojure -M:test","./scripts/verify_viewer_routes.sh http://127.0.0.1:35617"]}add saturation stress test script that asserts both global and heavy-route throttling envelopes attach diffable run history artifacts to core evidence exports stream NDJSON shards from background worker for very large corpora add per-surface latency SLO dashboard with p50/p95 traces