Troubleshooting
Troubleshoot missing follow-up data — Catalyst Grit
Troubleshoot missing, inconsistent, or misleading longitudinal follow-up data in Catalyst Grit using real psychological research observations, reproducible Python diagnostics, and source-reviewed engineering contracts. This guide includes terminal commands, simulated dropout scenarios, psychometric measurement safeguards, provenance checks, privacy and publication controls, and evidence-based recovery procedures for scientifically defensible research.
Application: Catalyst Grit
Article type: Troubleshooting / longitudinal psychology research / engineering
Last source-reviewed version: v2.0.0 (f9617160ffd276c6a6fd847b1e846bb5f73b07ae)
Last verified installed version: Not established
Status: Published guidance — verification pending
Estimated reading time: 27–35 minutes
1. Goal
This guide helps researchers, psychometricians, and engineers diagnose missing longitudinal follow-up observations without converting nonresponse into an unsupported resilience or clinical conclusion. The acceptance criterion is explicit disclosure of eligible sample sizes, missingness patterns, analysis assumptions, plausible selection bias, source provenance, and independent review decisions.
Catalyst Grit’s monitoring snapshots are software-defined recovery-condition signals, not established psychological grit scales. A successfully stored snapshot or a fitted longitudinal model is neither scientific validation nor evidence of an individual psychological trait.
2. Requirements
- A predefined cohort, eligibility rule, repeated-measure schedule, estimand, and documented follow-up time windows.
- Permission to process the observations, consent or other lawful basis, a retention plan, and a private authorized analysis environment.
- Immutable original response data plus an explicitly labeled synthetic fault-injection layer for training.
- Documented instrument, language, scoring key, measurement units and instrument version; psychometric review where applicable.
- Python 3 for bundled offline diagnostics. Optional statistical modelling requires additional independently installed libraries.
- Distinct source-review and production-verification states; no unsupported assertion of an installed Catalyst Grit API for attrition modelling.
Last source-reviewed release: Catalyst Grit v2.0.0, commit f9617160ffd276c6a6fd847b1e846bb5f73b07ae. Last verified installed version: not established. The package’s standalone diagnostic tool is not part of the deployed Catalyst Grit product.
3. Symptoms
| Symptom | Possible explanation | First check |
|---|---|---|
| Follow-up mean improves despite worsening individual trajectories | Selective nonresponse, changed eligibility, scoring changes, Simpson’s paradox | Responder/nonresponder baselines and wave denominators |
| Unexpected zero scores | Missing coded as zero or failed import | Null value and response-status distinction |
| Different results after export/reimport | Source changed, record revised, instrument version drift | SHA-256 digest and revision identity |
| Study has fewer participants but reports 100% completion | Denominator restricted to respondents | Eligible cohort and scheduled visits |
| Loss of a single visit treated as permanent dropout | Intermittent nonresponse not distinguished from withdrawal | Participant-wave timeline |
| Unapproved result appears publicly | Role, review or publication control failure | Disable public path and inspect scoped audit trail |
| Repeated measures show apparent growth in resilience | Invariance failure or unvalidated construct interpretation | Instrument design and independent psychometric review |
4. Cause
Missing follow-up data arise from missed visits, temporary nonresponse, scheduled-procedure failures, withdrawal, ineligibility, technical capture errors, lost linkage, selective burden, changing study access, or true dropout. They may be completely at random (MCAR), conditionally at random under an assumed observed-data model (MAR), or missing not at random (MNAR). These are inferential assumptions, not classifications that ordinary logging can conclusively establish.
Researchers must separate item nonresponse from person-wave nonresponse, intermittent missingness from permanent discontinuation, and missed observations from analytically excluded observations. Engineers must preserve explicit status and provenance rather than treating every absent numerical value as zero.
In psychometrics, changes in scale version, language, mode, scoring, item difficulty or factor structure can also make longitudinal differences uninterpretable. Reliability at one time point does not prove longitudinal measurement invariance.
5. Real psychological research fixture
The published lme4::sleepstudy dataset contains 180 reaction-time measurements (milliseconds) from 18 participants over Days 0–9 of a sleep-restriction study. Reaction time is a cognitive-performance outcome, not a grit or resilience measure. The original source is preserved separately from a deliberately simulated response mask covering 18 cells from six participants on Days 7–9.
| Day 9 comparison | Result | Interpretation |
|---|---|---|
| Full observed source (18 participants) | 350.85 ms | Known reference with no original missing cells |
| After synthetic dropout (12 observed) | 336.06 ms | Observed-only mean in teaching scenario |
| Difference | -14.79 ms | Selection difference induced by masking |
| Day 9 follow-up response | 12/18 = 66.7% | Six eligible observations intentionally hidden |
The intact data let engineers compare corrupted, incomplete and repaired analytical views against a known answer. The masking represents a hypothetical research process; it is not actual dropout in the original sleepstudy trial.
6. Procedure
- Protect the source: Copy permitted records into an access-controlled environment; record source digest, collection procedure and authorization. Never debug with live identifiable records in public repositories.
- Establish the denominator: Reconstruct enrolled, eligible, scheduled, observed, temporarily missing, withdrawn and ineligible states for each wave.
- Run offline triage: Check panel keys, scheduled days, numeric values, source integrity, mask provenance and response status.
- Compare responders: Examine observed baseline covariates, psychological instruments, site, timing, and known reasons for nonresponse; disclose small sample limits.
- Verify measurement equivalence: Check the original instrument, scoring version, item patterns, internal consistency, and longitudinal measurement invariance before interpreting change.
- Reproduce the failure: Run fault-injection fixtures in isolation and inspect diagnostic codes; never modify original observations.
- Evaluate analysis options: Depending on the estimand, justify observed-only results, mixed-effects modelling, multiple imputation, inverse-probability weighting and sensitivity analysis. Do not assume any method eliminates MNAR bias.
- Check governance: Confirm participant privacy, review states, project permissions, retention, publication boundaries and research-ethics approval.
- Record the recovery: Preserve hashes, test results, methodological decisions, reviewer identity and unresolved uncertainties in a versioned evidence trail.
7. Troubleshooting
Use the diagnostic commands and error-code table in the following sections to isolate input corruption, provenance faults, missingness classification errors and authorization risks. The research adapter does not repair or alter original source observations automatically.
8. Terminal troubleshooting workflow
# From the extracted troubleshooting package directory:
python3 --version
python3 code/troubleshoot_followup.py triage
python3 code/troubleshoot_followup.py inject --case duplicate
python3 code/troubleshoot_followup.py inject --case missing_as_zero
python3 code/troubleshoot_followup.py inject --case missing_provenance
python3 code/troubleshoot_followup.py publication-gate
python3 code/developer_followup.py sensitivity --delta 40
python3 -m unittest discover -s tests -v
# macOS SHA-256 integrity inspection
shasum -a 256 data/sleepstudy_original.csv data/synthetic_missingness_overlay.csv
Expected triage: "passed": true; Day 9 eligible 18, observed 12, missing 6, response rate approximately 0.666667. Expected fault-injection outputs have "passed": false and a specific diagnostic code. A blocked publication-gate result is expected when a human review has not occurred.
All commands above run on the included offline research adapter with Python’s standard library. They do not access Catalyst Grit production, and the intentionally corrupt fixtures are not persisted to the original dataset.
9. Diagnostic codes and recovery
| Code | Meaning | Safe recovery |
|---|---|---|
DUPLICATE_OVERLAY_WAVE |
Two rows for a participant/day key | Quarantine duplicate; reconcile using primary records and revisions |
MISSING_VALUE_NOT_NULL |
Simulated missing observation retained a numeric value, commonly zero | Separate nonresponse from observed zero; preserve original source |
SOURCE_VALUE_ALTERED |
Observed source value differs from read-only reference | Compare evidence hash, correction history and import transformations |
MASK_PROVENANCE_ABSENT |
Simulated missingness is not labeled | Block analysis release; restore provenance and simulation manifest |
OVERLAY_COVERAGE_MISMATCH |
Required participant-wave key absent | Rebuild scheduled visit grid and report unresolved cases |
INVALID_RESPONSE_STATUS |
Unknown status mapped into outcome row | Reject and document supported vocabulary |
INVALID_SOURCE_OBSERVATION |
Invalid numeric input or invalid wave | Quarantine record; obtain corrected primary evidence |
HUMAN_APPROVAL_MISSING |
Draft has no documented approval | Do not publish; request authorized human decision |
Diagnostic codes are defined by the bundled reference checker, not confirmed Catalyst Grit server error codes.
10. Python and optional model checks
# Python standard-library diagnostics
import sys
sys.path.insert(0, "code")
from troubleshoot_followup import read_csv, inspect_panel, SOURCE, OVERLAY
from developer_followup import audit, sensitivity
result = inspect_panel(read_csv(SOURCE), read_csv(OVERLAY))
assert result["passed"]
assert result["wave_profile"][9]["observed"] == 12
print(audit()["day9_observed_mean_ms"])
print(sensitivity(40)["scenario_mean_ms"])
For inferential research, an analyst may additionally fit a mixed-effects model using statsmodels or R’s lme4, inspect convergence, account for repeated measurement and then compare an approved sensitivity model. Such a model is distinct from data-integrity triage. Do not interpret a successful model fit as evidence that missingness is MAR, that instrument scores are invariant, or that recovery conditions measure a validated psychological construct.
11. Resolution
Choose a documented resolution by diagnostic class: restore an immutable source copy for tampering; reconcile duplicates against event history; represent unknown observations as null with explicit response status; correct denominators; re-run sensitivity analysis after methodological review; and keep publication disabled until independent privacy and scientific sign-off. Never erase earlier revisions merely to obtain a passing diagnostic result.
12. Psychometric interpretation and sensitivity
For multi-item psychological measures, diagnose whether entire follow-up waves are absent or whether only items are omitted. Preserve item-level data under the relevant licensing and consent conditions. Examine scale score rules, dimensionality, item response functioning, longitudinal factor invariance, and differential item functioning before comparing latent scores over time.
A useful teaching sensitivity calculation sets the hypothetical missing-group Day 9 mean to observed_mean + delta, where delta is a reviewer-selected shift, not a fitted treatment effect. With 12 observed and six missing participants, the illustrative full-cohort mean is (12 × observed_mean + 6 × (observed_mean + delta)) / 18. Vary delta over scientifically argued bounds and disclose which conclusions reverse. The original sleepstudy values allow a retrospective demonstration, but a real incomplete study does not reveal the unobserved truth.
Research limitation: small samples, omitted covariates, changes in assessment timing and misspecified missingness models can invalidate sensitivity claims. No diagnostic or statistical method in this package establishes clinical efficacy, grit, resilience, or causality.
13. Source-reviewed Catalyst Grit integration
| Source | Relevant engineering behavior |
|---|---|
| Repository and CLI | v2.0.0 connected human-systems workflows; no claimed missing-data estimator |
| Monitoring and trend governance | Immutable source-revision-linked snapshots; at least two snapshots for directional trend reporting |
| Methodology profile | Recovery-condition calculation and review boundaries; not psychometric certification |
| Persistent workspace | Append-only revisions, hashes and retention safeguards |
| Private WordPress | Authenticated private editor distinguished from nonpersistent public demo |
| Institutional API | Scope-limited tokens and append-only audit; not a research-wave endpoint |
| Source storage implementation | Repository operations and snapshot persistence |
| Repository monitoring tests | Snapshot traceability, append-only behavior and team privacy test cases |
| Recovery record schema | Canonical record schema; not a participant-wave instrument schema |
To inspect the exact reviewed code, run:
git clone https://github.com/Content-Catalyst-LLC/catalyst-grit.git
cd catalyst-grit
git checkout f9617160ffd276c6a6fd847b1e846bb5f73b07ae
python3 scripts/release_contract.py
# Requires the repository's Python test dependencies
python3 -m pytest tests/test_monitoring_trends.py -q
Repository tests verify their specified software contracts and do not establish deployed permissions, true participant outcomes, missing-data estimators, or instrument psychometrics.
14. Security, privacy and publication recovery
- For suspected disclosure, disable the affected public view/export and follow the organization’s incident-response process. Do not copy participant records into public issue trackers.
- Confirm exact project identity, actor authorization, consent/lawful purpose, storage region and retention obligations.
- Compare source revision, audit event, export hash and current status. Preserve historical evidence; never silently rewrite a record.
- Apply minimum necessary data sharing and review small-cell disclosure risks. A minimum team size alone does not guarantee anonymity.
- Use synthetic fixtures to test cross-project access denials, stale revisions, duplicate submissions, export redaction and publication gates.
- Re-enable a workflow only after the designated service and research owners approve the remediation and staging acceptance passes.
The bundled publication_gate is a proposed defensive research demonstration and does not certify current Catalyst Grit authorization behavior.
15. Verification
| Acceptance check | Evidence required | Current status |
|---|---|---|
| Reproducible clean data profile | 180 source rows, 18 subjects, ten waves, 18 simulated masks | Offline tested |
| Corruption detection | Duplicate, zero, source tampering, provenance and invalid-state cases | Offline tested |
| Interpretable psychometric trend | Instrument rights, invariance, validity, estimand and independent review | Not established |
| Production access boundary | Cross-project, public export and consent tests in staging | Not run |
| Deployment version | Installed service/plugin SHA, schema version and migration state | Not verified |
| External publication | Privacy approval, human scientific review, audit and attribution disclosures | Not approved by this guide |
Passing offline tests is not verification of installed Catalyst Grit software or scientific validity.
16. References
- lme4 — sleepstudy dataset documentation. Published longitudinal sleep-restriction reaction-time observations.
- Rdatasets — lme4/sleepstudy CSV. Public copy for independent observation matching.
- National Research Council (2010) — The Prevention and Treatment of Missing Data in Clinical Trials. Missing-data prevention, analytic assumptions and sensitivity assessment.
- Little et al. — The Prevention and Treatment of Missing Data in Clinical Trials (NEJM). Missing-data reporting and sensitivity considerations.
- For psychological instrument use, follow the instrument manual, current psychometric validation studies, ethics approvals and study-specific protocol; none are replaced by this software guide.
17. Final quality check
The article contains the required Goal, Requirements, Symptoms, Cause, Troubleshooting/Procedure, Resolution, and Verification concepts, explicit Procedure heading, terminal examples, expected outputs, GitHub commit pin, independent scientific caveats, and separate source and deployment verification states.
The source observations are published research data; the masked nonresponses and fault injections are synthetic. The article may be used for editorial review, local education, and controlled development testing. It is not scientific certification or authorization to publish participant-level material.
