Guard architecture
HOL Guard lives inside hashgraph-online/ai-plugin-scanner and uses the scanner's evidence pipeline as the trust core. The product loop starts with local harness installs and launch interception rather than CI.
Runtime layersDirect link to Runtime layers
The runtime is split into:
guard/adaptersfor harness discovery across Codex, Claude Code, Cursor, Gemini, and OpenCodeguard/shimsfor launcher overlays that route harness launches through Guardguard/consumerfor detection, policy evaluation, and local outputguard/policyfor action resolutionguard/receiptsfor first-use and changed-artifact evidenceguard/runtimefor wrapper-mode launch orchestration and optional syncguard/storefor SQLite persistence of snapshots, diffs, receipts, installs, and sync state
Artifact evaluation orderDirect link to Artifact evaluation order
Guard evaluates local artifacts in this order:
- discover harness config and managed artifacts
- normalize each artifact into a stable snapshot
- compare against the last stored snapshot
- resolve the effective policy action
- record a receipt and optional diff
- launch the harness only if the action is not
block
Product loopDirect link to Product loop
The current local loop is:
hol-guard bootstrapdetects supported harnesseshol-guard install <harness>creates the local launcher shimhol-guard run <harness>evaluates changes before launchhol-guard receiptsandhol-guard statusexpose local evidence and current statehol-guard loginandhol-guard syncstay optional
What config mutation is limited toDirect link to What config mutation is limited to
Wrapper mode is still the core execution strategy in this phase. Config mutation is intentionally limited. Claude Code is the notable exception, where Guard can add and remove its own hook entry in workspace-local settings.
Why this matters for docsDirect link to Why this matters for docs
The architectural split explains why the user-facing docs are also split:
- Guard docs focus on harness installs, approvals, receipts, and local policy
- scanner docs focus on maintainer and CI quality gates
- GitHub Action docs focus on workflow wiring and outputs