Worked Examples
Developer reference for attribution and additionality — Global Impact Catalyst
Examine attribution and additionality in Global Impact Catalyst through its canonical impact contracts, evidence provenance, measurement models, causal-claim eligibility rules, and publication governance. This source-reviewed developer reference provides reproducible calculations, counterfactual assessment procedures, negative tests, and implementation boundaries that distinguish observed progress from scientifically defensible intervention-caused outcomes.
Application: Global Impact Catalyst
Article: Developer reference for attribution and additionality
Article type: Developer Reference / Impact Evaluation / Claim Governance
Source-reviewed package version: 2.0.0
Canonical contract: 1.1.0
Database schema: 12
Source commit: e75808a0aa272656b1fdbacd2491c30fd6b987dc
Review status: Source-reviewed; offline synthetic QA; staging/production not run
Estimated reading time: 27–33 minutes
1. Goal and verification boundary
Determine whether an impact claim describes an observed change, progress toward a target, a contextual comparison, plausible contribution, or a defensible intervention-caused effect. The central issue is attribution and additionality: what would have happened without the intervention, how competing explanations were handled, and how much of the claimed benefit remains after legitimate adjustments. A passing software validation, governance approval, or signed publication does not by itself answer these questions.
Source review: GitHub repository Content-Catalyst-LLC/global-impact-catalyst, pinned commit e75808a0aa272656b1fdbacd2491c30fd6b987dc. Documented package/plugin version 2.0.0; canonical calculation/contract version 1.1.0; SQLite database schema 12. The code, tests, migration definitions, and documentation were inspected; installed WordPress version, authenticated staging sessions, and production database records were not inspected. The scientific methods below include proposed reviewer checks distinguished from repo-native behavior.
Use this reference for impact evaluation and public-interest reporting, not as a substitute for a prespecified causal study, research ethics review, carbon accounting methodology, or third-party assurance.
2. Current architecture and source map
| Layer | Verified repository path | Responsibility |
|---|---|---|
| Canonical facts and claims | python/global_impact_core.py | Normalizes input, derives progress, enforces claim-type eligibility. |
| Canonical JSON Schema | schemas/global_impact_contract.schema.json | Versioned facts, derived metrics, validation, claim, review and boundaries. |
| SQLite persistence | python/global_impact_repository.py | Snapshot, revision, autosave, source versions, audit and evidence chain. |
| Measurement | python/global_impact_measurement.py | Aggregate observations, factors, contribution notes and portfolios. |
| Comparison and uncertainty | python/global_impact_analysis.py | Benchmarks, scenarios, comparison rules, uncertainty and sensitivity. |
| Review and publication | python/global_impact_review.py | Assignments, quality rubric, approvals, corrections, draft and withdrawal gates. |
| Institution and workflows | python/global_impact_platform.py | Institution permissions, pathways, workflows and platform snapshots. |
| Public/workspace boundary | python/global_impact_integration.py | Snapshot-based public publication and key-scoped workspace resources. |
| WordPress interface | wordpress/global-impact-catalyst-demo/global-impact-catalyst-demo.php | Public stateless demo and protected editing/rest interfaces. |
| Regression evidence | tests/test_core.py | Deterministic canonical gate tests. |
These components are implemented source modules, not promises of a deployed service. app/main.py supplies a Python application-facing wrapper; it is not evidence of a deployed FastAPI HTTP server or a specific production hostname. WordPress REST endpoints are registered under global-impact-catalyst/v1; host-level routing and authorization still require runtime verification.
3. Operational meaning: observation, attribution, contribution, additionality
| Term | Question answered | Permissible conclusion |
|---|---|---|
| Observed change | Did a measured indicator change between dates? | Descriptive; changes may have external causes. |
| Progress to target | How far does the observed level sit between baseline and target? | Performance arithmetic, not intervention effect. |
| Comparison | How do eligible groups, periods or benchmarks differ? | Contrast with declared matching and exclusions. |
| Contribution | Is there a credible mechanism and supporting/contradictory evidence? | Plausible causal pathway without exclusive attribution. |
| Attribution | What portion would differ absent the intervention? | Requires justified identification strategy and uncertainty. |
| Additionality | What benefit exceeds a defensible without-project baseline? | Depends on counterfactual, eligibility, boundaries, time and adjustments. |
Attribution and additionality overlap but are not interchangeable. Attribution asks who or what caused an effect; additionality asks whether the benefit exceeds what otherwise would have occurred under an explicit baseline scenario. For a carbon-removal or emissions-reduction program, eligible net benefit may require leakage, project emissions, rebound effects, permanence, uncertainty and double-counting controls beyond an ordinary difference-in-differences estimate.
Repository boundary: the inspected canonical engine has fields for claim_type, design_type, comparison_basis, contribution_rationale and causal_design. It does not implement a separately named additionality metric or a model that automatically identifies the counterfactual. The sample study packet supplied with this article is an independent review aid, not a shipped GIC contract.
4. Canonical data lineage and version identity
Entered fields become a canonical global_impact_contract v1.1.0. The root separates facts from derived, governance, provenance and validation. A record has record_id, created_at, updated_at, lifecycle_status and a generator fingerprint. Entity IDs follow the pattern gic-<entity>-<16-hex>. The deterministic ID scheme is a reproducibility mechanism, not global proof of uniqueness across all independently authored inputs.
Within facts, the chain is workspace → initiative → goal → outcome → indicator → baseline/current observation/target → source/method/population/geography/budget. Derived metrics and claim eligibility are computed from those facts. A saved contract is retained as a JSON snapshot, with indexed projections and revisioned updates in SQLite. New saved revisions can require an expected_revision, rejecting stale updates through OptimisticConcurrencyError. An autosave is not an approval or a publish action.
Relevant schemas: schemas/global_impact_contract.schema.json and schemas/global_impact_workspace_bundle.schema.json; migrations: migrations/001_core_repository.sql through migrations/012_connected_public_interest_impact_intelligence_platform.sql.
5. Claim eligibility gates implemented today
The validate_input() function in python/global_impact_core.py implements deterministic claim rules. The following are exact rule IDs and conditions from the repository:
| Claim | Required evidence (source rule) | Interpretation |
|---|---|---|
| Comparison | GIC-CLAIM-COMP-001/002: eligible comparison-capable design and named basis |
No unsupported benchmark or group statement. |
| Contribution | GIC-CLAIM-CONTRIB-001: rationale present; -002 cautions monitoring-only |
Mechanism and other contributors require human appraisal. |
| Causal | GIC-CLAIM-CAUSAL-001, GIC-CLAIM-CAUSAL-002, GIC-CLAIM-CAUSAL-003, GIC-CLAIM-CAUSAL-004: quasi-experimental or randomized design, causal-design description, high declared confidence, reviewed/published state |
Necessary eligibility checks, not causal identification proof. |
| All stronger claims | GIC-CLAIM-001: exact statement must exist |
Review actual public wording. |
| Input validity | GIC-REQ-001, units, periods, target and direction checks |
Structural correctness is not research validity. |
Crucially, the engine checks declared design metadata, rather than independently testing whether randomization actually happened, treated and comparison samples are exchangeable, attrition is ignorable, exposure timing is correct, or parallel trends hold. A claim can pass eligibility while the study remains biased. validation.valid = true means no blocking structural/semantic errors were found. It does not certify attribution or additionality.
6. Calculations: progress must not be reported as effect
The canonical direction-aware target progress is:
Higher is better: 100 × (current − baseline) / (target − baseline)
Lower is better: 100 × (baseline − current) / (baseline − target)
The repository computes absolute_change, percent_change_from_baseline, progress_to_target_percent, remaining_gap, optional cost_per_beneficiary and a documentation-oriented data_quality_score. It uses decimal half-up rounding in exported results. Equal baseline and target values trigger GIC-TARGET-001. The quality score awards points for declared source, method description, confidence and review status; it is not statistical quality or independent assurance.
Counterexample: a community retrofit pilot reports a monthly bill reduction of USD 18 from a zero-reduction baseline toward a USD 30 target. Progress is 60% (18/30). That does not demonstrate that the pilot caused USD 18 in savings. A neighboring population might also have benefited from weather or tariffs.
7. Research design: define the estimand before coding
For an outcome study, preregister an estimand such as the average treatment effect on treated units over a named post-exposure window. Specify eligibility, intervention timing, control selection, unit of analysis, measurement instrument, exclusions, missing-data treatment, temporal aggregation, and standard errors. Record how participation differs from assignment and whether spillovers or interference are likely. Use consent, appropriate privacy governance, and authorized aggregate data only.
Assign a design tier before drafting the claim: monitoring or before/after can describe change; a legitimate comparator may support comparison; contribution analysis can triangulate a mechanism; quasi-experimental or randomized studies may support causal inference when identification assumptions and actual diagnostics hold. Stronger design labels entered into metadata cannot compensate for missing evidence. Keep competing explanations, such as seasonality, price changes, regression to the mean, selection bias, displacement, and funding substitution, visible.
8. Worked synthetic difference-in-differences example
All numbers in this section are fictional. The outcome is monthly energy cost in USD per household; lower is better. Treated households move from USD 100 to 82. Comparison households move from USD 100 to 94. The treated change is −18, the comparison change is −6, so the difference-in-differences estimate in raw cost units is −12. Interpreted as savings, the effect is +12 USD per household per month conditional on identification assumptions.
treated_pre, treated_post = 100.0, 82.0
comparison_pre, comparison_post = 100.0, 94.0
did = (treated_post - treated_pre) - (comparison_post - comparison_pre)
savings_effect = -did # lower monthly costs are desirable
leakage_allowance = 2.0 # illustration; must have independent basis
net_illustrative_benefit = savings_effect - leakage_allowance
assert did == -12 and savings_effect == 12 and net_illustrative_benefit == 10
print({"did_usd_per_month": did, "net_illustration": net_illustrative_benefit})
This does not make the net USD 10 figure additional or attributable. Difference-in-differences rests on assumptions including plausible parallel trends and no uncontrolled intervention spillover, which cannot be tested with only the two time points shown. The leakage allowance is declared but not empirically estimated. The separate diagnostic package models this example and always labels it causal_estimate=false and certified_additionality=false.
9. Counterfactual and additionality assessment protocol
For each proposed impact claim, preserve a review packet containing: (a) estimand and intervention dates; (b) without-intervention baseline justification; (c) treatment and comparison populations; (d) source and method versions; (e) pre-intervention equivalence diagnostics; (f) possible confounders and controls; (g) sensitivity and missingness tests; (h) possible displacement/leakage; (i) overlap, double-counting and funding-substitution controls; (j) duration and persistence assumptions; (k) competing credible baseline scenarios; and (l) named independent reviewer decisions.
For greenhouse-gas mitigation or removal, use an applicable external project methodology before determining what qualifies as a baseline, eligible additional activity, leakage, or net credited quantity. Do not assign climate-credit eligibility using a generic social-impact estimator. The GHG Protocol Project Protocol and ISO 14064-2:2019 describe project/baseline accounting approaches. They are external methodological references, not integrated GIC validation modules.
10. Measurement repository and alternative explanations
python/global_impact_measurement.py stores time-indexed aggregate observations with states complete, missing, late, revised, or partial. Revision chains preserve superseded observations. The functions add_external_factor() and add_contribution_note() can record competing explanations, contribution context, and evidence references. Aggregated beneficiaries use defined reach, counting method and overlap policy; person-level records are not the intended repository model.
Include unit, denominator, covered population, comparison population, period, eligibility, geography, effective observation version, exclusions and data state in every exported analysis table. Missing records must not be silently converted to zeros. If treated and comparison cohorts have different dropout rates or different baseline definitions, require a reviewer decision before calculating and publishing a contrast.
11. Registry, baseline, target, and formula governance
The indicator registry in python/global_impact_registry.py supports versioned units, indicator definitions, methods and baseline/target models. Baseline model kinds include point, average, rolling, benchmark, and modelled; target types include absolute, range, relative, trajectory, and formula. The restricted gic-expression-1.0 parser permits declared numeric variables and arithmetic; it is not an unrestricted Python execution interface.
An indicator baseline used for progress measurement is not automatically a counterfactual baseline for attribution. A modeled no-project scenario must preserve its own design assumptions, fitted parameters, provenance, calibration window, validation sample, revision, and uncertainty. Reject comparisons in incompatible units or incomparable populations unless a declared conversion or controlled normalization is justified. Test conversions and changes to registry bindings so old publications do not silently adopt a new model definition.
12. Benchmark comparisons, scenarios, and uncertainty
python/global_impact_analysis.py implements compare_to_benchmark(), comparison-set policy guards, evaluate_scenario(), apply_uncertainty() and run_sensitivity_analysis(). The comparison policies govern period overlap, geography, population, missing and partial data, and compatible unit conversion. Scenario models are conditional calculations, not outcome forecasts. Absolute, relative, explicit-bound and combined root-sum-square uncertainty models describe the supplied model assumptions; they are not automatically defensible frequentist confidence intervals.
Statistical inference requires an uncertainty procedure aligned with sampling and treatment assignment (e.g., cluster-robust standard errors for cluster-treated units, design-aware randomization inference, or an appropriate bootstrap). Report denominator changes, attrition, subgroup multiplicity, pre-trend diagnostics, timing/placebo tests, sensitivity to alternative controls, and confidence limits as applicable. Do not put arbitrary uncertainty labels from a planning scenario onto an observational effect estimate and call it a validated 95% interval.
13. Evidence, contradictions, provenance and reproducibility
python/global_impact_repository.py supports sources, immutable source versions with SHA-256 checksums, evidence excerpts/notes, dataset metadata, directed provenance edges, and link_claim_evidence() relationships of supports, contradicts, qualifies or context. evidence_chain(initiative_id) exports a linked evidence chain with missing-version, orphan-link and contradictory-link summaries. Save which source version, indicator version, method version and transformation produced every claim component; retain contradictory evidence rather than deleting it.
Reviewers should reproduce both source checksum validation and the numerical estimate from supplied authorized inputs. A matching checksum verifies bytes, not study design, measurement accuracy, evidence representativeness, authorship, permission to republish, or truth. If an export refers to restricted material, publish an authorized redacted summary and keep access-controlled evidence references private.
14. Reviewer independence and public release gates
python/global_impact_review.py implements assignments, review comments, submitted quality assessments, approval decisions, immutable revisions, corrections, publication and withdrawal. publish() requires an approval decision for the subject, a submitted quality score above threshold, no open correction, and a subject hash that still matches the draft publication. Content edits after draft creation block publication until a new draft is prepared. Withdrawal records a reason and event rather than deleting history.
These controls protect publication-process integrity. They do not test randomization, source trust, causal identification or a carbon methodology. A causality or additionality review should therefore require a named methodological reviewer, documented conflict-of-interest declaration, actual model diagnostics and clear sign-off on each quantitative claim, separate from the software approval state. If claims are exported to public pages or downstream systems, retain the limitations and correct claim type.
15. Access boundaries, tenant isolation and public projections
Platform v2.0.0 tracks institutions, member roles and institution-to-workspace relations. check_platform_permission(institution_id, principal_id, permission, workspace_id=...) checks active membership, role/explicit permissions and active workspace link. This is an application-layer rule, not by itself proof of end-to-end row isolation at every repository method, WordPress endpoint or connected system. Test a distinct institutional identity against both authorized and unauthorized workspace resources.
WordPress repository/studio routes require authenticated editing capability and nonce checks; API-client workspace reads use key scopes and optional workspace binding. Public public_publication() returns approved current snapshot-bound data and hides repository-internal sources and reviews. Verify with anonymous, editor, reviewer, institution member, revoked key and cross-workspace principals. Do not infer that a successful save or key possession constitutes review authorization. Protect public embed projections, exports, caches and logs against private evidence excerpts and personal records.
16. Actual API surfaces: do not invent endpoints
The checked WordPress plugin registers the namespace global-impact-catalyst/v1 with routes including /records, /evidence-chain/{initiative_id}, /observations, /approval-decisions, /publications, /publications/{publication_id}/publish, /analysis-benchmarks, /analysis-scenarios, /public/initiatives, /public/publications/{id}, /workspace/{resource}, and /platform-repository. Route presence in source is not proof of live reachability or correct response codes.
There is no source-confirmed endpoint specifically named /attribution, /additionality, or /counterfactual-estimates. Proposed future study packets must live in separately versioned extension contracts and should not be labeled an existing REST operation. If an implementation adds these routes, require explicit migration, schema validation, authorization and release tests.
17. Reproduce the shipped claim-validation gates
Clone the reviewed public repository and install its development dependencies in a disposable Python environment. The following commands are from the project’s stated validation workflow; the pinned checkout ensures a stable comparison:
git clone https://github.com/Content-Catalyst-LLC/global-impact-catalyst.git
cd global-impact-catalyst
git checkout e75808a0aa272656b1fdbacd2491c30fd6b987dc
python3 -m venv .venv
. .venv/bin/activate
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 tests/test_analysis_scenarios.py tests/test_connected_platform.py
python3 scripts/check_contracts.py
Then run this repository-native probe (provided in the accompanying developer archive). It loads four actual canonical fixture inputs, invokes the real input_from_dict, validate_input, validation_result and build_impact_contract, and verifies each fixture’s expected eligibility and fingerprint. It neither writes to nor requires the SQLite repository:
python3 /path/to/package/scripts/probe_gic_checkout.py --repo "$PWD"
# Expected: JSON summaries for 09-contribution-blocked,
# 10-causal-blocked, 11-causal-eligible, 15-descriptive-observation
Repository-native tests were not executed in this editorial preparation environment, because the tool environment could inspect the GitHub repository but could not clone GitHub into the local runner. They remain external acceptance checks.
18. Independently reproducible additionality review example
The developer ZIP includes a separate sc-gic-attribution-review/1.0 independent proposed packet, a standard-library-only Python checker and two synthetic fixtures. It is not the repository’s canonical schema, a deployable GIC plugin, or a real intervention study. It checks missing counterfactuals, underdocumented confounders, unsafe public fields, publication approvals, nonfinite measurements, incompatible claims, leakage, duplicate counting adjustments and interval coherence, then calculates the illustrative difference-in-differences contrast.
python3 scripts/attribution_gap_validator.py fixtures/clean_synthetic.json \
--report clean_report.json
python3 scripts/attribution_gap_validator.py fixtures/adverse_synthetic.json \
--report adverse_report.json # intentionally exits 2
python3 -m unittest discover -s tests -v
For the clean synthetic fixture, the output includes difference_in_differences=-12, direction_aligned_effect=12, and net_after_declared_deductions=10, expressed as USD per household per month. It explicitly reports causal_estimate=false and certified_additionality=false. A passing packet means the packet is structurally complete under this extra reviewer policy, not that its assumptions are satisfied.
19. Negative controls, counterexamples and adversarial checks
| Case | Construct deliberately | Required result |
|---|---|---|
| No counterfactual | Remove counterfactual_basis |
Block attribution/additionality promotion. |
| Before–after called causal | Set causal claim with before_after design |
Canonical rule GIC-CLAIM-CAUSAL-001 blocks. |
| Unsupported design confidence | Keep confidence=medium for causal claim |
Rule GIC-CLAIM-CAUSAL-003 blocks. |
| Confounder omitted | Do not record tariff change or selection bias | Independent methodological review fails. |
| Missing source version | Link claim to an inaccessible or unversioned source | Provenance gap flagged and release reviewed. |
| Conflicting evidence | Add a contradicts link |
Evidence chain retains contradiction, not automatic deletion. |
| Unreviewed rewrite | Change subject after publication draft created | Publication blocked on changed content hash. |
| Cross-workspace access | Query workspace B using workspace A key | 401/403 as documented for route, no private payload. |
| Unapproved public view | Publish without workflow approval | No approved public projection. |
| Sensitive export | Insert private identifiers in public projection | Independent publication screening rejects. |
| Unjustified interval | Print an interval not produced by an uncertainty method | Not accepted as a calibrated confidence interval. |
| Duplicate credits | Use same outcome in overlapping portfolios | Deduct or reject under explicit overlap policy. |
Construct and execute negative cases on synthetic local/staging data; do not use real private participant information, production API tokens or live tenant resources to demonstrate an access defect in a public ticket.
20. Quantitative study quality and claim calibration
Document the population at risk and the actual denominator at every time point, including sample selection, survey nonresponse, missing values, deduplication, exposure definition, spillovers and clustering. The observed mean difference and effect interval should be reported together. For binary outcomes, distinguish absolute risk difference from percent relative change; for counts, report population-standardized rates where appropriate. A statistically small p-value does not establish that a difference was caused by the intervention when identification assumptions fail.
Report at minimum: sample sizes by arm/time, treatment timing, pre-trend or placebo evidence, covariate balance where relevant, effect direction and unit, estimator, uncertainty calculation, material confounders, sensitivity range and omitted-case rationale. When an independent assessor cannot establish a defensible no-intervention baseline, downgrade the statement to a descriptive observation or qualified contribution claim. Never let software quality score, publication timestamp or an institutional label substitute for this assessment.
21. Release-readiness acceptance matrix
| Gate | Evidence required | Status here |
|---|---|---|
| Source/code identity | Pinned commit and versions from repository | SOURCE REVIEWED |
| Canonical claim behavior | Project tests and fixture outcomes from user checkout | NOT RUN HERE |
| Independent packet checks | Synthetic checker and negative tests | RUN LOCALLY |
| Study design fitness | Protocol, sample, counterfactual and reviewer decision | NOT ASSESSED |
| Rights and privacy | Source licensing, participant authority, public projections | NOT ASSESSED |
| Staging tenant isolation | Authentication, permissions and denied access traces | NOT RUN |
| Publication/withdrawal | Hash, approval, correction, cache, private data tests | NOT RUN |
| Statistical reproducibility | Dataset, code, environment hash, intervals, sensitivity | NOT ASSESSED |
| Additionality / assurance | Applicable external method and independent review | NOT VERIFIED |
The attached staging matrix is a test-plan artifact, with every row marked NOT_RUN. No source inspection should be mistaken for deployment acceptance. A publication may go forward with a lower-strength descriptive claim, while an unsupported causal or additionally credited claim must not be represented as verified.
22. Reporting boundary and public language
Safe descriptive example: “The program cohort’s recorded monthly energy bill was 18 USD below the baseline value during the observed reporting window; external contributors were not isolated.”
Qualified comparison example: “Under the stated comparison specification, the change in treated households differed by 12 USD per month from the change in comparison households; this is conditional on the study’s identification assumptions.”
Do not publish without sufficient evidence: “Global Impact Catalyst proved that the intervention generated 12 USD of additional savings per household each month,” or “verified additional carbon credits.”
Use a transparent limitations statement in HTML, downloads, embedded cards, API envelopes, JSON-LD, institutional dashboards and downstream integrations. Approval of record publication is separate from consent, copyright authorization, evaluation of bias, causality, and any external verification or certification.
23. Troubleshooting and recovery of questionable claims
If a published causal or additionality assertion is unsupported: (1) preserve the exact snapshot, source hashes, revision ID and public wording; (2) identify the claimed estimand and missing counterfactual; (3) restrict or withdraw the inaccurate claim using the existing controlled publication workflow, not direct deletion of audit history; (4) correct the underlying evidence, method or assumptions with source-version references; (5) regenerate a new contract and review evidence; (6) rerun canonical and independent tests; (7) obtain a new approval and publication draft bound to the corrected hash; and (8) recheck public caches, API responses, downloadable artifacts and downstream recipients. Use the project’s withdrawal and revision procedures; do not rewrite an immutable source-version record in place.
Where cross-institution access or a private source is exposed, contain the affected endpoint and follow the site’s incident handling procedure before public disclosure of technical details. Where only a statistical issue exists, adjust claim strength and attach the correction explanation. Record who made the decision and why.
24. Technical references and provenance
Primary implementation evidence: README.md; docs/claim-governance.md; docs/validation-rules.md; docs/methodology.md; docs/evidence-chain.md; docs/program-measurement.md; docs/review-quality-revision-workflow.md; docs/publication-controls.md; docs/public-api.md; docs/connected-public-interest-impact-intelligence-platform.md; tests/test_core.py; tests/test_review_workflow.py; tests/test_connected_platform.py; contracts/fixtures/11-causal-eligible.json.
External methodological context: GHG Protocol, Project Protocol; ISO 14064-2:2019, Greenhouse gases — Project level; OECD, Applying Evaluation Criteria Thoughtfully. These sources inform reviewer design standards; they are not built into the current software.
Verification statement: GitHub source and examples reviewed at commit e75808a0aa272656b1fdbacd2491c30fd6b987dc; synthetic independent tests executed locally; repository-native fixture execution, WordPress staging acceptance, independent causal assessment and production verification remain outstanding. Nothing in this document should be read as a guarantee of additionality or attribution.
