Skip to content

#57: Measure tool invocations from complete answer traces - #62

Merged
deyna256 merged 1 commit into
mainfrom
57
Nov 23, 2026
Merged

deyna256 merged 1 commit into
mainfrom
57

Conversation

@deyna256

@deyna256 deyna256 commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

Problem

A task may repeat tools across several answers, but the report cannot show its average tool count. Existing calls do not distinguish tools from models, and an absent or partial trace cannot establish a zero count.

Changes

Call requires kind="model" or kind="tool". Answer.steps_complete=True explicitly declares that every call was reported; its default remains unknown. The report counts every tool invocation, including repeats and failures, and excludes model calls and thoughts. A task count is available only when it has answers and all their traces are complete.

Run and scenario views show mean, median and coverage per recorded task attempt, with the same outlier selection as other resources. Failed and unjudged attempts remain eligible; unrecorded attempts do not. Attempt details distinguish zero from missing measurements and show call kinds. Exports retain the two recorded facts, while judges receive neither traces nor their completeness flags.

The Python call constructor and run format are incompatible changes: only format 9 is supported, without converters. Existing historical demo recordings and pages are untouched.

Closes #57.

Validation

632 tests passed, 1 platform-specific skip. Formatting, lint, types and package build passed. Coverage includes mixed model/tool calls, repeated failures, multi-turn counts, zero/partial/missing traces, failure lifecycles, outliers, exports, judge isolation and format rejection. Desktop/mobile browser checks confirmed fractional means, coverage, known zero and incomplete-trace details; JavaScript parsing and small-value formatting checks passed. Two independent reviews approved correctness, architecture, frontend and documentation without actionable findings. All six CI checks passed on the reviewed head.

@deyna256
deyna256 marked this pull request as draft November 23, 2026 01:20

@deyna256 deyna256 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two independent reviews completed on fd5d90b after successful CI jobs. Both approve without actionable findings.

Correctness review checked validation, counting, persistence, exports, judge isolation and outlier selection, with 62 focused tests passing. Design review checked architecture, frontend semantics, documentation, callers and redundant code.

All six final CI checks are now confirmed successful on the same head. Trace completeness remains the agent's explicit assertion, as documented; missing instrumentation is never treated as zero.

@deyna256
deyna256 marked this pull request as ready for review November 23, 2026 01:23
@deyna256
deyna256 merged commit 0975848 into main Nov 23, 2026
6 checks passed
@deyna256
deyna256 deleted the 57 branch November 23, 2026 01:23
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.

The report cannot show how many tool calls a task needs

1 participant