Agent♥︎Age
Catalog

Agent Coherence — Stale Write Guard (FS)

Official

by Cohexa-ai · Python

Coherence guard for shared files: denies stale writes so agents don't silently overwrite each other.

io.github.Cohexa-ai/stale-write-guard-fs (MCP)

Cohexa-ai/stale-write-guard-fs is a coherence guard for shared files that denies stale writes to prevent agents from silently overwriting each other. It targets shared artifacts like plan.md, store keys, and memory.json, coordinating agent state on a single host.

🛠️ Key Features

  • Denies stale writes to shared artifacts (plan.md, store key, memory.json)
  • Vendor-neutral MESI + optimistic-concurrency coordinator for agent state
  • Safety invariants machine-checked in TLA+

🚀 Use Cases

  • Shared work where one agent reads an artifact while another commits a newer version
  • Preventing “last write wins” from silently discarding a peer’s changes
  • Maintaining correct downstream decisions built on agent state

⚡ Developer Benefits

  • Avoids silent clobbering without relying on error behavior
  • Improves consistency for multi-agent systems using shared state
  • Works with common agent frameworks and tooling contexts

⚠️ Limitations

  • Applies to coordination for agent state on a single host

Topics

state-synchronizationtoken-efficiencyagent-memoryai-agentautogencache-coherencecrewailangchainllm-agentmulti-agent-systemspython

Related servers

More in Security