Skip to content

docs(unstable-v2): stop the stable text referring to usage on state snapshots - #2909

Merged
benbrandt merged 1 commit into
mainfrom
docs/v2-stable-usage-wording
Nov 19, 2026
Merged

benbrandt merged 1 commit into
mainfrom
docs/v2-stable-usage-wording

Conversation

@benbrandt

Copy link
Copy Markdown
Member

Summary

Five stable texts said a repeated state snapshot does not add usage:

  • two sentences on the prompt lifecycle page
  • one in the migration guide
  • the StateUpdate and IdleStateUpdate schema descriptions

Stable state updates carry no usage. Only the unstable end-turn usage field on the idle update does, so the stable text referred to something a reader could not find.

Changes

  • Drop the usage wording from the stable page, the migration guide and the two type descriptions.
  • State the rule on the unstable usage field: "A repeated or resume snapshot that carries it MUST NOT be counted as additional usage." The draft schema keeps the rule, now next to the field it is about.
  • The draft page already describes end-turn usage and is unchanged.

The schema files are regenerated. Only description text changes.

Not changed

The stable Rust types still remove a usage key from the fields of an unknown stop reason, so the name stays reserved for the unstable field.

Checks

  • Clippy, the tests, rustdoc, Prettier and the spell check pass.

…napshots

The stable prompt lifecycle page, the migration guide and two schema
descriptions said repeated state snapshots do not add usage. Stable state
updates carry no usage. Only the unstable end-turn `usage` field does.

Drop the usage wording from the stable text, and state the rule on the
unstable `usage` field itself, so the draft schema still has it. The draft
page is unchanged.
@benbrandt
benbrandt requested a review from a team as a code owner November 19, 2026 21:54
@benbrandt
benbrandt enabled auto-merge (squash) November 19, 2026 21:55
@benbrandt
benbrandt merged commit c501518 into main Nov 19, 2026
13 checks passed
@benbrandt
benbrandt deleted the docs/v2-stable-usage-wording branch November 19, 2026 21:57
@acp-release-bot acp-release-bot Bot mentioned this pull request Nov 19, 2026
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