Skip to main content

Current architecture and knowledge layout

Owner: repository owner. Scope: the AI Agents repository and operating model. State: implemented for review on the current branch; integration and publication are separate.

Source ownership​

AGENTS.md starts a person or AI session and links project context, contribution process, current knowledge, decision history and the assigned work home. PROJECT.md owns project facts; engineering/process/ owns selected phase procedures. CONTRIBUTING.md owns repository contribution requirements and links actual tools/check commands. No YAML manifest is needed for this route. The process index selects relevant steps; folders and step counts remain adaptable.

Reusable agents and skills live in agents/ and skills/. toolkit/ owns cross-cutting policy, quality, recovery and host-adapter guidance. templates/ supplies adaptable project entries, AGENTS.md variants and engineering records. tools/ and tests/ implement and verify local catalog, export and work-record behavior.

Knowledge and decisions​

knowledge/ owns this repository's current project knowledge and rationale. Decisions remain in decisions/ with status, owner, context, alternatives, consequences and source links. Accepted replacements link both records. Shared scope, acceptance and feedback stay at the assigned issue or PR; personal execution steps stay private, subject to customer policy; a bounded handoff points to the relevant revisions. See ADR-0003 for this proposed arrangement and ADR-0007 for the phase-procedure migration. Use knowledge lifecycle for retention and retrieval.

Preferred execution surface​

The local runtime CLI configures separate systemd user services for Herdr and OpenCode. ADR-0008 records the lifecycle decision. The CLI manages availability; the assigned work and process sources still govern dispatch.

Sessions discover and use Herdr whenever its executable and selected server are usable. The Herdr policy defines verified model/effort routes, labelled tabs, isolated writers and adaptive capacity. Complex judgment uses strong approved models with high reasoning; bounded work uses economical routes and mechanical coordination uses native commands. An unavailable tool is reported concretely. This is a session execution policy, not an automatic provider benchmark or a new scheduler.

Native expertise and orchestration​

Focused presets register only the selected native profiles. The Herd adapter emits commander packages and portable schema-v2 import files, carrying selected skill bindings and an on-demand catalog reference. Host configuration owns providers, worker routing, permissions and execution; the toolkit is an exporter, not a fleet runtime.

The orchestration guide defines bounded task packets, multiple lead responsibilities, integration and installed-host checks. The integration guide separates native Ponytail/Graphify use from curated Docusaurus publication. ADR-0006 records the proposed adapter and expertise approach.

Documentation and optional local tools​

website/generate.py selects canonical Markdown for Docusaurus and rewrites local links. The website is a derived reading view, with edit links to the maintained source. docs/ is existing generated Pages output. A public website cannot expose private customer sources.

The trusted publication configuration selects a curated knowledge source, public route and sidebar for both the graph CLI and Docusaurus. Relative source slugs are portable; existing leading-slash slugs normalize to the same route. The actual ADR template is checked against both current and legacy publishers.

Local documentation search indexes only generated public documentation/catalog pages; it does not discover private files or load the customer graph corpus into the browser. Its results link back to the maintained reading views.

The example knowledge map starts with aggregate areas. Record lists and one-hop neighborhoods use bounded JSON pages fetched on demand, with versioned snapshot URLs, explicit result counts and retryable errors. Its build still processes the full published Markdown collection. ADR-0005 records the proposed retrieval contract and the boundary to an indexed service for larger collections.

The optional workbench still stores records in ignored workspace/work/ and archives in workspace/archive/. Its --workspace argument means the project root. Existing YAML validation and customer examples remain compatibility tools; neither is required for a new AGENTS.md project. The toolkit runs no models and provides no distributed work lock.

Export inclusion uses an explicit supported source-type policy and excludes recognized credential/private/local-state paths before reading their contents. This is not content secret scanning; review otherwise publishable sources. Work-record writes recheck hashes after temporary-file preparation, and create operations cannot replace a competing creator. These local guards narrow races without supplying cross-process compare-and-swap.

Update this page when source ownership, runtime storage, publication or entry behavior changes. Validate using the runbook and CI on the affected revision.


Canonical source: knowledge/architecture.md.