Documentation
¶
Overview ¶
Package cartographer is the module root. It holds one thing: the documentation of the commit the binary is built from.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var DocsFS embed.FS
DocsFS is the documentation of this commit, laid out as the repository root (README.md, CONTRIBUTING.md, docs/…), read by internal/docskb. The patterns are a closed list: a new docs subdirectory they miss is caught by TestEmbeddedDocsEqualTheDisk, not silently left out of the binary.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
cartographer
command
Command cartographer is the single binary of the Agentic Wiki: both its sides, the MCP server (`serve`) and the multi-provider client that connects agent clients to it (`agents`, `connect`, `disconnect`, `reconnect`, `status`, `sync`).
|
Command cartographer is the single binary of the Agentic Wiki: both its sides, the MCP server (`serve`) and the multi-provider client that connects agent clients to it (`agents`, `connect`, `disconnect`, `reconnect`, `status`, `sync`). |
|
internal
|
|
|
agents
Package agents detects which LLM agent CLIs/apps are installed locally.
|
Package agents detects which LLM agent CLIs/apps are installed locally. |
|
artifactsig
Package artifactsig signs and verifies provisioning artifact envelopes.
|
Package artifactsig signs and verifies provisioning artifact envelopes. |
|
atlasext
Package atlasext loads the data a plugin's atlas side declares: views/ (a read-only view of a public API route, drawn by the Atlas with one of four fixed renderers) and apps/ (an entry that opens an app on its own origin in a new tab).
|
Package atlasext loads the data a plugin's atlas side declares: views/ (a read-only view of a public API route, drawn by the Atlas with one of four fixed renderers) and apps/ (an entry that opens an app on its own origin in a new tab). |
|
audit
Package audit implements Cartographer's local, tamper-evident audit trail.
|
Package audit implements Cartographer's local, tamper-evident audit trail. |
|
auth
Package auth implements bearer-token authorization for the HTTP transport: the token store, the middleware that resolves a request to a principal with a Policy, and the per-KB RBAC check the tools are gated on (`kb:<name>:r` / `kb:<name>:rw` scopes are parsed into Policy permissions).
|
Package auth implements bearer-token authorization for the HTTP transport: the token store, the middleware that resolves a request to a principal with a Policy, and the per-KB RBAC check the tools are gated on (`kb:<name>:r` / `kb:<name>:rw` scopes are parsed into Policy permissions). |
|
blocktext
Package blocktext implements the marker-delimited "managed block" primitive.
|
Package blocktext implements the marker-delimited "managed block" primitive. |
|
boundaries
Package boundaries is the client import firewall: it pins that the client packages never link the data plane (D1884).
|
Package boundaries is the client import firewall: it pins that the client packages never link the data plane (D1884). |
|
branding
Package branding parses and judges the branding/ folder of a plugin's atlas side: a company logo (light and dark) and a company name, all data.
|
Package branding parses and judges the branding/ folder of a plugin's atlas side: a company logo (light and dark) and a company name, all data. |
|
buildid
Package buildid names the build of the running executable: the VCS revision the toolchain embedded, or a hash of the file when none is.
|
Package buildid names the build of the running executable: the VCS revision the toolchain embedded, or a hash of the file when none is. |
|
changelog
Package changelog regroups a release-please changelog by area.
|
Package changelog regroups a release-please changelog by area. |
|
changelog/gen
command
Command gen runs package changelog: it groups a release-please changelog by area and checks PR bodies for wrapped conventional lines (D865):
|
Command gen runs package changelog: it groups a release-please changelog by area and checks PR bodies for wrapped conventional lines (D865): |
|
client
Package client is a minimal MCP client over HTTP (JSON-RPC 2.0).
|
Package client is a minimal MCP client over HTTP (JSON-RPC 2.0). |
|
clientconfig
Package clientconfig reads and writes the client-side `.cartographer.yaml` file: the record of which server this machine talks to and which agent providers have been connected via `cartographer connect`.
|
Package clientconfig reads and writes the client-side `.cartographer.yaml` file: the record of which server this machine talks to and which agent providers have been connected via `cartographer connect`. |
|
componentproto
Package componentproto is the server-component wire contract.
|
Package componentproto is the server-component wire contract. |
|
config
Package config is the server configuration of `cartographer serve`: a YAML file merged with environment variables and CLI flags.
|
Package config is the server configuration of `cartographer serve`: a YAML file merged with environment variables and CLI flags. |
|
configurator
Package configurator generates the MCP configuration of each agent client: Claude Code, Codex CLI, Kiro, OpenCode, Antigravity, Crush, GitHub Copilot (CLI and VS Code).
|
Package configurator generates the MCP configuration of each agent client: Claude Code, Codex CLI, Kiro, OpenCode, Antigravity, Crush, GitHub Copilot (CLI and VS Code). |
|
defaults
Package defaults holds the local endpoint defaults: the values the native service and the client first-run paths share.
|
Package defaults holds the local endpoint defaults: the values the native service and the client first-run paths share. |
|
docskb
Package docskb generates the documentation KB: a pure function of the repository's markdown (README.md, CONTRIBUTING.md, docs/ and docs/decisions/) and of a git ref, with no model and no clock, so the same input is the same bytes.
|
Package docskb generates the documentation KB: a pure function of the repository's markdown (README.md, CONTRIBUTING.md, docs/ and docs/decisions/) and of a git ref, with no model and no clock, so the same input is the same bytes. |
|
execbit
Package execbit reports whether the filesystem has the POSIX execute bit.
|
Package execbit reports whether the filesystem has the POSIX execute bit. |
|
feedback
Package feedback redacts a bug report and builds its destination URL: where the report goes (Destination), the URL that carries it (SubmitURL) and the redactor that removes every name and secret the caller knows before the user sees the draft (Redact).
|
Package feedback redacts a bug report and builds its destination URL: where the report goes (Destination), the URL that carries it (SubmitURL) and the redactor that removes every name and secret the caller knows before the user sees the draft (Redact). |
|
gitx
Package gitx provides a git wrapper via os/exec for the Agentic Wiki.
|
Package gitx provides a git wrapper via os/exec for the Agentic Wiki. |
|
gitx/gitxtest
Package gitxtest is a git smart-HTTP server for tests: the real git-http-backend behind basic authentication, in process, so a test meets what a forge's HTTPS endpoint does (a 401, a credential helper, a pre-receive hook's "remote:" lines) without a network.
|
Package gitxtest is a git smart-HTTP server for tests: the real git-http-backend behind basic authentication, in process, so a test meets what a forge's HTTPS endpoint does (a 401, a credential helper, a pre-receive hook's "remote:" lines) without a network. |
|
graphalgo
Package graphalgo holds the graph algorithms behind the retrieval tools (D242): personalized PageRank, BFS, shortest paths and link prediction over an int-indexed adjacency.
|
Package graphalgo holds the graph algorithms behind the retrieval tools (D242): personalized PageRank, BFS, shortest paths and link prediction over an int-indexed adjacency. |
|
hooks
Package hooks calls the hook points of the core: a versioned HTTP webhook with a timeout, an operator-chosen failure policy, a circuit breaker and a dry-run mode.
|
Package hooks calls the hook points of the core: a versioned HTTP webhook with a timeout, an operator-chosen failure policy, a circuit breaker and a dry-run mode. |
|
hooks/hooktest
Package hooktest is the contract kit of the hook protocol: a test server that stands in for a hook (it records each request and answers from a script) and the validation of a request or a response against the published JSON Schemas in docs/schemas/hooks, one file per point.
|
Package hooktest is the contract kit of the hook protocol: a test server that stands in for a hook (it records each request and answers from a script) and the validation of a request or a response against the published JSON Schemas in docs/schemas/hooks, one file per point. |
|
jsonorder
Package jsonorder edits a JSON object without reformatting the rest: the key order of every object read, the indent unit (tabs included), CRLF, the final newline and the exact digits of a number (json.Number) survive a read-modify-write (#1198, #1502), and HTML characters are not escaped (`&&` in another tool's command stays as written).
|
Package jsonorder edits a JSON object without reformatting the rest: the key order of every object read, the indent unit (tabs included), CRLF, the final newline and the exact digits of a number (json.Number) survive a read-modify-write (#1198, #1502), and HTML characters are not escaped (`&&` in another tool's command stays as written). |
|
kb
Package kb implements the data plane of the OKF knowledge base.
|
Package kb implements the data plane of the OKF knowledge base. |
|
kbtest
Package kbtest copies a pre-built KB into a test directory.
|
Package kbtest copies a pre-built KB into a test directory. |
|
lint
Package lint implements deterministic lint checks on a KB scope.
|
Package lint implements deterministic lint checks on a KB scope. |
|
mcpbridge
Package mcpbridge is the local stdio MCP server scoped to a folder's KBs (D737): one agent session gets the KBs of the folder it was started in.
|
Package mcpbridge is the local stdio MCP server scoped to a folder's KBs (D737): one agent session gets the KBs of the folder it was started in. |
|
mcpexec
Package mcpexec resolves an approved MCP descriptor and its secrets.
|
Package mcpexec resolves an approved MCP descriptor and its secrets. |
|
mcpprobe
Package mcpprobe checks an MCP descriptor without launching it: which ${VAR} references are unset, whether its host can be reached, and which of the usual network and TLS faults an error is.
|
Package mcpprobe checks an MCP descriptor without launching it: which ${VAR} references are unset, whether its host can be reached, and which of the usual network and TLS faults an error is. |
|
mcpserver
Package mcpserver implements the control plane: the MCP protocol over stdio and Streamable HTTP, and the tool registry that exposes a KB to an agent.
|
Package mcpserver implements the control plane: the MCP protocol over stdio and Streamable HTTP, and the tool registry that exposes a KB to an agent. |
|
okf
Package okf — parser/serializer for the YAML subset used in OKF frontmatter.
|
Package okf — parser/serializer for the YAML subset used in OKF frontmatter. |
|
openapi
Package openapi builds an OpenAPI document from Go types.
|
Package openapi builds an OpenAPI document from Go types. |
|
openapi/gen
command
Command gen writes docs/openapi.json.
|
Command gen writes docs/openapi.json. |
|
plugin
Package plugin is the client side of a Cartographer plugin: the loaders and previews of the skill, agent, hook and provider points, the acquisition of a source (folder or git repository), the diff of two trees and the provider cells handed to provisioning.
|
Package plugin is the client side of a Cartographer plugin: the loaders and previews of the skill, agent, hook and provider points, the acquisition of a source (folder or git repository), the diff of two trees and the provider cells handed to provisioning. |
|
plugin/core
Package core is the half of the plugin system the server and the Surveyor link: the manifest and its version ranges, the families and the contribution-point registry, the reader and digest of an in-memory tree, the pinned store and the provider descriptor with its resolver.
|
Package core is the half of the plugin system the server and the Surveyor link: the manifest and its version ranges, the families and the contribution-point registry, the reader and digest of an in-memory tree, the pinned store and the provider descriptor with its resolver. |
|
plugin/star
Package star runs the Starlark script of a plugin for a client: plugin.star at the root and the lib/*.star files it loads.
|
Package star runs the Starlark script of a plugin for a client: plugin.star at the root and the lib/*.star files it loads. |
|
plugin/starcore
Package starcore is the server-safe Starlark runtime of a plugin script.
|
Package starcore is the server-safe Starlark runtime of a plugin script. |
|
plugin/starcore/internal/seam
Package seam holds the test seams of the Starlark runtime.
|
Package seam holds the test seams of the Starlark runtime. |
|
plugin/starcore/recipes
Package recipes is the surveyor side of the Starlark runtime: the recipe() registrar of surveyor.star and the call of a recipe's verbs (spec, check, list, fetch).
|
Package recipes is the surveyor side of the Starlark runtime: the recipe() registrar of surveyor.star and the call of a recipe's verbs (spec, check, list, fetch). |
|
plugin/starcore/startest
Package startest is the door of the tests to the test seams of starcore.
|
Package startest is the door of the tests to the test seams of starcore. |
|
pluginserver
Package pluginserver loads the data families of a plugin's server side: roles/ (role templates the operator maps onto KBs) and presets/ (a map contract and its templates, handed out by preset_list).
|
Package pluginserver loads the data families of a plugin's server side: roles/ (role templates the operator maps onto KBs) and presets/ (a map contract and its templates, handed out by preset_list). |
|
procattr
Package procattr sets the process attributes every child of Cartographer shares.
|
Package procattr sets the process attributes every child of Cartographer shares. |
|
provisioning
Package provisioning manages the synchronization of artifacts (skill, agent, hook — D48; instructions — D56; mcp, third-party MCP servers from KBs — D69) between the Cartographer server and the LLM client (CLI or MCP tool).
|
Package provisioning manages the synchronization of artifacts (skill, agent, hook — D48; instructions — D56; mcp, third-party MCP servers from KBs — D69) between the Cartographer server and the LLM client (CLI or MCP tool). |
|
provisioning/contract
Package contract is the wire contract of provisioning.
|
Package contract is the wire contract of provisioning. |
|
repodocs
Package repodocs keeps this repository navigable by a coding agent: the deterministic checks, plus the generators for the decision index and the code map.
|
Package repodocs keeps this repository navigable by a coding agent: the deterministic checks, plus the generators for the decision index and the code map. |
|
repodocs/landertest
Package landertest holds the tests of the scripts that queue, check and land a change (the lander, signoff, ready, requeue, status, the triage and the profiles they read), apart from internal/repodocs so that `go test` runs them in parallel with the documentation checks: the lander tests alone were most of that package's run time.
|
Package landertest holds the tests of the scripts that queue, check and land a change (the lander, signoff, ready, requeue, status, the triage and the profiles they read), apart from internal/repodocs so that `go test` runs them in parallel with the documentation checks: the lander tests alone were most of that package's run time. |
|
repoindex
Package repoindex resolves `{{repo:<key>}}` placeholders (D75) to a local clone path: it scans a set of search roots for git repositories, reads each one's `origin` remote from `.git/config` (no `git` exec — the file is parsed directly, see readOriginURL), and normalizes the remote URL to a canonical "host/owner/name" key that is stable across every machine on the team.
|
Package repoindex resolves `{{repo:<key>}}` placeholders (D75) to a local clone path: it scans a set of search roots for git repositories, reads each one's `origin` remote from `.git/config` (no `git` exec — the file is parsed directly, see readOriginURL), and normalizes the remote URL to a canonical "host/owner/name" key that is stable across every machine on the team. |
|
safewrite
Package safewrite guards client-side writes against symlinks.
|
Package safewrite guards client-side writes against symlinks. |
|
search
Package search implements an in-memory inverted keyword index for KB concepts.
|
Package search implements an in-memory inverted keyword index for KB concepts. |
|
secretscan
Package secretscan finds potential credentials in text: known token formats with their real length and charset, plus a PEM private-key header followed by key material (D1202).
|
Package secretscan finds potential credentials in text: known token formats with their real length and charset, plus a PEM private-key header followed by key material (D1202). |
|
service
Package service manages the cartographer MCP server as a native per-user service: a launchd agent on macOS, a systemd user unit on Linux, a per-user Scheduled Task on Windows (D217).
|
Package service manages the cartographer MCP server as a native per-user service: a launchd agent on macOS, a systemd user unit on Linux, a per-user Scheduled Task on Windows (D217). |
|
settingschema
Package settingschema describes a settings file's keys once, in code (D747): that description is rendered as comments inside the YAML file.
|
Package settingschema describes a settings file's keys once, in code (D747): that description is rendered as comments inside the YAML file. |
|
skill
Package skill loads and validates SKILL.md files (agentskills.io format).
|
Package skill loads and validates SKILL.md files (agentskills.io format). |
|
skillbundle
Package skillbundle embeds the skills shipped inside the binary (bundled/).
|
Package skillbundle embeds the skills shipped inside the binary (bundled/). |
|
sops
Package sops decrypts the sops-encrypted KB secrets a skill runs with: it resolves the references a concept declares and turns them into the skill's environment.
|
Package sops decrypts the sops-encrypted KB secrets a skill runs with: it resolves the references a concept declares and turns them into the skill's environment. |
|
sqlindex
Package sqlindex implements a persistent SQLite-backed keyword index.
|
Package sqlindex implements a persistent SQLite-backed keyword index. |
|
surveyor
Package surveyor is the model client and agent loop of the Surveyor (D1257).
|
Package surveyor is the model client and agent loop of the Surveyor (D1257). |
|
surveyor/connector
Package connector mounts allowed MCP tools.
|
Package connector mounts allowed MCP tools. |
|
surveyor/feed
Package feed handles a feed cursor.
|
Package feed handles a feed cursor. |
|
surveyor/poll
Package poll names units.
|
Package poll names units. |
|
surveyor/recipe
Package recipe lists what changed in a feed Source.
|
Package recipe lists what changed in a feed Source. |
|
surveyor/recipe/recipetest
Package recipetest runs a plugin's recipes against recorded fixtures.
|
Package recipetest runs a plugin's recipes against recorded fixtures. |
|
surveyor/surveyortest
Package surveyortest is the deterministic test double of package surveyor: a scripted Model and a scripted MCP tool caller, with no network.
|
Package surveyortest is the deterministic test double of package surveyor: a scripted Model and a scripted MCP tool caller, with no network. |
|
surveyor/synthesis
Package synthesis is the third task kind of the Surveyor: with nothing left to ingest or repair it reads what the KB holds and proposes what it infers, as Contradiction concepts of a gap kind (a hypothesis is a gap, never a claim).
|
Package synthesis is the third task kind of the Surveyor: with nothing left to ingest or repair it reads what the KB holds and proposes what it infers, as Contradiction concepts of a gap kind (a hypothesis is a gap, never a claim). |
|
surveyor/system
Package system diffs the state of a live system.
|
Package system diffs the state of a live system. |
|
surveyorconfig
Package surveyorconfig holds the key table of the Surveyor config file: the one list of keys the file accepts.
|
Package surveyorconfig holds the key table of the Surveyor config file: the one list of keys the file accepts. |
|
testkbs
Package testkbs generates the synthetic test KBs `make dev` serves (D818, D1032): eleven KBs, built to put every Atlas view in a state worth looking at — Maps with every contract key, work in every status, sources, contradictions, services, secrets, artifacts, placeholders, planted lint defects, a git history with revisions, moves and repairs, and the local state (lint trend, search misses, conflicts, usage) the server keeps beside the repository.
|
Package testkbs generates the synthetic test KBs `make dev` serves (D818, D1032): eleven KBs, built to put every Atlas view in a state worth looking at — Maps with every contract key, work in every status, sources, contradictions, services, secrets, artifacts, placeholders, planted lint defects, a git history with revisions, moves and repairs, and the local state (lint trend, search misses, conflicts, usage) the server keeps beside the repository. |
|
testkbs/gen
command
Command gen writes the testkbs fleet to a data directory: one subdirectory per KB (`go run ./internal/testkbs/gen <dir>`), and beside them the client settings report of an imaginary workstation (client-report.json, not a KB) and the bodies of a synthetic Surveyor (surveyor-*.json).
|
Command gen writes the testkbs fleet to a data directory: one subdirectory per KB (`go run ./internal/testkbs/gen <dir>`), and beside them the client settings report of an imaginary workstation (client-report.json, not a KB) and the bodies of a synthetic Surveyor (surveyor-*.json). |
|
testtree
Package testtree snapshots a directory tree in memory and restores it elsewhere.
|
Package testtree snapshots a directory tree in memory and restores it elsewhere. |
|
tray
Package tray is the core of the status icon: the health model of the local server or, on a machine with no local service, of the server the client is connected to, the poll loop that keeps it current and the generated monochrome icons.
|
Package tray is the core of the status icon: the health model of the local server or, on a machine with no local service, of the server the client is connected to, the poll loop that keeps it current and the generated monochrome icons. |
|
updatecheck
Package updatecheck answers whether a newer release exists and how to upgrade (D254): the latest tag from the GitHub release list, cached for 24 hours and failing silent, and the install channel the running binary came from.
|
Package updatecheck answers whether a newer release exists and how to upgrade (D254): the latest tag from the GitHub release list, cached for 24 hours and failing silent, and the install channel the running binary came from. |
|
webui
Package webui serves the embedded read-only Atlas UI (D227).
|
Package webui serves the embedded read-only Atlas UI (D227). |
|
webui/gen
command
Command webui-provenance fingerprints the Atlas bundle: it writes internal/webui/dist/provenance.json with the hash of the web/ source tree.
|
Command webui-provenance fingerprints the Atlas bundle: it writes internal/webui/dist/provenance.json with the hash of the web/ source tree. |
|
wsl
Package wsl detects when the process runs inside WSL.
|
Package wsl detects when the process runs inside WSL. |