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:
+18
-3
@@ -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
|
||||
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:
|
||||
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.
|
||||
|
||||
**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
|
||||
|
||||
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
|
||||
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
|
||||
|
||||
- **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;
|
||||
bounded retries; arrival checks; contradiction detection and retraction; refusing to
|
||||
stop; per-call context composition.
|
||||
|
||||
Reference in New Issue
Block a user