CellMath

v1.0.0
io.github.ymchominzzo/cellmath Checked 4 days ago Published 12 days ago

AI memory governance & hallucination-blocking MCP server with verifiable knowledge cells.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

vault_access Search & Read Memory

[PURPOSE] Retrieval Gate + Output Gate over knowledge vault: searches telegraphic index with Zero-Match Silence, masks PII/secrets on delivery, checks DAG contradictions & dynamic token budget, optionally auto-hydrates top-1 verified cell (score>=2.5, kappa>=0.85; blocks auto-hydration for unverified hypotheses and >180d stale volatile facts while allowing timeless definitions/common-sense), and serves the default-OFF Creativity 15 bottleneck skill cell (organ_skill_creativity_15_v1) only when explicitly queried. [CALL] Find facts, lookup codes/rules, explicitly inspect a cell body (action=get…

ParameterTypeDescription
actionstringRetrieval action: "search" query index, "get" specific cell/pointer, or "graph" topology DAG.
auto_hydratebooleanIf true, hydrates top 1 Output-Gate-approved body (score>=2.5, verified kappa>=0.85, non-contradicted, fresh or timeless definition/common-sense). Unverified/stale-volatile items stay telegraphic with…
categorystringFilter by node category.
idstringCanonical cell ID or Pi pointer to hydrate when action=get.
include_sessionbooleanIf true, includes past session cycle records. Default false prevents search history feedback loop.
limitintegerMax items returned (1-50).
limit_fullintegerMax number of full bodies to hydrate when auto_hydrate=true (1-3).
querystring1-3 noun keywords, exact code, or error ID for search.
tagstringFilter by exact categorical tag.

vault_commit Commit & Manage Memory

[PURPOSE] Input Gate + Storage Gate for durable memory mutations: validates provenance tags, masks PII/secrets on ingest (respecting exact_byte), recommends bilingual KO+EN tags for cross-language recall, stages unverified claims to Zone 2 hypothesis (v0.1), supports bi-temporal superseding, 4-tier purge removal, causal edge linking, and 7-turn session checkpoints. [CALL] New fact established, cell mutated/deleted, edge linked, or 7-turn milestone reached. [SKIP] Simple read queries (use vault_access). [VS] vault_access=reads; this=input+storage governance. [RETURN] {success,action,input_gate,…

ParameterTypeDescription
actionstringMutation action: save new cell, update cell, remove/delete target cell (purges contradicts/outgoing edges and marks incoming depends_on as upstream_removed), freeze checkpoint, link edge, unlink edge,…
ai_compressed_summarystringCompressed 30-word summary (including key KO/EN keywords if tags are single-language): [Core: ...] [Causal: ...]
confirmbooleanExplicit commit approval flag.
contentstringVerified factual content or reasoning summary (required non-empty string for action=save).
fromstringSource node ID when action=link_edge or action=unlink_edge.
goalTaskstringMission goal or reasoning milestone when action=checkpoint.
hypothesis_actionstringResolution action when action=resolve_hypothesis.
idstringTarget cell ID (for update, remove/delete target cell, resolve, unblock/lift_do_not, or explicit ID; omit on unblock to lift all active constraints for caller).
is_hypothesisbooleanSet true to stage as Zone 2 hypothesis (kappa=0.68).
relstringRelation type (supports, why, depends_on, relates_to, contradicts). Optional filter on unlink_edge.
supersedes_idstringPredecessor cell ID to supersede when updating.
tagsarrayCategorical search tags. STRONGLY RECOMMENDED: include at least 1 Korean tag and 1 English counterpart tag (e.g. ["검수", "review", "보안", "security"]) to ensure reliable KO/EN cross-language rec…
titlestringDescriptive title for knowledge node (required non-empty string for action=save).
tostringTarget node ID when action=link_edge or action=unlink_edge.

verify_safety Verify Action Safety

[PURPOSE] Independent Execution Safety Gate for destructive commands, SQLi/shell injection detection, and mathematical logic evaluation (1D Wasserstein distance for context/hallucination drift, Shannon entropy gain, symbolic/numerical matrix solver, groundedness check). [CALL] Prior to executing proposed bash/DB commands or verifying math/distributions. [SKIP] Benign natural text conversation or memory delivery gating (handled by vault_access Output Gate). [VS] Pre-execution guard; does not execute target command. [RETURN] {isCertified:bool,riskLevel:number,violations:string[]}. [SIDE] None (r…

ParameterTypeDescription
actionProposalstringCommand, script, or action proposal to verify.
operationstringVerification or math operation.
paramsobjectOperation parameters. For wasserstein: { distributionA (or u, p, a, distA): number[], distributionB (or v, q, b, distB): number[], supports?: number[], u_weights?: number[], v_weights?: number[] }. Fo…