Introducing a new way to review your PRs.

Read the announcement

hashgraph-online / hol-guard

Open-source antivirus and firewall for AI agents: block risky tools, secret access, prompt injection, malicious packages, MCP servers, plugins, and skills at runtime.

View on GitHub

44 documents · Updated Nov 23, 2026

docs / extension-control-center

Extension control center

The Extension control center is the operator surface for managed extension protection. It joins the Guard daemon's catalog and effective-state interfaces with a dashboard where an operator can inspect an extension, test a command, prepare local settings, review their real effect, apply an approved change, and repair an unhealthy authority. It also gives the operator one place to review connectors detected on the device, tools added by the operator, and clearly marked extension discovery content. It is part of the managed extension controls flow and appears within the wider dashboard product workspaces experience.

Control center surface

The control center has two parts. The daemon provides the trusted view of catalog facts and effective controls. The dashboard turns that view into an overview, extension detail, policy, activity, custom extension, discovery, and recovery experience. The dashboard treats the daemon as the source of policy truth rather than re-creating command decisions locally (src/…/extension_control_api.py• L179-360, dashboard/…/protection-center-workspace.tsx• L127-168, dashboard/…/extensions-overview.tsx• L75-86).

The main operator paths are:

SurfacePurpose
/extensionsBrowse the catalog, review the extension spotlight, search command patterns, filter tools, and add or review custom local extensions.
/extensions/<extension-id>Inspect one extension and its protection source.
/extensions/local-cli/<id>Inspect a detected connector or locally added tool and choose its permissions.
PermissionsDraft a local recommendation, allow, or block state for changeable permissions.
Managed controlsUnderstand controls supplied by Guard Cloud or an organization.
ActivityOpen matching Guard receipts and run a safe command check.
Commands and Test LabReview command rules and simulate a command decision without execution.
Technical detailsInspect catalog identifiers, rules, versions, and detection facts.

Custom extension catalog

The custom extension catalog gives locally detected connectors and operator-added tools the same review entry point as built-in extensions. The overview keeps this entry point available through a shared list switch, shows the number of items waiting for a permission decision, and returns the operator to the custom list after an add or setup action (dashboard/…/extensions-list-switch.tsx• L3-26, dashboard/…/extensions-overview.tsx• L263-286, dashboard/…/extensions-overview.tsx• L386-420).

It keeps the add action visible even when no custom extension exists. It groups items that need review before reviewed items and opens each item in a permission view. Host connector discovery runs separately from the list, reports a retry path when it cannot read host configuration, and keeps known connections available while a new check fails (dashboard/…/custom-extensions-section.tsx• L54-113, dashboard/…/custom-extensions-section.tsx• L149-225, dashboard/…/extensions-catalog-rows.tsx• L111-132, dashboard/…/extensions-catalog-rows.tsx• L198-220).

Long lists show a small preview and provide search or an explicit expansion. Larger lists use bounded pages after expansion. Catalog filters narrow what is shown but do not remove the review signal from the list switch. This keeps an item that needs a decision visible even when the operator is viewing the other list (dashboard/…/custom-extensions-section.tsx• L149-180, dashboard/…/custom-extensions-section.tsx• L243-280, dashboard/…/extensions-overview.tsx• L274-285).

References: dashboard/…/custom-extensions-section.tsx• L54-113 dashboard/…/custom-extensions-section.tsx• L149-225 dashboard/…/custom-extensions-section.tsx• L243-280 dashboard/…/extensions-catalog-rows.tsx• L111-132 dashboard/…/extensions-catalog-rows.tsx• L198-220 dashboard/…/extensions-list-switch.tsx• L3-26 dashboard/…/extensions-list-switch.tsx• L27-79 dashboard/…/extensions-overview.tsx• L263-286 dashboard/…/extensions-overview.tsx• L386-420

Extension spotlight

The extension spotlight is a short review surface at the top of the catalog. It gives the operator three extensions to inspect and states why each appears, using paid placement, recent device activity, or a declared starter selection as separate sources of meaning (dashboard/…/extensions-spotlight-model.ts• L9-18, dashboard/…/extensions-spotlight-model.ts• L123-185).

Paid cards are labeled and can change position only. They do not change effective protection or count as device coverage. When paid content does not fill the shelf, the dashboard uses bounded local activity and then a fixed catalog selection. It suppresses unknown extension IDs and avoids presenting the starter selection as a popularity ranking (dashboard/…/extensions-spotlight.tsx• L32-42, dashboard/…/extensions-spotlight.tsx• L67-118, dashboard/…/extensions-spotlight-model.ts• L188-229).

The shelf can also show a clearly marked promotion slot. The slot does not claim that inventory is open unless the feed confirms it, does not quote a price or count without matching evidence, and is hidden while discovery is loading or disabled. The slot never displaces a paid card (dashboard/…/extensions-spotlight-model.ts• L232-265, dashboard/…/extensions-spotlight-model.ts• L267-345, dashboard/…/extensions-spotlight.tsx• L184-235, dashboard/…/extensions-spotlight.tsx• L281-385).

References: dashboard/…/extensions-spotlight-model.ts• L9-18 dashboard/…/extensions-spotlight-model.ts• L123-185 dashboard/…/extensions-spotlight-model.ts• L188-229 dashboard/…/extensions-spotlight-model.ts• L232-345 dashboard/…/extensions-spotlight.tsx• L32-42 dashboard/…/extensions-spotlight.tsx• L67-118 dashboard/…/extensions-spotlight.tsx• L184-235 dashboard/…/extensions-spotlight.tsx• L281-385

Extension discovery feed

The discovery feed is a device-local view of optional placement data. The dashboard polls the daemon while the Extensions page is active and visible, validates the projection, and joins placements to the local extension catalog before it renders them. A placement for an unknown or expired catalog item does not become a paid card (dashboard/…/extensions-discovery-feed.ts• L11-16, dashboard/…/extensions-discovery-feed.ts• L22-59, dashboard/…/extensions-discover-model.ts• L133-170, dashboard/…/extensions-discover-model.ts• L194-216).

The feed has explicit states for loading, unavailable, rate limited, offline, and opt-out. Failure hides paid content rather than turning missing data into a claim that a slot is vacant. The dashboard keeps management and protection usable when discovery is unavailable, and it separates featured placement from sponsored catalog placement (dashboard/…/extensions-discover-model.ts• L72-78, dashboard/…/extensions-discovery-feed.ts• L30-57, dashboard/…/extensions-overview.tsx• L334-347, dashboard/…/extensions-spotlight.tsx• L393-427).

Paid content is joined to the same catalog rows used for protection review. A paid row keeps the extension's real state, rules, permissions, and managed source. Its label and placement explain the commercial position without changing the policy projection (dashboard/…/extensions-catalog-rows.tsx• L24-61, dashboard/…/extensions-catalog-rows.tsx• L65-109, dashboard/…/extensions-overview.tsx• L192-225, dashboard/…/extensions-spotlight.tsx• L430-468).

References: dashboard/…/extensions-discovery-feed.ts• L11-16 dashboard/…/extensions-discovery-feed.ts• L22-59 dashboard/…/extensions-discovery-feed.ts• L61-95 dashboard/…/extensions-discover-model.ts• L72-78 dashboard/…/extensions-discover-model.ts• L133-170 dashboard/…/extensions-discover-model.ts• L172-216 dashboard/…/extensions-catalog-rows.tsx• L24-61 dashboard/…/extensions-catalog-rows.tsx• L65-109 dashboard/…/extensions-overview.tsx• L192-225 dashboard/…/extensions-overview.tsx• L334-347

The dashboard keeps extension detail state in the URL. This makes a selected tab, search, filter, sort order, or rule linkable and restorable. Detail views can narrow permissions and rules by risk, state, source, configurability, or deprecation status. Catalog aliases resolve to the canonical extension route, while malformed or unknown IDs fail closed. Older detail links are mapped to the current Protection Center tabs so the operator does not lose the requested extension (dashboard/…/extension-control-center-model.ts• L11-23, dashboard/…/extension-control-center-model.ts• L53-124, dashboard/…/extension-control-center-model.ts• L304-364, dashboard/…/protection-module-detail.tsx• L18-33).

References: dashboard/…/extension-control-center-model.ts• L11-23 dashboard/…/extension-control-center-model.ts• L53-124 dashboard/…/extension-control-center-model.ts• L304-364 dashboard/…/extensions-overview.tsx• L84-169 dashboard/…/protection-module-detail.tsx• L18-33

Daemon interfaces

The daemon exposes bounded local HTTP interfaces for catalog inspection, effective state, history, safe testing, command inspection, mutation preview, mutation apply, refresh, and authority recovery. Requests pass through the daemon's local authentication and origin checks. Catalog responses advertise their limits and reject oversized payloads. Control-state reads are read-only and use the runtime snapshot when the authority lease is busy, so dashboard polling does not change stored authority (src/…/extension_control_api.py• L179-315, src/…/extension_control_api.py• L461-769, src/…/server.py• L2634-2651).

The native extension-control boundary is the single decision path behind these interfaces. It composes control layers, resolves command and projection scenarios, previews proposed layers, validates mutations, and computes the digests used by approval and replay. Python builds the request and checks the strictly bound reply. It does not make a second policy decision (src/…/native_extension_control.py• L1-9, src/…/native_extension_control.py• L390-470, src/…/native_extension_control.py• L567-595, src/…/native_extension_control.py• L743-831).

The interface groups map to operator intent:

GroupResult
Catalog and effective stateThe extension catalog plus the current local and managed control layers.
HistoryEarlier authenticated device settings that can become a new draft.
Test and inspectionA side-effect-free answer for one command under the current state.
Preview and applyA proof-bound path from proposed local settings to committed authority.
Refresh and recoveryA new read of authority or a proof-bound repair of unhealthy authority.

The dashboard API wrapper is the client boundary for these interfaces. It validates catalog, effective-state, history, preview, apply, and recovery responses before the rest of the dashboard uses them. The boundary checks canonical IDs, bounded collection sizes, supported enum values, relationship ownership, duplicate targets, catalog digests, and projection metadata. It also accepts MCP extension details such as launch mode and tool defaults, so the dashboard can represent these extensions without treating their data as untrusted display text (dashboard/…/extension-controls-api.ts• L330-465, dashboard/…/extension-controls-normalize.ts• L15-35, dashboard/…/extension-controls-normalize.ts• L144-255, dashboard/…/extension-controls-normalize.ts• L257-353, dashboard/…/extension-controls-normalize.ts• L356-448).

