Where did this file come from?
It is a simple question, and almost no scientific tool can answer it. Inflexa records the method, the parameters, the inputs, the content hash, and the model behind each step it drove, as the work happens. The runtime writes the record, and the AI is never asked.
$ inflexa prov lineage output/pathways.csv
output/pathways.csv sha256:4c1f…9ab2
gseapy_prerank.py exit 0
output/de_joint_adj.csv sha256:8e07…13cd
limma_trend_de.R exit 0
output/log2tpm_filtered.csv sha256:a2d9…77e0
qc_audit.R exit 0
GSE109142 source
model anthropic/claude-opus-5 · step T2S1
signed ed25519:9f3c…a71b
$ inflexa prov verify
ok · chain intact · signature valid
The PROTECT run's record: inflexa prov lineage walks a result back to its source dataset through the run's QC, its limma DE on log2(TPM + 1) and its GSEA, and inflexa prov verify checks the chain and the signature. The hashes are placeholders, and the script names and the pathway table's name are illustrative.
The AI does not write the provenance record.
This is the part people assume we get wrong, and it is the part we were most careful about. If an agent were asked to describe what it had just done, you would get a plausible summary, and a plausible summary is worthless as evidence. Models omit steps. They round numbers. They reconstruct a tidy narrative of a messy run. A provenance record written by a language model is a story about an analysis.
The model is never asked. The runtime writes the record as each step runs: what it read, what it wrote, the arguments it was given and the hash of every file in and out. Hashes are computed on your machine, outside the container, and the record is signed, so a later edit is detectable.
What we don't do
Ask the agent to summarize its own work, and store that summary as the audit trail. It is easy, it demos well, and it is not evidence.
What we do
Instrument the execution layer. Every file, command and step gets the same identifier every time, so the graph is a mechanical consequence of the run.
Narrated
What a model would tell you
I audited the cohort, ran a confounder-adjusted differential expression and an immune deconvolution, and ranked the pathways with GSEA: nearly 700 of them separate responders from non-responders, with CXCL13 marking the non-responders.
- Left out: T3S1, IPTW sensitivity.
- Rounded: 688 pathways became nearly 700.
Observed
What the runtime recorded
- T1S1 QC and cohort auditran qc_audit.R · exit 0 · wrote output/log2tpm_filtered.csv sha256:a2d9…77e0
- T1S2 Confounder-adjusted DEran limma_trend_de.R · exit 0 · wrote output/de_joint_adj.csv sha256:8e07…13cd
- T4S1 Immune deconvolutionran deconvolve.R · exit 0 · wrote output/immune_fractions.csv sha256:c41a…6f92
- T3S1 IPTW sensitivityran iptw.R · exit 0 · wrote output/iptw_pathways.csv sha256:e6b0…2d58Missing from the summary
- T2S1 GSEA, concordant onlyran gseapy_prerank.py · exit 0 · wrote output/pathways.csv sha256:4c1f…9ab2
You cannot check a closed vendor's record.
Plenty of closed platforms will show you a provenance record. You have no way to check whether it is the whole story. The code that wrote the record is the code you cannot read, and the record describes the run you cannot inspect. What you are given is a claim about a claim, and your only recourse is trust.
Inflexa's provenance is written by code you can read, in a format anyone can parse, signed with a key you hold, and verifiable without us. If we disappeared tomorrow, the record would still verify. That is the difference between a vendor telling you your result is traceable and your result actually being traceable.
The evidence, the audit trail and the lineage.
Literature evidence chains
Inflexa runs targeted PubMed queries against each finding's hub genes, transcription factors, and pathways. Each finding is placed on the path to the clinic, from discovery through preclinical to clinical evidence, with the papers behind it.
Report · finding
Medium confidenceCXCL13 marks non-responders
Evidence chain
Discovery
CXCL13 draws CXCR5-positive B cells and T follicular helper cells, and organizes lymphoid structures in inflamed tissue.
PMID 36078057 (opens in a new tab) · doi 10.3390/cells11172649
Preclinical
An anti-CXCL13 antibody reduced the severity of DSS colitis in mice.
PMID 25903104 (opens in a new tab) · doi 10.1096/fj.14-267690
Clinical
CXCL13 sits in a mucosal gene panel that predicted anti-TNF response in IBD patients.
PMID 36378498 (opens in a new tab) · doi 10.1093/ibd/izac233
Queries are scoped to the finding: for this one, a CXCL13-centered search, narrower than a broad UC literature pull. The answers stay with the analysis.
A signed audit trail
Every command, every file it read and wrote, and every approval is captured as it happens. Each save of the record is chained by SHA-256 and signed with your Ed25519 key. Alter an entry after the fact and verification fails.
inflexa · prov · record- analysis_createdPROTECT responder analysis
- input_addedGSE109142
- plan_approvedResponder pathways with confounder adjustment, by you
- run_startedrun a91f3c
- command_executedlimma_trend_de.R · exit 0
- file_writtenoutput/de_joint_adj.csv sha256:8e07…13cd
- step_completedT1S2 · Confounder-adjusted DE
- command_executedgseapy_prerank.py · exit 0
- file_writtenoutput/pathways.csv sha256:4c1f…9ab2
- run_completedrun a91f3c
chained sha256:71e4…c03a
signed ed25519:9f3c…a71b
Nothing stops someone with disk access from editing the file, but the signature will no longer verify, and inflexa prov verify will say so. So the record is tamper-evident: an edit can still be made, and verification shows it. The hashes are placeholders, and the script names and the pathway table's name are illustrative.
File lineage you can walk
Every file is an entity keyed on its path and content hash. Ask where an output came from and Inflexa walks back through the commands that produced it to the inputs they read.
inflexa · prov$ inflexa prov lineage output/pathways.csv
- output/pathways.csvsha256:4c1f…9ab2
- gseapy_prerank.pyexit 0
- output/de_joint_adj.csvsha256:8e07…13cd
- limma_trend_de.Rexit 0
- output/log2tpm_filtered.csvsha256:a2d9…77e0
- qc_audit.Rexit 0
- GSE109142source dataset
Files are keyed on path and content hash, so lineage merges across runs on its own. The hashes are placeholders, and the script names and the pathway table's name are illustrative.
Which model decided this?
When a language model chooses a normalization method or interprets an enrichment result, that choice is part of your analysis. A year later, when the finding is questioned, 'an AI suggested it' is not an answer anyone can work with.
So Inflexa records the model as an agent in the provenance graph, by provider and model name, for every step it drove. The usage ledger keeps the exact model that served each call. The model itself is attributed to you: you remain the responsible party, and the record says so.
Nothing sensitive goes in. The record carries the model's identity, never your API key and never your prompts.
This is the claim a closed vendor structurally cannot make. They can tell you a model was involved. They cannot show you a record you are able to check.
PROV-JSON
"agent": { "inflexa:agent-model-3k9x2f": { "prov:type": ["prov:SoftwareAgent", "inflexa:Model"], "prov:label": "anthropic/claude-opus-5", "inflexa:model": "anthropic/claude-opus-5" }, "inflexa:agent-user-rt": { "prov:type": "prov:Person" }},"actedOnBehalfOf": { "inflexa:delegation-3k9x2f-7q1m0a": { "prov:delegate": "inflexa:agent-model-3k9x2f", "prov:responsible": "inflexa:agent-user-rt" }}
Built for the review your team will get.
Your own review, six months later
The version of you that has forgotten this analysis is the harshest reviewer it will get. Which parameters, which model, which input file: recorded at the time.
External collaborators
Send a CRO or academic partner the provenance document alongside the result. They verify the signature themselves, with a tool whose source they can read.
Reviewers and journals
Every figure, table and headline value in a report is read from the file that produced it, and every citation is checked against the registries before it is printed. The record follows the W3C provenance standard, in a format anyone can parse.
Ask your own files where they came from.
Inflexa is free and open source under Apache 2.0. Install it, run an analysis, and export the provenance document.