Skip to content

Commit bcc5593

Browse files
author
Alexander Chernov
committed
Say what runs, and what it does not support
The status blocks said "PLANNED. Nothing is built." That is no longer true, so they now say what does run and what was measured, with the caveats attached to each number rather than collected at the end. RESULTS.md separates what the conformance matrix supports -- the model is expressible in four runtimes with different primitives -- from what it does not: the four ports share one ControlPlane, so this is one experiment rather than four independent implementations agreeing. A second implementation by someone else, from CONFORMANCE.md alone, is the experiment this artifact cannot run on itself, and the license says so explicitly. FINDINGS.md records the two places the implementation contradicted the architecture documents and the six defects the suite found in the code it was checking. The architecture documents have not been retrofitted to match: a design quietly edited to agree with its implementation stops being evidence of anything. Dual license follows ok-agentic-datasets. CI runs the core with no framework installed, which is where an import leaking out of adapters/ would fail.
1 parent b4d658d commit bcc5593

15 files changed

Lines changed: 842 additions & 199 deletions

‎.github/workflows/ci.yml‎

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: conformance
2+
3+
on:
4+
push:
5+
pull_request:
6+
workflow_dispatch:
7+
8+
jobs:
9+
core-only:
10+
# The core has no dependencies. This job exists to prove it: if an import
11+
# of langgraph, llama_index, google.adk or mcp leaks out of adapters/,
12+
# this is where it fails.
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-python@v5
17+
with:
18+
python-version: "3.12"
19+
- run: pip install -e ".[dev]"
20+
- name: no framework is installed
21+
run: |
22+
python - <<'PY'
23+
import importlib.util as u
24+
for m in ("langgraph", "llama_index", "google.adk", "mcp"):
25+
assert u.find_spec(m) is None, f"{m} should not be installed in this job"
26+
PY
27+
- run: python -m agentic_dataset.conformance --local
28+
- run: pytest -q
29+
30+
all-runtimes:
31+
runs-on: ubuntu-latest
32+
strategy:
33+
matrix:
34+
python-version: ["3.11", "3.12", "3.13"]
35+
steps:
36+
- uses: actions/checkout@v4
37+
- uses: actions/setup-python@v5
38+
with:
39+
python-version: ${{ matrix.python-version }}
40+
- run: pip install -e ".[all]"
41+
- name: AD-001..AD-015, every runtime, both dataset boundaries
42+
run: python -m agentic_dataset.conformance
43+
- run: pytest -q
44+
- name: evaluation and the M6 measurement
45+
run: |
46+
python evals/evaluate.py
47+
python evals/authorized_recall.py

‎CONFORMANCE.md‎

Lines changed: 53 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
**Fifteen assertions that any implementation of the agentic-dataset model must
44
satisfy, in any framework.**
55

6-
> ## Status: SPECIFIED, NOT IMPLEMENTED.
6+
> ## Status: IMPLEMENTED, AND PASSING IN EIGHT CONFIGURATIONS.
77
>
8-
> No implementation of this suite exists yet. It is written down first so that
9-
> the three architecture ports in [`docs/`](docs/) can be judged against
10-
> something rather than against each other.
8+
> `src/agentic_dataset/conformance/` implements all fifteen. They pass against
9+
> four runtimes at two dataset boundaries — 120 assertion-runs, no failures,
10+
> and **no assertion had to be dropped as inexpressible**.
11+
>
12+
> Run it: `python -m agentic_dataset.conformance`
1113
>
1214
> Source: `docs/ARCHITECTURE-ADK.md` §107, generalised.
1315
@@ -21,13 +23,21 @@ each other prove nothing — they were written by the same person from the same
2123
model.
2224

2325
**A conformance suite is what makes the agreement checkable.** If the same
24-
fifteen assertions pass against three independent runtimes with different
25-
primitives, the claim *"the governance model is not a property of a framework"*
26-
stops being an argument and becomes a result.
26+
fifteen assertions pass against independent runtimes with different primitives,
27+
the claim *"the governance model is not a property of a framework"* stops being
28+
an argument and becomes a result.
2729

