StarModel 邀请活动
← 返回 Skill 列表
extension
分类: 数据与分析无需 API Key

合并多轮评测报告数据

Convert evaluation summary-report JSON files into a detailed multi-scene, multi-round CSV, or generate benchmark-style case_type-grouped CSV headers/templates from `scenario_instance_ids.yaml` plus instance rubric files. Use when Codex needs to aggregate `summary_report_detail.json`, preserve every instanceID, expand Layer2 dimensions, group identical rubric `case_type` values, retain judge errors, match the benchmark evaluation CSV layout, and verify row/round/ID integrity.

person作者: user_b869b2f0hubcommunity

Build Evaluation Rounds CSV

Use the bundled deterministic script. Do not hand-compose the CSV.

Input modes

Choose one:

  • Directory mode: one immediate subfolder per scene; each subfolder contains one JSON list per round.
  • Manifest mode: one JSON manifest explicitly declaring scene order, display names, rounds, paths or inline records, and optional dimension configuration.
  • Scenario YAML mode: one scenario_instance_ids.yaml; read each listed instance's tests/rubric.json, merge identical case_type values, and generate CSV title/header blocks with optional round placeholders.

Read references/format.md when customizing a manifest, field mapping, dimension labels, or failure handling.

Workflow

  1. Determine the round order. In directory mode the script sorts by timestamps embedded in filenames, then by filename. Use a manifest whenever that order is ambiguous.
  2. Run one of:
python3 scripts/build_eval_rounds_csv.py \
  --input-root "/path/to/scenes" \
  --output "/path/to/result.csv"
python3 scripts/build_eval_rounds_csv.py \
  --manifest "/path/to/scenes.json" \
  --output "/path/to/result.csv"
python3 scripts/build_case_type_headers.py \
  --scenario-yaml "/path/to/scenario_instance_ids.yaml" \
  --output "/path/to/case_type_template.csv" \
  --round-count 3

Add --headers-only in Scenario YAML mode to omit instance/round placeholder rows.

  1. Inspect the JSON summary printed by the selected script. Confirm group/scene count, task count, data-row count, column counts, round order, and abnormal rows when applicable.
  2. Inspect the CSV title/header for every group. In data modes, also inspect one complete instance per group and every abnormal row.
  3. Deliver the CSV and state the grouping rule, round order, and abnormal-row policy when applicable.

Required behavior

  • Emit one title row, one group-specific header row, optional round rows per instance, then one blank separator row.
  • In Directory/Manifest modes, keep each instance's round rows adjacent and sort instanceID values lexically.
  • In Scenario YAML mode, group by the exact rubric case_type, preserve case_type first-occurrence order and instance order from the YAML, and take a stable first-seen union of displayed dimension names within each case_type. Treat reused positional keys such as dim_002 as separate columns when their displayed names differ.
  • Preserve the exact input instanceID set. Fail when round ID sets differ; never silently add, drop, or rename IDs.
  • Keep the fixed 21 base columns and append only that scene/group's Layer2 dimensions.
  • Use UTF-8 with BOM and quote every nonblank row field by default.
  • Treat numeric zero as valid.
  • When layer2_rubric.error exists, preserve the exact error text, retain duration/token/credit fields, set 评测状态 to 评测异常, and leave agent/final/dimension scores blank.
  • Map durationMs, tokens, credit, pass state, comments, and dimensions according to the format reference.
  • Do not invent initial-report or re-evaluation report IDs when the source JSON does not contain them.

Validation gates

Do not deliver unless the script exits successfully and its summary confirms:

  • every scene has the same instanceID set in every round;
  • every data row has the same column count as its scene header;
  • every instance has exactly the expected round count;
  • the output ID union equals the input ID union;
  • every abnormal row retains its source error text and has blank score fields;
  • deterministic sample checks pass.

For Scenario YAML mode, additionally confirm:

  • every YAML instance resolves to <benchmark-root>/<instance_id>/tests/rubric.json;
  • the output contains each unique case_type exactly once;
  • identical case_type values are one contiguous group;
  • all displayed rubric dimension names in that case_type appear once in first-seen order;
  • every placeholder row has the group header width and expected instance/round order.