Repository navigation
Manual
The built-in manual: docs/MANUAL.md compiled into the kernel, indexed one entry per section, searched with /man, and handed to the model by the recall tool and the memory slot when the user asks how to do something.
The kernel SHALL include docs/MANUAL.md at build time and index every ## section as one entry [manual: TITLE] body; the text before the first section SHALL not be indexed.
Source: kernel/src/agentd.rs MAN, shutdown, manual
-
WHEN docs/MANUAL.md has 26
##sections -
THEN
/manlists 26 section titles
At boot and on an index rebuild the kernel SHALL drop indexed manual entries whose text is no longer in its manual and queue only the sections not yet in the index, so a changed section is embedded again and the others are kept. Source: kernel/src/agentd.rs manual, queue_manual, rebuild, init
- WHEN one section of the manual changes and the kernel boots on a disk indexed by the old kernel
- THEN the old entry of that section is dropped and only that section is queued
With MANUAL_VECTORS=1 the kernel SHALL carry the sections' and the 54 hub probes' Q8_0 vectors and use them without embedder work when their key matches the manual, the probes, the embedder file, the engine build, the chunker version and the index dim; on a mismatch, or with MANUAL_VECTORS=0, the sections SHALL be embedded in idle time and the probes at the first search. Source: kernel/src/agentd.rs queue_manual, baked, man_key, ensure_probes; Makefile target model, target kernel
-
WHEN the index dim was changed with
/index dim 256 - THEN the baked vectors are not used and the sections are embedded at the prompt
/man without an argument SHALL print manual sections (N): with every section title, then /man TOPIC searches them, for example /man undo.
Source: kernel/src/agentd.rs man
-
WHEN the user types
/man - THEN the section titles are printed comma separated
/man TOPIC SHALL print at most the two best manual sections for TOPIC, each whole with its score and without its Asked as: line, and [man] nothing found for '<TOPIC>' when none matches; without an embedder it SHALL print [man] no embedder: the manual cannot be searched.
Source: kernel/src/agentd.rs man, render
-
WHEN the user types
/man ibernare - THEN the Hibernation section is among the printed sections
/man check SHALL embed every section now and print how many rows are byte-identical to the baked vectors; /man dump SHALL print the header and every row as MV <hex> lines and a final MV end <fnv> line for tools/manvec.py.
Source: kernel/src/agentd.rs baked, man_vectors, man
-
WHEN the kernel was built with MANUAL_VECTORS=1 and the user types
/man check -
THEN the line reads
[man] vectors in the kernel: 26/26 rows byte-identical to a fresh embedding
A message SHALL count as a how-to question when it contains one of: how do i, how can i, how to, how do you, how should i, how does, what command, which command, is there a command, quale comando, che comando, un comando per, in che modo, come si fa, come si usa, come posso; or the word come followed by a word of 3 or more letters ending in o other than sono.
Source: kernel/src/agentd.rs howto
-
WHEN the user writes
come creo un file - THEN the message is a how-to question
In the middle of a conversation, a how-to message SHALL get the best manual section in front of it under [from the ringzero manual, kept by the kernel; use it to answer] when it scores 0.55 or more and fits the slot token budget; with !set slot 0 it SHALL get none.
Source: kernel/src/agentd.rs RECALL_MIN, MAN_HEAD, recall, man_slot; kernel/src/agent.rs ask
-
WHEN the slot is 0 and the user asks
how do I undo - THEN no manual line is added to the message
The recall tool SHALL put the best manual section before its top 3 hits when the section goes first (a how-to question in the user's message or the query, or a score 0.06 over the best other hit) and its raw cosine is 0.55 or more. Source: kernel/src/agentd.rs howto, recall, ranked
-
WHEN the model calls recall with query
how to hibernate -
THEN the result includes a line starting with
ringzero manual, Hibernation:
Source of this page: openspec/specs/manual/spec.md
Generated from openspec/specs at 0221909 by tools/wiki_gen.py. Do not edit here: change the spec and regenerate.