external design session notes #18
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Title: agent-proxy - agent-to-model gateway with heavy o11y, doubling as harness-fit test-matrix instrument
Origin
Started from local models dying on long context (long wait then 0 to 1 bytes = prefill done, then EOS on token one). Root cause is Ollama truncating silently to fit num_ctx instead of erroring. Generalized into a fail-loud gateway, then into the agent-proxy concept below.
Concept
Third guard in the coily / o2r family. cli-guard gates tool execution, o2r is the agent-to-agent relay, agent-proxy is the agent-to-model relay. Sits at the OpenAI-compatible API boundary (harness-agnostic), agents identify via request headers (x-agent-id, x-repo, x-trust-tier), and it is the single authorization and audit surface for inference the way coily is for tool exec.
Stack decisions reached
The wedge (why build, not buy Portkey)
Roadmap after core stability and o11y
Order by mutation authority and blast radius (observe then mutate). Shadow-mode every mutation before enforcing.
Harness-fit test matrix (the real application)
Reference facts pinned (so future-me does not re-derive)
Open questions
Candidate sub-issues (Kai files when this graduates)