Skip to content

Shared knowledge maintenance

How to Prevent Multi-Agent Knowledge Conflicts and Stale Conclusions

Prevent AI agents from overwriting shared knowledge, promoting unsupported claims, or reusing conclusions after their sources change.

Qi-Xuan LuUpdated 5 min read

Article packet

01

Workflows

02

Teams whose coding, research, or operations agents read from and write to the same project knowledge

03

5 min read

01

Do not let every agent write directly into accepted shared knowledge.

02

Keep evidence, candidate claims, and accepted conclusions as separate states.

03

Detect stale writes before acceptance, review contradictions, and preserve the history they replace.

01

Quick answer

Prevent multi-agent knowledge conflicts by treating every agent write as a candidate claim, not immediate shared truth. Store its source, writer, scope, captured time, and expected version; re-read the target before acceptance; if it changed, do not publish the stale candidate. Compare contradictions with the current source, then let a reviewer promote, replace, or leave the claim unresolved. Preserve the replaced conclusion and its provenance so later agents can see why it changed.

Wenlan separates Sources, atomic Memories, and maintained Pages. Captures keep provenance; explicit replacements preserve a supersedes chain; stale Pages can be rebuilt from current support; machine changes to human-owned writing become reviewable revisions; and an optional reconcile pass can queue protected conflicts instead of overwriting history. That pass is off by default and does not replace source review.

02

When this problem appears

The failure appears when one agent reads version A, another changes the source or conclusion, and the first agent later writes from its stale snapshot. It also appears when two plausible summaries contradict each other or an agent records a claimed completion without a verifiable result. A shared file or vector store makes the information visible, but does not decide which statement is current or supported.

03

Use a staged write and review loop

Use one small conflict fixture before several agents depend on the same knowledge base. The slash-command recipe below requires the Wenlan Codex plugin after `/setup`.

  • Define the authoritative source and the write scope for the fact or Page. Agent identity alone is not authority.
  • Record the evidence, candidate claim, writer, source revision, captured time, and expected version together.
  • Before accepting a write, re-read the source and target and compare them with the version recorded by the agent. A mismatch should stop the workflow before `write_page` and force a fresh read.
  • Compare competing claims with the original evidence. Mark them supported, contradicted, stale, replaced, or unresolved; do not let recency alone decide.
  • Promote only reviewed claims into accepted shared knowledge. Preserve the previous conclusion, its citations, and the replacement reason.
  • Run the same recall from a second agent and verify that it sees the accepted state, the current source, and any unresolved conflict rather than a silent last write.

Wenlan Codex plugin: inspect, capture, distill, and review

/pages <shared topic>
/capture <candidate claim + source + why it matters>
/distill <shared topic>
/lint
/curate

04

What to check next

Wenlan is not a multi-agent scheduler, distributed lock service, or automatic consensus engine. Repository files, tests, specifications, and maintained first-party documents remain authoritative. The current public MCP `write_page` does not accept `expected_version`, so this recipe performs the source-and-version comparison before the write instead of claiming an atomic stale-write rejection. Human-owned Page refreshes become reviewable revisions. Agents without the Codex plugin can use local MCP tools (`recall`, `capture`, `distill`, `lint`, and `list_pending_revisions`) or the local CLI (`wenlan pages`, `wenlan capture`, `wenlan lint`, and `wenlan curate revisions`). Local Page refresh is available only through local stdio MCP; semantic conflicts still require evidence and review.

Test one conflicting conclusion

Connect two agents to Wenlan, stage one conflicting claim with its source, and verify that review and history stay visible before either agent reuses it.

FAQ

Should every agent write to the same shared Page?+
No. Agents can capture atomic evidence and candidate claims, but accepted Pages should have a defined scope and review path so one agent cannot silently overwrite another's supported conclusion.
Does the optional reconcile pass resolve every contradiction automatically?+
No. It can queue protected conflicts for review and preserve supersession, but it is off by default and cannot decide whether the underlying source is correct.