Operating loop¶
Cartographer provides deterministic building blocks; the agent decides how to combine them for a task. There is no built-in LLM judge, review queue or automatic PR workflow.
Orient and read¶
- Use
atlas_overviewormap_listto understand the KB shape. - Use
searchto find candidates. - Read only the relevant concept or section with
concept_read. - Follow links with
graph_neighborswhen nearby context matters.
Search results and indexes are derived. The Markdown concept remains the source of truth.
Write¶
- Read the target first and retain its content hash.
- When a suitable template exists, use
template_listthenconcept_newto create its shaped starting point; otherwise useconcept_writefor a complete concept,concept_patchfor bounded body/frontmatter edits, orlog_appendfor a Journal entry. - Pass
if_matchwhen updating existing content. A concurrent change fails withstale_writeinstead of being overwritten. - The server validates the write, updates live indexes and—when enabled— creates one local git commit for the logical operation.
Remote synchronization is handled around writes when configured. See concurrency for freshness, asynchronous push and conflicts.
Validate and lint¶
validatechecks KB and frontmatter invariants.lint(scope, scope_neighbors)runs deterministic checks over a scope and, optionally, its graph neighbors, including any declarative map contract for required frontmatter and curated-index membership.gate_checkcombines the repository's deterministic validation checks; lint errors (including missing required fields) make it fail.
Reasoning checks such as factual grounding, PII review or semantic contradiction analysis are agent/human policy. Cartographer does not currently run a second model or emit contradiction concepts automatically.
Compound useful results¶
When a result should survive the session, write it back as a focused concept with links and provenance appropriate to that KB. This is a convention, not an automatic post-processing step.