mirror of
https://github.com/hanzoai/mpc.git
synced 2026-10-30 19:45:28 +00:00
The public Embed(ctx, cfg) (*Embedded, error) contract is the fusion- binary entry point: a future cmd/hanzo/ imports pkg/mpc.Embed() the same way it imports tasks.Embed(). Singleton-guarded via ErrAlreadyEmbedded so one process embeds at most one MPC node. BuildHTTP() returns the canonical mpcd HTTP mux: - /healthz and /v1/mpc/health are public probes (gateway-facing, K8s liveness/readiness — never gated on identity) - /v1/mpc/* sits behind RequireIdentity, which reads X-Org-Id / X-User-Id / X-User-Email from the request and binds them to ctx - /_/mpc/* serves the embedded admin UI (empty bundle today; 503 with actionable message until the @hanzo/gui admin-mpc workspace lands) ui/embed.go ships an empty embed.FS and returns 503 explicitly so operators see the missing-bundle state in staging — no blank page in production. Per HANZO_BINARY.md compliance checklist (#1, #5, #6 of 9).