Skip to content

Commit be3d4f7

Browse files
author
Alexander Chernov
committed
A documentation site, generated from the repository's own files
mdBook rather than MkDocs: the existing book toolchain across the other repositories is mdBook, and this is a specification rather than an API reference, so the navigation fits without introducing a second docs stack or a Python docs dependency to a project whose core has none. The site has no content of its own beyond a landing page and a citation page. Every other chapter is generated from a file that already exists at the repository root, with relative links rewritten for the book's flat layout. A documentation site holding its own copy of the specification is a second specification, and the two drift -- so CI regenerates and fails on any difference from what is committed. Two things that had to be got right rather than assumed, both caught by rendering the page and looking at it. The mark is inlined as SVG so currentColor applies and one asset serves the light and dark themes; as a black PNG it disappeared on the dark theme. And its XML comment is stripped when inlining, because its lines are indented four spaces and Markdown rendered the design note as a code block above the title. No edit-this-page link: the chapters are generated, so it would have pointed at a file the next build overwrites.
1 parent 0d80dea commit be3d4f7

24 files changed

Lines changed: 2123 additions & 0 deletions

‎.github/workflows/docs.yml‎

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: docs
2+
3+
on:
4+
push:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: pages
15+
cancel-in-progress: false
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
- uses: actions/setup-python@v5
23+
with:
24+
python-version: "3.12"
25+
- name: install mdBook
26+
run: |
27+
mkdir -p "$HOME/.local/bin"
28+
curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.4.40/mdbook-v0.4.40-x86_64-unknown-linux-gnu.tar.gz \
29+
| tar -xz -C "$HOME/.local/bin"
30+
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
31+
32+
- name: generate chapters from the repository's own files
33+
run: python docs-site/build.py
34+
35+
- name: the generated chapters must match what is committed
36+
# The site has no content of its own. If this fails, a source file
37+
# changed without the site being regenerated, and the two have drifted.
38+
run: git diff --exit-code docs-site/src
39+
40+
- run: mdbook build docs-site
41+
42+
- uses: actions/configure-pages@v5
43+
- uses: actions/upload-pages-artifact@v3
44+
with:
45+
path: docs-site/book
46+
47+
deploy:
48+
needs: build
49+
runs-on: ubuntu-latest
50+
environment:
51+
name: github-pages
52+
url: ${{ steps.deployment.outputs.page_url }}
53+
steps:
54+
- id: deployment
55+
uses: actions/deploy-pages@v4

