Worked Examples
Developer reference for regional disaggregation — Global Impact Catalyst
Implement and validate regional disaggregation in Global Impact Catalyst using governed observations, geographic classifications, scientific data provenance, and defensible statistical methods. This source-reviewed developer reference covers data architecture, secure access controls, evidence-linked visualizations, EPA/CSO environmental records, reproducible testing, and the verification requirements for scientifically defensible regional analysis.
Application: Global Impact Catalyst
Product component: Program Measurement (primary); Indicator Registry and Analysis (related)
Article type: Developer reference
Supported source-reviewed version: 2.0.0 — commit e75808a0aa272656b1fdbacd2491c30fd6b987dc
Last verified installed version: Not established
Scientific data: EPA/CSO, 44 rounded station observations, 2014–2024
Verification status: Source review and offline tests only; staging, independent security and scientific acceptance pending
Estimated reading time: 20 minutes
Summary: Build and evaluate evidence-linked regional disaggregation without converting selected stations into representative regional estimates. This developer reference documents actual GIC measurement and comparison contracts, safe architectural extensions, provenance-to-chart requirements, executable public-data checks, tenant isolation, statistical disclosure controls and staged release acceptance.
1. Goal
Implement or evaluate a regional-disaggregation workflow that exposes meaningful differences between well-defined geographic and population groups without inventing regional representativeness, conflating distinct denominators, or disclosing restricted data. Every reported figure must trace to an authorized input, dated source, method, geographic support, denominator, transformation, reviewer decision, and publication version.
Primary acceptance condition: disaggregated estimates include explicit coverage and privacy limitations, plus an auditable path back to observations and the scientific basis of the comparison. A rendered chart, valid JSON document, or successful repository write is not scientific or editorial approval.
2. Requirements
- Use a controlled dataset, defined indicator, source rights, workspace owner, authorized actors, unit, observation period, valid geographic categories, and defensible denominator.
- Preserve immutable raw evidence, an input checksum, source and method versions, revision links, export classifications, and the disposition of exclusions.
- Enforce workspace and object authorization at every read, write, export, chart, and cache boundary; a tenant identifier from a request is not itself authorization.
- Require a specified spatial support (monitoring station, administrative area, modeled grid, catchment, population cohort) and a stated inference boundary.
- For people-related statistics, obtain an applicable lawful basis, review small-cell and linkage risk, restrict precise coordinates where appropriate, and use a documented retention schedule.
- Execute independent scientific checks and staging acceptance before attributing a published analytical result to installed GIC functionality.
3. Source-reviewed implementation inventory
The inspected repository is Global Impact Catalyst v2.0.0, commit e75808a0aa272656b1fdbacd2491c30fd6b987dc. The repository’s application release incorporates older component contract versions: Program Measurement v1.5.0, Indicator Registry v1.4.0, and Analysis v1.7.0. These identities do not establish the installed WordPress version.
| Area | Source-grounded behavior | Remaining implementation question |
|---|---|---|
| Program Measurement | record_observation() stores time, value, unit, dimensions, denominator, source/method IDs, revision and audit action. |
Does the installed service enforce actor-to-workspace authorization and safe disclosure for each result? |
| Dimension filtering | _validate_dimensions() rejects common direct-identifier keys and nested objects. |
Can inference through small categories, coordinates or joined datasets still expose individuals? |
| Indicator Registry | Definitions, unit conversions, method records and immutable binding versions are documented. | Do exports join the exact version identifiers to every published mark? |
| Comparison analysis | Period, geographic, population and unit guards are available through comparison policy. | How are geographic categories defined, mapped, and approved for spatial inference? |
| WordPress/production | Some WordPress routes and role checks exist in repository source. | A dedicated deployed regional-disaggregation endpoint or complete privacy/coverage workflow is not verified. |
Evidence: program-measurement source; analysis source; indicator-registry documentation; v2.0.0 source release note.
4. Architecture and trust boundaries
A defensible implementation separates five responsibilities rather than rendering private repository objects directly as public chart data:
- Source ingestion: capture original records, checksum, licensing, scope, timestamp and import actor.
- Governed measurement: validate workspace, indicator, unit, period, dimensions, revisions and denominator.
- Scientific transformation: select effective observations, reconcile coverage and comparable methods, compute only permitted aggregates and propagate exclusions.
- Review and publication: require explicit review outcome, approved release snapshot and statistical-disclosure assessment.
- Public projection: serve only allowlisted and independently reviewed fields; never serialize internal notes, private source references or restricted metadata.
These are proposed architectural responsibilities for disaggregation, not proof that an end-to-end GIC execution pipeline already exists.
5. Canonical identity and object model
Actual stored observation fields include observation_record_id, workspace_id, initiative_id, indicator_id, indicator_definition_id, period_start, period_end, period_label, value, unit_id, data_state, revision_of_observation_id, source_id, method_definition_id, dimensions_json, denominator_json, revision and audit metadata.
These data structures are not synonymous with a geospatial feature or a scientifically representative regional estimate. A production extension should separately govern region-code systems, geometry or spatial support, source-version IDs, method-version IDs, coverage observations, suppression rules and publication manifests. Use an opaque, durable identity; do not use a free-text region name as a universal primary key.
6. Regional spatial units and geographic classifications
Choose one geographic vocabulary per computation: an official administrative boundary with a version and valid date, a single station ID, a grid-cell scheme with resolution, or a clearly bounded study area. Persist the geography type and its authority. A label such as “rural” is not sufficient to infer a polygon or resident population.
Store geospatial codes and geometry references separately from human-readable labels; distinguish observation location from the area to which an estimate claims to generalize. A monitoring station can support a station-specific statement without supporting a county-wide or national surface. Geometry updates and classification revisions require either snapshot preservation or explicit remapping, with a reconciliation audit.
7. Input validation and revision discipline
The reviewed record_observation() checks data states, numeric finiteness, required indicator identity, denominator-object type, unit lookup, period order and revision references. It requires a value for non-missing observations and forbids values for missing observations. Revised records must reference a prior compatible initiative/indicator observation. Its dimension validator blocks known direct-identifier keys and nested person objects.
Developer extensions should also reject unknown geographic code systems, mixed granularity, duplicate effective station-year keys, missing source licenses, mismatched units, invalid population denominators, source date reversals, or unapproved region-to-station substitutions. Record all rejected rows and reasons; never silently convert missing values to zero or automatically overwrite prior observations.
8. Source provenance and version resolution
The evidence repository documents separate source and source-version records, hashes and provenance edges. Measurement observations carry source_id and method_definition_id; their existing serialized observation shape is not a guarantee that the exact source-version and method-version identifiers are present in each public chart point. Materialize and verify those joins before releasing data-to-mark evidence.
For every computed mark, record input observation IDs, source version hashes, indicator definition version, method version, transformation code commit, transformation parameters, exclusions, review decision and publication snapshot hash. If lineage cannot be resolved, mark the figure “lineage incomplete” and prevent a verified badge rather than guessing from the latest source version.
9. Coverage, denominators and selection rules
Coverage is multidimensional: spatial (which regions or sites), temporal (which dates and sampling completeness), population (which persons or units), methodological (which instruments and definitions) and governance (which records may be processed or released). Define target frame U and included frame I explicitly; a simple count ratio |I|/|U| is only meaningful when both refer to the same units. Reporting four selected stations is not 100% coverage of Ireland.
Numerators and denominators must measure compatible populations, areas and time windows. For rates and proportions, compute sum(numerator) / sum(denominator) only when the populations are nonoverlapping, the estimand is valid and aggregation is permitted. Do not average regional rates equally unless equal weighting is the stated estimand. For station concentration means without population data, no legitimate national exposure-weighted mean is available.
10. Calculation semantics and reproducibility
Define transformations before computing: group keys, time alignment, effective-revision selection, missingness policy, unit-conversion version, weights, overlap treatment, uncertainty calculation, and rounding. A descriptive station contrast is Δ = value(A) − value(B); a ratio is R = value(A)/value(B) when the denominator is positive. These quantities do not automatically estimate population exposure or regional inequality.
# Pure, synthetic illustration: not a GIC API call.
from decimal import Decimal
records = {"Ennis": Decimal("12"), "Heatherton Park": Decimal("5")}
station_difference = records["Ennis"] - records["Heatherton Park"] # 7 µg/m³
station_ratio = records["Ennis"] / records["Heatherton Park"] # 2.4
# Scope: 2024 published rounded selected-station annual means, not region averages.
Require deterministic sorting, explicitly stated rounding precision and a reproducible execution environment; preserve original input and computed output checksums.
11. Scientific demonstrator: published EPA/CSO observations
The companion CSV contains 44 real published annual PM₂.₅ values: four monitoring categories across 2014–2024 from CSO Measuring Ireland’s Progress 2026, Table 3.5, using EPA data. These are rounded station-based summaries, not representative samples of entire regions. The 2024 published values are 8 µg/m³ for Dublin (Rathmines), 5 for Cork (Heatherton Park), 12 for towns over 15,000 (Ennis), and 8 for rural (Macroom). Source: official CSO table and CSO station and method notes.
| 2024 selected-station category | Station | Published mean (µg/m³) | Allowed interpretation |
|---|---|---|---|
| Dublin | Rathmines | 8 | Published selected-station annual mean |
| Cork | Heatherton Park | 5 | Published selected-station annual mean |
| Towns > 15,000 | Ennis | 12 | Selected example; not all towns |
| Rural | Macroom | 8 | Selected station, not all rural areas |
The Ennis–Cork published-value contrast is 7 µg/m³, ratio 2.4. Those are arithmetic contrasts of rounded station summaries; they are not confidence intervals, causal effects, population-exposure ratios or statistically representative national comparisons.
12. Station continuity, temporal resolution and rounding
CSO background notes identify the rural monitoring location as Longford through 2020 and Macroom from 2021. A model comparing the 2014 rural record with the 2024 rural record must flag a station change. Do not treat those eleven entries as a same-instrument, same-location longitudinal series.
Published values are rounded to whole µg/m³. If ordinary nearest-integer rounding applies, the 2024 printed contrast 12 − 5 = 7 is consistent with an underlying difference roughly between 6 and 8 µg/m³ from rounding alone; this is not a measurement-error or sampling confidence interval. Record what uncertainty is unknown rather than fabricating statistical precision. See official notes.
13. Governed comparison policies
The reviewed analysis component defines period policies (exact, overlap, same_label, ignore) and geography/population policies (exact, warn, ignore). For scientifically consequential comparisons, “ignore” must never be a default that silently defeats context reconciliation. Preserve the caller-selected policy, actual grouping context, guard failures and the disposition of incompatible observations.
Unit convertibility is necessary but insufficient: the indicator definition, sampling method, period and population must also match. Comparisons passing a technical guard are descriptive rather than causal or certified.
14. Identity, authorization and tenant boundaries
For ingestion, analysis, export and publication, resolve the authenticated user and their membership server-side. Verify access to the workspace, initiative, source, method definition, result, and publication snapshot before using any client-provided identifier. Queries that accept an optional workspace_id parameter must not assume that merely supplying a value grants permission. Repeat authorization after asynchronous processing and before retrieving cached outputs.
The reviewed WordPress source includes handlers using the broad edit_posts capability. Source inspection does not establish complete object-level, workspace-level or cross-tenant authorization for an installed service. Use staging accounts from distinct organizations and prove that one cannot enumerate, export, search, or infer another tenant’s records. Log security denials without sensitive payloads.
15. Privacy, statistical disclosure and public projection
EPA ambient-air station values here are public environmental statistics and do not contain identified participants. A general geographic disaggregation system can nonetheless expose people through small cells, sparse disease counts, joined locations, repeated queries or differencing. Assess the legal basis and expected harm for the real dataset. Use reviewed minimum reporting units, complementary suppression or other disclosure controls where necessary; there is no universally valid minimum cell size.
Public responses should use allowlisted display fields, access-classification filters, coarse geography where approved, and fixed reviewed snapshots. Test download files, browser caches, RSS, sitemap/search indexing, logs, screenshots, chart JSON, alt text and tooltips; suppression only in the visual layer is insufficient.
16. Proposed chart-lineage manifest (not deployed)
The following is an example design contract to support evidence-linked chart marks. Fields marked null require a registered, verified repository identity. This is not an existing GIC API route or a public publication approval.
{
"contract_status": "proposed_not_deployed",
"workspace_id": "WORKSPACE_ID_FROM_AUTHORIZED_CONTEXT",
"observation_record_id": null,
"indicator_id": "pm25_annual_mean",
"indicator_definition_version_id": null,
"source_id": null,
"source_version_id": null,
"method_definition_version_id": null,
"source_table": "CSO MIP 2026 Table 3.5 (EPA)",
"spatial_unit_type": "selected_monitoring_station",
"spatial_unit_id": "Ennis",
"period_label": "2024",
"reported_value": 12,
"unit": "ug/m3",
"reported_precision": "nearest_integer",
"coverage_limit": "not representative of the entire zone",
"privacy_classification": "published_aggregate_environmental",
"transformation_commit": null,
"review_decision_id": null,
"publication_snapshot_hash": null,
"publication_approved": false
}
Validation should refuse an “evidence verified” or “publication approved” outcome when exact lineage or approval identities are absent. Optional fields must not be silently populated with current versions for historical records.
17. Safe ingest and object construction
Ingest the CSV through a read-only preparation step. Confirm the published 44-value matrix against the official CSO table, normalize year and category, preserve the station change, reject duplicate (year, category) keys, and compute a file checksum. Register a compatible indicator, unit, method and source in the actual workspace before translating a record to GIC observation input.
# Illustrative mapping only; requires registered unit/indicator and authenticated service.
proposed_observation = {
"indicator_id": "REGISTERED_INDICATOR_ID",
"period_label": "2024",
"value": 12,
"unit_id": "REGISTERED_UG_PER_M3_UNIT_ID",
"data_state": "complete",
"dimensions": {
"geography_category": "Towns > 15,000",
"monitoring_station": "Ennis",
"spatial_support": "selected_station"
},
"denominator": {"definition": "not applicable: station concentration mean"},
"source_id": "REGISTERED_SOURCE_ID",
"method_definition_id": "REGISTERED_METHOD_ID"
}
# Do not call record_observation() until permissions, source identities
# and versioned method contracts have been verified for the installed release.
The companion diagnostic uses only local public CSV data; it does not write to the production database or call a WordPress API.
18. Revision, concurrency and idempotency
Preserve observation_record_id, revision and predecessor link on correction. Validate expected_revision in state-changing calls and reject stale clients rather than silently replacing records. Record input checksums and deterministic idempotency keys for repeated imports. An idempotent upload does not authorize editorial publication or convert raw evidence into an independently verified result.
For externally revised statistical tables, create a new immutable source version and link the corrected observation to the prior one; preserve historical results and publication snapshots. A revised chart must record which source version and transformation produced the new mark.
19. Caching, export, search and publication controls
Do not publicly cache internal repository objects. Key private caches by authenticated principal, tenant and source snapshot, or avoid shared caching for restricted content. If publication becomes authorized, generate a separately versioned and privacy-reviewed export projection. Cache invalidation must cover revision, withdrawal, source replacement, consent/legal-basis change where relevant, suppression updates and reviewer reversal.
Verify that public search and exports expose only approved indicators and aggregated geographies. Publication should be an explicit authorized state transition with separate review evidence; a successful save, checksum, or integrity.valid must not itself change the publication status.
20. Observability and operational failure handling
Emit a nonsecret correlation ID spanning ingestion, normalization, analysis and rendering. Audit actor identity, authorized object scope, source version, transformation hash, action, status transition and sanitized failure code. Separate data validation errors, comparison-blocked results, privacy suppression decisions, permission denials, and system exceptions.
On suspected cross-tenant access or unsafe publication: stop the affected export route, preserve immutable incident evidence, revoke affected URLs or caches where feasible, restrict privileges, restore an earlier approved snapshot, and seek an independent security review. Do not delete source history to hide failures or fabricate a successful review record.
21. Executable offline diagnostics
The packaged regional_lineage_diagnostic.py validates the locally copied public CSO table for expected annual values, row count, station labels, duplicates, numeric ranges and provenance. It constructs an unapproved illustrative chart-mark manifest, deliberately leaving unresolved repository version IDs as null. It flags unsupported publication claims and missing scientific caveats. This utility is an independent companion; it does not exercise native GIC code or certify installed behavior.
python3 regional_lineage_diagnostic.py --input epa_cso_pm25_2014_2024.csv \
--report scientific_lineage_report.json
python3 -m unittest -v test_regional_lineage_diagnostic.py
Run native repository tests and authenticated staging workflows separately, using the actual release dependencies, migration state and access-control configuration.
22. Verification
Acceptance must include both scientific correctness and product governance. Reviewers should sign off the following checks, with a versioned evidence package:
| Gate | Pass criterion | Current status |
|---|---|---|
| Scientific source | All 44 table values, year/category keys, and station notes match CSO Table 3.5. | Offline diagnostic included; run result in package |
| No unsupported inference | No “Ireland mean,” population exposure, or geographic representativeness claim from four stations. | Article reviewed as descriptive; independent scientific sign-off pending |
| Source-to-mark evidence | Every released mark has exact source and method version, transformation and review identity. | Proposed schema; deployment unverified |
| Permission isolation | Tenant B cannot read, modify, export, enumerate or infer tenant A records. | Staging not executed |
| Privacy disclosure | Small-cell tests, differencing, export, logs and cache checks pass for person-linked data. | Staging not executed |
| Revision and publication | Stale revision fails; save does not imply approval; withdrawn snapshots cease being public. | Staging not executed |
Fail closed if a claimed product acceptance condition is not demonstrated. “Published — verification pending” is an editorial status, not a product conformance certificate.
23. Staging acceptance plan and negative cases
The companion CSV defines runnable acceptance intentions, not fabricated test results. Include: unauthorized workspace or initiative; missing/invalid unit; unsupported dimension key; nested personal object; duplicate imported key; missing source version; stale revision; unknown station change; same label/different geography; mixed periods; incompatible denominator; absent rounding disclosure; small-cell and differencing risk; tooltips or cached export leakage; unaudited publication; and withdrawal behavior.
Use synthetic tenant fixtures for security checks. Run scientific comparisons using authorized public records or approved research data, without placing participant-level information in public CI logs or bug reports. Attach staging URL, exact build commit, test IDs, anonymized logs, reviewer identity and rollback evidence.
24. Release and editorial evidence checklist
- Record installed plugin build, source SHA, schema/migration versions and backward compatibility.
- Retain a reproducible copy of input tables, transformations, exact data-source citation and checksum.
- Confirm geographic-code authority, station continuity, denominator and uncertainty disclosures.
- Obtain an independent security/access review and a separate scientific review where inference exceeds observed station summaries.
- Approve only redacted or public data; test exports, search, caches, release rollback and record withdrawal.
- Link approved review to a specific immutable publication snapshot; revalidate after source changes.
Do not mark the Knowledge Base “last verified installed version” as 2.0.0 solely because repository code at that version was reviewed. Metadata should report source-reviewed v2.0.0 and deployed version pending separately.
25. References and provenance
- Content Catalyst LLC, Global Impact Catalyst, commit e75808a0aa27, release v2.0.0 source note.
- Repository source: python/global_impact_measurement.py; python/global_impact_analysis.py; program measurement; comparison governance; indicator registry; source provenance.
- Central Statistics Office (2026), Measuring Ireland’s Progress 2026, Environment, Table 3.5, source data Environmental Protection Agency; CSO background notes.
- Companion package:
regional_lineage_diagnostic.py,epa_cso_pm25_2014_2024.csv,staging_acceptance_matrix.csvandQA_RESULTS.md. These provide an offline method, not a production certification.
