Datasets:
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,172 +1,89 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
num_bytes: 3987
|
| 18 |
-
num_examples: 72
|
| 19 |
-
download_size: 3738
|
| 20 |
-
dataset_size: 3987
|
| 21 |
-
- config_name: chunks
|
| 22 |
-
features:
|
| 23 |
-
- name: chunk_id
|
| 24 |
-
dtype: string
|
| 25 |
-
- name: doc_id
|
| 26 |
-
dtype: string
|
| 27 |
-
- name: ordinal
|
| 28 |
-
dtype: int64
|
| 29 |
-
- name: text
|
| 30 |
-
dtype: string
|
| 31 |
-
- name: canary
|
| 32 |
-
dtype: string
|
| 33 |
-
- name: sensitivity
|
| 34 |
-
dtype: int64
|
| 35 |
-
- name: allow_tokens
|
| 36 |
-
list: string
|
| 37 |
-
- name: min_level
|
| 38 |
-
dtype: int64
|
| 39 |
-
- name: not_before
|
| 40 |
-
dtype: float64
|
| 41 |
-
- name: not_after
|
| 42 |
-
dtype: float64
|
| 43 |
-
splits:
|
| 44 |
-
- name: train
|
| 45 |
-
num_bytes: 6634093
|
| 46 |
-
num_examples: 14067
|
| 47 |
-
download_size: 1546333
|
| 48 |
-
dataset_size: 6634093
|
| 49 |
-
- config_name: documents
|
| 50 |
-
features:
|
| 51 |
-
- name: doc_id
|
| 52 |
-
dtype: string
|
| 53 |
-
- name: title
|
| 54 |
-
dtype: string
|
| 55 |
-
- name: text
|
| 56 |
-
dtype: string
|
| 57 |
-
- name: department
|
| 58 |
-
dtype: string
|
| 59 |
-
- name: project
|
| 60 |
-
dtype: string
|
| 61 |
-
- name: region
|
| 62 |
-
dtype: string
|
| 63 |
-
- name: sensitivity
|
| 64 |
-
dtype: int64
|
| 65 |
-
- name: created_at
|
| 66 |
-
dtype: float64
|
| 67 |
-
- name: tags
|
| 68 |
-
list: string
|
| 69 |
-
- name: allow_tokens
|
| 70 |
-
list: string
|
| 71 |
-
- name: min_level
|
| 72 |
-
dtype: int64
|
| 73 |
-
- name: not_before
|
| 74 |
-
dtype: float64
|
| 75 |
-
- name: not_after
|
| 76 |
-
dtype: float64
|
| 77 |
-
splits:
|
| 78 |
-
- name: train
|
| 79 |
-
num_bytes: 5024896
|
| 80 |
-
num_examples: 4000
|
| 81 |
-
download_size: 1202298
|
| 82 |
-
dataset_size: 5024896
|
| 83 |
-
- config_name: principals
|
| 84 |
-
features:
|
| 85 |
-
- name: pid
|
| 86 |
-
dtype: string
|
| 87 |
-
- name: name
|
| 88 |
-
dtype: string
|
| 89 |
-
- name: department
|
| 90 |
-
dtype: string
|
| 91 |
-
- name: title
|
| 92 |
-
dtype: string
|
| 93 |
-
- name: level
|
| 94 |
-
dtype: int64
|
| 95 |
-
- name: region
|
| 96 |
-
dtype: string
|
| 97 |
-
- name: projects
|
| 98 |
-
list: string
|
| 99 |
-
- name: tokens_at_t0
|
| 100 |
-
list: string
|
| 101 |
-
splits:
|
| 102 |
-
- name: train
|
| 103 |
-
num_bytes: 106613
|
| 104 |
-
num_examples: 600
|
| 105 |
-
download_size: 76132
|
| 106 |
-
dataset_size: 106613
|
| 107 |
-
- config_name: queries
|
| 108 |
-
features:
|
| 109 |
-
- name: qid
|
| 110 |
-
dtype: string
|
| 111 |
-
- name: text
|
| 112 |
-
dtype: string
|
| 113 |
-
- name: asker
|
| 114 |
-
dtype: string
|
| 115 |
-
- name: kind
|
| 116 |
-
dtype: string
|
| 117 |
-
- name: topic
|
| 118 |
-
dtype: int64
|
| 119 |
-
- name: probe_target
|
| 120 |
-
dtype: string
|
| 121 |
-
splits:
|
| 122 |
-
- name: train
|
| 123 |
-
num_bytes: 32108
|
| 124 |
-
num_examples: 240
|
| 125 |
-
download_size: 9624
|
| 126 |
-
dataset_size: 32108
|
| 127 |
-
- config_name: revocation_cases
|
| 128 |
-
features:
|
| 129 |
-
- name: pid
|
| 130 |
-
dtype: string
|
| 131 |
-
- name: token
|
| 132 |
-
dtype: string
|
| 133 |
-
- name: query_text
|
| 134 |
-
dtype: string
|
| 135 |
-
- name: target_chunk
|
| 136 |
-
dtype: string
|
| 137 |
-
- name: target_doc
|
| 138 |
-
dtype: string
|
| 139 |
-
- name: n_chunks_lost
|
| 140 |
-
dtype: int64
|
| 141 |
-
splits:
|
| 142 |
-
- name: train
|
| 143 |
-
num_bytes: 7356
|
| 144 |
-
num_examples: 50
|
| 145 |
-
download_size: 5064
|
| 146 |
-
dataset_size: 7356
|
| 147 |
configs:
|
| 148 |
-
- config_name: access_events
|
| 149 |
-
data_files:
|
| 150 |
-
- split: train
|
| 151 |
-
path: access_events/train-*
|
| 152 |
-
- config_name: chunks
|
| 153 |
-
data_files:
|
| 154 |
-
- split: train
|
| 155 |
-
path: chunks/train-*
|
| 156 |
- config_name: documents
|
| 157 |
-
data_files:
|
| 158 |
-
|
| 159 |
-
|
| 160 |
- config_name: principals
|
| 161 |
-
data_files:
|
| 162 |
-
|
| 163 |
-
|
| 164 |
- config_name: queries
|
| 165 |
-
data_files:
|
| 166 |
-
- split: train
|
| 167 |
-
path: queries/train-*
|
| 168 |
- config_name: revocation_cases
|
| 169 |
-
data_files:
|
| 170 |
-
- split: train
|
| 171 |
-
path: revocation_cases/train-*
|
| 172 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- text-retrieval
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
tags:
|
| 8 |
+
- synthetic
|
| 9 |
+
- rag
|
| 10 |
+
- access-control
|
| 11 |
+
- information-flow
|
| 12 |
+
- benchmark
|
| 13 |
+
- vector-search
|
| 14 |
+
pretty_name: Clearance Benchmark (synthetic enterprise corpus with overlapping ACLs)
|
| 15 |
+
size_categories:
|
| 16 |
+
- 10K<n<100K
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
configs:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
- config_name: documents
|
| 19 |
+
data_files: documents/*.parquet
|
| 20 |
+
- config_name: chunks
|
| 21 |
+
data_files: chunks/*.parquet
|
| 22 |
- config_name: principals
|
| 23 |
+
data_files: principals/*.parquet
|
| 24 |
+
- config_name: access_events
|
| 25 |
+
data_files: access_events/*.parquet
|
| 26 |
- config_name: queries
|
| 27 |
+
data_files: queries/*.parquet
|
|
|
|
|
|
|
| 28 |
- config_name: revocation_cases
|
| 29 |
+
data_files: revocation_cases/*.parquet
|
|
|
|
|
|
|
| 30 |
---
|
| 31 |
+
|
| 32 |
+
# Clearance Benchmark
|
| 33 |
+
|
| 34 |
+
A **fully synthetic** enterprise corpus for measuring how well a retrieval system
|
| 35 |
+
contains information flow: heavily overlapping ACLs, sensitivity levels,
|
| 36 |
+
time-limited grants, a grant/revoke timeline, and evaluation queries.
|
| 37 |
+
|
| 38 |
+
Generated by [`clearance.synth`](https://github.com/NagaYu/clearance) with seed `7`. **No real
|
| 39 |
+
documents, no real access-control lists, and no real identities.** Regenerating
|
| 40 |
+
with the same seed reproduces this dataset byte for byte.
|
| 41 |
+
|
| 42 |
+
## Why this exists
|
| 43 |
+
|
| 44 |
+
Query-time ACL filtering protects the index. It does not protect the summaries,
|
| 45 |
+
agent memories and caches a RAG stack derives from that index. This dataset
|
| 46 |
+
supports measuring three distinct leak channels — direct, existence-inference,
|
| 47 |
+
and **derivative** — plus revocation lag, recall under high selectivity, and
|
| 48 |
+
index memory.
|
| 49 |
+
|
| 50 |
+
## Configs
|
| 51 |
+
|
| 52 |
+
| Config | Rows | What it is |
|
| 53 |
+
|---|---:|---|
|
| 54 |
+
| `documents` | 4,000 | Documents with ACL (`allow_tokens`, `min_level`, embargo window) |
|
| 55 |
+
| `chunks` | 14,067 | Indexed units; `canary` is a unique marker for exact leak detection |
|
| 56 |
+
| `principals` | 600 | Departments, projects, clearance levels, capability tokens |
|
| 57 |
+
| `access_events` | 72 | Grant/revoke timeline, including expiring secondments |
|
| 58 |
+
| `queries` | 240 | Evaluation queries; `kind` is `normal` or `probe` |
|
| 59 |
+
| `revocation_cases` | 50 | Triples where a revocation provably removes retrieved content |
|
| 60 |
+
|
| 61 |
+
## Access semantics
|
| 62 |
+
|
| 63 |
+
A principal may read a chunk when **all** of these hold:
|
| 64 |
+
|
| 65 |
+
1. `allow_tokens ∩ principal_tokens ≠ ∅` (OR over capabilities),
|
| 66 |
+
2. `principal.level >= min_level` (no read-up),
|
| 67 |
+
3. `not_before <= t < not_after` (embargo window),
|
| 68 |
+
4. the capability itself has not expired or been revoked at time `t`.
|
| 69 |
+
|
| 70 |
+
## Canaries
|
| 71 |
+
|
| 72 |
+
Every chunk carries a unique `CLR-<doc>-<ordinal>` marker inside its body text.
|
| 73 |
+
Markers are stripped before embedding, so they never influence retrieval — they
|
| 74 |
+
exist only so leak detection through derived text is exact rather than heuristic.
|
| 75 |
+
|
| 76 |
+
## Intended use and limits
|
| 77 |
+
|
| 78 |
+
Built to **measure defensive performance of index designs on synthetic data**.
|
| 79 |
+
The `probe` queries target material the asking principal may not read; they
|
| 80 |
+
exist to test whether a defence holds and are meaningful only because the
|
| 81 |
+
generator knows the ground truth of a corpus it fabricated. This dataset is not
|
| 82 |
+
an attack toolkit and carries no claim about any deployed system.
|
| 83 |
+
|
| 84 |
+
Embedding-inversion attacks (recovering source text from vectors) are a real,
|
| 85 |
+
documented risk for any shared vector store. They are referenced here as prior
|
| 86 |
+
work and deliberately **not** implemented.
|
| 87 |
+
|
| 88 |
+
Text is template-generated and is not a language-modelling benchmark. It exists
|
| 89 |
+
to give retrieval something topically clustered to retrieve.
|