Skip to content

docs(server): correct result-update names in README-dev request trace#89

Merged
marksverdhei merged 1 commit into
htfrom
docs/server-dev-result-naming
Jun 12, 2026
Merged

docs(server): correct result-update names in README-dev request trace#89
marksverdhei merged 1 commit into
htfrom
docs/server-dev-result-naming

Conversation

@marksverdhei

Copy link
Copy Markdown

Summary

Epoch #86 task 2 (docs review round 2 on README-dev.md). The "Example trace of a request" section described `response->update()` and `response->to_json()`, neither of which exists by those names. The real calls are `result->update(states[idx])` (inside `server_response_reader::next()` at `server-queue.cpp:396`) and `result->to_json()` (various sites in `server-context.cpp` ~3854-3987).

A new contributor grepping for the names in the doc finds nothing. Three-line rewrite that uses the actual member names and threads the call sites through `server_response_reader` (which is what does both calls; `server_res_generator` owns the reader but doesn't call them directly).

Audit scope

Spot-checked all named symbols in the doc — `server_routes`, `server_res_generator`, `launch_slot_with_task`, `task_result_state`, `handle_completions_impl` all exist by those names. Only the two method names were drifting.

Test plan

  • grep confirms `result->update(` and `result->to_json()` exist at the documented call sites.
  • markdown renders (no shape changes, just text inside list items).

🤖 Generated with Claude Code

…t trace

Epoch #86 task 2 (docs review round 2 on README-dev.md).

The "Example trace of a request" section described two methods that
don't exist by those names: response->update() and response->to_json().
Greppers chasing those names find nothing. The real calls are
result->update(states[idx]) (inside server_response_reader::next at
server-queue.cpp:396) and result->to_json() (called from multiple
sites in server-context.cpp ~3854-3987).

Rewrites the two affected bullets to use the actual member names and
to thread the call sites through server_response_reader (which is the
component that does both calls — server_res_generator is what owns
the reader, but doesn't make these calls directly).

No other drift found in the doc — confirmed server_routes,
server_res_generator, launch_slot_with_task, task_result_state, and
handle_completions_impl all exist by those names in current source.
@marksverdhei marksverdhei merged commit e8e33a6 into ht Jun 12, 2026
1 check passed
@marksverdhei marksverdhei deleted the docs/server-dev-result-naming branch June 12, 2026 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant