Every "agent fleet" eventually grows a control plane that nobody can audit: a service registry, a policy engine,
a job runner, three databases, and a token that works everywhere. gnp-trust is the opposite: one node, one
port, one token, three files.

  • gnp_node.py — the daemon: token-gated API, action tiers (view / interact / admin), leases with fencing tokens, a secret deny-list
  • gnp_mtls.py — mTLS PKI helper: generates CA, node and client certs (localhost SANs; you add IPs yourself)
  • gnp_hc_job.py — idempotent job runner: task_id de-dup, retries, before/after screenshot hashes as evidence

The design decisions worth arguing about:

  • a token is scoped to one node; there is no fleet-wide key to leak
  • action tiers are enforced by the daemon, not by the client asking nicely
  • leases carry fencing tokens, so a stalled worker cannot wake up and act on stale state
  • jobs are idempotent by task_id, which is what makes retries safe

What it is not: a scheduler, a message bus, or a compliance control. It is the smallest thing that lets you say
"this machine will only do these three kinds of thing, for this token, until this lease expires".

Repo: https://github.com/gamai-io/gnp-trust