Knowledge Base updated: 2026-11-22
HOL Guard knowledge base
HOL Guard is a multi-language security system for AI-agent and developer-tool workflows. Its Rust runtime owns enforcement, policy, persistence, daemon services, and native execution; Python and plugin surfaces provide scanner and integration capabilities; the dashboard exposes operator workflows.
Critical local state is primarily held in the runtime's SQLite-backed Guard store, including approvals, policy activation, cloud review delivery, command queues, receipts, and recovery markers. Signed or synchronized policy and managed-control inputs feed the runtime's authoritative decision paths.
The main reader routes are scanner analysis, enforcement and interception, policy and cloud operations, daemon persistence, dashboard operations, integrations, native runtime authority, deployment, and context assistance.
flowchart TD
Agents[AI agents and developer tools] --> Adapters[Adapters, hooks, proxies, and shims]
Adapters --> Runtime[Rust Guard runtime]
Runtime --> Decisions[Policy and approval decisions]
Runtime --> Native[Native command authority]
Native --> Queue[Managed command queue]
Runtime --> Store[(SQLite Guard store)]
Runtime --> Daemon[Local daemon]
Daemon --> Cloud[Cloud policy and review services]
Cloud --> Policy[Signed policy bundles and exceptions]
Policy --> Decisions
Runtime --> Contained[Contained execution]
Runtime --> Evidence[Receipts and evidence]
Evidence --> Dashboard[Dashboard operator workspaces]
Dashboard --> Cloud
Scanner[Scanner and plugin analysis] --> Evidence
Context[Context assistance and CIGAR] --> Runtime
Glossary
- Guard store — the runtime-managed local SQLite state used for operational records, recovery, and projections.
- Native runtime — the Rust authority boundary that evaluates and admits commands across direct and hook-facing paths.
- Contained execution — supervised execution with process, filesystem, and evidence boundaries.
- Cloud review — remote review delivery and feedback for Guard actions.
- CIGAR — the context-assistance artifact and managed-environment subsystem.
Codebase-wide invariants
- Enforcement decisions must be produced at an interception boundary rather than only rendered to clients; evidence is represented across rust/…/hook_*.rs and rust/…/native_*.rs.
- Durable runtime workflows preserve recoverable state in the Guard store; storage operations are concentrated under rust/…/guard_store_*.rs.
- Policy activation and command admission consume authoritative policy state, with integrity and authority logic under rust/…/policy_*.rs.
- Cloud-facing delivery must retain enough identity and state to retry or recover; cloud event and review persistence are represented by rust/…/cloud_event_command.rs and rust/…/guard_store_cloud_*.rs.
- Dashboard controls remain clients of runtime and service contracts, with feature workflows grouped under
dashboard/src/**.
Routing table
python/**/scanner/**-> docs/security-scanner-and-plugin-analysis.mdpython/**/ecosystem*/**-> docs/ecosystem-detection-and-adapters.mdpython/**/checks/**-> docs/scanner-security-checks-and-rules.md- rust/…/guard_store_aibom_*.rs -> docs/ai-bom-and-agent-inventory.md
- rust/…/decision_*.rs -> docs/guard-decision-and-enforcement.md
- rust/…/approval_*.rs -> docs/approval-gates-and-scope-resolution.md
- rust/…/hook_*.rs -> docs/runtime-hooks-proxies-and-shims.md
- rust/…/secret_*.rs -> docs/secret-read-risk-controls.md
- rust/…/eval_*.rs -> docs/evaluation-and-assurance-workflows.md
- rust/…/contained_*.rs -> docs/contained-execution-and-runtime-boundaries.md
- rust/…/policy_*.rs -> docs/policy-authority-and-cloud-exceptions.md
- rust/…/policy_bundle_*.rs -> docs/policy-bundles-integrity-and-sync.md
- rust/…/cloud_exception_*.rs -> docs/cloud-exception-request-workflow.md
- rust/…/cloud_event_*.rs -> docs/cloud-review-delivery-and-recovery.md
- rust/…/business_policy_*.rs -> docs/business-policy-documents-and-recovery.md
- rust/…/daemon_*.rs -> docs/daemon-and-local-service-lifecycle.md
- rust/…/guard_store_*.rs -> docs/local-storage-and-recovery.md
- rust/…/activity_*.rs -> docs/command-activity-and-evidence.md
- rust/…/command_activity_*.rs -> docs/command-activity-persistence-and-api.md
dashboard/src/**-> docs/dashboard-product-workspaces.mddashboard/src/review-*.{ts,tsx}-> docs/dashboard-review-and-approval-workflow.mddashboard/src/evidence/**-> docs/dashboard-evidence-and-activity-analytics.md- rust/…/package_*.rs -> docs/supply-chain-and-package-firewall.md
rust/crates/guard-runtime/src/adapters/**-> docs/agent-and-tool-integrations.md- rust/…/*mcp*.rs -> docs/mcp-discovery-provider-governance-and-skills.md
- rust/…/native_*.rs -> docs/native-runtime-authority.md
- rust/…/resident_*.rs -> docs/native-runtime-residency-and-recovery.md
rust/crates/guard-runtime/src/native_exact_action_op/**-> docs/native-command-evaluation-and-classification.md- rust/…/managed_resident*.rs -> docs/managed-extension-controls.md
dashboard/src/extension-control/**-> docs/extension-control-center.mdrust/crates/**/mdm/**-> docs/device-management-and-deployment.md- rust/…/cloud_device_*.rs -> docs/cloud-device-control-integration.md
- rust/…/command_source_*.rs -> docs/native-command-source-programs.md
- rust/…/command_pack_*.rs -> docs/native-command-catalog-and-pack-lifecycle.md
rust/crates/**/plugin*/**-> docs/plugin-packaging-and-release.mdrust/crates/**/plugin_kit/**-> docs/plugin-kit-validation-installation-and-telemetry.md- rust/…/context_assistance*.rs -> docs/context-assistance-and-cigar-integration.md
dashboard/src/context-assistance/**-> docs/context-assistance-broker-and-workspace-workflows.md- rust/…/cigar_*.rs -> docs/cigar-artifact-installation-and-release.md
- rust/…/cloud_actions_*.rs -> docs/cloud-actions-connectivity-and-operations.md
- rust/…/cloud_action_pack_*.rs -> docs/cloud-action-packs-and-evaluation.md
- rust/…/swarm_*.rs -> docs/agent-swarm-orchestration.md
rust/crates/guard-runtime/src/command_{job_plan,queue_repair,result,state}*.rs-> docs/native-command-jobs-and-queue-execution.md