Build on Bevia

Proposals & actions

Anything that wants to push meaning or action toward Bevia uses one door, never direct mutation. A proposal establishes nothing. The owner decides.

Propose

const p = await bevia.propose({
  kind: "action",                                  // insight · relationship · objective · action · note
  subject: { text: "the AAPL position", matter_ids: [thesisId] },
  proposal: { text: "Reduce the position by 20%." },
  basis: { evidence_refs: [insightId], reason: "Two contradicting theses in this week's publication." },
  expires_at: "2026-09-09T00:00:00Z",
});

A proposal is a durable, inert row: who proposed what about which subject, citing what. It is never read as World truth — storage never upgrades standing. proposals.list() shows yours; proposals.withdraw(id) retracts one still open.

The owner decides

Only the owner resolves a proposal — accepted or declined — from the app. A decision is never silently overwritten. Watch for it:

const decided = await bevia.proposals.awaitResolution(p.proposal_id);   // closes its stream when the answer arrives
// or: bevia.events.on("proposal.resolved", …)

Governed actions

An accepted action proposal is an authorization: the proposal.resolved event carries authorized: true, and the proposer carries the action out itself. Bevia never executes anything in the outside world — not an email, not a trade, not a robot command. Bevia is not the customer's permission system; it reveals what was proposed and what the owner decided.

if (decided.status === "accepted") {
  const order = await broker.sell(0.2);                       // you act; Bevia never does
  await bevia.proposals.report(p.proposal_id, {
    outcome: "done", summary: `Sold 20% at ${order.price}, order ${order.id}.`, source_url: order.url,
  });
}

Receipts become evidence

The receipt lands twice on purpose: on the ledger (the linkage decision → authorization → outcome, derivable from the proposal alone) and as one evidence turn on the thread bevia-proposal:<id>, attributed to the program that acted. Later observations about the outcome — a fill, a P&L line, a follow-up — arrive through ordinary intake on the same thread, and the World sees the whole arc.

What Bevia owns

Was this proposed? Who approved it? What authority existed? What actually happened. The action belongs outside. That split is what lets a trader tool, an email sender, a task creator or a robot controller be somebody else's product on top of one governed record.

Export →