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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user