Skip to content

memory governance

Sibyl's memory loop is governed. Raw memories and reflection candidates are not written straight into the shared graph; they move through review, promotion, and audit. This page covers the governance command family:

CommandDescription
sibyl memory-auditInspect memory audit receipts
sibyl memory-inspectInspect a memory source and its audit trail
sibyl memory-promotePreview or auto-review candidate promotion
sibyl memory-sharePreview memory sharing across scopes
sibyl memory-spaceMemory-space inspection and preview
sibyl memory-reviewReflection review queue automation

For the dream-cycle automation that drives much of this, see memory-review.

Memory Scopes

Raw memories and artifacts carry a scope that controls who can recall them:

ScopeVisibility
privateThe capturing principal only (default)
projectMembers working in a project
teamA named team
sharedOrg-wide shared memory

--scope-key pins a scope to a specific project, team, or shared bucket.


memory-audit

Inspect memory audit receipts. Every governed memory action (capture, promotion, share preview, denial) writes an audit event. memory-audit reads that trail.

Synopsis

bash
sibyl memory-audit [options]

Options

OptionShortDefaultDescription
--action-a(all)Filter by audit action
--actor(all)Filter by actor user ID
--source-id(all)Filter by source ID
--derived-id(all)Filter by derived ID
--scope(all)Filter by memory scope
--project-p(all)Filter by project ID
--policy(all)Filter: allowed or denied
--limit-l50Maximum events (1-200)
--json-jfalseOutput as JSON

Examples

bash
# Recent governed memory events
sibyl memory-audit

# Only denied actions
sibyl memory-audit --policy denied

# Promotions by a specific actor
sibyl memory-audit --action promote --actor user_abc123 --json

memory-inspect

Inspect a memory source and its audit trail. Given a raw memory source ID, this shows the source record together with every audit event that touched it.

Synopsis

bash
sibyl memory-inspect <source_id> [options]

Arguments

ArgumentRequiredDescription
source_idYesRaw memory source ID

Options

OptionShortDescription
--json-jOutput as JSON

Example

bash
sibyl memory-inspect mem_abc123def456

memory-promote

Preview or auto-review reflection candidate promotion. A reflection candidate is a typed memory extracted by reflect and routed to the review queue. Promotion moves a candidate into the shared graph.

Synopsis

bash
sibyl memory-promote <candidate_id> [options]

Arguments

ArgumentRequiredDescription
candidate_idYesRaw reflection candidate ID

Options

OptionShortDescription
--previewPreview without promoting
--autoAuto-review and promote when safe
--dry-runEvaluate auto-review without applying
--confidence-thresholdOverride the auto-review confidence threshold (0.0-1.0)
--scopeTarget memory scope
--scope-keyTarget scope key
--domain-dDomain/category
--project-pProject ID
--all-projectsDo not auto-scope to the linked project
--related-toComma-separated graph IDs to relate after promotion
--taskComma-separated task IDs to relate after promotion
--json-jOutput as JSON

Promotion Modes

  • --preview: show what promotion would produce; write nothing.
  • --dry-run: run the auto-review scoring and report the decision without applying it.
  • --auto: auto-review the candidate and promote it when it clears the confidence threshold.

Examples

bash
# Preview a candidate before promoting
sibyl memory-promote cand_abc123 --preview

# Dry-run the auto-review decision
sibyl memory-promote cand_abc123 --dry-run

# Auto-promote into a project scope when safe
sibyl memory-promote cand_abc123 --auto \
  --scope project --scope-key proj_abc123 \
  --confidence-threshold 0.8

memory-share

Preview memory sharing without enabling share writes. memory-share reports what sharing one or more raw memories into another scope would entail. It is preview-only: it never enables a share.

Synopsis

bash
sibyl memory-share <source_ids>... [options]

Arguments

ArgumentRequiredDescription
source_idsYesRaw memory IDs to share-preview

Options

OptionShortDescription
--previewPreview without sharing
--target-scopeIntended target scope
--target-keyTarget scope key
--recipient-orgFuture recipient organization ID
--project-pProject ID
--all-projectsDo not auto-scope to the linked project
--json-jOutput as JSON

Example

bash
sibyl memory-share mem_abc123 mem_def456 \
  --target-scope shared --preview

memory-space

Memory-space inspection and preview commands. A memory space groups raw memory under an access boundary an agent or API key can be scoped to.

memory-space preview-agent

Preview what an agent could recall from selected memory spaces. Use this to confirm an agent's reach before granting it.

Synopsis

bash
sibyl memory-space preview-agent <agent_id> --space <space_id> [options]

Arguments

ArgumentRequiredDescription
agent_idYesAgent principal ID

Options

OptionShortRequiredDescription
--spaceYesPrimary memory space ID
--also-spaceNoComma-separated additional memory space IDs
--limit-lNoMaximum sources (1-200, default 50)
--json-jNoOutput as JSON

Example

bash
sibyl memory-space preview-agent agent_abc123 \
  --space space_main \
  --also-space space_shared,space_team \
  --limit 100

memory-review

Memory review queue automation commands. This is the reflection dream-cycle: the automation that drains pending candidates, runs the org-scoped nightly maintenance job, and records decision receipts.

SubcommandDescription
memory-review drainDrain pending reflection candidates through automatic review
memory-review dreamQueue the automatic reflection dream-cycle job
memory-review statusShow dream-cycle runs and automatic decision receipts

memory-review drain

Drain pending reflection candidates through automatic review. By default this previews the drain; --apply commits safe promotions.

Synopsis

bash
sibyl memory-review drain [options]

Options

OptionShortDescription
--applyApply safe promotions instead of only previewing
--limitCandidates to process (1-200, default 50)
--confidence-thresholdOverride the auto-review confidence threshold (0.0-1.0)
--scopeTarget memory scope
--scope-keyTarget scope key
--domain-dDomain/category
--project-pProject ID
--all-projectsDo not auto-scope to the linked project
--related-toComma-separated graph IDs to relate after promotion
--taskComma-separated task IDs to relate after promotion
--archive-exceptionsArchive terminal duplicate/stale exceptions when applying
--archive-reasonsComma-separated exception reasons eligible for archive
--json-jOutput as JSON

Examples

bash
# Preview the drain
sibyl memory-review drain

# Apply safe promotions and archive stale exceptions
sibyl memory-review drain --apply --archive-exceptions

memory-review dream

Queue the automatic reflection dream-cycle maintenance job. The dream cycle is the org-scoped nightly pass that reflects raw sources, drains candidates, and records lifecycle findings. By default it queues a dry run; --apply queues a run that commits safe promotions.

Synopsis

bash
sibyl memory-review dream [options]

Options

OptionDescription
--applyApply safe automatic promotions instead of a dry run
--source-limitRaw sources to process (0-100, default 20)
--candidate-limitPending reflection candidates (0-200, default 50)
--archive-exceptionsArchive terminal duplicate/stale exceptions when applying (--keep-exceptions to disable, default on)
--json / -jOutput as JSON

Examples

bash
# Queue a dry-run dream cycle
sibyl memory-review dream

# Queue an applying run with wider source coverage
sibyl memory-review dream --apply --source-limit 50

memory-review status

Show reflection dream-cycle runs and automatic decision receipts.

Synopsis

bash
sibyl memory-review status [options]

Options

OptionShortDefaultDescription
--limit-l10Maximum runs/events (1-50)
--json-jfalseOutput as JSON

Example

bash
sibyl memory-review status --limit 20

Released under the Apache-2.0 License.