-
-
Holdfast: sealed CAPA effectiveness checks for Jira.
-
The project page shows how often a plain 90-day check passes by luck at each defect rate.
-
Preview the plan: 12 nonconformances in the past year call for a 104-day window with no recurrences.
-
Sealing posts the seal's SHA-256 hash as a Jira comment, so Jira's own history dates it.
-
Demo clock at +130 days: the seal leak fix is effective, the label retraining is not, the sterile breach is still watched.
-
Not effective: 6 misprints in 67 days, where the bar allowed none. The closure gate stays blocked.
-
Jira refuses Done: the Holdfast effectiveness gate reads the check as NOT EFFECTIVE.
-
An admin override opens the gate. It stays on the record, in red, with its reason.
-
The rare sterile breach at +430 days: inconclusive, and 294 more quiet days would settle it.
-
The Effectiveness Reviewer, a Rovo agent, writes the audit review from the sealed record.
-
Asked about a 90-day check for a defect seen 6 times a year: it passes by luck 22.8% of the time; 237 days are needed.
-
Claude Code calls Holdfast's tools over MCP and gets the same sealed facts.
-
The Record tab: every record holds the SHA-256 of the one before, and the chain checks out.
Holdfast is for quality teams in medical devices and other regulated manufacturing, who must prove that each corrective action worked. They seal the effectiveness check in Jira before the fix, code reads the result with an exact test, and the CAPA can't close until it reads EFFECTIVE. The usual check, "no recurrence in 90 days", passes by luck 22.8% of the time for a defect seen six times a year; for that defect, Holdfast plans a 237-day watch.
Inspiration
A medical device maker has to show that its corrective actions worked. ISO 13485 asks for it in clause 8.5.2, and since February 2026 the FDA's device quality rule, the QMSR, incorporates ISO 13485 by reference. Pharma and automotive quality teams run the same loop: find the cause, fix it, then show the fix held.
The last step is where it gets soft. The check is often a quiet period such as "no recurrence in 90 days", and nothing in a ticket stops the team that made the fix from writing it, or changing it, after the fact. I wanted to know how often that check passes when the fix did nothing at all. For a defect that shows up six times a year, the answer is 22.8%. For one that shows up four times a year, it is 37.3%. A quiet quarter is normal for a rare defect, so a short check often passes by luck, and an auditor who reads "effective" can't tell the difference.
Clinical trials deal with this through preregistration: you write down what counts as success, and how long you will look, before you see any data. I built Holdfast to bring that habit to CAPA work in Jira, where some quality teams already track their nonconformances and CAPAs.
What it does
Holdfast is a Forge app for Jira with one rule: write the bar before the fix, and let code read the result.
A check starts on the CAPA. The quality engineer gives Holdfast a JQL query for the nonconformances the fix should prevent, and the date the fix takes effect. Holdfast counts the matching work items in the year before, by the date each one happened (an "Occurred on" field the app adds) rather than the date it was logged. From that rate it works out the shortest watch window that can tell a real reduction from a quiet spell: 104 days for a defect seen 12 times a year, 237 days at 6 a year, 407 days at 4 a year. The preview also shows how often a plain 90-day check would pass by luck for this particular defect.
One click seals the check. The metric, the baseline's work item keys, the window and the rule become the first record of a SHA-256 hash chain, and Holdfast posts the seal's hash as a Jira comment, so Jira's own history dates it. From then on the bar is fixed. The one change allowed later is an extension after an INCONCLUSIVE verdict, and it goes on the record as an amendment marked "after data". A check sealed after its window had already started carries the same mark.
When the window closes, a daily run computes the verdict from the sealed rule with an exact test of two Poisson rates. EFFECTIVE means the reduction is significant and meets the target. NOT EFFECTIVE means the data shows it falls short. INCONCLUSIVE comes with the number of quiet days that would settle it. VOID covers a baseline that changed after sealing, and the panel names the work items that were added or removed. A verdict can't be called early, and no model decides one. In 100,000 simulated runs per defect rate where the fix did nothing, the sealed rule read EFFECTIVE 2.2 to 2.5% of the time at a nominal 5%.
Closing is gated. A Jira workflow validator blocks a CAPA's closing transition until its check reads EFFECTIVE, or until a project or Jira admin records an override with a reason. The override stays on the record and shows in red on the panel and on the project page. The gate reads Holdfast's own records, not a field someone could edit, and it fails closed. Nonconformances that share the workflow are left alone.
The Effectiveness Reviewer, a Rovo agent, writes the review an auditor reads. Its four actions only read, and a skill lays out the review: the sealed bar, the recurrences with their dates, the verdict exactly as the code returned it, and every flag (sealed after data, amended after data, overridden, baseline changed, record chain broken, written under the demo clock). The agent also drafts plans for a person to seal, and answers "is 90 days enough?" with the numbers. The same four tools are exposed over MCP, so any MCP client can ask the same questions of the same sealed record, and an open-source skill file in the repository teaches outside agents to write the same review.
To try it without waiting a year, a demo clock moves the site forward in time. Every record written while it is on says so, so a demo verdict can't pass for elapsed time. Load sample data creates three CAPAs from an infusion pump line, each with a year of nonconformances behind it: a seal leak whose fix works, a label misprint whose retraining doesn't, and a rare sterile barrier breach that needs more than a year to judge.
How I built it
Holdfast is all Forge, and Forge reports each deployed version as eligible for Runs on Atlassian. It runs no outside servers and sends nothing off the platform. It doesn't call Forge LLM either: Rovo writes the prose, and code computes everything else.
jira:issuePanelandjira:projectPagein UI Kit. The panel has the plan form with a monthly chart, the sealed bar, progress, the verdict, the recurrences and the record table. The project page lists every check with its flags, and below them a table of how often a plain 90-day check passes by luck.jira:workflowValidator, function based, for the gate in company-managed and team-managed projects.jira:customField"Occurred on", a date field, because the day a defect is reported is not the day it happened.- A daily
scheduledTriggerthat issues due verdicts. rovo:agentwith four GETactions, arovo:skillwhose SKILL.md describes an audit review, androvo:mcpexposing the same four actions as tools. The repository'smcp/folder has an open-source version of the skill for agents outside Jira.- Forge KVS for storage. Records are written once (
FAIL_IF_EXISTS), and each holds the SHA-256 of the one before. - Jira's paged
/rest/api/3/search/jqlendpoint for counting, capped at 5,000 work items per metric.
The statistics live in one small module with no dependencies. Given the total count, the number of recurrences after the fix follows a binomial distribution under any rate ratio, so the test is exact, with no normal approximation, and the bounds on the ratio are Clopper-Pearson. The planner searches for the shortest window with 80% power for the effect the team expects. When the team expects the fix to remove the cause, that window has a closed form: tb × (alpha^(-1/kb) - 1) days, where kb events happened in the tb baseline days.
There are 56 automated tests. They cover the statistics (with simulation bounds), the hash chain, the check model, the three sample stories at three load dates, and service tests that run end to end against a fake Jira and KVS held in memory: sealing, verdicts under the demo clock, the gate, extensions, overrides, a tampered record and a late, backdated report. Then I tested every surface on a live site, including an outside MCP client that signed in through Atlassian's OAuth consent and called all four tools.
Challenges I ran into
Most significance tools assume plenty of data. A CAPA for a defect seen four times a year has four events in its baseline, so I needed a test that stays honest at those counts, says INCONCLUSIVE when the data can't decide, and tells the team up front how long they will wait.
The agent is only useful if it never decides that a fix worked. Its prompt and skill let it quote only the verdict the action returned, and ask it to state every flag plainly; plans go out as proposals that a person seals in the panel. Early answers leaked raw field names such as canStillPass into the prose, so the instructions now ask for plain words and call the date field by its name, Occurred on.
The gate fails closed: it blocks closure whenever something is missing or broken. But a team may run nonconformances and CAPAs through one workflow, and a gate on every work item would block them all. Holdfast gates only CAPAs: work items with a sealed check, of a work type named CAPA, or labelled capa.
The demo clock caused its own bug. Records are written once, but the clock can move back, and after a reset a decided check showed today's empty count next to a verdict that had counted six recurrences. A recorded verdict now keeps its own evidence on the project page, in the panel and in the agent's view, and the list flags verdicts made under the demo clock.
And a small UI Kit detail: controlled text inputs dropped characters when typing was fast, which once turned an override reason into a single period. Uncontrolled inputs fixed it.
Accomplishments that I'm proud of
The whole loop works on a live Jira site: plan, seal, verdict, gate, override, extension, the Rovo agent and an outside MCP client. Every verdict comes from an exact test, and a simulation measured how often that test passes a fix that did nothing. An edit to any stored record breaks the hash chain, the panel names the record where it breaks, and the gate stays closed.
What I learned
The same simulation showed how strict an exact test is at these counts: at a nominal 5%, a fix that did nothing passed 2.2 to 2.5% of the time. A looser test, such as mid-p, would plan shorter windows (78 days instead of 104 for a defect seen 12 times a year) and pass more of those fixes. I kept the exact test, because in an audit a false EFFECTIVE costs more than a longer wait.
The Rovo actions and the MCP tools are the same four functions, so an outside agent gets the same facts as Rovo, from the same code. Outside clients still need a site admin to turn the tools on in Atlassian Administration, and each client signs in through Atlassian's OAuth consent before it can call them.
What's next for Holdfast
- Teamwork Graph: show a CAPA's linked goals, owners and teams in the review.
- A Confluence page and macro for the effectiveness review, so it can sit in the quality record.
- "Find similar past CAPAs" in the agent, to learn which kinds of fixes held.
- A rule for continuous metrics such as yield or scrap rate, beside the one for counts.
- A Marketplace listing.
Holdfast's record is tamper-evident. It is not a validated 21 CFR Part 11 system, and it does not claim to be.
Built With
- atlassian-forge
- forge-kvs
- javascript
- jira
- mcp
- node.js
- react
- rovo
- ui-kit