Inspiration
What it does
How we built it
Challenges we ran into
Accomplishments that we're proud of
What we learned
What's next for TrialGuard GxP
Inspiration
Clinical quality teams still review CAPA writeups via emailed Word documents. A QA lead needs instant proof of who approved each deviation, whether the SHA-256 signature hash chain remains intact, and how urgently a critical deviation must be contained. We kept all risk math deterministic in TypeScript rather than letting an LLM invent RPN numbers.
What it does
TrialGuard GxP chains Author, Clinical_Lead_Approval, and QA_Review electronic signatures with SHA-256 (src/compliance/hashChain.ts). The panel's Simulate Tamper control flips a payload, previousHash, or sequence gap so reviewers can immediately watch integrity validation fail, then click Restore Authentic Chain to recover.
src/compliance/capaEngine.ts computes RPN deterministically (Severity * Occurrence * Detection), classifies CAPAs into Minor (72h), Major (24h), or Critical (4h) SLAs with patient-safety and batch-quarantine gates, and audits SOP expirations and training gaps. src/graph/regulatoryGraph.ts maps protocol, SOP, deviation, and signoff lineage cleanly. The Forge MCP server (rovo:mcp) exposes four deterministic tools: evaluate-fmea-risk, verify-cfr-chain, scan-sop-compliance, and export-inspection-dossier in Markdown and ADF.
How we built it
- Platform: Atlassian Forge
nodejs24.x(deployed to Production v2.0.0, Runs on Atlassian eligible,forge lint0 issues, installed on Jira and Confluence) usingjira:issuePanel,confluence:contentBylineItem,action, androvo:mcp. - Custom UI: React + Vite + TypeScript in
static/panel, built cleanly as an isolated panel bundle.
Challenges & What we learned
Clinical compliance tools must show failure states transparently, not just happy paths. Separating MCP tool names cleanly and keeping SOP/CAPA demo records honestly labeled avoids over-claiming tenant-wide Confluence mutations while letting judges verify Part 11 tamper detection live.
Accomplishments
npm test: 36/36 tests passing (Vitest) +forge lint0 issues +@forge/manifest0 errors / 0 warnings.- Live Forge Production
v2.0.0deployment with public judge Sharing link installed across Jira & Confluence. - 68.0s narrated YouTube demo walkthrough + interactive web preview + architecture PDF deck.
What's next
Bind SOP compliance scans directly to tenant Confluence space-ID lookups while preserving deterministic ICH Q9 math and SHA-256 Part 11 signoff chains.
Links
- Public Atlassian Forge Install Link (Sharing enabled for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oZIhvcNAQcBMB4GCWCGSAFlAwQBLjARBAyFm8DFmXBdG51rAZQCARCAO%2BPNwQI856Nsi2sixgVSe4g6zQIGBl4Hzd5rwps0mQqOk7r74n2QyYu6DxMntMB%2Fy7gkyHzwtr6wz%2FUMAgAAAAAMAAAQAAAAAAAAAAAAAAAAAA5Sr4q6F%2F66eRUaj4vvnFr%2F%2F%2F%2F%2FAAAAAQAAAAAAAAAAAAAAAQAAADLMsn7U0i5fnSJZzMl%2FXLaJftck61E0ww6waTLwm%2Bje9imq4IZdk6STXnThU8gNfnPJCT5XNJyN6hWj8zCRZSwUu40%3D&product=confluence&product=jira
- GitHub Repository: https://github.com/alphonshhhomenicmtu/trialguard-gxp-codegeist
- Interactive Preview: https://alphonshhhomenicmtu.github.io/trialguard-gxp-codegeist/
- Architecture Deck PDF: https://alphonshhhomenicmtu.github.io/trialguard-gxp-codegeist/trialguard-deck.pdf
Built With
- atlassian-forge
- mcp
- node.js
- react
- sha-256
- typescript
- vite
- vitest