Skip to main content

Module delivery

Module delivery 

Source
Expand description

Delivery of a place’s knowledge into an agent’s context (SPEC-ENGINE §3.5): which folded nodes a host session may see, in which bucket, and a deterministic rendering (#498) — the same replica and query give the same bytes, whatever the clock, the scores or the trust revision say.

Modules§

knowledge_state
Knowledge states (Cloud v5 CHECKLIST 2.2.1; C0 2.0 enums/knowledge-states.json, vectors/knowledge_state.vectors.json): verified | provisional | outdated | conflicting | rejected, derived from the folded replica on every read, never stored. Cloud derives the same state from its projection, so the web and the agent see one answer.

Structs§

Item
One deliverable node.

Enums§

Bucket
Bucket a delivered node is shown in (§3.5.2), in delivery order. The last two hold knowledge that is not current truth (v5 2.2.1): it is delivered after everything else and labelled, never as a plain item.

Constants§

CITE_HINT
How an agent cites a delivered item (once per section, ~15 tokens).
MAX_SECTION_TOKENS
Knowledge section budget per call (SPEC-ENGINE §3.5.1: hard max).

Functions§

bucket_of
Bucket of a node for a session of the owning workspace, from its provenance and the trust bucket (absent until the trust job publishes one).
for_project
The vault section a recall in project_root delivers (§3.5.1): the bound vault’s replica, deterministic and within budget. None when the checkout is not bound or has no replica yet (nothing is created here), and for a folder the person unlinked (rc4-6, bd 39936).
items
The deliverable items of graph for query (all when empty), in the order of §3.5.3: bucket → node type → relevance tier → node id.
items_in
items with the knowledge states of states (e.g. an index that also resolves fact links from the save history).
render
Render items for the agent within budget_tokens (an item that does not fit is skipped whole). Header vault @<ns>/<name> · <d>, d a digest of the delivered (node id, bucket) pairs; other members’ text is fenced as data.