Worked Examples

Developer reference for indicator selection — Global Impact Catalyst

Develop and verify sustainability indicator selection in Global Impact Catalyst using source-reviewed registry, measurement, versioning, access-control, and publication contracts. This developer reference provides reproducible synthetic tests, negative security scenarios, and staging acceptance criteria that distinguish technically valid indicators from scientifically defensible sustainability conclusions.

ProductGlobal Impact CatalystComponentIndicator Registry, Program MeasurementUpdatedDecember 1, 2026Reading time26 minutes

Application: Global Impact Catalyst
Component: Indicator Registry / Program Measurement / Review Workflow
Article type: Developer reference
Status: Source-reviewed, staging acceptance pending
Audience: Developers, data stewards, security reviewers and scientific methods reviewers

1. Goal and intended behavior

This reference specifies how to implement, inspect and test indicator selection without equating a technically valid record with a valid sustainability conclusion. A user selects a measure that matches a stated outcome and can explain what is measured, whose observations are eligible, the period, measured quantity or numerator, denominator when relevant, unit, source, method, revisions and decision authority. A successfully saved definition is a draft or governed record, not an approval or a verified impact result.

The primary acceptance criterion is that a rate, proportion or mean has an explicit, nonzero, population-compatible denominator and a defined numerator; a direct count or direct physical measurement declares a measured quantity and an explicit, scientifically reasoned denominator not applicable. All indicators require a unit, source, scope and method. This is a proposed scientific acceptance contract: the source-reviewed indicator-definition schema does not require first-class numerator and denominator keys for every indicator, and the measurement schema has a denominator object whose semantic completeness must still be checked.

Separate five decisions: (1) JSON and type validity, (2) internal referential consistency, (3) observed arithmetic reproducibility, (4) scientific suitability for the intended objective, and (5) editorial authorization for publication. A passing earlier stage must not imply a passing later stage.

2. Source authority and implementation map

The reviewed repository is Global Impact Catalyst 2.0.0, source commit e75808a0aa272656b1fdbacd2491c30fd6b987dc, dated July 18, 2026. This is the source examined, not the verified installed revision. Its readme identifies the canonical contract as v1.1.0, Indicator Registry as v1.4.0, Measurement Repository as v1.5.0, Review Workflow as v1.6.0, and institutional platform as v2.0.0.

Layer Source-reviewed entry point Scope and caveat
Canonical contract python/global_impact_core.py Entered facts versus derived metrics, claim eligibility and validation issues; scientific truth remains unverified
Registry python/global_impact_registry.py register_indicator_definition, bind_indicator_registry, export_indicator_registry, units, immutable definition versions and hashes
Measurement python/global_impact_measurement.py record_observation, data states, denominator object, revisions and aggregate-only dimensions
Review python/global_impact_review.py Assignments, quality assessments, decisions, content-hash-bound publication gate
Application service python/global_impact_service.py Exposes repository operations, but not independently a deployed HTTP API
WordPress REST wordpress/global-impact-catalyst-demo/global-impact-catalyst-demo.php Actual route registrations and PHP callbacks, but runtime scope/authorization must be tested
Schemas schemas/global_impact_indicator_registry.schema.json; schemas/global_impact_measurement_repository.schema.json Wire/export structures, not proof of correctness of data or outcomes

Do not assume Python and WordPress parity. Python’s registry uses expected_revision on some updates and checks unit dimensions during binding. The inspected WordPress indicator-definition handler writes through $wpdb->replace() and stores a revision of 1 without an evident expected_revision check at that callsite. Python formula validation restricts expressions to a safe arithmetic language; the WordPress handler shown stores sanitized formula text, so server-side formula validation parity is a staging test, not an established guarantee. Registry source · WordPress registry handler

3. Data contracts and invariants

3.1 Identifier, tenancy and revision contract

A persisted selection must reference one canonical workspace_id, initiative_id, indicator_id, indicator_definition_id, indicator_definition_version_id, and unit_id; optional baseline, target and method IDs must likewise carry specific version IDs. The Python binding object persists those identities, bound_at, bound_by, revision, and metadata. Preserve the exact definition hash when exporting and resolving a source version; do not silently rebind a published study to a newer definition.

The application shall reject a referenced definition, observation or model if its workspace or initiative does not match the authenticated resource context. Do not trust IDs supplied by a client. Enforce actor-to-workspace membership, active role, project authorization and object-level permissions on each read and write, including exports, previews, and publication calls. The reviewed WordPress gic_repository_can_edit() callback is current_user_can('edit_posts'); by itself it is not evidence of an individual-workspace access check. Some PHP route handlers accept client-supplied workspace_id. Test the whole call chain and treat missing object-scope enforcement as a blocker.

