Lab 01: Local dev loop
Concept
Local development should produce decision-ready evidence, not only a pass/fail feeling.
What this lab teaches
- 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.
- 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.
- A passing gate and a healthy dataset are not the same thing.
disappearedrows 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
- Regenerate deterministic artifacts. (evidence class: all four)
- Confirm the core evidence files exist. (evidence class: history, progress, gate, row detail)
- Read progress and row-level comparison signals. (evidence class: progress, row detail)
- Validate both pass and fail gate outputs. (evidence class: gate decision)
Steps
- Regenerate deterministic artifacts.
./scripts/generate-report-power-artifacts.sh
- 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
- 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
- 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.jsoncontains 2 runs.summary.jsonincludescomparison.previousRunId,persistentFailures, anddisappeared.disappeared=4here, withnewlyPassing=[]. 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 withpersistentFailures(2 rows still failing) before concluding anything got better.check-pass.jsonhaspassed: true.check-fail.jsonhaspassed: falsewith a threshold reason.index.htmlopens locally for human triage.
Common mistakes
- Reading
pass_ratealone and stopping. It says nothing about which rows failed or whether failures are new or persistent. - Counting
disappearedrows 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.jsonmeans 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.