kronicle-lite
v0.10.2Hash-chained local document store with signed receipts and an orient protocol for stale agent memory
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_system_state Orient against the chain
Orient. Call at session start and before writes with your last cursor as since_cursor. Returns what changed since (delta), a drift banner, and retractions: things you relied on that changed, with old → new text. Reconcile retractions before acting. A bad or missing cursor never fails. focus: orientation (default) | recent_changes | retractions | pulse (head + banner only). Carry the returned cursor forward.
| Parameter | Type | Description |
|---|---|---|
actor_id | string | Your agent id (default: server --actor). Cursors are bound to it. |
all_projects | boolean | Include other projects' documents and retractions. |
budget_tokens | integer | |
focus | string | |
include_cosmetic | boolean | Deprecated alias of include_format_only. |
include_format_only | boolean | Also list format-only edits (identical raw text up to whitespace and reflow) as retractions. |
response_format | string | |
since_cursor | string | cursor or cursor_compact from your last call |
audit_assumptions Grade beliefs against the chain
Grade facts before acting on them. claims: [{symbol, value}]; symbol is a block id (value: content or content_hash), a document slug (value: revision, markdown hash or markdown) or "head" (value: seq or hash). Verdict per claim: current | stale | contradicted | retracted | unknown | stale_source, with the current truth.
| Parameter | Type | Description |
|---|---|---|
claims * | array |
recall Search blocks with signed receipts
Full-text search over live blocks. Each hit carries a signed receipt (pass it to verify() before relying on it later) and authority: can_act | inspect_only | never_act with a reason; only can_act is safe to act on unchecked. absence says what was and was not searched: an empty result is not proof of absence unless verdict is absent_in_searched. Pass cursor: hits you already read this session rank lower.
| Parameter | Type | Description |
|---|---|---|
query * | string | |
actor_id | string | Your agent id (default: server --actor). Cursors are bound to it. |
all_projects | boolean | Search other projects' documents too. |
cursor | string | Your latest cursor (for the stale-write advisory). |
include_receipts | boolean | |
include_tombstoned | boolean | |
max_chars | integer | Content budget; longer hits are cut with a pointer. |
receipts | string | id: receipt_id per hit (verify takes it); inline: the signed receipt. |
top_k | integer |
verify Verify retrieval receipts
Re-check recall() receipts (receipt / receipt_id, or up to 100 as receipts / receipt_ids) against the store (signature, re-hashed block text, chain position, supersession): VERIFIED | SUPERSEDED (see current_block_id) | TOMBSTONED | STALE_SOURCE | UNVERIFIED, with a reason. Fail-closed: with a batch, the top-level result is the first one not VERIFIED and results[] has each in input order.
| Parameter | Type | Description |
|---|---|---|
receipt | object | The receipt object from recall(). |
receipt_id | string | Or the receipt_id from recall(). |
receipt_ids | array | Batch: receipt ids. |
receipts | array | Batch: receipt objects. |
verify_chain Verify chain integrity
Recompute every event hash and link in [from_seq, to_seq] and check stored checkpoints. Over the whole chain (the default) it also re-derives and re-hashes every stored document and block (projection). ok:false means the database was edited outside kronicle-lite or is corrupt.
| Parameter | Type | Description |
|---|---|---|
from_seq | integer | |
to_seq | integer |
checkpoint_chain Sign a Merkle checkpoint
Sign and store a Merkle root over event hashes in [from_seq, to_seq] (default: all). push:true also anchors it off-box (root, range, signature and public key leave the machine; the local checkpoint is kept either way).
| Parameter | Type | Description |
|---|---|---|
from_seq | integer | |
push | boolean | |
to_seq | integer |
anchor_status Hosted anchor status
Last off-box anchor and whether the local chain still matches it: match | diverged (rewritten after anchoring) | beyond_head | gap | unverified (receipt not trusted). remote:true also asks the anchor service.
| Parameter | Type | Description |
|---|---|---|
remote | boolean |
put_document Create or replace a document
Create or re-put a Markdown document by slug. Unchanged blocks keep their ids; changed blocks are superseded and removed ones tombstoned, which other agents see as retractions. bind_git with source_path ties the document to that file's git blob (verify reports STALE_SOURCE when the file changes). Refuses text holding a secret (API key, token, private key, connection string): the chain cannot forget it.
| Parameter | Type | Description |
|---|---|---|
markdown * | string | |
slug * | string | name or namespace/Path (finding/G-2); max 128 |
title * | string | |
actor_id | string | Your agent id (default: server --actor). Cursors are bound to it. |
bind_git | boolean | |
cursor | string | Your latest cursor (for the stale-write advisory). |
derived_from | array | Blocks (from recall) this text was derived from; when one changes, this note is marked stale. Inferred from your reads when omitted. |
idempotency_key | string | |
redact_secrets | boolean | Store a redacted copy instead of refusing a detected secret. |
source_path | string | File the markdown came from. |
supersede_block Replace one block
Replace one live block's content, with a reason. Receipts for the old block then verify as SUPERSEDED.
| Parameter | Type | Description |
|---|---|---|
block_id * | string | |
new_content * | string | |
reason * | string | |
actor_id | string | Your agent id (default: server --actor). Cursors are bound to it. |
cursor | string | Your latest cursor (for the stale-write advisory). |
derived_from | array | Blocks (from recall) this text was derived from; when one changes, this note is marked stale. Inferred from your reads when omitted. |
redact_secrets | boolean | Store a redacted copy instead of refusing a detected secret. |
tombstone_block Retire one block
Retire one live block with a reason (no successor). Receipts for it then verify as TOMBSTONED.
| Parameter | Type | Description |
|---|---|---|
block_id * | string | |
reason * | string | |
actor_id | string | Your agent id (default: server --actor). Cursors are bound to it. |
cursor | string | Your latest cursor (for the stale-write advisory). |
apply Apply a batch of writes transactionally
Up to 50 put / supersede / tombstone ops in ONE local transaction. mode all_or_nothing (default; any failure rolls back everything) | best_effort. dry_run: exact per-op diffs, nothing written, plus a single-use confirm_token bound to this plan, actor and the previewed versions; commit with it to reject a plan whose state changed. expect_version per op; idempotency_key replays the committed result.
| Parameter | Type | Description |
|---|---|---|
ops * | array | |
actor_id | string | Your agent id (default: server --actor). Cursors are bound to it. |
confirm_token | string | |
dry_run | boolean | |
idempotency_key | string | |
mode | string | |
ttl_seconds | integer | confirm_token lifetime (default 300) |
audit_record Record audit events
Append MCP-audit evidence to the chain, all or nothing (≤ 500 per call). kind: catalog_snapshot | call_measured | finding | gate_result | fix_applied | regression_result; payload per kind (kronicle://schemas/audit). Hashes and blob refs only: artifacts go to the blob store (CLI audit put-blob). event_key is the stable id: a retry is a no-op, a different payload under it is refused.
| Parameter | Type | Description |
|---|---|---|
audit_id * | string | |
events * | array | |
actor_id | string | Your agent id (default: server --actor). Cursors are bound to it. |
audit_query Query audit events and findings
Audit events by audit_id and/or catalog fingerprint (optional kind, finding_id, after_seq, limit), ascending seq; with audit_id, also the current state of each finding (discovered | refuted | reopened | accepted).
| Parameter | Type | Description |
|---|---|---|
after_seq | integer | |
audit_id | string | |
finding_id | string | |
fingerprint | string | |
kind | string | |
limit | integer |