Build on Bevia

Input / sensors

Turn what something knows into evidence. Send what happened, verbatim, with the time it happened. The engine decides what it means.

The evidence atom

The atom is the conversation turn: who said what, when, where. Anything can be expressed this way — a Garmin run is one turn from a device, a brokerage fill is one turn from the broker, a Zotero annotation is one turn quoting the source, a robot's day is a thread of turns. The engine compiles evidence into moments, episodes and the World; your sensor's only job is honest evidence.

"Here is evidence" is the whole request. It never means "insert this fact into the World": the engine decides what is admitted, formed, related, refused or superseded.

Validate, then capture

const capture = {
  thread_id: "garmin-runs-2026-07-15",          // stable: re-sending upserts, never duplicates
  source_platform: "garmin",
  source_kind: "garmin_activity",
  source_url: "https://connect.garmin.com/modern/activity/123456",
  conversation: [{ speaker: "garmin", text: "6.2 mi in 52:10, avg HR 148.", emitted_at: "2026-07-15T13:58:00Z" }],
};
const dry = await bevia.intake.validate(capture);   // { valid, would_create, skipped, errors } — writes nothing
if (dry.valid) await bevia.intake.submit(capture);  // { written, skipped, unchanged, item_errors }

Build loop: write → validate → fix → capture. The engine rejects what it cannot understand and tells you exactly why; it never forbids what you are building.

The fields

FieldMeaning
thread_idrequired — a stable id for this stream of evidence; thread + turn index is the identity, so re-sending upserts
conversation[].textthe verbatim evidence; empty turns are skipped, not errors
conversation[].speakerwho produced it: user, assistant, a name, a device
conversation[].emitted_atISO-8601 event time — when it happened, not when you sent it; a January note imported in June belongs to January
conversation[].follow_through{ suggestion_id, relation: "intention" | "report" } — links a turn to a tracked suggestion. Linkage on evidence is by declared carrier only; there is no free-form correlation field, by design.
source_platform · source_kind · source_urlhuman origin · machine origin class (pick one, keep it stable) · the deep link users drill into
captured_atfallback time for the whole capture

Limits: 16 MB per request, 500 turns per capture. Responses: 200 with counts, 400 with the exact reason, 401 unpaired, 413 over limits, 503 while a World is being cleared.

The app has one Add button and one switch, "Unnamed writing is mine". For more, name each turn's speaker, or send record with reading: "record".

Where it happened

A capture may carry location — posemesh-first, provider-tagged. Location never sizes or clusters meaning; it says where the moments happened, and the human reads it back as a place they recognize while a robot reads the pose.

await bevia.intake.submit({
  thread_id: "cactus:dom-main-street:coca cola",
  source_platform: "cactus", source_kind: "cactus_search",
  conversation: [{ speaker: "robot", text: "Located Coca-Cola 12oz (SKU 4921) for “coca cola”", emitted_at: at }],
  location: { provider: "posemesh", domain_id: "dom-main-street", label: "Main Street store", pose: { x: 12.4, y: 0, z: -3.1 } },
}, { navmesh: { x: 12.1, z: -3.0, yaw: 1.57 } });   // robot-action data rides the envelope, never the label

Rules a sensor lives by

  • Send everything the owner consented to; never pre-filter for importance. Deciding significance is the engine's job; today's noise is tomorrow's insight.
  • Verbatim, not summaries. The engine wants what was.
  • Event time is sacred. Set emitted_at to when the thing happened.
  • Stable identities. A thread id scheme and a source kind, kept stable, make your sensor idempotent for free.
  • Talk only to the localhost API. Never read or write the engine's data directory, vault-managed folders, or config files.

Read / query →