Skip to content
Pilox

Docs_archive

Planetary traceability

Source docs/MESH_PLANETARY_TRACE.md · All_docs

Goal: a single doc ↔ machine artifacts ↔ Hive code map — to be extended with each delivery. Vision: MESH_V2_GLOBAL.md §3.1.

Normative artifacts (machine-readable)

Scroll horizontally →
ArtifactPathRole
JSON Schema P1 recordschemas/hive-registry-record-v1.schema.jsonValidate GET /v1/records/{handle} responses
OpenAPI registry read (draft)openapi/registry-v1.yamlClients / mocks / future gateway
OpenAPI P2 gateway ingress (draft)openapi/gateway-v1.yamlEdge TLS + JSON-RPC proxy + trace context
OpenAPI /.well-known/hive-mesh.jsonopenapi/hive-mesh-well-known.yamlPublic discovery (response = descriptor schema)
OpenAPI P3 transport bridge (draft)openapi/transport-bridge-v1.yamlHTTP → bus (e.g. JetStream) — body = schemas/wan-envelope-v1.schema.json
OpenAPI internal WAN ingressopenapi/mesh-wan-ingress-v1.yamlPOST /api/mesh/wan/ingress → Redis hive:system:events (mesh.wan.envelope)
JSON Schema P3 WAN envelopeschemas/wan-envelope-v1.schema.jsonAjv tests: app/src/lib/wan-envelope-schema.test.ts
Local stack guide (NATS, stubs, curl, Docker)MESH_PLANETARY_DEV_STACK.md§ TL;DR + § Docker; docker-compose.yml + services/*/Dockerfile; CI planetary-docker
P2 gateway Helm chart (K8s ref.)deploy/helm/hive-mesh-gateway/Minimal deployment of the services/gateway stub
Instance descriptor (shipped)schemas/hive-mesh-descriptor-v1.schema.jsonImpl. + Ajv tests: see "Hive code" table below

Human documentation

Scroll horizontally →
SubjectFile
V2 phases & P1–P6 milestonesMESH_V2_GLOBAL.md
P1 global directoryMESH_PLANETARY_P1_GLOBAL_DIRECTORY.md
CDC registry public (déploiement Internet, checklist prod)CDC_REGISTRY_PUBLIC.md
P2 WAN gateway (ADR)MESH_PLANETARY_P2_WAN_GATEWAY.md
P3 multi-hop transport (ADR)MESH_PLANETARY_P3_TRANSPORT.md
P4 registry sync (DHT alternative)MESH_PLANETARY_P4_FEDERATED_SYNC.md, DHT roadmap MESH_PLANETARY_P4_DHT_ROADMAP.md
P5 trust proof hookMESH_PLANETARY_P5_TRUST_PROOF.md
P6 W3C trace bridge → ingressMESH_PLANETARY_P6_WAN_TRACE.md
Public JSON-RPC / reputationMESH_PUBLIC_A2A.md
Embedded A2A integrationA2A_INTEGRATION.md
Federation opsMESH_FEDERATION_RUNBOOK.md
V1 adoption (risks, checklist, runbook)MESH_PLANETARY_V1_ADOPTION.md
Planetary stub changelogMESH_PLANETARY_CHANGELOG.md
libp2p DHT lab nodeMESH_LIBP2P_DHT_NODE.md
Registrar SaaS + VC-JWTMESH_REGISTRAR_SAAS_VC.md
Multi-region SLO (ops)observability/MULTI_REGION_SLO_RUNBOOK.md

Current Hive code (level 0 → toward P1)

Scroll horizontally →
CapabilityTarget milestoneLocation (indicative)
Mesh WAN contract versionP6 / cross-cuttingapp/src/lib/mesh-version.tsMESH_V2_CONTRACT_VERSION + PLANETARY_MESH_REFERENCE_VERSION
Public instance descriptorP1 "level 0"hive-mesh.json/route.ts (meshV2 + optional planetaryReferenceVersion), route.test.ts, JSON Schema validation mesh-descriptor-schemas.test.ts
Operator status (meshV2, public tier)P6app/src/lib/a2a/public-status.ts, GET /api/a2a/status
Federation + peer manifestP1 "closed roster"app/src/lib/mesh-federation*.ts
P1 registry + write + P4 + Postgres + P5 proofP1 / P4 / P5 refservices/registry/POST / DELETE, multi-tenant (REGISTRY_MULTI_TENANT), VC-JWT gate (registry-vc-jwt.mjs), PDP-lite (REGISTRY_POST_*_ALLOWLIST), optional HTTP PDP (REGISTRY_PDP_HTTP_URLregistry-pdp-http.mjs), DHT hints on health (REGISTRY_DHT_BOOTSTRAP_*), signed catalog + sync verify, metrics auth, RL, Postgres, P5 proof, validUntil; registry-proof.mjs; npm test registry
P2 gateway (HTTP or TLS/mTLS, JSON-RPC proxy)P2services/gateway/gateway-v1.yaml; GATEWAY_TLS_* / GATEWAY_MTLS_CA_PATH; GET /v1/metrics (Prometheus); Helm + WAF Ingress examples; GATEWAY_UPSTREAM_AUTH_SECRET ↔ Hive MESH_GATEWAY_INBOUND_SECRET; GATEWAY_BLOCK_USER_AGENTS, GATEWAY_SECURITY_HEADERS
P3 transport bridge + P6 trace (HTTP stub, WanEnvelope → optional NATS)P3 / P6 refservices/transport-bridge/npm start / npm run subscribe; ingest retries; JetStream ack/nak; wanEnvelope + meshTrace → ingress headers
libp2p Kad-DHT (optional)P4+ labservices/libp2p-dht-node/ — TCP + DHT + HTTP health; see MESH_LIBP2P_DHT_NODE.md
WAN ingress → Redis busP3 "product"app/src/app/api/mesh/wan/ingress/route.ts, mesh.wan.envelope event in mesh-events.ts
Redis worker mesh.wan.envelopeP3 "product"app/scripts/mesh-wan-redis-worker.ts, parse mesh-wan-system-event-wire.ts, dispatch mesh-wan-redis-dispatch.ts, tests mesh-wan-system-event-wire.test.ts; script mesh:wan-worker
Public JSON-RPC + keys + reputation + blockingV2.3app/src/lib/a2a/a2a-jsonrpc-route-post.ts, public-*
OTel metrics public tierP6app/src/lib/mesh-otel.ts

Milestones → deliverables matrix (to be checked off as work progresses)

Scroll horizontally →
MilestoneDocSchema / APIDedicated service code
P1 Global directoryP1 + this filehive-registry-record-v1 + registry-v1.yamlservices/registry — read/write hardening, POST allowlists, revocation DELETE, signed catalog, P4 sync; operator TLS / IAM
P2 WAN gatewayADR P2gateway-v1.yaml (ingress)✅ stub services/gateway + Helm — optional TLS and client mTLS on the listener; TLS termination can remain at Ingress
P3 Multi-hop transportMESH_PLANETARY_P3_TRANSPORT.mdtransport-bridge-v1.yaml + wan-envelope-v1 + mesh-wan-ingress-v1✅ bridge + subscriber → POST /api/mesh/wan/ingress → Redis; see MESH_PLANETARY_PRODUCT.md
P4 DHT / gossipMESH_PLANETARY_P4_FEDERATED_SYNC.md; DHT → MESH_PLANETARY_P4_DHT_ROADMAP.mdGET /v1/records + signed catalog in openapi/registry-v1.yamlservices/registry REGISTRY_SYNC_*, record proof + catalog proof, /v1/metrics metrics
P5 DID / VCMESH_PLANETARY_P5_TRUST_PROOF.md (Ed25519 + optional controllerDid; VC engines out of repo)proof + signingKid + optional DID fields in schemaAjv app + REGISTRY_VERIFY_ED25519_PROOF + PDP-lite env + npm test services/registry
P6 Multi-hop OTelMESH_PLANETARY_P6_WAN_TRACE.md— (NATS wire documented)✅ bridge + subscriber + ingress (W3C context); P2 gateway already forwards traceparent → upstream

Rules for contributors / agents

When a planetary piece is implemented:

  1. Update this table (Pn row + code paths).
  2. If JSON changes on the registry side: bump the $id or the schema field and document the migration in MESH_PLANETARY_P1_GLOBAL_DIRECTORY.md. For wan-envelope-v1: document in MESH_PLANETARY_P3_TRANSPORT.md, update the Ajv tests in the app, and verify that services/transport-bridge loads the same schema file (Ajv at startup).
  3. If the instance ↔ peer contract changes: bump MESH_V2_CONTRACT_VERSION and note the delta in MESH_V2_GLOBAL.md. If stub / OpenAPI contracts change for adopters: bump PLANETARY_MESH_REFERENCE_VERSION and add an entry to MESH_PLANETARY_CHANGELOG.md.
  4. After editing docs/schemas/*.json or docs/openapi/*.yaml: npm run docs:validate-planetary (from app/).
  5. After editing a stub under services/*/src/server.mjs: npm run check in that directory or the CI job planetary-stubs (npm ci && npm run check && npm test for registry; npm ci && npm run check for transport-bridge and gateway).