Skip to main content

Module poet_record_api

Module poet_record_api 

Source
Expand description

Bounded persistent COP/project record store for standalone POET surfaces.

The loopback daemon owns a family-keyed JSON ledger under the configured storage path. Agreement, rights, and later project views share this contract instead of each inventing a transport.

Structs§

CopRecord
RecordDeleteRequest
RecordQueryRequest
RecordUpsertRequest

Constants§

FAMILIES
RECORD_REQUEST_LIMIT_BYTES

Functions§

authorize_agent_run
Enforce an optional persisted agent profile at the daemon boundary. Unprofiled agents remain local-inference-only; once a profile exists its owner, model, grounding scope and token ceiling become mandatory.
configure
Point the record store at path; called once at server spawn. Until configured, handlers return store-unavailable.
delete_handler
POST /records/delete — remove a record by id.
query_handler
POST /records/query — filter records by family/kind/fields.
try_upsert
Best-effort COP upsert used by native invoke seams (Pulse, etc.).
upsert_handler
POST /records/upsert — insert or replace a record after family-scoped validation.