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 lint 0 issues, installed on Jira and Confluence) using jira:issuePanel, confluence:contentBylineItem, action, and rovo: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 lint 0 issues + @forge/manifest 0 errors / 0 warnings.
  • Live Forge Production v2.0.0 deployment 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

Built With

Share this project:

Updates

Submission history