**Goal**: Validate that research results are reproducible by verifying the complete dependency chain from source data through analysis scripts to final outputs.
Validates research reproducibility by verifying the complete dependency chain from source data through analysis scripts to final outputs. Use before publishing to ensure all data and scripts form a complete, traceable chain with a reproducibility score.
/plugin marketplace add syfyufei/adrian-marketplace/plugin install truth-verification@LLM-Research-MarketplaceGoal: Validate that research results are reproducible by verifying the complete dependency chain from source data through analysis scripts to final outputs.
When to use: Before publishing or sharing research, ensure all data and scripts form a complete reproducible chain.
Before running this command:
.truth/manifest.json exists with registered files/truth-verification:register --recursive --dir data//truth-verification:track --script codes/.../truth-verification:verify to ensure current data integrity/truth-verification:reproduce
/truth-verification:reproduce --generate-report --output reproduce-report.md
/truth-verification:reproduce --score-only
/truth-verification:reproduce --target data/cleaned/results.csv
/truth-verification:reproduce --trace-back data/cleaned/results.csv
/truth-verification:reproduce --generate-report --format json --output reproduce.json
Dependency Graph Analysis:
Data Validation:
Script Traceability:
Reproducibility Scoring:
Dependency Tracing:
Report Generation:
Manifest Update:
reproducibility_status field✓ Reproducibility Validation Complete
Status: EXCELLENT (95/100)
Summary:
Input integrity: ✓ 100% (5/5 files verified)
Script traceability: ✓ 100% (3/3 scripts recorded)
Output attribution: ✓ 100% (8/8 outputs linked)
No orphaned data: ✓ 100% (0 orphaned files)
Reproducibility Score: 95/100 - EXCELLENT
Can be reproduced with high confidence.
Ready for publication.
Dependency Chains (3 found):
✓ Chain 1: data/raw/raw1.csv
→ codes/preprocessing.py
→ data/cleaned/merged.csv
→ codes/analysis.py
→ paper/figures/results.png (8 steps, all traceable)
✓ Chain 2: data/raw/metrics.csv
→ codes/merge.py
→ data/cleaned/metrics.csv (2 steps, all traceable)
✓ Chain 3: data/cleaned/merged.csv + codes/statistical.py
→ paper/manuscripts/results.md (complete)
⚠ Reproducibility Validation Complete (with issues)
Status: FAIR (68/100)
Summary:
Input integrity: ⚠ 80% (4/5 files verified, 1 MODIFIED)
Script traceability: ✓ 100% (3/3 scripts recorded)
Output attribution: ⚠ 75% (6/8 outputs linked)
No orphaned data: ❌ 0% (2 orphaned files detected)
Reproducibility Score: 68/100 - FAIR
Can be reproduced but some issues exist.
Recommend fixing before publication.
Issues Detected:
❌ Input file modified: data/raw/dataset.csv
Expected hash: a7b3f8d9e2c1...
Current hash: c9d5b1a4e2f3...
Impact: Results from this file may not be reproducible
❌ Output not attributed: results/preliminary.csv
Not linked to any script in manifest
Suggestion: Track the script that generated it
⚠ Orphaned data: data/raw/backup_2025-12-01.csv
Registered but never used in any script
Suggestion: Remove or cite in paper
Recommendations:
1. Investigate modified input: data/raw/dataset.csv
2. Re-register modified file or restore from backup
3. Track the script that generated results/preliminary.csv
4. Remove orphaned file: data/raw/backup_2025-12-01.csv
5. Re-run /reproduce to validate fixes
| Error | Cause | Solution |
|---|---|---|
| "No dependencies found" | No scripts tracked yet | Run /truth-verification:track for each script |
| "Input file missing" | Referenced file no longer exists | Restore from backup or remove from manifest |
| "Broken dependency chain" | Script or output file missing | Register missing files or re-track scripts |
| "Invalid manifest" | .truth/manifest.json corrupted | Restore from backup or reinitialize |
Input Integrity (40 points):
Script Traceability (30 points):
Output Attribution (20 points):
No Orphaned Data (10 points):
| Score | Level | Meaning | Action |
|---|---|---|---|
| 90-100 | Excellent | Fully reproducible, ready for publication | Publish with confidence |
| 75-89 | Good | Mostly reproducible, minor issues | Address recommendations before publication |
| 60-74 | Fair | Partially reproducible, significant issues | Fix issues before sharing |
| <60 | Poor | Barely reproducible, major gaps | Major work needed to ensure reproducibility |
/truth-verification:reproduce --trace-back data/cleaned/results.csv
Shows complete lineage: which inputs → which scripts → this output.
/truth-verification:reproduce --generate-report \
--include-recommendations \
--format markdown \
--output publication-audit.md
Generates publication-ready documentation.
/truth-verification:reproduce --compare-with-date "2025-12-01T00:00:00Z"
Shows how reproducibility score changed since specific date.
/truth-verification:reproduce --target paper/manuscripts/main.md \
--include-cited-data-only
Only validates data cited in the specified paper.
Before Publication:
# 1. Register all data
/truth-verification:register --recursive --dir data/
# 2. Track all scripts
/truth-verification:track --script codes/preprocessing.py ...
/truth-verification:track --script codes/analysis.py ...
/truth-verification:track --script codes/visualization.py ...
# 3. Verify data integrity
/truth-verification:verify
# 4. Check reproducibility
/truth-verification:reproduce --generate-report
# 5. Fix any issues found
# ... investigate and fix issues ...
# 6. Re-validate
/truth-verification:reproduce --score-only
# 7. Publish when score > 90
Complete publication workflow:
/truth-verification:init
/truth-verification:register --recursive --dir data/
/truth-verification:track --script codes/...
/truth-verification:verify
/truth-verification:reproduce --generate-report # This command
/truth-verification:cite-check --paper paper/manuscript.md --strict-mode
/truth-verification:audit --include-timeline
# Ready for publication!
After validation:
/truth-verification:audit for final report.truth/ with manuscript in version control/truth-verification:register - Register data files/truth-verification:track - Record script execution/truth-verification:verify - Check data integrity/truth-verification:cite-check - Validate citations (Phase 3)/truth-verification:audit - Generate audit reports (Phase 4)