Skip to content

docs(agents): what an agent must never invent - #180

Merged
kevintseng merged 1 commit into
mainfrom
docs/anti-hallucination-clauses
Aug 16, 2026
Merged

docs(agents): what an agent must never invent#180
kevintseng merged 1 commit into
mainfrom
docs/anti-hallucination-clauses

Conversation

@kevintseng

Copy link
Copy Markdown
Contributor

Two negative instructions for agent-facing docs (AGENTS.md and the /memesh skill), prompted by studying ctx's agent skill — whose anti-hallucination clauses are the best-written part of that doc:

  1. Unavailable or empty ≠ license to improvise. If MeMesh is unreachable or a recall returns nothing, say so and work without it — never fabricate a memory, and never cite a [mem:id] handle that was not actually returned. A wrong "remembered" fact is worse than no memory: it arrives wearing the authority of the graph.
  2. Bounded windows ≠ graph-wide counts. Recall is capped by limit; a hit count is not a corpus count, and an empty result is not proof nothing was stored — vary the wording or narrow by tag before concluding.

One wording lesson the doc-claims gate taught while writing this: lowercase memesh <word> in agent docs is reserved for CLI-subcommand claims (the gate verifies each against registered commands), so product-name prose uses MeMesh.

Verification

  • node scripts/run-tests-isolated.mjs → exit 0, 142 files / 2126 tests.
  • npm run verify:release → exit 0 (incl. the agent-docs subcommand gate and the AGENTS.md tool-table parity gate).

Two negative instructions, prompted by studying ctx's agent skill (their
anti-hallucination clauses are the best part of that doc): when memesh is
unavailable or recall returns nothing, say so and work without it — never
fabricate a memory or cite a [mem:id] handle that was not actually
returned; and recall windows are bounded, so a hit count is not a
graph-wide count and an empty result is not proof of absence. A wrong
'remembered' fact arrives wearing the authority of the graph, which makes
it worse than no memory at all.
@kevintseng
kevintseng merged commit 9de60da into main Aug 16, 2026
23 of 24 checks passed
@kevintseng
kevintseng deleted the docs/anti-hallucination-clauses branch August 16, 2026 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant