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_lib#158
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
The oschema→OpenRPC generator assigns the preceding
#banner/section comment as thedescriptionof the first service-block method that follows it, overriding that method's own trailing inline comment. Cosmetic (drives only the API Docs pane /openrpc.jsondescriptions) — no wire/param/functional impact — but the descriptions are wrong. Distinct from #153 (off-by-one between methods, closed); this is "section-banner-comment becomes the next method's description".Evidence (verified on hero_lib@development HEAD
ef0b8872)hero_collab
oschema/main/90_service.oschema:Regenerated
openrpc_main.json(collab rebuilt against hero_libef0b8872):ping.description="── system ──────…"❌ (should be "liveness check; true if the server is responsive")message_send.description="── message & thread ──…"❌system_ping.description="legacy liveness check; { ok: true }"✅ (trailing comment, not section-leading)message_list.description="channel history (paginated)"✅So: methods with a trailing inline comment get the correct description except the first method after a banner
#comment, which inherits the banner. Bumping hero_lib fromaf60a537→ef0b8872did not fix it (re-verified by regenerating collab).Likely cause
The parser's doc-comment accumulator treats a leading section/banner comment line as the doc for the next method instead of preferring the method's own trailing inline comment (or it should reset the accumulator on a blank line / banner line). Probably the same code path #153 touched.
Impact / urgency
Cosmetic — API Docs pane only. Every generator consumer with banner comments before service methods (hero_collab, likely hero_planner/hero_proc) shows a few wrong method descriptions until fixed + regenerated. Low urgency; flagging so it's tracked (surfaced while checking #153's regeneration requirement).
Still reproduces on latest
developmentHEADdd550aa4(re-verified by bumping hero_collab todd550aa4+ regenerating). Despite the parser rework that landed since (parser.rsnow haslast_comment_line/ blank-line-gap +is_header_delimiterhandling via the integration→development convergence merge), the bug persists:ping.description="── system ──…"(should be its own trailing comment)message_send.description="── message & thread ──…"system_ping/message_list(trailing-comment methods) are correct.So whatever the new blank-line-gap logic targets, the first service method after a
# ── banner ──section comment still inherits the banner. Keeping open.