GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |
GeezerVison is showing github.com — feat(session): surface route_usage.lastServing on the session record (#2696) by dezren39 · Pull Request #2754 · developing-today-forks/opencode ConversationImplements the prepared slice recorded on #2696 (Lane NC's premise verification + plan, adopted by Lane ZB under Drew's 2026-11-23 batch approval of the former flag holds). What changes
Contract (from the consumer, developing-today/code Test: Verification (laptop route; GitHub Actions is disabled on this fork):
Not in this PR: {
"direct_parent": null,
"links": [],
"lineage": {
"design": null,
"roadmap_item": null,
"priority": null
},
"pm_meta": 1,
"provenance": {
"queue_id": null,
"scheduled_start": null,
"picked_up_at": null,
"work_started_at": null,
"created_at": "2026-11-23T14:37:21Z",
"session_id": null,
"lane": null,
"host": "htch-runtime",
"worktree": null,
"model": null,
"lane_start_issues": [],
"workspace_ref": null,
"auth_subject": "archer",
"stamped_by": "fleet 0.1.0 (native)"
}
}
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions…2696) The route_usage tool (#1891) already computes the serving leaf from the route_attempt ledger, but the readout was only reachable through the tool. Session records carried no route_usage field, so record consumers — the fleet-queue claim path, whose stamp derivation prefers route_usage.lastServing when present — could not name the serving leaf and deliberately stamped nothing for routed sessions. - schema: Session.RouteUsage struct mirroring ModelUsage.LastServing, and an optional route_usage field on Session.Info (the literal snake_case key the claim path reads), following the costAuthoritative pattern. The field is absent — never null or partial — until the session has a recorded attempt, because a present-but-unparseable readout stamps nothing. - core: SessionStore.get also fetches the session's recent attempts and derives ModelUsage.lastServing at read time, so the readout names the leaf serving at read time and updates as the serving leaf changes. fromRow gains an optional serving parameter mirroring authoritative. Scope is the single-session GET, the exact surface the claim path reads; list-page attachment is a named follow-on. - test: a session whose last turn failed over carries route_usage.lastServing naming the serving leaf and variant; a session with no attempts carries no route_usage key in the encoded record. Verification (laptop; Actions is disabled on this fork): new suite 2/2; model-usage + route-usage-tool + model-route-log 81/81; session-compaction + session-context-vars + session-execution 98/98 with the new suite; schema and core typechecks clean.
|
There was an error while loading. Please reload this page.
|
Caution Review failedThe pull request is closed.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.