OServer should register a system.ping builtin (skill smoke test expects it) #80

Closed
opened 2026-05-20 05:56:42 +00:00 by timur · 1 comment
Owner

Context

From the hero_logic#41 §1 audit.

The hero_service_check_fix.md skill §7 prescribes POST /rpc {"method":"system.ping"} as part of the standard smoke test. hero_rpc2 includes system.ping (see example/recipe_sdk_rpc2/tests/debug_curl.rs), but hero_rpc_server::OServer — what current OSIS-backed services like hero_logic run on — does NOT register any system.* builtins.

Result: hero_logic's rpc socket returns:

{"error":{"code":-32000,"message":"Unknown method: system.ping. Available: ..."}}

Decision needed

Two paths:

  • A. Add system.ping (and minimal system.* builtins like system.version, system.openrpc) to OServer so every OSIS service satisfies the skill out of the box.
  • B. Update the hero_service_check_fix.md skill §7 to acknowledge that system.* methods require hero_rpc2; OSIS-only services exercise /health + /openrpc.json + a service-specific method instead.

My lean: A. The skill describes what every Hero service should answer; users shouldn't have to think about which RPC stack the service runs on. OServer already has the dispatch infrastructure — adding system.ping is a few lines.

Comment with your call.

Acceptance

  • Decision documented in this thread.
  • Implementation per the chosen path.
  • hero_logic (and any other OSIS-only service) clears the §7 smoke test without modification.
## Context From the [hero_logic#41 §1 audit](https://forge.ourworld.tf/lhumina_code/hero_logic/issues/41#issuecomment-34455). The `hero_service_check_fix.md` skill §7 prescribes `POST /rpc {"method":"system.ping"}` as part of the standard smoke test. `hero_rpc2` includes `system.ping` (see `example/recipe_sdk_rpc2/tests/debug_curl.rs`), but `hero_rpc_server::OServer` — what current OSIS-backed services like `hero_logic` run on — does NOT register any `system.*` builtins. Result: `hero_logic`'s rpc socket returns: ``` {"error":{"code":-32000,"message":"Unknown method: system.ping. Available: ..."}} ``` ## Decision needed Two paths: - **A.** Add `system.ping` (and minimal `system.*` builtins like `system.version`, `system.openrpc`) to `OServer` so every OSIS service satisfies the skill out of the box. - **B.** Update the `hero_service_check_fix.md` skill §7 to acknowledge that `system.*` methods require hero_rpc2; OSIS-only services exercise `/health` + `/openrpc.json` + a service-specific method instead. My lean: **A**. The skill describes what every Hero service should answer; users shouldn't have to think about which RPC stack the service runs on. `OServer` already has the dispatch infrastructure — adding `system.ping` is a few lines. Comment with your call. ## Acceptance - Decision documented in this thread. - Implementation per the chosen path. - `hero_logic` (and any other OSIS-only service) clears the §7 smoke test without modification.
Author
Owner

Closing — supplanted by #90.

The system.ping gap was a symptom of OSIS services still running on OServer instead of hero_rpc2 (which registers system.* natively). Patching OServer with a builtin would be a stopgap; the parent META always intended for OSIS services to migrate to hero_rpc2. #90 tracks that proper migration. Once services move, this issue resolves automatically.

Closing — supplanted by [#90](https://forge.ourworld.tf/lhumina_code/hero_rpc/issues/90). The `system.ping` gap was a symptom of OSIS services still running on OServer instead of hero_rpc2 (which registers `system.*` natively). Patching OServer with a builtin would be a stopgap; the parent META always intended for OSIS services to migrate to hero_rpc2. #90 tracks that proper migration. Once services move, this issue resolves automatically.
timur closed this issue 2026-05-20 09:40:42 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lhumina_code/hero_rpc#80
No description provided.