Preview and apply may prepare an extension pack before a change is committed. This preparation can use local activation state and a signed publication, so the daemon reports a stable preparation error with a safe recovery action when the pack, release, storage, or installed runtime cannot provide that state. The error omits paths and exception text from the operator response while recording bounded diagnostic detail in the daemon log (src/…/extension_control_preparation_failure.py• L1-15, src/…/extension_control_preparation_failure.py• L114-148, src/…/extension_control_errors.py• L26-52).

Client wait budgets cover the daemon's authority reads, resident checks, preview work, commit planning, and transport margin. This keeps a client from reporting an apply as failed while the daemon is still able to commit it (src/…/extension_control_timeouts.py• L1-13, src/…/extension_control_timeouts.py• L40-61).

The daemon now uses a resident authority service as the only verifier for the stored authority. Python sends the authority request with its key and anchor, then accepts only a reply bound to that request. A resident outage is reported as unavailable rather than as a security verdict. The service also performs protected writes and commit work for authority records (src/…/native_extension_control_authority.py• L1-13, src/…/native_extension_control_authority.py• L71-154, src/…/native_extension_control_authority.py• L157-204).

References: src/…/extension_control_api.py• L179-360 src/…/extension_control_api.py• L461-769 src/…/extension_control_errors.py• L9-71 src/…/extension_control_preparation_failure.py• L114-148 src/…/extension_control_timeouts.py• L19-61 src/…/native_extension_control.py• L1-9 src/…/native_extension_control.py• L390-470 src/…/native_extension_control.py• L567-595 src/…/native_extension_control.py• L743-831 src/…/native_extension_control_authority.py• L1-204 dashboard/…/extension-controls-api.ts• L330-465 dashboard/…/extension-controls-normalize.ts• L15-35 dashboard/…/extension-controls-normalize.ts• L144-255 dashboard/…/extension-controls-normalize.ts• L257-353 dashboard/…/extension-controls-normalize.ts• L356-448

Effective control projection

An effective control projection is the dashboard-safe account of what each extension and permission does now. It shows the effective state, the explicit local state, the explicit managed state, and short reason codes. It is calculated with the same resident decision engine that guards command evaluation, so the dashboard and enforcement path use one policy result (src/…/extension_control_projection.py• L45-128, src/…/managed_controls_api.py• L44-74). Managed-control metadata adds the control set, workspace, authority mode, and acknowledgement state needed for operator review (dashboard/…/extension-controls-api.ts• L179-210, dashboard/…/extension-managed-controls-panel.tsx• L96-157).

The native projection resolves bounded pages of catalog targets. It takes target identities and catalog facts from the trusted registry, then pairs each native answer with the matching extension or permission. A malformed, incomplete, or unbound native answer is not a usable projection (src/…/native_extension_control.py• L473-564).

The control model has two policy layers:

LayerMeaning
Local adminDevice settings that an operator can draft and apply.
Signed cloudTrusted managed settings that the device reads but cannot weaken.

Disable state wins when layers disagree. A global lockdown also blocks normal command evaluation. Dependencies and implied permissions expand the target being resolved, while bad authority, catalog mismatch, unknown targets, non-canonical targets, or other decision failures produce a fail-closed result (src/…/extension_control_authority.py• L32-68, src/…/extension_control_runtime.py• L114-142).

The in-memory runtime holds one immutable snapshot and swaps it as a unit after refresh or commit. Each snapshot carries health, revision, catalog identity, and an effective digest. Protected revisions cannot move backward or change at the same revision, while recovery can replace a poisoned revision floor only after the authority is authenticated (src/…/extension_control_runtime.py• L42-63, src/…/extension_control_runtime.py• L145-253). The authority store also binds each catalog target to a trusted contract manifest. A package change can therefore trigger safe target migration even when the catalog digest does not change (src/…/store_extension_control_manifest.py• L17-41, src/…/store_extension_control_manifest.py• L44-108, src/…/store_extension_control_authority.py• L877-919).

The overview uses this projection to show whether an extension is allowed, blocked, required, managed, under lockdown, or unavailable. It also shows whether the source is Guard, this device, Guard Cloud, or a managed workspace. A mixed result remains visible: a local block can be shown beside a managed control instead of hiding either source (dashboard/…/extension-control-center-model.ts• L157-269, dashboard/…/extension-managed-controls-panel.tsx• L103-157, dashboard/…/extensions-overview.tsx• L36-68). Permission and rule views use the same effective result while grouping related permissions by their declared family. This lets an operator review a command area as a unit without losing the individual permission records (dashboard/…/extension-control-center-model.ts• L272-292, dashboard/…/extension-control-center-model.ts• L383-424).

The authority store now treats the native resident as the source of truth for authenticated reads and writes. It uses the resident to restore or resume a valid authority, compose managed controls, and report tampering or service outage as different states. Python keeps the operator view fail-safe while it handles the action requested by the resident (src/…/store_extension_control_authority_reads.py• L38-155, src/…/store_extension_control_authority_reads.py• L269-391, src/…/store_extension_control_authority_support.py• L53-72).

