Files
Pulse/internal/agentcapabilities
rcourtman 4a090045a8 Tell Patrol when an agent has commands off, not disconnected
Agents install with command execution off. On such a host every container
action and every log or command read is refused, and Pulse reported all of
it as "command agent is not connected". Nothing is disconnected: commands
were never enabled. Patrol's prompt still listed restart, stop and update,
the model proposed one, was refused, and told the user to restore a
connection that is not broken. On the six-fault set a default agent
resolved 1 of 6 against 5 of 6 with commands on, and no Ask first install
produced a plan in 30 days.

The two states now have two codes everywhere a refusal surfaces. The Docker
executor reports host_commands_disabled when the container's host carries a
reporting Pulse agent whose own report says commands are off, with the one
step that fixes it: the install command with command access ticked. A
monitoring-only agent refuses a server request to enable commands, so there
is no server-side switch to offer. A stopped agent, an integration-only
host and an unknown host stay command_agent_disconnected. Read tools return
COMMANDS_NOT_ENABLED in place of NO_AGENT for the same case, found by asking
routing where the target would go if every reporting agent held a session.

Patrol's catalog and patrol_action_capabilities list only what planning
would accept now. Refused capabilities arrive separately with the
executor's own reason, and the catalog names a commands-off host, so the
prompt can say so before the model spends a call. Service.Capabilities
returns the runnable set, DeclaredCapabilities keeps the declarations for
policy evaluation.

No default changes, no agent is enabled, and no read or command policy is
loosened: nothing that was refused is now allowed.
2026-11-10 09:04:23 +00:00
..
2026-10-11 22:20:25 +01:00
2026-10-11 22:20:25 +01:00