For writes require a non-stale expected_revision or compare-and-swap equivalent, with an explicit conflict response and no partial mutation. Treat repeated requests with the same client idempotency key as one logical operation, especially for observation creation and external handoffs. Neither comprehensive idempotency across all WordPress routes nor uniform CAS protection was established from the reviewed handlers. Python binding · WordPress edit permission

3.2 Indicator-definition fields and measurement semantics

The reviewed registry definition stores name, description, direction, unit_id, aggregation_method, formula_expression, formula_language, disaggregation, quality_profile, lifecycle_status, metadata, and immutable versions. Accepted directions are higher_is_better, lower_is_better, and neutral. The formula language is gic-expression-1.0, not arbitrary Python. The schema does not universally contain mandatory numerator or denominator properties, so do not invent dedicated REST fields and assume the installed runtime persists them.

For rates, proportions, means and weighted means, establish a governed semantic specification including: numerator or measured quantity, denominator name and eligible population, inclusion/exclusion criteria, unit of observation, missingness rule, period/geography, decimal precision, rounding rule, valid-range expectations, and source lineage. For counts and direct measurements, document denominator_not_applicable_reason in an approved methods record or validated extension. The semantic specification used in this article is a proposed contract stored in the companion synthetic checker, not a claim that those keys are native fields in GIC.

Indicator kind Numerator or value Denominator Failure condition
Mean Sum over valid observations Count of valid observation units Missing/zero count or mixed unit of observation
Percentage/rate Count or exposure satisfying rule Eligible count or exposure, same scope and period Zero, inconsistent populations or missing denominator
Direct count Unique qualifying events Not applicable, with reason Duplicate events or missing eligibility rule
Direct physical measure Calibrated observed quantity Not applicable where appropriate Wrong unit, instrument, boundary or period
Ratio of sums Sum of defined numerator components Sum of matched denominator components Aggregating ratios without permitted weights

A registry integrity result of valid: true means internal references are consistent; it does not certify numerator/denominator definitions, source authenticity, construct validity, sampling or causal identification. Indicator schema · Registry integrity

3.3 Observation-state and revision contract

The Python measurement module accepts complete, missing, late, revised and partial. missing observations must contain null value; non-missing observations require a finite value. A revised observation must reference an existing observation from the same initiative and indicator; downstream summaries should use the latest effective record while retaining the revision lineage. The core module rejects common direct-identifying dimension names and nested person-level objects. It does not prove that arbitrary free-text fields or small cells are anonymized. The denominator is stored as denominator_json and must be independently checked for semantic completeness.

A proposed revision must not erase the original source, data-state or methodology history. Test changes in units, denominator definitions, source versions and program boundaries as material revisions, not invisible in-place edits. Measurement source · Observation schema

4. Source-verified WordPress routes and illustrative payloads

The following route registrations exist in the inspected source under /wp-json/global-impact-catalyst/v1/. Their availability, permission enforcement, request validation and persistence on the installed website remain unverified.

Route and HTTP method Inspected callback Developer verification requirement
GET /indicator-registry?workspace_id=… gic_registry_export_rest Enforce workspace scope; inspect exact binding IDs and integrity counts
POST /indicator-definitions gic_registry_definition_rest Validate direction/aggregation/formula; concurrency and workspace ownership
POST /units gic_registry_unit_rest Reject incompatible or unauthorized units; prevent duplicate-code ambiguity
POST /baseline-models; POST /target-models gic_registry_model_rest Require valid type, period, unit and revision; no silent coercion
POST /method-definitions gic_registry_method_rest Persist documented data requirements, limitations and method version
GET /measurement-repository?workspace_id=… gic_measurement_export_rest Verify observation denominators, source mapping and restricted fields
POST /observations gic_measurement_observation_rest Enforce observation states, revision lineage, unit compatibility, and tenant scope
POST /review-assignments, POST /quality-assessments, POST /approval-decisions gic_review_* callbacks Test reviewer identity, role separation, comment resolution and quality threshold
POST /publications/{publication_id}/publish gic_review_publish_rest Require approval, adequate submitted assessment, no open corrections and unchanged hash

Source: WordPress registry route registration, measurement routes, and review routes.

An illustrative source-compatible candidate for POST /indicator-definitions is below. It is not a copy-paste production command and must first be checked against the installed JSON contract, authentication model and server-side validation:

{
  "workspace_id": "SYNTHETIC-WS",
  "name": "Matched-month household bill reduction",
  "description": "Mean observed decrease in utility bills among valid matched household-month records; descriptive affordability measure only.",
  "unit": "USD",
  "direction": "higher_is_better",
  "aggregation_method": "mean",
  "formula_expression": "",
  "version_label": "1.0",
  "quality_profile": {"status": "not_assessed"},
  "metadata": {"fixture_only": true, "scientific_protocol_reference": "SYNTHETIC-IND-2026-Q2"}
}