References: src/…/extension_control_projection.py• L45-128 src/…/managed_controls_api.py• L44-74 src/…/native_extension_control.py• L473-564 src/…/extension_control_authority.py• L32-68 src/…/extension_control_runtime.py• L42-63 src/…/extension_control_runtime.py• L145-253 src/…/store_extension_control_manifest.py• L17-108 src/…/store_extension_control_authority.py• L877-919 src/…/store_extension_control_authority_reads.py• L38-155 src/…/store_extension_control_authority_reads.py• L269-391 src/…/store_extension_control_authority_support.py• L53-72 dashboard/…/extension-control-center-model.ts• L157-269 dashboard/…/extension-control-center-model.ts• L272-292 dashboard/…/extension-control-center-model.ts• L383-424 dashboard/…/extension-managed-controls-panel.tsx• L103-157

Semantic preview

Semantic preview explains the result of a proposed local change before it is applied. It compares the current and proposed layers through the production decision engine. It does not run a command and does not change detector facts (src/…/extension_control_semantic_preview.py• L1-6, src/…/extension_control_semantic_preview.py• L178-185).

The native preview uses the same resolver for the current and proposed layers. It also produces the changed targets used by audit records, so the review result and the later evidence refer to the same semantic change (src/…/native_extension_control.py• L567-627).

For each changed target, the preview can show:

  • The explicit state before and after the draft.
  • The effective state before and after the draft.
  • The permissions, rules, and extensions affected through relationships.
  • Baseline risk and the minimum built-in treatment.
  • The source of the result and warnings about stronger policy, conflicts, or dependent changes.

The preview also gives totals for newly blocked permissions, newly allowed permissions, and all effective changes. The dashboard uses those totals in a review sheet. The sheet requires the operator to authenticate the exact change before apply (dashboard/…/extension-controls-api.ts• L257-310, dashboard/…/extension-policy-panel.tsx• L173-300).

When a proposed change needs a new extension pack, preview stages that pack as an expiring candidate. The candidate carries the prepared catalog and activation change into the proof and apply steps without committing either one. Apply refuses an expired candidate or a changed managed layer, then commits the control authority and activation as one bound operation (src/…/extension_control_prepared.py• L84-92, src/…/extension_control_prepared.py• L105-200, src/…/extension_control_api.py• L498-535, src/…/extension_control_api.py• L589-639).

References: src/…/extension_control_semantic_preview.py• L178-185 src/…/native_extension_control.py• L567-627 src/…/extension_control_api.py• L461-553 src/…/extension_control_api.py• L589-639 src/…/extension_control_prepared.py• L84-92 src/…/extension_control_prepared.py• L105-227 dashboard/…/extension-controls-api.ts• L257-310 dashboard/…/extension-controls-api.ts• L441-464 dashboard/…/extension-policy-panel.tsx• L173-300

Draft and rebase flow

The policy editor holds a local draft separate from effective authority. Each change uses one of three plain-language settings: Recommended follows Guard defaults, Allow is available only when stronger policy permits it, and Block adds a stricter local floor. The draft does not change Guard until the operator reviews and applies it (dashboard/…/extension-policy-draft.ts• L7-18, dashboard/…/extension-policy-panel.tsx• L351-365). Quick apply uses the same draft path for groups of changeable settings. It skips fixed or managed blocks and keeps every result in draft until review and approval (dashboard/…/extension-policy-panel.tsx• L357-364, dashboard/…/extension-policy-panel.copy.test.tsx• L25-34). An operator must confirm before leaving a view with unreviewed changes (dashboard/…/extension-control-center.spec.ts• L336-367, dashboard/…/extensions-workspace.test.ts• L239-306).

The draft lifecycle follows this sequence:

  1. The dashboard copies the current effective layers as the draft base.
  2. The operator changes only configurable local permissions or selects a saved local revision.
  3. The daemon previews the draft and returns its semantic effect.
  4. The operator reviews the effect and supplies the configured local proof.
  5. The daemon verifies the proof, revision, catalog digest, and mutation identity before commit.
  6. The dashboard refreshes the effective state and records the prior local layers for undo or history use.

The proof binds the exact mutation identity, including its revision, catalog, actor, idempotency key, and nonce. The resident computes the mutation and request digests from those values. Apply recomputes the identity before it consumes the one-shot approval, so changing the request after preview cannot turn the proof into approval for another change (src/…/native_extension_control.py• L810-927, src/…/extension_control_proof.py• L435-467, src/…/extension_control_proof.py• L486-563, src/…/extension_control_api.py• L574-629). A successful repeated apply with the same proof and request returns the recorded result rather than committing the mutation a second time (src/…/extension_control_api.py• L582-595, src/…/extension_control_api.py• L668-674).

If the catalog or authority changes while the draft is open, the dashboard marks the draft stale and refuses to overwrite the newer state. Rebase maps unchanged permission IDs directly and can map them through an extension alias. Removed permissions and overlapping edits become conflicts. The operator can keep the requested value or use the current authoritative value (dashboard/…/use-extension-policy-draft.ts• L153-178, dashboard/…/use-extension-policy-draft.ts• L180-226, dashboard/…/use-extension-policy-draft.ts• L228-308, dashboard/…/extension-policy-rebase.ts• L51-111, dashboard/…/extension-policy-rebase.test.ts• L71-95).

Authority changes now use a resident-backed commit plan. The store validates the proposed layers and proof, asks the resident to prepare the transition, anchors it, and asks the resident to settle the commit. If a request is interrupted, a later matching request can resume it. This preserves the same proof, revision, and idempotency rules across a crash (src/…/store_extension_control_authority_commit.py• L146-352).

The authority store accepts only bounded, composable layers with one layer per kind and a matching catalog identity. It rejects unknown schema markers and oversized serialized control data before those values can enter the committed authority (src/…/store_extension_control_authority_support.py• L249-284, src/…/store_extension_control_authority_schema.py• L23-75).

References: src/…/native_extension_control.py• L743-831 src/…/native_extension_control.py• L892-927 src/…/extension_control_proof.py• L435-467 src/…/extension_control_proof.py• L486-563 src/…/extension_control_api.py• L574-674 src/…/store_extension_control_authority_commit.py• L146-352 src/…/store_extension_control_authority_schema.py• L23-75 src/…/store_extension_control_authority_support.py• L249-284 dashboard/…/extension-controls-api.ts• L244-255 dashboard/…/extension-controls-api.ts• L441-464 dashboard/…/extension-policy-draft.ts• L7-18 dashboard/…/extension-policy-panel.tsx• L351-365 dashboard/…/extension-policy-panel.tsx• L418-463 dashboard/…/use-extension-policy-draft.ts• L153-308 dashboard/…/extension-policy-rebase.ts• L51-111 dashboard/…/extension-policy-rebase.test.ts• L65-95 dashboard/…/extension-policy-panel.copy.test.tsx• L7-47 dashboard/…/extensions-workspace.test.ts• L239-306

Recovery and operator review

Authority health controls which operator actions are safe. A protected authority permits settings changes. An unhealthy authority keeps command protection fail-safe and locks settings changes until the operator repairs or acknowledges the state through the supported path (src/…/extension_control_api.py• L392-463, dashboard/…/protection-authority-notice.tsx• L25-85). The store checks authenticated snapshots, transition history, and an external anchor. It can resume an interrupted idempotent transition; if the chain cannot be verified, recovery archives the old records and starts a new empty protected authority instead of importing uncertain controls (src/…/store_extension_control_authority.py• L49-153, src/…/store_extension_control_authority_reads.py• L367-415).

The dashboard presents one clear next step for each non-protected state:

HealthOperator pathEffect
UnenrolledSet up local approval, then enroll from the terminalCreate trusted local settings.
Tampered or recovery requiredRepair with local approval or use the terminalRebuild and verify protected authority.
Degraded and unacknowledgedAcknowledge with local approvalRecord the limited state without claiming full protection.
Degraded and acknowledgedUse the terminal repair pathKeep fail-safe behavior until trusted protection returns.

Enrollment waits for the local approval gate to be known and enabled. Guard Cloud sign-in and account MFA do not replace this device approval setup. First enrollment also requires direct confirmation from the current local terminal, which prevents a remote or redirected session from creating the initial authority (src/…/extension_control_proof.py• L302-374, src/…/extension_controls_commands.py• L108-140).

Recovery and acknowledgement use local approval credentials, including an authenticator code when configured. When the authenticator is enabled, its code replaces the approval password and disables the cooldown for protected actions. Recovery replaces a poisoned runtime snapshot only after the store returns protected authority. The daemon returns stable error codes with a recovery action, and the dashboard translates those codes into a plain-language cause and next step. It uses the authenticator code in place of the approval password when that option is enabled (src/…/extension_control_errors.py• L9-24, src/…/extension_control_api.py• L392-463, dashboard/…/extension-controls-api.ts• L319-349, dashboard/…/protection-center-workspace.tsx• L53-79, dashboard/…/extension-authority-recovery.spec.ts• L76-115, dashboard/…/extensions-workspace.test.ts• L29-186).

Managed policy remains read-only on the device. A local draft can add a stricter block, but it cannot remove or weaken a managed block or change a required extension or fixed permission. The control center displays that source and preserves the managed state in the effective projection (src/…/extension_control_api.py• L683-757, src/…/extension_control_authority.py• L41-68, dashboard/…/extension-policy-panel.tsx• L141-167). Catalog changes are checked against authenticated target fingerprints. Local blocks remain safe to preserve, while managed allows that no longer match the trusted contract are disabled until the managed data is refreshed (src/…/store_extension_control_authority_support.py• L249-261, src/…/store_extension_control_authority_reads.py• L133-155). When synced data is stale, incompatible, or disconnected, the panel keeps the last verified local authority in force. The operator can refresh or start the supported Guard Cloud connection flow, while local protection and stricter local settings remain available (dashboard/…/extension-managed-controls-panel.tsx• L172-217, dashboard/…/extension-managed-controls-panel.tsx• L236-326, dashboard/…/extension-control-center.spec.ts• L292-334, dashboard/…/extension-control-center.spec.ts• L369-405).

