Build on Bevia

Read / query

Ask the World, and read one understanding at a time. The whole World is the owner's only.

Published, not live

Every read serves the publication — the World, Attention, follow-through and objectives as the publisher composed them, with completeness stamps and the publisher's convergence verdict. Nothing is recomputed on a read. No publication yet reads { ok: false, code: "not_published" }, never an empty answer dressed as one.

The reads

const why      = await bevia.world.inspect(matterId); // establishing spans, admitting packet, standing history
const insights = await bevia.attention();            // what the publisher selected as worth noticing
const tracked  = await bevia.followthrough();        // suggestions and their assessments
const goals    = await bevia.objectives();           // a door, not a contract: null on every current engine
const doc      = await bevia.world.document("objectives/goal/<id>");

// owner only (needs control):
const current  = await bevia.world.current();         // the governed CURRENT World — current Matter, relations, references
const snapshot = await bevia.world.snapshot();        // the raw publication: durable_world is history AND current
const index    = await bevia.world.inspect();         // the index of every understanding
const moved    = await bevia.world.diff({ from, to }); // North / East / South / West between two states

Every read carries identifiers you can follow: a matter id resolves through inspect to the spans that established it and the packet that admitted it; a receipt is an exact identity, semantic_moment:<id> or raw_moment:<id>, followed by identity or not at all. A Matter's current_standing is read before anything else — superseded is history. A condition's history is one declaration per declaring record, ordered by the declaration's own clock; the current status is the last. A relation formed from a source's own reference field (a POS return's ref_receipt → returns_against) carries its provenance and an exact, absent or ambiguous target; absent and ambiguous cross as explicitly unresolved, never guessed. Cartography describes; nothing here judges.

History and time

The publisher keeps the chain: every publication names its previous. world.history() lists them; every read that takes a manifest answers from that publication exactly as it was published then. A timeline, a "what did I believe in March" view, a belief-change explorer are all reads over this chain.

const history = await bevia.world.history();
const march   = bevia.world.at(history.publications[7].manifest);
await march.document("attention/insights");

Ask

const answer = await bevia.ask("what changed in my thinking about pricing this month?");
if (answer.degraded) { /* no AI fuel configured: a deterministic grounded readout */ }

ask spends the owner's fuel and is its own capability. The engine invokes the model the owner configured; your program never sees the key. One ask at a time — a busy engine answers 503 ask_busy.

The originals

Reads carry identifiers. The raw moment text behind a territory is reachable only through the evidence capability, so a dashboard can read understandings without the originals.

Events →