Files
zeekay d934e9c63c feat(mpc): add Embed() contract + BuildHTTP() server bootstrap + empty UI shell
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).
2026-04-27 18:36:17 -07:00
..