Troubleshooting
Troubleshoot attribution and additionality — Global Impact Catalyst
Diagnose Global Impact Catalyst attribution and additionality failures by reconciling observed progress, counterfactual assumptions, confounders, source provenance, causal-claim eligibility, and publication governance. This source-reviewed troubleshooting guide provides reproducible diagnostics, read-only repository checks, and controlled recovery procedures that distinguish scientifically defensible intervention effects from unsupported impact claims.
Application: Global Impact Catalyst
Document type: Developer troubleshooting / scientific evidence and governance reference
Source baseline: repository commit e75808a0aa27
Package: v2.0.0; SQLite schema 12; canonical calculation contract v1.1.0; review workflow v1.6.0; analysis repository v1.7.0; integration repository v1.9.0.
Reading time: approximately 24–29 minutes.
Scope: Attribution describes why change occurred; contribution describes plausible influence; causal identification estimates effects under stated assumptions; additionality asks whether the outcome would have occurred without the intervention. These are related but not interchangeable. This guide shows how to diagnose a claim that is more assertive than its data, methodology, review, or published evidence can support.
1. Goal
Restore a technically and scientifically defensible relationship between a recorded observation, its baseline, a comparison or counterfactual, its provenance, its claim wording, and its publication state. A successful repair must not merely suppress a validation error or change the claim to reviewed; it must preserve an auditable account of which facts were measured, what analysis was performed, what could have happened without the intervention, which confounders were addressed, and which questions remain unanswered.
The default safe response to a failing causal or additionality check is to downgrade the claim to a descriptive observation or progress-to-target statement until a qualified reviewer accepts the appropriate study design and evidence. Record prior wording and the rationale for the downgrade rather than deleting the historical claim.
2. Requirements
Use an authorized, preferably isolated copy of the GIC SQLite repository or a sanitized synthetic fixture. Identify the exact workspace and initiative IDs, canonical record_id, contract revision and hash, indicator and unit-version binding, period labels, observation and baseline provenance, claim type, design, confidence, review status, and publication identifier if present.
- Source checkout at the pinned commit or a separately recorded newer commit; Python 3 and optional
pytestto run repository tests. - Read-only access to the relevant contract, evidence chain, measurement repository, methodological documentation, and review history; do not move restricted source bodies into public tickets.
- A qualified methods reviewer to assess the counterfactual. The system’s application-level eligibility rules cannot replace substantive scientific review.
- Approval to take any state-changing action, including rewriting a contract, changing an indicator definition, withdrawing a publication, or correcting an external integration.
Do not assume that an edit_posts WordPress capability, membership record, or service API key is interchangeable with the right to approve a claim. Confirm permissions at each actual enforcement boundary.
3. Symptoms
| Symptom | Likely diagnostic branch | Safe next step |
|---|---|---|
| Observed progress reported as “caused by” intervention | Before/after values treated as a counterfactual | Review claim type and estimate design |
| “Causal claim eligible” despite weak comparison | Metadata gate passed, scientific assumptions untested | Independent methods review; investigate controls and confounders |
| Progress-to-target percentage differs from attributed impact | Two different estimands | Keep separate metrics and denominators |
| Claim has evidence links but is unsupported | Links may be contextual, orphaned, contradictory, or unverified | Inspect evidence chain and source versions |
| “Additional” impact equals gross change | Non-intervention scenario, double counting, displacement or overlap omitted | Define counterfactual and program-specific adjustment ledger |
| Approved publication no longer matches revised contract | Stale content hash or snapshot | Keep public snapshot blocked; create new reviewed draft |
| Workspace export contains restricted details | Scope or export policy mismatch | Contain, preserve sanitized evidence and audit path |
4. Cause
The canonical engine in python/global_impact_core.py calculates absolute_change, percent_change_from_baseline, progress_to_target_percent, remaining_gap, and a documentation/review data_quality_score. It applies structural claim eligibility rules but does not compute a general-purpose intervention counterfactual or a separate additionality estimate. The source-reviewed data_quality_score awards points for source and method documentation, declared confidence, and review state; it does not measure source truth, representativeness, causal identification, or regulatory eligibility.
Common causes include a mislabeled design, inappropriate control group, incompatible denominators or periods, unit confusion, selectively excluded observations, time-varying confounding, treatment spillovers, changes in outcome definitions, incomplete version hashes, and reviewer decisions attached to an outdated snapshot. A formally eligible claim can still fail scientific review.
5. Troubleshooting
- Pin identity and revision. From
canonical_contractsconfirmworkspace_id,initiative_id,record_id,revision,content_hash, andlifecycle_status. Reject a record from the wrong workspace; do not merge histories by title. - Classify the claim. Find
derived.claimsin the canonical v1.1.0 contract. Adescriptive_observationreports what was measured, aprogress_to_target_statementcompares to a target, acomparisoncompares explicit groups, acontribution_statementgives a mechanism, and acausal_claimrequires an eligible design. - Reproduce metrics. Check baseline, target, current value, period, unit, indicator direction, and formula. Compare with
derived.metrics. A match establishes arithmetic consistency, not causation. - Identify the estimand. Specify whose outcome, over which period, under which treatment and no-treatment condition, with what aggregation, attrition, and possible interference. Without this, “additional” is undefined.
- Validate comparison design. Explain how comparison units were selected, why untreated outcome trends are credible, how treatment timing was determined, and how selection, spillovers, and external policy or economic changes were handled.
- Trace provenance. Review source versions and evidence links; preserve contradictory evidence and the corresponding review disposition.
- Verify governance. Examine assessment, approval, corrections, snapshot hashes, public view constraints, API scopes, and affected downstream handoffs.
Record every failure as a typed finding with code, affected record hash (not plaintext private identifiers in a public report), rule or assumption, severity, evidence ID, reviewer decision, and corrective action.
6. Source-reviewed causal-claim rule IDs
The following IDs are implemented by validate_input() in python/global_impact_core.py and described in docs/validation-rules.md:
| Rule | Blocking condition | Remediation |
|---|---|---|
GIC-CLAIM-CAUSAL-001 |
Design is neither randomized nor quasi-experimental | Use defensible design or downgrade wording |
GIC-CLAIM-CAUSAL-002 |
Missing causal-design description | Specify identification, assignment, controls and threats |
GIC-CLAIM-CAUSAL-003 |
Confidence is not declared high | Do not relabel confidence without substantive review |
GIC-CLAIM-CAUSAL-004 |
Claim is neither reviewed nor published | Complete governed review; do not infer from save |
GIC-CLAIM-COMP-001/002 require an eligible comparison design and explicit basis. GIC-CLAIM-CONTRIB-001 requires contribution rationale; GIC-CLAIM-CONTRIB-002 warns about monitoring-only designs. The validation engine does not verify that random assignment really occurred, that a comparator is exchangeable, or that a bias-adjusted effect estimate is reproducible.
7. Reproduce observed change without inferring causality
For a higher-is-better indicator, the canonical progress calculation is (observed - baseline) / (target - baseline) × 100. Lower-is-better uses (baseline - observed) / (baseline - target) × 100. An equal baseline and target produces a validation error, and the engine uses decimal half-up rounding.
Illustrative data: baseline = 20 points, current = 36 points, target = 40 points. The observed increase is 16 points and target progress is 80%. Neither figure is an attributed effect. A different outcome, period, comparator or estimand requires a separate calculation and claim. Never write the progress percentage into an additionality field without a documented methodological basis.
8. Counterfactual failure modes and the difference-in-differences example
Difference-in-differences (DiD) is an independent methodological example provided for troubleshooting; it is not a built-in Global Impact Catalyst additionality estimator. In a simple two-group, two-period design:
DiD = (treated_post - treated_pre) - (comparison_post - comparison_pre)
= (36 - 20) - (22 - 18)
= 16 - 4
= 12 illustrative points
This 12-point comparison-adjusted contrast is meaningful only under appropriate identifying assumptions, including a credible untreated trend, no major interference/spillover, stable measurement, appropriately handled changes in group composition, and defensible uncertainty inference. A pretrend check can provide evidence but cannot prove the unobservable post-intervention counterfactual. A single pre-period cannot establish parallel trends.
For staggered interventions or heterogeneous effects, a naive two-way fixed-effects DiD may be misleading. Use an estimand and estimator appropriate to timing and treatment heterogeneity. For environmental accounting, additionally assess applicable baseline, leakage, overlap, permanence, and regulatory/common-practice tests under the relevant methodology; do not equate a DiD contrast automatically with certified additional climate impact.
9. Diagnose additionality as a separate judgment
Additionality is a claim about what would not have occurred without the intervention. A change can be observed, and a plausible contribution can be documented, even if it is not additional. Establish the project or program boundary, eligibility criteria, counterfactual baseline, other drivers, displacement and leakage mechanisms, policy requirements, existing practice, and overlaps with other programs or claims.
For a climate project under an applicable accounting methodology, a conceptual net expression can be eligible project outcome − counterfactual outcome − applicable project emissions/leakage − overlap or double-counting adjustments. Signs and inclusion rules depend on the indicator and governing methodology; this is not a generic Global Impact Catalyst field or verified calculation.
Do not sum impacts across overlapping beneficiaries, locations, reporting periods, or interventions without explicit overlap resolution. Distinguish financial additionality, environmental additionality, regulatory additionality and common-practice tests when the applicable standard requires them; an outcome-specific causal estimate alone does not establish all of these.
10. External factors, contribution notes, and rival explanations
Global Impact Catalyst does support structured contextual records. python/global_impact_measurement.py implements add_external_factor() and add_contribution_note() with workspace and initiative identifiers; the records preserve alternatives, factors, evidence references, and limitations. Check whether known confounders, weather/seasonality, policy changes, secular trends, parallel initiatives, participant selection, and spillovers were recorded before the claim was reviewed.
These records do not automatically adjust the effect estimator. Merely adding an external-factor label or a contribution note cannot make a before/after result causal. Compare the data-generating process and identification assumptions to the actual analysis, and document unresolved rival explanations as visible claim limitations.
11. Evidence-chain integrity and contradictory records
The v1.3.0 repository has source_records, source_versions, evidence_items, datasets, provenance_edges, and claim_evidence_links. Its evidence_chain(initiative_id) summarizes missing source versions, orphan claim links, and contradictory evidence. Links can be supports, contradicts, qualifies, or context. Inspect a link’s strength; a contextual link must not be presented as direct evidence of a causal mechanism.
Verify that referenced versions were actually captured; that digest checks refer to the exact reviewed bytes; and that the source’s temporal, geographic, and sampling coverage fits the estimand. A SHA-256 match means byte integrity, not that a dataset is unbiased, legally reusable, or true. Preserve contrary findings in both private review and appropriate public limitations.
Review docs/evidence-chain.md and docs/source-integrity.md before concluding a structurally valid evidence chain is scientifically sufficient.
12. Unit, period, baseline, denominator, and observation revisions
Verify common physical dimensions, conversion policy, period overlap, population/denominator alignment, direction, and missingness. python/global_impact_analysis.py includes comparisons with explicit period, geography, population, and unit policies, but default warning or ignore settings can permit context differences to remain unresolved. A benchmark comparison is not a causal estimate.
Review v1.5.0 observation states (complete, missing, late, revised, partial), supersession relationships, and effective-series selection. Never silently replace an old observation or omit partial records to strengthen a result. If the indicator denominator changed over time or between intervention groups, re-estimate using a consistent and documented basis.
13. Review, concurrency, and publication controls
python/global_impact_repository.py stores the entire canonical contract with an integer revision and content_hash. An update can supply expected_revision; a mismatch raises OptimisticConcurrencyError. Autosave is distinct from an explicit durable saved revision.
python/global_impact_review.py requires an approval decision, submitted adequate quality assessment, no open correction records, and unchanged subject snapshot hash before publish(). A draft publication’s hash is bound when the draft is created. If intervening corrections change the content, create and review a new draft; do not bypass the hash check. withdraw_publication() requires a reason and preserves history.
These are governance and integrity controls. They do not certify a study design. A publication may pass workflow requirements yet still need retraction or correction if the underlying causal identification is invalid.
14. Scope, access, retention, and public disclosure
The public API exposes only approved, current publication snapshots under documented conditions. Workspace API clients use scoped API keys and may be limited to a workspace; WordPress repository interfaces use signed-in users and REST nonces with editing capabilities. Confirm the live enforcement for each deployment, and prevent permissions from being inferred from a workspace name or front-end shortcode alone.
Do not place direct identifiers, participant records, private reviewer comments, restricted source excerpts, secret keys, or raw correspondence in public exports, embeds, logs, or support tickets. Source licenses and access rights can be not_recorded, which is not authorization to redistribute. Apply purpose limitation, minimum necessary collection, retention schedules, legal holds, and documented disposal to all copies, caches, backups, and connector deliveries.
See docs/public-api.md, docs/beneficiary-governance.md and docs/security-backup-recovery.md. The package’s synthetic checker flags proposed privacy and authorization conditions but does not verify real identity or consent systems.
15. Read-only repository reconciliation (operator procedure)
The companion read_only_repository_inventory.py opens an existing SQLite file using mode=ro, enables query_only, restricts counts by initiative, and returns aggregate counts, publication status totals and canonical claim types. It does not export source excerpts, actor names, raw contract content, or plain record IDs. Use it only on an approved backup or isolated copy; a read-only SQLite query against a live file does not guarantee a stable snapshot under concurrent writes.
python3 read_only_repository_inventory.py \
--database /path/to/approved-gic-backup.sqlite3 \
--initiative-id gic-initiative-REPLACE-WITH-AUTHORIZED-ID \
--out private_inventory_summary.json
Compare observed table counts with expected project history, focusing on contracts, versions, evidence links, review artifacts, and publications. A count of zero may mean no record, scope mismatch, absent migration, or incomplete export. Inspect private records only through an authorized local process, not public diagnostic output.
16. Reproduce canonical validation in the real repository
From the exact checked-out Global Impact Catalyst repository, use the real Python engine rather than inventing an API. The following commands do not modify the repository, but dependencies must be installed in an approved development environment.
python3 -m pip install -r requirements-dev.txt
PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 python3 -m pytest -q tests/test_core.py tests/test_evidence.py tests/test_review_workflow.py
python3 scripts/check_contracts.py
Useful repository-native regression cases include test_causal_claim_gate_and_eligible_case, test_contribution_claim_requires_rationale, test_contradicting_evidence_is_reported_not_silently_removed, and test_open_correction_and_changed_content_block_publication. Run these against the same source commit as the deployed candidate. Their passing status does not substitute for testing the actual institution or study data.
17. Independent synthetic audit packet and negative controls
The included gic_attribution_checker.py uses a deliberately separate packet schema, sc-gic-attribution-review/1.0. It is not a repository API, installed validation rule set, or proposed migration applied to production. Its purpose is to make reviewer assumptions and invalid states executable and falsifiable.
python3 gic_attribution_checker.py fixtures/clean_synthetic.json \
--out reports/clean_report.json
python3 gic_attribution_checker.py fixtures/adverse_synthetic.json \
--out reports/adverse_report.json
python3 -m unittest -v test_gic_attribution_checker.py
Expected behavior: a clean synthetic reviewer packet yields zero findings; a deliberately malformed record yields typed findings and exit code 2. The synthetic sample uses a treated change of 16 points, a comparator change of 4 points, and an illustrative adjusted contrast of 12 points; the arithmetic alone does not prove additionality.
Negative controls cover fabricated randomized labels, omitted causal methods, non-finite measurements, equal baseline and target, missing comparison values, unsupported assumptions, misreported difference-in-differences, changed units, contradictory evidence, cross-workspace references, unauthorized actors, stale revisions, replay conflicts, missing publication approvals, public identifiers, and unapproved exports.
18. Resolution — restore the claim without obscuring evidence
- Contain: stop only the affected public claim, export, embed, or downstream handoff if necessary and authorized. Preserve the last safe published revision and audit state.
- Reconstruct: create a source-pinned evidence packet including the initial observation, counterfactual assumptions, code or estimators, selection criteria, failures and contradictory evidence.
- Correct: fix factual input, unit, period, population, source association, method version, or analysis. If causal identification cannot be defended, replace “caused” or “additional” with accurate descriptive wording.
- Review: obtain independent methods assessment, targeted QA, and editorial approval. Record reviewer identity in the private audit system and a public-safe review attribution where appropriate.
- Republish: generate a new snapshot and publication draft, confirm hash and approval gates, verify anonymous API and embed views, then release only through the approved workflow.
- Close: attach regression evidence, rollback instructions, change rationale, affected destinations, notification decisions, and residual uncertainty.
Do not rewrite, delete, or forge historical observations, approvals, contradictory evidence, or issued publication snapshots to make a claim appear valid.
19. Verification
Acceptance requires both software evidence and methods evidence. The relevant claim must be consistently defined; its observed values must reproduce; its comparator must match the estimand; its assumptions, confounders, exclusions, uncertainty, and contradictory findings must have an independent review disposition. Confirm that each linked source version and method has a retrievable authorized reference, that all relevant permissions and revision gates are enforced, and that public snapshots expose only approved and current material.
| Acceptance assertion | Required evidence | Failure classification |
|---|---|---|
| Canonical arithmetic reproduces | Input, exact engine version, recalculated derived metrics | Calculation or unit defect |
| Claim wording fits design | Rule IDs, method, estimand, independent review | Overclaim or study design failure |
| Counterfactual is credible | Comparator selection, pretrends, spillovers, robustness | Unresolved causal identification |
| Evidence is traceable | Source versions, link integrity, contradictory records | Provenance failure |
| Publication is governed | Approvals, quality assessment, corrections, snapshot hash | Release-gate failure |
| Public output is minimal | Anonymous surface tests, restricted-data negative tests | Privacy/security incident |
Mark each staging case PASS, FAIL, BLOCKED, or NOT_RUN with its environment, deployed commit, test fixture, reviewer and timestamp. This article has not run live staging or production tests.
20. Error-handling and incident triage
Classify validation exceptions, concurrency conflicts, permission denials, missing evidence, and publication-blocking conditions separately. A validation.valid=true response means only that no encoded error fired. A published state means workflow publication succeeded under the implemented gates. Neither is an independent assurance opinion.
For suspected unauthorized exposure: freeze the affected public artifact or integration through approved controls, preserve minimal redacted evidence, inspect source and destination logs privately, rotate compromised credentials if indicated, and follow the institution’s incident-response and disclosure obligations. Keep remediation scoped to affected records; test restoration and no-repeat behavior before closure.
21. Statistical interpretation and uncertainty boundaries
Do not interpret an arbitrary confidence label, an uncertainty band chosen by an author, or a high quality rubric score as statistical coverage. For a causal effect, state the estimand, estimator, sampling or randomization frame, dependence structure, small-sample treatment, missing-data handling, statistical interval construction and sensitivity of conclusions to violated assumptions.
Report both the raw observed difference and the comparison-adjusted estimate, with units and interval, and distinguish them in every table, chart, API representation, and decision pathway. If plausible alternative model assumptions materially alter direction or size, report that fragility rather than selecting only the favorable estimator.
22. Program versus environmental project: distinct additionality tests
For social programs, the central question may be how the outcome for participants would have differed without the program, subject to selection, measurement and interference. For GHG project accounting, the baseline scenario and additionality may also require program-specific financial, regulatory, common-practice, environmental, leakage and permanence assessments. A generic GIC impact indicator cannot by itself determine the correct standard.
External methodology references for context include the GHG Protocol for Project Accounting and the World Bank DIME evaluation-design handbook. These are external references, not claims that Global Impact Catalyst implements their entire requirements.
23. Staging regression matrix and test ownership
The companion acceptance matrix groups cases by contract validation, comparison eligibility, counterfactual quality, negative controls, source and evidence integrity, actor and workspace scope, optimistic concurrency, publication status, public data minimization, integration replay, and recovery. Cases are proposed for future staging; none may be reported as passed before execution against a deployed candidate.
Assign an application maintainer to repository and REST behavior, an independent evaluator to causal design and counterfactual review, an access owner to security and privacy, an editor to public claim wording, and an operations owner to rollback and recovery. Track the exact deployment image and commit separately from the public repository’s default-branch commit.
24. Source traceability and release/version map
Reviewed source: e75808a0aa272656b1fdbacd2491c30fd6b987dc. Verified interfaces and implementation anchors:
- python/global_impact_core.py —
input_from_dict,derive_metrics,validate_input,build_impact_contract. - python/global_impact_repository.py —
save_contract,link_claim_evidence,evidence_chain,audit_records. - python/global_impact_measurement.py —
record_observation,add_external_factor,add_contribution_note. - python/global_impact_analysis.py —
compare_to_benchmark,create_comparison_set,apply_uncertainty,evaluate_scenario. - python/global_impact_review.py —
record_approval_decision,create_publication,publish,withdraw_publication. - python/global_impact_integration.py —
public_publication,workspace_api_resource,create_platform_handoff. - tests/test_core.py and tests/test_review_workflow.py — repository-defined claim and publication regression tests.
- migrations/001_core_repository.sql, migrations/004_sources_provenance_evidence.sql, migrations/007_review_quality_revision_workflow.sql — SQLite table definitions.
Published package identity in the README: v2.0.0; canonical contract 1.1.0; evidence repository 1.3.0; indicator registry 1.4.0; measurement repository 1.5.0; review 1.6.0; analysis 1.7.0; reporting 1.8.0; integration 1.9.0; production 1.10.0; connected platform 2.0.0. No installation state or current production commit was inspected here.
25. Technical references
- Global Impact Catalyst — Claim Governance — claim categories and eligibility boundaries.
- Global Impact Catalyst — Validation Rules — implemented rule identifiers and severities.
- Global Impact Catalyst — Sources, Provenance and Evidence — versioned material and link semantics.
- Global Impact Catalyst — Review, Quality and Revision Workflow — reviewer and revision controls.
- Global Impact Catalyst — Publication and Withdrawal Controls — snapshot hash and approval conditions.
- Global Impact Catalyst — Public and Workspace API — public projection and scoped API access.
- World Bank, DIME Data Handbook — Research Design — treatment-effect interpretation and DiD assumptions.
- GHG Protocol — Project Protocol — baseline scenarios and GHG project accounting.
Final boundary: This article is a reference for troubleshooting and independent verification. It does not certify specific projects, satisfy external standards, establish a causal effect, or authorize publication.
