Agent Guide#
Source Of Truth#
- Product/domain context:
CONTEXT.md. - Full project behavior and public API:
README.md. - Agent-facing repo instructions:
AGENTS.md. - Broad verification:
npm test. - Published docs: built with Corpus.
corpus.jsonlists the published docs and MCP topics, andnpm run docs:checkis the gate. When you change code that a documentcovers, update that document.
Match Checks To Change Type#
- Docs/interface-only changes: inspect the Markdown diff and run
npm testbefore merge readiness. - TypeScript/API changes: run
npm run typecheckplus the focused test path that covers the touched code. - Package or behavior changes: run
npm test; it builds first, then runs deterministicnode --testtests. - Generated output: do not edit
dist/or other generated files by hand.
Useful Commands#
npm test- broad repo verification (npm run buildplusnode --test tests/node/*.test.mjs).npm run typecheck- focused TypeScript check without emitting build output.npm run build- compile TypeScript intodist/.npm run test:node- run the node test suite against an existing build.npm run example- build and run the ManualClock demo.
Repo Boundaries#
- Ephemeris is the external freshness scheduler / event-bridge for the Kontour suite.
- Preserve the invariant that it triggers Flow and never authors TrustBundles, ledgers,
fresh,stale, orrevokedstate. - Reuse README vocabulary for Hachure, Surface, Flow, Store, Source, Trigger, and deadlines.
- Keep docs-only interface work limited to
AGENTS.mdandCONTEXT.mdunless the task explicitly calls for more.
Source-qualified documentation review#
The Corpus gate selects the canonical documents mapped in corpus.json when
implementation inputs change. Review those claims against the actual callers.
Update inaccurate prose in the same PR. If it remains accurate, record a new
local input/output byte review with a concrete explanation and limits in
corpus-content.json, following the shared review contract.
npm run docs:check -- --base origin/main uses that same reviewed Corpus source.
Do not add filler text or refresh hashes without inspecting the change. A
passing check does not certify semantic correctness, runtime or publication.
This repo uses Veritas for AI governance. Read .veritas/GOVERNANCE.md before making changes.
After changes, run npx --no @kontourai/veritas readiness and address any FAIL lines before finishing.