This payload intentionally does not claim native first-class numerator/denominator fields. The scientific-method companion should bind the full semantic definition to the exact indicator version and observation set; verify that this information can be exported without loss. The canonical registry unit USD does not itself encode the compound unit USD per matched household-month.

5. Worked contract example — fictional affordability indicator

The companion file synthetic_site_bill_reductions_2026.csv contains only fictional site totals. Four site-period rows have 50 eligible households, 40 matched household-month observations and total reduction of USD 720. Under the illustrative period and definitions, the pooled mean is 720 / 40 = USD 18.00 per matched household-month; coverage is 40 / 50 = 80%. With a fictional baseline of zero and target USD 30, canonical progress arithmetic yields 60%. The unweighted mean of the four site means is USD 17.75, not the correctly pooled USD 18.00.

The validation fixture supplies metric_kind=mean, numerator and denominator definitions, source reference, method version, privacy classification, and fixture_only=true; these are proposed scientific-review keys, separate from the actual GIC registry schema. A report derived from these rows may say “the fictional matched records average USD 18 in observed monthly bill difference”. It must not claim energy savings, avoided emissions, representativeness, causal impact or a verified household outcome. Coverage is descriptive only and does not resolve selection bias.

The test must reject any of: a zero denominator, a mismatched period, a duplicate site-period, an incompatible definition version, direct-person columns, a missing source, a fabricated review status, or a claim that the fictional number is a certified real-world finding. Preserve reproducible source byte hashes and the calculated result independently of public-page styling.

6. Authorization, privacy, consent, and retention boundaries

For every endpoint and export, verify the caller’s authenticated identity, active workspace membership, role, object scope, source access rights and intended audience. Validate against a second workspace owned by another test account: that account must not be able to list, modify, export or publish the first workspace’s indicator, observations, evidence or review materials. A WordPress nonce is not a substitute for server-side authorization.

The WordPress gic_repository_can_edit callback checks edit_posts, and it is attached to the reviewed registry, measurement and review routes. An object-level access control beyond this callback is not established from route registration alone. Escalate any unauthorized cross-workspace response as a blocking security failure, not an ordinary editorial omission.

Use synthetic aggregate fixtures for routine testing. Never place real participant identity, restricted raw bills, consent artifacts, private source locations, credentials or access tokens in a public bug, CSV export, error message or Knowledge Base example. Test secondary disclosure from site-level small cells and combinations of indirect attributes. Source-level dimension filtering is useful but does not replace re-identification review. Retention, erasure, legal basis, source licensing and human-participant permissions depend on the deployment and institution; no retention period or institutional consent mechanism was certified by this source review.

For technical exceptions, log a nonsecret event ID, correlation ID, authenticated actor ID in restricted audit storage, workspace ID, record/version identifiers, validation issue code, decision state and timestamp. Do not log raw sensitive payloads. If the audit write fails, reject or hold consequential approval/publication actions and retain a nonsecret incident reference. Audit transaction behavior must be verified in staging.

7. Review workflow, lifecycle and publication gates

The source-reviewed Python workflow creates publication records as draft. A subsequent publish() requires an approval decision, adequate submitted quality assessment, no open corrections and content matching the draft’s stored hash. The WordPress publication callback shows corresponding checks at its callsite. Neither a successful POST /indicator-definitions nor an integrity-valid registry export makes a study scientifically approved or publicly publishable.

Required sequence: draft specification → methods and data review → independent reproduction → privacy and access review → documented approval decision on the exact version → publication check → public serializer review. A changed indicator definition, denominator policy, input period, source or content hash must invalidate prior publication clearance until it is expressly re-reviewed. Approvals must be bound to the exact revision and reviewer identity, with segregation of duties appropriate to risk.

Treat the following as adverse tests: attempts to publish a draft with open review comments; inadequate quality assessment; an approval referring to a different version; an unanswered privacy objection; a renamed numerator silently changing meaning; and a publication artifact whose hash changed after approval. Confirm public routes never return draft, withdrawn or restricted evidence records. Python publication gate · WordPress publication gate

8. Implementation gaps and proposed hardening

The table distinguishes reviewed source observations from proposed acceptance requirements. These are not claims of exploitation or installed-production faults.