2830
That is the difference between a design document and a research artifact, and
2931
it is the reason [`PLAN.md`](PLAN.md) M2 exists.
3032

33+
**One qualification, stated here rather than in a footnote.** The four ports in
34+
this repository share a single `ControlPlane`. That is deliberate — an
35+
assertion that passed because each port re-implemented its own policy would be
36+
four experiments rather than one — but it means the result is about the model
37+
being *expressible* in four runtimes, not about four independent
38+
implementations agreeing. A second implementation written by someone else from
39+
this file alone is the experiment this artifact does not run.
40+
3141
---
3242

3343
## The assertions
@@ -85,32 +95,47 @@ exactly zero. It does not get averaged into a score.
8595
## Gate shape
8696

8797
```
88-
AD-001 .. AD-015 = 100% invariants, never averaged
89-
Authorized Recall@5 >= 0.95 statistical
90-
Capability selection accuracy >= 0.97 statistical
91-
Trajectory validity >= 0.95 statistical
92-
Groundedness >= 0.93 statistical
98+
gate measured
99+
AD-001 .. AD-015 = 100% 15/15 x 8 configurations
100+
Authorized Recall@5 >= 0.95 0.960 (filter before truncation)
101+
0.853 (filter after truncation)
102+
Capability selection accuracy >= 0.97 1.000
103+
Trajectory validity >= 0.95 1.000
104+
Groundedness >= 0.93 not measured -- no model-generated
105+
answer exists in this build
93106
```
94107

108+
The two Authorized Recall@5 rows are the same retriever and the same corpus,
109+
differing only in where the authorization filter sits. **The gate is a
110+
statement about filter placement, not about retrieval quality.**
111+
95112
> Governance is tested as an invariant. Semantic quality is tested
96113
> statistically. Running the two through one number destroys both.
97114
98115
---
99116

100117
## Framework independence
101118

102-
The suite must be implementable three times without changing an assertion:
119+
The suite is implemented once and run against every runtime without changing an
120+
assertion. What differs between them is only where control flows:
103121

104-
| | LangGraph | LlamaIndex Workflows | ADK Graph Workflows |
105-
|---|---|---|---|
106-
| Where admission routes | conditional edge | typed event | graph node + route |
107-
| Where AD-006 is enforced | wrapper | capability wrapper | `before_tool_callback` |
108-
| Where AD-013 applies | subgraph / tool | MCP ToolSpec | `McpToolset` / A2A |
109-
| Where AD-008 is checked | cache key | cache key | cache key |
122+
| | Native | LangGraph | LlamaIndex Workflows | Google ADK |
123+
|---|---|---|---|---|
124+
| Where admission routes | a function call | conditional edge | typed event dispatch | graph node + before-tool callback |
125+
| Where AD-006 is enforced | capability wrapper | capability wrapper | capability wrapper | wrapper + `before_tool_callback` |
126+
| Where AD-013 applies | `DelegatedExecutor` | `DelegatedExecutor` | `DelegatedExecutor` | `DelegatedExecutor` / `FunctionTool` |
127+
| Where AD-008 is checked | cache key | cache key | cache key | cache key |
128+
| Result | 15/15 | 15/15 | 15/15 | 15/15 |
110129

111-
**If an assertion cannot be expressed in one of the three, that is a finding
112-
about the assertion, not about the framework.** Record it rather than dropping
113-
it.
130+
Each of those is run twice: once against local capabilities, and once with
131+
every dataset behind a real MCP client session. That second axis earned its
132+
place — two of the six defects in [`docs/FINDINGS.md`](docs/FINDINGS.md) were
133+
visible only across the boundary, and two only under the async runtimes.
134+
135+
**If an assertion cannot be expressed in one of the runtimes, that is a finding
136+
about the assertion, not about the framework.** None had to be dropped;
137+
`docs/FINDINGS.md` records the two places where the implementation departed
138+
from the architecture documents instead.
114139

115140
---
116141

@@ -125,4 +150,9 @@ assert against, so a fourth implementation in a fourth domain does not quietly
125150
diverge.
126151

