docs: run-record schema v1 additive extension for the ctx-bench runner#22
Merged
Merged
Conversation
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
Extends the benchmark run-record schema (v1) with the optional fields the ctx-bench pilot A/B runner needs to capture cost, turns, acceptance results, and diff-size normalization. All new fields are optional at the top level, so
schema_versionstays1and the$idis unchanged, per the documented additive versioning policy. Because the top level isadditionalProperties: false, each new field is explicitly declared.New fields
agent(object): agent-side accounting from the harness (claude -presult payload) —session_id,total_cost_usd,total_tokens(required within the object), andnum_turns(optional even withinagent, sinceclaude -pdoes not guarantee it).acceptance(object): the ctx-independent functional endpoint of a run —command,exit_code,passed,duration_seconds(all required within it).normalization(object):lines_added/lines_removed/lines_changed, the denominator for per-line score deltas.study_id,task_seed,generator_version,scorer_ctx_version(the offline scorer build — existingctx_versionremains the harness build),retry_attempt.metrics.gate_blocksandmetrics.gate_block_recovered: gate-block counts and recovery signal.run-record.mdis updated in lockstep: field table, extended example record (keeps the drift test meaningful), and a versioning note that these arrived additively for the ctx-bench pilot runner.Verification
cargo test --all-features --test study_scripts— all 4 tests pass, includingrun_record_schema_and_example_stay_in_sync.🤖 Generated with Claude Code