meerkat-recall. The 0.1 native archives also
include an elephant symlink to the same executable for existing installations.
From a source checkout, use
./scripts/repo-cargo run -p meerkat-recall-bin -- <command>. Run
meerkat-recall --help or meerkat-recall <command> --help for the installed version’s
command syntax.
Commands
See deployment for environment settings and
quickstart for a credential-free demo or persistent local stack.
The distributed release includes Meerkat extraction by default. Its
demo-wiki command needs a configured model provider before it can plan and
write articles. See binary demo prerequisites.
The separate --no-default-features source build exposes evidence and context
projections without generated articles. There is no runtime feature toggle
that converts the released binary into that credential-free build.
meerkat-recall --version reports the package version. Use the bundled
provenance.json and executable checksum to identify the exact artifact;
neither --help nor --version makes model calls.
The 0.1 compatibility contract retains .elephant/elephant_config.toml, all
ELEPHANT_* settings, database and snapshot identities, and HTTP/MCP wire
names. The public name change does not move data or add alternate configuration
precedence. Internal Rust crates retain their existing names.
Target a running server
Thestatus and online snapshot commands accept these global options:
An explicit option takes precedence over the corresponding environment
variable. A wildcard bind host (
0.0.0.0 or ::) is translated to a loopback
address when constructing a default client URL. These options do not change
where serve listens or where migrate writes.
health, runtime and readiness, each with
http_status, body and a bounded error category. Plain status reports diagnostics;
use --require-ready to require authenticated role readiness:
--space selects the authorized named space. Each of the three concurrent
requests has a ten-second timeout and a bounded response. Exit 0 means the
readiness endpoint returned HTTP 200 with ready:true; 3 means not ready,
4 means unavailable, malformed or inconsistent, and 5 means authorization was
refused. Exit 1 is another operational error and 2 is argument misuse.
Diagnostic JSON remains available on readiness failure. Role readiness does not
establish completion or searchability of a specific source revision.
Apply schema migrations
--extension-dir <directory> (short form -e) additionally applies .surql
files from a local directory. It is a database schema operation, separate from
running queued document processing.
Export, verify and restore named backups
read:system; restore requires global write:system. Export pauses admission,
drains work and refuses Running work rather than manufacturing a consistent
receipt. It creates a new immutable directory containing manifest.json and
data.snapshot. Retention defaults to seven days and is capped at thirty days.
Restore replaces the store under a durable recovery barrier. Keep the original
independent erasure journal outside replaceable data and backup trees; missing,
foreign or interrupted recovery keeps readiness closed. import remains a
compatibility alias for restore. See snapshot durability.
Managed embedded storage with a persistent destination synchronizes acknowledged
mutations to its WAL. Shutdown snapshots are separate from that commit boundary;
explicitly ephemeral library/test stores remain volatile. See
embedded durability.
Migrate a snapshot to SurrealDB
data-migrate retains a bounded, one-time copy of supported legacy elephant-db
JSON snapshots into a completely fresh SurrealDB target. Stop every other
client of a remote target; local persistent destinations also enforce an OS
writer lock. A completed transfer is not an application cutover.
id_map lacks a typed preservation/readback path and is explicitly refused.
Inputs are never silently repaired. This is not a generic historical migration
framework.
Erasure-aware named bundles and live snapshot envelopes must use journal-aware
snapshot restore --input; they cannot be transferred by extracting or passing
their data through this legacy command. The original recovery journal is
required for restoration. Backend transfer of these snapshots is not
supported by this command.
Target credentials use
SURREALDB_USER and SURREALDB_PASS. Preserve the same
ELEPHANT_DURABILITY_PATH through copy, startup and recovery. The storage helper
rechecks the fresh destination under its exclusive maintenance gate and persists
transfer-pending.json outside the database before mutation. Interrupted or
failed copies remain unready across restart. The command clears this marker only
after typed readback, complete row inventories and native destination
fingerprints reconcile, journal identity verifies, and local persistence succeeds.
The optional receipt records recall-legacy-transfer-v1, source file SHA256,
source row and destination fingerprint digests, and table inventories. Its
reconciled state describes row validation; successful command exit additionally
confirms the storage helper completed durability and cleared the pending entry.
The two row digests describe different backend representations and need not be
equal. Receipt creation failures also leave the transfer incomplete.
There is no automatic rollback or retry into a partial target. To deliberately
erase only a matching failed destination, use its original source file digest:
Adopt a prepared historical snapshot
The preservation path usesdata-migrate --preservation-plan with a verified
offline planner inventory and an explicit target-space configuration request.
It requires a fresh native SurrealDB destination and a new report path. This
source path and its follow-on commands require qualification before household
use; the published 0.9.1 legacy transfer alone does not provide this workflow.
--preservation-plan replaces --snapshot. The plan binds the original snapshot,
closed lexical-row SQLite inventory, source identities and explicit source-to-target
space mapping. Original text, evidence spans and graph payload remain preserved;
adoption adds current migration receipts without inventing historical extraction
runs. Imported work remains held, and historical events do not replay as new work.
Unsupported authority, unresolved provenance and incomplete preservation evidence
are refused. A plan does not relax the fresh-target or original-journal rules.
For the example above, retain these outputs together:
The report state
initial_history_reconciled_vector_coverage_pending does not
certify current embedding coverage. Existing legacy vectors retain their original
provenance; matching model names or dimensions alone do not establish a current
profile. Keep all original snapshots, plans, reports and journal files unchanged.
The original --snapshot path above emits the older v1 receipt and cannot serve
as an adopted catch-up baseline.
Reconcile an adopted historical target
Thedata-migrate-delta command applies a complete, offline S0/S1 preservation
plan to a previously adopted native SurrealDB target. Full catch-up currently
requires native storage; embedded targets are refused before a pending marker
or a row mutation. This source path requires qualification before household use.
.catchup.sqlite and .catchup-bindings.jsonl companions
are the closed successor baseline. Use them with the S1 plan and report as the
baseline for S1→S2; keep the earlier baseline files unchanged. An empty
predecessor population requires its completed storage certificate, not an
arbitrary empty source declaration.
An identical-file no-op requires the same snapshot bytes, complete identity plan,
configuration, original receipts, heads and epoch. It retains the closed
inventory and epoch without applying changes. A fresh export with identical rows
has a different snapshot identity and follows the full catch-up path: prepare its
own S1 inventory and a complete zero-row delta, verify the exact destination
inventory under maintenance custody, regenerate the S1 publication proofs and
close a new successor baseline. Do not replace its snapshot hash with S0’s or add
a dummy change. A fresh empty-to-empty cut also requires the original storage
completion certificate and full reconciliation.
Unchanged historical work holds and event checkpoints retain their original
snapshot attribution across those cuts. A later work or event change can inherit
that attribution only through the exact predecessor completion certificate,
retained inventory and full native control-row comparison. Changed or foreign
control evidence refuses the operation. The actual work change links the new
hold to its previous proof; historical work remains inert. Event advancement
preserves the historical tail without acknowledging unrelated target events.
A plan’s deletion requirement does not grant deletion authority. Add
--accept-deletions only when the exact bound S0/S1 removals and soft deletions
are intended. This choice is recorded in the catch-up identity and must stay the
same on resume. Removing a target row represents the supplied historical delta;
it does not authorize physical erasure of retained snapshots or journal history.
A complete empty S1 can retire all original groups. Initial transfer still
requires a nonempty adoption population.
Source-less graph rows with no document membership use bounded snapshot-evidence
groups, separated by their original security, subjects and completeness. The
adapter preserves original graph payload and authorship; the snapshot anchor
records import evidence. It does not invent a document quote or an extraction
run. Unresolved source provenance remains an explicit refusal.
Success requires complete row and table reconciliation, source-group closure,
original journal verification and durable marker removal. It preserves existing
text, graph and vectors without bulk extraction. Current embedding coverage and
activation remain separate guarded operations. Finish the final original-store
cut and all catch-up deltas before reindexing or activating coverage. Those
operations change destination configuration, epoch and vectors, invalidating the
preceding historical baseline. This command does not advance a baseline across
destination-owned changes; it refuses a stale one. This sequence still belongs
inside the required full import clock, including fresh export, transfer,
planning, load, reconciliation and embedding work. Its duration remains
unqualified. Keep the original store stopped from the final cut through switch
and preserve its store-file manifest as freeze evidence. New-document backlog
stays outside the historical baseline and enters ordinary ingestion only after
activation and certification; consumer writes remain stopped until certification.
For a consuming host, W1 agent writes fail closed, W2 retains only new documents in
semantic_backlog.jsonl, and W3-W6 stay stopped. Keeping Meerkat Recall stopped covers
its own pipeline and other local writers. Retain store-file manifest equality
from final S1 through switch; backlog replay is ordinary new ingestion afterward.
Neither an identical-file no-op nor a fresh zero-row cut establishes the required
one-hour import duration or a completed application cutover.
Continue an accepted embedding reindex
reindex-continue processes bounded pages immediately after each successful
page. It uses the existing per-page model approvals, current-content checks and
guarded vector/progress writes. It does not extract documents, approve a model,
stage a reindex or activate coverage. The normal queued worker keeps its existing
attempt and retry rules.
Complete the final historical delta first. Grant setup and reindex staging
change the destination and make the preceding historical delta baseline stale.
With consumers still disconnected, use an authenticated serve --server-only
instance on the exact target to add an approved, unrevoked reindex_embedding
binding for the selected profile. Preserve other processing fields and use the
current configuration generation. This requires read:space_config,
write:space_config, explicit manage:provider and current record authority.
The import configuration’s document/query grants do not imply a reindex grant.
Read GET /v1/spaces/{space} to retain the actual configuration record ID, then
read GET /v1/spaces/{space}/processing/reindex for its current
processing_generation. Stage through
POST /v1/spaces/{space}/processing/reindex/start with target_profile_id and
expected_processing_generation. When rebuilding the already active profile,
also supply rebuild_current_profile: true; ordinary start refuses an already
active target. Retain the returned pending_reindex.id. Staging can enqueue
normal work, so keep managed workers stopped during this administrative path.
Stop that server and other clients before opening the same local RocksDB target
with reindex-continue. Keep the exact namespace, database and original external
durability journal across every command. If using ELEPHANT_DURABILITY_PATH,
keep its value unchanged and outside the target store. Use the accepted
configuration and reindex IDs:
coverage_ready_activation_pending, let the CLI exit and close its
store handle. Start only the administrative server again, read the latest
processing generation, and call
POST /v1/spaces/{space}/processing/reindex/activate with the original reindex
ID and that expected_processing_generation. Stop the server before local
certification. Continuation, activation and certification cannot concurrently
own the same RocksDB store. Removing queue delay alone does not establish the
full import time.
Certify imported publications after activation
After the final historical delta, complete the accepted embedding reindex and its guarded activation.certify-historical then verifies current physical
coverage for every publication in the exact closed import population, including
snapshot-evidence groups with no documents. It requires the final initial-transfer
or catch-up report, its exact SHA256 and its report-bound source bindings.
binding.json, per-source receipts,
and separate attempt records. Retry with the same output directory and exact
input to revalidate earlier successes against the same activation and evidence.
A changed publication or activation cannot reuse those success receipts. Before
a first successful completion, partial failure or expiration leaves no
complete.json. A later failed recheck preserves any earlier completion as
historical evidence; it does not report a new success. The elapsed limit bounds
admission of the next source, while an admitted transaction may finish later.
Successful completion writes complete.json with state
all_bound_current_imported_publications_certified, the final configuration
hash, activation and epoch. Retain that receipt before the separately coordinated
consumer switch. These source commands remain under runtime qualification;
synthetic success alone does not establish the full fresh one-hour requirement.