@agent-blueprint-protocol/verifier 0.7.0
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.
- package/CHANGELOG.md +891 -0
- package/LICENSE +190 -0
- package/NOTICE +4 -0
- package/README.md +199 -0
- package/dist/corpus/cases/base64url-decode.json +1 -0
- package/dist/corpus/cases/blueprint-decode.json +1 -0
- package/dist/corpus/cases/bounds-new.json +1 -0
- package/dist/corpus/cases/bounds_algebra-intersect.json +1 -0
- package/dist/corpus/cases/canonicalization-encode.json +1 -0
- package/dist/corpus/cases/compatibility-verify.json +1 -0
- package/dist/corpus/cases/deployment-decode.json +1 -0
- package/dist/corpus/cases/digest-tagged.json +1 -0
- package/dist/corpus/cases/extension-resolve.json +1 -0
- package/dist/corpus/cases/federation-decode.json +1 -0
- package/dist/corpus/cases/federation-verify_commitment.json +1 -0
- package/dist/corpus/cases/json-decode.json +1 -0
- package/dist/corpus/cases/negotiation-negotiate.json +1 -0
- package/dist/corpus/cases/portability-scan.json +1 -0
- package/dist/corpus/cases/schema-validate_instance.json +1 -0
- package/dist/corpus/cases/signature-verify.json +1 -0
- package/dist/corpus/index.json +1 -0
- package/dist/corpus/schemas/estate-contract.schema.json +1 -0
- package/dist/corpus/schemas/object.schema.json +1 -0
- package/dist/corpus/vectors/blueprint-golden.json +1 -0
- package/dist/corpus/vectors/deployment-golden.json +1 -0
- package/dist/corpus/vectors/rfc8785-numbers.json +1 -0
- package/dist/kit/cli.mjs +24 -0
- package/dist/verifier/b64url.d.ts +16 -0
- package/dist/verifier/b64url.js +36 -0
- package/dist/verifier/blueprint.d.ts +56 -0
- package/dist/verifier/blueprint.js +795 -0
- package/dist/verifier/bounds.d.ts +19 -0
- package/dist/verifier/bounds.js +45 -0
- package/dist/verifier/bounds_algebra.d.ts +27 -0
- package/dist/verifier/bounds_algebra.js +282 -0
- package/dist/verifier/canonical.d.ts +17 -0
- package/dist/verifier/canonical.js +160 -0
- package/dist/verifier/cli.d.ts +1 -0
- package/dist/verifier/cli.js +149 -0
- package/dist/verifier/compatibility.d.ts +22 -0
- package/dist/verifier/compatibility.js +112 -0
- package/dist/verifier/corpus.d.ts +42 -0
- package/dist/verifier/corpus.js +672 -0
- package/dist/verifier/decode.d.ts +16 -0
- package/dist/verifier/decode.js +457 -0
- package/dist/verifier/deployment.d.ts +49 -0
- package/dist/verifier/deployment.js +830 -0
- package/dist/verifier/digest.d.ts +23 -0
- package/dist/verifier/digest.js +58 -0
- package/dist/verifier/extension.d.ts +11 -0
- package/dist/verifier/extension.js +75 -0
- package/dist/verifier/federation.d.ts +76 -0
- package/dist/verifier/federation.js +817 -0
- package/dist/verifier/negotiation.d.ts +29 -0
- package/dist/verifier/negotiation.js +324 -0
- package/dist/verifier/portability.d.ts +12 -0
- package/dist/verifier/portability.js +184 -0
- package/dist/verifier/predicate.d.ts +10 -0
- package/dist/verifier/predicate.js +172 -0
- package/dist/verifier/registry.d.ts +16 -0
- package/dist/verifier/registry.js +120 -0
- package/dist/verifier/registry_engine.d.ts +42 -0
- package/dist/verifier/registry_engine.js +220 -0
- package/dist/verifier/report.d.ts +13 -0
- package/dist/verifier/report.js +29 -0
- package/dist/verifier/run_corpus.d.ts +1 -0
- package/dist/verifier/run_corpus.js +81 -0
- package/dist/verifier/runner.d.ts +20 -0
- package/dist/verifier/runner.js +778 -0
- package/dist/verifier/schema.d.ts +20 -0
- package/dist/verifier/schema.js +623 -0
- package/dist/verifier/self_checks.d.ts +1 -0
- package/dist/verifier/self_checks.js +316 -0
- package/dist/verifier/signature.d.ts +23 -0
- package/dist/verifier/signature.js +226 -0
- package/dist/verifier/value.d.ts +44 -0
- package/dist/verifier/value.js +77 -0
- package/package.json +42 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all other
|
|
162
|
+
commercial damages or losses), even if such Contributor has been
|
|
163
|
+
advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
Copyright 2026 BaseLabs
|
|
179
|
+
|
|
180
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
181
|
+
you may not use this file except in compliance with the License.
|
|
182
|
+
You may obtain a copy of the License at
|
|
183
|
+
|
|
184
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
185
|
+
|
|
186
|
+
Unless required by applicable law or agreed to in writing, software
|
|
187
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
188
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
189
|
+
See the License for the specific language governing permissions and
|
|
190
|
+
limitations under the License.
|
package/NOTICE
ADDED
package/README.md
ADDED
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
# Agent Blueprint Protocol
|
|
2
|
+
|
|
3
|
+
[](https://github.com/baselabs/agent_blueprint_protocol/actions/workflows/ci.yml)
|
|
4
|
+
[](https://hex.pm/packages/agent_blueprint_protocol)
|
|
5
|
+
[](https://hex.pm/packages/agent_blueprint_protocol)
|
|
6
|
+
|
|
7
|
+
Agent Blueprint Protocol is a portable, non-authorizing contract for describing
|
|
8
|
+
an agent capability and binding one immutable release to an execution
|
|
9
|
+
environment.
|
|
10
|
+
|
|
11
|
+
The public package is the reference implementation for two
|
|
12
|
+
language-neutral artifacts:
|
|
13
|
+
|
|
14
|
+
- **Blueprint Core** — stable identity, typed ports, logical capability
|
|
15
|
+
requirements, bounds, evidence commitments, and registered extensions.
|
|
16
|
+
- **Deployment Manifest** — environment-local tool, principal, data,
|
|
17
|
+
authority, effect, evaluation, and exact-build bindings for one Blueprint
|
|
18
|
+
release digest.
|
|
19
|
+
|
|
20
|
+
Protocol validity never grants authority. A consuming host remains responsible
|
|
21
|
+
for identity, tenancy, policy, live authorization, effect ownership, execution,
|
|
22
|
+
and evidence retention.
|
|
23
|
+
|
|
24
|
+
## Installation
|
|
25
|
+
|
|
26
|
+
```elixir
|
|
27
|
+
def deps do
|
|
28
|
+
[
|
|
29
|
+
{:agent_blueprint_protocol, "~> 0.7.0"}
|
|
30
|
+
]
|
|
31
|
+
end
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
The package has **zero production dependencies**, no application callback, and
|
|
35
|
+
no supervision tree.
|
|
36
|
+
|
|
37
|
+
## Installation (TypeScript)
|
|
38
|
+
|
|
39
|
+
The verifier ships as an installable npm kit,
|
|
40
|
+
`@agent-blueprint-protocol/verifier`: the compiled verifier, its
|
|
41
|
+
declarations, and the conformance corpus embedded byte-identically to
|
|
42
|
+
the release-certified copy. Zero runtime dependencies; Node 24+.
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
npx @agent-blueprint-protocol/verifier # verify the embedded corpus
|
|
46
|
+
npx @agent-blueprint-protocol/verifier --artifact <file.json> # verify one artifact
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
See the [TypeScript quickstart](documentation/typescript.md) and the
|
|
50
|
+
[examples gallery](documentation/examples.md).
|
|
51
|
+
|
|
52
|
+
## When to use — and when NOT
|
|
53
|
+
|
|
54
|
+
**Use this protocol when** you need a portable, verifiable contract for
|
|
55
|
+
what an agent is and what it may do: bounds that can only narrow,
|
|
56
|
+
evidence commitments that survive independent verification, and a
|
|
57
|
+
conformance corpus that proves the whole surface. It complements the
|
|
58
|
+
transport and discovery protocols — a blueprint rides IN A2A task
|
|
59
|
+
metadata and MCP `_meta`.
|
|
60
|
+
|
|
61
|
+
**Do NOT use it if you need an agent to HAVE authority.** This grants
|
|
62
|
+
none: identity, tenancy, live policy, effect ownership, execution,
|
|
63
|
+
billing, and evaluation truth stay with the host, always. If your
|
|
64
|
+
problem is granting permissions, this is the wrong layer — you need a
|
|
65
|
+
policy engine, and a blueprint can carry its requirements to one.
|
|
66
|
+
|
|
67
|
+
## What it provides
|
|
68
|
+
|
|
69
|
+
Decoding and validation (every result is a typed fact or a typed denial —
|
|
70
|
+
never an authorization decision):
|
|
71
|
+
|
|
72
|
+
- `decode_blueprint/2` — bounded, fail-closed decode of a Blueprint: canonical
|
|
73
|
+
byte verification, registry validation, portability scan, digest comparison.
|
|
74
|
+
- `decode_deployment/2` — the same pipeline for a Deployment Manifest bound to
|
|
75
|
+
one Blueprint release digest.
|
|
76
|
+
- `decode_federation_envelope/2` — the 23-member federation task envelope
|
|
77
|
+
through the shared registry engine; `federation_mapping/0` returns the
|
|
78
|
+
A2A/MCP Tasks field mapping as data.
|
|
79
|
+
- `canonical_bytes/1` — the exact canonical (JCS) wire bytes of a decoded
|
|
80
|
+
artifact.
|
|
81
|
+
|
|
82
|
+
Semantics:
|
|
83
|
+
|
|
84
|
+
- `negotiate/2` — the evolution gate: revision sets, required core fields,
|
|
85
|
+
and the positional extension state machine (unknown critical denies,
|
|
86
|
+
unknown optional quarantines byte-exactly).
|
|
87
|
+
- `intersect/1` — the bounds algebra: the pointwise narrowest intersection of
|
|
88
|
+
Blueprint bounds, Deployment `host_bounds`, and host policy; protected
|
|
89
|
+
narrowings deny or clamp-with-evidence, never silently.
|
|
90
|
+
- `verify_compatibility/2` — identity-exact matching of manifest build
|
|
91
|
+
identities against host-observed identities.
|
|
92
|
+
- `reconcile/3` — the one call per import: the pinned eight-stage pass
|
|
93
|
+
(canonical, digest, negotiation, structure, portability, signatures, bind,
|
|
94
|
+
bounds), reject-or-annotate, never repair, under host-supplied inputs.
|
|
95
|
+
|
|
96
|
+
Tooling: `mix conformance.verify` executes the shipped 96-case corpus;
|
|
97
|
+
`mix conformance.mutations` re-proves the corpus catches named implementation
|
|
98
|
+
breaks; `mix verifier.agreement` byte-agrees the Elixir runner with the
|
|
99
|
+
independent TypeScript verifier.
|
|
100
|
+
|
|
101
|
+
## Status
|
|
102
|
+
|
|
103
|
+
The protocol API, schemas, canonicalization profile, extension registry,
|
|
104
|
+
and conformance corpus are implemented and gated: 917 tests
|
|
105
|
+
(59 properties) at 100% coverage, zero Dialyzer errors, `--strict`
|
|
106
|
+
Credo clean, a 96-case conformance corpus with a mutation gate, and a
|
|
107
|
+
byte-agreement gate against an independent second-language verifier.
|
|
108
|
+
The normative specification, [`spec/protocol.md`](spec/protocol.md),
|
|
109
|
+
ships in the Hex archive. The full gate battery and every gate's
|
|
110
|
+
recorded red proof are public in this repository under
|
|
111
|
+
[`docs/design/requirement-map.md`](https://github.com/baselabs/agent_blueprint_protocol/blob/main/docs/design/requirement-map.md).
|
|
112
|
+
|
|
113
|
+
The 0.x series is the public pre-1.0 line: shipped contracts may
|
|
114
|
+
change within 0.x under pre-1.0 conventions, and every contract change
|
|
115
|
+
lands with a red-capable test.
|
|
116
|
+
|
|
117
|
+
## Intended properties
|
|
118
|
+
|
|
119
|
+
- Language-neutral canonical artifacts with bounded parsing.
|
|
120
|
+
- Fail-closed protocol revision and required-field handling.
|
|
121
|
+
- Bounds that can narrow host policy but can never widen it.
|
|
122
|
+
- Critical extensions that deny when unsupported; optional extensions that
|
|
123
|
+
round-trip without execution.
|
|
124
|
+
- Exact compatibility manifests and red-capable tamper/downgrade corpora.
|
|
125
|
+
- Zero third-party/Hex production dependencies and no supervision tree.
|
|
126
|
+
- No product-specific tenant, key, grant, endpoint, database, provider, or
|
|
127
|
+
engine identifiers in portable artifacts.
|
|
128
|
+
|
|
129
|
+
## Development
|
|
130
|
+
|
|
131
|
+
Built and tested against Elixir 1.20.x on OTP 29.x — the single Elixir/OTP
|
|
132
|
+
target exercised in CI. Broader target support is not claimed until its own
|
|
133
|
+
CI receipts exist.
|
|
134
|
+
|
|
135
|
+
```bash
|
|
136
|
+
mix deps.get
|
|
137
|
+
mix quality
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
`mix quality` runs dependency audits, formatting, warnings-as-errors
|
|
141
|
+
compilation, Credo, tests with the 100% coverage threshold, the
|
|
142
|
+
conformance corpus and its mutation gate, the second-language verifier
|
|
143
|
+
agreement gate, Dialyzer, documentation with warnings-as-errors, and the
|
|
144
|
+
release-candidate check (requirement-map completeness plus protocol-doc
|
|
145
|
+
coupling). Every gate carries a recorded red proof — see the requirement map at
|
|
146
|
+
`docs/design/requirement-map.md` in this repository.
|
|
147
|
+
|
|
148
|
+
### Conformance corpus
|
|
149
|
+
|
|
150
|
+
The package ships a portable conformance corpus (`priv/conformance/`) — 96
|
|
151
|
+
cases covering every required cell of the 16-surface × 31-class applicability
|
|
152
|
+
floor, full-registry golden artifacts, RFC 8785 number vectors, and
|
|
153
|
+
deterministic Ed25519 fixtures. Run it:
|
|
154
|
+
|
|
155
|
+
```bash
|
|
156
|
+
mix conformance.verify # loads, integrity-verifies, and executes the corpus
|
|
157
|
+
mix conformance.mutations # breaks the implementation at named points; the corpus must go red
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
The loader is pure over `%{path => binary}` and refuses corrupted, incomplete,
|
|
161
|
+
or empty corpora with typed errors; the report refuses a vacuous green. The
|
|
162
|
+
corpus is regenerated by `MIX_ENV=test mix run --no-start
|
|
163
|
+
scripts/generate_conformance_corpus.exs`, which refuses to write a corpus that
|
|
164
|
+
does not verify.
|
|
165
|
+
|
|
166
|
+
### Second-language verifier
|
|
167
|
+
|
|
168
|
+
`verifier/` is a first-class repo-side TypeScript implementation (Node ≥ 24,
|
|
169
|
+
`node:` builtins only, zero npm runtime deps — never shipped in the Hex
|
|
170
|
+
archive) that independently recomputes every corpus verdict and integrity
|
|
171
|
+
check: its own bounded JSON scanner with duplicate rejection and the
|
|
172
|
+
integer-window rule, its own JCS canonicalizer (number digits anchored to the
|
|
173
|
+
native ECMAScript serializer, member sort by UTF-16 code units), domain-
|
|
174
|
+
separated digests, detached-JWS Ed25519 verification through `node:crypto`
|
|
175
|
+
with small-order key rejection, and the negotiation, bounds-algebra,
|
|
176
|
+
compatibility, and federation semantics. Run it:
|
|
177
|
+
|
|
178
|
+
```bash
|
|
179
|
+
node verifier/cli.ts --corpus priv/conformance # exit 0/1/2, report bytes on stdout
|
|
180
|
+
node verifier/self_checks.ts # RFC 8785 Appendix B, window matrix,
|
|
181
|
+
# Ed25519 keys, stored JOSE vectors
|
|
182
|
+
mix verifier.agreement # byte-agrees the TS report with the
|
|
183
|
+
# escript's (repo AND built archive),
|
|
184
|
+
# runs the self-checks, and proves three
|
|
185
|
+
# seeded reds fire
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
The agreement gate is part of `mix quality`: the two implementations must
|
|
189
|
+
produce byte-identical JCS reports over the same corpus, and node ≥ 24 is a
|
|
190
|
+
hard prerequisite of the gate.
|
|
191
|
+
|
|
192
|
+
## Security
|
|
193
|
+
|
|
194
|
+
See [`SECURITY.md`](SECURITY.md). A successful verifier result is
|
|
195
|
+
structural evidence only, never an authorization decision.
|
|
196
|
+
|
|
197
|
+
## License
|
|
198
|
+
|
|
199
|
+
Apache License 2.0. See [`LICENSE`](LICENSE) and [`NOTICE`](NOTICE).
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"cases":[{"class":"exact_bound","expected":{"decoded":"QQQ","verdict":"valid"},"id":"base64url-decode-exact-bound","input":{"base64url":"QQQ"},"surface":"base64url.decode"},{"class":"invalid_encoding","expected":{"code":"base64url_padded","verdict":"invalid"},"id":"base64url-decode-invalid-padded","input":{"base64url":"QQ=="},"surface":"base64url.decode"},{"class":"valid","expected":{"decoded":"-_8","verdict":"valid"},"id":"base64url-decode-valid","input":{"base64url":"-_8"},"surface":"base64url.decode"}],"format":"agent-blueprint-protocol-conformance-cases"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"cases":[{"class":"valid","expected":{"digest":"sha-256:I8r9oR3-gt4xy6-UnmNl8aS97q6O4M6mBEl7K39bjTw","verdict":"valid"},"id":"blueprint-decode-extension-valid","input":{"text":"{\"blueprint_id\":\"example.demo/echo\",\"capability_requirements\":[{\"approval_trait\":\"none\",\"argument_schema\":{\"type\":\"object\"},\"authority_trait\":\"none\",\"classification_ceiling\":\"internal\",\"impact_class\":\"ordinary\",\"operation_family\":\"example.demo.read_shape\",\"operation_kind\":\"read\",\"result_schema\":{\"type\":\"object\"}}],\"ceilings\":{\"max_attempts\":3,\"max_concurrency\":2,\"max_cost\":{\"amount\":1000,\"currency\":\"USD\"},\"max_depth\":8,\"max_descendants\":64,\"max_elapsed_ms\":60000,\"max_fan_out\":4,\"max_tokens\":100000},\"classification_ceiling\":\"internal\",\"content_digest\":\"sha-256:I8r9oR3-gt4xy6-UnmNl8aS97q6O4M6mBEl7K39bjTw\",\"effect_intents\":[{\"impact_class\":\"ordinary\",\"logical_operation\":\"record_summary\",\"operation_kind\":\"mutation\"}],\"evaluation_assertions\":[{\"kind\":\"output_schema\",\"port\":\"result\",\"schema\":{\"type\":\"object\"}}],\"extensions\":{\"critical\":{},\"optional\":{\"com.example.commerce/classification-labels\":{\"labels\":[\"pci\"]}}},\"input_ports\":[{\"classification_ceiling\":\"internal\",\"name\":\"request\",\"required\":true,\"schema\":{\"type\":\"object\"}}],\"output_contract\":{\"classification_ceiling\":\"internal\",\"port\":\"result\"},\"output_ports\":[{\"classification_ceiling\":\"internal\",\"name\":\"result\",\"required\":true,\"schema\":{\"type\":\"object\"}}],\"producer\":{\"created_at\":\"2026-08-20T00:00:00Z\",\"identity\":\"example.demo\",\"toolchain\":\"example.demo.toolchain\"},\"protocol_revision\":1,\"release_number\":1,\"required_core_fields\":[],\"triggers\":[\"manual\"]}"},"surface":"blueprint.decode"},{"class":"forbidden_portable_value","expected":{"code":"forbidden_portable_value","verdict":"invalid"},"id":"blueprint-decode-forbidden-portable","input":{"text":"{\"blueprint_id\":\"example.demo/echo\",\"capability_requirements\":[{\"approval_trait\":\"none\",\"argument_schema\":{\"type\":\"object\"},\"authority_trait\":\"none\",\"classification_ceiling\":\"internal\",\"impact_class\":\"ordinary\",\"operation_family\":\"example.demo.read_shape\",\"operation_kind\":\"read\",\"result_schema\":{\"type\":\"object\"}}],\"ceilings\":{\"max_attempts\":3,\"max_concurrency\":2,\"max_cost\":{\"amount\":1000,\"currency\":\"USD\"},\"max_depth\":8,\"max_descendants\":64,\"max_elapsed_ms\":60000,\"max_fan_out\":4,\"max_tokens\":100000},\"classification_ceiling\":\"internal\",\"content_digest\":\"sha-256:ZiY0A43aXGxbOdO17sZtVp9curIyWMQAifZncqtEC2s\",\"effect_intents\":[{\"impact_class\":\"ordinary\",\"logical_operation\":\"record_summary\",\"operation_kind\":\"mutation\"}],\"evaluation_assertions\":[{\"kind\":\"output_schema\",\"port\":\"result\",\"schema\":{\"type\":\"object\"}}],\"extensions\":{\"critical\":{},\"optional\":{}},\"input_ports\":[{\"classification_ceiling\":\"internal\",\"name\":\"request\",\"required\":true,\"schema\":{\"type\":\"object\"}}],\"output_contract\":{\"classification_ceiling\":\"internal\",\"port\":\"result\"},\"output_ports\":[{\"classification_ceiling\":\"internal\",\"name\":\"result\",\"required\":true,\"schema\":{\"type\":\"object\"}}],\"producer\":{\"created_at\":\"2026-08-20T00:00:00Z\",\"identity\":\"example.demo\",\"toolchain\":\"-----BEGIN PRIVATE KEY-----\\nMIIEvQ\\n-----END PRIVATE KEY-----\"},\"protocol_revision\":1,\"release_number\":1,\"required_core_fields\":[],\"triggers\":[\"manual\"]}"},"surface":"blueprint.decode"},{"class":"invalid_cardinality","expected":{"code":"invalid_cardinality","verdict":"invalid"},"id":"blueprint-decode-invalid-cardinality","input":{"text":"{\"blueprint_id\":\"example.demo/echo\",\"capability_requirements\":[{\"approval_trait\":\"none\",\"argument_schema\":{\"type\":\"object\"},\"authority_trait\":\"none\",\"classification_ceiling\":\"internal\",\"impact_class\":\"ordinary\",\"operation_family\":\"example.demo.read_shape\",\"operation_kind\":\"read\",\"result_schema\":{\"type\":\"object\"}}],\"ceilings\":{\"max_attempts\":3,\"max_concurrency\":2,\"max_cost\":{\"amount\":1000,\"currency\":\"USD\"},\"max_depth\":8,\"max_descendants\":64,\"max_elapsed_ms\":60000,\"max_fan_out\":4,\"max_tokens\":100000},\"classification_ceiling\":\"internal\",\"content_digest\":\"sha-256:Gg6yRQHvKN9C5K3fXqb8hhTM8Vzqezzj_G6WLhAs9wE\",\"effect_intents\":[{\"impact_class\":\"ordinary\",\"logical_operation\":\"record_summary\",\"operation_kind\":\"mutation\"}],\"evaluation_assertions\":[{\"kind\":\"output_schema\",\"port\":\"result\",\"schema\":{\"type\":\"object\"}}],\"extensions\":{\"critical\":{},\"optional\":{}},\"input_ports\":[{\"classification_ceiling\":\"internal\",\"name\":\"p1\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p2\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p3\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p4\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p5\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p6\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p7\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p8\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p9\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p10\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p11\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p12\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p13\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p14\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p15\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p16\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p17\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p18\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p19\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p20\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p21\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p22\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p23\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p24\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p25\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p26\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p27\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p28\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p29\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p30\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p31\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p32\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p33\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p34\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p35\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p36\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p37\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p38\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p39\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p40\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p41\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p42\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p43\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p44\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p45\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p46\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p47\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p48\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p49\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p50\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p51\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p52\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p53\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p54\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p55\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p56\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p57\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p58\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p59\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p60\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p61\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p62\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p63\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p64\",\"required\":true,\"schema\":{\"type\":\"object\"}},{\"classification_ceiling\":\"internal\",\"name\":\"p65\",\"required\":true,\"schema\":{\"type\":\"object\"}}],\"output_contract\":{\"classification_ceiling\":\"internal\",\"port\":\"result\"},\"output_ports\":[{\"classification_ceiling\":\"internal\",\"name\":\"result\",\"required\":true,\"schema\":{\"type\":\"object\"}}],\"producer\":{\"created_at\":\"2026-08-20T00:00:00Z\",\"identity\":\"example.demo\",\"toolchain\":\"example.demo.toolchain\"},\"protocol_revision\":1,\"release_number\":1,\"required_core_fields\":[],\"triggers\":[\"manual\"]}"},"surface":"blueprint.decode"},{"class":"invalid_constraint","expected":{"code":"invalid_constraint","verdict":"invalid"},"id":"blueprint-decode-invalid-constraint","input":{"text":"{\"blueprint_id\":\"UPPER/Case\",\"capability_requirements\":[{\"approval_trait\":\"none\",\"argument_schema\":{\"type\":\"object\"},\"authority_trait\":\"none\",\"classification_ceiling\":\"internal\",\"impact_class\":\"ordinary\",\"operation_family\":\"example.demo.read_shape\",\"operation_kind\":\"read\",\"result_schema\":{\"type\":\"object\"}}],\"ceilings\":{\"max_attempts\":3,\"max_concurrency\":2,\"max_cost\":{\"amount\":1000,\"currency\":\"USD\"},\"max_depth\":8,\"max_descendants\":64,\"max_elapsed_ms\":60000,\"max_fan_out\":4,\"max_tokens\":100000},\"classification_ceiling\":\"internal\",\"content_digest\":\"sha-256:WyqXuGp3HXsKPmRbejcQ2DIm3_MPTDs5U4_wFzcyDbo\",\"effect_intents\":[{\"impact_class\":\"ordinary\",\"logical_operation\":\"record_summary\",\"operation_kind\":\"mutation\"}],\"evaluation_assertions\":[{\"kind\":\"output_schema\",\"port\":\"result\",\"schema\":{\"type\":\"object\"}}],\"extensions\":{\"critical\":{},\"optional\":{}},\"input_ports\":[{\"classification_ceiling\":\"internal\",\"name\":\"request\",\"required\":true,\"schema\":{\"type\":\"object\"}}],\"output_contract\":{\"classification_ceiling\":\"internal\",\"port\":\"result\"},\"output_ports\":[{\"classification_ceiling\":\"internal\",\"name\":\"result\",\"required\":true,\"schema\":{\"type\":\"object\"}}],\"producer\":{\"created_at\":\"2026-08-20T00:00:00Z\",\"identity\":\"example.demo\",\"toolchain\":\"example.demo.toolchain\"},\"protocol_revision\":1,\"release_number\":1,\"required_core_fields\":[],\"triggers\":[\"manual\"]}"},"surface":"blueprint.decode"},{"class":"invalid_type","expected":{"code":"invalid_type","verdict":"invalid"},"id":"blueprint-decode-invalid-type","input":{"text":"{\"blueprint_id\":\"example.demo/echo\",\"capability_requirements\":[{\"approval_trait\":\"none\",\"argument_schema\":{\"type\":\"object\"},\"authority_trait\":\"none\",\"classification_ceiling\":\"internal\",\"impact_class\":\"ordinary\",\"operation_family\":\"example.demo.read_shape\",\"operation_kind\":\"read\",\"result_schema\":{\"type\":\"object\"}}],\"ceilings\":\"oops\",\"classification_ceiling\":\"internal\",\"content_digest\":\"sha-256:OjQIxZi82GgN6XCQd2PsxzksvRgPhH7Zw5uXySXlDjE\",\"effect_intents\":[{\"impact_class\":\"ordinary\",\"logical_operation\":\"record_summary\",\"operation_kind\":\"mutation\"}],\"evaluation_assertions\":[{\"kind\":\"output_schema\",\"port\":\"result\",\"schema\":{\"type\":\"object\"}}],\"extensions\":{\"critical\":{},\"optional\":{}},\"input_ports\":[{\"classification_ceiling\":\"internal\",\"name\":\"request\",\"required\":true,\"schema\":{\"type\":\"object\"}}],\"output_contract\":{\"classification_ceiling\":\"internal\",\"port\":\"result\"},\"output_ports\":[{\"classification_ceiling\":\"internal\",\"name\":\"result\",\"required\":true,\"schema\":{\"type\":\"object\"}}],\"producer\":{\"created_at\":\"2026-08-20T00:00:00Z\",\"identity\":\"example.demo\",\"toolchain\":\"example.demo.toolchain\"},\"protocol_revision\":1,\"release_number\":1,\"required_core_fields\":[],\"triggers\":[\"manual\"]}"},"surface":"blueprint.decode"},{"class":"maximum_plus_one","expected":{"code":"ceiling:bytes","verdict":"invalid"},"id":"blueprint-decode-maximum-plus-one","input":{"bounds":{"bytes":10},"text":"{\"blueprint_id\":\"example.demo/echo\",\"capability_requirements\":[{\"approval_trait\":\"none\",\"argument_schema\":{\"type\":\"object\"},\"authority_trait\":\"none\",\"classification_ceiling\":\"internal\",\"impact_class\":\"ordinary\",\"operation_family\":\"example.demo.read_shape\",\"operation_kind\":\"read\",\"result_schema\":{\"type\":\"object\"}}],\"ceilings\":{\"max_attempts\":3,\"max_concurrency\":2,\"max_cost\":{\"amount\":1000,\"currency\":\"USD\"},\"max_depth\":8,\"max_descendants\":64,\"max_elapsed_ms\":60000,\"max_fan_out\":4,\"max_tokens\":100000},\"classification_ceiling\":\"internal\",\"content_digest\":\"sha-256:b1Aw4cU5AbV9k8bdbZkRCsySDHGpTAwB-aQm57Wh7B8\",\"effect_intents\":[{\"impact_class\":\"ordinary\",\"logical_operation\":\"record_summary\",\"operation_kind\":\"mutation\"}],\"evaluation_assertions\":[{\"kind\":\"output_schema\",\"port\":\"result\",\"schema\":{\"type\":\"object\"}}],\"extensions\":{\"critical\":{},\"optional\":{}},\"input_ports\":[{\"classification_ceiling\":\"internal\",\"name\":\"request\",\"required\":true,\"schema\":{\"type\":\"object\"}}],\"output_contract\":{\"classification_ceiling\":\"internal\",\"port\":\"result\"},\"output_ports\":[{\"classification_ceiling\":\"internal\",\"name\":\"result\",\"required\":true,\"schema\":{\"type\":\"object\"}}],\"producer\":{\"created_at\":\"2026-08-20T00:00:00Z\",\"identity\":\"example.demo\",\"toolchain\":\"example.demo.toolchain\"},\"protocol_revision\":1,\"release_number\":1,\"required_core_fields\":[],\"triggers\":[\"manual\"]}"},"surface":"blueprint.decode"},{"class":"valid","expected":{"digest":"sha-256:b1Aw4cU5AbV9k8bdbZkRCsySDHGpTAwB-aQm57Wh7B8","verdict":"valid"},"id":"blueprint-decode-signed-valid","input":{"text":"{\"blueprint_id\":\"example.demo/echo\",\"capability_requirements\":[{\"approval_trait\":\"none\",\"argument_schema\":{\"type\":\"object\"},\"authority_trait\":\"none\",\"classification_ceiling\":\"internal\",\"impact_class\":\"ordinary\",\"operation_family\":\"example.demo.read_shape\",\"operation_kind\":\"read\",\"result_schema\":{\"type\":\"object\"}}],\"ceilings\":{\"max_attempts\":3,\"max_concurrency\":2,\"max_cost\":{\"amount\":1000,\"currency\":\"USD\"},\"max_depth\":8,\"max_descendants\":64,\"max_elapsed_ms\":60000,\"max_fan_out\":4,\"max_tokens\":100000},\"classification_ceiling\":\"internal\",\"content_digest\":\"sha-256:b1Aw4cU5AbV9k8bdbZkRCsySDHGpTAwB-aQm57Wh7B8\",\"effect_intents\":[{\"impact_class\":\"ordinary\",\"logical_operation\":\"record_summary\",\"operation_kind\":\"mutation\"}],\"evaluation_assertions\":[{\"kind\":\"output_schema\",\"port\":\"result\",\"schema\":{\"type\":\"object\"}}],\"extensions\":{\"critical\":{},\"optional\":{}},\"input_ports\":[{\"classification_ceiling\":\"internal\",\"name\":\"request\",\"required\":true,\"schema\":{\"type\":\"object\"}}],\"output_contract\":{\"classification_ceiling\":\"internal\",\"port\":\"result\"},\"output_ports\":[{\"classification_ceiling\":\"internal\",\"name\":\"result\",\"required\":true,\"schema\":{\"type\":\"object\"}}],\"producer\":{\"created_at\":\"2026-08-20T00:00:00Z\",\"identity\":\"example.demo\",\"toolchain\":\"example.demo.toolchain\"},\"protocol_revision\":1,\"release_number\":1,\"required_core_fields\":[],\"signatures\":[{\"protected\":{\"alg\":\"EdDSA\",\"b64\":false,\"crit\":[\"b64\"],\"kid\":\"example-demo-signing-key\"},\"signature\":\"V3-RJiWxEcb6lKa66VHs8nFEzP91ikrkMM68aCrhuDBdUdHs1mfs5-m5vAyX0lFjfNALxjId292rwq1tiab7Cw\",\"signed_attributes\":{\"algorithm\":\"Ed25519\",\"content_digest\":\"sha-256:b1Aw4cU5AbV9k8bdbZkRCsySDHGpTAwB-aQm57Wh7B8\",\"created_at\":\"2026-08-20T00:00:00Z\",\"key_id\":\"example-demo-signing-key\",\"purpose\":\"blueprint\"}}],\"triggers\":[\"manual\"]}"},"surface":"blueprint.decode"},{"class":"tamper_meaningful_byte","expected":{"code":"digest_mismatch","verdict":"invalid"},"id":"blueprint-decode-tamper-byte","input":{"text":"{\"blueprint_id\":\"example.demo/echo\",\"capability_requirements\":[{\"approval_trait\":\"none\",\"argument_schema\":{\"type\":\"object\"},\"authority_trait\":\"none\",\"classification_ceiling\":\"internal\",\"impact_class\":\"ordinary\",\"operation_family\":\"example.demo.read_shape\",\"operation_kind\":\"read\",\"result_schema\":{\"type\":\"object\"}}],\"ceilings\":{\"max_attempts\":3,\"max_concurrency\":2,\"max_cost\":{\"amount\":1000,\"currency\":\"USD\"},\"max_depth\":8,\"max_descendants\":64,\"max_elapsed_ms\":60000,\"max_fan_out\":4,\"max_tokens\":100000},\"classification_ceiling\":\"internal\",\"content_digest\":\"sha-256:b1Aw4cU5AbV9k8bdbZkRCsySDHGpTAwB-aQm57Wh7B8\",\"effect_intents\":[{\"impact_class\":\"ordinary\",\"logical_operation\":\"record_summary\",\"operation_kind\":\"mutation\"}],\"evaluation_assertions\":[{\"kind\":\"output_schema\",\"port\":\"result\",\"schema\":{\"type\":\"object\"}}],\"extensions\":{\"critical\":{},\"optional\":{}},\"input_ports\":[{\"classification_ceiling\":\"internal\",\"name\":\"request\",\"required\":true,\"schema\":{\"type\":\"object\"}}],\"output_contract\":{\"classification_ceiling\":\"internal\",\"port\":\"result\"},\"output_ports\":[{\"classification_ceiling\":\"internal\",\"name\":\"result\",\"required\":true,\"schema\":{\"type\":\"object\"}}],\"producer\":{\"created_at\":\"2026-08-20T00:00:00Z\",\"identity\":\"example.demo\",\"toolchain\":\"example.demo.toolchain\"},\"protocol_revision\":1,\"release_number\":2,\"required_core_fields\":[],\"triggers\":[\"manual\"]}"},"surface":"blueprint.decode","tamper":{"base_case":"blueprint-decode-valid","byte_index":1311,"xor":3}},{"class":"unknown_member","expected":{"code":"unknown_member","verdict":"invalid"},"id":"blueprint-decode-unknown-member","input":{"text":"{\"blueprint_id\":\"example.demo/echo\",\"capability_requirements\":[{\"approval_trait\":\"none\",\"argument_schema\":{\"type\":\"object\"},\"authority_trait\":\"none\",\"classification_ceiling\":\"internal\",\"impact_class\":\"ordinary\",\"operation_family\":\"example.demo.read_shape\",\"operation_kind\":\"read\",\"result_schema\":{\"type\":\"object\"}}],\"ceilings\":{\"max_attempts\":3,\"max_concurrency\":2,\"max_cost\":{\"amount\":1000,\"currency\":\"USD\"},\"max_depth\":8,\"max_descendants\":64,\"max_elapsed_ms\":60000,\"max_fan_out\":4,\"max_tokens\":100000},\"classification_ceiling\":\"internal\",\"content_digest\":\"sha-256:Vt7OHBWYQzX-BPlkpVg35chVBkXT1wsxAsIPDi3lRZI\",\"effect_intents\":[{\"impact_class\":\"ordinary\",\"logical_operation\":\"record_summary\",\"operation_kind\":\"mutation\"}],\"evaluation_assertions\":[{\"kind\":\"output_schema\",\"port\":\"result\",\"schema\":{\"type\":\"object\"}}],\"extensions\":{\"critical\":{},\"optional\":{}},\"input_ports\":[{\"classification_ceiling\":\"internal\",\"name\":\"request\",\"required\":true,\"schema\":{\"type\":\"object\"}}],\"output_contract\":{\"classification_ceiling\":\"internal\",\"port\":\"result\"},\"output_ports\":[{\"classification_ceiling\":\"internal\",\"name\":\"result\",\"required\":true,\"schema\":{\"type\":\"object\"}}],\"producer\":{\"created_at\":\"2026-08-20T00:00:00Z\",\"identity\":\"example.demo\",\"toolchain\":\"example.demo.toolchain\"},\"protocol_revision\":1,\"release_number\":1,\"required_core_fields\":[],\"triggers\":[\"manual\"],\"zz_extra\":1}"},"surface":"blueprint.decode"},{"class":"valid","expected":{"digest":"sha-256:b1Aw4cU5AbV9k8bdbZkRCsySDHGpTAwB-aQm57Wh7B8","verdict":"valid"},"id":"blueprint-decode-valid","input":{"text":"{\"blueprint_id\":\"example.demo/echo\",\"capability_requirements\":[{\"approval_trait\":\"none\",\"argument_schema\":{\"type\":\"object\"},\"authority_trait\":\"none\",\"classification_ceiling\":\"internal\",\"impact_class\":\"ordinary\",\"operation_family\":\"example.demo.read_shape\",\"operation_kind\":\"read\",\"result_schema\":{\"type\":\"object\"}}],\"ceilings\":{\"max_attempts\":3,\"max_concurrency\":2,\"max_cost\":{\"amount\":1000,\"currency\":\"USD\"},\"max_depth\":8,\"max_descendants\":64,\"max_elapsed_ms\":60000,\"max_fan_out\":4,\"max_tokens\":100000},\"classification_ceiling\":\"internal\",\"content_digest\":\"sha-256:b1Aw4cU5AbV9k8bdbZkRCsySDHGpTAwB-aQm57Wh7B8\",\"effect_intents\":[{\"impact_class\":\"ordinary\",\"logical_operation\":\"record_summary\",\"operation_kind\":\"mutation\"}],\"evaluation_assertions\":[{\"kind\":\"output_schema\",\"port\":\"result\",\"schema\":{\"type\":\"object\"}}],\"extensions\":{\"critical\":{},\"optional\":{}},\"input_ports\":[{\"classification_ceiling\":\"internal\",\"name\":\"request\",\"required\":true,\"schema\":{\"type\":\"object\"}}],\"output_contract\":{\"classification_ceiling\":\"internal\",\"port\":\"result\"},\"output_ports\":[{\"classification_ceiling\":\"internal\",\"name\":\"result\",\"required\":true,\"schema\":{\"type\":\"object\"}}],\"producer\":{\"created_at\":\"2026-08-20T00:00:00Z\",\"identity\":\"example.demo\",\"toolchain\":\"example.demo.toolchain\"},\"protocol_revision\":1,\"release_number\":1,\"required_core_fields\":[],\"triggers\":[\"manual\"]}"},"surface":"blueprint.decode"}],"format":"agent-blueprint-protocol-conformance-cases"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"cases":[{"class":"exact_bound","expected":{"bounds":{"bytes":5000000,"depth":64,"items":10000,"key":1000,"members":1000,"nodes":200000,"number_lexeme":64,"string":100000},"verdict":"valid"},"id":"bounds-new-exact-bound","input":{"bounds":{"depth":64}},"surface":"bounds.new"},{"class":"invalid_type","expected":{"code":"invalid_type","verdict":"invalid"},"id":"bounds-new-invalid-type","input":{"bounds":[1]},"surface":"bounds.new"},{"class":"maximum_plus_one","expected":{"code":"ceiling:depth","verdict":"invalid"},"id":"bounds-new-maximum-plus-one","input":{"bounds":{"depth":65}},"surface":"bounds.new"},{"class":"valid","expected":{"bounds":{"bytes":5000000,"depth":8,"items":10000,"key":1000,"members":1000,"nodes":200000,"number_lexeme":64,"string":100000},"verdict":"valid"},"id":"bounds-new-valid","input":{"bounds":{"depth":8}},"surface":"bounds.new"}],"format":"agent-blueprint-protocol-conformance-cases"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"cases":[{"class":"invalid_constraint","expected":{"code":"missing_ceiling","verdict":"invalid"},"id":"intersect-invalid-constraint","input":{"blueprint":{"approval_trait":"none","authority_trait":"local_policy","classification_ceiling":{"markers":[],"ordinal":"internal"},"disclosure_ceiling":"none","effect_impact_ceiling":"ordinary","max_concurrency":3,"max_cost":{"amount":3,"currency":"USD"},"max_depth":3,"max_descendants":3,"max_elapsed_ms":3,"max_fan_out":3,"max_tokens":3},"deployment":{"approval_trait":"none","authority_trait":"local_policy","classification_ceiling":{"markers":[],"ordinal":"internal"},"disclosure_ceiling":"none","effect_impact_ceiling":"ordinary","max_attempts":3,"max_concurrency":3,"max_cost":{"amount":3,"currency":"USD"},"max_depth":3,"max_descendants":3,"max_elapsed_ms":3,"max_fan_out":3,"max_tokens":3},"host":{"approval_trait":"none","authority_trait":"local_policy","classification_ceiling":{"markers":[],"ordinal":"internal"},"disclosure_ceiling":"none","effect_impact_ceiling":"ordinary","max_attempts":3,"max_concurrency":3,"max_cost":{"amount":3,"currency":"USD"},"max_depth":3,"max_descendants":3,"max_elapsed_ms":3,"max_fan_out":3,"max_tokens":3}},"surface":"bounds_algebra.intersect"},{"class":"invalid_type","expected":{"code":"invalid_type","verdict":"invalid"},"id":"intersect-invalid-type","input":{"blueprint":{"no_such_bound":1},"deployment":{"approval_trait":"none","authority_trait":"local_policy","classification_ceiling":{"markers":[],"ordinal":"internal"},"disclosure_ceiling":"none","effect_impact_ceiling":"ordinary","max_attempts":3,"max_concurrency":3,"max_cost":{"amount":3,"currency":"USD"},"max_depth":3,"max_descendants":3,"max_elapsed_ms":3,"max_fan_out":3,"max_tokens":3},"host":{"approval_trait":"none","authority_trait":"local_policy","classification_ceiling":{"markers":[],"ordinal":"internal"},"disclosure_ceiling":"none","effect_impact_ceiling":"ordinary","max_attempts":3,"max_concurrency":3,"max_cost":{"amount":3,"currency":"USD"},"max_depth":3,"max_descendants":3,"max_elapsed_ms":3,"max_fan_out":3,"max_tokens":3}},"surface":"bounds_algebra.intersect"},{"class":"valid","expected":{"clamp_count":0,"effective":{"approval_trait":"separated_human_required","authority_trait":"external_authority_required","classification_ceiling":{"markers":[],"ordinal":"internal"},"disclosure_ceiling":"none","effect_impact_ceiling":"authority","max_attempts":3,"max_concurrency":3,"max_cost":{"amount":3,"currency":"USD"},"max_depth":3,"max_descendants":3,"max_elapsed_ms":3,"max_fan_out":3,"max_tokens":3},"verdict":"valid"},"id":"intersect-obligation-strict-blueprint","input":{"blueprint":{"approval_trait":"separated_human_required","authority_trait":"external_authority_required","classification_ceiling":{"markers":[],"ordinal":"internal"},"disclosure_ceiling":"none","effect_impact_ceiling":"authority","max_attempts":3,"max_concurrency":3,"max_cost":{"amount":3,"currency":"USD"},"max_depth":3,"max_descendants":3,"max_elapsed_ms":3,"max_fan_out":3,"max_tokens":3},"deployment":{"approval_trait":"none","authority_trait":"local_policy","classification_ceiling":{"markers":[],"ordinal":"internal"},"disclosure_ceiling":"none","effect_impact_ceiling":"ordinary","max_attempts":3,"max_concurrency":3,"max_cost":{"amount":3,"currency":"USD"},"max_depth":3,"max_descendants":3,"max_elapsed_ms":3,"max_fan_out":3,"max_tokens":3},"host":{"approval_trait":"none","authority_trait":"local_policy","classification_ceiling":{"markers":[],"ordinal":"internal"},"disclosure_ceiling":"none","effect_impact_ceiling":"ordinary","max_attempts":3,"max_concurrency":3,"max_cost":{"amount":3,"currency":"USD"},"max_depth":3,"max_descendants":3,"max_elapsed_ms":3,"max_fan_out":3,"max_tokens":3}},"surface":"bounds_algebra.intersect"},{"class":"bound_widening_protected","expected":{"code":"protected_bound_clamp_denied","verdict":"invalid"},"id":"intersect-obligation-widening-protected","input":{"blueprint":{"approval_trait":"none","authority_trait":"local_policy","classification_ceiling":{"markers":[],"ordinal":"internal"},"disclosure_ceiling":"none","effect_impact_ceiling":"ordinary","max_attempts":3,"max_concurrency":3,"max_cost":{"amount":3,"currency":"USD"},"max_depth":3,"max_descendants":3,"max_elapsed_ms":3,"max_fan_out":3,"max_tokens":3},"deployment":{"approval_trait":"none","authority_trait":"local_policy","classification_ceiling":{"markers":[],"ordinal":"internal"},"disclosure_ceiling":"none","effect_impact_ceiling":"ordinary","max_attempts":3,"max_concurrency":3,"max_cost":{"amount":3,"currency":"USD"},"max_depth":3,"max_descendants":3,"max_elapsed_ms":3,"max_fan_out":3,"max_tokens":3},"host":{"approval_trait":"none","authority_trait":"external_authority_required","classification_ceiling":{"markers":[],"ordinal":"internal"},"disclosure_ceiling":"none","effect_impact_ceiling":"ordinary","max_attempts":3,"max_concurrency":3,"max_cost":{"amount":3,"currency":"USD"},"max_depth":3,"max_descendants":3,"max_elapsed_ms":3,"max_fan_out":3,"max_tokens":3}},"surface":"bounds_algebra.intersect"},{"class":"valid","expected":{"clamp_count":0,"effective":{"approval_trait":"none","authority_trait":"local_policy","classification_ceiling":{"markers":[],"ordinal":"internal"},"disclosure_ceiling":"none","effect_impact_ceiling":"ordinary","max_attempts":3,"max_concurrency":3,"max_cost":{"amount":3,"currency":"USD"},"max_depth":3,"max_descendants":3,"max_elapsed_ms":3,"max_fan_out":3,"max_tokens":3},"verdict":"valid"},"id":"intersect-valid","input":{"blueprint":{"approval_trait":"none","authority_trait":"local_policy","classification_ceiling":{"markers":[],"ordinal":"internal"},"disclosure_ceiling":"none","effect_impact_ceiling":"ordinary","max_attempts":3,"max_concurrency":3,"max_cost":{"amount":3,"currency":"USD"},"max_depth":3,"max_descendants":3,"max_elapsed_ms":3,"max_fan_out":3,"max_tokens":3},"deployment":{"approval_trait":"none","authority_trait":"local_policy","classification_ceiling":{"markers":[],"ordinal":"internal"},"disclosure_ceiling":"none","effect_impact_ceiling":"ordinary","max_attempts":3,"max_concurrency":3,"max_cost":{"amount":3,"currency":"USD"},"max_depth":3,"max_descendants":3,"max_elapsed_ms":3,"max_fan_out":3,"max_tokens":3},"host":{"approval_trait":"none","authority_trait":"local_policy","classification_ceiling":{"markers":[],"ordinal":"internal"},"disclosure_ceiling":"none","effect_impact_ceiling":"ordinary","max_attempts":3,"max_concurrency":3,"max_cost":{"amount":3,"currency":"USD"},"max_depth":3,"max_descendants":3,"max_elapsed_ms":3,"max_fan_out":3,"max_tokens":3}},"surface":"bounds_algebra.intersect"},{"class":"bound_widening_operational","expected":{"clamp_count":8,"effective":{"approval_trait":"none","authority_trait":"local_policy","classification_ceiling":{"markers":[],"ordinal":"internal"},"disclosure_ceiling":"none","effect_impact_ceiling":"ordinary","max_attempts":3,"max_concurrency":3,"max_cost":{"amount":3,"currency":"USD"},"max_depth":3,"max_descendants":3,"max_elapsed_ms":3,"max_fan_out":3,"max_tokens":3},"verdict":"valid"},"id":"intersect-widening-operational","input":{"blueprint":{"approval_trait":"none","authority_trait":"local_policy","classification_ceiling":{"markers":[],"ordinal":"internal"},"disclosure_ceiling":"none","effect_impact_ceiling":"ordinary","max_attempts":9,"max_concurrency":9,"max_cost":{"amount":9,"currency":"USD"},"max_depth":9,"max_descendants":9,"max_elapsed_ms":9,"max_fan_out":9,"max_tokens":9},"deployment":{"approval_trait":"none","authority_trait":"local_policy","classification_ceiling":{"markers":[],"ordinal":"internal"},"disclosure_ceiling":"none","effect_impact_ceiling":"ordinary","max_attempts":3,"max_concurrency":3,"max_cost":{"amount":3,"currency":"USD"},"max_depth":3,"max_descendants":3,"max_elapsed_ms":3,"max_fan_out":3,"max_tokens":3},"host":{"approval_trait":"none","authority_trait":"local_policy","classification_ceiling":{"markers":[],"ordinal":"internal"},"disclosure_ceiling":"none","effect_impact_ceiling":"ordinary","max_attempts":3,"max_concurrency":3,"max_cost":{"amount":3,"currency":"USD"},"max_depth":3,"max_descendants":3,"max_elapsed_ms":3,"max_fan_out":3,"max_tokens":3}},"surface":"bounds_algebra.intersect"},{"class":"bound_widening_protected","expected":{"code":"protected_bound_clamp_denied","verdict":"invalid"},"id":"intersect-widening-protected","input":{"blueprint":{"approval_trait":"none","authority_trait":"local_policy","classification_ceiling":{"markers":[],"ordinal":"internal"},"disclosure_ceiling":"none","effect_impact_ceiling":"ordinary","max_attempts":3,"max_concurrency":3,"max_cost":{"amount":3,"currency":"USD"},"max_depth":3,"max_descendants":3,"max_elapsed_ms":3,"max_fan_out":3,"max_tokens":3},"deployment":{"approval_trait":"none","authority_trait":"local_policy","classification_ceiling":{"markers":[],"ordinal":"internal"},"disclosure_ceiling":"none","effect_impact_ceiling":"ordinary","max_attempts":3,"max_concurrency":3,"max_cost":{"amount":3,"currency":"USD"},"max_depth":3,"max_descendants":3,"max_elapsed_ms":3,"max_fan_out":3,"max_tokens":3},"host":{"approval_trait":"none","authority_trait":"local_policy","classification_ceiling":{"markers":[],"ordinal":"public"},"disclosure_ceiling":"none","effect_impact_ceiling":"ordinary","max_attempts":3,"max_concurrency":3,"max_cost":{"amount":3,"currency":"USD"},"max_depth":3,"max_descendants":3,"max_elapsed_ms":3,"max_fan_out":3,"max_tokens":3}},"surface":"bounds_algebra.intersect"}],"format":"agent-blueprint-protocol-conformance-cases"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"cases":[{"class":"boundary_near","expected":{"encoded":"{\"𐀀\":2,\"Z\":1}","verdict":"valid"},"id":"canonicalization-encode-boundary-near","input":{"text":"{\"Z\":1,\"𐀀\":2}"},"surface":"canonicalization.encode"},{"class":"exact_bound","expected":{"encoded":"{\"a\":1}","verdict":"valid"},"id":"canonicalization-encode-exact-bound","input":{"bounds":{"bytes":7},"text":"{\"a\":1}"},"surface":"canonicalization.encode"},{"class":"invalid_encoding","expected":{"code":"invalid_encoding","verdict":"invalid"},"id":"canonicalization-encode-invalid-encoding","input":{"base64url":"Iu2ggCI"},"surface":"canonicalization.encode"},{"class":"maximum_plus_one","expected":{"code":"ceiling:bytes","verdict":"invalid"},"id":"canonicalization-encode-maximum-plus-one","input":{"bounds":{"bytes":6},"text":"{\"a\":1}"},"surface":"canonicalization.encode"},{"class":"tamper_meaningful_byte","expected":{"encoded":"{\"𐀀\":2,\"Z\":3}","verdict":"valid"},"id":"canonicalization-encode-tamper-sort-order","input":{"text":"{\"Z\":3,\"𐀀\":2}"},"surface":"canonicalization.encode","tamper":{"base_case":"canonicalization-encode-boundary-near","byte_index":7,"xor":2}},{"class":"valid","expected":{"encoded":"[295147905179352830000,1e-7,5e-324,0]","verdict":"valid"},"id":"canonicalization-encode-valid","input":{"text":"[295147905179352830000,1e-7,5e-324,0]"},"surface":"canonicalization.encode"}],"format":"agent-blueprint-protocol-conformance-cases"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"cases":[{"class":"invalid_constraint","expected":{"code":"invalid_type","verdict":"invalid"},"id":"compatibility-entry-missing","input":{"observed":{},"text":"{\"authority_requirement\":{\"adapter_identity\":\"example.adapters.authority\",\"profile_identity\":\"example.profiles.read-only\"},\"blueprint_release\":{\"blueprint_id\":\"example.demo/echo\",\"content_digest\":\"sha-256:b1Aw4cU5AbV9k8bdbZkRCsySDHGpTAwB-aQm57Wh7B8\",\"release_number\":1},\"build_identities\":[{\"digest\":\"sha-256:5JPgXuHZCEXmNHvHfvBfM6jAp9JiMTvqf6y3n4YchnY\",\"kind\":\"package\",\"name\":\"agent_blueprint_protocol\",\"version\":\"0.1.0\"}],\"data_bindings\":[{\"as_of\":{\"max_age_ms\":86400000,\"mode\":\"required\"},\"classification_ceiling\":\"internal\",\"logical_dataset\":\"shape_orders\"}],\"deployment_digest\":\"sha-256:tWFr0caS0AWFJd2UcB9gZv3kNjIUP8xZ08WWM_h8xgo\",\"effect_owner\":{\"adapter_identity\":\"example.adapters.effects\",\"idempotency\":{\"key_derivation\":\"host\",\"recovery\":\"authoritative\"}},\"eligibility\":{\"beneficiary\":{\"band\":\"operator\",\"kind\":\"beneficiary_band\",\"policy\":\"example.policies/principal-bands\"},\"owner\":{\"band\":\"operator\",\"kind\":\"owner_band\",\"policy\":\"example.policies/principal-bands\"},\"runtime_principal\":{\"band\":\"operator\",\"kind\":\"runtime_band\",\"policy\":\"example.policies/principal-bands\"}},\"evaluation_binding\":{\"adapter_identity\":\"example.adapters.evaluations\",\"corpus\":{\"digest\":\"sha-256:zenFB2mNSBmxJWG4DLIWcNyvFdf85m5Ic-BUmWOU02w\",\"name\":\"example.corpora/echo\"}},\"extensions\":{\"critical\":{},\"optional\":{}},\"host_bounds\":{\"approval_trait\":\"none\",\"authority_trait\":\"none\",\"classification_ceiling\":\"internal\",\"disclosure_ceiling\":\"summary\",\"effect_impact_ceiling\":\"ordinary\",\"max_attempts\":3,\"max_concurrency\":2,\"max_cost\":{\"amount\":1000,\"currency\":\"USD\"},\"max_depth\":8,\"max_descendants\":64,\"max_elapsed_ms\":60000,\"max_fan_out\":4,\"max_tokens\":100000},\"lifecycle\":{\"activated_at\":\"2026-08-20T00:00:00Z\",\"state\":\"active\"},\"model_policy\":{\"allowed_model_roles\":[\"reasoner\"],\"max_cost\":{\"amount\":500,\"currency\":\"USD\"},\"max_tokens\":50000},\"protocol_revision\":1,\"required_core_fields\":[],\"scope_projection\":{\"adapter_identity\":\"example.adapters.scope\"},\"signer_custody\":\"host_managed\",\"tool_bindings\":[{\"adapter_identity\":\"example.adapters.tools\",\"attested_at\":\"2026-08-20T00:00:00Z\",\"descriptor_digest\":\"sha-256:VpMcbixeDnkz4W6WwFyJVm3BG_n8s1jEZANpZLvZEKI\",\"logical_operation\":\"example.demo.read_shape\",\"schema_digest\":\"sha-256:4aRchkjuUMTF6Sm4-oCuZQkzYHP0CvJfGLFHhdjHvY0\"},{\"adapter_identity\":\"example.adapters.effects.tools\",\"attested_at\":\"2026-08-20T00:00:00Z\",\"descriptor_digest\":\"sha-256:VpMcbixeDnkz4W6WwFyJVm3BG_n8s1jEZANpZLvZEKI\",\"logical_operation\":\"record_summary\",\"schema_digest\":\"sha-256:4aRchkjuUMTF6Sm4-oCuZQkzYHP0CvJfGLFHhdjHvY0\"}]}"},"surface":"compatibility.verify"},{"class":"compatibility_range_rejected","expected":{"code":"compatibility_identity_inexact","verdict":"invalid"},"id":"compatibility-range-rejected","input":{"observed":{"identities":[{"digest":"sha-256:5JPgXuHZCEXmNHvHfvBfM6jAp9JiMTvqf6y3n4YchnY","kind":"package","name":"agent_blueprint_protocol","version":"~> 1"}]},"text":"{\"authority_requirement\":{\"adapter_identity\":\"example.adapters.authority\",\"profile_identity\":\"example.profiles.read-only\"},\"blueprint_release\":{\"blueprint_id\":\"example.demo/echo\",\"content_digest\":\"sha-256:b1Aw4cU5AbV9k8bdbZkRCsySDHGpTAwB-aQm57Wh7B8\",\"release_number\":1},\"build_identities\":[{\"digest\":\"sha-256:5JPgXuHZCEXmNHvHfvBfM6jAp9JiMTvqf6y3n4YchnY\",\"kind\":\"package\",\"name\":\"agent_blueprint_protocol\",\"version\":\"0.1.0\"}],\"data_bindings\":[{\"as_of\":{\"max_age_ms\":86400000,\"mode\":\"required\"},\"classification_ceiling\":\"internal\",\"logical_dataset\":\"shape_orders\"}],\"deployment_digest\":\"sha-256:tWFr0caS0AWFJd2UcB9gZv3kNjIUP8xZ08WWM_h8xgo\",\"effect_owner\":{\"adapter_identity\":\"example.adapters.effects\",\"idempotency\":{\"key_derivation\":\"host\",\"recovery\":\"authoritative\"}},\"eligibility\":{\"beneficiary\":{\"band\":\"operator\",\"kind\":\"beneficiary_band\",\"policy\":\"example.policies/principal-bands\"},\"owner\":{\"band\":\"operator\",\"kind\":\"owner_band\",\"policy\":\"example.policies/principal-bands\"},\"runtime_principal\":{\"band\":\"operator\",\"kind\":\"runtime_band\",\"policy\":\"example.policies/principal-bands\"}},\"evaluation_binding\":{\"adapter_identity\":\"example.adapters.evaluations\",\"corpus\":{\"digest\":\"sha-256:zenFB2mNSBmxJWG4DLIWcNyvFdf85m5Ic-BUmWOU02w\",\"name\":\"example.corpora/echo\"}},\"extensions\":{\"critical\":{},\"optional\":{}},\"host_bounds\":{\"approval_trait\":\"none\",\"authority_trait\":\"none\",\"classification_ceiling\":\"internal\",\"disclosure_ceiling\":\"summary\",\"effect_impact_ceiling\":\"ordinary\",\"max_attempts\":3,\"max_concurrency\":2,\"max_cost\":{\"amount\":1000,\"currency\":\"USD\"},\"max_depth\":8,\"max_descendants\":64,\"max_elapsed_ms\":60000,\"max_fan_out\":4,\"max_tokens\":100000},\"lifecycle\":{\"activated_at\":\"2026-08-20T00:00:00Z\",\"state\":\"active\"},\"model_policy\":{\"allowed_model_roles\":[\"reasoner\"],\"max_cost\":{\"amount\":500,\"currency\":\"USD\"},\"max_tokens\":50000},\"protocol_revision\":1,\"required_core_fields\":[],\"scope_projection\":{\"adapter_identity\":\"example.adapters.scope\"},\"signer_custody\":\"host_managed\",\"tool_bindings\":[{\"adapter_identity\":\"example.adapters.tools\",\"attested_at\":\"2026-08-20T00:00:00Z\",\"descriptor_digest\":\"sha-256:VpMcbixeDnkz4W6WwFyJVm3BG_n8s1jEZANpZLvZEKI\",\"logical_operation\":\"example.demo.read_shape\",\"schema_digest\":\"sha-256:4aRchkjuUMTF6Sm4-oCuZQkzYHP0CvJfGLFHhdjHvY0\"},{\"adapter_identity\":\"example.adapters.effects.tools\",\"attested_at\":\"2026-08-20T00:00:00Z\",\"descriptor_digest\":\"sha-256:VpMcbixeDnkz4W6WwFyJVm3BG_n8s1jEZANpZLvZEKI\",\"logical_operation\":\"record_summary\",\"schema_digest\":\"sha-256:4aRchkjuUMTF6Sm4-oCuZQkzYHP0CvJfGLFHhdjHvY0\"}]}"},"surface":"compatibility.verify"},{"class":"valid","expected":{"verdict":"valid","verified":true},"id":"compatibility-valid","input":{"observed":{"identities":[{"digest":"sha-256:5JPgXuHZCEXmNHvHfvBfM6jAp9JiMTvqf6y3n4YchnY","kind":"package","name":"agent_blueprint_protocol","version":"0.1.0"}]},"text":"{\"authority_requirement\":{\"adapter_identity\":\"example.adapters.authority\",\"profile_identity\":\"example.profiles.read-only\"},\"blueprint_release\":{\"blueprint_id\":\"example.demo/echo\",\"content_digest\":\"sha-256:b1Aw4cU5AbV9k8bdbZkRCsySDHGpTAwB-aQm57Wh7B8\",\"release_number\":1},\"build_identities\":[{\"digest\":\"sha-256:5JPgXuHZCEXmNHvHfvBfM6jAp9JiMTvqf6y3n4YchnY\",\"kind\":\"package\",\"name\":\"agent_blueprint_protocol\",\"version\":\"0.1.0\"}],\"data_bindings\":[{\"as_of\":{\"max_age_ms\":86400000,\"mode\":\"required\"},\"classification_ceiling\":\"internal\",\"logical_dataset\":\"shape_orders\"}],\"deployment_digest\":\"sha-256:tWFr0caS0AWFJd2UcB9gZv3kNjIUP8xZ08WWM_h8xgo\",\"effect_owner\":{\"adapter_identity\":\"example.adapters.effects\",\"idempotency\":{\"key_derivation\":\"host\",\"recovery\":\"authoritative\"}},\"eligibility\":{\"beneficiary\":{\"band\":\"operator\",\"kind\":\"beneficiary_band\",\"policy\":\"example.policies/principal-bands\"},\"owner\":{\"band\":\"operator\",\"kind\":\"owner_band\",\"policy\":\"example.policies/principal-bands\"},\"runtime_principal\":{\"band\":\"operator\",\"kind\":\"runtime_band\",\"policy\":\"example.policies/principal-bands\"}},\"evaluation_binding\":{\"adapter_identity\":\"example.adapters.evaluations\",\"corpus\":{\"digest\":\"sha-256:zenFB2mNSBmxJWG4DLIWcNyvFdf85m5Ic-BUmWOU02w\",\"name\":\"example.corpora/echo\"}},\"extensions\":{\"critical\":{},\"optional\":{}},\"host_bounds\":{\"approval_trait\":\"none\",\"authority_trait\":\"none\",\"classification_ceiling\":\"internal\",\"disclosure_ceiling\":\"summary\",\"effect_impact_ceiling\":\"ordinary\",\"max_attempts\":3,\"max_concurrency\":2,\"max_cost\":{\"amount\":1000,\"currency\":\"USD\"},\"max_depth\":8,\"max_descendants\":64,\"max_elapsed_ms\":60000,\"max_fan_out\":4,\"max_tokens\":100000},\"lifecycle\":{\"activated_at\":\"2026-08-20T00:00:00Z\",\"state\":\"active\"},\"model_policy\":{\"allowed_model_roles\":[\"reasoner\"],\"max_cost\":{\"amount\":500,\"currency\":\"USD\"},\"max_tokens\":50000},\"protocol_revision\":1,\"required_core_fields\":[],\"scope_projection\":{\"adapter_identity\":\"example.adapters.scope\"},\"signer_custody\":\"host_managed\",\"tool_bindings\":[{\"adapter_identity\":\"example.adapters.tools\",\"attested_at\":\"2026-08-20T00:00:00Z\",\"descriptor_digest\":\"sha-256:VpMcbixeDnkz4W6WwFyJVm3BG_n8s1jEZANpZLvZEKI\",\"logical_operation\":\"example.demo.read_shape\",\"schema_digest\":\"sha-256:4aRchkjuUMTF6Sm4-oCuZQkzYHP0CvJfGLFHhdjHvY0\"},{\"adapter_identity\":\"example.adapters.effects.tools\",\"attested_at\":\"2026-08-20T00:00:00Z\",\"descriptor_digest\":\"sha-256:VpMcbixeDnkz4W6WwFyJVm3BG_n8s1jEZANpZLvZEKI\",\"logical_operation\":\"record_summary\",\"schema_digest\":\"sha-256:4aRchkjuUMTF6Sm4-oCuZQkzYHP0CvJfGLFHhdjHvY0\"}]}"},"surface":"compatibility.verify"}],"format":"agent-blueprint-protocol-conformance-cases"}
|