The store keeps the authority schema forward-only. It recognizes supported schema markers and refuses an unknown or invalid marker. The resident owns creation and forward movement of the authority records, while the store uses the marker to prevent reads from treating an incompatible database as a valid authority (src/…/store_extension_control_authority_schema.py• L39-75, src/…/store_extension_control_authority_schema.py• L78-140).

References: src/…/extension_control_api.py• L392-463 src/…/extension_control_proof.py• L302-374 src/…/extension_controls_commands.py• L108-232 src/…/extension_control_runtime.py• L175-200 src/…/store_extension_control_authority.py• L49-153 src/…/store_extension_control_authority_reads.py• L367-415 src/…/store_extension_control_authority_schema.py• L39-140 src/…/store_extension_control_authority_support.py• L249-261 src/…/extension_control_errors.py• L9-71 dashboard/…/extension-controls-api.ts• L319-349 dashboard/…/protection-authority-notice.tsx• L25-85 dashboard/…/protection-center-workspace.tsx• L53-79 dashboard/…/extension-managed-controls-panel.tsx• L172-326 dashboard/…/extensions-workspace.test.ts• L29-186 dashboard/…/extension-authority-recovery.spec.ts• L76-115

Test and evidence views

The Test Lab gives an operator a safe answer to “what would Guard do?” for a command. The daemon evaluates the text against the current catalog and runtime snapshot without executing, saving, or returning the command. The result can identify the matching rule, decision level, explanation, and safer alternatives. When an extension is selected, it also distinguishes a match in that extension from a match handled by another Guard protection. If native evaluation is unavailable, it returns an ask-first result rather than claiming that the command is safe (src/…/extension_control_test_api.py• L34-84, src/…/extension_control_test_api.py• L85-141).

Activity is separate from Test Lab. It shows only receipt-backed decisions that map to the selected extension through canonical identities, capabilities, command categories, or executable names. A missing match is shown as no activity; the dashboard does not invent an event (dashboard/…/extension-activity.tsx• L6-29, dashboard/…/extension-activity.tsx• L38-68).

The detail view therefore connects three kinds of operator knowledge without mixing them:

  • Catalog facts explain what the extension can cover.
  • Test results explain a possible command outcome now.
  • Receipts explain what Guard actually recorded on the device.

References: src/…/extension_control_test_api.py• L34-141 dashboard/…/protection-test-lab.tsx• L25-93 dashboard/…/extension-activity.tsx• L6-68 dashboard/…/extension-control-center.spec.ts• L280-289

Change checklist

When these files or sections are changed, remember to consider these:

  • Keep the daemon's catalog digest aligned across catalog data, effective state, projection, preview, history, and dashboard draft payloads.
  • Keep projection health, revision, and catalog identity consistent with the enclosing effective response. The dashboard rejects mismatched metadata.
  • Keep effective-state reads read-only. A dashboard poll must not commit catalog migration or lower the protected runtime snapshot when the authority lease is busy.
  • Preserve the rule that preview and apply use the same canonical mutation identity. A proof for one draft must not authorize another.
  • Keep repeated apply requests idempotent. The same proof and request must return the recorded result instead of committing again.
  • Keep managed signed-cloud controls read-only while allowing local stricter blocks and preserving required or fixed controls.
  • Keep quick-apply actions subject to the same configurable, fixed, and managed-control rules as individual permission edits.
  • Keep stale-draft handling tied to both authority revision and catalog changes. Rebase must not silently discard an operator's change or overwrite newer authority.
  • Keep every unhealthy authority state mapped to one honest recovery path. Acknowledgement must not be presented as repair.
  • Keep local approval setup separate from Guard Cloud sign-in. Enrollment must not offer a command before the local gate is ready.
  • Keep first enrollment bound to a confirmed local terminal. Redirected or remote sessions must not create the initial authority.
  • Keep authenticator-code proof behavior aligned across recovery and policy-change review. It must not fall back to password wording or retain a cooldown when the authenticator mode disables it.
  • Keep stale, mismatched, or unsupported managed data fail-safe. Refresh and reconnect must not hide the last verified authority.
  • Keep Test Lab side-effect-free and keep activity views receipt-backed. Do not turn simulated results into evidence.
  • Keep extension route parsing and detail filters canonical. A link must not select an invalid extension, rule, or unsupported filter value.
  • Keep custom extension discovery and review states aligned with the catalog list. New, stale, or changed connector inventory must remain visible as needing review.
  • Keep grouped permission views tied to the same permission and rule relations used by policy review. A family heading must not hide an individual target.
  • Keep catalog target manifests aligned with the contract fields that determine whether local or managed controls remain trusted after a package update.
  • Keep interrupted authority transitions resumable only when their authenticated identity, revision, and layer content still match the original request.
  • Keep prepared pack candidates bound to the previewed mutation and managed revision. An expired or changed candidate must not reach apply.
  • Keep preparation failure causes mapped to honest recovery actions. A transient runtime or network issue must not be presented as a broken installation, and a broken installation must not be presented as a retry.
  • Keep preview and apply client timeouts longer than the resident work they can trigger. A client timeout must not report an apply as failed while the daemon can still commit it.
  • Keep client normalization limits and canonical checks aligned with the daemon response contract. A new catalog field or MCP launch form must not bypass the dashboard trust boundary.
  • Keep history, recovery, preview, and apply responses on the same normalized error path. Invalid JSON or malformed success data must remain unavailable rather than partially displayed.
  • Keep paid discovery joined to the local catalog. Unknown, expired, or malformed placements must not appear as extension rows.
  • Keep sponsorship labels and protection state separate. A paid position must never alter the effective projection, managed source, or operator's policy choices.
  • Keep discovery failures and opt-out distinct from confirmed sold-out inventory. Missing data must not be presented as an open or empty commercial slot.
  • Keep spotlight fallbacks honest. Device activity must come from bounded local evidence, while starter cards must remain clearly editorial.
  • Keep one extension to one spotlight cell and preserve paid cards when a promotion slot is added.
  • Keep custom-list review counts independent from active filters so hidden work is still signaled.
  • Keep resident request and result schemas bound to the same request ID and request digest. A reply from another authority operation must not be accepted as the current read or write.
  • Keep resident availability separate from authority health. A service outage must not become a tampered or degraded verdict.
  • Keep authority schema markers forward-only and compatible across store reads, resident writes, and pack activation records.
  • Keep authority writes behind the resident's authenticated plan. Python must not recreate verification or import an unverified snapshot during recovery.
  • Keep the native resolver as the only policy decision path. Projection, preview, mutation validation, and command evaluation must not gain separate Python rules.
  • Keep native resolver replies strictly bound to the asked scenarios and items. A missing, extra, malformed, or unbound result must fail closed.
  • Keep resident request limits visible at the daemon boundary. Large projection, preview, or scenario questions must be refused or split before a partial answer is used.
  • Keep native mutation refusals limited to known policy outcomes. An unknown refusal or accepted layer that differs from the request must remain an unavailable result.
  • Keep mutation, request, snapshot, and candidate digests tied to the exact fields that approval and replay use. A new field must not create two identities for one change.

