rpc surface not migrated to canonical hero_sockets routes (legacy-only) #137
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_compute#137
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
hero_compute's rpc socket has not been migrated to the canonicalhero_sockets.mdroute surface. It hand-rolls only the legacy / pre-migration endpoints (/health,/.well-known/heroservice.json,/rpc,/openrpc.json) and serves none of the canonical endpoints, so hero_router's Diagnostics → Spec compliance probe reports it Non-compliant.Canonical surface required (
hero_sockets.md)On
rpc.sock:GET /health.jsonGET /heroservice.jsonGET /api/domains.jsonGET /api/ping→"pong"GET /api/{domain}/openrpc.jsonPOST /api/{domain}/rpcCurrent state
Serves only the legacy set (
/health,/.well-known/heroservice.json,/rpc,/openrpc.json); all canonical paths return404.Hand-rolled router:
crates/my_compute_*_server(explorer/mos/zos rpc servers).Fix
Stop hand-rolling the rpc surface; mount the shared hero_lib canonical router so the full surface (incl.
/api/ping) comes for free and can't drift:hero_lifecycle::rpc::mandatory_router(...)/service_root_router(...), oroschema_serverbuild_router(...).Compliant services (hero_proc, hero_code, hero_router) already do this. hero_browser was the minimal-fix counter-example (commit
c6f5abejust added the missing/api/ping); a full migration is preferred here since the whole surface is absent.Verify
Each canonical path returns
200over the rpc socket, and the service's Diagnostics tab in hero_router reports compliant (required_fail: 0).rpc socket missing canonical GET /api/ping (hero_sockets compliance)to rpc surface not migrated to canonical hero_sockets routes (legacy-only)