Skip to content

Restore compaction, model-switch, and prompt-cache invariants #709

Description

@shiny-code-bot

Objective

Restore compaction, first-turn model switching, prompt-cache stability, and Responses WebSocket request-shape invariants before accepting any snapshot churn.

Finish Line

Switching to a smaller context model triggers the intended compaction path, Bedrock uses the supported endpoint behavior, first-turn model/personality instructions are present, prompt tools and cache keys remain stable where required, and WebSocket prewarm/reuse requests use the deliberate wire representation.

Current Status

Acceptance Criteria

  • Smaller-window model switches trigger compaction exactly once where required.
  • Bedrock automatic compaction uses the intended endpoint and emits the expected request.
  • Model/personality switch developer instructions remain model-visible on the first turn.
  • Stable prompt tools, cached prefix, and cache key invariants are preserved.
  • WebSocket request input and no-tools serialization are explicitly decided and covered.
  • Request-shape snapshots are updated only after behavior is classified.

Relationships

Metadata

Metadata

Assignees

No one assigned

    Labels

    planDurable planning issueplan:activePlan is actionable now

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions