docs: contradiction taxonomy for the KG; INTAKE component
KNOWLEDGE.md/DESIGN.md: new data contradicting or refining old data is normal operation, classified deterministically - temporal change (qualifiers, both coexist), supersession (subsumption test, supersedes link), real contradiction (conflict row, surfaced, never auto-resolved), retraction (TMS flag). Untyped qualifiers default to exposed conflict. Schema gains ref_date/supersedes/preferred/retraction_reason. ARCHITECTURE.md/ALGORITHM.md: INTAKE - the boundary before the loop; floop may accept 1M-token inputs over a 64k-window model: original stored whole on disk, deterministic format detection, structural splitting for known formats, staged LLM compression for unknown, goal separated from material early. Reception typing now operates on clean typed state.
This commit is contained in:
+36
-20
@@ -6,28 +6,44 @@ stopping, failure, and how every LLM call gets its context composed.
|
||||
## 0. The whole machine in one paragraph
|
||||
|
||||
A goal arrives (a question to answer, a tool to call, a chat to hold, a maintenance task
|
||||
to run). floop never "thinks a goal through" in one pass: the goal reduces to open
|
||||
questions until one is small enough for a single expert call; answers flow back up and are
|
||||
assembled into the response. Three kinds of parts do the work. **The LLMs** propose: read
|
||||
the request, type the response expected, decompose the goal into subquestions, translate
|
||||
between language and formal formats, compose the final prose. They never decide, never
|
||||
compute, never assert facts. **The engines** — solvers, provers, retrieval, the knowledge
|
||||
graph — do the deciding: deterministic, typed inputs in, typed payloads and traces out.
|
||||
**The machine** — plain fixed code — owns the state: the open-question stack, the
|
||||
dependency order, the budget, the retries, the stopping rule, and the per-call context
|
||||
composition. One law runs through everything: a claim enters the state only as a typed row
|
||||
with provenance — never as free-form model prose.
|
||||
to run) — possibly wrapped in far more material than the model's window holds, and of
|
||||
unknown format. The **INTAKE** stage resolves the boundary first: the original is stored
|
||||
whole on disk, known formats are split structurally by fixed code, unknown formats are
|
||||
compressed in stages (chunked summarization within the window, a cheaper large-window
|
||||
model fronting the first pass if configured), and the request itself — the goal — is
|
||||
separated early from the material it refers to. Only then the loop starts. floop never
|
||||
"thinks a goal through" in one pass: the goal reduces to open questions until one is
|
||||
small enough for a single expert call; answers flow back up and are assembled into the
|
||||
response. Three kinds of parts do the work. **The LLMs** propose: read the request, type
|
||||
the response expected, decompose the goal into subquestions, translate between language
|
||||
and formal formats, compose the final prose. They never decide, never compute, never
|
||||
assert facts. **The engines** — solvers, provers, retrieval, the knowledge graph — do the
|
||||
deciding: deterministic, typed inputs in, typed payloads and traces out. **The machine** —
|
||||
plain fixed code — owns the state: the open-question stack, the dependency order, the
|
||||
budget, the retries, the stopping rule, and the per-call context composition. One law
|
||||
runs through everything: a claim enters the state only as a typed row with provenance —
|
||||
never as free-form model prose.
|
||||
|
||||
## 1. RECEPTION — typing the goal
|
||||
## 1. RECEPTION — intake, then typing the goal
|
||||
|
||||
A request arrives with (possibly) a tool list. One LLM call reads it and declares the
|
||||
**response type expected by the requester**: `answer` (a question to answer), `tool_call`
|
||||
(an action to take), `chat` (conversation to hold), `meta` (a floop-maintenance task),
|
||||
`plan_only` (a plan without execution). This typing annotates the goal — like
|
||||
`answer_type`, it may be tightened later by evidence. It is NOT a path switch: whatever
|
||||
the type, the goal is served by the same loop below. The typing costs one cheap call and
|
||||
buys a contract: the output is checked against the declared type on arrival, and a
|
||||
mismatch is a refusal-replan, not a silent guess.
|
||||
INTAKE (ARCHITECTURE.md §3) runs first, always: whatever arrives — a short question, or a
|
||||
million-token document with the request buried at the end — is stored verbatim as a run
|
||||
artifact; known formats are split structurally (JSON walked, markdown sectioned, plain
|
||||
text sentence-split), unknown formats are compressed in stages within the model's window
|
||||
(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.
|
||||
|
||||
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
|
||||
declares the **response type expected by the requester**: `answer` (a question to
|
||||
answer), `tool_call` (an action to take), `chat` (conversation to hold), `meta` (a
|
||||
floop-maintenance task), `plan_only` (a plan without execution). This typing annotates the
|
||||
goal — like `answer_type`, it may be tightened later by evidence. It is NOT a path switch:
|
||||
whatever the type, the goal is served by the same loop below. The typing costs one cheap
|
||||
call and buys a contract: the output is checked against the declared type on arrival, and
|
||||
a mismatch is a refusal-replan, not a silent guess.
|
||||
|
||||
## 2. The main loop
|
||||
|
||||
|
||||
Reference in New Issue
Block a user