Troubleshooting
Troubleshoot baseline construction — Global Impact Catalyst
Troubleshoot missing, inconsistent, or scientifically invalid baseline construction in Global Impact Catalyst using real NOAA atmospheric CO₂ observations, source-reviewed indicator registry implementation, and reproducible Python diagnostics. This engineering guide provides historical-data validation, source and version integrity checks, failure-injection tests, recovery procedures, and staging acceptance criteria that distinguish correct calculations from scientifically defensible impact claims.
Application: Global Impact Catalyst
Component: Indicator Registry / Baseline Models / Program Measurement
Article type: Troubleshooting and engineering diagnostics
Source-reviewed release: Indicator Registry v1.4.0; Program Measurement v1.5.0
Source-pinned commit: e75808a0aa272656b1fdbacd2491c30fd6b987dc
Scientific evidence: NOAA GML annual Mauna Loa CO₂, 1959–2025 (source file dated 19 November 2026)
Verification status: Offline diagnostic tests passed; installed software, authorization, scientific review and staging acceptance pending
Estimated reading time: 25–32 minutes
1. Goal
Diagnose baseline construction that produces an apparently successful result but contains incomplete historical coverage, a reference-period error, incompatible units, stale evidence, inconsistent revisions, inadequate provenance or unsupported impact claims. Preserve the original evidence and distinguish calculation correctness from scientific validity and publication authorization. This reference contains source-pinned code links, a real observational example, a read-only local diagnostic adapter, and staging criteria.
2. Requirements
For an actual incident, obtain an authorized, redacted record identifier, workspace context, indicator and baseline model version IDs, selected period, computation method, source vintage and hash, evidence states, revision history and actor audit events. Do not paste personal data, protected research records, access tokens, cookies or WordPress nonces into public tickets.
| Required evidence | What to inspect | When to block |
|---|---|---|
| Workspace and actor | Server-side authenticated identity, membership, project roles | Mismatched workspace, missing authorization or unauthorized export |
| Baseline reference | Immutable model version, method identifier and unit | Unknown/stale version, incompatible concentration/emissions dimensions |
| Time selection | Inclusive reference dates, expected vs observed periods | Duplicate or missing years; records outside reference bounds |
| Source lineage | Canonical source URL, release date, SHA-256 and site history | Unknown snapshot or unexplained instrument/site change |
| Observation state | Missing, partial, revised, late or complete; effective version | Double-counted superseded records or missingness replaced with zero |
| Claim status | Descriptive/comparative/causal interpretation; review state | Unreviewed causal attribution or publication on successful save |
3. Symptoms
| Observed symptom | Likely failure class | First diagnostic |
|---|---|---|
| Valid number, wrong years | Caller did not filter observations by reference period | Compare included observation dates against model period |
| Suspiciously low average | Missing years silently filled with zero or denominator inflated | Enumerate expected years, actual years and exclusion reasons |
| Baseline changes after export/import | Different evidence version, model revision or effective observations | Compare hashes, model version IDs and effective revision chains |
| Unexpected unit or magnitude | Unit mismatch or inappropriate ratio aggregation | Confirm scientifically compatible dimensions and aggregation method |
| Two users see different states | Workspace/permission error, stale read, review status disagreement | Confirm actor, tenant, revision and authoritative source |
| Draft appears publicly | Approval or visibility boundary bypass | Disable unsafe publication path; preserve logs and escalation evidence |
| Reported “impact” from one before/after difference | Unsupported causal interpretation | Require counterfactual design and competing-explanation review |
| 2022–2023 CO₂ site anomaly | Known temporary NOAA measurement-site substitution | Read NOAA site notes and assess comparability explicitly |
4. Real scientific diagnostic: NOAA Mauna Loa atmospheric CO₂
The NOAA GML annual CO₂ source file (created 19 November 2026) reports annual dry-air mole fraction in ppm. Its observations run from 1959 through 2025. NOAA cautions that the latest and earlier values may be revised and that, following Mauna Loa’s volcanic eruption, observations from December 2022 through 4 July 2023 used Maunakea Observatories. The packaged CSV is an annotated transcription of these values, not a byte-identical NOAA file.
| Year | CO₂ (ppm) | Use in this exercise |
|---|---|---|
| 2015 | 401.01 | Baseline |
| 2016 | 404.41 | Baseline |
| 2017 | 406.76 | Baseline |
| 2018 | 408.72 | Baseline |
| 2019 | 411.65 | Baseline |
| 2025 | 427.35 | Later comparison |
Expected reference: (401.01 + 404.41 + 406.76 + 408.72 + 411.65) / 5 = 406.510 ppm for 2015–2019. The 2025 concentration is 20.840 ppm higher, or 5.127% above that historical mean after three-decimal rounding. An alternative 2014–2018 window yields 403.942 ppm. A difference in windows changes the result even with correct arithmetic.
Interpretation boundary: These are atmospheric concentrations, not mass emissions, and they cannot be attributed to an individual Global Impact Catalyst intervention. NOAA’s source-file annual uncertainty value of 0.12 ppm is not a conventional 95% confidence interval for this multi-year reference period. Trending annual observations are not independent experimental replicates.
5. Cause: trace the pipeline in order
- Authorization: Confirm workspace and actor against the server’s authenticated principal and permitted access; a request-supplied workspace name is not authorization.
- Reference pinning: Resolve the exact indicator definition, baseline model and method versions. Confirm that the output’s version is the one selected for the intended project.
- Source pinning: Verify source URL, retrieval/release date, license and exact bytes or a disclosed transformation manifest. A local CSV digest refers to those CSV bytes only.
- Date selection: Inspect the selected input years before computation. Require each expected year or an explicit, reviewed missing-data rule.
- Effective measurements: Handle missing, partial, late and revised states without double-counting superseded measurements.
- Scientific compatibility: Check concentration vs emissions units, changes in site, denominator suitability and appropriate reference-window rationale.
- Calculation and rounding: Reproduce the unrounded mean and record rounding convention. Do not round each observation unnecessarily before aggregation.
- Claim and release state: Separate a descriptive result, methodological review, organizational approval and public availability.
6. Verified source behavior versus required engineering safeguards
At the pinned GitHub commit, python/global_impact_registry.py defines register_baseline_model(), get_baseline_model() and compute_baseline(). Supported source identifiers include point_first, point_latest, period_average, rolling_average, benchmark, and modelled. Registry models have immutable versions and content hashes. The function compute_baseline() receives supplied numeric values; it does not visibly filter those inputs by the stored period_start and period_end or enforce their provenance.
The code-level finding means the calling integration must prove date selection, effective-record resolution and actor authorization. It is not evidence that the deployed WordPress application is vulnerable. The separately documented WordPress registry supports baseline-model management, but exact deployed route behavior and access enforcement have not been staging-tested here. The registry’s confidence labels are qualitative—not statistical confidence intervals or publication approval.
Repository-backed implementation and test entry points:
| Source-pinned GitHub file | Engineering relevance |
|---|---|
| python/global_impact_registry.py | Baseline methods, registration, versioning and compute_baseline |
| python/global_impact_measurement.py | Measurement record and revision handling |
| schemas/global_impact_indicator_registry.schema.json | Registry JSON export schema v1.4.0 |
| schemas/global_impact_measurement_repository.schema.json | Measurement repository schema |
| migrations/005_indicator_registry_units_baselines_targets_methods.sql | Baseline and immutable-version storage |
| docs/baselines-targets-methods.md | Model methods and formula restrictions |
| docs/indicator-registry.md | Registry bindings and lifecycle |
| docs/program-measurement.md | Measurement states and revised observations |
| docs/wordpress-workspace.md | WordPress registry interface documentation |
| docs/review-governance.md | Review governance |
| docs/source-integrity.md | Evidence integrity |
| tests/test_indicator_registry.py | Repository baseline-method tests |
| tests/test_measurement_portfolios.py | Measurement repository tests |
| tests/test_wordpress_contract.py | WordPress contract tests |
| docs/claim-governance.md | Claim classifications and safeguards |
| docs/evidence-chain.md | Evidence links and records |
7. Troubleshooting procedure: executable offline diagnostic harness
The accompanying ZIP includes src/troubleshoot_baseline.py, an offline diagnosis-only adapter that reads the NOAA transcription and the example request contract. It returns either calculation_ready_for_review or blocked with stable failure codes and recommended corrective actions. Its checks illustrate necessary preconditions; they do not authenticate users, access production databases, resolve live version IDs or confer scientific approval.
cd gic_troubleshoot_baseline_package
python3 src/troubleshoot_baseline.py --scenario clean
python3 src/troubleshoot_baseline.py --scenario missing_year
python3 src/troubleshoot_baseline.py --scenario stale_snapshot
python3 src/troubleshoot_baseline.py --scenario site_transition
python3 src/troubleshoot_baseline.py --scenario approval_bypass
python3 -m unittest discover -s tests -v
The clean scenario must return 406.51 ppm, exactly five selected years, descriptive claim classification and draft publication state. A missing 2017 measurement must block rather than replace it with zero. A snapshot hash mismatch must block recomputation. Selecting 2022–2023 without acknowledged source-site review must block, even though NOAA reports values for both years.
8. Diagnostic failure codes and safe recovery
| Failure code | Meaning | Safe response |
|---|---|---|
WORKSPACE_CONTEXT |
Wrong declared workspace | Reauthorize against server-side identity before protected access |
YEAR_COVERAGE |
Missing or duplicated historical year | Repair lineage, document exclusion, do not insert zero |
SOURCE_VERSION_MISMATCH |
Input bytes disagree with approved hash | Identify correct release and retain old snapshot for audit |
UNIT_MISMATCH |
Incorrect dimensional representation | Use registered scientifically compatible unit; do not assume ppm is tCO₂e |
SITE_TRANSITION |
2022–2023 site continuity requires review | Assess NOAA transition notes and sensitivity |
INVALID_NUMERIC |
NaN or non-finite input | Quarantine affected observations and preserve original source |
PROVENANCE_OR_VERSION_MISSING |
Insufficient actor or pinned-version information | Restore immutable references from trusted registry |
UNSUPPORTED_CAUSAL_CLAIM |
Causal impact asserted without evaluation design | Retain descriptive interpretation; require independent causal evaluation |
PUBLICATION_BYPASS |
Computation request attempts approval/publication | Preserve draft, escalate to authorized reviewer |
Recovery order: Suspend unsafe external publication if applicable; preserve the unchanged evidence and immutable revisions; classify the issue; prepare a nonsecret minimal reproduction; repair input selection or mapping in staging; rerun the exact baseline and negative tests; have an authorized reviewer approve any revised scientific interpretation; finally follow the deployment rollback plan if a code change is necessary. Do not delete historic versions simply to make integrity checks pass.
9. Tests for security, state and reproducibility
Offline tests include 16 named failure-injection scenarios plus clean-path, source-coverage and rounding assertions. Test cases cover unauthorized workspace context, missing actor/version fields, source mismatch, inconsistent method, reversed period, duplicate year, incomplete series, non-finite observation, missing site provenance, insufficient sample size, unsupported causal wording and publication bypass.
These tests demonstrate an isolated policy guard but do not prove production authorization, consent enforcement, tenant isolation, persistence atomicity, revision-conflict detection, audit guarantees or log redaction. Staging acceptance must exercise the actual installed WordPress routes and data stores with test principals and records.
10. Escalation and incident record
Capture incident ID, UTC event time, affected component and release, source SHA-256, expected/observed years, model and indicator version IDs, nonsecret error code, reproduction command, suspected failure boundary, risk classification, containment decision, assigned owner and rollback result. Keep private evidence in its approved system, not in public GitHub discussions or issue attachments.
For an active cross-workspace visibility defect or public-data disclosure, follow the organization’s incident process and protect the affected route before further testing. Never experiment with real restricted personal records solely to reproduce a documentation example.
11. Resolution and verification
- Re-run an unchanged source snapshot and confirm the expected selected-year list and numerical baseline.
- Verify original and revised records remain traceable with new versions rather than silent overwrites.
- Confirm excluded observations are reported, and no missing year has been treated as zero.
- Check the unit and model method against pinned registry definitions, including specific source enums.
- Perform controlled cross-workspace, stale-revision, audit-failure, export-redaction, consent and publication-bypass tests against the actual release.
- Require independent review for scientific comparability, uncertainty treatment and any proposed causal attribution.
- Document staging evidence, deployment decision and rollback readiness; do not infer approval from successful numeric output.
12. Staging acceptance checklist
The package contains 32 staging cases, all initially NOT_RUN. It separates source-level evidence, offline checks and actual installed-system validation. Do not publish a “verified in production” status until authorized staging tests demonstrate correct WordPress permissions, model and measurement version behavior, duplicate/idempotency handling, protected-record visibility, audit robustness and safe publication transitions.
13. References and limitations
Primary scientific source: NOAA Global Monitoring Laboratory, Trends in Atmospheric Carbon Dioxide and annual Mauna Loa data (source creation: 19 November 2026). See NOAA’s attribution instructions and quality-control notes. Software source: Global Impact Catalyst at reviewed commit. The local fixture’s SHA-256 verifies the packaged annotated CSV, not the original NOAA text bytes.
Acceptance boundary: A defensible baseline discloses its selection, gaps, site transitions, limitations, source revisions and reviewer decisions. A passing diagnostic or successful calculation is not, alone, proof of scientific validity, causal impact, application security or authorization to release.
