Worked Examples
Apply intervention tracking — Catalyst Grit
Apply intervention tracking in Catalyst Grit using real longitudinal psychological research observations, reproducible Python workflows, and source-reviewed engineering guidance. This operational guide explains how to document intervention assignment, delivery, participation, timing, fidelity, competing environmental factors, psychological outcomes, missing follow-up data, and privacy-preserving research governance.
Application: Catalyst Grit
Article type: Operational / intervention tracking
Status: Verification pending
Last source-reviewed version: v2.0.0 (f9617160ffd276c6a6fd847b1e846bb5f73b07ae)
Last verified version: Not verified — no installed-release verification evidence available
Last verified installed version: Not established
Estimated reading time: 24–32 minutes
1. Goal
Apply intervention tracking to document what changed, for whom, when, on whose authority, and with what evidence in a longitudinal psychology study or a governed human-systems project. Preserve each planned, delivered, attended, changed, paused, or discontinued event separately from outcome measurements. A record of assignment, a completed workflow, or an improving scale score does not itself prove that an intervention was received, delivered with fidelity, or effective.
Success means a reviewer can reconstruct the intervention timeline, competing exposures, measurement schedule, source versions, missing outcomes, access controls and scientific caveats without relying on undocumented assumptions.
2. Requirements
- Defined research population, program/project, protocol version, unit of analysis, time windows and a prespecified research question or estimand.
- Valid research permission, lawful processing basis or consent where required; instrument licenses; an approved private working environment.
- Stable pseudonymous participant and event identifiers, protected mapping to any identity registry, timezone-aware timestamps and intervention version.
- Distinction between randomization/assignment, offer, planned dose, delivery, receipt/attendance and measured outcomes.
- Independent scientific and engineering review for publication, particularly when psychological or clinical claims are made.
Last source-reviewed Catalyst Grit version: v2.0.0 (f9617160ffd276c6a6fd847b1e846bb5f73b07ae). Last verified installed version: not established. Reference-adapter code included with this guide is not a certified Catalyst Grit endpoint.
3. Research example — real outcomes, synthetic events
The published HSAUR::BtheB data describe 100 participants assigned to computerized cognitive-behavioral therapy (Beat the Blues) or treatment as usual (TAU). Outcomes are Beck Depression Inventory-II (BDI-II) scores at baseline and scheduled follow-ups (months 2, 4, 6, 8). This is a dataset of assignment and observed scores, not verified treatment sessions, adherence, implementation fidelity or detailed contemporaneous environmental exposures.
| Arm | Assigned | Month 8 score observed | Missing at month 8 |
|---|---|---|---|
| Beat the Blues | 52 | 27 (51.9%) | 25 |
| Treatment as usual | 48 | 25 (52.1%) | 23 |
The package keeps those published measurements unchanged in a source CSV. A second file contains two explicitly synthetic intervention events, unrelated to real trial participants. Never join the demonstration events to actual participant IDs or present them as real intervention delivery.
4. Intervention-event contract
| Field | Purpose | Evidence/constraint |
|---|---|---|
project_id, participant_key, event_id |
Link scoped study/event records | Stable, unique, pseudonymous and project-authorized |
intervention_id, version |
Identify exact program/protocol | Versioned definition and permitted variations |
assignment, event_kind |
Separate arm assignment from actions | Assignment cannot substitute for verified delivery |
planned_at, occurred_at |
Record temporal order | Timezone-aware timestamps; corrections versioned |
source_ref, evidence_verified |
Document source trail and evidence quality | Signed/approved logs where applicable; missing evidence remains missing |
consent_authorized, visibility |
Privacy and processing constraints | Private by default; authorize in real system |
expected_revision, actual_revision |
Concurrency protection | Reject or reconcile stale updates |
review_state, publication_requested |
Governance and release | Successful storage is never human approval |
This is a proposed research adapter contract. The example JSON validates a minimal event representation; actual exposure systems require additional fields for dose, provider, completion/fidelity criteria, adverse events, and authorized corrections. It is not an existing production database schema.
5. Procedure
- Define the question: State population, intervention, comparator, estimand, outcome instrument, follow-up schedule, hypothesis and which observations establish success.
- Acquire authorized evidence: Confirm study consent/authorization, licenses, source versions, minimum necessary fields, project membership and retention obligations.
- Preserve baseline sources: Hash the immutable intervention-assignment and outcome extracts, and record protocol/version, acquisition time, reviewer and access context.
- Build an event chronology: Record planned and actual timestamps, event type and source; include changes to program, environmental conditions, concurrent services and any competing interventions.
- Verify exposure: Do not equate assigned arm with actual receipt; require attributable evidence for attended/delivered events and document dose, discontinuation and fidelity if available.
- Link outcomes carefully: Keep instrument/scale version, valid time windows, assessment method and missingness state distinct from exposure records. Do not overwrite historical responses.
- Run the terminal validation: Audit published outcomes, validate synthetic event contracts, inject known failures, and inspect diagnostics against expected outputs.
- Assess scientific threats: Separate descriptive time order from causality; review regression to mean, confounding, treatment contamination, concurrent events, baseline severity, selective attrition, measurement equivalence and sensitivity assumptions.
- Complete independent review: Preserve adjustment choices, missingness, estimate uncertainty, decisions, redactions and a human sign-off before any publication or external handoff.
6. Terminal setup and source verification
# Commands run from the extracted ZIP's package folder.
python3 --version
python3 code/intervention_tracking.py audit
python3 code/apply_intervention_tracking.py manifest
python3 code/apply_intervention_tracking.py procedure
# Compare included data against the package manifest on macOS:
shasum -a 256 data/BtheB_HSAUR_published.csv data/synthetic_events.json
Expected: 100 published rows, arm counts 52/48, month-eight outcomes 27/25, two synthetic events accepted for offline testing, and offline_validated_not_published. These scripts require only Python 3 and never access an institutional repository or WordPress.
7. Implementation: validate a synthetic event
import sys
sys.path.insert(0, "code")
from apply_intervention_tracking import apply_event_contract, procedure
from intervention_tracking import example
events = example() # explicitly synthetic fixture
errors = apply_event_contract(events[0])
assert errors == [], errors
result = procedure(events)
assert result["status"] == "offline_validated_not_published"
assert not result["violations"]
print(result["dataset"]["assigned"])
The reference adapter checks required identifiers and private-state assumptions, UTC-compatible timestamps, duplicate events, version conflicts and documentary evidence for attendance/delivery. These checks illustrate implementation design; they do not authenticate a caller against actual Catalyst Grit or verify external logs.
8. Negative tests and expected failures
# Each command deliberately corrupts a synthetic event:
python3 code/apply_intervention_tracking.py inject --case false_receipt
python3 code/apply_intervention_tracking.py inject --case missing_evidence
python3 code/apply_intervention_tracking.py inject --case time_reversed
python3 code/apply_intervention_tracking.py inject --case stale_revision
python3 code/apply_intervention_tracking.py inject --case cross_project
python3 code/apply_intervention_tracking.py inject --case publish_draft
python3 code/apply_intervention_tracking.py inject --case duplicate_event
python3 -m unittest discover -s tests -v
Each injected case should produce status: needs_review and a nonempty violations array. Typical diagnostic codes include ASSIGNMENT_NOT_EXPOSURE, DELIVERY_EVIDENCE_UNVERIFIED, EVENT_PRECEDES_PLAN, STALE_REVISION, PROJECT_SCOPE_MISMATCH and PUBLICATION_REVIEW_MISSING. They belong to this packaged reference harness, not verified production API error codes.
9. Troubleshooting
Use the local research adapter only on public or authorized synthetic fixtures. Its diagnostics are reference checks, not confirmed Catalyst Grit server messages. The published Beat the Blues records show assignment and measured outcomes but do not contain actual treatment-session logs.
| Symptom | Check | Safe resolution |
|---|---|---|
| Assignment reported as intervention receipt | Compare randomized treatment label with separately sourced attendance or delivery evidence | Mark actual receipt unknown until independently documented; do not infer sessions |
| Intervention appears to occur after an outcome or before assignment | Inspect event and assessment timestamps, time zones, allowed windows and original evidence | Quarantine inconsistent events; reconcile against source without rewriting history |
| Duplicate or contradictory delivery events | Check event IDs, participant linkage, protocol version, idempotency keys and revision history | Reconcile duplicates with an append-only correction, retaining provenance |
| Apparent treatment benefit despite missing follow-up | Report assigned denominators and visit-level missingness by arm; assess selection and competing explanations | Qualify descriptive findings; require prespecified missing-data and sensitivity analyses |
| BDI-II values cannot be compared across visits | Check instrument version, score direction, item missingness, scoring rules and longitudinal comparability | Do not claim psychological change until appropriate psychometric review |
| Private data visible or draft marked approved | Inspect project permissions, consent, publication state, export redaction and audit history | Disable the unsafe publication path, preserve evidence and escalate to the designated owner |
Reproduce reference failures locally:
python3 code/intervention_tracking.py audit
python3 code/apply_intervention_tracking.py inject --case false_receipt
python3 code/apply_intervention_tracking.py inject --case missing_evidence
python3 code/apply_intervention_tracking.py inject --case time_reversed
python3 code/apply_intervention_tracking.py inject --case publish_draft
python3 -m unittest discover -s tests -v
For each detected failure, record the input fixture hash, command and diagnostic output, source revision, research interpretation, privacy classification and reviewer decision. An expected negative-test rejection is not evidence of a deployed authorization control. If a production leak or publication bypass is suspected, stop further exports and follow the approved incident-response process.
10. Outcome linkage and psychometric considerations
Use an instrument’s official scoring and licensing requirements. The published BDI-II scores are repeated outcome measurements, not proof that a specific number of therapy sessions occurred. If more than one form, language, mode or scoring version was used, examine longitudinal measurement invariance and possible differential item functioning before interpreting change.
Specify how missing items, missed study visits, withdrawals and ineligibility are handled. Do not treat missing scores as zero, assume all missingness is random, or regard symptom change as demonstrated program efficacy. Psychological outcomes require denominators, uncertainty intervals, a suitable estimand and an appropriate analysis of the randomization, timing, attrition and plausible confounding. A fitted model does not validate a psychological construct.
11. Competing explanations and causal boundaries
Record therapy outside the assigned program, changes in provider, medication, work or home circumstances, measurement timing, seasonality, secular trends, spontaneous change, regression to the mean and other concurrent programs when ethically and lawfully observed. Such records should carry source, time and uncertainty, not automatically become causal adjustment variables.
For a randomized assignment contrast, an intention-to-treat estimand differs from a per-protocol or treatment-received estimand. Missing outcome data can still bias all three. A descriptive observed-only BDI-II mean is not an unbiased treatment-effect estimate and should not be labeled clinically effective. The published extract does not provide all session-exposure facts necessary for fidelity or dose-response analysis.
12. Security, publication and safe recovery
- Use de-identified teaching fixtures for public debugging; do not insert participant identifiers, psychotherapy details, or confidential events into issue trackers.
- Reject cross-project writes; require real application-side authorization, separate from an example boolean
consent_authorized. - Retain append-only versions and approved correction history; do not delete prior records solely to force a passing validation.
- Do not allow autosaves to change draft records to approved states; require reviewer identity, rationale, date and authorization evidence.
- Block external publication when consent, evidence, group suppression, privacy or human approval requirements are unresolved.
- Escalate suspected leakage, audit failures and unauthorized release through the service owner and applicable research-ethics/privacy channels.
13. Source-reviewed Catalyst Grit integration
The following are actual source artifacts at the pinned repository commit, not invented intervention-tracking endpoints.
| Source | Relevant capability/limitation |
|---|---|
| Release README | v2.0.0 platform scope, CLI examples, nonclinical boundaries |
| Monitoring and trends | Immutable revision-linked snapshots; at least two snapshots for trend reporting |
| Methodology profile | Evidence/assumptions and methodological version |
| Persistent workspace | Append-only records, source hashes and retention |
| Private WordPress workspace | Private authenticated interface distinct from public demo |
| API specification | Token scoping and governance, not proof of a specific intervention event route |
| Repository implementation | Record persistence and monitoring snapshots |
| Monitoring tests | Revision traceability and privacy test coverage |
For further integration verification, inspect the pinned Catalyst Grit source locally:
git clone https://github.com/Content-Catalyst-LLC/catalyst-grit.git
cd catalyst-grit
git checkout f9617160ffd276c6a6fd847b1e846bb5f73b07ae
python3 scripts/release_contract.py
# With repository development dependencies installed:
python3 -m pytest tests/test_monitoring_trends.py -q
Reviewed product version reference: Catalyst Grit v2.0.0 release-description README at the inspected commit. This is source-level documentation, not evidence of a verified installed release. No linked known issue or product suggestion has been independently verified.
No built-in participant-session event store, BDI-II scoring integration or validated intervention-effect estimator is established by this source review. Such functionality requires explicitly designed and tested integration.
14. Verification and acceptance criteria
| Requirement | Local evidence | Status |
|---|---|---|
| Published BtheB source has 100 distinct records | CSV audit | Offline tested |
| Assignment and outcome counts remain explicit | 52/48 assigned; 27/25 month-eight observed | Offline tested |
| Time and provenance check | Local event adapter and SHA-256 manifest | Offline tested |
| Invalid event and publication states detected | Negative test fixtures | Offline tested |
| Deployed permissions, persistence and publication | Actual staging test with role matrix | Not run |
| Instrument measurement quality and research conclusions | Independent psychology/statistics/ethics review | Not run |
| Live installed software identity | Deployed commit/plugin/service release evidence | Not established |
Passing offline validation does not prove scientific accuracy, clinical benefit or production safety. The definitive acceptance criterion is documented intervention timing with honest exposure uncertainty, outcome provenance, competing explanations and reviewed limitations.
15. Scientific and technical references
- HSAUR — BtheB dataset documentation and public CSV source.
- Hoffmann et al., TIDieR intervention description and replication checklist.
- CONSORT-SPIRIT reporting guidance for randomized trials and protocols.
- National Research Council — Prevention and Treatment of Missing Data in Clinical Trials.
- Standards for Educational and Psychological Testing for interpretation, scoring and test-use considerations.
16. Next steps and limitations
Use the companion Understand Intervention Tracking guide for the core distinction between assignment, delivery and outcomes, then the scientific-validation and developer guides when those become available. For a real research project, obtain access to authorized session-level evidence and a study-specific statistical analysis plan before drawing treatment or resilience conclusions. No such session logs are present in this published BtheB teaching extract.
This guide documents a research and engineering workflow, not a currently verified WordPress screen, a Catalyst Grit API route, clinical guidance or an efficacy determination. Keep verification pending until independent review and staging acceptance are completed.
