// concepts · diagrams

Architecture diagrams

Visual flows for the mechanisms that build trust: harness, approval, memory, channels and skills.

Action-or-Terminate harness

Goal

A user or channel supplies a task and exit criteria.

Next action

The model can only emit a valid tool-call or terminal signal.

Verification

The harness validates schema, approval, sandbox and observable effect.

Completion

task_complete passes only when gates and exit criteria pass.

Approval and sandbox

ToolSpec

danger classifies safe, sensitive or dangerous.

Policy

manual/smart/yolo decides go/no-go.

Execution

The tool runs on the allowed backend and emits audit events.

Rollback

Writes pass through checkpoints and can be reverted.

Memory

Observation

Explicit facts and conversation signals become candidates.

Indexing

FTS5, embeddings or Honcho organize retrieval.

Injection

The context builder adds task-relevant memory.

Curation

Consolidation and rollback prevent context drift.

Channels

Adapter

Terminal, Telegram, Paperclip or API normalizes input.

Router

Origin selects the right agent and session.

Gateway

Queue, nonce, approval and resume stay centralized.

Reply

Text, voice or status returns through the same channel.

Skills

Catalog

The prompt receives lightweight name, description and triggers.

Selection

use_skill loads full SKILL.md when relevant.

Contract

Some skills become mandatory gates, such as UI.

Audit

Real file, scan and individual page document the capability.

Open this page in the interactive docs