agentic-dataset-conformance 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. agentic_dataset_conformance-0.1.0/LICENSES/Apache-2.0.txt +202 -0
  2. agentic_dataset_conformance-0.1.0/LICENSES/CC0-1.0.txt +121 -0
  3. agentic_dataset_conformance-0.1.0/PKG-INFO +116 -0
  4. agentic_dataset_conformance-0.1.0/README.md +92 -0
  5. agentic_dataset_conformance-0.1.0/pyproject.toml +60 -0
  6. agentic_dataset_conformance-0.1.0/setup.cfg +4 -0
  7. agentic_dataset_conformance-0.1.0/src/agentic_dataset_conformance/__init__.py +68 -0
  8. agentic_dataset_conformance-0.1.0/src/agentic_dataset_conformance/__main__.py +4 -0
  9. agentic_dataset_conformance-0.1.0/src/agentic_dataset_conformance/cli.py +169 -0
  10. agentic_dataset_conformance-0.1.0/src/agentic_dataset_conformance/data/LICENSE +13 -0
  11. agentic_dataset_conformance-0.1.0/src/agentic_dataset_conformance/data/vectors/ad-001-descriptor-valid.json +28 -0
  12. agentic_dataset_conformance-0.1.0/src/agentic_dataset_conformance/data/vectors/ad-002-capability-registered.json +122 -0
  13. agentic_dataset_conformance-0.1.0/src/agentic_dataset_conformance/data/vectors/ad-003-grant-required-for-execution.json +30 -0
  14. agentic_dataset_conformance-0.1.0/src/agentic_dataset_conformance/data/vectors/ad-004-refusal-has-no-grant.json +75 -0
  15. agentic_dataset_conformance-0.1.0/src/agentic_dataset_conformance/data/vectors/ad-005-indeterminate-has-no-grant.json +41 -0
  16. agentic_dataset_conformance-0.1.0/src/agentic_dataset_conformance/data/vectors/ad-006-unknown-capability-denied.json +58 -0
  17. agentic_dataset_conformance-0.1.0/src/agentic_dataset_conformance/data/vectors/ad-007-authorization-scope-preserved.json +36 -0
  18. agentic_dataset_conformance-0.1.0/src/agentic_dataset_conformance/data/vectors/ad-008-cache-is-policy-scoped.json +80 -0
  19. agentic_dataset_conformance-0.1.0/src/agentic_dataset_conformance/data/vectors/ad-009-provenance-complete.json +52 -0
  20. agentic_dataset_conformance-0.1.0/src/agentic_dataset_conformance/data/vectors/ad-010-refusal-recorded.json +20 -0
  21. agentic_dataset_conformance-0.1.0/src/agentic_dataset_conformance/data/vectors/ad-011-dataset-revision-recorded.json +30 -0
  22. agentic_dataset_conformance-0.1.0/src/agentic_dataset_conformance/data/vectors/ad-012-policy-version-recorded.json +27 -0
  23. agentic_dataset_conformance-0.1.0/src/agentic_dataset_conformance/data/vectors/ad-013-mcp-preserves-scope.json +71 -0
  24. agentic_dataset_conformance-0.1.0/src/agentic_dataset_conformance/data/vectors/ad-014-a2a-preserves-scope.json +71 -0
  25. agentic_dataset_conformance-0.1.0/src/agentic_dataset_conformance/data/vectors/ad-015-prohibited-execution-rate-zero.json +476 -0
  26. agentic_dataset_conformance-0.1.0/src/agentic_dataset_conformance/data/worlds/reference.json +254 -0
  27. agentic_dataset_conformance-0.1.0/src/agentic_dataset_conformance/interface.py +133 -0
  28. agentic_dataset_conformance-0.1.0/src/agentic_dataset_conformance/mutations.py +283 -0
  29. agentic_dataset_conformance-0.1.0/src/agentic_dataset_conformance/runner.py +357 -0
  30. agentic_dataset_conformance-0.1.0/src/agentic_dataset_conformance/toy.py +350 -0
  31. agentic_dataset_conformance-0.1.0/src/agentic_dataset_conformance/verbs.md +43 -0
  32. agentic_dataset_conformance-0.1.0/src/agentic_dataset_conformance.egg-info/PKG-INFO +116 -0
  33. agentic_dataset_conformance-0.1.0/src/agentic_dataset_conformance.egg-info/SOURCES.txt +35 -0
  34. agentic_dataset_conformance-0.1.0/src/agentic_dataset_conformance.egg-info/dependency_links.txt +1 -0
  35. agentic_dataset_conformance-0.1.0/src/agentic_dataset_conformance.egg-info/entry_points.txt +2 -0
  36. agentic_dataset_conformance-0.1.0/src/agentic_dataset_conformance.egg-info/requires.txt +3 -0
  37. agentic_dataset_conformance-0.1.0/src/agentic_dataset_conformance.egg-info/top_level.txt +1 -0
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,121 @@
1
+ Creative Commons Legal Code
2
+
3
+ CC0 1.0 Universal
4
+
5
+ CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
6
+ LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
7
+ ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
8
+ INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
9
+ REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
10
+ PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
11
+ THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
12
+ HEREUNDER.
13
+
14
+ Statement of Purpose
15
+
16
+ The laws of most jurisdictions throughout the world automatically confer
17
+ exclusive Copyright and Related Rights (defined below) upon the creator
18
+ and subsequent owner(s) (each and all, an "owner") of an original work of
19
+ authorship and/or a database (each, a "Work").
20
+
21
+ Certain owners wish to permanently relinquish those rights to a Work for
22
+ the purpose of contributing to a commons of creative, cultural and
23
+ scientific works ("Commons") that the public can reliably and without fear
24
+ of later claims of infringement build upon, modify, incorporate in other
25
+ works, reuse and redistribute as freely as possible in any form whatsoever
26
+ and for any purposes, including without limitation commercial purposes.
27
+ These owners may contribute to the Commons to promote the ideal of a free
28
+ culture and the further production of creative, cultural and scientific
29
+ works, or to gain reputation or greater distribution for their Work in
30
+ part through the use and efforts of others.
31
+
32
+ For these and/or other purposes and motivations, and without any
33
+ expectation of additional consideration or compensation, the person
34
+ associating CC0 with a Work (the "Affirmer"), to the extent that he or she
35
+ is an owner of Copyright and Related Rights in the Work, voluntarily
36
+ elects to apply CC0 to the Work and publicly distribute the Work under its
37
+ terms, with knowledge of his or her Copyright and Related Rights in the
38
+ Work and the meaning and intended legal effect of CC0 on those rights.
39
+
40
+ 1. Copyright and Related Rights. A Work made available under CC0 may be
41
+ protected by copyright and related or neighboring rights ("Copyright and
42
+ Related Rights"). Copyright and Related Rights include, but are not
43
+ limited to, the following:
44
+
45
+ i. the right to reproduce, adapt, distribute, perform, display,
46
+ communicate, and translate a Work;
47
+ ii. moral rights retained by the original author(s) and/or performer(s);
48
+ iii. publicity and privacy rights pertaining to a person's image or
49
+ likeness depicted in a Work;
50
+ iv. rights protecting against unfair competition in regards to a Work,
51
+ subject to the limitations in paragraph 4(a), below;
52
+ v. rights protecting the extraction, dissemination, use and reuse of data
53
+ in a Work;
54
+ vi. database rights (such as those arising under Directive 96/9/EC of the
55
+ European Parliament and of the Council of 11 March 1996 on the legal
56
+ protection of databases, and under any national implementation
57
+ thereof, including any amended or successor version of such
58
+ directive); and
59
+ vii. other similar, equivalent or corresponding rights throughout the
60
+ world based on applicable law or treaty, and any national
61
+ implementations thereof.
62
+
63
+ 2. Waiver. To the greatest extent permitted by, but not in contravention
64
+ of, applicable law, Affirmer hereby overtly, fully, permanently,
65
+ irrevocably and unconditionally waives, abandons, and surrenders all of
66
+ Affirmer's Copyright and Related Rights and associated claims and causes
67
+ of action, whether now known or unknown (including existing as well as
68
+ future claims and causes of action), in the Work (i) in all territories
69
+ worldwide, (ii) for the maximum duration provided by applicable law or
70
+ treaty (including future time extensions), (iii) in any current or future
71
+ medium and for any number of copies, and (iv) for any purpose whatsoever,
72
+ including without limitation commercial, advertising or promotional
73
+ purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
74
+ member of the public at large and to the detriment of Affirmer's heirs and
75
+ successors, fully intending that such Waiver shall not be subject to
76
+ revocation, rescission, cancellation, termination, or any other legal or
77
+ equitable action to disrupt the quiet enjoyment of the Work by the public
78
+ as contemplated by Affirmer's express Statement of Purpose.
79
+
80
+ 3. Public License Fallback. Should any part of the Waiver for any reason
81
+ be judged legally invalid or ineffective under applicable law, then the
82
+ Waiver shall be preserved to the maximum extent permitted taking into
83
+ account Affirmer's express Statement of Purpose. In addition, to the
84
+ extent the Waiver is so judged Affirmer hereby grants to each affected
85
+ person a royalty-free, non transferable, non sublicensable, non exclusive,
86
+ irrevocable and unconditional license to exercise Affirmer's Copyright and
87
+ Related Rights in the Work (i) in all territories worldwide, (ii) for the
88
+ maximum duration provided by applicable law or treaty (including future
89
+ time extensions), (iii) in any current or future medium and for any number
90
+ of copies, and (iv) for any purpose whatsoever, including without
91
+ limitation commercial, advertising or promotional purposes (the
92
+ "License"). The License shall be deemed effective as of the date CC0 was
93
+ applied by Affirmer to the Work. Should any part of the License for any
94
+ reason be judged legally invalid or ineffective under applicable law, such
95
+ partial invalidity or ineffectiveness shall not invalidate the remainder
96
+ of the License, and in such case Affirmer hereby affirms that he or she
97
+ will not (i) exercise any of his or her remaining Copyright and Related
98
+ Rights in the Work or (ii) assert any associated claims and causes of
99
+ action with respect to the Work, in either case contrary to Affirmer's
100
+ express Statement of Purpose.
101
+
102
+ 4. Limitations and Disclaimers.
103
+
104
+ a. No trademark or patent rights held by Affirmer are waived, abandoned,
105
+ surrendered, licensed or otherwise affected by this document.
106
+ b. Affirmer offers the Work as-is and makes no representations or
107
+ warranties of any kind concerning the Work, express, implied,
108
+ statutory or otherwise, including without limitation warranties of
109
+ title, merchantability, fitness for a particular purpose, non
110
+ infringement, or the absence of latent or other defects, accuracy, or
111
+ the present or absence of errors, whether or not discoverable, all to
112
+ the greatest extent permissible under applicable law.
113
+ c. Affirmer disclaims responsibility for clearing rights of other persons
114
+ that may apply to the Work or any use thereof, including without
115
+ limitation any person's Copyright and Related Rights in the Work.
116
+ Further, Affirmer disclaims responsibility for obtaining any necessary
117
+ consents, permissions or other rights required for any use of the
118
+ Work.
119
+ d. Affirmer understands and acknowledges that Creative Commons is not a
120
+ party to this document and has no duty or obligation with respect to
121
+ this CC0 or use of the Work.
@@ -0,0 +1,116 @@
1
+ Metadata-Version: 2.4
2
+ Name: agentic-dataset-conformance
3
+ Version: 0.1.0
4
+ Summary: AD-001..AD-015: the agentic-dataset governance contract as language-neutral executable conformance vectors, plus a runner that needs no access to an implementation's internals
5
+ Author: Alexander Chernov
6
+ License-Expression: Apache-2.0 AND CC0-1.0
7
+ Project-URL: Homepage, https://github.com/agentic-datasets/reference
8
+ Project-URL: Documentation, https://agenticdatasets.org/reference/
9
+ Project-URL: Specification, https://github.com/agentic-datasets/reference/blob/main/CONFORMANCE.md
10
+ Project-URL: Source, https://github.com/agentic-datasets/reference/tree/main/packages/agentic-dataset-conformance
11
+ Keywords: conformance,specification,test vectors,agentic datasets,data governance,authorization,admission control,interoperability
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Topic :: Software Development :: Testing
14
+ Classifier: Topic :: Software Development :: Quality Assurance
15
+ Classifier: Intended Audience :: Developers
16
+ Classifier: Intended Audience :: Science/Research
17
+ Requires-Python: >=3.11
18
+ Description-Content-Type: text/markdown
19
+ License-File: LICENSES/Apache-2.0.txt
20
+ License-File: LICENSES/CC0-1.0.txt
21
+ Provides-Extra: dev
22
+ Requires-Dist: pytest>=8; extra == "dev"
23
+ Dynamic: license-file
24
+
25
+ # agentic-dataset-conformance
26
+
27
+ **Fifteen normative assertions about governed datasets, as language-neutral
28
+ executable vectors, checkable against any implementation without access to its
29
+ internals.**
30
+
31
+ ```bash
32
+ pip install agentic-dataset-conformance
33
+ agentic-dataset-conformance run # against the built-in subject
34
+ ```
35
+
36
+ This package contains **no implementation of the contract** — not even the
37
+ reference one. That is the property it exists to have: a conformance suite that
38
+ imports the thing it tests is testing itself.
39
+
40
+ ## What the assertions rule out
41
+
42
+ | | |
43
+ |---|---|
44
+ | **AD-001** `descriptor_valid` | a dataset in admission without a well-formed contract |
45
+ | **AD-002** `capability_registered` | an executable action with no capability metadata behind it |
46
+ | **AD-003** `grant_required_for_execution` | execution reachable without an authorization artifact |
47
+ | **AD-004** `refusal_has_no_grant` | a refusal that still mints authority |
48
+ | **AD-005** `indeterminate_has_no_grant` | unknown authority becoming permission |
49
+ | **AD-006** `unknown_capability_denied` | default-allow on an unregistered tool |
50
+ | **AD-007** `authorization_scope_preserved` | scope widening between admission and execution |
51
+ | **AD-008** `cache_is_policy_scoped` | a cached answer crossing an authorization boundary |
52
+ | **AD-009** `provenance_complete` | a result that cannot be traced to what produced it |
53
+ | **AD-010** `refusal_recorded` | a refusal that leaves no evidence |
54
+ | **AD-011** `dataset_revision_recorded` | evidence that cannot identify which data was used |
55
+ | **AD-012** `policy_version_recorded` | evidence that cannot identify which rules applied |
56
+ | **AD-013** `remote_execution_preserves_scope` | MCP or A2A delegation as an escalation path |
57
+ | **AD-014** `agent_handoff_preserves_scope` | sub-agent handoff as an escalation path |
58
+ | **AD-015** `prohibited_execution_rate_zero` | any prohibited action executing at all, ever |
59
+
60
+ Every one is checked structurally. Not *"the answer said no"* but: the decision
61
+ is `REFUSED`, no grant exists, and the tool, MCP and A2A call lists are all
62
+ empty.
63
+
64
+ ## Testing your implementation
65
+
66
+ Implement four methods — `load_world`, `capabilities`, `step`, `reset` — and
67
+ return an `Observation` from each step. `interface.py` is the whole contract
68
+ and `verbs.md` is the control-verb vocabulary.
69
+
70
+ ```bash
71
+ agentic-dataset-conformance run --subject mypackage.conformance:make_subject
72
+ ```
73
+
74
+ `--subject` takes `module:attribute`, where the attribute is a subject, or a
75
+ callable returning one or several. `agentic_dataset_conformance.toy` is a
76
+ 250-line worked example that implements the contract with no framework, no
77
+ vector store and no policy engine — grants are integers in a dict — and passes
78
+ all fifteen.
79
+
80
+ ## Checking that the suite would notice
81
+
82
+ ```bash
83
+ agentic-dataset-conformance run --matrix
84
+ ```
85
+
86
+ Seventeen deliberately broken variants, each removing exactly one guarantee.
87
+ Every one is caught by the assertion named for it, every assertion has a mutant
88
+ of its own, and the off-diagonal entries show where the assertions overlap. A
89
+ suite that cannot fail is decoration.
90
+
91
+ ## The vectors are CC0
92
+
93
+ ```bash
94
+ agentic-dataset-conformance vectors --export ./vectors
95
+ ```
96
+
97
+ The worlds and vectors under `data/` are dedicated to the public domain:
98
+ **no attribution required, no conditions**. Copy them into a Rust crate, a Go
99
+ module or a TypeScript package and write your own runner. Python is one runner,
100
+ not the specification.
101
+
102
+ The software around them is Apache-2.0, so the distribution as a whole is
103
+ `Apache-2.0 AND CC0-1.0`.
104
+
105
+ ## What conformance does and does not establish
106
+
107
+ `capabilities()` is the subject's own report of itself. A subject that
108
+ under-reports passes AD-002 while hiding a tool. **Conformance here is a claim
109
+ an implementation makes about itself, made checkable — not an adversarial
110
+ audit**, and no interface of this shape could be one.
111
+
112
+ ## Links
113
+
114
+ - [The specification](https://github.com/agentic-datasets/reference/blob/main/CONFORMANCE.md)
115
+ - [What the portable contract can and cannot reach](https://github.com/agentic-datasets/reference/blob/main/docs/PORTABILITY.md)
116
+ - [Results, with the caveats attached to each number](https://github.com/agentic-datasets/reference/blob/main/docs/RESULTS.md)
@@ -0,0 +1,92 @@
1
+ # agentic-dataset-conformance
2
+
3
+ **Fifteen normative assertions about governed datasets, as language-neutral
4
+ executable vectors, checkable against any implementation without access to its
5
+ internals.**
6
+
7
+ ```bash
8
+ pip install agentic-dataset-conformance
9
+ agentic-dataset-conformance run # against the built-in subject
10
+ ```
11
+
12
+ This package contains **no implementation of the contract** — not even the
13
+ reference one. That is the property it exists to have: a conformance suite that
14
+ imports the thing it tests is testing itself.
15
+
16
+ ## What the assertions rule out
17
+
18
+ | | |
19
+ |---|---|
20
+ | **AD-001** `descriptor_valid` | a dataset in admission without a well-formed contract |
21
+ | **AD-002** `capability_registered` | an executable action with no capability metadata behind it |
22
+ | **AD-003** `grant_required_for_execution` | execution reachable without an authorization artifact |
23
+ | **AD-004** `refusal_has_no_grant` | a refusal that still mints authority |
24
+ | **AD-005** `indeterminate_has_no_grant` | unknown authority becoming permission |
25
+ | **AD-006** `unknown_capability_denied` | default-allow on an unregistered tool |
26
+ | **AD-007** `authorization_scope_preserved` | scope widening between admission and execution |
27
+ | **AD-008** `cache_is_policy_scoped` | a cached answer crossing an authorization boundary |
28
+ | **AD-009** `provenance_complete` | a result that cannot be traced to what produced it |
29
+ | **AD-010** `refusal_recorded` | a refusal that leaves no evidence |
30
+ | **AD-011** `dataset_revision_recorded` | evidence that cannot identify which data was used |
31
+ | **AD-012** `policy_version_recorded` | evidence that cannot identify which rules applied |
32
+ | **AD-013** `remote_execution_preserves_scope` | MCP or A2A delegation as an escalation path |
33
+ | **AD-014** `agent_handoff_preserves_scope` | sub-agent handoff as an escalation path |
34
+ | **AD-015** `prohibited_execution_rate_zero` | any prohibited action executing at all, ever |
35
+
36
+ Every one is checked structurally. Not *"the answer said no"* but: the decision
37
+ is `REFUSED`, no grant exists, and the tool, MCP and A2A call lists are all
38
+ empty.
39
+
40
+ ## Testing your implementation
41
+
42
+ Implement four methods — `load_world`, `capabilities`, `step`, `reset` — and
43
+ return an `Observation` from each step. `interface.py` is the whole contract
44
+ and `verbs.md` is the control-verb vocabulary.
45
+
46
+ ```bash
47
+ agentic-dataset-conformance run --subject mypackage.conformance:make_subject
48
+ ```
49
+
50
+ `--subject` takes `module:attribute`, where the attribute is a subject, or a
51
+ callable returning one or several. `agentic_dataset_conformance.toy` is a
52
+ 250-line worked example that implements the contract with no framework, no
53
+ vector store and no policy engine — grants are integers in a dict — and passes
54
+ all fifteen.
55
+
56
+ ## Checking that the suite would notice
57
+
58
+ ```bash
59
+ agentic-dataset-conformance run --matrix
60
+ ```
61
+
62
+ Seventeen deliberately broken variants, each removing exactly one guarantee.
63
+ Every one is caught by the assertion named for it, every assertion has a mutant
64
+ of its own, and the off-diagonal entries show where the assertions overlap. A
65
+ suite that cannot fail is decoration.
66
+
67
+ ## The vectors are CC0
68
+
69
+ ```bash
70
+ agentic-dataset-conformance vectors --export ./vectors
71
+ ```
72
+
73
+ The worlds and vectors under `data/` are dedicated to the public domain:
74
+ **no attribution required, no conditions**. Copy them into a Rust crate, a Go
75
+ module or a TypeScript package and write your own runner. Python is one runner,
76
+ not the specification.
77
+
78
+ The software around them is Apache-2.0, so the distribution as a whole is
79
+ `Apache-2.0 AND CC0-1.0`.
80
+
81
+ ## What conformance does and does not establish
82
+
83
+ `capabilities()` is the subject's own report of itself. A subject that
84
+ under-reports passes AD-002 while hiding a tool. **Conformance here is a claim
85
+ an implementation makes about itself, made checkable — not an adversarial
86
+ audit**, and no interface of this shape could be one.
87
+
88
+ ## Links
89
+
90
+ - [The specification](https://github.com/agentic-datasets/reference/blob/main/CONFORMANCE.md)
91
+ - [What the portable contract can and cannot reach](https://github.com/agentic-datasets/reference/blob/main/docs/PORTABILITY.md)
92
+ - [Results, with the caveats attached to each number](https://github.com/agentic-datasets/reference/blob/main/docs/RESULTS.md)
@@ -0,0 +1,60 @@
1
+ [build-system]
2
+ requires = ["setuptools>=77"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "agentic-dataset-conformance"
7
+ version = "0.1.0"
8
+ description = "AD-001..AD-015: the agentic-dataset governance contract as language-neutral executable conformance vectors, plus a runner that needs no access to an implementation's internals"
9
+ readme = "README.md"
10
+ requires-python = ">=3.11"
11
+ authors = [{ name = "Alexander Chernov" }]
12
+
13
+ # Two licences in one distribution, so the expression says so rather than
14
+ # rounding to whichever is more convenient. The software is Apache-2.0; the
15
+ # normative worlds and vectors under `data/` are dedicated to the public domain
16
+ # under CC0-1.0, deliberately, so they can be vendored unchanged into an
17
+ # implementation in any language with no attribution condition attached.
18
+ license = "Apache-2.0 AND CC0-1.0"
19
+ license-files = ["LICENSES/Apache-2.0.txt", "LICENSES/CC0-1.0.txt"]
20
+
21
+ keywords = [
22
+ "conformance", "specification", "test vectors", "agentic datasets",
23
+ "data governance", "authorization", "admission control", "interoperability",
24
+ ]
25
+ # No "License ::" classifier: PEP 639 supersedes them with the expression above,
26
+ # and setuptools rejects having both.
27
+ classifiers = [
28
+ "Programming Language :: Python :: 3",
29
+ "Topic :: Software Development :: Testing",
30
+ "Topic :: Software Development :: Quality Assurance",
31
+ "Intended Audience :: Developers",
32
+ "Intended Audience :: Science/Research",
33
+ ]
34
+
35
+ # None. The harness must not depend on any implementation, including the
36
+ # reference one, or it would be testing itself.
37
+ dependencies = []
38
+
39
+ [project.optional-dependencies]
40
+ dev = ["pytest>=8"]
41
+
42
+ [project.urls]
43
+ Homepage = "https://github.com/agentic-datasets/reference"
44
+ Documentation = "https://agenticdatasets.org/reference/"
45
+ Specification = "https://github.com/agentic-datasets/reference/blob/main/CONFORMANCE.md"
46
+ Source = "https://github.com/agentic-datasets/reference/tree/main/packages/agentic-dataset-conformance"
47
+
48
+ [project.scripts]
49
+ agentic-dataset-conformance = "agentic_dataset_conformance.cli:main"
50
+
51
+ [tool.setuptools.packages.find]
52
+ where = ["src"]
53
+
54
+ [tool.setuptools.package-data]
55
+ agentic_dataset_conformance = [
56
+ "data/worlds/*.json",
57
+ "data/vectors/*.json",
58
+ "data/LICENSE",
59
+ "verbs.md",
60
+ ]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,68 @@
1
+ """The portable conformance suite for the agentic-dataset contract.
2
+
3
+ Fifteen normative assertions, AD-001 .. AD-015, as language-neutral executable
4
+ vectors plus a runner that evaluates them against any implementation through a
5
+ four-method interface. It imports no implementation, including the reference
6
+ one, and the vectors travel with it.
7
+
8
+ from agentic_dataset_conformance import load_suite, run
9
+ report = run(my_subject)
10
+ print(report.passed, [f.assertion for f in report.failures])
11
+
12
+ The vectors and worlds are the normative artifact and are dedicated to the
13
+ public domain under CC0-1.0; the software around them is Apache-2.0. Copy the
14
+ vectors into a Rust, Go or TypeScript project and write your own runner --
15
+ that is what they are for, and `export_vectors()` exists to make it one call.
16
+
17
+ See `verbs.md` beside this module for the control-verb vocabulary a subject
18
+ must understand, and `interface.py` for what it must expose.
19
+ """
20
+
21
+ from __future__ import annotations
22
+
23
+ import shutil
24
+ from importlib import resources
25
+ from pathlib import Path
26
+
27
+ from .interface import ConformanceSubject, Observation, Scope
28
+ from .runner import (
29
+ INVARIANTS,
30
+ AssertionResult,
31
+ SubjectReport,
32
+ Vector,
33
+ VectorSuite,
34
+ load_suite,
35
+ run,
36
+ )
37
+ from .toy import ToyImplementation
38
+
39
+ __version__ = "0.1.0"
40
+
41
+ #: The fifteen assertion identifiers, in order.
42
+ ASSERTIONS = tuple(f"AD-{i:03d}" for i in range(1, 16))
43
+
44
+ __all__ = [
45
+ "ASSERTIONS", "AssertionResult", "ConformanceSubject", "INVARIANTS",
46
+ "Observation", "Scope", "SubjectReport", "ToyImplementation", "Vector",
47
+ "VectorSuite", "__version__", "export_vectors", "load_suite", "run",
48
+ "vectors_path",
49
+ ]
50
+
51
+
52
+ def vectors_path():
53
+ """The packaged normative data as a traversable resource."""
54
+ return resources.files(__package__) / "data"
55
+
56
+
57
+ def export_vectors(destination: str | Path) -> Path:
58
+ """Copy the normative worlds and vectors out, for use anywhere.
59
+
60
+ They are CC0-1.0: no attribution required, no conditions. Vendor them into
61
+ another language's repository and write a runner there.
62
+ """
63
+ destination = Path(destination)
64
+ destination.mkdir(parents=True, exist_ok=True)
65
+ with resources.as_file(vectors_path()) as data:
66
+ for sub in ("worlds", "vectors"):
67
+ shutil.copytree(data / sub, destination / sub, dirs_exist_ok=True)
68
+ return destination
@@ -0,0 +1,4 @@
1
+ from .cli import main
2
+
3
+ if __name__ == "__main__":
4
+ raise SystemExit(main())