docs(SCOPE): intent gate types the response; tool_call is a loop output

Emili's correction: the gate annotates the goal with the expected response type (answer/tool_call/chat/meta/plan_only); it never chooses paths, tools or experts. Deciding the next step is reasoning and goes through the loop (subquestions, ROUTE, experts, prover). tool_schema rows in, tool_call row out with provenance, tool_result as user-side observation, iterate like ReAct with evidenced steps. GAPS.md GAP-11/12 corrected in place.
This commit is contained in:
2026-10-13 23:17:40 +02:00
parent 6733cb660e
commit e8fa401597
2 changed files with 86 additions and 77 deletions
+20 -12
View File
@@ -180,23 +180,31 @@ 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.
**Resolution (design in SCOPE.md) — CORRECTED by Emili (2026-10-13):** the intent gate
TYPES the response expected by the user/harness (`answer | tool_call | chat | meta |
plan_only(future)`), like answer_type on GoalSchema — it does NOT choose the processing
path and does NOT pick tools or experts. Deciding the next step (call a tool, ask an
expert, stop) is reasoning, and all reasoning goes through the loop: subquestions, ROUTE,
experts, prover-gated stopping. A wrong response type degrades as a type mismatch on
output arrival (refusal/replan), never as skipped reasoning.
**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).
**Resolution (SCOPE.md §3) — CORRECTED by Emili (2026-10-13):** tool_call is an OUTPUT of
the loop, not an alternative path to it. Tool list + JSON schemas enter as typed evidence
(`tool_schema` rows); "which tool satisfies this?", "what arguments?", "is the observation
enough?" are ordinary subquestions routed to experts (logic over schemas, analytic/numeric
for argument values, knowledge for world facts) — no LLM shortcut decides a tool directly.
The loop emits a typed tool_call row (tool, args) with provenance over the schema/evidence
rows that justify it; the tool executes outside the LLM (harness-side when floop serves as
the model); its result enters the 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. Then the loop iterates
on the new observation (ReAct with typed, evidenced steps; stop = prover).
**Patch:** SCOPE.md §3; PIPELINE.md §5 (add row types + 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 —