Private Agent Memory
Per agent and per thread memory stores task facts, decisions, and open work context.
- Scoped to session and resource lanes
- Semantic retrieval from embeddings
- Low-noise indexing policy
Private memory lanes, restart durability, model-switch behavior, and distributed knowledge sharing in one place.
Built for precise task memory, durability across restarts, and clean shared knowledge exchange over Kafka.
Per agent and per thread memory stores task facts, decisions, and open work context.
State persists in local timeline and memory stores so restarts do not drop tasks or heartbeats.
Agents publish structured facts over Kafka with source, confidence, and version metadata.
Full protocol details, state machine infographic, and operational guidance are documented in CoT Cascading Protocol.
The shared knowledge pool is the distributed memory layer used when multiple claws collaborate. It is event-based and runs on Kafka with typed envelopes (proposal, vote, decision, fact, presence, capabilities). Each message includes identity and trace metadata (clawId, instanceId, traceId, idempotencyKey) so receivers can deduplicate and audit every state change.
ID fields are used as a trust and replay-control layer:
clawId: stable node identity for a claw in the group.instanceId: runtime instance identity for that claw process.traceId: end-to-end correlation id across proposal, votes, decision, and fact events.idempotencyKey: unique apply key for a logical knowledge event.Controls implemented now:
schemaVersion, type, traceId, timestamp, idempotencyKey, clawId, instanceId).idempotencyKey is recorded in knowledge_idempotency with a unique constraint, so the same event is applied once.(proposal_id, claw_id) in storage, so one claw cannot stack multiple votes on one proposal.v1 and then advance sequentially (+1 only). Regressions, gaps, and mismatched stale updates are rejected as conflict or stale.proposal, vote, decision, fact) are blocked when governance is disabled.clawId, preventing local re-apply loops.Important scope note:
Voting only becomes meaningful at 3 or more participating claws.
Practical effect:
This is why governance mode requires quorum logic before a fact is promoted as shared truth.
proposal with a clear statement and tags.vote events (yes or no) with optional reason.decision after quorum and majority are reached (or expired/rejected).fact is published and applied to shared memory.Example with 4 claws:
claw-1 has filesystem access to production log paths.claw-2 has read-only database access.claw-3 has incident triage and runbook skills.claw-4 is the coordinator handling incoming user requests.Flow:
capabilities to Kafka, for example: claw-1: logs.read:/var/log/app/*claw-2: db.read:orders,customersclaw-3: incident.runbook:v2claw-4 receives a task: “Why did checkout fail in the last hour?”claw-4 routes sub-tasks based on announced capabilities: claw-1 for log error windowsclaw-2 for failed transaction rowsclaw-3 to map findings to runbook actionsfact.This keeps agent memory precise:
For envelope schema and payload contracts, see: