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

MeaningLinux and macOSWindows standaloneWhat to do
Success, or nothing to change00Nothing
The action failed. A mutating action has already rolled back11603Read errors[].code
Invalid arguments21639Fix the command line or MDM settings. Retrying does not help
Another lifecycle run holds the lock751618Retry later
A standard account ran an action that needs elevation (elevation_required)—5Run it from an elevated prompt
Reserved: success, reboot required—3010Not used

The standalone Windows Setup can refuse before the lifecycle starts:

  • Exit 1639: a malformed command line (a relative or environment-expanded CONFIG= or MANIFEST= path, an unknown property, /install without CONFIG= and MANIFEST=, TIMEOUTSECONDS out of range), a config or manifest file that a non-administrator can change, or an option defenseclaw.exe does 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.

CodeOSMeaningFix
unsupported_platformLinux, macOSThe Linux or macOS lifecycle ran on another OSRun the lifecycle for this OS
invalid_argumentsallThe 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 1639Correct the command. On Windows, run the Setup, which supplies every payload file
lifecycle_busyallAnother 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 TIMEOUTSECONDSWait and run it again. On Linux and macOS, --lock-wait <duration> (at most 15m) waits instead; verify has no --lock-wait
bundle_not_appliedWindowsA 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 failRun ensure. It re-applies the confirmed bundle from the bundle store
bundle_restore_failedWindowsensure or repair could not put the confirmed bundle's config back over an edited or deleted config.yaml. The run also reports bundle_not_appliedDeliver the bundle again, or a newer one
not_rootLinux, macOSThe action needs root. status reports it too when a standard user cannot read the deployment recordRun it with sudo or from the MDM agent
service_manager_unavailableLinuxsystemd is not the init system (containers, WSL), or it is older than 239Use a supported host. See Requirements
wsl_distributionLinuxThe host is a WSL distribution. A new install is refused; an existing deployment gets a warningUninstall it and govern WSL from Windows. See Agent sessions in WSL
state_unreadableLinux, macOSThe lifecycle state (/var/lib/defenseclaw-enterprise on Linux, /opt/cisco/defenseclaw/lifecycle on macOS) cannot be readCheck that directory and the disk
already_installedLinux, macOSinstall ran on a host that already has a deploymentUse ensure, upgrade or repair
not_installedallupgrade, repair, reconcile or verify found no deployment. On Windows, also an action that reported success but left no deploymentInstall first; ensure installs when nothing is there. On Windows, run the same command again and keep the lifecycle log if it repeats
profile_conflictallAnother 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_presentLinux, macOSDefenseClaw files or units exist that no committed deployment owns, for example from a hand-made installRerun 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_invalidLinux, macOSThe 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 recordStage 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_binariesLinuxA --payload upgrade on a host where the deb or rpm owns the binariesUpgrade with the package manager
config_invalidLinux, macOSThe --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_failedFix the file or pass the real, root-owned path. See the settings reference
service_accountLinux, macOSCreating or checking the gateway service account (defenseclaw or _defenseclaw) failedCheck useradd or dscl and your directory service
apply_failedLinux, macOSWriting the files failed. The action rolled backRead the message. Check disk space and read-only mounts
api_port_heldallAnother 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 closedStop that process (the message names it), then run the command again. See Find what holds port 18970
activation_failedLinux, macOSA service did not start or did not become ready. The action rolled backRead the gateway output in the message and last-activation-failure.log in the lifecycle directory. See Logs and events
config_refusedLinux, macOSThe installed gateway binary refuses the installed config, for example a custom rule pack that no longer matches its pinned digest. The message gives the refusalCorrect the named setting in config.yaml or your ensure --config file, and run ensure
verify_failedLinux, macOSIn status and verify: one error per problem found. In a mutating action: the check after applying failed, and the action rolled backRead each message. Most are fixed by ensure or repair
rollback_failedLinux, macOSA failed action could not restore the previous deployment completelyRun repair or ensure. If it still fails, save the result and the logs, then uninstall and install again
disk_fullLinux, macOS; Windows policy bundlesAn action ran out of disk space and rolled back (or changed nothing). The message names the path or filesystemFree space on the named filesystem and run the action again
machine_policy_failedLinux, macOSA 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 insteadMake the named file writable and run ensure again. See Machine policy
uninstall_failedLinux, macOSSome files, directories, or the service account could not be removedRead the message and run uninstall again
uninstall_incompleteLinux, macOSThe 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 filesFix the cause the message names and run the uninstall or package removal again
per_user_hooks_remainingLinux, macOSUninstall 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_fencedLinux, macOSBefore 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 modeFix the named folder or file and run the action again
replaced_hook_calls_runningLinux, macOSHook calls of the release being replaced were still running 120 seconds after their hooks were fenced. Usually the agent stalled its own hookAsk the named user to end the stalled agent session
reconcile_failedLinux, macOSThe immediate guardian reconcile failed. There is one error per target the guardian could not protectRead each message. If none names a target, read the guardian log
downgrade_refusedallThe payload or package is older than the installed release. On Windows, ensure found a newer release installed than the Setup you ranTo go back on purpose, see Roll back (--allow-downgrade on Linux and macOS)
sandboxes_runningLinux, macOS packagesThe 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 sandboxHave each user end their sandboxes, then install the package again
product_floor_refusedLinux, macOS, WindowsThe 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 itCheck 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_rejectedLinux, macOS, WindowsThe 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_requiredWindowsPowerShell 7 (the x64 MSI) is not installed under Program FilesInstall PowerShell 7 x64
powershell7_untrustedWindowspwsh.exe is not a regular file, is writable by non-administrators, or is not signed by MicrosoftReinstall PowerShell 7 from the Microsoft MSI
powershell_execution_policyWindowsA Group Policy execution policy (for example AllSigned) blocked the lifecycle script. Nothing was changedSet 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_languageWindowsThe lifecycle started in 32-bit PowerShell or in Constrained Language modeStart it from a 64-bit process in Full Language mode, or use the MDM wrapper
unsupported_architectureWindowsThe host is not native x64. x64 emulation on ARM64 is refusedUse an x64 device
ensure_refusedWindowsensure could not choose an action, for example because it could not read the installed deployment's metadataRead the message, then run repair
status_failedWindowsSetup /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_failedWindowsensure could not prepare the first target manifest from the configCheck the config
lifecycle_launch_failedWindowsThe PowerShell 7 lifecycle did not start, or printed no resultRead the message and enterprise-lifecycle.log
route_config_unverifiedWindowsverify from an elevated administrator prompt could not read an account's Claude Code or Codex route-only settings, which only SYSTEM can readRun verify as SYSTEM, for example from your MDM or a scheduled task
lifecycle_errorWindowsThe lifecycle reported a failure without a stable codeRead errors[].message and enterprise-lifecycle.log
rule_pack_unreadableWindowsThe 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_readyWindowsThe run finished, but the deployment is not healthy; the message names the stopped services. verify also reports it when a required service has stoppedRun 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_missingWindowsC:\ProgramData\Cisco\DefenseClaw-HookRuntime is missing while accounts are enrolledRun repair. The guardian writes the folder and summary back
gateway_start_failedWindowsstatus or verify found the gateway service not running; the message gives its last error and the log pathFix what the error names. For Access is denied, run repair from an elevated prompt
rule_pack_shipped_invalidWindowsThe shipped strict or permissive pack folder is missing, changed, or writable by a standard user, so the gateway refuses that packRun Setup /repair or /ensure, which write the release's packs again
scanner_runtime_unavailableWindowsThe 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 readyRun 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_requiredWindowsA 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_failedWindowsA check before the lifecycle started failedRead the message
change_failedLinux, macOSenterprise secret set or another protected-state change could not be writtenRun it as root and check that the secrets folder is writable by root
rotation_failedLinux, macOSrotate-credentials did not commit the new key; the previous key stays in use. The message names the step and the usersFix what the message names, then rotate again. See Rotate per-user credentials

Warnings

Warnings do not fail an action. They appear in warnings[].

CodeOSMeaning and fix
rolled_backLinux, macOSA failed action restored the previous deployment. The error beside it says why
bundle_state_unreadableLinux, macOS, WindowsPart 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_keptLinux, macOSA 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_floorLinux, macOS, WindowsThe 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_transactionLinux, macOSThis run found an interrupted run and rolled it back first
rotation_recoveredLinux, macOSThis run completed or rolled back an interrupted rotate-credentials
rotation_incompleteLinux, macOSA rotate-credentials run did not finish. Run rotate-credentials again, or any mutating action, to complete or roll it back
recovered_failed_installWindowsThis run rolled back a failed first install
rollback_leftoverWindowsThe 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_untrustedWindowsAn 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_collectedWindowsensure 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_leftWindowsAfter 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_incompleteLinux, macOS, Windowssecurity_complete is false; the message lists the warning codes behind it. See security_complete is false
coverage_incompleteWindowscoverage_complete is false; the message lists every check that made it false. On Linux and macOS these reasons are in security_incomplete
machine_policy_incompleteLinux, macOS, WindowsDefenseClaw'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_openLinux, macOS, WindowsAn 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_heldWindowsAnother 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_unsettledWindowsA 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_uninspectedLinux, macOSA 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_unavailableLinux, macOS, WindowsStatus 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_unreadableLinux, macOS, WindowsThe 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_missingWindowsScans 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_missingLinux, macOSThe Claude Code version floor drop-in is missing, so verify fails until ensure, repair or reconcile writes it back. See Machine policy connectors
not_startedLinux, macOS, WindowsInstalled with --no-start (Setup NOSTART=1). status and verify fail until the services run; run repair or ensure
adopted_existing_layoutLinux, macOS--adopt-existing backed up the old layout to the lifecycle directory
selinux_relabelLinuxrestorecon failed after the files were written
selinux_moduleLinuxThe 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_missingLinuxSELinux is enabled without the DefenseClaw module or labels, so confined users' hooks are refused with enterprise_managed_hook_socket_selinux_denied. Run repair
judge_failingLinux, macOS, WindowsThe LLM judge is failing or unavailable; prompts still get rule-pack verdicts. Check the judge's provider credentials and network
llm_model_unroutableLinux, macOS, WindowsThe 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_lowLinux, macOSA 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_failedLinux, macOSThe 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_inLinuxA 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_unavailableLinux, macOSCisco AI Defense is enabled but unavailable:<code>; the local policy engine keeps deciding. See Check the key
directory_lookups_failingLinux, macOSThe 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_remainingLinux, macOSThe 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_remainingLinux, macOS, WindowsA 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_squattedWindowsA 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_recordWindowsProfile resolution ignored a deployment record whose trust check failed. For a standalone record, restore its owner to BUILTIN\Administrators
machine_state_remainingWindowsAn uninstall could not remove a leftover DefenseClaw-PowerShell-, -Installer- or -Bootstrap- folder. Remove the named paths from an elevated prompt
machine_state_keptWindowsA purge kept a machine file on purpose, because another DefenseClaw deployment uses it. Leave it in place
created_folders_keptWindowsA 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_keptWindowsAn 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_credentialLinux, macOSAn 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_uncheckedLinux, macOS, Windowsverify 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_restoredLinux, macOS, WindowsThe 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_failingWindowsThe 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_failedWindowsUninstall could not act as some users. Run Setup /ensure and then /uninstall, both as LocalSystem while those accounts have an active session
package_install_failedLinux, macOSThe 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_requiredWindowsA standard account ran a command that needs elevation. Exit 5; nothing was changed
health_not_checkedWindowsThe 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_rowsWindowsA local account was deleted; the enumerator drops its rows at its next pass. Nothing to do
enrollment_pending_account_folderWindowsAn account created its own %USERPROFILE%\.defenseclaw. DefenseClaw takes it over when the account next signs in
hook_contract_unverifiedallA 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_unknownLinux, macOS, WindowsThe guardian could not read or write an account's OpenCode service.json. The line names the step that clears it. See OpenCode
opencode_port_contestedLinux, macOS, WindowsA port stays held because several files named it. Repair the account file and run the clear command the warning names
opencode_port_record_unreadableLinux, macOS, WindowsThe 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_uncheckedLinux, macOS, WindowsA non-root or non-elevated status cannot open the guardian's folder. Run status as root or elevated
opencode_v1_unprotectedallA 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_incompleteLinux, macOS, WindowsThe 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_partialLinux, macOS, WindowsThe same scan gap, but the agent's managed hook is verified for the account, so the account is covered. Review the named folder
agent_unprotectedallAn agent is installed for a user but could not be enrolled. verify warns and does not fail. See Enrollment
guardian_target_failedLinux, macOSThe guardian could not install or repair hooks for one user and connector; the message gives the reason. Other users stay protected
guardian_target_user_pathLinux, macOSA 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_removedLinux, macOSA target's account no longer exists. The enumerator removes it after three misses; repair removes it at once
guardian_cleanup_pendingLinux, macOSA 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_pendingLinux, macOS, WindowsA 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_unavailableLinux, macOSAn enrolled account's home cannot be found, possibly a mount outage. Enrollment is kept and retried
guardian_user_file_pendingLinux, macOSThe guardian has not yet written a new user's per-user hook file. It does within a minute or two
per_user_gateway_runningLinux, macOSAn 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_requiredLinux, macOS, WindowsA 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_enabledLinux, macOS, WindowsThe config enables no agent under guardrail.connectors, so verify fails. See Choose the agents to protect
unmanaged_leftoversLinux, macOSDefenseClaw state exists with no deployment. Run uninstall --purge
unit_failedLinux, macOSA 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_changedLinux, macOSconfig.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_appliedLinux, macOS, WindowsThe ready gateway reports another policy digest than the installed config. verify fails. See policy.applied is false
policy_reload_rejectedLinux, macOS, WindowsThe 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_unavailableWindowsThe scanner runtime is not ready, so skill, MCP and plugin installs are blocked. See Lifecycle error codes
config_revertedLinux, macOS, WindowsAn 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_supersededLinux, macOSA queued run of an older binary found a newer release installed and stood down
upgrade_rolled_backLinux, macOSA 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_pendingLinux, macOSThe guardian had not reported within 30 seconds. Run status or verify again shortly
guardian_reconcile_pendingLinux, macOStargets.yaml changed and the guardian has not reconciled it yet. Run verify again in a minute
package_installed, package_upgradedLinux, macOSThe MDM wrapper installed or upgraded the package before the ensure whose result follows
ensure_install, ensure_upgrade, ensure_repairWindowsThe action ensure chose, and why
ensure_config_restartWindowsensure 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_linkWindowsA 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_driftWindowsThe guardian put back the protection of a managed object that had drifted. Find out who changed it
runtime_acl_not_repairedWindowsensure could not put back the runtime folder's access control. Run ensure again, then repair
ensure_config_failedWindowsA config-only ensure failed or rolled back. Fix the errors in the same result and run Setup /ensure again
enrollment_exclude_unmatchedLinux, macOS, WindowsSome exclude_users entries match no account on this host (the message gives their positions). Fix the spelling or remove them
ensure_config_appliedWindowsensure applied a config change in the running gateway and stopped no service
custom_pack_will_not_loadWindowsAn unselected guardrail.custom_packs entry would not load if selected. Fix the pack or its digest, or remove the entry
policy_not_buildableWindowsThe installed config and its assets no longer build into a policy; the gateway keeps the earlier one
config_edited_outside_lifecycleWindowsconfig.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_restoredWindowsensure or repair put the confirmed bundle's config back and kept the edited file as rejected-config.yaml
bundle_restore_deferredWindowsAn 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_failedWindowsA record next to deployment.json, the registry marker, or the lifecycle log could not be written. The result itself stands
config_rejected_unsettledWindowsThe 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.

CodeMeaningFix
tetragon_unavailableThe sensor helper cannot reach Tetragon, so no kernel control is enforcedsudo 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 refusedecho unix:///var/run/tetragon/tetragon.sock | sudo tee /etc/tetragon/tetragon.conf.d/server-address, then restart Tetragon
tetragon_untrusted_endpointThe Tetragon info file, socket or a folder is not root-owned or is writable by others, so the helper does not connectRestore the owner and mode the message names, or restart Tetragon
tetragon_unsupported_versionconsume works on Tetragon 1.6 and 1.7; observe and enforce need 1.7Install Tetragon 1.7.x, or keep mode: consume on 1.6
tetragon_persistent_sensorsTetragon runs with keep-sensors-on-exit, so enforce stays in monitor modeSet keep-sensors-on-exit to false, restart Tetragon, and remove leftover pins under /sys/fs/bpf/tetragon
tetragon_plane_c_offenterprise.tetragon.mode is set, but AI Discovery Plane C is offSet 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 defaultsudo /opt/defenseclaw/bin/defenseclaw-gateway enterprise linux repair
tetragon_identity_unknownTetragon's pid is not known from its info file, so nothing is loadedRestart Tetragon
tetragon_not_applicablemacOS: the config carries enterprise.tetragon, which only Linux usesRemove 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 itRename your policy
tetragon_customer_events_cappedEvents of your policy <name> went over 20 a second and were not forwardedNothing, or set enterprise.tetragon.customer_events: off
kernel_lsm_unavailableBPF LSM is off, so the controls cannot denyAdd bpf to the kernel's lsm= boot parameter and reboot
kernel_enforce_ack_missingmode: enforce has no enforce_ack, so the controls stay in monitor modeReview 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_staleenforce_ack does not include this build's digest, so every user is in monitor modeReview 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 deniedSet guardrail.connectors.<connector>.mode: action, or leave it monitor-only
kernel_enforce_pausedKernel enforcement is paused until the time the warning givessudo /opt/defenseclaw/bin/defenseclaw-gateway enterprise linux tetragon resume, or wait
kernel_pause_file_invalidA pause file is not a root-owned regular file, so enforcement stays pausedRun enterprise linux tetragon resume
kernel_enforce_inactiveNo enrolled user has an anchored agent, or no user has finished burn-inInstall or enroll an agent for a user; for burn-in, nothing to do
kernel_burn_in_skippedburn_in is 0, so users are enforced without a measured windowSet 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 thatChange enforce_ack or mode to hand it back to DefenseClaw
kernel_policy_not_appliedThe helper's last pass did not leave every policy the mode calls forWait 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 matchesRemove 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 itNone, or move the home onto the root mount
kernel_roots_over_limitMore than four live agent sessions for the monitor controls; burn-in time pauses for the extra sessionsNone; burn-in resumes when they end
kernel_session_policy_pendingA new agent session is not yet in a controls policyWait for the next pass; if it stays, check the helper journal
kernel_pid_anchor_monitor_onlyIn enforce, a session is matched only by process ID (for example a script-hosted agent), so it is never deniedNone; install the agent's native binary for that user to have them denied
kernel_sessions_predate_controlsSome agent sessions started before the controls policy loaded, so they are monitored, not deniedRestart those sessions
kernel_sessions_unconfirmedTetragon never reported some sessions' start, so they are not counted as deniedCheck the stream in status, then restart the sessions
no_anchored_sessionA user is armed, but no session of theirs started from an agent binary after the policy loadedNone; their next session is denied
kernel_binary_anchor_scope_limitedSeveral users of one controls policy have a native agent install; it denies only for the lowest uidA limit. Exclude accounts that should not hold it with enterprise.enrollment.exclude_users. See Tetragon reference
kernel_reconcile_failedThe helper's last pass failed to load or update a policySee the ERROR column of enterprise linux tetragon status and journalctl -u defenseclaw-sensor-helper
kernel_state_unreadablestatus could not read the helper's state in /var/lib/defenseclaw-sensorsudo systemctl restart defenseclaw-sensor-helper; check the folder is root-owned with mode 0700
enrollment_unreadabletargets.yaml cannot be read or trusted, so the helper keeps its last enrollmentsudo /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 itNone

verify fails only for state DefenseClaw owns:

CodeMeaningFix
kernel_policy_orphanedA recorded policy is still loaded while the mode is off or consume, or the helper is not runningStart 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 stateCheck 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.

CodeMeaning
mdm_invalid_argumentsA 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_elevatedNot running as root, SYSTEM, or an elevated administrator
mdm_wrong_platformThe Linux copy ran on macOS, or the reverse
mdm_hash_mismatchThe staged source does not match the pinned SHA-256
mdm_signature_invalid, mdm_signer_not_allowed, mdm_signature_unsupportedSignature trust failed, the signer is not allowed, or this source type cannot be checked by signature
mdm_version_mismatchLinux and macOS: the source is not the --product-version you set
mdm_untrusted_inputA config, credential or keyring file can be changed by a non-administrator, or the installed gateway is not root-owned
mdm_untrusted_installWindows, uninstall.ps1: the installed CLI or its folders are not administrator-only
mdm_input_too_largeThe config is over 1 MiB or the credential is over 16 KiB
mdm_payload_invalid, mdm_package_invalid, mdm_wrong_package, mdm_wrong_architectureLinux 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_busyLinux and macOS: dpkg, rpm or the installer held its lock. Exit 75; retry
mdm_package_install_failed, mdm_package_remove_failed, mdm_package_manager_missingLinux 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_emptymacOS: the Installer failed and left an empty last-package-result.json. Read last-package-result.log next to it
mdm_disk_fullNot enough free space for the package. Nothing was installed
mdm_download_failed, mdm_download_unavailableLinux and macOS: the HTTPS download failed, or there is no curl or wget
mdm_not_installedA read-only action, or an ensure without a source, found no deployment
mdm_binaries_damagedLinux 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_failedThe lifecycle did not start or printed no result
mdm_secret_failedStoring the credential failed (on Windows after the deployment applied)
mdm_staging_untrusted, mdm_package_incompleteThe private staging folder or the Intune content is not as expected
mdm_staging_noexecLinux: the staging folder is on a noexec mount. Pass --staging-dir with a root-only folder that allows execution
mdm_staging_full, mdm_cancelledLinux 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_failedLinux 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.

CodeOSMeaning and fix
enterprise_managed_uid_unregisteredLinux, macOSThe user is not enrolled for this connector. Fix: Enroll the user. See A user is not enrolled
enterprise_managed_sid_unregisteredWindowsThe 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_pendingWindowsThe account has no runtime selected yet, so every tool call is refused. Fix: Sign in to Windows once as that user
enterprise_managed_root_deniedLinux, macOSroot called a hook while enrollment.root is deny. Fix: Run the agent as a normal user, or change enrollment.root
enterprise_managed_ledger_unavailableLinux, macOSThe gateway cannot read the guardian's authorization ledger. Fix: Check that the guardian runs, then run reconcile
enterprise_managed_connector_unknownLinux, macOSThe hook call named no connector the gateway knows. Fix: Check the hook registration; run reconcile
enterprise_managed_peer_unverifiedLinux, macOSThe 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_unverifiedallThe 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_runningallThe 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_restartingLinuxThe 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_answerallThe 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_deniedLinuxSELinux kept a confined account from the hook socket (selinux_module_missing). Fix: Run repair
enterprise_managed_runtime_descriptor_missingLinux, macOSThe runtime descriptor (managed-runtime.json) is missing, so tool calls are denied. Fix: Run repair
enterprise_managed_runtime_state_invalidallThe hook's trusted runtime state is missing or invalid. Fix: Run repair, then reconcile
enterprise_managed_runtime_home_missingall, per-user-runtime agentsThe 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_forbiddenall, per-user-runtime agentsA .disabled file is in the user's runtime folder; managed hooks refuse rather than turn off. Fix: Remove the file
enterprise_foreign_hook_blockedallA 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_failedLinux, macOSHermes 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_untrustedallThe 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_limitedallHTTP 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_overloadedallHTTP 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)allA 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-wal catch-up (short holds from 176 MiB, a warning over 256 MiB), but a call it does not answer in time is blocked, under closed and under open alike.
  • 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.