Proposal: Out of Band Host Containment and Local Veto Hook for Uncooperative Agents (KillSwitch Integration)

Aperta
#879 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@oyesanyf ci sta già lavorando.

Dal 11/11/2026.

  • #897 di @oyesanyf — aperta

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
go, grpc, rust

Direzione di ricerca

Start by reading the v0.2.0 architecture and roadmap items for Autonomous Local Veto and sandbox confinement, then trace the agentmesh-node, agentmesh-control-plane, and agentmesh-router entry points described here. The proposal covers local containment events, loopback socket pinning, and control-plane eviction; maintainers first need to decide whether this integration fits the design before implementation can be scoped.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Hello Agent Mesh maintainers,

I have been reviewing the v0.2.0 architecture and the current roadmap items around Autonomous Local Veto and uncooperative sandbox confinement for agent execution. Agent Mesh solves the peer to peer discovery, NAT traversal, and zero trust service authorization problems cleanly via libp2p and offline verifiable Biscuit tokens. However, I would like to propose a loosely coupled integration pattern to close the enforcement gap between user space mesh policy revocation and kernel level host containment when an agent becomes uncooperative or compromises its local execution environment.

Currently, agentmesh-node runs as a user space companion proxy exposing a loopback MCP server and an OpenAI compatible endpoint, while authorization relies on short lived Biscuit tokens evaluated offline. This introduces two edge cases for high assurance deployments. First, because Biscuit tokens are verified offline by peers, revoking a runaway or compromised agent across the mesh is subject to token TTL windows or active revocation propagation delays across agentmesh-router nodes. Second, if an uncooperative agent breaks out of its application wrapper on the host, it can bypass the local agentmesh-node loopback proxy entirely to open raw outbound sockets, manipulate local files, or interfere with the local agentmesh-node process itself.

I am currently developing KillSwitch (https://github.com/oyesanyf/killswitch), an open source, cross platform agentic runtime governance and containment system written in Rust, and I have already signed the Google Individual CLA under my GitHub handle oyesanyf. KillSwitch operates out of band at the host and kernel boundary using eBPF LSM probes on Linux and Windows Filtering Platform callouts on Windows, backed by Raft and Valkey consensus. Rather than proposing any cross language dependencies in the Agent Mesh Go codebase, I would like to propose a lightweight, optional webhook or local Unix domain socket contract between agentmesh-node, agentmesh-control-plane, and external host containment engines like KillSwitch.

This integration would focus on three specific workflows that directly support the sandboxed agent preview.

First, for the Autonomous Local Veto hook, when agentmesh-node detects repeated ingress or egress policy violations from the local agent, or receives an explicit revocation signal from the control plane, it can emit a standardized local containment event over a Unix domain socket or loopback gRPC hook. KillSwitch can listen for this signal and immediately freeze the offending agent process at the OS level and drop all of its non mesh raw sockets via eBPF or WFP, guaranteeing hard containment before the node's offline Biscuit token even expires.

Second, for Loopback Socket Pinning, on hosts running both agentmesh-node and KillSwitch, KillSwitch can enforce kernel level socket binding policies so that only the specific, attested agent binary PID is permitted to communicate with the 127.0.0.1:8080 MCP server, preventing lateral local processes on multi tenant workstations from hijacking the mesh proxy.

Third, for Bidirectional Control Plane Eviction, if KillSwitch detects a host level breakout or memory corruption event at Ring 0, it can trigger a webhook on agentmesh-control-plane to immediately strip the node's enrollment and notify agentmesh-router peers to sever active libp2p streams, isolating the compromised host from the rest of the mesh instantaneously.

If this aligns with your vision for the sandboxed agent blueprints and the v0.2.0 security milestones, I would be glad to put together a concise design document and build a reference blueprint demonstrating agentmesh-node paired with KillSwitch in a local containerized test environment. I would love to hear your thoughts on whether a standardized local veto and containment webhook fits your current design for the sandbox preview.

Lingua principale
Go
Stelle
1.2k
Fork
207
Merge medio
1g 10h
PR unite (30g)
85

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di google/agentmesh

Tutte le issue di google/agentmesh

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.