verifyanything 0.1.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.
- checksums.yaml +7 -0
- data/LICENSE +45 -0
- data/README.md +69 -0
- data/lib/openverify/bundle.json +5505 -0
- data/lib/openverify.rb +160 -0
- data/lib/verifyanything.rb +3 -0
- metadata +58 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 3d831004a41675d6049ffefc897ec4f0608a5ac1cbc6de4bd4fca62c10cc2bef
|
|
4
|
+
data.tar.gz: 4411f858751f9c0f8cee37323296e418a145210df385245f2cda411e21f64e27
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 38289a72f03a7558c750b933c8c7e37a109d95e6584f44f1a4a330a5e89d4fe265bde432da04bc2cdc311add3610a8d738267fba0f63f5a665f1fd41c9548e47
|
|
7
|
+
data.tar.gz: 22dad0c95b3bcbd82723a104fef87ff83433b83911f1ca975eaaef5884ae97074bad3c6bd8a2dd3c0002345da21cce1ad6dbb21ddd98b99ca93b3842d2a513c5
|
data/LICENSE
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Openverify contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
Bundled JSON Schema metaschemas (jsonschema-specifications):
|
|
26
|
+
|
|
27
|
+
Copyright (c) 2022 Julian Berman
|
|
28
|
+
|
|
29
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
30
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
31
|
+
in the Software without restriction, including without limitation the rights
|
|
32
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
33
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
34
|
+
furnished to do so, subject to the following conditions:
|
|
35
|
+
|
|
36
|
+
The above copyright notice and this permission notice shall be included in
|
|
37
|
+
all copies or substantial portions of the Software.
|
|
38
|
+
|
|
39
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
40
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
41
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
42
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
43
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
44
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
45
|
+
THE SOFTWARE.
|
data/README.md
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# verifyanything
|
|
2
|
+
|
|
3
|
+
VerifyAnything DRAFT wire SDK for ruby. Independently versioned package **0.1.0**,
|
|
4
|
+
intended registry: RubyGems. Names/ownership must be confirmed before publication.
|
|
5
|
+
|
|
6
|
+
VCP means portable verification semantics; Provider Contract means the portable
|
|
7
|
+
verifier interface; Relay is the separate Python reference execution engine.
|
|
8
|
+
|
|
9
|
+
This SDK bundles every normative VCP/Provider schema at source revision
|
|
10
|
+
`5f17f402a270882f244a54dde25eda92a085eb39`. VCP marker: `draft`;
|
|
11
|
+
Provider Contract: exact `0.1`. Both remain DRAFT with no stable 1.0 promise.
|
|
12
|
+
Validation does not fetch schemas, artifact content or URLs.
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'verifyanything'
|
|
16
|
+
object = VerifyAnything.parse('vcp', 'decision', '{"protocol":"draft","kind":"CONTINUE"}')
|
|
17
|
+
puts VerifyAnything.serialize(object)
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Actual support
|
|
21
|
+
|
|
22
|
+
The public wire object is a native JSON object view, retaining absent fields,
|
|
23
|
+
explicit null payloads and unknown optional extensions. It is not a complete
|
|
24
|
+
generated field-by-field static model of every protocol object. Structure-only
|
|
25
|
+
validation covers all shipped schema roots. Parse/semantic validation supports
|
|
26
|
+
Result, Decision, Resource, Evidence, ArtifactRef, Extension and ResourceDimension.
|
|
27
|
+
It checks Result state axes, Decision destinations, meaningful Evidence,
|
|
28
|
+
resource kinds/ranges, required extensions and nested evidence/usage/extensions.
|
|
29
|
+
|
|
30
|
+
Provider standalone validation covers manifest structure, capability identity
|
|
31
|
+
uniqueness and advertised VCP membership, self-contained capability schemas,
|
|
32
|
+
Outcome state/output/error conditionals, and invocation version/resource-budget
|
|
33
|
+
checks. `validateData` (snake_case in Python/Ruby/Rust) validates capability
|
|
34
|
+
input, config or output with an explicit error classification; formats are
|
|
35
|
+
annotations. There is no implicit capability matching or session initialization.
|
|
36
|
+
|
|
37
|
+
Semantic validation of graphs, definitions, profiles, execution-policy objects,
|
|
38
|
+
dataflow and provenance is **not implemented** in these new wire libraries.
|
|
39
|
+
It fails with the local diagnostic `SDK_UNSUPPORTED`; callers may explicitly
|
|
40
|
+
request structure-only validation. Provider session/lifecycle, transport,
|
|
41
|
+
deadline enforcement and contextual invocation matching are also unimplemented.
|
|
42
|
+
Parsing objects carrying deadline/timestamp fields fails with SDK_UNSUPPORTED;
|
|
43
|
+
call structure-only validation if that explicit limitation is acceptable.
|
|
44
|
+
Standalone parsing does not establish those properties. Detailed support/gaps and
|
|
45
|
+
release gates are in the repository's `sdk/README.md` and `sdk/RELEASE.md`.
|
|
46
|
+
|
|
47
|
+
Errors expose stable codes where the source contract specifies them. Decision
|
|
48
|
+
rejection uses a local structural classification because the source prose does
|
|
49
|
+
not specify a Decision-specific diagnostic. No portable canonicalization or
|
|
50
|
+
hashing is claimed. Serialize preserves data and inserts no schema defaults.
|
|
51
|
+
Mutable native containers must be validated again after mutation.
|
|
52
|
+
|
|
53
|
+
## Build and test
|
|
54
|
+
|
|
55
|
+
From this directory: `bundle install && bundle exec ruby test/shared_test.rb`.
|
|
56
|
+
From the source repository root: `python tools/sdk_verify.py ruby` runs the
|
|
57
|
+
native runner over the same versioned `conformance/sdk/manifest.json`, builds
|
|
58
|
+
twice, compares package file contents and installs into a separate consumer.
|
|
59
|
+
Dependency installation can use the network; actual schema validation is offline.
|
|
60
|
+
The shared corpus is a bounded compatibility test, **not full protocol certification**.
|
|
61
|
+
|
|
62
|
+
## Release
|
|
63
|
+
|
|
64
|
+
Tag only this language: `sdk/ruby/vX.Y.Z` after updating only its package.
|
|
65
|
+
The protected release environment is `sdk-ruby`. First publication requires
|
|
66
|
+
owner setup and explicit approval; no package has been published by this change.
|
|
67
|
+
License: MIT (included in the distribution).
|
|
68
|
+
|
|
69
|
+
Package setup: [VerifyAnything publication guide](https://github.com/openverifyproject/openverify/blob/main/docs/releases/VERIFYANYTHING_SETUP.md).
|