127152
That is worth noting because it means **three of the fifteen assertions already
128-
have a passing implementation, in a language none of the three ports use.**
153+
have a passing implementation, in a language none of these ports use.**
154+
155+
`tests/test_verdict_parity.py` closes that loop: it asserts the Python strings
156+
and rationales against the literals above, and reads `policy.rs` directly when
157+
`ok-governed-motion` is checked out beside this repository. The Rust and Python
158+
verdicts cannot drift without a test failing.

‎LICENSE.md‎

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
# License for the Agentic Dataset Reference Implementation
2+
3+
This repository contains **two distinct categories of content**, each under its
4+
own license. It follows the same scheme as `ok-agentic-datasets`, which is the
5+
public repository this work belongs with.
6+
7+
---
8+
9+
## 1. Documentation, Diagrams, and Research Materials
10+
11+
Applies to `README.md`, `PLAN.md`, `CONFORMANCE.md` and everything under
12+
`docs/`.
13+
14+
**License:** Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0)
15+
**License Text:** https://creativecommons.org/licenses/by-nc/4.0/
16+
17+
You are free to:
18+
- **Share** — copy and redistribute the material in any medium or format
19+
- **Adapt** — remix, transform, and build upon the material
20+
21+
Under the following terms:
22+
- **Attribution** — You must give appropriate credit, provide a link to the license, and indicate if changes were made.
23+
- **NonCommercial** — You may not use the material for commercial purposes.
24+
25+
**Definition of Commercial Use:** Any use primarily intended for, or directed
26+
toward, commercial advantage or monetary compensation.
27+
28+
---
29+
30+
## 2. Prototype Code and Software Components
31+
32+
Applies to everything under `src/`, `tests/` and `evals/`.
33+
34+
**License:** Business Source License 1.1 (BSL 1.1)
35+
**Full Text:** https://mariadb.com/bsl11/
36+
37+
Parameters:
38+
- **Licensor:** Alexander Chernov
39+
- **Licensed Work:** all source code in `src/`, `tests/` and `evals/`, unless otherwise marked.
40+
- **Change Date:** 36 months from the date of each commit containing the Licensed Work.
41+
- **Change License:** GNU Affero General Public License v3.0 (AGPL-3.0)
42+
43+
Usage Terms:
44+
- You may use the Licensed Work for **non-commercial purposes** only, including
45+
research, teaching, and personal projects.
46+
- Commercial use requires **explicit, written permission** from the Licensor.
47+
- After the Change Date, the Licensed Work automatically becomes available
48+
under the Change License (AGPL-3.0).
49+
50+
**Definition of Commercial Use:** Same as above.
51+
52+
---
53+
54+
## 3. Independent reimplementation is explicitly welcome
55+
56+
`CONFORMANCE.md` states the fifteen assertions in prose so that they can be
57+
implemented again by someone else. **Writing an independent implementation
58+
against that specification, in any language, and publishing whether it passes,
59+
is a non-commercial research use and is encouraged.** It is the experiment this
60+
repository cannot run on itself.
61+
62+
The assertion identifiers `AD-001` … `AD-015` may be referred to freely.
63+
64+
---
65+
66+
## 4. Dual-Licensing for Commercial Use
67+
68+
To use the code or research materials commercially **before** the Change Date,
69+
contact:
70+
71+
**Alexander Chernov**
72+
GitHub: [@doytsujin](https://github.com/doytsujin)
73+
LinkedIn: [@thedoytsujin](https://www.linkedin.com/in/thedoytsujin/)
74+
75+
---
76+
77+
## 5. Summary
78+
79+
- **Docs & diagrams:** CC BY-NC 4.0 — free for non-commercial use with attribution.
80+
- **Code:** BSL 1.1 — non-commercial use only, reverts to AGPL-3.0 after 36 months.
81+
- **The conformance specification:** reimplement it, please.
82+
83+
---
84+
85+
© 2026 Alexander Chernov. All rights reserved.

0 commit comments

Comments
 (0)