Skip to content

ref(chat): Drop dead turn-cursor model metadata - #1356

Merged
dcramer merged 1 commit into
mainfrom
ref/turn-cursor-honest-runtime-metrics
Aug 9, 2026
Merged

dcramer merged 1 commit into
mainfrom
ref/turn-cursor-honest-runtime-metrics

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Supersedes #1328 after #1344 moved turn-session* → turn-cursor / checkpoint.

Stop threading modelId / skills / reasoningLevel through turn-cursor writes. Those fields were never restored from storage, so the write path was pretending they were checkpoint metadata.

Ownership (unchanged)

  • checkpoint = resume boundary only (status, history boundary, slice)
  • profile + reasoning = turn route / history replacement
  • concrete model id = resolve at execution from profile config
  • skills = derive from history + catalog
  • channel + duration/usage = SQL conversation row

What changed

  • Drop the three dead fields from TurnRecord, upsertTurnRecord, and checkpoint write args
  • Rename runtimeMetadata → runtimeMetrics for SQL-backed channel/metrics only
  • Remove the dead resume existingSessionRecord.reasoningLevel fallback
  • Explicit post-handoff contract: profile config, else inherited old route
  • No recovery-index policy changes

Checked: tsc --noEmit (@sentry/junior + @sentry/junior-evals); focused vitest checkpoint + agent-resume + paused-turn 45/45.

Refs #1267

Requested by U039RR91S.

--

View Junior Session [Sentry]

Stop threading model/skills/reasoning through turn-cursor writes. Those
fields were never restored from storage, so the write path was pretending
they were checkpoint metadata.

Rename runtimeMetadata to runtimeMetrics for SQL-backed channel name and
execution duration/usage only. After handoff, profile config (else the
inherited turn route) is the reasoning authority.

Supersedes #1328 after #1344 moved turn-session to turn-cursor/checkpoint.
No recovery-index policy changes.

Refs #1267

Co-Authored-By: David Cramer <[email protected]>
@vercel

vercel Bot commented Aug 9, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
junior-docs Ready Ready Preview Aug 9, 2026 8:40pm

Request Review

@dcramer
dcramer marked this pull request as ready for review August 9, 2026 20:44
@github-actions github-actions Bot added the risk: high PR risk score: high label Aug 9, 2026
@dcramer
dcramer merged commit 67f6be1 into main Aug 9, 2026
43 checks passed
@dcramer
dcramer deleted the ref/turn-cursor-honest-runtime-metrics branch August 9, 2026 20:52

This branch was successfully deployed

1 active deployment
Preview – junior-docs — 19224d5a Deployed Aug 9, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: high PR risk score: high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant