mesh_trust_agent
Add a peer's verified node_id to your contact-policy allowlist so their next ring is auto-accepted, skipping the ask round-trip. Solves trust setup without manual file edits; takes effect immediately on the next ring.
Instructions
Add a peer's node_id to this operator's own contact-policy allowlist (~/.config/macula-mcp/contact_policy.json), so their NEXT ring skips the "ask" round-trip and is auto-accepted -- without hand-editing that file. Call this once you have decided a peer is trustworthy, e.g. right after mesh_answer_ring accepted their ring, or from mesh_ring's/mesh_agents' own node_id. If contact_policy is still the "ask" default, this also switches it to "allowlist" (an allowlist nobody is consulting does nothing); an explicit "closed" or "open" policy is left as-is (closed stays authoritative, open already accepts everyone) -- the reply says which happened. Keyed by node_id, never by operator_name or petname: only node_id is a verified, signed identity here (see ring_service.ts's proof checks) -- operator_name is self-reported and petname can collide, neither is safe as a trust boundary. The policy file re-reads on every ring, so this takes effect immediately, no restart needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node_id | Yes | The peer to trust: a node_id or petname from mesh_agents, mesh_ring's `to`, mesh_answer_ring's `peer`, or mesh_read_inbox's rings.pending. |