Repository navigation
feat(export): add thinking_ratio to daily and session summaries (#633) - #635
Merged
Merged
Conversation
lis186
force-pushed
the
feat/633-thinking-ratio
branch
3 times, most recently
from
September 9, 2026 10:41
a8a2fe6 to
56b7945
Compare
A dimensionless 0–1 float: total thinkingDuration / total elapsed, computed per-day and per-session from proxy-observed turns only. null when no proxy turns with elapsed data exist (imported-only sessions/days). Not an elapsed timing or a timestamp — it's a ratio, so it does not touch INV-2's exclusion of exact timestamps and elapsed timings. Adversarial review by two independent reviewers confirmed this distinction. elapsed is a string (forward.js toFixed(1)); parseFloat guards added. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
lis186
force-pushed
the
feat/633-thinking-ratio
branch
from
September 9, 2026 10:43
56b7945 to
1750492
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
thinking_ratio(FLOAT, 0–1) to both daily and session export rowsthinkingDuration / elapsedacross proxy-observed turns onlynullwhen no proxy turns with elapsed data exist (imported-only days/sessions)Why this field
Adversarial review by two independent reviewers (Fable 5.1 + Sol) confirmed:
first/last_received_attimestamps → blocker (INV-2 violation) → droppedtotal_elapsed_s/total_thinking_s→ major (INV-2 "elapsed timings") → droppedthinking_ratio→ not an issue (dimensionless ratio, not a timing)duration_ms) → don't duplicateThinking ratio is the one metric only ccxray can provide: "what fraction of wait time was extended thinking" is invisible to Anthropic's per-request telemetry.
Implementation
parseFloat(entry.elapsed)guards added (field is a string fromtoFixed(1))_totalThinkingS,_totalElapsedS,_elapsedTurnsfinishDaily/finishSessionSecond review — codex gate
Reviewer: codex (gpt-5.6-terra), 4 rounds.
codex gate clean
Test plan
thinking_ratio: null(no false zero)parseFloathandles the stringelapsedfield correctly🤖 Generated with Claude Code