Worked Examples
Understand intervention tracking — Catalyst Grit
Understand intervention tracking in Catalyst Grit through real longitudinal psychological research observations, reproducible Python workflows, and source-reviewed engineering guidance. This article explains how to distinguish intervention assignment, delivery, participation, implementation fidelity, outcome measurement, and competing explanations while applying psychometric safeguards, missing-data analysis, and responsible research governance.
Application: Catalyst Grit
Article type: Concept / intervention tracking
Status: Verification pending
Last source-reviewed version: v2.0.0 (f9617160ffd276c6a6fd847b1e846bb5f73b07ae)
Last verified installed version: Not established
Estimated reading time: 24–32 minutes
1. Goal
Intervention tracking records when a program, support action, environmental change or other exposure was assigned, scheduled, offered, delivered, received, modified or stopped, and links those events to temporally appropriate outcome observations. Researchers need this history to interpret whether a change in psychological or human-system outcomes coincides with an intervention, a contextual event or a competing explanation.
A recorded event is evidence about workflow status, not proof of improvement, causation, clinical benefit, or an individual’s resilience. Catalyst Grit’s documented recovery-condition signals are not by themselves a validated psychometric instrument.
2. Requirements
Specify the study or operational goal, unit of analysis, eligible population, observation schedule, event clock/time zone, intervention version, source, reporter, lawful purpose, privacy classification, retention and designated human reviewers. Record study registration/protocol and an estimand before interpreting outcomes where applicable.
Last source-reviewed software version: Catalyst Grit v2.0.0, commit f9617160ffd276c6a6fd847b1e846bb5f73b07ae. Last verified installed version: not established. The included Python tooling is an independent educational reference adapter, not a confirmed installed Catalyst Grit endpoint or intervention tracking control.
3. Intervention events are not outcomes
| Entity/event | Meaning | Required evidence |
|---|---|---|
| Assignment | Participant allocated to an intervention/comparator | Allocation source, time, randomization or selection method |
| Planned/Offered | Session scheduled or intervention made available | Schedule, provider, planned intensity, source |
| Delivered | Provider supplied intervention component | Fidelity record, dosage/content, real timestamp |
| Received/Attended | Participant accessed or took part | Authorized attendance or engagement record |
| Modified/Discontinued | Exposure was changed or stopped | Reason, responsible person, effective time, revision |
| Outcome measurement | Psychological or functional result observed | Instrument, version, scoring, reporter, timing, missingness status |
| External contextual change | Policy, environment or concurrent program changed | Independent event source and time |
Critical distinction: randomization/assignment is not equivalent to attendance, treatment dose, adherence, or fidelity; none of those is equivalent to improvement. Track planned and actual delivery separately.
4. Study design, causal estimands and competing explanations
Define whether the estimand concerns assignment (an intention-to-treat comparison), receipt under a justified adherence model, or a nonrandomized association. Do not reclassify participants according to post-assignment adherence without addressing selection and time-varying confounding. Record baseline severity, concomitant care, prior exposures, change in service provision, environmental events, assessment timing, regression to the mean and history/maturation effects.
Use an appropriate design—randomized study, comparison cohort, interrupted time series, stepped-wedge or approved within-person study—and state the assumptions needed. Temporal precedence alone does not show causation; parallel policy changes or clinical care can explain trends.
5. Published psychological research fixture
The publicly distributed Beat the Blues dataset summarizes 100 randomized patients assigned to computerized cognitive behavioral therapy (BtheB) or treatment as usual (TAU). It includes baseline and follow-up Beck Depression Inventory-II (BDI-II) total scores and limited baseline descriptors. Source attribution: Proudfoot et al. (2003), Psychological Medicine, 33(2), 217–227. The included CSV is a local transcription of the published HSAUR/Rdatasets educational data, not direct access to trial clinical records.
| Arm | Randomized assignment | 2-month observed | 8-month observed | 8-month observed-only BDI-II mean |
|---|---|---|---|---|
| Beat the Blues | 52 | 52 | 27/52 (51.9%) | 8.85 |
| Treatment as usual | 48 | 45 | 25/48 (52.1%) | 13.60 |
BDI-II is a depression symptom instrument, not a grit measure. Higher scores indicate more symptoms; scores are descriptive here. The included wide-form CSV columns are bdi.pre, bdi.2m, bdi.4m, bdi.6m and bdi.8m. Documentation of some other package distributions uses different follow-up labels; the analysis explicitly follows the packaged CSV’s column names and requires protocol-level time verification for definitive interpretation.
The data record assignment but not session-by-session attendance, fidelity, actual dosage, start or discontinuation dates. Those must never be inferred from assignment or from improving scores. The separately packaged synthetic_events.json is wholly fictional training data and unrelated to the trial patients.
6. Procedure
- Scope the question: identify program, comparator, target population, primary outcome, time window, estimand and research permissions.
- Establish an allocation ledger: freeze participant identifiers (pseudonymous where justified), source, group assignment, assignment time and inclusion criteria; do not derive receipt from assignment.
- Record the implementation timeline: retain planned, offered, delivered, attended, modified and discontinued events with independently sourced timestamps, program version, reason and actor.
- Link outcomes: join observations to participant IDs, instrument/scoring versions and actual assessment times; retain missingness and scheduling deviations.
- Capture concurrent changes: medication, other care, environment, policy or service access where lawful and methodologically necessary; label unmeasured alternatives explicitly.
- Audit denominators: report randomized/eligible counts, observed counts at each wave, withdrawals, missing visits, and outcome availability by arm.
- Analyze cautiously: differentiate descriptive observed means, assignment-based estimates, adherence analyses and causal claims; examine missingness and sensitivity.
- Obtain review: verify source hashes, reproducibility, psychometric comparability, privacy, conflicts of interest and scientific approval.
- Publish within bounds: share aggregate, appropriately reviewed conclusions; retain private event and audit evidence, never hidden human scoring.
7. Terminal and command-line example
# From the extracted ZIP package directory, Python 3 standard library only
python3 code/intervention_tracking.py audit
python3 code/intervention_tracking.py events
python3 code/intervention_tracking.py hash
python3 code/intervention_tracking.py inject --case invented_receipt
python3 code/intervention_tracking.py inject --case early_delivery
python3 code/intervention_tracking.py inject --case missing_consent
python3 -m unittest discover -s tests -v
# macOS local checksum check
shasum -a 256 data/BtheB_HSAUR_published.csv
Expected: audit passes on the bundled source with 52 BtheB and 48 TAU assignments; at month 8, only 27 and 25 scores are present. The event fixture is labeled synthetic and should pass its own contract check. Injection commands deliberately report diagnostic blockers; that is their expected outcome.
8. Python example: descriptive denominators
import sys
sys.path.insert(0, "code")
from intervention_tracking import audit
report = audit()
assert report["passed"]
for arm, rec in report["summary"].items():
final = rec["visits"]["8"]
print(arm, "assigned:", rec["assigned"],
"month 8 observed:", final["observed"],
"missing:", final["missing"],
"observed-only mean:", final["mean_observed"])
These are observed-only descriptive summaries. They do not adjust for missing outcomes, baseline imbalances, selective adherence, or confounding. Neither the mean difference nor a decreasing within-arm trend establishes a treatment effect.
9. Engineering data contract — proposed, not deployed
{
"project_id": "TEACHING-ONLY",
"participant_key": "synthetic-P1",
"intervention_id": "program-demo-v1",
"event_id": "teaching-event-001",
"assignment": "BtheB",
"event_kind": "attended",
"planned_at": "2026-01-10T12:00:00Z",
"occurred_at": "2026-01-10T12:15:00Z",
"source_ref": "synthetic-attendance-log",
"consent_authorized": true,
"visibility": "private",
"review_state": "draft",
"expected_revision": 1,
"actual_revision": 1
}
The JSON is a fictional, proposed example contract, not a real patient or confirmed Catalyst Grit API payload. A production design also needs tenant-scoped authorization, event idempotency, retention, approved data dictionary, immutable corrections, evidence digest, audit and publication control. An intervention event may be captured without promotion from draft to approved.
10. Implementation quality and fidelity
Use the TIDieR framework to distinguish the materials and procedures intended, provider, delivery setting, schedule and intensity, tailoring, permitted modifications, planned fidelity and actually documented fidelity. For environmental interventions, track exposure boundaries, location, affected population, policy effective date and simultaneous changes.
Time-varying engagement can be related to baseline severity and later symptoms; adherence comparisons may be biased even after random allocation. Preserve reasons for nonattendance and partial exposure without coercive follow-up or revealing confidential clinical content.
11. Psychometric and psychological interpretation
BDI-II scores in the example reflect a depression instrument, not resilience or grit. Appropriate assessment requires the exact licensed measure, scoring guidance, item-level missingness rules, mode and language equivalence, reliability, longitudinal measurement invariance, differential item functioning where relevant, and clinically appropriate oversight. The package does not reproduce proprietary BDI-II items or imply clinical diagnosis.
A change in symptom severity is not automatically attributable to a program. For Catalyst Grit, recovery-condition monitoring should not be recast as a validated mental-health, grit or personality score without independent construct-validation evidence.
12. Missing data, competing interventions and uncertainty
At eight months, almost half of the randomized participants have no observed outcome in the teaching extract. Report denominators per wave and intervention arm; consider whether nonresponse depends on severity, engagement or other factors. Analyze prespecified assignment-based estimands using defensible methods, possibly mixed-effects models or multiple imputation under stated assumptions, with sensitivity analysis to departures from missing at random. No method can prove missing-at-random from observed data alone.
The CONSORT 2025 statement requires explicit reporting of analysis population, missing outcomes, intervention delivery and concomitant care. Describe the role of medication (drug) and episode length (length) where methodologically justified, while recognizing they do not capture all concurrent influences.
13. Fault injection and negative tests
| Offline simulated failure | Expected blocker | Recovery |
|---|---|---|
| Assignment asserted as treatment received | ASSIGNMENT_NOT_EXPOSURE |
Restore independent attendance/fidelity evidence |
| Delivery timestamp earlier than planned | EVENT_PRECEDES_PLAN |
Reconcile clock, timezone and event provenance |
| Repeat event ID | DUPLICATE_EVENT_ID |
Apply idempotent reconciliation and append-only correction |
| Different project scope | PROJECT_SCOPE_MISMATCH |
Block transfer; review actor and project authorization |
| Withdrawn/nonexistent authorization | CONSENT_NOT_ESTABLISHED |
Pause collection and resolve lawful basis |
| Draft requested for publication | PUBLICATION_REVIEW_MISSING |
Require authorized human review |
| Unvalidated resilience assertion | PSYCHOMETRIC_CLAIM_UNSUPPORTED |
Remove claim pending independent validation |
These codes are defined by the offline teaching adapter, not documented product error messages. Other negative tests cover stale revision, private-data disclosure, unsupported causality, invalid event kinds and public visibility.
14. Catalyst Grit source-reviewed integration
| Repository evidence | Verified source concept | Not established |
|---|---|---|
| v2.0.0 README | Human-systems recovery/learning workflow and governance boundaries | Installed intervention-event UI |
| Monitoring trends | Immutable snapshots linked to revisions and hashes; at least two snapshots for trend | Clinical treatment-response tracking |
| Methodology profile | Evidence provenance, assumptions and review states | Psychometric validation |
| Persistent workspace | Private records, revision and audit history, retention boundaries | Trial assignment/exposure schema |
| API documentation | Scoped token, audit and publication governance documentation | Specific intervention API endpoint |
| Monitoring tests | Snapshot integrity and privacy tests | Randomized-trial analysis validation |
Repository tests can be checked on the pinned source with:
git clone https://github.com/Content-Catalyst-LLC/catalyst-grit.git
cd catalyst-grit
git checkout f9617160ffd276c6a6fd847b1e846bb5f73b07ae
python3 scripts/release_contract.py
# After installing the repository's test dependencies:
python3 -m pytest tests/test_monitoring_trends.py -q
The pinned source references are not evidence that production has been deployed or that any trial dataset is part of Catalyst Grit.
15. Privacy, consent and ethical boundaries
Protect participant confidentiality, especially psychological and clinical observations. Research authorization, protocol, retention, and approved sharing take precedence over convenience. Where possible, keep individually identifiable events in approved restricted systems, use synthetic data for public bug reports, and avoid small-cell or linkage disclosures in summaries.
Catalyst Grit must not be used to diagnose, rank, predict or automate eligibility or performance decisions about individuals. Consent for participation, consent for data collection, research ethics clearance, and system access rights are distinct questions requiring their own governance.
16. Verification and acceptance
| Criterion | Evidence | Status |
|---|---|---|
| Assignment vs actual receipt | Independent, versioned event types and provenance | Reference adapter tested; product unverified |
| Longitudinal data integrity | 100 distinct patients, five timepoints, arm denominators | Offline tests passed |
| Source reproducibility | CSV SHA-256, archived publication references, method manifest | Local transcribed data verified internally |
| Correct psychometric interpretation | Independent clinical/psychometric review and scoring authorization | Not performed |
| Production access control | Tenant, project, consent, token, API and export negative tests | Staging not run |
| Publication | Human approval, aggregate privacy review, limitations statement | Not approved by this document |
Acceptance standard: outcomes preserve intervention timing, measurement times, missingness, implementation evidence and competing explanations; all causal and psychometric claims remain correctly qualified.
17. References and next lessons
- HSAUR — Beat the Blues data documentation and Proudfoot et al. (2003), Psychological Medicine, 33(2), 217–227.
- Rdatasets public BtheB CSV. The package includes a transcription for reproducibility; check source before external reuse.
- Hoffmann et al. (2014). TIDieR checklist and guide.
- CONSORT 2025 statement: intervention reporting and missing outcomes.
- Standards for Educational and Psychological Testing: validity and score interpretation principles.
Continue with the companion Apply intervention tracking, Validate scientifically intervention tracking and Developer reference for intervention tracking articles when available. No companion article is claimed to be currently published.
