Gitant nodes federate over libp2p (DHT + GossipSub). WAN discovery uses bootstrap multiaddrs.
| Source | Example |
|---|---|
| Embedded defaults | internal/network/bootstrap_peers.json (empty until you deploy seeds) |
| Environment | GITANT_SEED_PEERS=/ip4/203.0.113.10/tcp/4001/p2p/Qm... |
| CLI flag | gitant serve --p2p --bootstrap-peers /ip4/.../p2p/... |
| API | GET /api/v1/network/bootstrap |
gitant serve --p2p --p2p-listen /ip4/0.0.0.0/tcp/4001 --port 7777
curl -s http://localhost:7777/api/v1/status | jq .p2p.addrsPublish the returned multiaddr in bootstrap_peers.json or GITANT_SEED_PEERS.
- LAN:
--p2p-mdnsdiscovers peers automatically. - WAN: peers need
--bootstrap-peersor seed env vars to join the mesh.
Enable optional warm storage for replicated git objects:
gitant serve --p2p --ipfs-pinPinned object count appears in GET /api/v1/status as ipfs_pins.
Authenticated operators can attest agent trust:
curl -X POST http://localhost:7777/api/v1/agents/did:key:.../attest \
-H 'Authorization: Bearer $UCAN' \
-H 'Content-Type: application/json' \
-d '{"score":0.9,"reason":"reliable automation agent"}'Attestations gossip on gitant/attestations and blend into each node's local trust score (70/30 EMA).