docs: INTAKE harness templates (Hermes first) + session caching design

Known harnesses get a deterministic digest template - Hermes Agent first since it is what runs today. Unrecognized shapes fall back to the generic intake path. Sessions cache digested material by content hash and process only the delta per call; pending, designed-in now.
This commit is contained in:
2026-10-16 15:55:51 +02:00
parent 36a74770e6
commit b627c34967
2 changed files with 22 additions and 1 deletions
+4 -1
View File
@@ -33,7 +33,10 @@ text sentence-split), unknown formats are compressed in stages within the model'
(chunked summarization; a cheaper large-window model may front the first pass); and the
goal is separated from the material early, by a bounded LLM task when the boundary is not
structurally obvious. The material becomes typed rows pointing into the stored original;
the goal drives the loop.
the goal drives the loop. Known callers are cheaper: harness templates (Hermes Agent
first) type the digest directly when the incoming shape matches, and sessions cache
digested material by content hash so each call processes only its delta
(ARCHITECTURE.md §3).
Then the typing call, which now operates on clean typed state rather than raw text: a
request arrives with (possibly) a tool list. One LLM call reads the goal statement and
+18
View File
@@ -100,6 +100,24 @@ at the end. The **INTAKE** component resolves this before anything else runs:
request itself (the question at the end of the document, the instruction in the
message) from the material it refers to: the goal drives the loop, the material
becomes typed evidence rows.
6. **Harness templates for known callers.** Known harnesses have known message shapes:
a Hermes Agent run, for instance, carries its system prompt, tool list and
conversation history in a recognizable layout. INTAKE ships one template per known
harness (**Hermes Agent first** — it is what runs today): when the incoming shape
matches the template, the digest is typed directly by it — no format probing, no
LLM, the mapping caller-shape→rows is already known. Template matching is
deterministic pattern detection; unrecognized shapes fall back to the generic path
above. New templates are added the same way as trusted domains: as config, when a
new harness enters the fleet.
**Sessions and intake caching (pending; designed-in now).** As a drop-in LLM floop is
called in conversations: the same session re-sends, call after call, material that was
already digested once. INTAKE must not re-compress the world each time. The design:
stored originals are cached keyed by content checksum (the artifact's hash IS the key);
each session remembers its already-digested material and rows; a new call processes only
the **delta** — what is new since the last call; cache hits are logged as such. The
cache is machine state like any other: on disk, provenance-carrying, auditable. Not
built yet — noted now so the intake contract admits it from day one.
Intake's output is typed machine state — the goal statement plus rows pointing into the
stored original — and from there per-call context composition (above) governs every call.