docs: SCOPE.md - floop beyond Q&A (GAP-11..14)
Reposition floop as a drop-in harness LLM (intent layer, tool_call flow and tool_result epistemics, progress streaming for CLI, offline self-analysis meta level feeding dspy prompt improvement and the v2 router). Design only, no code - per Emili's request. GAP-11..14 added to GAPS.md.
This commit is contained in:
@@ -172,6 +172,57 @@ too, so a child whose answer already exists in the visible table terminates with
|
||||
confirm calls. The stop-check IS the cache/dedup of the architecture.
|
||||
**Patch:** PIPELINE.md §3, §4; ALGORITHM.md §2, §4.
|
||||
|
||||
### GAP-11 — floop's scope is "answer questions"; the drop-in-LLM contract has no intent layer
|
||||
Emili (2026-10-13): floop's final goal is to **replace the LLM of a Hermes agent (or any
|
||||
harness)** — floop acts as an LLM from the outside. A harness request is not always a
|
||||
question: it can be a tool execution request, chat, or self-management. The current design
|
||||
only handles `answer`-shaped requests.
|
||||
**Bites:** positioned as a harness model, floop would decompose "what's the weather in
|
||||
Barcelona?" (needing the harness's weather tool) into retrieval subquestions instead of
|
||||
emitting a tool call — unusable as an agent LLM.
|
||||
**Resolution (design in SCOPE.md):** a top-level intent gate (one LLM judgement + fixed-code
|
||||
validation; the LLM proposes, code disposes — same philosophy as ROUTE): `answer | tool_call |
|
||||
chat | meta | plan_only(future)`. Misroute matrix declared; ambiguous → user (expert of last
|
||||
resort). Q&A becomes one use case of the interface contract.
|
||||
**Patch:** SCOPE.md §1-§2 (new doc); README.md definition; PIPELINE.md §1 note.
|
||||
|
||||
### GAP-12 — tool_call flow and `tool_result` semantics
|
||||
Follows GAP-11: nothing defines how a harness's tool list flows through floop, nor what a
|
||||
tool result is epistemically.
|
||||
**Resolution (SCOPE.md §3):** harness sends OpenAI-style tools with the request; an LLM call
|
||||
proposes (tool, arguments); **code validates** against the tool's JSON schema + tool list
|
||||
membership; the tool executes outside the LLM (or the tool_call object is returned to the
|
||||
harness — same contract as any LLM). The result enters the evidence table as a **`tool_result`
|
||||
row: an observation with provenance** (tool name, args, ts, payload) — epistemically like
|
||||
UserReply rows: user-side facts about what happened, never "verified" claims, no containment
|
||||
check (that gate is for source-document quotes), never silently retracted; conflicts → user.
|
||||
**Patch:** SCOPE.md §3; PIPELINE.md §5 (add row type + provenance law note).
|
||||
|
||||
### GAP-13 — serving is invisible: no per-call progress stream, no run log
|
||||
Emili (2026-10-13): running from CLI shows only the final summary; LLM calls can be long —
|
||||
he wants (a) a line before each LLM call naming it, (b) the raw LLM output as it lands,
|
||||
(c) the same for engines, (d) log-to-file always (flushed, `tail -f`-able) + screen output
|
||||
only under a flag.
|
||||
**Resolution (design in SCOPE.md §4):** one event format, two sinks: events `call|output|
|
||||
state|final` always land in `runs/<ts>-<slug>/run.log` with explicit flush; a `--verbose`
|
||||
flag tees the same stream to screen (flushed). Later, the same events drive the
|
||||
OpenAI-compatible endpoint's streaming mode.
|
||||
**Patch:** SCOPE.md §4; code/README.md next-steps; runner design only — no code yet.
|
||||
|
||||
### GAP-14 — no meta level: floop does not learn from its own behaviour
|
||||
Emili (2026-10-13): after executing, floop should analyse its own answer — **offline, as a
|
||||
scheduled task, after having already replied** — to (a) grow the knowledge store (fill KG
|
||||
gaps observed in runs) and (b) learn from itself; and later, fine-tune the called LLMs and/or
|
||||
let dspy optimizers (MIPROv2-class) improve the Signature-docstring prompts from our own
|
||||
usage data.
|
||||
**Resolution (design in SCOPE.md §5):** a `SelfAnalysis` dspy signature consumes a completed
|
||||
run (report + stack + evidence + failures) and emits a structured critique, appended to the
|
||||
run dir and to a lessons bank (`runs/lessons.md`). Dspy optimizer trainsets come from
|
||||
critiques; the metric = post-hoc evaluator agreement (improvements adopted when measured,
|
||||
never silently shipped). The v2 router connection: PIPELINE §7 says v1's logs are v2's
|
||||
training data — the meta-level is the machinery that produces them.
|
||||
**Patch:** SCOPE.md §5; PIPELINE.md §7 pointer.
|
||||
|
||||
---
|
||||
|
||||
## Notes from the replay (not gaps — lessons)
|
||||
|
||||
Reference in New Issue
Block a user