‎.gitignore‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ build/
1212
.langsmith/
1313
evidence/*.jsonl
1414
authorized_recall_result.json
15+
16+
# built documentation site (regenerate with: mdbook build docs-site)
17+
docs-site/book/

‎README.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,11 @@ docs/ architecture (three ports), results, findings, raw runs
265265

266266
## Documents
267267

268+
Browsable at
269+
**[doytsujin.github.io/ok-agentic-dataset-reference](https://doytsujin.github.io/ok-agentic-dataset-reference/)**
270+
— the same files, with search and a stable anchor per assertion. The site has
271+
no content of its own; CI fails if it drifts from the repository.
272+
268273
- [`CONFORMANCE.md`](CONFORMANCE.md) — **AD-001 … AD-015**, the fifteen
269274
assertions any implementation must satisfy in any framework. This is the
270275
specification; everything else in the repository is one worked example of it.

‎docs-site/book.toml‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
[book]
2+
title = "Agentic Dataset Reference"
3+
authors = ["Alexander Chernov"]
4+
description = "A framework-independent behavioural contract for agentic datasets, expressed as language-neutral executable conformance vectors."
5+
language = "en"
6+
src = "src"
7+
8+
[build]
9+
build-dir = "book"
10+
create-missing = false
11+
12+
[output.html]
13+
default-theme = "light"
14+
preferred-dark-theme = "navy"
15+
git-repository-url = "https://github.com/doytsujin/ok-agentic-dataset-reference"
16+
# No edit-url-template on purpose: every chapter is generated by build.py from
17+
# a file at the repository root, so an "edit this page" link would point at a
18+
# file that the next build overwrites.
19+
site-url = "/ok-agentic-dataset-reference/"
20+
no-section-label = true
21+
22+
[output.html.fold]
23+
enable = true
24+
level = 1
25+
26+
[output.html.search]
27+
enable = true
28+
limit-results = 20

‎docs-site/build.py‎

Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
"""Generate the documentation site from the repository's own files.
2+
3+
The site has no content of its own beyond the landing page. Every chapter is a
4+
copy of a file that already exists at the repository root, with its relative
5+
links rewritten for the book's flat layout. That is deliberate: a documentation
6+
site with its own copy of the specification is a second specification, and the
7+
two drift.
8+
9+
python docs-site/build.py # regenerate src/
10+
mdbook build docs-site # render
11+
"""
12+
13+
from __future__ import annotations
14+
15+
import re
16+
import shutil
17+
from pathlib import Path
18+
19+
HERE = Path(__file__).resolve().parent
20+
ROOT = HERE.parent
21+
SRC = HERE / "src"
22+
PAGES = HERE / "pages"
23+
24+
# chapter file <- repository file
25+
CHAPTERS = {
26+
"specification.md": "CONFORMANCE.md",
27+
"portability.md": "docs/PORTABILITY.md",
28+
"results.md": "docs/RESULTS.md",
29+
"findings.md": "docs/FINDINGS.md",
30+
"claims.md": "docs/CLAIMS.md",
31+
"conformance-package.md": "packages/agentic-dataset-conformance/README.md",
32+
"authorized-recall.md": "packages/authorized-recall/README.md",
33+
"contributing.md": "CONTRIBUTING.md",
34+
"licensing.md": "LICENSE.md",
35+
"brand.md": "brand/README.md",
36+
"plan.md": "PLAN.md",
37+
}
38+
39+
GH = "https://github.com/doytsujin/ok-agentic-dataset-reference/blob/main/"
40+
GH_TREE = "https://github.com/doytsujin/ok-agentic-dataset-reference/tree/main/"
41+
42+
# Links that resolve to a chapter of this book.
43+
INTERNAL = {
44+
"CONFORMANCE.md": "specification.md",
45+
"docs/PORTABILITY.md": "portability.md",
46+
"PORTABILITY.md": "portability.md",
47+
"docs/RESULTS.md": "results.md",
48+
"RESULTS.md": "results.md",
49+
"docs/FINDINGS.md": "findings.md",
50+
"FINDINGS.md": "findings.md",
51+
"docs/CLAIMS.md": "claims.md",
52+
"CLAIMS.md": "claims.md",
53+
"CONTRIBUTING.md": "contributing.md",
54+
"LICENSE.md": "licensing.md",
55+
"../LICENSE.md": "licensing.md",
56+
"PLAN.md": "plan.md",
57+
"brand/README.md": "brand.md",
58+
"../packages/authorized-recall/README.md": "authorized-recall.md",
59+
"packages/authorized-recall/README.md": "authorized-recall.md",
60+
}
61+
62+
LINK = re.compile(r"\]\((?!https?://|#)([^)]+)\)")
63+
64+
# Absolute links back into this repository resolve to a chapter when there is
65+
# one, so the book does not bounce the reader out to GitHub for a page it
66+
# already contains.
67+
ABSOLUTE = re.compile(
68+
r"\]\(https://github\.com/doytsujin/ok-agentic-dataset-reference/"
69+
r"(?:blob|tree)/main/([^)#]+)(#[^)]*)?\)"
70+
)
71+
72+
73+
def rewrite(text: str) -> str:
74+
def sub(m: re.Match) -> str:
75+
target = m.group(1)
76+
anchor = ""
77+
if "#" in target:
78+
target, anchor = target.split("#", 1)
79+
anchor = "#" + anchor
80+
target = target.lstrip("./")
81+
if target in INTERNAL:
82+
return f"]({INTERNAL[target]}{anchor})"
83+
# Everything else points at the repository, so the link still works.
84+
base = GH_TREE if target.endswith("/") else GH
85+
return f"]({base}{target}{anchor})"
86+
87+
def absolute(m: re.Match) -> str:
88+
target, anchor = m.group(1), m.group(2) or ""
89+
if target in INTERNAL:
90+
return f"]({INTERNAL[target]}{anchor})"
91+
return m.group(0)
92+
93+
return LINK.sub(sub, ABSOLUTE.sub(absolute, text))
94+
95+
96+
def main() -> None:
97+
SRC.mkdir(parents=True, exist_ok=True)
98+
99+
# Hand-authored pages. The mark is inlined as SVG rather than linked as an
100+
# image so that `currentColor` applies: one asset that is legible on both
101+
# the light and the dark theme, instead of two PNGs and a media query.
102+
mark = (ROOT / "brand/agentic-dataset-mark.svg").read_text()
103+
# Strip the XML comment and flatten to one line before inlining. Its lines
104+
# are indented four spaces, which Markdown reads as a code block, so the
105+
# design note would render as visible text above the title.
106+
mark = re.sub(r"<!--.*?-->", "", mark, flags=re.S)
107+
mark = " ".join(mark.split())
108+
mark = mark.replace('width="64" height="64"', 'width="96" height="96"')
109+
for page in sorted(PAGES.glob("*.md")):
110+
body = page.read_text().replace("<!-- MARK -->", mark)
111+
(SRC / page.name).write_text(rewrite(body))
112+
print(f" {'pages/' + page.name:<52} -> src/{page.name}")
113+
114+
for chapter, source in CHAPTERS.items():
115+
body = (ROOT / source).read_text()
116+
# The mark is referenced relatively from README-style files.
117+
body = body.replace('src="agentic-dataset-mark-128.png"',
118+
'src="mark.png"')
119+
(SRC / chapter).write_text(rewrite(body))
120+
print(f" {source:<52} -> src/{chapter}")
121+
shutil.copy(ROOT / "brand/agentic-dataset-mark-256.png", SRC / "mark.png")
122+
print(f"\n{len(CHAPTERS)} chapters generated, "
123+
f"{len(list(PAGES.glob('*.md')))} hand-authored pages copied")
124+
125+
126+
if __name__ == "__main__":
127+
main()

‎docs-site/pages/citation.md‎

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Citation
2+
3+
The software carries a `CITATION.cff`, which GitHub renders as *Cite this
4+
repository*.
5+
6+
```
7+
Chernov, A. (2026). Agentic Dataset Reference Implementation and
8+
Conformance Suite (Version 0.1.0) [Computer software].
9+
https://github.com/doytsujin/ok-agentic-dataset-reference
10+
```
11+
12+
ORCID: [0009-0007-3198-2712](https://orcid.org/0009-0007-3198-2712)
13+
14+
**There is no DOI yet.** One will be minted from the `v0.1.0` tag once the
15+
release-candidate window closes; until then cite the repository and a commit.
16+
17+
## Citing an assertion
18+
19+
The identifiers `AD-001` … `AD-015` are stable and may be referred to freely.
20+
Cite the assertion, not a line number:
21+
22+
> …refuses on an unregistered capability (AD-006) and records the refusal
23+
> (AD-010).
24+
25+
## Citing the metric
26+
27+
Authorized Recall@K is defined in
28+
[its own package](authorized-recall.md), which has no dependency on this
29+
architecture. If you use the metric without adopting the control plane, cite
30+
the package rather than the reference implementation.
31+
32+
## Papers
33+
34+
Three conference papers argue the model. All were accepted for 2026 and none is
35+
in published proceedings yet, so there are no DOIs to cite.
36+
37+
| Venue | Title |
38+
|---|---|
39+
| IEEE CCECE 2026 | *Agentic Datasets as an Engineering Control Plane* |
40+
| IEEE EMBC 2026 | *Dataset Descriptors for Autonomous and Observable Biomedical Data Pipelines* |
41+
| IEEE BigDataService 2026 | *Agentic Data Services: A Control-Plane Architecture for Adaptive Data Workflows* |
42+
43+
Nothing in this repository depends on them: the assertions, the vectors and the
44+
measurements are reproducible from a clone.

‎docs-site/pages/index.md‎

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
<div align="center" style="color: var(--fg)">
2+
<!-- MARK -->
3+
4+
# Agentic Dataset Reference
5+
6+
**A framework-independent behavioural contract for governed, agent-facing
7+
datasets.**
8+
</div>
9+
10+
---
11+
12+
```
13+
15 normative assertions, 85 language-neutral vector steps
14+
15+
reference architecture 4 runtimes x 2 dataset boundaries 15/15 each
16+
independent implementation shares no code with the above 15/15
17+
mutation analysis 17 / 17 targeted violations detected
18+
15 / 15 assertions independently exercised
19+
2.2 detecting assertions per mutant (mean)
20+
execution safety 0 / 576 prohibited executions
21+
0 / 24 in the evaluation set
22+
tests 405 passed
23+
24+
Authorized Recall@5 filter after truncation 0.853
25+
filter before truncation 0.960
26+
+0.107
27+
```
28+
29+
---
30+
31+
## Start here
32+
33+
An **agentic dataset** describes itself, advertises bounded capabilities,
34+
accepts a semantic intent, decides whether an action is admissible, executes
35+
only what was admitted, refuses the rest, and leaves evidence.
36+
37+
The [**specification**](specification.md) is fifteen assertions, each naming a
38+
failure it rules out. Everything else exists to check them.
39+
40+
```
41+
GRANTED -> approval token -> execution reachable
42+
REFUSED -> no token -> execution unreachable
43+
INDETERMINATE -> no token -> execution unreachable
44+
```
45+
46+
`INDETERMINATE` is not a refusal. An evaluator that is unreachable or out of
47+
budget has not decided anything, and recording that as a refusal invents an
48+
authority nobody exercised.
49+
50+
## Check an implementation
51+
52+
```bash
53+
pip install agentic-dataset-conformance
54+
agentic-dataset-conformance run --subject yourmodule:your_factory
55+
```
56+
57+
The harness imports no implementation — not even the reference one — and a test
58+
asserts it. The worlds and vectors are CC0; export them and write a runner in
59+
another language if you prefer.
60+
61+
## What this is not
62+
63+
No deployment, no real data, no model in the loop by default, no latency or
64+
cost claim, and **no security guarantee**. `capabilities()` is the subject's own
65+
report of itself, so a subject that under-reports passes AD-002 while hiding a
66+
tool. Conformance is a claim an implementation makes about itself, made
67+
checkable — not an adversarial audit.
68+
69+
[`Claims`](claims.md) is frozen and lists everything asserted, and the one thing
70+
explicitly not.
71+
72+
## Status
73+
74+
**Release candidate.** Public before `v0.1.0` is tagged, deliberately, so a
75+
finding can still change the artifact rather than becoming errata against a
76+
DOI. The independent implementation is a 250-line toy written by the same
77+
person who wrote the specification: that establishes independence from the
78+
reference *code*, not from its author's reading of the contract.
79+
80+
**Interpretive independence is the next threshold, and it needs somebody else.**
81+
[How to do it](contributing.md).

‎docs-site/src/SUMMARY.md‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Summary
2+
3+
[Agentic Dataset Reference](index.md)
4+
5+
# The contract
6+
7+
- [Specification — AD-001 … AD-015](specification.md)
8+
- [What the contract can and cannot reach](portability.md)
9+
- [Implementing it yourself](contributing.md)
10+
11+
# Evidence
12+
13+
- [Results](results.md)
14+
- [Claims, frozen](claims.md)
15+
- [Findings](findings.md)
16+
17+
# Packages
18+
19+
- [agentic-dataset-conformance](conformance-package.md)
20+
- [authorized-recall](authorized-recall.md)
21+
22+
# Project
23+
24+
- [Plan and milestones](plan.md)
25+
- [Licensing](licensing.md)
26+
- [The mark](brand.md)
27+
- [Citation](citation.md)

0 commit comments

Comments
 (0)