Troubleshooting
Troubleshoot temporal indicator trends — Global Impact Catalyst
Troubleshoot missing or misleading temporal indicator charts, incorrect annual rates, revised observations, incomplete provenance, and unauthorized exposure in Global Impact Catalyst. Follow source-reviewed triage, reproducible offline checks, staging acceptance criteria, and safe recovery procedures.
Application: Global Impact Catalyst
Article type: Troubleshooting / incident recovery
Source baseline: v2.0.0 plugin and v1.7.0 trend-analysis subsystem
Last source review: November 22, 2026
Estimated reading time: 16–20 minutes
Verification: Pinned-source findings; staging and production acceptance pending
Summary: Troubleshoot missing or misleading temporal indicator charts, incorrect annual rates, revised observations, incomplete provenance, and unauthorized exposure. This guide provides read-only triage, synthetic diagnostics, staging test cases, and safe recovery procedures for Global Impact Catalyst.
Symptoms
Begin triage when a temporal indicator trend exhibits any of the following conditions:
- Apparent success without analysis: a trend endpoint returns
integrity.valid: truebut lacks computedpointsorstatistics; do not present it as a completed trend. - Missing or unexpected observations: plotted periods differ from the effective observation set, or missing, partial, and superseded records are not explained.
- Misleading trend direction or rate: a one-point series appears “stable,” irregular time intervals are treated as equally spaced, or annual slope units are omitted.
- Inconsistent measurements: a chart mixes units, populations, geographic scopes, indicator definitions, or method versions without documented reconciliation.
- Missing provenance or improper disclosure: chart points cannot be tied to source versions, observations, and approval snapshots, or a user can view data outside their authorized workspace.
Use the detailed symptom-to-cause diagnostic matrix below to prioritize an evidence-based investigation.
Resolution
- Contain: if authorization or publication boundaries may have failed, disable only the affected public chart, export, or delivery path; preserve the original evidence and audit trail.
- Identify: record the deployed component, route, plugin/source version, workspace, initiative, indicator, and a safely redacted request/response.
- Reproduce: use synthetic or explicitly authorized observations to compare the actual WordPress response with the Python calculation; independently recompute elapsed-time statistics.
- Reconcile: trace included and excluded observation revisions; verify units, time period, source versions, indicator definitions, method definitions, and audience permissions.
- Correct under change control: implement a minimal fix in staging, add positive and negative regressions, produce a new versioned run and publication snapshot where appropriate, and preserve prior results.
The full recovery and rollback procedure below defines ownership, approval, rollback, and non-destructive correction requirements. An HTTP 200 or a successful save is not evidence of approved publication.
Verification
Do not close an incident until the following acceptance criteria are met against the actual deployed build:
- For at least two valid, date-resolved, comparable observations, the independently recomputed change, direction, and slope agree with the displayed result within declared tolerance; one-point trends are explicitly insufficient for directional interpretation.
- The rendered chart includes or can resolve exact observation IDs, revision relationships, excluded-record reasons, source versions, method versions, indicator-definition versions, transformations, and snapshot identifier, or clearly indicates missing lineage.
- Negative tests reject false-complete placeholders, incompatible units, unapproved changes, stale snapshots, and unauthorized cross-workspace access without exposing sensitive data.
- Exports and cached views match the approved versioned analysis; corrections create auditable new revisions rather than rewriting historical evidence.
- The test record identifies environment, source/build SHA, fixture hash, executed test IDs, reviewer, observed results, and rollback reference.
Verification boundary: source inspection and offline synthetic tests do not certify the live installation. The staging matrix and evidence/exit criteria require execution and approval.
1. Scope, baseline, and failure severity
Use this procedure when a temporal indicator chart is empty, displays implausible change, mixes incompatible evidence, appears under the wrong workspace, reports conflicting states, or cannot be reconstructed from its source data. A troubleshooting investigation must distinguish transport success, computational integrity, scientific comparability, authorization, and publication approval. These are separate outcomes.
Source baseline: Global Impact Catalyst (GIC) v2.0.0, commit e75808a0aa272656b1fdbacd2491c30fd6b987dc. The integrated Python analysis subsystem labels its trend results analysis_version: 1.7.0. The observations below describe that inspected code, not necessarily the installed version of a website or staging deployment.
- Critical — stop public delivery: another tenant’s results, protected data in an unauthenticated response, or an unapproved trend publicly accessible.
- High — block trend publication: a placeholder marked valid, incompatible units or methods joined without reconciliation, missing source-version lineage, or an unrepeatable calculation.
- Medium — correct before use: wrong time scale, misleading one-point direction, inconsistent visualization labels, stale cache, or incomplete warning display.
Keep private identifiers, source payloads, API credentials, and personal information out of public support tickets and screenshots. Use invented fixtures wherever possible.
2. Rapid triage: capture evidence without modifying data
- Record the affected environment, time (UTC), request/correlation ID if available, UI route, plugin version, backend commit SHA, anonymized workspace and initiative identifiers, and exact chart period.
- Capture the request method, status code, and redacted response field names. Record whether
points,statistics,excluded, andintegrityare present; never equate HTTP 200 with a completed computation. - Determine whether the data came from the Python repository, the WordPress REST handler, a cached export, a workspace bundle, or a prior publication snapshot.
- Preserve a read-only record of selected observation IDs, reported values and units, effective revision links, time fields, source and method versions, and exclusion reasons. Store sensitive evidence in the authorized environment.
- Compare the same synthetic or separately authorized fixture across environments before diagnosing differences. Do not write to the live repository just to reproduce a visualization failure.
Containment: if unauthorized disclosure or false publication is suspected, disable the affected public view, API bridge, or cached artifact using the platform’s approved incident procedure. Preserve historical snapshots and audit records; do not delete them to hide an inconsistency.
3. Symptom-to-cause diagnostic matrix
| Observed symptom | Likely explanation to check | Minimum confirming evidence |
|---|---|---|
| “Valid” trend with no plotted points | WordPress placeholder handler or frontend accepts incomplete response | Response has integrity.valid but lacks points/statistics; deployed source match |
| Fewer points than source records | Effective revisions, missing/partial policy, or conversion rejection | Selected observation IDs versus excluded reasons |
| “Stable” trend from one measurement | Implementation uses zero slope for fewer than two points | Point count and warning; compare publishability rule |
| Wrong annual rate | Slope uses indices instead of elapsed time | Exact observation dates, index slope, independently calculated slope/year |
| Sharp change after data refresh | Corrected observation, new source version, new method, or population change | Revision chain and version-specific evidence links |
| Same indicator differs between exports | Different effective records, filtering, run version, rounding, or stale cache | Input hashes, run IDs, publication snapshot IDs, export generation timestamps |
| Cross-workspace or restricted visibility | Coarse role check or missing object-scope enforcement | Staging authorization matrix; anonymous/tenant-negative responses and log audit |
| Percent change absent from zero | Undefined relative change with zero baseline | First value = 0; absolute change remains available |
The matrix gives hypotheses, not automatic diagnoses. A status should be changed only after its evidence is reviewed.
4. Identify the deployed component before debugging code
Do not assume a repository commit matches production. Confirm the installed WordPress plugin and Python service versions separately. On a local checkout or authorized staging shell, the following commands inspect code without changing state; substitute the actual repository/plugin paths:
cd /path/to/global-impact-catalyst
git rev-parse HEAD
git status --short
rg -n 'def analyze_trend|def _slope|function gic_analysis_trend_rest|/analysis-trends' python/global_impact_analysis.py wordpress/global-impact-catalyst-demo/global-impact-catalyst-demo.php
python3 -m pytest -q tests/test_analysis_scenarios.py tests/test_wordpress_contract.py
For a WordPress installation, compare the plugin header version with the deployed file hash and revision manifest. The plugin directory name may not match the upstream checkout; inspect the actual active plugin rather than guessing its location. A local pytest pass does not validate routing, database contents, signed-in roles, or cached publication output.
Reviewed evidence: Python trend function and WordPress route implementation.
5. Diagnose a valid-looking WordPress placeholder
At the pinned commit, POST /wp-json/global-impact-catalyst/v1/analysis-trends maps to gic_analysis_trend_rest(). The function returns an object containing IDs, analysis_type: trend, analysis_version: 1.7.0, and integrity.valid: true, but does not compute trend points or statistics. The response directs computation to the Python repository. This is a confirmed repository-source discrepancy, not proof that a particular live deployment currently exposes it.
Reproduction: in staging, with a test-only authorized account and synthetic parameters, invoke the trend request using the application’s authenticated client. Inspect the response shape. An HTTP 200, route presence, or integrity.valid alone is insufficient. Avoid copying authentication tokens or nonces into a shared report.
# Save the synthetic/staging response as trend-response.json.
python3 - <<'PY'
import json
from pathlib import Path
r = json.loads(Path('trend-response.json').read_text())
required = {'analysis_type','points','statistics','integrity'}
missing = sorted(required - r.keys())
assert r.get('analysis_type') == 'trend', 'not a trend result'
assert not missing, f'non-computational or incomplete response: {missing}'
assert isinstance(r['points'],list), 'points must be a list'
assert isinstance(r['statistics'],dict), 'statistics must be a map'
print('Response has computational fields; scientific review remains required')
PY
Expected: a placeholder response fails on missing points and statistics; a calculated response passes shape checks but still needs authorization, provenance, and scientific review. The safe fix is an explicit not-computed state or a connected governed backend—not fabricated statistics.
6. Verify Python selection, missing values, and partial records
The source analyze_trend() obtains observations through list_observations(), selects effective revisions with _effective_records(), and assembles points and excluded arrays. Missing observations or null values are excluded. Partial observations are excluded unless include_partial=True. The accepted missing_policy values are block, exclude, and warn.
When a plotted point is missing, inspect the effective record ID, data state, missing-data policy, target unit, conversion result, and exclusion reason. Never assume the raw observation count equals the plotted point count. Record decisions about imputation and coverage separately; the source does not provide scientific permission to fill missing values.
In a fixture with three complete records and one partial record, run the Python engine with include_partial=False and verify that the partial record appears in excluded. Repeat with the setting enabled and confirm that the chart explicitly labels the included value as partial. The pinned test uses included values 18, 21, 24 and one excluded partial observation.
7. Reconcile revised observations and preserve historical snapshots
A correction may create a successor observation without deleting its predecessor. The reviewed engine selects effective records, which can legitimately reduce the plotted count. Investigate the original and corrected record IDs, predecessor link, revision actor, timestamp, and reason; confirm that only the effective observation is counted.
- Compare the raw revision chain with the selected records in the analysis run.
- Verify that the corrected record replaces—not adds to—the previously effective point in a newly computed result.
- Check if a published snapshot still points to the earlier observation. Preserve the earlier snapshot and issue a traceable updated publication where required.
- Look for cache or export drift after the revision; compare run IDs and relevant hashes before clearing caches.
Do not delete historical observations or mutate an approved snapshot as a shortcut for achieving apparent consistency.
8. Investigate unit mismatch and inconsistent populations
When an included observation uses a different unit from target_unit_id, Python attempts a registered conversion. An incompatible conversion contributes a blocker and an excluded entry with reason: incompatible_unit. Confirm the original unit, converted value, factor, rounding, and dimensional compatibility.
Compatible units alone do not guarantee comparable evidence: a household measure may not be comparable to a business measure; tonnes are not tonnes/hectare; a method change may alter the measured construct. Verify population, geography, sampling frame, denominator, measurement definition, and period length before joining records. Where comparability cannot be defended, split the series or display a method break.
Recovery requires documenting any conversion or harmonization change, computing a new analysis run, and preserving the original observation and transformation metadata. Do not silently rescale historical numbers to match a new narrative.
9. Correct false annual slopes and time-axis errors
The pinned _slope(values) computes least-squares regression against observation indices (0, 1, 2, ...). The resulting statistics.slope is per included observation step, not inherently per calendar year. This is a particular risk when periods are skipped, mixed, or irregular.
For elapsed-time regression define x_i as years since the first observation and y_i as the normalized value. Then slope_per_year = Σ[(xᵢ − x̄)(yᵢ − ȳ)] / Σ[(xᵢ − x̄)²].
Synthetic example: a value of 10 on 2021-01-01 and 30 on 2023-01-01 gives an index-based slope of 20 units per observation, but approximately 10 units per year. Check period_start, period_end, period duration, sorting, gaps, and duplicate period boundaries. Source sorting may use period_label when a start date is missing; labels alone may not establish chronology.
The diagnostic companion independently recomputes elapsed-time slope from dates and flags the index-based statistic, without changing GIC code. See pinned slope implementation.
10. Interpret one-point trends, percent change, and uncertainty
The source treats a trend as integrity.valid when there is at least one selected point and no blockers, even though it warns that fewer than two observations cannot establish a directional trend. Its zero slope in a one-point case can lead to a misleading “stable” label. The publication gate should require a separate threshold of at least two temporally distinct comparable points and appropriate scientific review.
Absolute change is last − first. Where the baseline is nonzero, percentage change is (last − first) / abs(first) × 100. A zero baseline makes the percentage change undefined (null), not zero percent.
Even a mathematically computed slope is not a causal finding. Evaluate seasonality, measurement uncertainty, autocorrelation, revisions, missing intervals, outliers, and method drift before interpreting the direction or strength of a trend.
11. Recover version-specific source and method lineage
Source-version records and immutable indicator/method registry versions exist in the pinned repository. The Python trend output, however, does not carry all those versions into each returned point. An evidence-complete published chart should resolve its exact observation, source version, method version, indicator definition version, transformation, and analysis/publication snapshot. A current source title is not a substitute for historical version identity.
Proposed contract, not deployed:
{
"status": "PROPOSED_NOT_DEPLOYED",
"observation_record_id": "synthetic-obs-2023",
"source_version_id": "synthetic-source-v2",
"method_definition_version_id": "synthetic-method-v1",
"indicator_definition_version_id": "synthetic-indicator-v1",
"period_start": "2023-01-01",
"value": 30,
"unit_id": "count",
"transformation": {"operation": "identity", "version": "1"}
}
If a method version changes, check whether both methods measure the same construct and whether a valid calibration/bridging study supports continuity. Otherwise annotate a series break and request review before publication. Reconstruct versions using documented repository joins, never by inventing missing IDs in the frontend.
References: indicator and method registry and source-version provenance.
12. Investigate unauthorized workspace access and data exposure
The pinned WordPress helper gic_repository_can_edit() checks current_user_can('edit_posts'). This is not by itself a project- or tenant-scoped authorization check, but its existence alone does not prove an actual deployment leak. Verify the full data-access path in an isolated staging environment.
Create two synthetic tenants, A and B, and test an anonymous actor, a signed-in non-editor, an authorized A editor, an A editor requesting B, a revoked editor, and a publisher with only draft access. Denied requests should not reveal protected records through REST responses, front-end embeds, exports, search, analytics jobs, caches, logs, or error details. Check object-scope enforcement in the repository/backend as well as WordPress route-level permissions.
Do not publish nonsecret “proof” that reveals real tenant IDs or source extracts. Report suspected access violations to the service owner through the approved private security channel. Source: WordPress permission helper.
13. Prevent editorial, analysis, and publication-state confusion
Do not treat a successful save, a valid analysis, or an HTTP 200 response as publication approval. Keep separate states for computed, scientifically reviewed, editorially approved, and publicly released. Record reviewer identity, permitted source rights, consent/lawful access if required, exact input versions, exclusions, and immutable publication snapshot.
Negative tests must reject unauthorized publication, a stale-revision write, a duplicate idempotent submission, missing source rights, revoked access, and an audit-write failure. No automatic workflow should turn a draft into a public claim merely because a chart renders successfully.
When an error is detected in a published series, suspend unsafe distribution, issue an evidence-linked correction or withdrawal if appropriate, and retain the prior snapshot and reviewer decisions for traceability.
14. Compare chart marks, exports, and caches
Compare four representations of the same analysis: raw computed result, transformed frontend data, rendered chart marks, and exported artifact. Check sorting, rounding, labels, interpolation, zero versus missing, state warnings, method breaks, and whether each mark maps to the correct observation. Do not permit a renderer to silently hide excluded records or present an incomplete result as a final trend.
Reconcile charts with CSV/tabular exports and any supported image or report exports. Audit cache keys for tenant, time range, analysis run, and approved snapshot; a stale cache should not leak another tenant’s result or overwrite an immutable prior release. Check keyboard access, labels, alt/description, and an accessible table as appropriate for the installed chart library.
15. Run executable synthetic diagnostics locally
The companion tool supplied with this article is deliberately offline and uses Python’s standard library; it does not query WordPress, inspect real users, or authorize publication. Extract the package into an approved local development directory, then execute:
python3 -m unittest -v test_diagnose_temporal_trend.py
python3 diagnose_temporal_trend.py fixture_valid_synthetic.json
python3 diagnose_temporal_trend.py fixture_wordpress_placeholder_synthetic.json
# The final command intentionally exits with status 1.
Expected outcomes: the valid synthetic fixture reports requires_editorial_and_scientific_review with zero blockers and an independently calculated slope near 10 units/year. The placeholder fixture reports not_publishable with TRD003 (no computed points/statistics) and TRD017 (insufficient dated points). A zero-blocker result does not establish that a source/version ID is authentic or that a real person approved the figure.
16. Staging acceptance tests and failure expectations
| Test | Input or fault | Required outcome |
|---|---|---|
| TT-01 | Placeholder valid=true without statistics |
Reject completed-trend status |
| TT-02 | One usable point | Show insufficient trend evidence |
| TT-03 | Missing/partial values | Correct exclusions and policy |
| TT-04 | Superseded observation | Select successor once; preserve history |
| TT-05 | Incompatible units | Block rather than silently normalize |
| TT-06 | Irregular calendar periods | Independent annual slope agreement |
| TT-07 | Zero baseline | Percentage change undefined |
| TT-08 | Changed source version | Historic chart remains pinned |
| TT-09 | Method definition changed | Review or explicit series break |
| TT-10 | Tenant A queries tenant B | Safe denial; no private payload |
| TT-11 | Anonymous or revoked access | Private analysis and exports unavailable |
| TT-12 | Duplicate/stale update | No duplicate effect, conflict enforced |
| TT-13 | Draft or failed audit publication | Public release blocked |
| TT-14 | Rendered chart versus export | Exact input/version reconciliation |
| TT-15 | Cache after correction | New result visible; prior snapshot intact |
| TT-16 | Rollback after failed release | Known version restored, audit retained |
Status: proposed staging tests, not executed against an installed GIC deployment. Acceptance requires environment, actual commit/deployed version, fixture SHA-256, redacted response, reviewer, pass/fail evidence, and any rollback reference.
17. Recovery, controlled correction, and rollback
- Contain: restrict the affected public chart or export, preserving data and audit history.
- Preserve: store the failing redacted response, exact build SHA, observation revision chain, source/method versions, and publication snapshot.
- Diagnose: classify the root cause as data selection, calculation, comparability, authorization, frontend, cache, or publishing policy.
- Repair in staging: add a targeted regression case plus adjacent negative cases; do not test fixes by editing production observations.
- Recalculate: create a new versioned run and independently check its statistics and source-to-mark lineage.
- Review: obtain required engineering, scientific, security, and editorial approvals before public re-release.
- Deploy and verify: confirm live build and route parity, permissions, caches, exports, warnings, and rollback success. Restore an approved release if acceptance fails.
A source or methodological error may require an amended publication; restoring code alone does not correct an invalid public claim. Never erase evidence to make a status look consistent.
18. Evidence packet and exit criteria
Escalate with incident ID, severity, environment, first observed UTC time, deployed build and route, minimum synthetic reproduction, expected and actual response, observation selection and exclusions, source and method versions, user/tenant authorization assessment, public exposure scope, proposed code change, regression results, release/rollback identifiers, and reviewer decision. Keep all secrets and confidential source content in the approved restricted evidence store.
Close the issue only when the original failure no longer reproduces, negative tests fail safely, numerical output is independently repeatable, data lineage is recorded or explicitly flagged incomplete, tenant access and publication controls pass, and acceptance evidence corresponds to the deployed build.
19. Technical references and source-review limitations
- Python analyze_trend(): data selection, statistics, exclusions
- Python _slope(): observation-index regression
- WordPress placeholder trend REST handler
- WordPress edit_posts permission helper
- Repository test fixture and trend assertions
- WordPress contract-presence tests
- Trend documentation and scientific boundaries
- Versioned indicator and method registry
- Source versions and provenance
- Analysis repository schema
- Release 2.0.0 notes
These references support the pinned source findings. Repository tests that assert route or function presence do not establish computational parity. Current deployment, operational identity controls, and scientific approval remain unverified until tested separately.