Source observation Risk to evaluate in staging Proposed acceptance requirement
Indicator schema lacks mandatory first-class numerator and denominator Rate/mean saved without a meaningful counting rule Versioned scientific-method specification; nonzero scope-matched denominator where relevant
WordPress gic_repository_can_edit() checks edit_posts Object-level workspace isolation may be missing Deny cross-workspace reads/writes and exports in every route
WordPress indicator handler replaces row with revision=1 Concurrent edits could overwrite state or make version lineage ambiguous Expected-revision 409 conflicts; immutable version continuity
Python parser validates arithmetic; PHP handler stores sanitized formula text Cross-runtime validation behavior may diverge Shared contract tests and safe formula rejection in both runtimes
Python registry binding resolves referenced IDs without a visible workspace assertion on each reference Cross-workspace resource association could be possible Explicit workspace checks at every foreign-reference boundary
Observation denominator is an object but not semantically constrained in shown code Undefined or zero denominator for a rate may pass structural checks Kind-aware semantic validation and independent calculation
Publication workflow is separate from record creation A saved definition could be mistaken for approved result Exact-hash review, authorization and public-output checks

Do not force these changes through an article or an unsupervised production patch. Assign each proposed repair an owner, tracked issue, threat/test case, release candidate, rollback plan and staging evidence. Any change to published scientific definitions requires editorial and scientific change control.

9. Developer test matrix and negative fixtures

The companion synthetic checker is deliberately fail-closed for real-world release. It independently checks the fictional data and specifications; it is not a clone of GIC’s server, a security scanner, or a scientific-assurance service.

Test family Pass condition Required negative case
Definition and schema Required conceptual fields and specific versions present Missing indicator name, source, unit or scientific construct
Denominator semantics Mean/rate has a nonzero and scope-matched denominator Zero, absent, mismatched-period, or N/A-for-rate denominator
Units/formulas Arithmetic finite; input units and direction compatible Incompatible mass/energy units, executable formula syntax
Revisions Old definition remains versioned, stale writes conflict Two clients save same prior revision
Observation lineage Missing has null; revised references same initiative+indicator Revision to another project or a private/invalid record
Cross-tenant access Authorized actor sees only allowed workspace Valid edit_posts user reads other workspace by guessed ID
Privacy No direct identifiers, secrets or small-cell disclosure Nested person data, private source URI, CSV export leaks
Scientific suitability Outcome and reported inference match measure Bills cited as avoided CO₂ or causal retrofit effect
Review/publication Correct reviewer, quality, correction closure and content hash Draft publish, stale approval, automated promotion
Audit/replay One logical effect per request; failures evidenced Duplicate POST, missing audit row, partial transaction

Run the independent tests separately against the Python repository, WordPress REST service, authenticated and anonymous browsers, and public exports. Store sanitized fixture inputs, expected and observed status codes, request IDs, reviewer decisions, timestamps, deployment commit/version, and evidence hashes. Do not mark staging tests passed because this article’s offline script passes.

10. Staging acceptance sequence

  1. Capture installed plugin version, active release, database migration and API route inventory; compare with the pinned source commit.
  2. Create two isolated synthetic workspaces with different identities, roles and permissions; confirm anonymous, editor, owner and reviewer behavior.
  3. Register a unit, indicator definition, baseline, target and method; export and verify stable version identities, content hashes and binding consistency.
  4. Submit a finite mean with a valid denominator, then try zero, negative, mismatched-period and omitted denominators. Distinguish GIC’s native structural response from the proposed scientific gate.
  5. Mutate the indicator definition from two sessions with the same previous revision; verify conflict behavior, preservation of both audit trail and old versions, and rollback.
  6. Verify permitted and forbidden formula expressions, unit conversions and cross-workspace reference IDs in both Python and WordPress.
  7. Record complete, missing, partial and revised observations, including wrong-initiative revision and duplicate submission cases.
  8. Repeat source-to-export checks on JSON, CSV, HTML, public views and any WordPress widget; inspect for private fields and disclosure through small aggregates.
  9. Attempt publication without approval, with inadequate quality, open corrections and a changed draft hash; record denials and confirm no public artifact appears.
  10. Sign off scientific construct suitability and privacy separately from technical acceptance, archive reproducible evidence, and keep production deployment pending explicit authorization.

The bundled staging matrix enumerates individual test IDs and records them all as NOT_RUN. A failing security, consent, cross-tenant, approval or identity-disclosure test is a release blocker. Statistical validity requires additional real-world domain review and cannot be supplied by synthetic fixtures.

11. Evidence and references

Source-pinned code and schemas: Indicator Registry source; Measurement source; Review workflow; WordPress REST handlers; Indicator schema; Measurement schema.

Repository interpretation: Indicator Registry; Program Measurement; Review, Quality and Revision Workflow. Verify source permissions, deployed code, and institutional policy independently before using any real records.

Acceptance boundary: This article is ready for editorial and engineering review, not live scientific certification, unsupervised deployment, disclosure of private data or publication of real-world impact results. The companion tests are offline, synthetic and do not exercise the installed product.

Scroll to Top