Formal QA Validation¶
For the v1.3 validation and current counts, see v1.3 release notes. The dated v1.2 results below are retained as historical evidence.
This page records the current QA layer and the latest validated result for the canonical CUSP observation table.
QA Workflow¶
Hard-gate checks run with:
python -m cusp.qc validate-observations --out outputs/qc_tests
They require:
- the exact frozen column names and order
- contract-compliant logical types, nullability, units, and encodings
- present, unique, correctly formatted, and deterministically reproduced
cusp_obs_id - binary
pf_observed - registered source keys and supported
methodvalues - well-formed, defined, deduplicated, canonically ordered quality flags
- present and valid coordinates
- valid
YYYY-MM-DDdates in the supported range - nonnegative depth values
- no zero observation limits
- valid presence, absence, depth, observation-limit,
UB, andVIrelationships
The machine-readable source of truth is
cusp/canonical_observation_schema.json. The build, exporter, QA command, and
test suite all load the same contract.
The diagnostic audit runs with:
python -m cusp.qc audit-observations --out outputs/qc_audit
It writes review files without changing the observations.
Latest Result¶
Validated on 2026-10-05 under Python 3.13 for v1.2, including the Pastick correction and the three new sources. Published v1.1 artifacts are unchanged.
- hard-gate status: passed
- canonical table:
80,264rows and12columns - complete test suite:
109 passed,1 skipped, with166passing subtests - processing metadata:
60structured headers,0validation errors - build-level QC flag log:
0rows
Audit Summary¶
n_missing_cusp_obs_id = 0n_duplicate_cusp_obs_id = 0n_date_unparseable = 0n_date_future = 0n_date_too_old = 0n_missing_xy = 0n_invalid_xy_range = 0n_negative_pf_depth = 0n_negative_thaw_depth = 0n_negative_obs_limit = 0n_zero_obs_limit = 0n_invalid_pf_observed = 0n_thaw_gt_pf_diagnostic = 0n_suspect_swapped_latlon = 0
Current pf_observed counts:
- presence:
62,848 - absence:
17,416, comprising17,216depth-bounded records and200flagged visual Koyukuk classifications without a point-specific limit
Build-Enforced Semantics¶
The observation build rejects any instrument-based absence without a positive
obs_limit. It permits a blank limit only for a row explicitly marked as a
visual interpretation (VI), and still rejects zero or negative limits. It
clears canonical depth fields on absence rows, adds LB to bounded absences,
and adds UB to presence rows whose exact depth is unknown.
These rules supplement the general QA checks because they encode CUSP's observation semantics rather than generic numeric validity.
Nonblocking Checks¶
Missing site_id, source-specific overlap notes, and the
thaw_depth > pf_depth check remain diagnostic. They are exposed for review
but do not automatically invalidate otherwise usable observations.