本文へ移動
cccskills
無料GitHub で公開

abi-wdbx-persistence

WDBX persistence superpower. JSONL snapshots, CRC32-framed WAL, epoch-gated segment checkpoints, recovery, compaction.

日本語の概要は準備中です。原文の説明を表示しています。

donaldfilimon/abiスター 19(GitHub 19 + cccskills 0)

実行スコア 未検証

インストール方法を見る

含まれるファイル(1)

  • SKILL.md8.9 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

WDBX moved out of this repository on 2026-08-22. It now lives in the sibling repo ../wdbx together with abi-compute, abi-foundation, abi-core, and abi-telemetry; abi consumes them by relative path. Source paths below therefore read ../wdbx/crates/.... Run WDBX-only tests from that repo (./tools/cargo.sh test --locked --manifest-path ../wdbx/Cargo.toml --workspace < /dev/null, run from the abi checkout), and abi's gate (./tools/check.sh) from here.

Under the Abbey System Constitution (docs/superpowers/specs/2026-08-22-abbey-system-constitution.md) WDBX is the provenance-aware episodic substrate, not a vector store. Most of the evidence half of its specification is unimplemented; the measured gap list is in docs/superpowers/specs/2026-08-22-wdbx-conformance-gap-analysis.md. Do not describe an episodic capability as Current on the strength of the vector-store features that do exist.

ABI Superpower: WDBX Persistence

Exposes the WDBX durability layer as a superpower. Layered snapshot + WAL + segment design with runtime recovery and compaction.

Actions

init

Initialize a new durable store:

/abi-wdbx-persistence init --path ./data

verify

Cross-check checkpoint integrity, block-chain validity, WAL frame integrity, and merged checkpoint+WAL chain:

/abi-wdbx-persistence verify --path ./data

compact

Retain newest N segment checkpoints, reclaim older ones:

/abi-wdbx-persistence compact --path ./data --keep 5

recover

Show recovery status (latest checkpoint + WAL delta):

/abi-wdbx-persistence recover --path ./data

wal

Inspect WAL frames:

/abi-wdbx-persistence wal --path ./data

segments

List segment checkpoints and epochs:

/abi-wdbx-persistence segments --path ./data

snapshot

Create JSONL snapshot (compatibility mirror):

/abi-wdbx-persistence snapshot --path ./data

Architecture

┌─────────────────────────────────────────────────────────────────┐
│                        WDBX Store                                │
└─────────────────────────────────────────────────────────────────┘
                              │
              ┌───────────────┼───────────────┐
              ▼               ▼               ▼
       ┌─────────────┐ ┌─────────────┐ ┌─────────────┐
       │  WAL        │ │  Segments   │ │  Snapshot   │
       │  (wal)      │ │ (segments)  │ │ (persist)   │
       │             │ │             │ │  (mirror)    │
       │ CRC32 frames│ │ Manifest +  │ │  JSONL +    │
       │ Append-only │ │ epoch files │ │  SHA-256    │
       │ Replay +    │ │ compactRetain│ │  checksum   │
       │ corruption  │ │ Latest-N    │ │             │
       │ detection   │ │             │ │             │
       └─────────────┘ └─────────────┘ └─────────────┘
              │               │               │
              └───────────────┼───────────────┘
                              ▼
                    ┌─────────────────────┐
                    │  Recovery           │
                    │  (recovery +        │
                    │   durable_store)    │
                    │                     │
                    │  1. Load latest     │
                    │     segment epoch   │
                    │  2. Replay WAL      │
                    │     delta forward   │
                    │  3. Checkpoint      │
                    │     runtime mutations
                    └─────────────────────┘

File Formats

WAL (../wdbx/crates/abi-wdbx/src/wal.rs)

  • CRC32-framed append-only records
  • Supports: putVector, putBlock, putSpatial, putTemporalNode, putTemporalEdge, deleteVector
  • Replay reconstructs state deterministically (reuses persistence.deserialize)
  • Corruption detection: flipped-byte CRC rejection, bad-header rejection

Segments (../wdbx/crates/abi-wdbx/src/segments.rs)

  • Manifest: <base>.manifest — lists epoch checkpoints in order
  • Checkpoints: <base>.seg.<epoch>.jsonl — immutable epoch snapshots
  • loadLatest() — loads newest epoch
  • listEpochs() — lists active epochs
  • reclaimEpochs() — removes old epochs
  • compactRetainingLatest(keep) — retains newest N checkpoints

Snapshot (../wdbx/crates/abi-wdbx/src/persistence.rs + ../wdbx/crates/abi-wdbx/src/persistence.rs)

  • Header: # ABI-WDBX v1
  • Records: minified JSON per record (kv, vector, block, spatial, temporal_node, temporal_edge)
  • Trailer: # checksum:<sha256-hex> covering record body
  • Load rejects ChecksumMismatch on tamper/truncation
  • Checksum-less snapshots loadable (backward compatibility)
  • Integer field overflow → FieldOutOfRange (no panic)
  • Vector ID monotonic restore → CorruptVectorId on mismatch
  • Block timestamp restore → SHA-256 chain reproduces exactly

