claude-code: remove the guard on the agent's shell

The operator asked for the shell guard to go (2026-11-20): the plugin no
longer carries a PreToolUse hook or guard.json, the binary no longer has
a guard verb, and the claude_code_guard tool, its record and the
refusal-ranked order of the instead-of table are gone. The SessionStart
and Stop hooks of the wait list stay, run by the same binary at the same
path, which is also the home-fs helper's. The rendered rule against ssh
to a mesh machine stays as the session's own and no longer claims a
guard enforces it; claude-agent no longer passes the guard's override.
This commit is contained in:
2026-11-20 13:06:55 +01:00
parent 8b91552f59
commit f57ae96e55
18 changed files with 66 additions and 1737 deletions
+3 -6
View File
@@ -84,8 +84,8 @@ func PathsFrom(env func(string) string) (Paths, bool) {
Agent: env("MESH_AGENT_ACCOUNT"), Operator: env("MESH_OPERATOR_ACCOUNT"),
AgentHome: env("MESH_AGENT_HOME"), OperatorHome: env("MESH_OPERATOR_HOME")}
if (p.Home == "") != (p.Agent == "") {
// Half of the agent's account is not "the operator's": taken so, the agent's account rule of the guard
// would be off and its home never written, and nothing would say so. Not launched, said (main).
// Half of the agent's account is not "the operator's": taken so, the agent's
// home would never be written, and nothing would say so. Not launched, said (main).
return p, false
}
if p.Home == "" {
@@ -256,11 +256,8 @@ func RenderNow(p Paths, write WriteManaged) ([]string, error) {
config.Approved = ApprovedHere(approved, p.Node)
}
mesh := ReadMeshTools(p)
if mesh != nil {
mesh.Refused = RefusedCounts(GuardDataOf(p, mesh).Log)
}
files := RenderWithMesh(facts, settings, binding, p.helperCommand(), Registered(p), config, mesh)
tree, _ := json.Marshal(MarketplaceWith(config, guardFiles(p, mesh)))
tree, _ := json.Marshal(MarketplaceWith(config, hookFiles(p)))
files[MarketplaceDir+"/"] = string(tree)
names := make([]string, 0, len(files))
for n := range files {