docs: language boundary — English working language, any language outside

ARCHITECTURE.md §3: new subsection. Inbound: input artifact never translated; goal statement English-ized after typing, source_language flagged. Inside: everything English — subquestions, routing, KG, quotes (containment would break if translated). Outbound: English response composed first, then one render pass into source_language. ALGORITHM.md: §1 boundary task wired to typing pass; §8 render step; §9 who-does-what updated. README doc map updated.
This commit is contained in:
2026-10-17 14:17:28 +02:00
parent 6db05fef48
commit bdc5aa0556
3 changed files with 58 additions and 4 deletions
+18 -3
View File
@@ -42,12 +42,19 @@ Then the typing call, which now operates on clean typed state rather than raw te
request arrives with (possibly) a tool list. One LLM call reads the goal statement and 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 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 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 floop-maintenance task), `plan_only` (a plan without execution). This typing annotates
goal — like `answer_type`, it may be tightened later by evidence. It is NOT a path switch: 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 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 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. a mismatch is a refusal-replan, not a silent guess.
**Language at the boundary (ARCHITECTURE.md §3).** The typing pass also declares the
input's **source language**; if it is not English, one bounded LLM task translates the
goal statement into English — the machine's working language — while the original is
kept verbatim on disk and the run is flagged `source_language`. From here on everything
inside is English: subquestions, routing, evidence, the final composed answer. The
caller's language returns only at the last step (§8).
## 2. The main loop ## 2. The main loop
The machine keeps the **stack of open questions**, each declaring its answer type and its The machine keeps the **stack of open questions**, each declaring its answer type and its
@@ -156,10 +163,18 @@ first, the response is composed anyway from what the table holds — explicitly
`Unverified`. The product is the same in both cases: a reply that tells you exactly which `Unverified`. The product is the same in both cases: a reply that tells you exactly which
parts are proven and which are, honestly, a guess. parts are proven and which are, honestly, a guess.
One last boundary task follows: if the run's `source_language` is not English, a bounded
LLM pass renders the composed English response into that language — facts, numbers and
citations carried across traceable to the English rows; quotes stay verbatim in their
source language (ARCHITECTURE.md §3). If it is English, nothing happens. The harness sees
a reply in its own language either way.
## 9. Who does what ## 9. Who does what
- **LLM, always**: reading and typing requests; proposing subquestions; translating - **LLM, always**: reading and typing requests; proposing subquestions; translating
between language and formal formats; the routing judgement; composing responses. between language and formal formats — and between human languages at the two
boundary tasks (inbound English-ization, outbound rendering); the routing
judgement; composing responses.
- **Fixed code, always**: the question stack and dependency ordering; budget partition; - **Fixed code, always**: the question stack and dependency ordering; budget partition;
bounded retries; arrival checks; contradiction detection and retraction; refusing to bounded retries; arrival checks; contradiction detection and retraction; refusing to
stop; per-call context composition. stop; per-call context composition.
+39
View File
@@ -124,6 +124,45 @@ stored original — and from there per-call context composition (above) governs
Intake is logged like everything else, and it is the same law at the boundary as inside: Intake is logged like everything else, and it is the same law at the boundary as inside:
the LLM sees a purpose-built context; the machine holds the whole. the LLM sees a purpose-built context; the machine holds the whole.
### Language at the boundary — English inside, any language outside
floop accepts any language in, and must answer in the caller's language — but
inside, the machine works in **one working language: English**. One loop, one
vocabulary for reasoning: decomposition, routing, extraction, proofs, traces,
and the knowledge graph all live in English; the fractal stays uniform instead of
forking per language.
- **Inbound (right after intake).** The stored original stays verbatim, in its
own language — the input artifact is never translated. The typing call already
detects the input language; a bounded LLM task translates the **goal statement**
(and, in the draft, any material the loop will actually read) into English,
flagged with `source_language` on the run. English text passes through
unchanged. If the goal's translation is ambiguous or partial, the original is
kept alongside and the loop works bilingually on that segment — honesty first,
never a silent guess.
- **Inside: English everywhere.** Every internal representation is English:
subquestions, routing judgements, formalizations, evidence-row summaries, the
knowledge graph itself (nodes, edges, quotes come from English sources), the
run log, and the final synthesized English response. The knowledge vertical's
sources are English (Wikipedia `en`); quotes are verbatim English — they are
never translated, because translation would break the containment check and
provenance.
- **Outbound (last step, before emission).** The machine's English response is
composed first, from evidence and traces (ALGORITHM.md §8); **then** one LLM
task renders it into `source_language` if it is not English. Evidence is
carried across: every fact and number in the translation is traceable to the
English rows; the translated quotes stay in English (or are re-gathered from
the source language's Wikipedia if a same-language quote is available — a
per-source option, default off). Tool calls and schemas are emitted in the
harness's language-neutral form (JSON) — nothing to translate there.
- **What is gained.** Reasoning quality in one language only; the meta-level
analysis and prompt optimization (META.md) compare runs that reasoned in the
same vocabulary; the KG stays one graph (no per-language forks), and every
translation is a logged, auditable boundary event with its own provenance.
## 4. The evidence table — the machine's working memory ## 4. The evidence table — the machine's working memory
One table per run, append-only, visible to every component. Each row: an id, a type, a One table per run, append-only, visible to every component. Each row: an id, a type, a
+1 -1
View File
@@ -19,7 +19,7 @@ managing itself are others.
| File | Contents | | File | Contents |
|---|---| |---|---|
| [`ARCHITECTURE.md`](ARCHITECTURE.md) | The system and its laws: division of labour, LLM calls as function calls, context as a per-call budget, the evidence table, the interface contract, tools, the fleet, guarantees, risks, v1→v2. | | [`ARCHITECTURE.md`](ARCHITECTURE.md) | The system and its laws: division of labour, LLM calls as function calls, context as a per-call budget, intake and the language boundary (English inside, any language outside), the evidence table, the interface contract, tools, the fleet, guarantees, risks, v1→v2. |
| [`ALGORITHM.md`](ALGORITHM.md) | The machine in words: the general loop for any goal, tool action as loop output, the generic expert, recursion, stopping, backtracking, per-call context composition. | | [`ALGORITHM.md`](ALGORITHM.md) | The machine in words: the general loop for any goal, tool action as loop output, the generic expert, recursion, stopping, backtracking, per-call context composition. |
| [`KNOWLEDGE.md`](KNOWLEDGE.md) | The knowledge substrate: verified facts on disk, the knowledge graph, extraction and its checks. | | [`KNOWLEDGE.md`](KNOWLEDGE.md) | The knowledge substrate: verified facts on disk, the knowledge graph, extraction and its checks. |
| [`META.md`](META.md) | The two meta levels: in-run self-awareness; offline self-analysis and learning. | | [`META.md`](META.md) | The two meta levels: in-run self-awareness; offline self-analysis and learning. |