@agent-blueprint-protocol/verifier 0.8.3 → 1.0.0-rc.1
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 +137 -0
- package/LICENSE +1 -1
- package/NOTICE +2 -2
- package/README.md +164 -255
- package/dist/corpus/cases/blueprint-decode.json +1 -1
- package/dist/corpus/cases/bounds-new.json +1 -1
- package/dist/corpus/cases/bounds_algebra-intersect.json +1 -1
- package/dist/corpus/cases/canonicalization-encode.json +1 -1
- package/dist/corpus/cases/deployment-decode.json +1 -1
- package/dist/corpus/cases/extension-resolve.json +1 -1
- package/dist/corpus/cases/federation-decode.json +1 -1
- package/dist/corpus/cases/federation-verify_commitment.json +1 -1
- package/dist/corpus/cases/json-decode.json +1 -1
- package/dist/corpus/cases/negotiation-negotiate.json +1 -1
- package/dist/corpus/cases/predicate.json +1 -0
- package/dist/corpus/cases/reconcile.json +1 -0
- package/dist/corpus/cases/schema-validate_instance.json +1 -1
- package/dist/corpus/cases/signature-verify.json +1 -1
- package/dist/corpus/index.json +1 -1
- package/dist/kit/cli.mjs +1 -4
- package/dist/release-history.json +1 -0
- package/dist/release-metadata.json +1 -1
- package/dist/spec/FOUNDATION-TRANSITION.md +67 -0
- package/dist/spec/IPR.md +27 -0
- package/dist/spec/LICENSE +190 -0
- package/dist/spec/NOTICE +4 -0
- package/dist/spec/README.md +47 -0
- package/dist/spec/conformance/base64url-decode.schema.json +176 -0
- package/dist/spec/conformance/blueprint-decode.schema.json +280 -0
- package/dist/spec/conformance/bounds-new.schema.json +302 -0
- package/dist/spec/conformance/bounds_algebra-intersect.schema.json +457 -0
- package/dist/spec/conformance/canonicalization-encode.schema.json +280 -0
- package/dist/spec/conformance/case-file.schema.json +122 -0
- package/dist/spec/conformance/certified-results.json +1 -0
- package/dist/spec/conformance/claim.schema.json +52 -0
- package/dist/spec/conformance/compatibility-verify.schema.json +262 -0
- package/dist/spec/conformance/deployment-decode.schema.json +322 -0
- package/dist/spec/conformance/digest-tagged.schema.json +200 -0
- package/dist/spec/conformance/evidence.schema.json +249 -0
- package/dist/spec/conformance/execution.md +80 -0
- package/dist/spec/conformance/extension-resolve.schema.json +264 -0
- package/dist/spec/conformance/federation-decode.schema.json +318 -0
- package/dist/spec/conformance/federation-verify_commitment.schema.json +342 -0
- package/dist/spec/conformance/index.schema.json +102 -0
- package/dist/spec/conformance/json-decode.schema.json +287 -0
- package/dist/spec/conformance/negotiation-negotiate.schema.json +264 -0
- package/dist/spec/conformance/portability-scan.schema.json +188 -0
- package/dist/spec/conformance/predicate.schema.json +201 -0
- package/dist/spec/conformance/reconcile.schema.json +287 -0
- package/dist/spec/conformance/runner.md +182 -0
- package/dist/spec/conformance/schema-validate_instance.schema.json +206 -0
- package/dist/spec/conformance/signature-verify.schema.json +224 -0
- package/dist/spec/conformance/support.schema.json +72 -0
- package/dist/spec/errata.md +13 -0
- package/dist/spec/grammar/blueprint.cddl +92 -0
- package/dist/spec/grammar/deployment.cddl +125 -0
- package/dist/spec/grammar/derived/blueprint.schema.json +340 -0
- package/dist/spec/grammar/derived/deployment.schema.json +496 -0
- package/dist/spec/grammar/derived/taskenvelope.schema.json +244 -0
- package/dist/spec/grammar/taskenvelope.cddl +77 -0
- package/dist/spec/protocol.md +1238 -0
- package/dist/spec/registry/OPERATIONS.md +69 -0
- package/dist/spec/registry/registry.json +68 -0
- package/dist/verifier/b64url.d.ts +6 -2
- package/dist/verifier/b64url.js +7 -1
- package/dist/verifier/blueprint.d.ts +12 -16
- package/dist/verifier/blueprint.js +40 -112
- package/dist/verifier/bounds.d.ts +1 -1
- package/dist/verifier/bounds.js +2 -2
- package/dist/verifier/bounds_algebra.d.ts +9 -0
- package/dist/verifier/bounds_algebra.js +10 -7
- package/dist/verifier/canonical.d.ts +1 -1
- package/dist/verifier/canonical.js +41 -8
- package/dist/verifier/cli.js +97 -45
- package/dist/verifier/compatibility.js +5 -7
- package/dist/verifier/corpus.d.ts +1 -1
- package/dist/verifier/corpus.js +10 -2
- package/dist/verifier/decode.js +24 -6
- package/dist/verifier/deployment.d.ts +20 -3
- package/dist/verifier/deployment.js +48 -10
- package/dist/verifier/digest.d.ts +12 -0
- package/dist/verifier/digest.js +17 -3
- package/dist/verifier/errors.d.ts +2 -0
- package/dist/verifier/errors.js +1 -0
- package/dist/verifier/execution.d.ts +13 -0
- package/dist/verifier/execution.js +82 -0
- package/dist/verifier/extension.js +4 -4
- package/dist/verifier/facade.d.ts +325 -0
- package/dist/verifier/facade.js +78 -0
- package/dist/verifier/federation.d.ts +2 -2
- package/dist/verifier/federation.js +26 -79
- package/dist/verifier/harness.d.ts +16 -0
- package/dist/verifier/harness.js +201 -0
- package/dist/verifier/index.d.ts +3 -0
- package/dist/verifier/index.js +2 -0
- package/dist/verifier/mapping.d.ts +139 -0
- package/dist/verifier/mapping.js +1 -0
- package/dist/verifier/negotiation.d.ts +2 -1
- package/dist/verifier/negotiation.js +12 -3
- package/dist/verifier/plain.d.ts +4 -0
- package/dist/verifier/plain.js +38 -0
- package/dist/verifier/portability.d.ts +1 -1
- package/dist/verifier/portability.js +19 -6
- package/dist/verifier/predicate.d.ts +7 -0
- package/dist/verifier/predicate.js +63 -7
- package/dist/verifier/reconcile.d.ts +37 -0
- package/dist/verifier/reconcile.js +115 -0
- package/dist/verifier/registry.js +10 -1
- package/dist/verifier/registry_engine.d.ts +3 -0
- package/dist/verifier/registry_engine.js +37 -20
- package/dist/verifier/report.d.ts +8 -0
- package/dist/verifier/report.js +9 -2
- package/dist/verifier/results.d.ts +3 -0
- package/dist/verifier/results.js +13 -0
- package/dist/verifier/run_corpus.js +4 -80
- package/dist/verifier/runner.d.ts +6 -0
- package/dist/verifier/runner.js +123 -17
- package/dist/verifier/schema.js +14 -55
- package/dist/verifier/signature.d.ts +19 -8
- package/dist/verifier/signature.js +51 -29
- package/dist/verifier/value.d.ts +9 -2
- package/dist/verifier/value.js +81 -11
- package/package.json +17 -12
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
# Conformance runner contract
|
|
2
|
+
|
|
3
|
+
This document is normative for the verifier conformance class. It defines
|
|
4
|
+
case execution and projections, independently of implementation language.
|
|
5
|
+
The execution protocol is in [execution.md](execution.md).
|
|
6
|
+
|
|
7
|
+
## Corpus and identity
|
|
8
|
+
|
|
9
|
+
A corpus has `index.json`, `cases/*.json`, JSON data under `schemas/` and
|
|
10
|
+
`vectors/`, and optional raw byte sidecars under `raw/*.raw`. Paths use `/`
|
|
11
|
+
on every platform. The index format is
|
|
12
|
+
`agent-blueprint-protocol-conformance-corpus-index`. Its members are:
|
|
13
|
+
|
|
14
|
+
| Member | Type and meaning |
|
|
15
|
+
|---|---|
|
|
16
|
+
| `format` | the exact format string above |
|
|
17
|
+
| `protocol_revision` | positive integer wire revision |
|
|
18
|
+
| `total_cases` | positive integer total |
|
|
19
|
+
| `corpus_digest` | tagged SHA-256 of the index without this member, using the corpus-index domain separator |
|
|
20
|
+
| `registry_digest` | tagged digest of the registry census |
|
|
21
|
+
| `files` | array of objects: `path` (relative string), `sha256_base64url` (SHA-256 of raw file bytes, unpadded base64url), `cases` (nonnegative integer; zero for data) |
|
|
22
|
+
| `applicability` | object keyed by surface, then class; each cell is a positive case count or an object with a nonempty string `n_a` reason |
|
|
23
|
+
| `public_key_fingerprints` | array of public fixture-key fingerprints; informational census data, never a trust store |
|
|
24
|
+
| `bool_extra` | boolean included to exercise index canonicalization |
|
|
25
|
+
| `float_extra` | number included to exercise index canonicalization |
|
|
26
|
+
| `null_extra` | null included to exercise index canonicalization |
|
|
27
|
+
|
|
28
|
+
The index MUST be canonical JSON. Integrity checks MUST reject an incorrect
|
|
29
|
+
index digest, registry mismatch, differing file set in either direction,
|
|
30
|
+
incorrect raw file hash, duplicate case id, inconsistent file or total count,
|
|
31
|
+
invalid case, unbound raw sidecar, or incomplete applicability floor.
|
|
32
|
+
An empty corpus MUST NOT pass. Prior-census mode suspends only the current
|
|
33
|
+
registry and current applicability-floor coupling; the prior index's own
|
|
34
|
+
integrity, counts, classes, and cell counts remain enforced.
|
|
35
|
+
|
|
36
|
+
`index.schema.json` and `case-file.schema.json` define the shared shapes.
|
|
37
|
+
Each case MUST also validate against its `<surface>.schema.json` document
|
|
38
|
+
(with dots replaced by hyphens). These separate validation layers keep each
|
|
39
|
+
schema within the protocol's bounded schema complexity limit. The successful
|
|
40
|
+
reconcile `evidence` member additionally validates against `evidence.schema.json`;
|
|
41
|
+
its `inputs.support` member, when present, validates against `support.schema.json`. All use the
|
|
42
|
+
2020-12 vocabulary subset in the protocol; the dialect is supplied by the
|
|
43
|
+
caller rather than a `$schema` annotation. The schemas live in this spec
|
|
44
|
+
tree, outside the corpus file census, so introducing format documentation
|
|
45
|
+
does not invalidate a prior corpus's exact file set.
|
|
46
|
+
|
|
47
|
+
A case file has format `agent-blueprint-protocol-conformance-cases` and a
|
|
48
|
+
`cases` array. Each case has string `id`, `surface`, `class`, object `input`,
|
|
49
|
+
and object `expected`. Optional `tamper` describes a byte mutation:
|
|
50
|
+
`base_case` string, `byte_index` nonnegative integer, `xor` integer 1–255,
|
|
51
|
+
and optional `target` string (`input.text`, `input.entry`, or
|
|
52
|
+
`input.base64url`). The derived bytes MUST equal the case's stored bytes.
|
|
53
|
+
|
|
54
|
+
## Inputs and dispatch
|
|
55
|
+
|
|
56
|
+
Invalid argument shapes are intentionally expressible in cases. A schema
|
|
57
|
+
accepting any JSON type at such a position permits testing a typed denial;
|
|
58
|
+
it does not permit that shape in an artifact. No host operation executes.
|
|
59
|
+
|
|
60
|
+
Byte sources select, in order: true `non_binary` (a deliberately wrong API
|
|
61
|
+
type), string `text` (UTF-8 bytes), string `base64url` (decoded bytes), then
|
|
62
|
+
string `raw_file` (the identified sidecar). A raw source also carries
|
|
63
|
+
`sha256_base64url`, the unpadded SHA-256 of those sidecar bytes; the loader
|
|
64
|
+
checks the reference and hash before execution. `bounds` is an optional,
|
|
65
|
+
nullable decoder override object; wrong shapes reach the bounds denial.
|
|
66
|
+
|
|
67
|
+
| Surface | Input members and execution | Successful projection |
|
|
68
|
+
|---|---|---|
|
|
69
|
+
| `json.decode` | byte source, `bounds`; bounded JSON decode | `value`: decoded JSON |
|
|
70
|
+
| `canonicalization.encode` | byte source decoded under maximum ceilings, then encode under `bounds` | `encoded`: canonical bytes, base64url in results |
|
|
71
|
+
| `base64url.decode` | `base64url`: strict unpadded segment | `decoded`: bytes, base64url in results |
|
|
72
|
+
| `digest.tagged` | string `tagged`, or string `text` plus string `domain` and `declared` | `tagged`: normalized digest, or `verified`: true |
|
|
73
|
+
| `blueprint.decode` | byte source, `bounds` | `digest`: recomputed content digest |
|
|
74
|
+
| `deployment.decode` | byte source, `bounds`; optional `binding` with `blueprint` bytes, `now` timestamp and `max_attestation_age_ms` | `digest`: recomputed deployment digest |
|
|
75
|
+
| `signature.verify` | `entry`: JSON text of the signature entry; `keys`: array of `{key_id, key}` strings, key as base64url raw 32-byte public key | `verified`: true |
|
|
76
|
+
| `schema.validate_instance` | object `schema` or string `schema_file`; `instance`: JSON including null; optional `dialect` string | `valid`: true |
|
|
77
|
+
| `negotiation.negotiate`, `extension.resolve` | `artifact`: decoded JSON; optional nullable `support` | `revision`: integer; `critical`, `quarantined`, `notices`: sorted string arrays |
|
|
78
|
+
| `bounds.new` | optional nullable `bounds` | `bounds`: all eight effective decoder limits |
|
|
79
|
+
| `bounds_algebra.intersect` | `blueprint`, `deployment`, `host`: bound maps; optional `protected_clamp`: `acknowledge` or default deny | `effective`: bound map; `clamp_count`: integer |
|
|
80
|
+
| `portability.scan` | byte source | `clean`: true |
|
|
81
|
+
| `compatibility.verify` | byte source for Deployment; `observed.identities`: array of exact `{kind,name,version,digest}` identities | `verified`: true |
|
|
82
|
+
| `federation.decode` | byte source and `bounds`, or one of the state/carrier inputs below | `canonical`: base64url canonical envelope bytes; codec `value`: string, or carrier `decoded`: true |
|
|
83
|
+
| `federation.verify_commitment` | `envelope`: canonical bytes as text; optional nullable receiving `context` | `task_identity`: string |
|
|
84
|
+
| `reconcile` | `blueprint`, `deployment`: canonical bytes as text; `inputs`: import options below | `evidence`: the complete typed evidence projection |
|
|
85
|
+
| `predicate` | `mode`: `validate` or `evaluate`; `predicate`: JSON AST; `port_names`: string array; `ports`: JSON object for evaluation | `valid`: true for validation; `value`: boolean for evaluation |
|
|
86
|
+
|
|
87
|
+
`domain` selects `blueprint_content`, `deployment_content`,
|
|
88
|
+
`federation_envelope`, `signature`, `extension_schema`, `extension_registry`,
|
|
89
|
+
`conformance_report`, or `corpus_index`.
|
|
90
|
+
|
|
91
|
+
Support members: `revisions` (integer array, default `[1]`), `core_fields`
|
|
92
|
+
(string array, default empty), `registry` (namespace-to-entry object),
|
|
93
|
+
`schemas` (namespace-to-schema object). Registry-entry members: `owner`
|
|
94
|
+
string, `criticality` string, `state` string, nullable `schema_digest` and
|
|
95
|
+
`a2a_uri` strings, nullable integer `promoted_at_revision`. Absent overrides
|
|
96
|
+
use the compiled registry. Schemas are digest-pinned by that registry.
|
|
97
|
+
|
|
98
|
+
Bound maps use the thirteen names in the protocol. Costs are
|
|
99
|
+
`{amount,currency}`; classification is `{ordinal,markers}`; other protected
|
|
100
|
+
bounds are strings. Bound sources are constructed in blueprint, deployment,
|
|
101
|
+
host order before totality is checked.
|
|
102
|
+
|
|
103
|
+
The federation decode router accepts text, base64url and the non-binary
|
|
104
|
+
marker, followed by codecs; it does not select a raw-file-only input.
|
|
105
|
+
Federation codec inputs, in precedence order, are strings `from_a2a_state`,
|
|
106
|
+
`to_a2a_state`, `from_mcp_state`, `to_mcp_state`, then objects
|
|
107
|
+
`from_a2a_carrier`, `from_mcp_carrier`. Byte inputs take precedence over codecs.
|
|
108
|
+
Receiving-context members are `keys` (as above), nullable `issuer`, `subject`,
|
|
109
|
+
`audience` strings, nullable `issuer_key_sets` (issuer-to-key-array object),
|
|
110
|
+
nullable `created_after`, `created_before` timestamp strings, and
|
|
111
|
+
`prior_receipts` (array of string `task_identity`, `terminal_state`,
|
|
112
|
+
`commitment` objects). These are inputs to existing receipt checks only.
|
|
113
|
+
|
|
114
|
+
Import `inputs` members: `host_bounds`, `support`, `keys` as above;
|
|
115
|
+
`protected_clamp` selects deny or acknowledge; `observations` has `now`,
|
|
116
|
+
which is null or a calendar-valid whole-second Z-form timestamp string
|
|
117
|
+
(`YYYY-MM-DDTHH:MM:SSZ`), nullable integer `max_attestation_age_ms`, and `observed`, a map from
|
|
118
|
+
logical operation to descriptor digest. The runner parses canonical bytes
|
|
119
|
+
without running standalone artifact validation before the composed pass,
|
|
120
|
+
so negotiation, structure, portability, signatures, binding, and bounds
|
|
121
|
+
retain their pinned order. The evidence has protocol revision, both digests,
|
|
122
|
+
ordered `checks` (`surface`, member-path `subject`, boolean `verified`, typed
|
|
123
|
+
`detail`), `effective_bounds`, ordered `clamps`, retained optional namespaces,
|
|
124
|
+
and ordered, deduplicated `not_verified`. A clamp has `field`, `class`, `unit`,
|
|
125
|
+
`requested`, `effective`, `source`, and `acknowledged`. Signature detail is
|
|
126
|
+
`{key_ids:[...]}` or `no_signatures_present`; binding detail has string arrays
|
|
127
|
+
`checked` and `not_verified`; digest detail is a tagged digest; other details
|
|
128
|
+
are null, `retained`, or `quarantined`.
|
|
129
|
+
|
|
130
|
+
## Agreement and output
|
|
131
|
+
|
|
132
|
+
An expected invalid result has `verdict: invalid` and `code`; reconcile also
|
|
133
|
+
pins `subject`, an array of member names and indices. An expected valid
|
|
134
|
+
result has `verdict: valid` and one or more projected fields. Legacy cases
|
|
135
|
+
may pin a subset of the projection. Numbers compare by mathematical value.
|
|
136
|
+
Legacy byte fields accept their exact UTF-8 string or base64url spelling.
|
|
137
|
+
A results document always uses base64url for byte-bearing projections.
|
|
138
|
+
|
|
139
|
+
Every signature case with a decodable 64-byte signature also projects
|
|
140
|
+
`strict_signature`: its independently computed strict point/scalar verdict,
|
|
141
|
+
even if cryptographic verification denied. It MUST agree with the expected
|
|
142
|
+
boolean where that boolean is present. Error precedence is the protocol's
|
|
143
|
+
per-surface precedence and input rules above. A failure projects its code,
|
|
144
|
+
including `ceiling:<key>`.
|
|
145
|
+
|
|
146
|
+
The aggregate report remains one JCS object, without a trailing newline:
|
|
147
|
+
`format`, `corpus_digest`, `total`, `agreed`, `disagreed`, `agreement`, and
|
|
148
|
+
`exit_status`. Its format is `agent-blueprint-protocol-conformance-report`.
|
|
149
|
+
Agreement requires a nonzero total and zero disagreements.
|
|
150
|
+
|
|
151
|
+
A results document is JCS with no trailing newline, format
|
|
152
|
+
`agent-blueprint-protocol-conformance-results`, `corpus_digest`,
|
|
153
|
+
`registry_digest`, and `results` sorted by case id. Each row has `id`,
|
|
154
|
+
`surface`, and `result` (the implementation's complete projection including
|
|
155
|
+
`verdict`). It has no implementation identity. The certified document is
|
|
156
|
+
[certified-results.json](certified-results.json).
|
|
157
|
+
|
|
158
|
+
For reconcile, any other `now` value denies `invalid_type` with subject
|
|
159
|
+
`["now"]`. Omission is equivalent to null.
|
|
160
|
+
|
|
161
|
+
Both runners accept `--corpus <dir>`, `--results --corpus <dir>`, and
|
|
162
|
+
`--serve --corpus <dir>`. Their shared exit codes are 0 agreement, 1
|
|
163
|
+
disagreement, and 2 usage/readability/integrity failure. The kit uses 3 for
|
|
164
|
+
an internal invariant failure and additionally offers no-argument embedded-corpus mode,
|
|
165
|
+
`--prior-corpus`, `--artifact`, `--help`, `--version`, and the external harness.
|
|
166
|
+
Help and version exit 0; artifact mode exits 0 valid, 1 invalid, 2 unreadable.
|
|
167
|
+
|
|
168
|
+
Before corpus output, stderr has exactly one certification line:
|
|
169
|
+
`corpus digest matches the release-certified corpus` or
|
|
170
|
+
`corpus digest does not match the release-certified corpus`.
|
|
171
|
+
The label never changes stdout JSON. Readers reject symlinks and nonregular
|
|
172
|
+
files, cap the tree at 1,000 entries and 5,000,000 file bytes, ignore Finder
|
|
173
|
+
metadata, and disclose no unreadable path or contents in their error line.
|
|
174
|
+
These corpus file-count and total-byte caps are tooling limits, separate
|
|
175
|
+
from artifact decoder limits. They MAY be raised in a minor release without
|
|
176
|
+
changing artifact limits or earlier corpus identities and claims.
|
|
177
|
+
|
|
178
|
+
The deprecated federation import is paired with
|
|
179
|
+
`negotiation-import-deprecated-federation`: reconcile accepts its schema-pinned
|
|
180
|
+
critical body, and negotiation projects the typed `extension_deprecated` notice.
|
|
181
|
+
The reference Evidence record has no notices member; the notice is never
|
|
182
|
+
invented as an evidence field.
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "object",
|
|
3
|
+
"properties": {
|
|
4
|
+
"surface": {
|
|
5
|
+
"const": "schema.validate_instance"
|
|
6
|
+
},
|
|
7
|
+
"input": {
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"schema": {
|
|
11
|
+
"type": [
|
|
12
|
+
"null",
|
|
13
|
+
"boolean",
|
|
14
|
+
"object",
|
|
15
|
+
"array",
|
|
16
|
+
"number",
|
|
17
|
+
"string"
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
"schema_file": {
|
|
21
|
+
"type": "string"
|
|
22
|
+
},
|
|
23
|
+
"instance": {
|
|
24
|
+
"type": [
|
|
25
|
+
"null",
|
|
26
|
+
"boolean",
|
|
27
|
+
"object",
|
|
28
|
+
"array",
|
|
29
|
+
"number",
|
|
30
|
+
"string"
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
"dialect": {
|
|
34
|
+
"type": [
|
|
35
|
+
"null",
|
|
36
|
+
"boolean",
|
|
37
|
+
"object",
|
|
38
|
+
"array",
|
|
39
|
+
"number",
|
|
40
|
+
"string"
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"required": [],
|
|
45
|
+
"additionalProperties": false
|
|
46
|
+
},
|
|
47
|
+
"expected": {
|
|
48
|
+
"oneOf": [
|
|
49
|
+
{
|
|
50
|
+
"type": "object",
|
|
51
|
+
"properties": {
|
|
52
|
+
"verdict": {
|
|
53
|
+
"const": "valid"
|
|
54
|
+
},
|
|
55
|
+
"valid": {
|
|
56
|
+
"type": "boolean"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"required": [
|
|
60
|
+
"verdict"
|
|
61
|
+
],
|
|
62
|
+
"additionalProperties": false
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"type": "object",
|
|
66
|
+
"properties": {
|
|
67
|
+
"verdict": {
|
|
68
|
+
"const": "invalid"
|
|
69
|
+
},
|
|
70
|
+
"code": {
|
|
71
|
+
"enum": [
|
|
72
|
+
"attestation_malformed",
|
|
73
|
+
"audience_mismatch",
|
|
74
|
+
"base64url_invalid",
|
|
75
|
+
"base64url_padded",
|
|
76
|
+
"binding_attestation_stale",
|
|
77
|
+
"binding_descriptor_mismatch",
|
|
78
|
+
"binding_incomplete",
|
|
79
|
+
"bound_source_missing",
|
|
80
|
+
"bound_unit_mismatch",
|
|
81
|
+
"bound_unknown",
|
|
82
|
+
"bound_value_invalid",
|
|
83
|
+
"ceiling:bytes",
|
|
84
|
+
"ceiling:depth",
|
|
85
|
+
"ceiling:items",
|
|
86
|
+
"ceiling:key",
|
|
87
|
+
"ceiling:members",
|
|
88
|
+
"ceiling:nodes",
|
|
89
|
+
"ceiling:number_lexeme",
|
|
90
|
+
"ceiling:string",
|
|
91
|
+
"compatibility_duplicate_entry",
|
|
92
|
+
"compatibility_entry_missing",
|
|
93
|
+
"compatibility_identity_inexact",
|
|
94
|
+
"corpus_applicability_incomplete",
|
|
95
|
+
"corpus_case_id_duplicate",
|
|
96
|
+
"corpus_case_invalid",
|
|
97
|
+
"corpus_count_mismatch",
|
|
98
|
+
"corpus_empty",
|
|
99
|
+
"corpus_file_set_mismatch",
|
|
100
|
+
"corpus_hash_mismatch",
|
|
101
|
+
"corpus_index_invalid",
|
|
102
|
+
"deployment_digest_mismatch",
|
|
103
|
+
"digest_algorithm_unsupported",
|
|
104
|
+
"digest_encoding_invalid",
|
|
105
|
+
"digest_mismatch",
|
|
106
|
+
"duplicate_member",
|
|
107
|
+
"extension_criticality_conflict",
|
|
108
|
+
"extension_duplicate",
|
|
109
|
+
"extension_namespace_invalid",
|
|
110
|
+
"extension_payload_forbidden",
|
|
111
|
+
"extension_retired",
|
|
112
|
+
"extension_schema_digest_mismatch",
|
|
113
|
+
"extension_schema_unavailable",
|
|
114
|
+
"extension_unknown_critical",
|
|
115
|
+
"federation_mapping_conflict",
|
|
116
|
+
"federation_state_unmappable",
|
|
117
|
+
"federation_terminal_conflict",
|
|
118
|
+
"forbidden_portable_value",
|
|
119
|
+
"integer_magnitude",
|
|
120
|
+
"invalid_cardinality",
|
|
121
|
+
"invalid_constraint",
|
|
122
|
+
"invalid_encoding",
|
|
123
|
+
"invalid_number",
|
|
124
|
+
"invalid_syntax",
|
|
125
|
+
"invalid_type",
|
|
126
|
+
"lifecycle_state_invalid",
|
|
127
|
+
"missing_ceiling",
|
|
128
|
+
"missing_required_field",
|
|
129
|
+
"no_authoritative_recovery",
|
|
130
|
+
"non_canonical_bytes",
|
|
131
|
+
"nonportable_content",
|
|
132
|
+
"number_not_double_expressible",
|
|
133
|
+
"predicate_nodes_exceeded",
|
|
134
|
+
"predicate_op_unknown",
|
|
135
|
+
"predicate_path_unresolved",
|
|
136
|
+
"protected_bound_clamp_denied",
|
|
137
|
+
"protocol_revision_unsupported",
|
|
138
|
+
"required_core_field_not_digest_covered",
|
|
139
|
+
"required_core_field_unsupported",
|
|
140
|
+
"schema_complexity_exceeded",
|
|
141
|
+
"schema_dialect_unknown",
|
|
142
|
+
"schema_invalid_shape",
|
|
143
|
+
"schema_keyword_not_allowed",
|
|
144
|
+
"schema_keyword_value_invalid",
|
|
145
|
+
"schema_ref_cycle",
|
|
146
|
+
"schema_ref_unresolvable",
|
|
147
|
+
"signature_algorithm_unsupported",
|
|
148
|
+
"signature_key_unsupported",
|
|
149
|
+
"signature_malformed",
|
|
150
|
+
"signature_not_verified",
|
|
151
|
+
"trailing_bytes",
|
|
152
|
+
"unknown_bound",
|
|
153
|
+
"unknown_member"
|
|
154
|
+
]
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
"required": [
|
|
158
|
+
"verdict",
|
|
159
|
+
"code"
|
|
160
|
+
],
|
|
161
|
+
"additionalProperties": false
|
|
162
|
+
}
|
|
163
|
+
]
|
|
164
|
+
},
|
|
165
|
+
"class": {
|
|
166
|
+
"enum": [
|
|
167
|
+
"valid",
|
|
168
|
+
"boundary_near",
|
|
169
|
+
"exact_bound",
|
|
170
|
+
"maximum_plus_one",
|
|
171
|
+
"invalid_encoding",
|
|
172
|
+
"invalid_duplicate",
|
|
173
|
+
"invalid_type",
|
|
174
|
+
"invalid_constraint",
|
|
175
|
+
"invalid_cardinality",
|
|
176
|
+
"unknown_member",
|
|
177
|
+
"tamper_meaningful_byte",
|
|
178
|
+
"digest_mismatch",
|
|
179
|
+
"signature_invalid",
|
|
180
|
+
"revision_above_max",
|
|
181
|
+
"revision_below_min",
|
|
182
|
+
"required_field_unsupported",
|
|
183
|
+
"required_field_not_covered",
|
|
184
|
+
"extension_unknown_critical",
|
|
185
|
+
"extension_unknown_optional_roundtrip",
|
|
186
|
+
"extension_criticality_conflict",
|
|
187
|
+
"extension_schema_unavailable",
|
|
188
|
+
"extension_deprecated_retained",
|
|
189
|
+
"bound_widening_operational",
|
|
190
|
+
"bound_widening_protected",
|
|
191
|
+
"forbidden_portable_value",
|
|
192
|
+
"compatibility_range_rejected",
|
|
193
|
+
"binding_stale",
|
|
194
|
+
"federation_state_unmappable",
|
|
195
|
+
"federation_terminal_conflict",
|
|
196
|
+
"audience_mismatch",
|
|
197
|
+
"terminal_equivocation"
|
|
198
|
+
]
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
"required": [
|
|
202
|
+
"surface",
|
|
203
|
+
"input",
|
|
204
|
+
"expected"
|
|
205
|
+
]
|
|
206
|
+
}
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "object",
|
|
3
|
+
"properties": {
|
|
4
|
+
"surface": {
|
|
5
|
+
"const": "signature.verify"
|
|
6
|
+
},
|
|
7
|
+
"input": {
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"entry": {
|
|
11
|
+
"type": "string"
|
|
12
|
+
},
|
|
13
|
+
"keys": {
|
|
14
|
+
"type": [
|
|
15
|
+
"null",
|
|
16
|
+
"boolean",
|
|
17
|
+
"object",
|
|
18
|
+
"array",
|
|
19
|
+
"number",
|
|
20
|
+
"string"
|
|
21
|
+
],
|
|
22
|
+
"items": {
|
|
23
|
+
"type": [
|
|
24
|
+
"null",
|
|
25
|
+
"boolean",
|
|
26
|
+
"object",
|
|
27
|
+
"array",
|
|
28
|
+
"number",
|
|
29
|
+
"string"
|
|
30
|
+
],
|
|
31
|
+
"properties": {
|
|
32
|
+
"key_id": {
|
|
33
|
+
"type": [
|
|
34
|
+
"null",
|
|
35
|
+
"boolean",
|
|
36
|
+
"object",
|
|
37
|
+
"array",
|
|
38
|
+
"number",
|
|
39
|
+
"string"
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
"key": {
|
|
43
|
+
"type": [
|
|
44
|
+
"null",
|
|
45
|
+
"boolean",
|
|
46
|
+
"object",
|
|
47
|
+
"array",
|
|
48
|
+
"number",
|
|
49
|
+
"string"
|
|
50
|
+
]
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"required": [],
|
|
57
|
+
"additionalProperties": false
|
|
58
|
+
},
|
|
59
|
+
"expected": {
|
|
60
|
+
"oneOf": [
|
|
61
|
+
{
|
|
62
|
+
"type": "object",
|
|
63
|
+
"properties": {
|
|
64
|
+
"verdict": {
|
|
65
|
+
"const": "valid"
|
|
66
|
+
},
|
|
67
|
+
"verified": {
|
|
68
|
+
"type": "boolean"
|
|
69
|
+
},
|
|
70
|
+
"strict_signature": {
|
|
71
|
+
"type": "boolean"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"required": [
|
|
75
|
+
"verdict"
|
|
76
|
+
],
|
|
77
|
+
"additionalProperties": false
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"type": "object",
|
|
81
|
+
"properties": {
|
|
82
|
+
"verdict": {
|
|
83
|
+
"const": "invalid"
|
|
84
|
+
},
|
|
85
|
+
"code": {
|
|
86
|
+
"enum": [
|
|
87
|
+
"attestation_malformed",
|
|
88
|
+
"audience_mismatch",
|
|
89
|
+
"base64url_invalid",
|
|
90
|
+
"base64url_padded",
|
|
91
|
+
"binding_attestation_stale",
|
|
92
|
+
"binding_descriptor_mismatch",
|
|
93
|
+
"binding_incomplete",
|
|
94
|
+
"bound_source_missing",
|
|
95
|
+
"bound_unit_mismatch",
|
|
96
|
+
"bound_unknown",
|
|
97
|
+
"bound_value_invalid",
|
|
98
|
+
"ceiling:bytes",
|
|
99
|
+
"ceiling:depth",
|
|
100
|
+
"ceiling:items",
|
|
101
|
+
"ceiling:key",
|
|
102
|
+
"ceiling:members",
|
|
103
|
+
"ceiling:nodes",
|
|
104
|
+
"ceiling:number_lexeme",
|
|
105
|
+
"ceiling:string",
|
|
106
|
+
"compatibility_duplicate_entry",
|
|
107
|
+
"compatibility_entry_missing",
|
|
108
|
+
"compatibility_identity_inexact",
|
|
109
|
+
"corpus_applicability_incomplete",
|
|
110
|
+
"corpus_case_id_duplicate",
|
|
111
|
+
"corpus_case_invalid",
|
|
112
|
+
"corpus_count_mismatch",
|
|
113
|
+
"corpus_empty",
|
|
114
|
+
"corpus_file_set_mismatch",
|
|
115
|
+
"corpus_hash_mismatch",
|
|
116
|
+
"corpus_index_invalid",
|
|
117
|
+
"deployment_digest_mismatch",
|
|
118
|
+
"digest_algorithm_unsupported",
|
|
119
|
+
"digest_encoding_invalid",
|
|
120
|
+
"digest_mismatch",
|
|
121
|
+
"duplicate_member",
|
|
122
|
+
"extension_criticality_conflict",
|
|
123
|
+
"extension_duplicate",
|
|
124
|
+
"extension_namespace_invalid",
|
|
125
|
+
"extension_payload_forbidden",
|
|
126
|
+
"extension_retired",
|
|
127
|
+
"extension_schema_digest_mismatch",
|
|
128
|
+
"extension_schema_unavailable",
|
|
129
|
+
"extension_unknown_critical",
|
|
130
|
+
"federation_mapping_conflict",
|
|
131
|
+
"federation_state_unmappable",
|
|
132
|
+
"federation_terminal_conflict",
|
|
133
|
+
"forbidden_portable_value",
|
|
134
|
+
"integer_magnitude",
|
|
135
|
+
"invalid_cardinality",
|
|
136
|
+
"invalid_constraint",
|
|
137
|
+
"invalid_encoding",
|
|
138
|
+
"invalid_number",
|
|
139
|
+
"invalid_syntax",
|
|
140
|
+
"invalid_type",
|
|
141
|
+
"lifecycle_state_invalid",
|
|
142
|
+
"missing_ceiling",
|
|
143
|
+
"missing_required_field",
|
|
144
|
+
"no_authoritative_recovery",
|
|
145
|
+
"non_canonical_bytes",
|
|
146
|
+
"nonportable_content",
|
|
147
|
+
"number_not_double_expressible",
|
|
148
|
+
"predicate_nodes_exceeded",
|
|
149
|
+
"predicate_op_unknown",
|
|
150
|
+
"predicate_path_unresolved",
|
|
151
|
+
"protected_bound_clamp_denied",
|
|
152
|
+
"protocol_revision_unsupported",
|
|
153
|
+
"required_core_field_not_digest_covered",
|
|
154
|
+
"required_core_field_unsupported",
|
|
155
|
+
"schema_complexity_exceeded",
|
|
156
|
+
"schema_dialect_unknown",
|
|
157
|
+
"schema_invalid_shape",
|
|
158
|
+
"schema_keyword_not_allowed",
|
|
159
|
+
"schema_keyword_value_invalid",
|
|
160
|
+
"schema_ref_cycle",
|
|
161
|
+
"schema_ref_unresolvable",
|
|
162
|
+
"signature_algorithm_unsupported",
|
|
163
|
+
"signature_key_unsupported",
|
|
164
|
+
"signature_malformed",
|
|
165
|
+
"signature_not_verified",
|
|
166
|
+
"trailing_bytes",
|
|
167
|
+
"unknown_bound",
|
|
168
|
+
"unknown_member"
|
|
169
|
+
]
|
|
170
|
+
},
|
|
171
|
+
"strict_signature": {
|
|
172
|
+
"type": "boolean"
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
"required": [
|
|
176
|
+
"verdict",
|
|
177
|
+
"code"
|
|
178
|
+
],
|
|
179
|
+
"additionalProperties": false
|
|
180
|
+
}
|
|
181
|
+
]
|
|
182
|
+
},
|
|
183
|
+
"class": {
|
|
184
|
+
"enum": [
|
|
185
|
+
"valid",
|
|
186
|
+
"boundary_near",
|
|
187
|
+
"exact_bound",
|
|
188
|
+
"maximum_plus_one",
|
|
189
|
+
"invalid_encoding",
|
|
190
|
+
"invalid_duplicate",
|
|
191
|
+
"invalid_type",
|
|
192
|
+
"invalid_constraint",
|
|
193
|
+
"invalid_cardinality",
|
|
194
|
+
"unknown_member",
|
|
195
|
+
"tamper_meaningful_byte",
|
|
196
|
+
"digest_mismatch",
|
|
197
|
+
"signature_invalid",
|
|
198
|
+
"revision_above_max",
|
|
199
|
+
"revision_below_min",
|
|
200
|
+
"required_field_unsupported",
|
|
201
|
+
"required_field_not_covered",
|
|
202
|
+
"extension_unknown_critical",
|
|
203
|
+
"extension_unknown_optional_roundtrip",
|
|
204
|
+
"extension_criticality_conflict",
|
|
205
|
+
"extension_schema_unavailable",
|
|
206
|
+
"extension_deprecated_retained",
|
|
207
|
+
"bound_widening_operational",
|
|
208
|
+
"bound_widening_protected",
|
|
209
|
+
"forbidden_portable_value",
|
|
210
|
+
"compatibility_range_rejected",
|
|
211
|
+
"binding_stale",
|
|
212
|
+
"federation_state_unmappable",
|
|
213
|
+
"federation_terminal_conflict",
|
|
214
|
+
"audience_mismatch",
|
|
215
|
+
"terminal_equivocation"
|
|
216
|
+
]
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
"required": [
|
|
220
|
+
"surface",
|
|
221
|
+
"input",
|
|
222
|
+
"expected"
|
|
223
|
+
]
|
|
224
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": [
|
|
3
|
+
"null",
|
|
4
|
+
"boolean",
|
|
5
|
+
"object",
|
|
6
|
+
"array",
|
|
7
|
+
"number",
|
|
8
|
+
"string"
|
|
9
|
+
],
|
|
10
|
+
"properties": {
|
|
11
|
+
"revisions": {
|
|
12
|
+
"type": [
|
|
13
|
+
"null",
|
|
14
|
+
"boolean",
|
|
15
|
+
"object",
|
|
16
|
+
"array",
|
|
17
|
+
"number",
|
|
18
|
+
"string"
|
|
19
|
+
],
|
|
20
|
+
"items": {
|
|
21
|
+
"type": [
|
|
22
|
+
"null",
|
|
23
|
+
"boolean",
|
|
24
|
+
"object",
|
|
25
|
+
"array",
|
|
26
|
+
"number",
|
|
27
|
+
"string"
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"core_fields": {
|
|
32
|
+
"type": [
|
|
33
|
+
"null",
|
|
34
|
+
"boolean",
|
|
35
|
+
"object",
|
|
36
|
+
"array",
|
|
37
|
+
"number",
|
|
38
|
+
"string"
|
|
39
|
+
],
|
|
40
|
+
"items": {
|
|
41
|
+
"type": [
|
|
42
|
+
"null",
|
|
43
|
+
"boolean",
|
|
44
|
+
"object",
|
|
45
|
+
"array",
|
|
46
|
+
"number",
|
|
47
|
+
"string"
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"registry": {
|
|
52
|
+
"type": [
|
|
53
|
+
"null",
|
|
54
|
+
"boolean",
|
|
55
|
+
"object",
|
|
56
|
+
"array",
|
|
57
|
+
"number",
|
|
58
|
+
"string"
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
"schemas": {
|
|
62
|
+
"type": [
|
|
63
|
+
"null",
|
|
64
|
+
"boolean",
|
|
65
|
+
"object",
|
|
66
|
+
"array",
|
|
67
|
+
"number",
|
|
68
|
+
"string"
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|