Table of Contents generated with DocToc
Capability: substrate:analytics
Harness: agnostic
Deterministic reference implementations of the dashboard that issue-reassess-stats produces. Adopters who want CI-rendered dashboards (refreshed on schedule, published as a build artefact) use one of these reference scripts instead of invoking the agent.
The agent-emitted version (via the skill) is the default; the reference implementations are a deterministic alternative for adopters who want byte-for-byte reproducibility (CI pipelines, audit trails).
reference.groovy (MarkupBuilder + JsonSlurper); reference.py is a Python 3 stdlib-only stub.groovy to run the Groovy reference. None beyond that.<campaign-dir>/<KEY>/verdict.json files and emits self-contained HTML (inline CSS, no JS, no external assets).tools/dashboard-generator/ ├── README.md (this file) ├── reference.groovy (Groovy implementation — MarkupBuilder + JsonSlurper) └── reference.py (Python stub — parity implementation welcome)
groovy tools/dashboard-generator/reference.groovy <campaign-dir> [--output <file>]
Reads <campaign-dir>/<KEY>/verdict.json files, computes the dashboard payload per issue-reassess-stats/aggregate.md, and emits the HTML per issue-reassess-stats/render.md.
Without --output, HTML is written to stdout.
The reference implementation matches the agent-emitted output for:
render.md).The reference implementation deliberately does not match free-form prose (e.g., the per-issue “notes” summary). For prose- heavy dashboards, the agent-emitted version is better.
| Use case | Choice |
|---|---|
| Interactive maintainer view, one-off | Skill (/magpie-issue-reassess-stats) |
| CI pipeline, scheduled refresh | Reference implementation |
| Reproducible audit dashboard | Reference implementation |
| Custom layout for one campaign | Skill (with overrides) |
The Groovy reference exists today. A Python reference is a stub — parity implementation welcome via PR. Other languages also welcome as long as they:
<campaign-dir> [--output <file>]).issue-reassess-stats — the agent-emitted version of the same dashboard.issue-reassess-stats/render.md — the layout contract the references implement.<project-config>/reproducer-conventions.md — the campaign directory layout.