feat(results): record model turns separately from tool calls #10
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 233 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.326
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #10"
general
weight: 0.35
eugeneng04
feat(results): record model turns separately from tool calls
toolCallswas standing in for how many times the model was called, andthose are not the same number. A live openclaw run just now returned
model_turns=2againsttool_calls=1: one message issued the shell calland a second, text-only turn wrote the answer. The reverse happens too —
an earlier run had a single
assistant.messagecarrying twotoolCallentries.
The distinction matters because an agentic loop re-sends the whole
conversation every turn, so input tokens grow with turns, not with tool
calls. Cost-per-turn read off
toolCallsis wrong by that factor, and amodel that batches its calls looks identical to one that serializes them.
Sources, per harness:
assistant.messageevents in the trajectory export.parse_trajectory_exportnow returns aTrajectoryExportNamedTuple sothe extra field does not turn the return into an anonymous 5-tuple.
round-trip;
db_token_statenow returns that count alongside thetokens, as a
DbTokenStateNamedTuple.None. Its stream is delta messages with no clean turnboundary, and guessing one would put a fabricated number next to two
measured ones.
Unreported stays
None, never0— a run that produced output cannothave taken zero round-trips, so
0would be a parse miss dragging down adashboard average.
_positive_int_or_nonealso rejects bools, sinceTrueis anintin Python and would otherwise normalize to one turn.Validated live against openclaw (gemini-3-flash-preview):
model_turns=2,tool_calls=1, clean terminal reason. Antigravity could not complete alive turn on this host (project permission denied), so its path is covered
by unit tests over proto blobs captured from a real DB.