memex:index:archive
Explicitly archive a raw payload to ~/.memex/raw/ via the Archivist. Normally invoked internally by memex:index:write — exposed for cases where archival is desired without indexing (e.g., evidentiary capture of inputs that aren't documents).
- License 许可
- MIT
- 所属仓库
- nitekeeper/memex
- 最近更新
- 2026-09-22
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- memex:index:archive
- description
- Explicitly archive a raw payload to ~/.memex/raw/ via the Archivist. Normally invoked internally by memex:index:write — exposed for cases where archival is desired without indexing (e.g., evidentiary capture of inputs that aren't documents).
03 SKILL.md 正文
memex:index:archive
When to use
Rare. Most callers use memex:index:write instead, which archives + indexes in one call. Use this skill when you need to preserve a raw byte stream without producing an Index entry.
Inputs
payload— bytes (or string, will be UTF-8 encoded)filename— suggested filename; the actual stored path includes a hash suffix
What happens
Archivist canonicalizes (line endings normalized, outer whitespace stripped), computes SHA-256, writes to ~/.memex/raw/<hash-prefix>/<stem>-<hash8>.<ext>. Idempotent: same canonical payload → same path.
Invocation
scripts/agents/archivist.py:archive(payload, filename)
Returns: {"hash": "<sha256>", "path": "<absolute path>"}
04 同仓库更多 Skills
run
Use to invoke any Memex v2.0 operation. Routes user-facing intents (ingest, ask, capture, lint, synthesize, dashboard) and agent-facing CRUD primitives to the right internal procedure.
memex:steward:reconcile-orphan
Authorized fix-up of a flagged orphan. Four actions — delete-index (remove documents row), repair (backfill row_id when target exists), reindex (re-run Librarian; deferred), note (acknowledge). Raises OrphanNotFoundError when index_id is unknown or, for repair, already linked.
memex:steward:dashboard
Launch a loopback-only, read-only HTTP dashboard over Memex — per-store summary, the federated index, knowledge communities, the code-navigation graph, and the agent registry, plus keyword search, a click-to-read content overlay, and an interactive 3D knowledge-graph view.
memex:steward:audit
Run a full integrity audit across the Memex Index and all registered stores. Detects orphans, broken relations, schema drift. Writes a structured audit report to ~/.memex/audits/. Read-only — never auto-fixes.
memex:steward:audit-store
Run an integrity audit scoped to a single registered store (reverse orphans + schema drift). Lighter than full audit.
memex:index:write
Direct write to the federated Index — the lower-level primitive that memex:brain:ingest and memex:brain:capture build on. Use when a consumer (Atelier, custom plugin) needs to add a document to its own store and have it indexed by the Librarian, without going through the Brain layer. Routes through Librarian subagent + Memex Core.