Error codes
Look up exit codes, lifecycle error and warning codes, kernel sensor warnings, MDM wrapper codes and hook refusal codes for enterprise DefenseClaw.
Every lifecycle action prints a result document when you pass --json (JSON=1 for the
Windows Setup), and the MDM wrapper scripts always print one. Find the code in
errors[].code or warnings[].code and look it up here; the message next to it has the
details. For fixes by symptom, see Troubleshooting.
Exit codes
| Meaning | Linux and macOS | Windows standalone | What to do |
|---|---|---|---|
| Success, or nothing to change | 0 | 0 | Nothing |
| The action failed. A mutating action has already rolled back | 1 | 1603 | Read errors[].code |
| Invalid arguments | 2 | 1639 | Fix the command line or MDM settings. Retrying does not help |
| Another lifecycle run holds the lock | 75 | 1618 | Retry later |
A standard account ran an action that needs elevation (elevation_required) | — | 5 | Run it from an elevated prompt |
| Reserved: success, reboot required | — | 3010 | Not used |
The standalone Windows Setup can refuse before the lifecycle starts:
- Exit
1639: a malformed command line (a relative or environment-expandedCONFIG=orMANIFEST=path, an unknown property,/installwithoutCONFIG=andMANIFEST=,TIMEOUTSECONDSout of range), a config or manifest file that a non-administrator can change, or an optiondefenseclaw.exedoes not know (unknown flag). - Exit
1603: a token that is not elevated.
With JSON=1, these refusals print the same document as the lifecycle, with invalid_arguments in errors[].code.
Lifecycle error codes
These codes come from the lifecycle itself. The OS column says where each one can appear.
| Code | OS | Meaning | Fix |
|---|---|---|---|
unsupported_platform | Linux, macOS | The Linux or macOS lifecycle ran on another OS | Run the lifecycle for this OS |
invalid_arguments | all | The command line is wrong, for example conflicting flags, a relative --config, install or upgrade without --payload or --from-package, or a first Windows ensure without a config. Exit 2 or 1639 | Correct the command. On Windows, run the Setup, which supplies every payload file |
lifecycle_busy | all | Another lifecycle run holds the lock (exit 75 or 1618). On Windows it is also a Setup upgrade on processors less than 25% idle, refused before any change because it could not finish within TIMEOUTSECONDS | Wait and run it again. On Linux and macOS, --lock-wait <duration> (at most 15m) waits instead; verify has no --lock-wait |
bundle_not_applied | Windows | A confirmed signed policy bundle does not enforce: config.yaml is not the bundle's config, or the gateway reports another policy or a rejected reload. status and verify fail | Run ensure. It re-applies the confirmed bundle from the bundle store |
bundle_restore_failed | Windows | ensure or repair could not put the confirmed bundle's config back over an edited or deleted config.yaml. The run also reports bundle_not_applied | Deliver the bundle again, or a newer one |
not_root | Linux, macOS | The action needs root. status reports it too when a standard user cannot read the deployment record | Run it with sudo or from the MDM agent |
service_manager_unavailable | Linux | systemd is not the init system (containers, WSL), or it is older than 239 | Use a supported host. See Requirements |
wsl_distribution | Linux | The host is a WSL distribution. A new install is refused; an existing deployment gets a warning | Uninstall it and govern WSL from Windows. See Agent sessions in WSL |
state_unreadable | Linux, macOS | The lifecycle state (/var/lib/defenseclaw-enterprise on Linux, /opt/cisco/defenseclaw/lifecycle on macOS) cannot be read | Check that directory and the disk |
already_installed | Linux, macOS | install ran on a host that already has a deployment | Use ensure, upgrade or repair |
not_installed | all | upgrade, repair, reconcile or verify found no deployment. On Windows, also an action that reported success but left no deployment | Install first; ensure installs when nothing is there. On Windows, run the same command again and keep the lifecycle log if it repeats |
profile_conflict | all | Another DefenseClaw enterprise deployment is present; two profiles cannot run on one host. On Windows, a --profile other than standalone is refused the same way (exit 1639) | Uninstall the other deployment first. On a standalone computer, use --profile standalone or omit --profile |
unmanaged_layout_present | Linux, macOS | DefenseClaw files or units exist that no committed deployment owns, for example from a hand-made install | Rerun install or ensure with --adopt-existing, which backs up that layout and takes it over. On a tarball host with fapolicyd, see the two-stage install |
payload_invalid | Linux, macOS | The payload is missing a binary, is not root-owned, is writable by group or others, is a symlink, or is not the --product-version you asked for. repair reports it too when the installed binaries no longer match the record | Stage the payload again as root. For repair, pass --payload with the installed release, or reinstall the package of the installed version (the message names the command). See Lifecycle reference |
package_owned_binaries | Linux | A --payload upgrade on a host where the deb or rpm owns the binaries | Upgrade with the package manager |
config_invalid | Linux, macOS | The --config file is missing, a symlink, changeable by another account, or fails validation; the message names the file, line, field and fix. On Windows an invalid config fails under another code, such as manifest_staging_failed | Fix the file or pass the real, root-owned path. See the settings reference |
service_account | Linux, macOS | Creating or checking the gateway service account (defenseclaw or _defenseclaw) failed | Check useradd or dscl and your directory service |
apply_failed | Linux, macOS | Writing the files failed. The action rolled back | Read the message. Check disk space and read-only mounts |
api_port_held | all | Another process, usually a per-user DefenseClaw gateway, listens on 127.0.0.1:18970. On Linux and macOS the action changed nothing; on Windows the gateway cannot bind its API and hooks fail closed | Stop that process (the message names it), then run the command again. See Find what holds port 18970 |
activation_failed | Linux, macOS | A service did not start or did not become ready. The action rolled back | Read the gateway output in the message and last-activation-failure.log in the lifecycle directory. See Logs and events |
config_refused | Linux, macOS | The installed gateway binary refuses the installed config, for example a custom rule pack that no longer matches its pinned digest. The message gives the refusal | Correct the named setting in config.yaml or your ensure --config file, and run ensure |
verify_failed | Linux, macOS | In status and verify: one error per problem found. In a mutating action: the check after applying failed, and the action rolled back | Read each message. Most are fixed by ensure or repair |
rollback_failed | Linux, macOS | A failed action could not restore the previous deployment completely | Run repair or ensure. If it still fails, save the result and the logs, then uninstall and install again |
disk_full | Linux, macOS; Windows policy bundles | An action ran out of disk space and rolled back (or changed nothing). The message names the path or filesystem | Free space on the named filesystem and run the action again |
machine_policy_failed | Linux, macOS | A vendor policy file could not be read or written, for example one another tool locked with chattr +i. The run rolled back. Invalid enterprise.machine_policy settings fail validation as config_invalid instead | Make the named file writable and run ensure again. See Machine policy |
uninstall_failed | Linux, macOS | Some files, directories, or the service account could not be removed | Read the message and run uninstall again |
uninstall_incomplete | Linux, macOS | The uninstall stopped before removing binaries that per-user hooks or vendor machine policy still name, and started the services again. On Linux, package removal also stops and keeps the package files | Fix the cause the message names and run the uninstall or package removal again |
per_user_hooks_remaining | Linux, macOS | Uninstall could not remove a user's DefenseClaw hook registrations for an agent, so it stopped before removing the binaries they run. A home that is not available (unmounted, moved aside, unreadable) is refused before anything changes (uninstall_precheck_refused) | Remove DefenseClaw's entries from that agent's config in the user's current home, or mount or restore the home, then rerun uninstall. Fix or remove an unresolved row in targets.yaml. ensure restores the deployment instead |
replaced_hooks_not_fenced | Linux, macOS | Before it stopped the gateway, the lifecycle could not fence a user's hooks of the release being replaced (the message names the user and why). Until the guardian renders the new hooks, that hook follows its own fail mode | Fix the named folder or file and run the action again |
replaced_hook_calls_running | Linux, macOS | Hook calls of the release being replaced were still running 120 seconds after their hooks were fenced. Usually the agent stalled its own hook | Ask the named user to end the stalled agent session |
reconcile_failed | Linux, macOS | The immediate guardian reconcile failed. There is one error per target the guardian could not protect | Read each message. If none names a target, read the guardian log |
downgrade_refused | all | The payload or package is older than the installed release. On Windows, ensure found a newer release installed than the Setup you ran | To go back on purpose, see Roll back (--allow-downgrade on Linux and macOS) |
sandboxes_running | Linux, macOS packages | The package install was refused before any change: sandboxes run under the sandbox daemon of an older installed release, which ends them when the package replaces it. The message names each sandbox | Have each user end their sandboxes, then install the package again |
product_floor_refused | Linux, macOS, Windows | The confirmed signed bundle's min_product_version needs a later DefenseClaw release, or the floor could not be read. The rollback marker and --allow-downgrade do not lift it | Check bundle status for current.min_product_version and install a release that meets the floor. To go below it, contact your administrator. See Release floor limits |
config_rejected | Linux, macOS, Windows | The run that applied a config failed and the previous config runs; status warns, verify fails and coverage_complete is false. The rejected file is kept (rejected-config.yaml, or config-rejected.json on Windows) | Fix what the message and the lifecycle log name, then apply the config again. See Change the config |
powershell7_required | Windows | PowerShell 7 (the x64 MSI) is not installed under Program Files | Install PowerShell 7 x64 |
powershell7_untrusted | Windows | pwsh.exe is not a regular file, is writable by non-administrators, or is not signed by Microsoft | Reinstall PowerShell 7 from the Microsoft MSI |
powershell_execution_policy | Windows | A Group Policy execution policy (for example AllSigned) blocked the lifecycle script. Nothing was changed | Set the policy to RemoteSigned or Unrestricted. The release is not code-signed, so a Trusted Publishers rule cannot match it. See Requirements |
powershell_32bit_host, powershell_constrained_language | Windows | The lifecycle started in 32-bit PowerShell or in Constrained Language mode | Start it from a 64-bit process in Full Language mode, or use the MDM wrapper |
unsupported_architecture | Windows | The host is not native x64. x64 emulation on ARM64 is refused | Use an x64 device |
ensure_refused | Windows | ensure could not choose an action, for example because it could not read the installed deployment's metadata | Read the message, then run repair |
status_failed | Windows | Setup /ensure could not read the deployment state, for example because install\deployment.json has the wrong owner or an extra writer (the message names the account and the icacls fix) | Restore the owner to BUILTIN\Administrators as the message says. See Setup refuses to change the deployment |
manifest_staging_failed | Windows | ensure could not prepare the first target manifest from the config | Check the config |
lifecycle_launch_failed | Windows | The PowerShell 7 lifecycle did not start, or printed no result | Read the message and enterprise-lifecycle.log |
route_config_unverified | Windows | verify from an elevated administrator prompt could not read an account's Claude Code or Codex route-only settings, which only SYSTEM can read | Run verify as SYSTEM, for example from your MDM or a scheduled task |
lifecycle_error | Windows | The lifecycle reported a failure without a stable code | Read errors[].message and enterprise-lifecycle.log |
rule_pack_unreadable | Windows | The gateway service account cannot read the rule-pack folder the config names. Setup's config preflight reports it before any change (exit 1639) | Run the icacls grant the message prints (it uses the service's derived SID), and any parent-folder grant, then run Setup again |
not_ready | Windows | The run finished, but the deployment is not healthy; the message names the stopped services. verify also reports it when a required service has stopped | Run repair --profile standalone (or Setup /repair JSON=1) from an elevated prompt, then read the gateway and guardian logs if it repeats |
machine_policy_summary_missing | Windows | C:\ProgramData\Cisco\DefenseClaw-HookRuntime is missing while accounts are enrolled | Run repair. The guardian writes the folder and summary back |
gateway_start_failed | Windows | status or verify found the gateway service not running; the message gives its last error and the log path | Fix what the error names. For Access is denied, run repair from an elevated prompt |
rule_pack_shipped_invalid | Windows | The shipped strict or permissive pack folder is missing, changed, or writable by a standard user, so the gateway refuses that pack | Run Setup /repair or /ensure, which write the release's packs again |
scanner_runtime_unavailable | Windows | The skill, MCP and plugin scanner runtime is missing, not prepared, or changed outside DefenseClaw (for example after antivirus quarantine). Every skill, MCP server and plugin install is blocked until it is ready | Run Setup /repair or /ensure. If the message says timed out after 15m0s, run Setup /repair JSON=1 as LocalSystem again when the computer has CPU to spare. See Run Setup as LocalSystem |
elevation_required | Windows | A standard account ran an enterprise windows command, enterprise secret or enterprise policy show. Nothing was changed; exit 5 (an unknown command exits 2) | Run the command from an elevated PowerShell prompt |
preflight_failed | Windows | A check before the lifecycle started failed | Read the message |
change_failed | Linux, macOS | enterprise secret set or another protected-state change could not be written | Run it as root and check that the secrets folder is writable by root |
rotation_failed | Linux, macOS | rotate-credentials did not commit the new key; the previous key stays in use. The message names the step and the users | Fix what the message names, then rotate again. See Rotate per-user credentials |
Warnings
Warnings do not fail an action. They appear in warnings[].
| Code | OS | Meaning and fix |
|---|---|---|
rolled_back | Linux, macOS | A failed action restored the previous deployment. The error beside it says why |
bundle_state_unreadable | Linux, macOS, Windows | Part of the policy bundle store could not be read or written. ensure and repair keep the last committed config and still check the release floor. To replace it, contact your administrator |
floor_checker_not_kept | Linux, macOS | A non-purge uninstall could not keep the gateway copy that package scripts use for the release floor check. Install only releases that meet the floor on this device |
product_below_floor | Linux, macOS, Windows | The installed release is below the confirmed bundle's min_product_version. The policy keeps enforcing; install a release that meets the floor, or contact your administrator |
recovered_interrupted_transaction | Linux, macOS | This run found an interrupted run and rolled it back first |
rotation_recovered | Linux, macOS | This run completed or rolled back an interrupted rotate-credentials |
rotation_incomplete | Linux, macOS | A rotate-credentials run did not finish. Run rotate-credentials again, or any mutating action, to complete or roll it back |
recovered_failed_install | Windows | This run rolled back a failed first install |
rollback_leftover | Windows | The rollback of a failed first install could not remove one item; the message names it. Run Setup /ensure, then /uninstall, both as LocalSystem while the accounts are signed in |
user_runtime_folder_untrusted | Windows | An action could not verify the permissions of an account's %USERPROFILE%\.defenseclaw folder and left its old, inert hook copies there. Reset the folder's permissions (or remove it if unused), then run the installed CLI's enterprise windows ensure --profile standalone |
runtime_generations_not_collected | Windows | ensure could not remove old, inert hook runtime copies from the accounts' .defenseclaw\hooks folders. Run ensure again when no other lifecycle run is active |
claude_settings_hook_left | Windows | After uninstall, a user's .claude\settings.json still holds a hand-written hook that names a DefenseClaw launcher. Remove those commands as that user |
security_incomplete | Linux, macOS, Windows | security_complete is false; the message lists the warning codes behind it. See security_complete is false |
coverage_incomplete | Windows | coverage_complete is false; the message lists every check that made it false. On Linux and macOS these reasons are in security_incomplete |
machine_policy_incomplete | Linux, macOS, Windows | DefenseClaw's hooks are missing from a vendor policy file, or a higher-precedence source outranks them. verify fails; repair puts missing entries back. See Machine policy |
hook_process_fail_open | Linux, macOS, Windows | An enabled agent runs a tool when its pre-tool hook is stopped, killed or times out. This is an agent limit, not DefenseClaw's fail mode; protect the hook process with application control or EDR |
codex_requirements_held | Windows | Another process holds C:\ProgramData\OpenAI\Codex\requirements.toml open, so a Codex policy update waits; the policy in place stays in effect. See Windows |
codex_state_unsettled | Windows | A Codex writer stopped in the middle of a transaction, so Setup stopped and rolled back. Run the Setup /repair command the message names |
managed_launch_uninspected | Linux, macOS | A running enrolled agent can start without its managed hook, for example because of an inherited BASH_ENV or SHELLOPTS with noexec. End the process, clear the setting, and start it again. See Hooks the agent cannot start |
status_detail_unavailable | Linux, macOS, Windows | Status could not read one of its inputs for a connector block; on Windows it comes with Hermes NOT COVERED when a session-only HERMES_HOME cannot be observed |
claude_state_unreadable | Linux, macOS, Windows | The guardian could not read an enrolled user's ~/.claude.json, so the gateway refuses that user's Claude Code MCP servers until it can |
scanner_judge_missing | Windows | Scans use static analyzers without an LLM judge. Set scanners.skill_scanner.use_llm: true, configure llm.model and store its key with enterprise secret set |
claude_version_floor_missing | Linux, macOS | The Claude Code version floor drop-in is missing, so verify fails until ensure, repair or reconcile writes it back. See Machine policy connectors |
not_started | Linux, macOS, Windows | Installed with --no-start (Setup NOSTART=1). status and verify fail until the services run; run repair or ensure |
adopted_existing_layout | Linux, macOS | --adopt-existing backed up the old layout to the lifecycle directory |
selinux_relabel | Linux | restorecon failed after the files were written |
selinux_module | Linux | The lifecycle could not load or remove the DefenseClaw SELinux module; the message has semodule's error. Only SELinux-confined users depend on it |
selinux_module_missing | Linux | SELinux is enabled without the DefenseClaw module or labels, so confined users' hooks are refused with enterprise_managed_hook_socket_selinux_denied. Run repair |
judge_failing | Linux, macOS, Windows | The LLM judge is failing or unavailable; prompts still get rule-pack verdicts. Check the judge's provider credentials and network |
llm_model_unroutable | Linux, macOS, Windows | The gateway cannot route llm.model, so the judge falls back to the rules. Write provider/model or the full Bedrock id, then run ensure again |
disk_space_low | Linux, macOS | A DefenseClaw filesystem has less than 256 MiB or 2% free. When the audit database cannot be written, managed hooks block agent calls until there is space. Free space on the named filesystem; a deb or rpm run that could not record its result needs ensure --from-package afterwards |
audit_write_failed | Linux, macOS | The gateway cannot write the mandatory audit records, so managed hooks block the affected calls. For a full class, free space (see disk_space_low) |
unit_drop_in | Linux | A local systemd drop-in DefenseClaw did not write changes a DefenseClaw unit's environment, limits or timeouts. A drop-in that changes its account, sandbox or config fails status and verify instead |
ai_defense_unavailable | Linux, macOS | Cisco AI Defense is enabled but unavailable:<code>; the local policy engine keeps deciding. See Check the key |
directory_lookups_failing | Linux, macOS | The gateway cannot resolve some accounts in the directory, so requests that need missing facts are refused (default_lookup_failed). Run enterprise linux profile-explain --user <account> (or enterprise macos) and check SSSD or the Mac's directory binding |
per_user_hooks_remaining | Linux, macOS | The account was removed or its home deleted, so uninstall left that user's hook registrations and went on. Remove DefenseClaw's entries from the named agent's config, or fix the home's owner or permissions, and rerun |
per_user_state_remaining | Linux, macOS, Windows | A purge could not remove a user's DefenseClaw folder. On Windows, run Setup /ensure and then /uninstall PURGE=1 as LocalSystem while the accounts are signed in |
root_squatted | Windows | A standard user created a C:\ProgramData\Cisco DefenseClaw folder before DefenseClaw; install moved it aside to <name>.untrusted-<time>-<id>. Review that copy, then delete it from an elevated prompt |
untrusted_deployment_record | Windows | Profile resolution ignored a deployment record whose trust check failed. For a standalone record, restore its owner to BUILTIN\Administrators |
machine_state_remaining | Windows | An uninstall could not remove a leftover DefenseClaw-PowerShell-, -Installer- or -Bootstrap- folder. Remove the named paths from an elevated prompt |
machine_state_kept | Windows | A purge kept a machine file on purpose, because another DefenseClaw deployment uses it. Leave it in place |
created_folders_kept | Windows | A purge left a vendor folder, such as C:\ProgramData\Cursor, because another program uses it or it is not safe to remove. Remove it by hand only if nothing else uses it |
mdm_rotation_journal_kept | Windows | An uninstall kept the MDM kit's credential rotation journal, which can hold an earlier credential. Run the uninstall again with PURGE=1, or remove the folder by hand if the message says so |
native_otlp_product_credential | Linux, macOS | An account's Codex or Claude Code config has a native OTLP exporter that sends the gateway token to a port the managed gateway does not serve. The guardian removes it; remove it by hand if the file cannot be edited |
native_otlp_config_unchecked | Linux, macOS, Windows | verify could not read an account's Codex or Claude Code config to check for that exporter. Fix the cause the message names (on Windows, replace a linked file with the account's own) and run verify again |
agent_settings_not_restored | Linux, macOS, Windows | The guardian put back a missing Hermes or Devin settings file from a backup; review the account's settings. The warning clears at the next successful guardian refresh. A restore that could not bring the settings back stays reported (settings_lost). On Windows the code also reports an earlier per-user install's OTLP exporter that the managed install removed (delete the kept .defenseclaw-otlp-removed.bak copy to clear it) or could not remove (remove it by hand) |
user_cleanup_failing | Windows | The guardian failed three times to remove a registration of a connector an account is no longer enrolled for. Fix the reason the message names, then run repair |
user_registrations_pending, user_registrations_failed | Windows | Uninstall could not act as some users. Run Setup /ensure and then /uninstall, both as LocalSystem while those accounts have an active session |
package_install_failed | Linux, macOS | The package's own install run failed; the message gives its first error. Fix it, then run enterprise linux ensure --from-package, or install the macOS pkg again |
elevation_required | Windows | A standard account ran a command that needs elevation. Exit 5; nothing was changed |
health_not_checked | Windows | The request was refused before any health check ran, so the health fields read false. Run enterprise windows verify --json from an elevated prompt |
deleted_account_rows | Windows | A local account was deleted; the enumerator drops its rows at its next pass. Nothing to do |
enrollment_pending_account_folder | Windows | An account created its own %USERPROFILE%\.defenseclaw. DefenseClaw takes it over when the account next signs in |
hook_contract_unverified | all | A user runs an agent version with no verified DefenseClaw hook contract, so it runs without DefenseClaw hooks. verify warns for that account and does not fail |
opencode_port_account_unknown | Linux, macOS, Windows | The guardian could not read or write an account's OpenCode service.json. The line names the step that clears it. See OpenCode |
opencode_port_contested | Linux, macOS, Windows | A port stays held because several files named it. Repair the account file and run the clear command the warning names |
opencode_port_record_unreadable | Linux, macOS, Windows | The guardian's OpenCode port record cannot be read, so no account gets a new port. Repair or remove it; the next pass rebuilds it |
opencode_port_record_unchecked | Linux, macOS, Windows | A non-root or non-elevated status cannot open the guardian's folder. Run status as root or elevated |
opencode_v1_unprotected | all | A user can run OpenCode V1 (opencode-ai 1.x), which never runs DefenseClaw's plugin. Remove V1, install V2 (npm install -g @opencode/cli@2), and run opencode service restart as the user |
agent_install_scan_incomplete | Linux, macOS, Windows | The bounded scan of a user's agent installs could not finish; the warning names the part. Review the home and block unapproved agent binaries with application control |
agent_install_scan_partial | Linux, macOS, Windows | The same scan gap, but the agent's managed hook is verified for the account, so the account is covered. Review the named folder |
agent_unprotected | all | An agent is installed for a user but could not be enrolled. verify warns and does not fail. See Enrollment |
guardian_target_failed | Linux, macOS | The guardian could not install or repair hooks for one user and connector; the message gives the reason. Other users stay protected |
guardian_target_user_path | Linux, macOS | A link, wrong file type or unreadable folder in the user's own home blocks that user's hooks. Only that user is affected, and verify does not fail |
guardian_target_account_removed | Linux, macOS | A target's account no longer exists. The enumerator removes it after three misses; repair removes it at once |
guardian_cleanup_pending | Linux, macOS | A user is no longer enrolled and the guardian has not yet removed their hook registration. It does once the home is available. See Enrollment |
guardian_repair_pending | Linux, macOS, Windows | A DefenseClaw hook file of an enrolled account changed or is missing, and the guardian has not put it back yet; security_complete is false. Run status again after a minute; on Windows, sign the account in first |
enrolled_home_unavailable | Linux, macOS | An enrolled account's home cannot be found, possibly a mount outage. Enrollment is kept and retried |
guardian_user_file_pending | Linux, macOS | The guardian has not yet written a new user's per-user hook file. It does within a minute or two |
per_user_gateway_running | Linux, macOS | An account still runs its own per-user DefenseClaw gateway. Stop it with the kill command the message gives, and have the user run defenseclaw uninstall --binaries --yes |
agent_sessions_restart_required | Linux, macOS, Windows | A user runs an agent session that started before its hooks were in place, so it runs without DefenseClaw. Ask the named user to restart it (for a Codex background server, codex app-server daemon restart) |
no_connectors_enabled | Linux, macOS, Windows | The config enables no agent under guardrail.connectors, so verify fails. See Choose the agents to protect |
unmanaged_leftovers | Linux, macOS | DefenseClaw state exists with no deployment. Run uninstall --purge |
unit_failed | Linux, macOS | A DefenseClaw service or job failed on its last run; the message names the unit. On Linux, clear it with systemctl reset-failed <unit> once resolved |
input_changed | Linux, macOS | config.yaml or a credential changed during the run; a follow-up run applies it. If the warning says retry limit reached, run ensure yourself |
policy_not_applied | Linux, macOS, Windows | The ready gateway reports another policy digest than the installed config. verify fails. See policy.applied is false |
policy_reload_rejected | Linux, macOS, Windows | The gateway rejected its last policy reload (for example an edited pinned rule pack) and keeps enforcing the previous policy; policy.last_reload_error has the reason. On Windows verify fails. Restore the asset or apply a corrected config |
scanner_runtime_unavailable | Windows | The scanner runtime is not ready, so skill, MCP and plugin installs are blocked. See Lifecycle error codes |
config_reverted | Linux, macOS, Windows | An edit of config.yaml made outside the lifecycle was not applied. The managed config was put back and the edit kept as rejected-config.yaml |
lifecycle_superseded | Linux, macOS | A queued run of an older binary found a newer release installed and stood down |
upgrade_rolled_back | Linux, macOS | A package upgrade failed and was rolled back. Fix the cause in the package result, then install the package again or run ensure --from-package |
guardian_report_pending | Linux, macOS | The guardian had not reported within 30 seconds. Run status or verify again shortly |
guardian_reconcile_pending | Linux, macOS | targets.yaml changed and the guardian has not reconciled it yet. Run verify again in a minute |
package_installed, package_upgraded | Linux, macOS | The MDM wrapper installed or upgraded the package before the ensure whose result follows |
ensure_install, ensure_upgrade, ensure_repair | Windows | The action ensure chose, and why |
ensure_config_restart | Windows | ensure applied a config change by restarting every service (two to six minutes); the message names the keys. See Restart the managed gateway |
codex_machine_folder_link, cursor_machine_folder_link, claudecode_machine_folder_link | Windows | A link or file sits on the path of that agent's machine-policy folder, so the guardian cannot protect it. See A link blocks a vendor folder |
guardian_repaired_drift | Windows | The guardian put back the protection of a managed object that had drifted. Find out who changed it |
runtime_acl_not_repaired | Windows | ensure could not put back the runtime folder's access control. Run ensure again, then repair |
ensure_config_failed | Windows | A config-only ensure failed or rolled back. Fix the errors in the same result and run Setup /ensure again |
enrollment_exclude_unmatched | Linux, macOS, Windows | Some exclude_users entries match no account on this host (the message gives their positions). Fix the spelling or remove them |
ensure_config_applied | Windows | ensure applied a config change in the running gateway and stopped no service |
custom_pack_will_not_load | Windows | An unselected guardrail.custom_packs entry would not load if selected. Fix the pack or its digest, or remove the entry |
policy_not_buildable | Windows | The installed config and its assets no longer build into a policy; the gateway keeps the earlier one |
config_edited_outside_lifecycle | Windows | config.yaml was changed by hand; the guardian records it as a hand edit. Run ensure with the intended config to put the managed config back |
bundle_config_restored | Windows | ensure or repair put the confirmed bundle's config back and kept the edited file as rejected-config.yaml |
bundle_restore_deferred | Windows | An install transaction is pending, so the run recovered it first and did not re-apply the bundle. Run ensure again |
policy_state_unrecorded, config_rejected_unrecorded, registration_failed, lifecycle_log_failed | Windows | A record next to deployment.json, the registry marker, or the lifecycle log could not be written. The result itself stands |
config_rejected_unsettled | Windows | The old config-rejected.json could not be removed. Delete it from an elevated prompt, or run Setup /ensure CONFIG= again |
Kernel sensor warnings
These appear in status and verify on Linux when the sensor helper uses Tetragon. They never
fail enterprise linux verify, and security_complete does not depend on them; enterprise linux tetragon verify does fail while Tetragon is down or refused, and prints the fix for each failing
check. On a per-user install, defenseclaw doctor shows the codes in brackets. See
Tetragon.
Several fixes restart Tetragon. A restart drops policies added with tetra; policies in tetragon.tp.d reload.
| Code | Meaning | Fix |
|---|---|---|
tetragon_unavailable | The sensor helper cannot reach Tetragon, so no kernel control is enforced | sudo systemctl start tetragon |
tetragon_tcp_api [tetragon-tcp-api] | Tetragon serves its API on TCP, which any local account can use. observe and enforce are refused | echo unix:///var/run/tetragon/tetragon.sock | sudo tee /etc/tetragon/tetragon.conf.d/server-address, then restart Tetragon |
tetragon_untrusted_endpoint | The Tetragon info file, socket or a folder is not root-owned or is writable by others, so the helper does not connect | Restore the owner and mode the message names, or restart Tetragon |
tetragon_unsupported_version | consume works on Tetragon 1.6 and 1.7; observe and enforce need 1.7 | Install Tetragon 1.7.x, or keep mode: consume on 1.6 |
tetragon_persistent_sensors | Tetragon runs with keep-sensors-on-exit, so enforce stays in monitor mode | Set keep-sensors-on-exit to false, restart Tetragon, and remove leftover pins under /sys/fs/bpf/tetragon |
tetragon_plane_c_off | enterprise.tetragon.mode is set, but AI Discovery Plane C is off | Set ai_discovery.runtime.enabled: true and ai_discovery.runtime.enable_host_plane: true and apply the config |
tetragon_config_invalid:<variable> | The helper's drop-in has a malformed value, so the helper used the safe default | sudo /opt/defenseclaw/bin/defenseclaw-gateway enterprise linux repair |
tetragon_identity_unknown | Tetragon's pid is not known from its info file, so nothing is loaded | Restart Tetragon |
tetragon_not_applicable | macOS: the config carries enterprise.tetragon, which only Linux uses | Remove enterprise.tetragon from this OS's config |
tetragon_foreign_defenseclaw_name:<name> | A policy you loaded has a name in DefenseClaw's own form. DefenseClaw treats it as yours and never changes it | Rename your policy |
tetragon_customer_events_capped | Events of your policy <name> went over 20 a second and were not forwarded | Nothing, or set enterprise.tetragon.customer_events: off |
kernel_lsm_unavailable | BPF LSM is off, so the controls cannot deny | Add bpf to the kernel's lsm= boot parameter and reboot |
kernel_enforce_ack_missing | mode: enforce has no enforce_ack, so the controls stay in monitor mode | Review sudo /opt/defenseclaw/bin/defenseclaw-gateway enterprise linux tetragon verify --ready-for enforce, then set enterprise.tetragon.enforce_ack to the digest it prints |
kernel_enforce_ack_stale | enforce_ack does not include this build's digest, so every user is in monitor mode | Review the release notes, then set enforce_ack to the new digest (or the old and new while rings upgrade) |
kernel_enforce_guardrail_observe:<connector> | The connector is in observe mode, so its agents are never denied | Set guardrail.connectors.<connector>.mode: action, or leave it monitor-only |
kernel_enforce_paused | Kernel enforcement is paused until the time the warning gives | sudo /opt/defenseclaw/bin/defenseclaw-gateway enterprise linux tetragon resume, or wait |
kernel_pause_file_invalid | A pause file is not a root-owned regular file, so enforcement stays paused | Run enterprise linux tetragon resume |
kernel_enforce_inactive | No enrolled user has an anchored agent, or no user has finished burn-in | Install or enroll an agent for a user; for burn-in, nothing to do |
kernel_burn_in_skipped | burn_in is 0, so users are enforced without a measured window | Set enterprise.tetragon.burn_in to at least 24h |
kernel_policy_operator_override:<family> | A policy family was moved to monitor mode or deleted with tetra, and the helper honors that | Change enforce_ack or mode to hand it back to DefenseClaw |
kernel_policy_not_applied | The helper's last pass did not leave every policy the mode calls for | Wait about a minute; if it stays, run enterprise linux ensure |
protected_file_extra_links:<path> | A protected file has a second hard link, which no path control matches | Remove the other name (find ~ -samefile <path> finds it) |
kernel_link_rename_not_covered:<path> | The protected path is not on the root mount, so link and rename controls skip it | None, or move the home onto the root mount |
kernel_roots_over_limit | More than four live agent sessions for the monitor controls; burn-in time pauses for the extra sessions | None; burn-in resumes when they end |
kernel_session_policy_pending | A new agent session is not yet in a controls policy | Wait for the next pass; if it stays, check the helper journal |
kernel_pid_anchor_monitor_only | In enforce, a session is matched only by process ID (for example a script-hosted agent), so it is never denied | None; install the agent's native binary for that user to have them denied |
kernel_sessions_predate_controls | Some agent sessions started before the controls policy loaded, so they are monitored, not denied | Restart those sessions |
kernel_sessions_unconfirmed | Tetragon never reported some sessions' start, so they are not counted as denied | Check the stream in status, then restart the sessions |
no_anchored_session | A user is armed, but no session of theirs started from an agent binary after the policy loaded | None; their next session is denied |
kernel_binary_anchor_scope_limited | Several users of one controls policy have a native agent install; it denies only for the lowest uid | A limit. Exclude accounts that should not hold it with enterprise.enrollment.exclude_users. See Tetragon reference |
kernel_reconcile_failed | The helper's last pass failed to load or update a policy | See the ERROR column of enterprise linux tetragon status and journalctl -u defenseclaw-sensor-helper |
kernel_state_unreadable | status could not read the helper's state in /var/lib/defenseclaw-sensor | sudo systemctl restart defenseclaw-sensor-helper; check the folder is root-owned with mode 0700 |
enrollment_unreadable | targets.yaml cannot be read or trusted, so the helper keeps its last enrollment | sudo /opt/defenseclaw/bin/defenseclaw-gateway enterprise linux repair |
tetragon-not-used-per-user (doctor only) | A per-user install found Tetragon; it never connects to it | None |
verify fails only for state DefenseClaw owns:
| Code | Meaning | Fix |
|---|---|---|
kernel_policy_orphaned | A recorded policy is still loaded while the mode is off or consume, or the helper is not running | Start the helper, or run sudo /opt/defenseclaw/bin/defenseclaw-sensor-helper --tetragon-cleanup, then verify |
kernel_policy_load_error:<name> | Tetragon reports the named DefenseClaw policy in an error state | Check journalctl -u tetragon -n 50, then restart defenseclaw-sensor-helper |
MDM wrapper error codes
The wrapper scripts check their inputs before they start the lifecycle. Most mdm_ codes mean
the wrapper stopped before the lifecycle ran; mdm_not_installed after an apply, and
mdm_secret_failed on Windows, come after it succeeded. In every mdm_ document,
installed: false means "not checked". Exit codes are in MDM exit codes.
| Code | Meaning |
|---|---|
mdm_invalid_arguments | A flag or setting is missing, malformed, or conflicts with another (exit 2 for an unknown argument on Linux and macOS) |
mdm_not_root, mdm_not_elevated | Not running as root, SYSTEM, or an elevated administrator |
mdm_wrong_platform | The Linux copy ran on macOS, or the reverse |
mdm_hash_mismatch | The staged source does not match the pinned SHA-256 |
mdm_signature_invalid, mdm_signer_not_allowed, mdm_signature_unsupported | Signature trust failed, the signer is not allowed, or this source type cannot be checked by signature |
mdm_version_mismatch | Linux and macOS: the source is not the --product-version you set |
mdm_untrusted_input | A config, credential or keyring file can be changed by a non-administrator, or the installed gateway is not root-owned |
mdm_untrusted_install | Windows, uninstall.ps1: the installed CLI or its folders are not administrator-only |
mdm_input_too_large | The config is over 1 MiB or the credential is over 16 KiB |
mdm_payload_invalid, mdm_package_invalid, mdm_wrong_package, mdm_wrong_architecture | Linux and macOS: the archive or package is not a DefenseClaw enterprise artifact for this host. The Linux wrapper reads the package architecture, for a .deb and for an RPM, before installation |
mdm_package_manager_busy | Linux and macOS: dpkg, rpm or the installer held its lock. Exit 75; retry |
mdm_package_install_failed, mdm_package_remove_failed, mdm_package_manager_missing | Linux and macOS: the package manager failed or is missing. When the macOS package's own scripts refused, the wrapper prints their code, such as downgrade_refused |
mdm_package_result_empty | macOS: the Installer failed and left an empty last-package-result.json. Read last-package-result.log next to it |
mdm_disk_full | Not enough free space for the package. Nothing was installed |
mdm_download_failed, mdm_download_unavailable | Linux and macOS: the HTTPS download failed, or there is no curl or wget |
mdm_not_installed | A read-only action, or an ensure without a source, found no deployment |
mdm_binaries_damaged | Linux and macOS: an installed binary is missing or changed. Run the wrapper with the package as the source |
mdm_lifecycle_no_result, mdm_lifecycle_launch_failed | The lifecycle did not start or printed no result |
mdm_secret_failed | Storing the credential failed (on Windows after the deployment applied) |
mdm_staging_untrusted, mdm_package_incomplete | The private staging folder or the Intune content is not as expected |
mdm_staging_noexec | Linux: the staging folder is on a noexec mount. Pass --staging-dir with a root-only folder that allows execution |
mdm_staging_full, mdm_cancelled | Linux and macOS: the staging filesystem filled, or the MDM stopped the wrapper (inspect the deployment before a fresh run) |
mdm_base_config_mismatch, mdm_tar_missing, mdm_anchor_install_failed | Linux and macOS, signed bundles: the base config does not match the bundle, tar is missing, or the trust anchor could not be installed |
Wrapper logs: /var/log/defenseclaw-enterprise-mdm.log on Linux,
/Library/Logs/Cisco/DefenseClaw/mdm-wrapper.log on macOS, and
%WINDIR%\Logs\DefenseClaw\mdm-wrapper.log on Windows.
Hook refusal codes
When DefenseClaw refuses a hook call, the agent shows a sentence that names the cause. The outage
and runtime-state refusals end with the code; an unenrolled account's does not. For a refusal the
gateway made, the code is in the gateway log (journalctl -u defenseclaw-gateway on Linux) and in
the audit log as the defenseclaw.admin.reason of an api-auth-failure event. A code the hook
raises itself, such as enterprise_managed_gateway_not_running, is not in the gateway log.
| Code | OS | Meaning and fix |
|---|---|---|
enterprise_managed_uid_unregistered | Linux, macOS | The user is not enrolled for this connector. Fix: Enroll the user. See A user is not enrolled |
enterprise_managed_sid_unregistered | Windows | The user's SID has no enrolled runtime. Fix: Enroll the user and have them sign in to a desktop session (console or Remote Desktop) |
enterprise_managed_enrollment_pending | Windows | The account has no runtime selected yet, so every tool call is refused. Fix: Sign in to Windows once as that user |
enterprise_managed_root_denied | Linux, macOS | root called a hook while enrollment.root is deny. Fix: Run the agent as a normal user, or change enrollment.root |
enterprise_managed_ledger_unavailable | Linux, macOS | The gateway cannot read the guardian's authorization ledger. Fix: Check that the guardian runs, then run reconcile |
enterprise_managed_connector_unknown | Linux, macOS | The hook call named no connector the gateway knows. Fix: Check the hook registration; run reconcile |
enterprise_managed_peer_unverified | Linux, macOS | The gateway could not read the caller's identity from the kernel. Fix: Run repair; if it persists, save the gateway log and verify |
enterprise_managed_gateway_peer_unverified | all | The hook could not verify the listener. Windows: the process on 127.0.0.1:18970 is not the DefenseClawGateway service. Linux and macOS: the socket directory is not owned by root or the gateway account, or the listener UID the kernel reports is neither. Fix: Check status; on Windows find what holds the port, on Linux and macOS run repair |
enterprise_managed_gateway_not_running | all | The gateway service is not running, so the hook denies the call. With hook_fail_mode: open it allows and records it, but for connectors with foreign_hooks: remove (the default) only on Linux and macOS, for a session with a clean-session note (Fail modes). The refusal is not in the audit log; the hook writes an event_id to the user's hook-failures.jsonl. Fix: Run repair, or start the service |
enterprise_managed_gateway_restarting | Linux | The gateway was still stopping or starting about 3 seconds after the hook started, so the call was blocked, also under hook_fail_mode: open. Fix: None for a restart you started; otherwise check status |
enterprise_managed_gateway_no_answer | all | The gateway gave no decision within the hook's answer window (about 3.5 seconds), for example while busy or while its HTTP 429 resends used the window. The call is blocked, also under hook_fail_mode: open; with foreign_hooks: remove the guard's session check can block sooner. Fix: If it persists, see hook_over_capacity in status and Hook sizing |
enterprise_managed_hook_socket_selinux_denied | Linux | SELinux kept a confined account from the hook socket (selinux_module_missing). Fix: Run repair |
enterprise_managed_runtime_descriptor_missing | Linux, macOS | The runtime descriptor (managed-runtime.json) is missing, so tool calls are denied. Fix: Run repair |
enterprise_managed_runtime_state_invalid | all | The hook's trusted runtime state is missing or invalid. Fix: Run repair, then reconcile |
enterprise_managed_runtime_home_missing | all, per-user-runtime agents | The user's DefenseClaw runtime folder is missing. Fix: The guardian recreates it within about a minute; if not, run reconcile |
enterprise_managed_runtime_disable_sentinel_forbidden | all, per-user-runtime agents | A .disabled file is in the user's runtime folder; managed hooks refuse rather than turn off. Fix: Remove the file |
enterprise_foreign_hook_blocked | all | A user or repository config adds a hook your policy has not approved. Fix: Remove it, or add its digest to allowed_hooks. See Foreign-hook guard |
enterprise_foreign_hook_check_failed | Linux, macOS | Hermes only: the foreign-hook check got no usable answer, so the call was blocked. Fix: Check that defenseclaw-hook runs for the user; run repair |
enterprise_machine_policy_summary_untrusted | all | The hook could not confirm that only administrators can change the machine policy summary or a folder above it. Fix: Run repair, which writes the folder permissions back |
enterprise_managed_rate_limited | all | HTTP 429: this account sent more hook requests than its budget (120 a second, a burst of 240, 64 at a time). The hook resends; a rate limit is not a classified outage, so if no verdict follows, the call is blocked whatever hook_fail_mode says. Fix: Find what floods the gateway from that account |
enterprise_managed_overloaded | all | HTTP 429: the gateway holds as many hook requests as it can answer in time (16 per processor, at least 2,800). The hook resends; a rate limit is not a classified outage, so if no verdict follows, the call is blocked whatever hook_fail_mode says. Fix: Retry; if it repeats, the host needs more processors |
HOOK-PAYLOAD-TOO-LARGE (rule ID) | all | A managed hook refused a prompt or tool call over its 1 MiB body cap before it reached the gateway. Fix: None on the host; the user sends less at once. See Fail modes |
Refusals during an install or upgrade
While a Setup, pkg or rpm run holds the gateway stopped or restarting, a managed hook that would
block for an outage says "DefenseClaw is being installed or upgraded on this computer, and its
gateway is stopped until that run finishes or is recovered", followed by the code. Retry after the
run ends. A run that stopped before it finished keeps blocking until it is recovered: status
shows transaction_pending and names the recovery.
Known limits for managed hooks
- Claude Code policy sources. An unexpected Claude Code policy value type, an untrusted key access list, or server-managed settings can surface as a slower Setup failure. Setup keeps the last verified state; correct the named source and retry.
- Large shell commands. A Claude Code or Codex shell command with more than 512 write targets (or 64 KiB of target paths) is blocked in the strict profile and runs with an alert in the default and permissive profiles (rule
ACTION-COMPOUND-LIMIT). Split the command. See evaluation limit. - Slow disks on Windows. Sustained hook traffic on a slow disk can delay audit writes and hook answers. The gateway bounds the
audit.db-walcatch-up (short holds from 176 MiB, a warning over 256 MiB), but a call it does not answer in time is blocked, underclosedand underopenalike. - Approvals after an outage. A call DefenseClaw allowed while the gateway ran still runs if you approve it in the agent after the gateway stops. Every call checked while the gateway is down is blocked.
- Readers of managed policy files on Windows. A program that opens a managed policy file without delete sharing can find it missing for a moment while a policy update replaces it. DefenseClaw and the Claude Code, Codex and Cursor agents share delete access; a reader of your own should too, or retry once.
Enterprise troubleshooting
Fix a standalone DefenseClaw enterprise deployment by symptom, on Windows, Linux, and macOS, from install and upgrade to hooks, enrollment, identity and ports.
Administrator runbook for an AI agent
A runbook an administrator can hand to an AI agent to write a standalone DefenseClaw config, check it, run ensure on a named host and verify the result.