Files
floop/README.md
T
onibot 550128c9bb 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.
2026-10-13 17:31:16 +02:00

27 lines
2.6 KiB
Markdown

# floop
**Fractal loop.** One algorithm — an LLM translates, a sound engine computes, the answer carries its proof — instantiated at every level of abstraction, including the orchestration level itself. The orchestrator is not a special component: questions too big for one expert recurse into new FLOOP runs, so the engine of FLOOP is FLOOP itself.
FLOOP is ReAct where the "thought" step is replaced by computation and the "observation" is typed before it enters the state. From the outside floop acts as an **LLM** (`messages + tools in → text or tool_call out`): the final goal is to be a drop-in replacement for the LLM of an agent harness. Answering questions is one use case; see [`SCOPE.md`](SCOPE.md) for the intent layer, the tool interface, and the self-learning meta level.
## Documents
| File | Contents |
|---|---|
| [`SCOPE.md`](SCOPE.md) | floop beyond Q&A: drop-in-LLM positioning, the intent layer (answer / tool_call / chat / meta), tool_call + tool_result semantics, progress streaming, the offline self-analysis meta level. DESIGN, no code yet. |
| [`PIPELINE.md`](PIPELINE.md) | Definition of the pipeline: the generic expert pattern, the expert fleet, the orchestrator-as-recursion, the living plan, table laws, guarantees, v1→v2, known risks. |
| [`ALGORITHM.md`](ALGORITHM.md) | How the machine works, in words: the opening call (INIT), the main loop, the generic expert and the fleet, recursion (floop inside floop), backtracking, stopping and answering. |
| [`GAPS.md`](GAPS.md) | Design gap log from the step-by-step replay: what was missing, why it bites, proposed resolutions. GAP-11..14 = the 2026-10-13 scope additions. |
## Status
Design docs (v0.2 — recursion redesign). **v0.1 draft executable since 2026-10-10** (`code/`):
the full loop runs on dspy LLM calls only (INIT/ROUTE/EXPERT/MISSING/ANSWER as dspy modules,
the machine — stack, dependency order, budget, recursion — as fixed code); formal checks,
prover and expert engines are stubs, so every answer is honestly `Unverified`. See `code/README.md`
and RUNLOG "Executable runs". Next: real check layer, `knowledge` vertical with real search,
prover (clingo/Z3).
## Lineage
Logic-LM (arXiv:2305.12295) — lm→solver pattern with self-refinement. ReWOO (arXiv:2305.18323) — plan-on-slots, decoupled execution. LLM-Modulo (arXiv:2402.01817) — LLMs propose, external verifiers decide. LLM+P (arXiv:2304.11477) — lm→PDDL→classical planner. POMDP-Coder (arXiv:2505.02216) — lm writes the model, a solver plans. Rational metareasoning (Russell & Wefald 1991; arXiv:2410.05563) — the value of computation decides what to do next.