Canton public data checks for dashboard CI
- Organization: Individual
- Author / Primary Contact: Jeremy Carter (@defcron)
- Status: Draft for scope and champion review
- Created: 2026-12-01
- Proposal Type: RFP-aligned
- RFP / Roadmap Area: RFP 20, Indexers, Developer Experience, Tooling & Education
- Champion: Needs Champion
- Total Funding Request: 36,000 CC
- Project Duration: 2 months from approved kickoff
- Label: tokenomics
Abstract
Build a small, reusable check that lets dashboard maintainers verify which public daily dataset they imported and whether it covers the dates and metrics they display. The initial adapter uses the public CCTools Network Record. The independent prototype found supply values on 29 of the 189 final days through September 30, 2026, in generation g20261129T024001Z. A simple import can otherwise turn those gaps into zeros.
Specification
1. Objective
Help a downstream Canton dashboard or analysis pipeline catch missing and malformed metric values before publication, while retaining the source generation in its build evidence.
2. Implementation Mechanics
Release the CLI, its fixtures, and CI instructions under MIT in a standalone public repository. The CLI will accept a pinned publisher manifest, CSV and expected date range. It will check digests and row counts, report the generation and coverage per metric, and distinguish zero, missing, invalid, duplicate final rows and absent dates. The offline fixtures will use synthetic data plus a small attributed public example. A documented adapter interface will let maintainers add another public CSV feed without changing the reporting and exit-code logic. The initial release will have a named issue tracker and a documented maintainer contact.
3. Architectural Alignment
RFP 20 requests observability that preserves Canton privacy boundaries. The verifier consumes only intentionally public aggregates. It uses public release metadata and SHA-256 to check consistency with a pinned manifest. It requires no node credentials, Mediator data, party identifiers or transaction payloads. It remains usable if protocol-level metadata exposure changes.
The proposal covers downstream consumption and builds on the public feed and verifier described in CCTools PR 1119. Its scope excludes publishing source data, reconciling ledger events and producing the proposed per-application series.
4. Backward Compatibility
No backward compatibility impact. Consumers choose when to enable the check, the metric coverage threshold and whether failures block a release.
Milestones and Deliverables
Milestone 1. Reproducible offline acceptance
- Target: End of week 3 from approved kickoff.
- Focus: Verify source identity and demonstrate coverage failures without needing live infrastructure.
- Deliverables / Value Metrics: Publish the CLI, test vectors, report format and a runnable CI example. A reviewer rerunning the supplied pass and fail cases can distinguish absent supply from explicit zero and trace the check back to the named generation.
Milestone 2. Independent consumer trial
- Target: End of week 8 from approved kickoff.
- Focus: Validate that a downstream maintainer can run the check during a refresh.
- Deliverables / Value Metrics: Seek participation from at least one independent dashboard or research pipeline. Obtain documented trial feedback showing whether the maintainer could identify the checked data generation, spot a missing value and rerun the check from the documentation. Address reproducible issues raised by that trial.
Acceptance Criteria
Committee reviewers can reproduce the supplied pass and fail cases without credentials, with exact outputs from the pinned fixtures. The second milestone requires evidence of a trial by at least one downstream consumer independent of the proposer, along with reproduction steps for any remaining issue. No consumer has committed to a trial yet.
Funding
Total Funding Request: 36,000 CC for an estimated 40 hours of work. This is a proposed budget for review and does not imply approval or a fixed fiat equivalent.
- Milestone 1: 18,000 CC after acceptance.
- Milestone 2: 18,000 CC after acceptance.
If Committee-requested scope changes extend the project beyond six months, remaining milestones would be renegotiated to account for significant volatility.
Co-Marketing
Provide a short technical note with commands and examples for the Foundation to share upon release.
Motivation
Dashboard maintainers and independent analysts need to distinguish unavailable measurements from measured zeros. A reproducible check also gives readers a way to connect a chart to the generation it used. Early adoption will be measured by the independent trial. No broader adoption is assumed.
Rationale
A small command-line tool runs in existing CI without adding a service or data warehouse. A publisher's verifier can establish that its published release is internally consistent. A consumer check can additionally enforce the specific date and metric coverage that a dashboard promises to show. The same checks and report format can be reused with another publisher's intentionally public data.
AI assistance was used to prepare the prototype and draft.