Important failure modes

TriggerConsequenceGuard
The catalog digest differs between the catalog and effective state.The dashboard may describe controls against the wrong extension identities.Compare catalog and effective digests during load and reject inconsistent projection metadata.
Authority is tampered, unavailable, or degraded.Commands remain fail-safe and settings cannot be treated as fully trusted.Show the authority notice, lock editing, and offer repair or explicit degraded acknowledgement.
Authority changes after a draft preview.Applying the old draft could overwrite newer security policy.Require the current revision and catalog digest, then force refresh or rebase on conflict.
A managed block or fixed permission is weakened locally.Device settings could bypass organization or built-in safety policy.Reject immutable mutations and disable the weaker dashboard choice.
A proof is missing, mismatched, expired, or already consumed.The requested policy change must not be committed.Bind proof to the exact mutation and return a recovery action to request new proof.
A command is entered in Test Lab.An operator could mistake simulation for execution or evidence.Evaluate without execution, persistence, approval creation, or receipt creation.
The catalog or effective response is malformed, oversized, or uses non-canonical targets.The dashboard could show controls for the wrong extension or fail during a later action.Reject the response at the client boundary and show that extension controls are unavailable.
Managed data is stale, has a catalog mismatch, or uses an unsupported schema.A new Control Set could be unsafe to apply or could hide the last trusted state.Keep the last verified authority, show the cause, and require refresh, reconnect, or repair.
Enrollment starts before local approval is configured or enabled.The device could create authority without the required local proof.Route the operator to approval settings and withhold the enrollment command until the gate is ready.
Enrollment runs from a remote or redirected terminal.The first authority could be created without direct local operator confirmation.Require a verified local interactive terminal and an exact confirmation string.
A custom connector has stale or incomplete inventory.The operator could review permissions against an old or partial tool list.Keep the item in the needs-review group and preserve the discovery status or retry path.
A detail link contains an unknown extension, rule, or unsupported filter.The operator could land on the wrong control view or see a misleading result.Normalize routes and filters, resolve aliases to canonical IDs, and fall back to the safe overview.
A package changes a target contract while its catalog digest stays the same.A saved allow or managed allow could apply to changed behavior.Compare the authenticated target manifest and preserve only disabled controls or controls with a matching contract fingerprint.
An authority transition is interrupted or its chain cannot be verified.The daemon could expose a partial or unverifiable policy state.Resume only a matching idempotent transition; otherwise archive the old authority and rebuild an empty protected one.
A daemon response exceeds client limits or contains duplicate or cross-owned catalog references.The dashboard could consume unbounded data or associate a rule or permission with the wrong extension.Enforce collection bounds, canonical IDs, ownership checks, and duplicate-target checks before display.
A preview or apply response is invalid or its projection metadata does not match effective state.The operator could review or commit a result that does not describe the current authority.Convert malformed payloads to a protocol error and reject inconsistent revision, health, or digest metadata.
Pack preparation cannot read its authority, release, storage, or installed runtime.Preview or apply cannot produce a trusted candidate and the operator may receive no useful next step.Return the stable preparation error with a classified recovery action and record bounded detail in the daemon log.
A prepared pack candidate expires or its managed revision changes before apply.Apply could commit controls for a pack or managed policy different from the reviewed preview.Bind the candidate to its lease and managed snapshot, then reject it on expiry or conflict.
The client timeout is shorter than the daemon's resident work.The client may report an apply failure while the daemon continues and commits the change.Derive preview and apply budgets from all resident calls plus transport margin.
A read meets a busy authority lease or a newer writer installs a snapshot during the read.Polling could block too long or replace newer protection with an older view.Bound read waits, serve the current runtime snapshot on timeout, and install a read only if the registry and snapshot are still current.
A discovery placement names an unknown or expired catalog extension.The dashboard could show paid content for an extension the device cannot review.Join placements to the local catalog and drop unknown or expired entries.
Discovery is offline, rate limited, unavailable, or disabled.The page could claim that a paid slot is vacant or let optional content obscure extension controls.Hide paid content on loading or opt-out and show unavailable content without claiming inventory status.
A paid placement is rendered as ordinary catalog content.An operator could mistake a commercial position for a Guard recommendation or policy signal.Preserve the real row state and show a Sponsored or Sponsored · Featured label.
Spotlight activity contains unknown, zero, or unbounded values.The shelf could claim unsupported device use or show a misleading ranking.Keep positive counts tied to known catalog IDs and describe starter cards as editorial.
A promotion slot has no confirmed price or capacity.The dashboard could quote a price or inventory that the server did not provide.Show the offer without those numbers and use an unconfirmed state.
A custom list is filtered while an item still needs review.The operator could miss a pending permission decision.Keep the review count based on the full custom inventory and show the attention marker on the list switch.
The resident does not answer or its reply does not match the request.The daemon could show an unverified authority state or accept a reply for another operation.Treat the event as unavailable and bind replies to the request ID and request digest.
The authority store sees an unsupported schema marker.Reads or writes could interpret records with the wrong contract.Refuse the marker and keep the authority unavailable until a supported migration path exists.
Recovery finds a snapshot or transition chain that cannot be authenticated.Uncertain controls could be imported into the new authority.Archive the old records and create an empty protected authority instead of reusing them.
Python attempts to verify or write authority state without the resident.The stored state could diverge from the native enforcement state.Keep verification and protected writes in the resident and report its outage as unavailable.
A native resolver reply is malformed, unbound, or has the wrong number of results.The dashboard or command guard could use an answer for a different target or treat an incomplete answer as valid.Strictly decode the resident result and fail closed when its shape does not match the request.
A projection or preview question exceeds native size or work limits.The daemon could return a partial policy view or time out during review.Bound and split scenario work before the resident call, and report an explicit limit when one piece cannot fit.
Native mutation validation returns an unknown refusal or layers different from the request.The daemon could commit a policy that the resident did not validate.Accept only known refusal codes and require accepted layers to match the asked layers.
A digest omits a field that changes the mutation or prepared candidate.A proof or replay record could authorize a different change.Compute identities in the resident from the complete approval, request, snapshot, and activation inputs.

