What it is
Four cooperating Cloudflare Workers — Forge (make), Counsel (protect), Scholar (understand), Scribe (remember) — forming a complete K₄ graph (six edges). Four hubs. One mesh. is a core component of the P31 Labs sovereign cognitive infrastructure stack — built to run offline, deployed to the edge, and designed without dark patterns.
Worker package: packages/k4-agent-hub/ (schema p31.k4AgentHub/1.1.0). Operator client: packages/k4-agent-hub-client/. Simplex-v7 adapter: simplex-v7/src/skills/k4-dispatch.ts (POST /api/k4/dispatch). Canon manifest: p31-k4-agent-hub.json. Verify gate: npm run verify:k4-agent-hub.
Core features
Four cooperating Cloudflare Workers — Forge (make), Counsel (protect), Scholar (understand), Scribe (remember) — forming a complete K₄ graph (six edges)
Every dock and every call is signed with Ed25519: the operator holds one keypair (~/.p31/agent-hub-key.json); the hub never stores a credential
Dispatch chain: local Ollama fleet → simplex-v7 Anthropic fallback → structured echo — zero-downtime skill routing at any connectivity level
Personal tetrahedron docks via a bipartite K₄,₄ cover (structure↔Forge, connection↔Counsel, rhythm↔Scholar, creation↔Scribe)
Operator CLI: p31 agent-hub keypair / dock / call / cross / topology / federation