Troubleshooting
Troubleshoot intervention tracking — Catalyst Grit
Troubleshoot intervention-tracking errors in Catalyst Grit using real longitudinal psychological research observations, reproducible Python diagnostics, and source-reviewed engineering guidance. This article addresses intervention assignment versus receipt, event timing, treatment fidelity, missing follow-up outcomes, psychometric measurement integrity, competing explanations, authorization failures, and safe recovery procedures for scientifically defensible research.
Application: Catalyst Grit
Article type: Troubleshooting / intervention research / engineering
Last source-reviewed version: v2.0.0 (f9617160ffd276c6a6fd847b1e846bb5f73b07ae)
Last verified version: Not established — no verified installed release
Last source-reviewed version (not deployment verification): v2.0.0
Reviewed product documentation: Catalyst Grit v2.0.0 README at reviewed commit (source documentation, not verified deployment)
Status: Published guidance — verification pending
Estimated reading time: 25–35 minutes
1. Goal
Diagnose incomplete, contradictory, improperly disclosed, or methodologically misleading intervention-tracking records without confusing randomized assignment, planned delivery, actual exposure, fidelity, co-interventions, and measured psychological outcomes. A successful investigation must reconstruct event chronology, preserve provenance and authorization, disclose competing explanations and missing follow-up, and provide a documented decision for research and engineering review.
Acceptance criterion: psychological outcomes retain intervention timing, competing explanations, uncertainty, source lineage, and human-review status. A software-valid record is not proof of treatment effectiveness, a clinical benefit, or a validated measure of resilience.
2. Requirements
- Permission to process the particular records, approved research purpose, consent/lawful basis, retention and publication classification.
- Authorized project and actor, immutable source copies, source hashes, event/revision IDs, and documentation of clinical instrument rights and scoring methodology.
- Definition of the estimand, assignment groups, intervention timing, schedule, and follow-up cohorts. Distinguish missed assessment from intervention discontinuation.
- Python 3 to run the bundled offline adapter; no production credentials needed.
- Last source-reviewed version: Catalyst Grit v2.0.0; repository commit
f9617160ffd276c6a6fd847b1e846bb5f73b07ae. Last verified version: Not verified (installed release not established).
The included terminal scripts are independent reference tools, not documented Catalyst Grit production commands.
3. Symptoms
| Problem | Likely research or engineering concern | First diagnostic |
|---|---|---|
| Assigned participant shown as treated | Assignment mistaken for receipt | Check independently sourced delivery/attendance evidence |
| Outcomes appear before a documented intervention | Timestamp or linkage error | Review event and outcome chronology with time-zone handling |
| Repeated or contradictory intervention events | Duplicate IDs, replay or stale revisions | Inspect event ID, idempotency key, source hash and audit history |
| Improvement reported with declining follow-up | Attrition/available-case bias | Compare randomized versus observed denominators by arm |
| BDI-II scores conflict across visits | Scoring, version, invalid range, item missingness | Check 0–63 valid total range and licensed scoring protocol |
| Outcome linked to an invented treatment session | Provenance violation | Verify event evidence was actually collected, not synthesized |
| Unreviewed analysis publicly exported | Authorization and publication-gate failure | Disable affected public path and preserve audit evidence |
4. Cause
Common causes include loss of participant-to-project linkage, time-zone ambiguity, duplicate write attempts, missing or inaccurate intervention-session evidence, changed protocols, concurrent treatment, changes in assessment instruments, incorrect estimands, missing follow-up outcomes, and insufficient review controls. In intervention science, allocation is not the same as delivered dose, attendance or adherence.
Evidence of program timing alone does not establish causality. A randomized comparison depends on trial design, analysis plan, outcome completeness and intervention fidelity. Apparent improvements among respondents can reflect selection and attrition rather than effects of the program.
5. Research fixture and limits
The public Beat the Blues (HSAUR) example contains 100 randomized participants with repeated Beck Depression Inventory-II (BDI-II) scores, including baseline and two-, four-, six-, and eight-month assessments. It supplies treatment assignment and follow-up outcomes, not verified intervention attendance, delivery, fidelity, co-treatment logs, or participant-level consent records. The package places any intervention events in a separate, clearly synthetic fixture and does not assert that these events occurred in the original trial.
| Indicator | Beat the Blues | Treatment as usual |
|---|---|---|
| Randomized | 52 | 48 |
| Eight-month observed BDI-II totals | 27 | 25 |
| Eight-month outcomes missing | 25 | 23 |
| Eight-month observed-only mean | 8.85 | 13.60 |
Approximately half of all randomized participants lack the eight-month outcome. Available-case differences are descriptive and cannot independently identify an intention-to-treat treatment effect or missing-data mechanism.
6. Procedure
- Secure the investigation: Determine project and actor identity, legal basis, restricted fields, and affected publication/export destinations. Suspend public exposure where authorization is doubtful.
- Freeze evidence: Preserve a permitted original dataset, version ID, source digest, original event evidence, software revision and immutable audit history.
- Establish cohorts: Rebuild randomized or eligible denominators for each arm and each outcome visit; preserve original missingness rather than replacing it with zeros.
- Reconstruct intervention chronology: Keep assignment, scheduled delivery, verified delivery, participant attendance, withdrawal, and assessment events distinct; validate event IDs and timestamps.
- Diagnose scientific validity: Document relevant co-interventions, protocol deviations, fidelity, intervention dose and an appropriate estimand. Identify unmeasured competing explanations.
- Inspect measurement: Confirm BDI-II instrument edition, licensed scoring, total ranges, missing items, assessment timing and longitudinal comparability. Do not infer a grit score from depression scores.
- Run offline tests: Validate source counts and synthetic event states; inject representative faults to verify diagnostic behavior.
- Choose and record resolution: Restore source provenance, reconcile duplicate events, correct invalid statuses by append-only action, block unsupported claims, and flag uncertain treatment exposure.
- Independent review: Have authorized software, privacy, and psychological research reviewers approve interpretation and any publication; verify the installed release separately.
7. Terminal troubleshooting workflow
# From the extracted ZIP package directory
python3 --version
python3 code/troubleshoot_intervention_tracking.py triage
python3 code/troubleshoot_intervention_tracking.py manifest
python3 code/troubleshoot_intervention_tracking.py inject --case receipt_from_assignment
python3 code/troubleshoot_intervention_tracking.py inject --case outcome_before_delivery
python3 code/troubleshoot_intervention_tracking.py inject --case unknown_competing_care
python3 code/troubleshoot_intervention_tracking.py inject --case privacy_incident
python3 code/troubleshoot_intervention_tracking.py review-gate
python3 -m unittest discover -s tests -v
Expected clean output: "passed": true, randomized counts 52/48, observed eight-month counts 27/25, and "trial_sessions_verified": false. Injected-fault runs should return "passed": false with a diagnostic code; a deliberately rejected unsafe state is a successful negative test. The review gate must not grant permission to publish.
Scope: All scripts are offline educational validators. Their diagnostic codes do not establish actual Catalyst Grit application exceptions.
8. Troubleshooting
| Diagnostic | What it means | Resolution |
|---|---|---|
ASSIGNMENT_NOT_EXPOSURE |
Randomized assignment asserted to prove delivery | Mark receipt unknown until supported by independently verified session records |
OUTCOME_PRECEDES_DELIVERY |
Synthetic intervention event occurs after linked outcome | Reconcile source chronology, check timing assumptions and time zones |
DELIVERY_EVIDENCE_UNVERIFIED |
Claim of delivery lacks evidence | Preserve draft; request signed or authenticated source record |
COMPETING_EXPLANATIONS_MISSING |
Unrecorded co-interventions or changes in environment | Document measured factors and limitations; do not infer causation |
MISSING_NOT_ZERO |
Missing BDI-II follow-up silently recoded to zero | Restore null state from audit/source; report missing denominator |
INVALID_BDI_VALUE |
Out-of-range score or nonfinite observation | Quarantine; verify original scale-scoring documentation |
INSTRUMENT_VERSION_CHANGED |
Incompatible scoring or instrument revision | Block naive longitudinal interpretation pending psychometric review |
RESTRICTED_EXPORT |
Private data included in an export attempt | Block export, preserve audit evidence and follow incident procedure |
Some diagnostics are fault-injection design examples. They are not verified production server errors.
9. Reproducible Python checks
import sys
sys.path.insert(0, "code")
from troubleshoot_intervention_tracking import triage, inject
report = triage()
assert report["passed"]
assert report["randomized"] == {"BtheB": 52, "TAU": 48}
assert report["month8"]["BtheB"]["observed"] == 27
assert report["month8"]["TAU"]["observed"] == 25
assert not report["trial_sessions_verified"]
fault = inject("receipt_from_assignment")
assert not fault["passed"]
assert "ASSIGNMENT_NOT_EXPOSURE" in fault["diagnostics"]
Do not conflate a clean panel audit with scientifically valid treatment estimation. Statistical modelling requires a prespecified estimand, appropriate handling of repeated measures and missing outcomes, assessment of model uncertainty, and independent clinical/psychological review.
10. Psychometric and research interpretation
BDI-II totals are measurements of depressive symptoms under the instrument’s authorized administration and scoring rules. They are not a validated measure of Catalyst Grit recovery, character, grit, intervention fidelity, or psychological resilience. The file contains total scores, not necessarily the item-level responses needed to evaluate internal consistency, latent measurement invariance, or detailed missing-item handling.
Separate three evidential questions: (1) Was the participant assigned a program? (2) Was it delivered and received at a documented time, with known fidelity? (3) What change or comparative outcome is supported after appropriate missing-data and causal analysis? Do not collapse these into a single yes/no field.
For trial reporting, distinguish intention-to-treat from per-protocol or as-treated analyses, and document treatment deviations, concomitant care, assessment times, outcome completion, and adverse events. Loss to follow-up can bias observed-only averages; a bootstrap interval does not correct this selection mechanism.
11. Source-reviewed Catalyst Grit integration
Source reviewed at f9617160ffd276c6a6fd847b1e846bb5f73b07ae; production installation not verified.
| Repository file | Relevant actual behavior or boundary |
|---|---|
| README and release description | v2.0.0 connected human-systems platform, human-review and no diagnosis/ranking boundaries |
| Connected-platform documentation | Traceable stages and source artifact hashes; no silent invention of missing artifacts |
| Monitoring trends | Revision-linked immutable monitoring snapshots and trend governance |
| Methodology profile | Provenance, uncertainty and human review; recovery-condition signals not psychometric certification |
| Persistent workspace | Versioned records, append-only revisions and retention concepts |
| Institutional API | Scoped tokens and audit specification; no demonstrated intervention-trial receipt endpoint |
| Repository implementation | SQLite revision and monitoring repository implementation |
| Monitoring repository tests | Snapshot traceability and privacy examples |
| Canonical record schema | Recovery record contract, not a participant-treatment-event trial schema |
Reviewed product reference: v2.0.0 README pinned to source commit. No product issue or enhancement ticket was verified for this article. Proposed experimental event schemas and CLI tests are independent illustrative adapters, not production routes.
12. Repository checks and release evidence
git clone https://github.com/Content-Catalyst-LLC/catalyst-grit.git
cd catalyst-grit
git checkout f9617160ffd276c6a6fd847b1e846bb5f73b07ae
python3 scripts/release_contract.py
# With appropriate test dependencies installed:
python3 -m pytest tests/test_monitoring_trends.py -q
These repository commands are separate from the extracted package’s offline Python tests. A successful repository test is not a verification of live deployment, actual consent enforcement, or valid inference about psychological interventions.
13. Security and recovery
- For suspected unauthorized publication, disable the relevant public entry point, suspend unsafe exports, and use the organization’s approved response procedure.
- Record the affected project and environment, nonsecret log extracts, revision IDs, digests, minimal synthetic reproducer, and evidence of authorization. Do not disclose participant identifiers in public issues.
- Check project-scoped access, actor roles, consent status, replay/idempotency safeguards, and review transitions with staging identities.
- Retain append-only history; use a controlled correction or privacy-approved deletion procedure rather than overwriting original research evidence.
- Require service owner and research governance sign-off before reopening delivery/export paths or publishing affected analyses.
14. Resolution
Resolve intervention-tracking failures by preserving the original records and applying a documented, versioned correction. Do not silently overwrite history, infer actual intervention receipt from assignment, or turn a valid software record into an approved psychological finding.
- Assignment confused with receipt: Keep assignment unchanged; mark delivery, attendance and fidelity as unverified unless supported by authorized independent event evidence. Record the source identifier, reviewer, protocol version and time window.
- Chronology mismatch: Compare original event and assessment timestamps, timezone offsets, capture timestamps and protocol-defined exposure windows. Quarantine inconsistent events and attach a traceable correction instead of altering source observations.
- Duplicate or stale events: Reconcile by canonical event ID, participant/project scope, revision and idempotency key. Preserve append-only audit evidence, and reject stale updates pending owner review.
- Missing follow-up or misleading improvement: Recreate randomized denominators, visit-specific availability and reasons for missingness. Keep missing outcomes as missing, document the estimand, and require a predeclared sensitivity analysis before any comparative interpretation.
- Uncertain psychological measurement: Verify BDI-II scoring version, rights, item completeness, assessment mode, interpretation and longitudinal comparability. Halt claims of clinical benefit, grit or resilience measurement without appropriate independent review.
- Competing explanations: Disclose concurrent care, external conditions, protocol deviations, treatment crossover, differential follow-up and baseline differences when supported by evidence; label unavailable data as unknown, not absent.
- Security or publication incident: Stop affected exports/public visibility, preserve nonsecret logs and source digests, notify the authorized service/research owner, and require staged authorization and redaction tests before restoring access.
- Close the investigation: Record the failing fixture, diagnostic code, source hash, original and corrective revision IDs, reviewer decision, residual scientific uncertainty, and independently verified staging outcome. Saving a record does not grant publication approval.
Validation after resolution: Run python3 code/troubleshoot_intervention_tracking.py triage and python3 -m unittest discover -s tests -v against permitted local fixtures. Production remediation requires separate authorized staging evidence; offline success alone is not production verification.
15. Verification
| Check | Acceptance criterion | Status |
|---|---|---|
| Research source panel | 100 randomized; 52/48 assignments and 27/25 eight-month observations | Passed offline |
| Synthetic event integrity | Independent of published trial; valid timestamps and explicit non-receipt assumption | Passed offline |
| Fault detection | Unsupported receipt/causal claims, invalid BDI-II, timestamps, consent, revision and export | Passed offline |
| True delivery/fidelity evidence | Authorized actual event source and review | Not available in fixture |
| Scientific effect inference | Prespecified estimand, attrition sensitivity, psychometric and statistical review | Not established |
| Production security | Staging scope, consent, export and publication checks | NOT_RUN |
| Installed release | Deployed code hash, schema and plugin/service verification | Not verified |
Technical reproducibility cannot by itself certify psychometric validity, causal inference or production safety.
16. Scientific and technical references
- HSAUR — Beat the Blues dataset; randomized assignment and repeated BDI-II totals.
- Rdatasets — HSAUR/BtheB.csv; public distribution for independent data transcription verification.
- Hoffmann et al. — TIDieR intervention reporting checklist (BMJ 2014).
- CONSORT 2025 statement; reporting randomized trial methods and outcome data.
- National Research Council — The Prevention and Treatment of Missing Data in Clinical Trials (2010).
- Standards for Educational and Psychological Testing; principles for instrument validity and score interpretation.
17. Next steps and limitations
Use the companion Understand, Apply, Validate Scientifically and Developer Reference guides for the corresponding research workflows and integration contracts. Keep source-reviewed v2.0.0 separate from the as-deployed version. The installed software and participant-session tracking capabilities require explicit staging verification.
The original observations were carried from the companion research package; independent, row-by-row comparison against the upstream distribution remains an outstanding source-verification task. All failure injections are simulated, and no production systems or private study records were accessed.
