eval-dashboards docs

Type to search.

    v1 pages

    Lab 01: Local dev loop

    Concept

    Local development should produce decision-ready evidence, not only a pass/fail feeling.

    What this lab teaches

    1. Regenerating artifacts locally is cheap and mandatory. A one-line script produces the same four evidence classes CI and release stages rely on, so there is no excuse for discovering an issue only in a PR.
    2. History, progress, gate, and row detail are separate files for a reason. Each answers a different question; conflating them (e.g. reading only the pass rate) hides real problems.
    3. A passing gate and a healthy dataset are not the same thing. disappeared rows can make a run look better than it is even when the gate is green.

    Why this matters

    If developers do not learn to read history, progress, gates, and row details during local work, teams discover evaluation issues too late in PR or release stages.

    Lab question

    Can you prove local changes are understood through artifacts before CI is involved?

    Lab outline

    1. Regenerate deterministic artifacts. (evidence class: all four)
    2. Confirm the core evidence files exist. (evidence class: history, progress, gate, row detail)
    3. Read progress and row-level comparison signals. (evidence class: progress, row detail)
    4. Validate both pass and fail gate outputs. (evidence class: gate decision)

    Steps

    1. Regenerate deterministic artifacts.
    ./scripts/generate-report-power-artifacts.sh
    1. Check history/progress files exist.
    python3 - <<'PY'
    from pathlib import Path
    root = Path('examples/report-power-artifacts')
    for rel in [
      'report/history.json',
      'report/summary.json',
      'gates/check-pass.json',
      'gates/check-fail.json',
      'report/index.html',
    ]:
      p = root / rel
      print(rel, 'OK' if p.exists() else 'MISSING')
    PY
    1. Inspect progress over runs and row-level detail in one pass.
    python3 - <<'PY'
    import json
    from pathlib import Path
    summary = json.loads(Path('examples/report-power-artifacts/report/summary.json').read_text())
    print('run=', summary['summary']['run']['id'])
    print('pass_rate=', round(summary['summary']['passRate'] * 100, 2))
    print('history_baseline=', summary['comparison']['previousRunId'])
    print('persistent_failures=', len(summary['comparison'].get('persistentFailures', [])))
    print('disappeared=', len(summary['comparison'].get('disappeared', [])))
    PY
    1. Validate gate outcomes (pass and fail are both expected here).
    python3 - <<'PY'
    import json
    from pathlib import Path
    p = Path('examples/report-power-artifacts/gates/check-pass.json')
    f = Path('examples/report-power-artifacts/gates/check-fail.json')
    pass_doc = json.loads(p.read_text())
    fail_doc = json.loads(f.read_text())
    print('pass_gate:', pass_doc['passed'])
    print('fail_gate:', fail_doc['passed'])
    print('fail_reasons:', fail_doc['failures'])
    PY

    Expected outputs (verified against a real run)

    • history.json contains 2 runs.
    • summary.json includes comparison.previousRunId, persistentFailures, and disappeared.
    • disappeared=4 here, with newlyPassing=[]. That is 4 rows present in the baseline (agent-v3-2026-07-30) that are absent from this run (agent-v4-2026-07-31) — real ids: rq-fail-2, rq-fail-4, tu-fail-1, tu-fail-2. This is not four fixed bugs. Rows disappear when a dataset or suite changes shape between runs (renamed/removed cases), not only when an agent improves. Read it together with persistentFailures (2 rows still failing) before concluding anything got better.
    • check-pass.json has passed: true.
    • check-fail.json has passed: false with a threshold reason.
    • index.html opens locally for human triage.

    Common mistakes

    • Reading pass_rate alone and stopping. It says nothing about which rows failed or whether failures are new or persistent.
    • Counting disappeared rows as fixes. They are absent from the current run, not confirmed passing — see step 3’s output.
    • Skipping the fail-gate check. Only ever running check-pass.json means you never learn what a threshold breach actually looks like in the JSON.

    Definition of done

    You can explain the concept in one sentence and show all four evidence classes from files in examples/report-power-artifacts/ without re-running a hosted service.