File size: 4,152 Bytes
b70b935
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ef30004
b70b935
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e2c5a34
 
b70b935
 
 
 
ef30004
b70b935
 
 
e2c5a34
 
 
 
 
 
 
 
 
 
b70b935
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
---
license: apache-2.0
pretty_name: ConsentBench
language:
  - en
tags:
  - clinical-ai
  - llm-security
  - ai-agents
  - healthcare
  - haarf
  - quokkaguard
  - synthetic
size_categories:
  - 1K<n<10K
task_categories:
  - other
---

# ConsentBench

**A FHIR-consent scope gate, AI-disclosure stamper, and signed competency gate for clinical AI agents.**

ConsentBench is the benchmark corpus for *Consent Is a Gateway Responsibility: Enforcing Patient Consent, AI Disclosure, and Participatory Governance for Clinical AI Agents*, the `quconsent` module of the QUOKKAGUARD program. It ships with the [`quconsent`](https://github.com/quome-cloud/quconsent) repository, which contains the `qfire` gateway layer under test, the experiment harness, and the paper.

Four deterministic JSONL corpora under consentbench/: 200 FHIR-Consent-shaped directives, 712 scope/competency scenarios (in-scope, out-of-scope, explicit-deny, withdrawn, expired, draft; missing/uncredentialed/forged operators) with expected gateway behavior, 120 patient-facing prompts tagged with consent status, and 300 scored goals-of-care cases with two synthetic clinician raters; seed 42, no PHI.

**All data are synthetic.** No real patient data or protected health information (PHI) is included; clinical content is generated from templates with fixed seeds.

## Files

| File | Size | Rows |
|---|---|---|
| `consentbench/consent_directives.jsonl` | 42 KB | 200 rows |
| `consentbench/goals_of_care.jsonl` | 50 KB | 300 rows |
| `consentbench/patient_facing.jsonl` | 29 KB | 120 rows |
| `consentbench/scenarios.jsonl` | 121 KB | 712 rows |

### Record schemas

- `consentbench/consent_directives.jsonl`: `base`, `exceptions`, `patient`, `status`
- `consentbench/goals_of_care.jsonl`: `action`, `case_id`, `label`, `patient`, `purpose`, `score`, `values`
- `consentbench/patient_facing.jsonl`: `action`, `case_id`, `consent_status`, `expected`, `patient`, `prompt`, `purpose`
- `consentbench/scenarios.jsonl`: `action`, `case_id`, `expected`, `family`, `operator`, `patient`, `purpose`

## How it was generated

The corpus is produced by the generator in the paper repository and is fully deterministic (fixed seeds), so it can be regenerated byte-for-byte.

```bash
# from the quconsent repository root (deterministic seeds)
python3 scripts/013-consent/gen_consent.py
```

## Intended use

Evaluating the **consent** enforcement layer of a clinical-agent security gateway (HAARF control C4): An agent action can be authorized and clinically correct and still be unlawful: taken outside the patient's recorded consent, or delivered as a patient-facing message that hides its AI authorship.

The experiments that consume it (E-series in the paper) are reproduced from the repository:

```bash
git clone https://github.com/quome-cloud/quconsent
cd quconsent
cargo build --release
```

then follow the *Reproduce the experiments* section of its README.

## Citation

This benchmark was built to evaluate a control of the **Healthcare AI Agents Regulatory Framework (HAARF)**, the source framework for the QUOKKAGUARD program. Please cite both the paper and HAARF:

```bibtex
@unpublished{schwoebel2026quconsent,
  author = {{QUOKKAGUARD Working Group}},
  title  = {Consent Is a Gateway Responsibility: Enforcing Patient Consent, AI Disclosure, and Participatory Governance for Clinical AI Agents},
  note   = {Preprint. Quome, QUOKKAGUARD program (quconsent module)},
  year   = {2026},
  url    = {https://github.com/quome-cloud/quconsent}
}

@unpublished{schwoebel2026haarf,
  author = {Schwoebel, Jim and Frasch, Martin and Spalding, Art and Sewell, Ed and Englert, Phil and Halpert, Ben and Overbay, Collin and Semenec, Ingrida and Shor, Joel},
  title  = {{HAARF}: Healthcare {AI} agents regulatory framework --- a comprehensive security verification standard for autonomous {AI} systems in clinical environments},
  note   = {medRxiv Preprint},
  year   = {2026},
  month  = {April},
  doi    = {10.64898/2026.04.09.26350519},
  url    = {https://www.medrxiv.org/content/10.64898/2026.04.09.26350519v1}
}
```

## License

Apache License 2.0. Copyright (c) 2026 Quome, Inc.