Troubleshooting
Troubleshoot cross-country comparison — Global Impact Catalyst
Troubleshoot failed or misleading cross-country comparisons in Global Impact Catalyst by examining missing observations, inconsistent indicators, purchasing-power definitions, population denominators, source revisions, and comparison policies. This guide provides reproducible World Bank examples, root-cause diagnostics, secure recovery procedures, and verification criteria for scientifically defensible international comparisons.
Application: Global Impact Catalyst
Component: Analysis — Comparisons and Benchmarks (related: Indicator Registry, Program Measurement, Evidence Repository, Review Workflow)
Article type: Troubleshooting
Source-reviewed product version: 2.0.0; pinned commit e75808a0aa272656b1fdbacd2491c30fd6b987dc
Source-reviewed analysis format: 1.7.0; unit registry format: 1.4.0
Last verified installed version: Not established for cross-country comparison
Scientific example: World Bank WDI indicators via UNdata, snapshot dated 2026-02-25; United States and Germany, 2023–2024
Status: Source-reviewed guidance; deployment and independent scientific acceptance pending
Estimated reading time: 20–24 minutes
Summary: Diagnose missing countries, invalid rankings, incompatible purchasing-power definitions, altered observations, unexpected exclusions, incorrect per-person measures, broken source lineage, and unsafe publication. Establish the first point at which the published result departs from its approved inputs, repair the governed record or comparison policy, and demonstrate a reproducible, appropriately qualified two-country result.
Goal
Find and correct the earliest demonstrable failure in a cross-country analysis without masking scientific uncertainty, destroying revision history, leaking restricted data, or implying an impact claim not warranted by the evidence. A successful outcome contains at least two eligible countries, one harmonized indicator definition, compatible units, aligned reference periods and source vintages, independently recalculated outputs, and a documented limitation statement. A one-country result, a syntactically valid chart, or a green integrity flag alone is not sufficient.
Requirements
- The workspace, initiative, indicator definition/version, comparison-set ID, member IDs, selected countries (prefer ISO 3166 alpha-3 codes), reporting year, and comparison purpose.
- Underlying observations or benchmark records, immutable source references, revision/supersession history, units and dimensions, source vintage/retrieval date, and any recorded exclusions or warnings.
- Authorized read access for investigators; a separate approver for publication where governance requires it; safe, nonproduction fixtures for permission-denial or deliberate-failure tests.
- The declared
period_policy,geography_policy,population_policy,missing_policy,partial_policy, and ranking direction. Record defaults rather than assuming the UI disclosed them. - A reference dataset and a reproducible calculation script. The accompanying CSV is a frozen historical snapshot, not a live feed or a representation of current World Bank values.
Containment prerequisite: If a public comparison shows a restricted record, wrong tenant, or materially misleading policy conclusion, stop public distribution and preserve the original output and publication decision. Do not revise the source or silently overwrite a published artifact to make the discrepancy disappear.
Symptoms
| Observed symptom | Likely diagnostic boundary | First evidence to collect |
|---|---|---|
Only one country appears, but the result says valid |
Member filtering and minimum sample gate | members, excluded, integrity.included_count |
| GDP and GDP per capita produce the same narrative | Indicator definition, denominator and chart labels | Indicator codes and units on both axes |
| PPP, market-exchange, constant-price or current-price series are mixed | Source metadata and price convention | Full indicator codes and source metadata, not display labels |
| A country disappears without an explanation | Missing data, incompatible units, context filters or revisions | Per-member exclusion reason and observation state |
| Result changes after a rerun without data edits | Implicit latest record, source refresh, mutable lookup or cache | Input IDs, as-of timestamp, source revision, run hash |
| Year-to-year growth appears implausible | Mixed nominal/current and real/constant concepts | Period, deflator, PPP convention, calculation formula |
| Ranking declares a country “more sustainable” | Interpretation and claims governance | Recorded direction, indicator meaning, methods and review |
| Cross-workspace values or restricted evidence are visible | Authorization, export and publication boundaries | Redacted access log, role, workspace and public response |
Record the symptom as observed, not as a conclusion about wrongdoing. A source mismatch can reflect a deliberate data revision, a bad filter, or inappropriate interpretation; each requires different corrective action.
Cause
Most comparison incidents fall into five independently testable cause classes:
- Selection and lifecycle: Wrong workspace/initiative, reversed country identifier, stale benchmark, a missing or partial observation, a revised observation that superseded another value, or a silently selected “latest” record.
- Definition and normalization: Confusing total GDP with GDP per capita; treating international dollars as market USD; combining current and constant-price PPP; using a population from a different year; or applying a unit conversion across incompatible economic concepts.
- Policy and inclusion: Unexpected warning/exclusion policy; missing geographic or population context; mismatched periods; ranking the surviving subset without confirming both target countries remain; or leaving “higher is better” inappropriate for the measured construct.
- Data lineage and presentation: Wrong source edition, copied rather than linked provenance, duplicate country-year entries, rounding before division, visualization mislabeling, cached result, or an export that does not identify the actual analytical run.
- Authorization and claims: A workspace access failure, overshared report, stale approval after a changed source, private information in a public payload, or a descriptive difference presented as a causal or universal quality judgment.
Root-cause rule: Compare the frozen source row → effective selected observation → governed normalized value → eligible comparison member → calculated result → chart/export → public claim. The earliest differing stage identifies the proper layer to repair. Do not adjust presentation until the underlying analytical contract is reconciled.
Troubleshooting
Use the following runbook on a protected copy. Exact buttons, URLs, API routes and deployment controls are not certified by this source review; map each stage to the installed version before operating on real data.
Step 1 — Preserve the incident and stop unsafe disclosure
Capture the reported result, run identifier, user-visible filters, time, audience and access context. Preserve an immutable input/output copy or checksums in an approved location. If there is an unintended public link, use the authorized publication or access-control workflow to restrict it while preserving audit evidence. Report the incident without secrets, personal names, raw participant data or entire private responses.
Step 2 — Identify both countries and the exact indicator
Confirm that USA and DEU, for example, mean sovereign national aggregates rather than subnational projects or organization geographies. Check each series against a literal code such as NY.GDP.MKTP.PP.CD (total GDP, PPP, current international dollars) or NY.GDP.PCAP.PP.CD (GDP per capita, PPP, current international dollars). The two codes are distinct indicators; do not put them in a single ranking as if they measured the same thing.
Step 3 — Freeze the reference period and the source edition
Require one reporting year for the compared members, one clearly identified release/snapshot, and reproducible source links. Note the dataset retrieval date and the original series update/vintage when separately available. A cached UNdata/WDI transcription from February 25, 2026 cannot be presumed identical to a later live World Bank download; a newly revised value should be recorded as a new source version, not silently substituted.
Step 4 — Inspect missing, partial and superseded observations
Read the effective observation selected for each country and list any candidates removed due to supersession, missing data, partial-state policy, incompatible units, or period filtering. Do not automatically substitute 0 for missing values; zero means a measured value of zero, not absent data. If only one country survives, stop the cross-country conclusion even if the native result is marked structurally valid.
Step 5 — Audit normalization before comparing
Keep economic concepts explicit: exchange-rate USD versus purchasing-power international dollars; total versus per-capita; current-price versus constant-price; calendar year; population definition; geographic boundary; and source system. Converting kWh to MWh is a governed unit operation; converting nominal USD into PPP international dollars or constructing a per-person value is a substantive economic transformation requiring data, formula, methodology and provenance. Similar-looking currency symbols are not sufficient.
Step 6 — Read the comparison policy and output envelope
The source-reviewed GIC analysis module exposes create_comparison_set, add_comparison_member and run_comparison_set. Its policies include time, geography, population, missing/partial-state and direction choices. Inspect the resulting members, excluded, integrity.warnings and integrity.blockers. Country differences should be expected for an international comparison, but a warn policy is not equivalent to proof of comparability.
Step 7 — Check the two-country scientific eligibility gate
In the reviewed implementation, comparison-set integrity.valid is true if at least one normalized member remains. That is a repository structural signal, not a two-country eligibility test. Independently require the exact expected country set, no duplicate country-year-indicator records, compatible definitions, matching periods and at least two distinct eligible country codes. If the gate fails, report insufficient eligible members, not a bilateral ranking. This stricter check is a proposed research preflight, not an assertion that GIC already enforces it.
Step 8 — Recalculate scale and per-person values independently
Using the frozen 2024 World Bank/WDI via UNdata example, calculate separate ratios:
| 2024 indicator | United States | Germany | U.S. ÷ Germany |
|---|---|---|---|
| Total GDP, PPP (current international dollars) | 29,184,890,000,000.1 | 6,142,807,000,522.214 | 4.7511× |
| GDP per capita, PPP (current international dollars per person) | 85,809.90038463591 | 73,551.9347696836 | 1.1667× |
These results explain the difference between absolute economic scale and output per person. They do not show that either country is more sustainable, that one government caused the difference, or that a specific development program achieved an impact. Preserve full input precision through computation and round only in the displayed report. This example uses a pinned historical snapshot; current values may differ.
Step 9 — Investigate impossible growth or a contradictory trend
Confirm which price concept each year uses. Changes in current international dollars contain changes in price levels and PPP estimates; they are not a defensible real growth rate without appropriate constant-price measures and revisions analysis. For an intertemporal growth claim, source a proper constant-price series or document a separate approved deflation method. Do not repair a nominal-real mismatch with a display-only label edit.
Step 10 — Verify provenance, role and output parity
Trace every displayed number back to the source URL, source version/date, row, indicator definition, policy revision, calculation and selected member ID. Compare tabular output with the chart, downloaded artifact and public summary using exactly the same filtered run. Separately test that unauthorized users receive no restricted records in direct responses, error messages, search results or exports. Never use a successful display or export as evidence that publication approval occurred.
1. Read-only reproduction using the companion dataset
The downloadable companion includes a frozen eight-row WDI dataset (two countries × two years × two indicators), plus two offline Python diagnostics. They analyze the CSV only; they do not contact GIC, modify WordPress, or perform production writes. Execute inside the unpacked package:
python3 validate_cross_country.py world_bank_undata_ppp_2023_2024.csv
python3 developer_preflight.py world_bank_undata_ppp_2023_2024.csv
python3 -m unittest -q test_cross_country_validation.py test_developer_preflight.py test_troubleshooting_article.py
Expect the original fixture to pass. Change copies of it to validate refusals for one missing country, duplicate keys, mixed source snapshots, impossible/negative or nonfinite values, incorrect units, altered published values and insufficient membership. Retain the original file hash; never “correct” an official source file in place to make a test green. All tests here are offline fixtures, not live deployment evidence.
2. Common diagnostic decisions
| Finding | Disposition | Required evidence before reopening |
|---|---|---|
| Less than two eligible countries | BLOCK bilateral comparison | Member and exclusion audit; corrected source or explicit revised scope |
| Different WDI indicator codes or price conventions | BLOCK combined ranking | Reconciled measurement definitions and recomputation |
| Different publication vintages | HOLD until pinned, or label as separately versioned comparison | Source edition/revision evidence and documented sensitivity |
| Matching units but different populations | REVIEW before claim | Population definitions, denominator analysis and exclusion rationale |
| Recalculated ratio differs beyond declared tolerance | BLOCK figures | Exact numerical inputs, formulas and independent rerun |
| All calculations agree, but causal language appears | BLOCK causal claim | Suitable causal study design and independent scientific review |
| Unauthorized disclosure or approval mismatch | CONTAIN distribution | Access review, incident decision, authorized new release |
3. Source-reviewed GIC implementation boundary
In the pinned v2.0.0 source, python/global_impact_analysis.py implements the analysis repository (format v1.7.0). Comparison sets support explicit policies and retain included members, exclusions and warnings. docs/comparison-governance.md states that comparable units do not automatically establish comparable populations or methods; docs/unit-governance.md describes same-dimension conversions. The source also shows that cross-member period equality is not independently enforced in the final set-assembly loop, so an external preflight should verify it before publishing a cross-country conclusion. These are findings from a pinned source revision, not a live product security audit.
The reviewed module does not automatically derive PPP conversion rates or population-adjusted denominators from economic source data merely because a member uses an international-dollar display label. The comparison author must provide appropriately normalized, source-grounded indicator values; site-specific controls and APIs are deployment dependent.
4. Access, retention and ethical safeguards
For ordinary national macroeconomic aggregates, consent to process individual participant data is usually not the analytic issue; source licensing, attribution, permitted redistribution and accurate interpretation still matter. A comparison using participant, workplace, health or beneficiary subgroups requires a separate lawful basis, minimization, retention schedule and disclosure check. Validate workspace and tenant authorization independently: the mere presence of a workspace ID or a user role is not evidence of an effective access-control test.
Keep redacted logs, error identifiers, incident timestamps, source hashes and decision records according to the organization’s retention policy. Do not publish raw private case materials, secrets, full bearer tokens or small-cell data in a public bug report.
Resolution
Choose the least destructive intervention that fixes the first failing stage. Rebind the correct country/indicator/period, capture a new source revision, revise the governed comparison policy, correct denominator documentation, or rebuild the analysis from the pinned inputs. Where data are incomplete, publish a limitation statement or withdraw the comparison rather than inventing replacement observations. Never delete historical exclusions or audit events to make an output appear complete.
- Contain: Restrict affected sharing or publication if confidential, materially misleading, or not approved.
- Preserve: Store original inputs, source hashes, prior run results, warnings, and correction rationale in the approved audit location.
- Repair: Change source records through versioned workflows and change policies through authorized revisions. Preserve the superseded result and linkage to its successor.
- Recompute: Re-run independent and application-specific checks from frozen eligible input sets. Produce the same country set, values and limitations across table, chart and export.
- Review: Require a second analyst or reviewer for scientific and publication claims; reapprove when the underlying subject hash or released content changes.
- Close: Record responsible owner, evidence location, tested release, unresolved limitations, decision, and whether public corrections or withdrawals were required.
Verification
Do not mark an incident resolved until the following checks are supported by a retained test result. An offline fixture pass and a deployed application pass must be separately recorded.
| Acceptance ID | Acceptance condition | Default state |
|---|---|---|
| CC-TR-01 | Both requested country codes are present exactly once for each selected indicator/year | Offline example testable |
| CC-TR-02 | Same source edition, reference period, indicator definition and compatible units | Offline example testable |
| CC-TR-03 | Missing, partial, superseded and excluded records disclosed; no zero substitution | Staging NOT RUN |
| CC-TR-04 | Native valid flag does not bypass two-country eligibility gate |
Source finding; staging NOT RUN |
| CC-TR-05 | 2024 total PPP ratio approximately 4.751067; per-capita PPP ratio approximately 1.166657 | Offline example testable |
| CC-TR-06 | Independent arithmetic matches the displayed chart, table and export within recorded precision | Staging NOT RUN |
| CC-TR-07 | Wrong-tenant, unsigned, unauthorized, withdrawn and stale-publication probes reveal no private information | Staging NOT RUN |
| CC-TR-08 | Interpretation does not imply causal superiority, sustainability ranking or unreviewed policy impact | Editorial/independent review pending |
| CC-TR-09 | Original and corrected revisions, reviewer decisions, and issue resolution remain traceable | Staging NOT RUN |
Failure condition: If the comparison still has one eligible country, mismatched concepts, missing source lineage, an unexplained denominator, or an unapproved public claim, retain the incident as open. A reported PASS for the local Python validator cannot substitute for the application-specific acceptance matrix.
5. Escalation and handoff
Send the owner a concise incident packet: (a) exact symptom and reporting impact; (b) workspace/comparison IDs in the private case only; (c) input snapshot and checksum; (d) indicator definitions and year; (e) period and missing/partial-data policies; (f) included/excluded members; (g) independently computed figures; (h) a redacted reproduction and expected/observed outcomes; (i) suspected first failing stage; (j) security/disclosure classification; and (k) proposed rollback, withdrawal or governance decision. Escalate privacy or authorization leaks via the security/incident process rather than the public technical discussion.
6. Known limitations
This article does not certify a current GIC user interface, installed version, endpoint, role matrix, or tenant-isolation behavior. It uses an archived 2026-02-25 UNdata/WDI snapshot; published series may be revised and readers should not use the archived values as a current economic forecast. The diagnostic scripts are research-side checks, not native GIC API clients. For national accounts, PPP GDP per capita is not median household income, distributive welfare, a sustainability index, or a causal impact measure. Cross-country validity needs separate subject-matter assessment even when every structural test passes.
7. References and release evidence
- World Bank, GDP, PPP (current international $), indicator NY.GDP.MKTP.PP.CD. WDI definition and source metadata; historical working data via UNdata snapshot, 2026-02-25.
- World Bank, GDP per capita, PPP (current international $), indicator NY.GDP.PCAP.PP.CD. WDI definition and source metadata.
- UNdata, World Development Indicators country records: United States total GDP PPP and Germany total GDP PPP; companion CSV preserves the selected snapshot and per-capita references.
- Global Impact Catalyst, analysis source implementation, pinned commit
e75808a0aa272656b1fdbacd2491c30fd6b987dc. - Global Impact Catalyst, comparison governance and unit governance.
- Global Impact Catalyst, v2.0.0 release documentation; source-reviewed, not installed-version verification.
Related knowledge articles: Apply Cross-Country Comparison; Validate Scientifically Cross-Country Comparison; Developer Reference for Cross-Country Comparison. These companion titles identify editorial relationships, not verified live links.