Recovery Flow (../wdbx/crates/abi-wdbx/src/wal.rs + ../wdbx/crates/abi-wdbx/src/durable.rs)

  1. Load latest segment checkpoint (default runtime baseline)
  2. Replay sidecar WAL delta forward
  3. Checkpoint runtime mutations through segments
  4. Compatibility mirror — monolithic JSONL snapshot still written

CLI commands (wdbx db *) recover WAL-ahead state before read/write:

  • block insert/get → recover → operate
  • query → recover → search
  • db verify → cross-checks WAL replay vs current checkpoint block count

CLI Surface (abi wdbx db)

CommandDescription
db init <path>Create new segment-backed store
db verify <path>Full integrity check (checkpoint + WAL + block chain)
`db compact <path> [--codec nonepq
block insert <path> <profile> <metadata>Write segment checkpoint + WAL
block get <path>Read latest block
query <path> [text] [persona]Stats, hybrid search, or persona-isolated retrieval

Durability Invariants

InvariantEnforced By
Append-only WAL../wdbx/crates/abi-wdbx/src/wal.rs single-writer, CRC frames
Checkpoint immutability../wdbx/crates/abi-wdbx/src/segments.rs epoch files never modified
Snapshot integritySHA-256 trailer, ChecksumMismatch on load
Block chain integritySHA-256 link, verifyBlocks()
Epoch orderingManifest lists epochs sequentially
Vector ID monotonicityCorruptVectorId on restore mismatch
WAL-ahead recovery../wdbx/crates/abi-wdbx/src/wal.rs prefers segment + WAL delta

CLI Access

abi wdbx db init ./data
abi wdbx db verify ./data
abi wdbx db compact ./data 5
abi wdbx block insert ./data abbey '{"note":"test"}'
abi wdbx block get ./data
abi wdbx query ./data "search text" abbey

Build and runtime boundary

abi-wdbx is a normal Rust workspace crate; there is no feat-wdbx switch or FeatureDisabled stub. Persistence is selected at runtime by the requested store path and environment. Tests use scratch paths, ABI_WDBX_PATH=:memory:, or ABI_WDBX_PERSIST=0 and never open the user's live store.

Claim Boundary

Per docs/spec/wdbx-north-star.mdx §3.1 and docs/contracts/external-claims-audit.mdx:

  • ✅ JSONL snapshot + CRC32 WAL + segment checkpoints
  • ✅ Runtime recovery (load epoch + replay WAL)
  • ✅ db verify cross-checks all layers
  • ✅ db compact retains newest N epochs
  • ✅ Compatibility JSONL mirror for tooling
  • ❌ NOT full MVCC visibility (block snapshots + epoch checkpoints only)
  • ❌ NOT cross-process/concurrent checkpoint coordination
  • ❌ NOT at-rest encryption (proposed Phase 4)
  • ❌ NOT signed snapshots (proposed Phase 4)

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

Maintain the Abbey / Aviva / Abi Discord system prompts in the Rust abbey-bot (`src/ask.rs`) and keep the hosted Grok bots (Grok Bot Abbey, Aviva Grok) in step with them. Use when the user says "improve grok bots", "abbey prompt", "persona prompt", "ask.rs", "system prompt", "tip floor", asks to change how Abbey/Aviva/Abi speak on Discord, or after an abbey-bot PR merges and the hosted bot's tip floor needs bumping. Runs as /abbey-system-prompt.

日本語の概要は準備中です。原文の説明を表示しています。

donaldfilimon/abi192026年10月27日 更新

Validate ABI docs and external collateral against repo evidence and docs/contracts/external-claims-audit.mdx. Use when auditing claims, scanning docs for unsupported QPS/sharding/FHE/AES language, checking one claim before publish, or re-confirming the external-claims audit. Agent procedure only — not a CLI or slash command. Pair with abi-doc-claims-sync when editing docs.

日本語の概要は準備中です。原文の説明を表示しています。

donaldfilimon/abi192026年10月27日 更新

Synchronize ABI Markdown and docs claims with executable behavior. Use before editing README, AGENTS.md, CLAUDE.md, GEMINI.md, docs/**/*.mdx, walkthroughs, changelogs, or any old ABI Markdown that mentions WDBX, MCP, GPU, clustering, compression, FHE, agents, or benchmarks.

日本語の概要は準備中です。原文の説明を表示しています。

donaldfilimon/abi192026年10月27日 更新

Plan and execute ABI repo work from the TODO board, roadmap/spec docs, stable Rust 1.99.1 constraints, and validation gates. Use when the user asks to find ABI todos/roadmaps, organize a large implementation from tasks/todo.md, or decide the next safe work slice. Distinct from the goals skill — that skill owns the persistent ledger tasks/goals.md; this skill plans from the active board and north-star specs.

日本語の概要は準備中です。原文の説明を表示しています。

donaldfilimon/abi192026年10月27日 更新

Validate ABI MCP JSON-RPC stdio and its custom loopback HTTP compatibility endpoint, including auth, limits, notifications, and shutdown.

日本語の概要は準備中です。原文の説明を表示しています。

donaldfilimon/abi192026年10月27日 更新

Review ABI's 16 compiled-in plugin fixtures, manifest validation, manual bundled registry, and real CLI/MCP run dispatch without claiming dynamic loading.

日本語の概要は準備中です。原文の説明を表示しています。

donaldfilimon/abi192026年10月27日 更新

donaldfilimon のスキルをすべて見る

このスキルの問題を報告する