Key files

FileWhy to read it
src/…/extension_control_api.pyDefines the daemon's bounded catalog and effective reads, safe inspection, preview, proof-bound apply, replay behavior, history, refresh, and recovery behavior.
src/…/native_extension_control.pyDefines the resident-backed control composition, resolution, projection, semantic preview, mutation validation, and digest boundary used by policy decisions.
src/…/extension_control_projection.pyShows the dashboard-safe effective projection for extensions and permissions.
src/…/extension_control_semantic_preview.pyExplains how a local draft becomes affected targets, counts, warnings, and audit targets.
src/…/extension_control_prepared.pyShows how pack preparation is staged, leased, bound to a draft, and released.
src/…/extension_control_preparation_failure.pyDefines preparation failure causes, safe recovery actions, and daemon diagnostics.
src/…/extension_control_timeouts.pyDefines the client budgets for resident preview and apply work.
src/…/extension_control_errors.pyDefines stable error codes, causes, and operator recovery actions.
src/…/native_extension_control_authority.pyDefines the resident boundary for authenticated authority reads, protected writes, request binding, and outage reporting.
src/…/extension_control_authority.pyDefines authority health, protected layers, and fail-closed views.
src/…/extension_control_proof.pyShows local enrollment confirmation and exact mutation-bound approval proofs.
src/…/extension_control_runtime.pyShows immutable runtime snapshots, revision floors, and authenticated recovery replacement.
src/…/store_extension_control_authority.pyShows recovery, authority reset, archive behavior, and the boundary between store actions and resident verification.
src/…/store_extension_control_authority_commit.pyShows enrollment and crash-safe proof-bound authority commits.
src/…/store_extension_control_authority_reads.pyShows authenticated reads, resident-requested restore or migration, and managed-control composition.
src/…/store_extension_control_authority_schema.pyDefines supported authority schema markers and forward-only store compatibility.
src/…/store_extension_control_authority_support.pyShows layer validation, credentials, authority locks, and fail-safe views.
src/…/store_extension_control_authority_transitions.pyShows transition-chain checks, idempotent recovery, and authenticated history.
src/…/store_extension_control_manifest.pyDefines the trusted contract manifest used to detect meaningful catalog target changes.
src/…/extension_controls_commands.pyShows terminal enrollment, recovery, inspection, pattern listing, and stable CLI outcomes.
dashboard/…/protection-center-workspace.tsxConnects dashboard routes, loading, mutation review, and authority recovery.