Skip to main content
This glossary defines the technical terms, abbreviations, and domain-specific concepts used throughout the Palyra codebase. It serves as a reference for onboarding engineers to bridge the gap between high-level architectural descriptions and specific implementation details.

Core System Concepts

Gateway Runtime State

The central in-memory state of the palyrad daemon. It orchestrates the lifecycle of sessions, runs, and the routing of messages between inbound channels (e.g., Discord, CLI) and the LLM provider.

Journal Store

The persistence layer for all system events, audit logs, and agent memory. It uses an append-only logic backed by SQLite with hash-chaining to ensure audit integrity.

Orchestrator Tape

A linear sequence of events belonging to a specific “Run”. It includes the prompt, LLM responses, tool calls, and tool outputs. It acts as the “memory” of a single conversation turn.

Security & Governance

Cedar Policy Engine

The authorization layer that evaluates whether a principal (user/agent) is allowed to perform an action (e.g., execute a tool) on a resource.

Tool Sandboxing Tiers

Palyra categorizes tool execution into three isolation tiers to balance performance and security.

Vault

A secure storage abstraction for secrets (API keys, tokens). It supports platform-specific backends like macOS Keychain or Linux Secret Service.

Technical Domain Map

Natural Language to Code Entity Space

The following diagram maps high-level user concepts to the specific Rust structs and Protobuf definitions that implement them. System Concept Mapping Sources: crates/palyra-daemon/src/gateway.rs#50-54, crates/palyra-daemon/src/tool_protocol.rs#4-6, crates/palyra-vault/src/lib.rs#28-28

Data Flow & Lifecycle

Run State Machine (RSM)

The RSM manages the lifecycle of an AI interaction, transitioning through states like Pending, Running, AwaitingApproval, and Completed. Run Lifecycle Transitions Sources: crates/palyra-daemon/src/gateway.rs#77-77, crates/palyra-daemon/src/orchestrator.rs#1-100

Key Abbreviations

AbbreviationFull TermDescriptionCode Pointer
ACPAgent Control ProtocolProtocol for external tools to control the daemon via stdio/gRPC.crates/palyra-cli/src/cli.rs#1-2
A2UIAgent-to-User InterfaceJSON-patch based protocol for rendering dynamic UIs in the console.crates/palyra-a2ui/src/lib.rs#1-15
CDPChrome DevTools ProtocolUsed by browserd to automate headless Chromium.crates/palyra-browserd/Cargo.toml#1-20
mTLSMutual TLSUsed for secure Node-to-Daemon communication.crates/palyra-daemon/src/gateway.rs#116-121
TOFUTrust On First UseSecurity model for pairing new devices or installing skills.crates/palyra-identity/src/lib.rs#1-10

System Components Relationship

This diagram illustrates how the various daemons and libraries interact within the monorepo. Crate Architecture Sources: Cargo.toml#1-21, apps/desktop/src-tauri/src/supervisor.rs#1-50

Configuration Terms

Redacted Config Path

A set of hardcoded paths in palyra.toml that the system ensures are never logged or returned in plain text via the Admin API.

Cron Schedule Types

Definitions for recurring background tasks. Sources: crates/palyra-common/src/daemon_config_schema.rs#1-81, crates/palyra-daemon/src/journal.rs#102-128