Skip to content

Release v0.8.0: Paseo 0.12 background workspaces and accounting accuracy - #6

Merged
stv1024 merged 7 commits into
mainfrom
experiment/usage-semantics
Oct 23, 2026
Merged

stv1024 merged 7 commits into
mainfrom
experiment/usage-semantics

Conversation

@stv1024

@stv1024 stv1024 commented Oct 23, 2026

Copy link
Copy Markdown
Owner

Collects the unreleased work for the next release. See the Unreleased section of CHANGELOG.md for user-facing notes.

  • Usage-scope semantics: separate per-turn usage from OMP session/branch snapshots and unknown-scope observations; keep unknown counts and costs unknown instead of zero.
  • Settle OMP turns after the final usage drain.
  • Pricing cleanup: no private seed prices or fixed currency conversion; exact model matching with explicit aliases and migration warnings.
  • Paseo 0.12: track agents in background workspaces (they were recorded as canceled with no usage) and add 0.12.0 to CI. Minimum Paseo stays 0.11.0.
  • Includes fix: switch overview range locally instead of pushing navigation #4 from main.

Verified locally: typecheck and 75 tests against SDK 0.11.1 and 0.12.0; real Claude turns in a background workspace on Paseo 0.12.0, with a before/after control.

🤖 Generated with Claude Code

stv1024 and others added 7 commits October 16, 2026 14:45
Experimental checkpoint of usage/cost reporting accuracy work:

- shared: TurnRecord.tokenScope (turn/session/unknown), nullable token and cost fields, UsageSnapshot for late cumulative/unknown observations; v1 history stays readable
- semantics: only verified harness input conventions; no model-name fallback, freshInput stays unknown when counts are inconsistent
- pricing: no private gateway seed prices or fixed FX; full model identity plus explicit aliases, provider scopes no longer match model text, ambiguous entries surface pricingWarning instead of guessing
- tracker/turns/read-model: late idle usage refreshes a snapshot card instead of inventing turn deltas; a falling session-cost counter is not treated as a session reset
- UI (panel/pill/sidebar/overview/timeline): disclose incomplete usage, partial reference estimates and unknown-cost turns; session token snapshot in pill; old timeline cards label missing scope metadata
- tests: new server/read-model.test.ts; 66 tests pass, tsc clean
OMP emits turn_completed without usage, and its poller publishes the
final session snapshot afterwards on the agent_update channel. Turns
settled before that snapshot, dropping the last call or recording an
empty turn.

Session-scope completed turns now keep a journaled `ending` outcome and
settle on the first new observation, the next turn start, a 2s drain
timeout, or shutdown. The reported status and endedAt are kept.
modelCalls is null for session/unknown scope, because a snapshot count
is not a model-call count.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This workaround can be removed once Paseo provides turn_completed.usage
for OMP or a definitive final-drain signal. The notes document what to
delete and when it's safe to refactor.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paseo 0.12 hides background workspaces from default agent and workspace
lists and sends a catalog remove for agents that the filter hides. The
tracker retired those agents, so their turns were recorded as canceled
with no usage.

Request background workspaces in every catalog list, falling back to an
unfiltered list on hosts that predate them, so the minimum stays 0.11.0.
Confirm each remove by agent ID before settling the open turn.

Add 0.12.0 to the CI matrix and record the 0.12 review.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Remove internal research notes with local data from the repository and
keep them under the gitignored docs/private/. Add a privacy rule to
AGENTS.md: no private gateway information or data in published content,
and no feature may depend on a private gateway.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@stv1024 stv1024 changed the title Accounting accuracy fixes and Paseo 0.12 background workspaces Release v0.8.0: Paseo 0.12 background workspaces and accounting accuracy Oct 23, 2026
@stv1024
stv1024 merged commit 4306d35 into main Oct 23, 2026
4 checks passed
@stv1024
stv1024 deleted the experiment/usage-semantics branch October 23, 2026 08:00
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