Engram · Use memory

engram record

On this page

Save a procedure, decision or lesson for later recall. Recording it does not certify that it is correct.

Syntax

engram record --key KEY --body TEXT [OPTIONS]

Options

Use --ote PATH and --db PATH to select the configuration and store explicitly.

Option Meaning / default
--key KEY Required memory key.
--body TEXT Required body.
--kind KIND Default procedure.
--ring RING Target; implementation default M4, despite M2 in old CLI help.
--ring-id ID Explicit mounted target ID; otherwise resolve target ring's mount.
--authority AUTHORITY Source provenance; implementation defaults to agent_observation.
--summary TEXT Compact resident summary; entity/size checks apply.
--glob GLOB, --scope GLOB Repeatable synonymous scope lists, combined.
--anchor PATH Repeatable code anchors for drift tracking.
--supersedes KEY Link replacement to prior key.
--contradicts KEY Link conflicting guidance.
--refines KEY Link refinement.
--seat-token TOKEN Capability token when ENGRAM_RIG_SECRET is active; ENGRAM_SEAT_TOKEN fallback.
--attestation FILE Read armored M0-record signature; needed for attested M0 writes, not a generic outcome signature.

Example

After initializing a synthetic workspace:

engram record --key fixture-retry-rule --kind procedure --ring M2 \
 --body 'Inspect pending synthetic work before retrying the fixture.'
engram recall fixture-retry-rule --session synthetic-session

Choose the ring explicitly: this example shares the rule within the repository/domain's mounted M2 scope, rather than the default individual M4 overlay. Do not record secrets or material whose sharing is unauthorized.

Results

Success reports inserted, memory_id, key, ring, ring_id, prior, scope_globs, anchor_hashes. Repeating identical content may report inserted: false. Missing linked keys are silently left unlinked. --refines inherits 80% of positive excess full-posterior evidence and all negative excess, not independently attested evidence, and retires the old source; it is not a non-retiring annotation. Guarded sources can refuse retirement/link changes, potentially after the new node was inserted: inspect state before retrying.

Errors and side effects

Missing required fields, invalid kind/authority/ring, disallowed kinds/access, invalid token/signature and invalid summaries fail. Body envelope stripping is hygiene, not redaction. Recording writes memory and may invoke configured remote embeddings; authorize that transfer before enabling remote retrieval.

See CLI conventions for shared configuration and exit behavior, or browse all commands.