From 7175543e00caa9ce35487fa7f8b1b479c1ba00a2 Mon Sep 17 00:00:00 2001 From: salmonik Date: Sun, 15 Nov 2026 02:54:21 +0100 Subject: M0: streaming provider, SSE decoder, mock provider, i686 build gate --- CONTEXT.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 CONTEXT.md (limited to 'CONTEXT.md') diff --git a/CONTEXT.md b/CONTEXT.md new file mode 100644 index 0000000..e48cb1a --- /dev/null +++ b/CONTEXT.md @@ -0,0 +1,30 @@ +# Context + +## Language + +**Provider** — a service that serves models over HTTP, with its own credential and +request/response shape. v1 supports exactly one: **OpenCode Go** (called +`opencode-go` in OpenCode's vocabulary), an OpenAI-compatible gateway. + +**Model** — a model id served by a provider, e.g. `deepseek-v4.1-flash`. A model +is not a provider, and not a config profile. The same model may be reachable +through more than one wire protocol. + +**Session** — one conversation, identified by an id that is stable for the life of +that conversation and survives the process exiting. Continuing a session reuses +its id; starting a new conversation gets a new one. A session is not a run, not a +process, and not a file. + +**Turn** — one user message plus every step the agent takes until the model +answers without tool calls. A turn is the unit of interruption: aborting a turn +leaves the session and its history intact. + +**Step** — one request/response cycle with the model within a turn. A turn is one +or more steps. + +**Tool call** — the model asking the harness to run one tool with arguments. A +tool call that fails, is denied, or produces no output is still a completed tool +call; its outcome is returned to the model as a result, not raised as an error. + +**Approval** — the human's permission for a tool call to run. An approval is +scoped to a session, not to a turn: once granted, it holds until the session ends. -- cgit v1.2.3