reference_summary_checks
Load posteriordb reference posterior summaries and validate numeric quality fields for benchmark targets.
SKILL.mdbasicagent-skill/skill_library/paperbench/bam/skill/posterior_db/reference_summary_checks/SKILL.md
GitHubReference Summary Checks
Use this skill when a benchmark needs deterministic reference posterior summaries, especially posterior means and optional MCSE values, from a posteriordb-style snapshot. Do not use it to certify full MCMC quality when only summary files are available.
Inputs
summary_path: JSON file containing parameter names and numeric summary values.- Optional
reference_info_path: JSON metadata describing the reference posterior source and diagnostics. - Optional
statistic: summary vector key, defaulting tomean_value.
Outputs
- A JSON report with
valid,statistic,values,mcse,quality_flags, andblockers. - Vector consistency and finite-number checks suitable for downstream scoring.
Workflow
- Parse the summary JSON and locate
namesplus the requested statistic vector. - Validate equal vector lengths and finite numeric values.
- Attach MCSE values when
mcse_<statistic>ormcse_meanis available with matching length. - Inspect reference-info metadata conservatively and record whether diagnostics are present.
- Return blockers instead of inventing missing reference targets.
Validation
Run python scripts/reference_summary.py --summary <file> --output summary_report.json or the included tests through validate_skill_tree.py --run-tests.
Limitations
Summary schemas vary across databases. This skill focuses on deterministic summary loading and does not rerun reference samplers, compute R-hat, or download draw archives.