livingproof-verifier 6.3.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. livingproof_verifier-6.3.1/LICENSE +73 -0
  2. livingproof_verifier-6.3.1/PKG-INFO +90 -0
  3. livingproof_verifier-6.3.1/README.md +77 -0
  4. livingproof_verifier-6.3.1/pyproject.toml +46 -0
  5. livingproof_verifier-6.3.1/setup.cfg +4 -0
  6. livingproof_verifier-6.3.1/src/capability_verifier/__init__.py +1 -0
  7. livingproof_verifier-6.3.1/src/capability_verifier/bundle_hashes.py +118 -0
  8. livingproof_verifier-6.3.1/src/capability_verifier/collect.py +798 -0
  9. livingproof_verifier-6.3.1/src/capability_verifier/definition.py +932 -0
  10. livingproof_verifier-6.3.1/src/capability_verifier/evaluator_contract.py +7 -0
  11. livingproof_verifier-6.3.1/src/capability_verifier/evaluators.py +1181 -0
  12. livingproof_verifier-6.3.1/src/capability_verifier/evidence_lock.py +263 -0
  13. livingproof_verifier-6.3.1/src/capability_verifier/judgments.py +78 -0
  14. livingproof_verifier-6.3.1/src/capability_verifier/livingproof-evidence-ending-0.1.schema.json +69 -0
  15. livingproof_verifier-6.3.1/src/capability_verifier/livingproof-verification-refusal-0.1.schema.json +36 -0
  16. livingproof_verifier-6.3.1/src/capability_verifier/plugin.py +21 -0
  17. livingproof_verifier-6.3.1/src/capability_verifier/refusal.py +227 -0
  18. livingproof_verifier-6.3.1/src/capability_verifier/registry_runner.py +180 -0
  19. livingproof_verifier-6.3.1/src/capability_verifier/repin.py +279 -0
  20. livingproof_verifier-6.3.1/src/capability_verifier/resolved_pins.py +213 -0
  21. livingproof_verifier-6.3.1/src/capability_verifier/run.py +304 -0
  22. livingproof_verifier-6.3.1/src/capability_verifier/specs_ref.py +66 -0
  23. livingproof_verifier-6.3.1/src/livingproof_verifier.egg-info/PKG-INFO +90 -0
  24. livingproof_verifier-6.3.1/src/livingproof_verifier.egg-info/SOURCES.txt +110 -0
  25. livingproof_verifier-6.3.1/src/livingproof_verifier.egg-info/dependency_links.txt +1 -0
  26. livingproof_verifier-6.3.1/src/livingproof_verifier.egg-info/entry_points.txt +2 -0
  27. livingproof_verifier-6.3.1/src/livingproof_verifier.egg-info/requires.txt +3 -0
  28. livingproof_verifier-6.3.1/src/livingproof_verifier.egg-info/top_level.txt +1 -0
  29. livingproof_verifier-6.3.1/tests/test_bundle_hashes.py +163 -0
  30. livingproof_verifier-6.3.1/tests/test_caller_lock_before_jq.py +112 -0
  31. livingproof_verifier-6.3.1/tests/test_checkout_force.py +126 -0
  32. livingproof_verifier-6.3.1/tests/test_checkout_identity.py +223 -0
  33. livingproof_verifier-6.3.1/tests/test_checkout_origin.py +78 -0
  34. livingproof_verifier-6.3.1/tests/test_checkout_origin_reuse.py +85 -0
  35. livingproof_verifier-6.3.1/tests/test_collect.py +286 -0
  36. livingproof_verifier-6.3.1/tests/test_collect_advisory.py +141 -0
  37. livingproof_verifier-6.3.1/tests/test_collect_cli.py +74 -0
  38. livingproof_verifier-6.3.1/tests/test_collect_counts.py +117 -0
  39. livingproof_verifier-6.3.1/tests/test_collect_integrity.py +138 -0
  40. livingproof_verifier-6.3.1/tests/test_collect_integrity_inconclusive.py +68 -0
  41. livingproof_verifier-6.3.1/tests/test_collect_integrity_not_run.py +49 -0
  42. livingproof_verifier-6.3.1/tests/test_collect_integrity_review.py +100 -0
  43. livingproof_verifier-6.3.1/tests/test_collector_checkout_edges.py +100 -0
  44. livingproof_verifier-6.3.1/tests/test_collector_runs_from_checkout.py +134 -0
  45. livingproof_verifier-6.3.1/tests/test_container_job_shell.py +312 -0
  46. livingproof_verifier-6.3.1/tests/test_declared_judgments.py +184 -0
  47. livingproof_verifier-6.3.1/tests/test_declared_pipeline.py +173 -0
  48. livingproof_verifier-6.3.1/tests/test_definition.py +1141 -0
  49. livingproof_verifier-6.3.1/tests/test_deploy_freshness_auth.py +368 -0
  50. livingproof_verifier-6.3.1/tests/test_devcontainer_build.py +196 -0
  51. livingproof_verifier-6.3.1/tests/test_docs_brand_lock.py +136 -0
  52. livingproof_verifier-6.3.1/tests/test_documentation_release.py +199 -0
  53. livingproof_verifier-6.3.1/tests/test_evaluator_tag_remote.py +38 -0
  54. livingproof_verifier-6.3.1/tests/test_evaluators.py +1866 -0
  55. livingproof_verifier-6.3.1/tests/test_evaluators_job.py +114 -0
  56. livingproof_verifier-6.3.1/tests/test_evidence_ending.py +420 -0
  57. livingproof_verifier-6.3.1/tests/test_evidence_lock.py +252 -0
  58. livingproof_verifier-6.3.1/tests/test_guidelines_pins.py +107 -0
  59. livingproof_verifier-6.3.1/tests/test_guidelines_preset_docs_brand.py +40 -0
  60. livingproof_verifier-6.3.1/tests/test_hallway_devcontainer_pin.py +36 -0
  61. livingproof_verifier-6.3.1/tests/test_hallway_index_platforms.py +83 -0
  62. livingproof_verifier-6.3.1/tests/test_hallway_python_base_review.py +82 -0
  63. livingproof_verifier-6.3.1/tests/test_hallway_tag_absent.py +89 -0
  64. livingproof_verifier-6.3.1/tests/test_integrity_bound_to_its_run.py +51 -0
  65. livingproof_verifier-6.3.1/tests/test_integrity_in_evaluator_results.py +122 -0
  66. livingproof_verifier-6.3.1/tests/test_integrity_once_per_run.py +121 -0
  67. livingproof_verifier-6.3.1/tests/test_integrity_real_run_id_attaches.py +61 -0
  68. livingproof_verifier-6.3.1/tests/test_integrity_unmatched_run_id.py +90 -0
  69. livingproof_verifier-6.3.1/tests/test_livingproof_image_consumer.py +223 -0
  70. livingproof_verifier-6.3.1/tests/test_lock_format_docs.py +418 -0
  71. livingproof_verifier-6.3.1/tests/test_lock_format_docs_review.py +177 -0
  72. livingproof_verifier-6.3.1/tests/test_merge_queue_single_gate.py +84 -0
  73. livingproof_verifier-6.3.1/tests/test_network_tests_ci.py +124 -0
  74. livingproof_verifier-6.3.1/tests/test_network_tests_runner_exit.py +96 -0
  75. livingproof_verifier-6.3.1/tests/test_no_health_in_github.py +22 -0
  76. livingproof_verifier-6.3.1/tests/test_no_integrity_fallback.py +97 -0
  77. livingproof_verifier-6.3.1/tests/test_no_run_integrity_pin.py +47 -0
  78. livingproof_verifier-6.3.1/tests/test_no_scenario_fallback.py +54 -0
  79. livingproof_verifier-6.3.1/tests/test_post_release_check_job.py +69 -0
  80. livingproof_verifier-6.3.1/tests/test_prepare_pypi.py +337 -0
  81. livingproof_verifier-6.3.1/tests/test_readme_quickstart.py +19 -0
  82. livingproof_verifier-6.3.1/tests/test_readme_quickstart_resolve.py +37 -0
  83. livingproof_verifier-6.3.1/tests/test_real_report_tests_run_on_arm64.py +88 -0
  84. livingproof_verifier-6.3.1/tests/test_refusal.py +242 -0
  85. livingproof_verifier-6.3.1/tests/test_refusal_review.py +59 -0
  86. livingproof_verifier-6.3.1/tests/test_refusal_schema_review.py +86 -0
  87. livingproof_verifier-6.3.1/tests/test_registry_runner.py +187 -0
  88. livingproof_verifier-6.3.1/tests/test_release_image.py +107 -0
  89. livingproof_verifier-6.3.1/tests/test_renovate_pins.py +212 -0
  90. livingproof_verifier-6.3.1/tests/test_repin.py +251 -0
  91. livingproof_verifier-6.3.1/tests/test_reporter_pin.py +225 -0
  92. livingproof_verifier-6.3.1/tests/test_require_reporter.py +72 -0
  93. livingproof_verifier-6.3.1/tests/test_resolved_pin_record.py +635 -0
  94. livingproof_verifier-6.3.1/tests/test_ruff_pin.py +41 -0
  95. livingproof_verifier-6.3.1/tests/test_scenario_e2e_ci.py +60 -0
  96. livingproof_verifier-6.3.1/tests/test_scenario_evidence_lock.py +131 -0
  97. livingproof_verifier-6.3.1/tests/test_scenario_media_guard_boundaries.py +179 -0
  98. livingproof_verifier-6.3.1/tests/test_scenario_media_guard_labels.py +68 -0
  99. livingproof_verifier-6.3.1/tests/test_scenario_media_guard_wording.py +127 -0
  100. livingproof_verifier-6.3.1/tests/test_scenario_provenance.py +417 -0
  101. livingproof_verifier-6.3.1/tests/test_scenario_provenance_edges.py +151 -0
  102. livingproof_verifier-6.3.1/tests/test_scenario_report_mkdir.py +103 -0
  103. livingproof_verifier-6.3.1/tests/test_source_files.py +142 -0
  104. livingproof_verifier-6.3.1/tests/test_source_files_review.py +163 -0
  105. livingproof_verifier-6.3.1/tests/test_specs_record.py +264 -0
  106. livingproof_verifier-6.3.1/tests/test_test_results.py +483 -0
  107. livingproof_verifier-6.3.1/tests/test_thresholds_export.py +135 -0
  108. livingproof_verifier-6.3.1/tests/test_thresholds_guards.py +109 -0
  109. livingproof_verifier-6.3.1/tests/test_verification_gate.py +128 -0
  110. livingproof_verifier-6.3.1/tests/test_verifier_image_record.py +349 -0
  111. livingproof_verifier-6.3.1/tests/test_wheel_fetch_retry.py +127 -0
  112. livingproof_verifier-6.3.1/tests/test_wheel_install_ci.py +112 -0
@@ -0,0 +1,73 @@
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, and distribution as defined by Sections 1 through 9 of this document.
10
+
11
+ "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
12
+
13
+ "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
14
+
15
+ "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
16
+
17
+ "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
18
+
19
+ "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
20
+
21
+ "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
22
+
23
+ "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
24
+
25
+ "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
26
+
27
+ "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
28
+
29
+ 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
30
+
31
+ 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
32
+
33
+ 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
34
+
35
+ (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and
36
+
37
+ (b) You must cause any modified files to carry prominent notices stating that You changed the files; and
38
+
39
+ (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
40
+
41
+ (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
42
+
43
+ You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
44
+
45
+ 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
46
+
47
+ 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
48
+
49
+ 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
50
+
51
+ 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
52
+
53
+ 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
54
+
55
+ END OF TERMS AND CONDITIONS
56
+
57
+ APPENDIX: How to apply the Apache License to your work.
58
+
59
+ To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.
60
+
61
+ Copyright [yyyy] [name of copyright owner]
62
+
63
+ Licensed under the Apache License, Version 2.0 (the "License");
64
+ you may not use this file except in compliance with the License.
65
+ You may obtain a copy of the License at
66
+
67
+ http://www.apache.org/licenses/LICENSE-2.0
68
+
69
+ Unless required by applicable law or agreed to in writing, software
70
+ distributed under the License is distributed on an "AS IS" BASIS,
71
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
72
+ See the License for the specific language governing permissions and
73
+ limitations under the License.
@@ -0,0 +1,90 @@
1
+ Metadata-Version: 2.4
2
+ Name: livingproof-verifier
3
+ Version: 6.3.1
4
+ Summary: Fixture reference verifier; not robot safety certification
5
+ License-Expression: Apache-2.0
6
+ Requires-Python: <3.13,>=3.12
7
+ Description-Content-Type: text/markdown
8
+ License-File: LICENSE
9
+ Requires-Dist: livingproof-sim-mujoco==3.10.2
10
+ Requires-Dist: pyyaml==6.0.4
11
+ Requires-Dist: jsonschema==4.26.0
12
+ Dynamic: license-file
13
+
14
+ # Capability Verifier
15
+
16
+ Run declared evaluators on validated evidence and aggregate their grading verdicts.
17
+ Verifier does not implement Scenario checks, Run Integrity checks, posture checks,
18
+ or a fallback evaluator. This is not robot safety certification.
19
+
20
+ This branch is a breaking candidate for [#292](https://github.com/Living-Proof-Labs/capability-verifier/issues/292).
21
+ See [migration and release boundaries](docs/declared-evaluators.md) before adopting it.
22
+ Caller [lock and source bindings](docs/locks.md) remain integrity inputs.
23
+ The published manual describes the currently released version, not this candidate.
24
+
25
+ ## Python distribution name
26
+
27
+ This candidate stages `livingproof-verifier` as the distribution name ahead
28
+ of the first PyPI release. Earlier checkout-built wheels used
29
+ `capability-verifier`. Use a fresh environment when switching because both
30
+ distributions install the same `capability_verifier` module. The existing
31
+ Living Proof plugin command is `livingproof capability verify`.
32
+ Git tags and source commits continue to identify Verifier releases.
33
+
34
+ ## Evaluate current evidence
35
+
36
+ Install a reviewed Verifier wheel and provide a current evidence manifest. Each
37
+ line of `evaluators.txt` selects one immutable evaluator descriptor:
38
+
39
+ ```text
40
+ owner/repository@v1.2.3/livingproof-evaluator.json
41
+ ```
42
+
43
+ ```sh
44
+ python -m capability_verifier.run evidence/manifest.json output --evaluators evaluators.txt
45
+ ```
46
+
47
+ The output contains `judgments.json`, exact execution provenance and the declared
48
+ results. Omit `--evaluators` to validate evidence without executing an evaluator;
49
+ that run has **no grade**. Only descriptors declaring `grading: robot` contribute
50
+ to the grade. Every expected trial must have a digest-bound verdict from each
51
+ declared grader. FAIL is a robot verdict; a refused, missing or crashed evaluator
52
+ is an operational error (exit 2), with no completed output directory.
53
+
54
+ The existing result contract calls trial grading results `kind: scenario`. That
55
+ is a contract shape, not an implicit Scenario evaluator. Non-grading run results
56
+ are retained without changing robot grades or inventing a run conclusion.
57
+
58
+ For a portable bundle, additionally pass `--report-bundle` and set
59
+ `SOURCE_COMMIT` to the installed Verifier source commit and
60
+ `LIVINGPROOF_VERIFIER_VERSION` to its release version (or `dev` for a candidate).
61
+ The input must carry the exact catalog/configuration/world identity. Use a
62
+ released Capability Reporter to render `output/bundle/manifest.json`; Verifier
63
+ writes no report HTML. Input citations exported to `output/reports/` must travel
64
+ with the rendered report.
65
+
66
+ ## Verify this checkout
67
+
68
+ Use Docker with Compose v2 and Task 3.54.0:
69
+
70
+ ```sh
71
+ task verify
72
+ task consumer:smoke
73
+ ```
74
+
75
+ Inside the prepared runtime, use `task -t Taskfile.runtime.yml verify`.
76
+ `consumer:smoke` installs a small synthetic grading package through the public
77
+ loader and renders retained public G1 evidence with the released Reporter.
78
+ Its requested PASS and FAIL exercise orchestration; they are not new robot
79
+ judgments. Missing, refused, crashed and failed dependency cases must refuse.
80
+ No simulation is run for this fixture proof.
81
+
82
+ The separate installed-package gate builds a wheel and runs outside the checkout:
83
+
84
+ ```sh
85
+ python .github/scripts/check_wheel_install.py
86
+ ```
87
+
88
+ It uses normal runtime dependency resolution, no dependency overrides and no
89
+ `PYTHONPATH`. It checks all package imports and package data before running the
90
+ public command and installed synthetic evaluator.
@@ -0,0 +1,77 @@
1
+ # Capability Verifier
2
+
3
+ Run declared evaluators on validated evidence and aggregate their grading verdicts.
4
+ Verifier does not implement Scenario checks, Run Integrity checks, posture checks,
5
+ or a fallback evaluator. This is not robot safety certification.
6
+
7
+ This branch is a breaking candidate for [#292](https://github.com/Living-Proof-Labs/capability-verifier/issues/292).
8
+ See [migration and release boundaries](docs/declared-evaluators.md) before adopting it.
9
+ Caller [lock and source bindings](docs/locks.md) remain integrity inputs.
10
+ The published manual describes the currently released version, not this candidate.
11
+
12
+ ## Python distribution name
13
+
14
+ This candidate stages `livingproof-verifier` as the distribution name ahead
15
+ of the first PyPI release. Earlier checkout-built wheels used
16
+ `capability-verifier`. Use a fresh environment when switching because both
17
+ distributions install the same `capability_verifier` module. The existing
18
+ Living Proof plugin command is `livingproof capability verify`.
19
+ Git tags and source commits continue to identify Verifier releases.
20
+
21
+ ## Evaluate current evidence
22
+
23
+ Install a reviewed Verifier wheel and provide a current evidence manifest. Each
24
+ line of `evaluators.txt` selects one immutable evaluator descriptor:
25
+
26
+ ```text
27
+ owner/repository@v1.2.3/livingproof-evaluator.json
28
+ ```
29
+
30
+ ```sh
31
+ python -m capability_verifier.run evidence/manifest.json output --evaluators evaluators.txt
32
+ ```
33
+
34
+ The output contains `judgments.json`, exact execution provenance and the declared
35
+ results. Omit `--evaluators` to validate evidence without executing an evaluator;
36
+ that run has **no grade**. Only descriptors declaring `grading: robot` contribute
37
+ to the grade. Every expected trial must have a digest-bound verdict from each
38
+ declared grader. FAIL is a robot verdict; a refused, missing or crashed evaluator
39
+ is an operational error (exit 2), with no completed output directory.
40
+
41
+ The existing result contract calls trial grading results `kind: scenario`. That
42
+ is a contract shape, not an implicit Scenario evaluator. Non-grading run results
43
+ are retained without changing robot grades or inventing a run conclusion.
44
+
45
+ For a portable bundle, additionally pass `--report-bundle` and set
46
+ `SOURCE_COMMIT` to the installed Verifier source commit and
47
+ `LIVINGPROOF_VERIFIER_VERSION` to its release version (or `dev` for a candidate).
48
+ The input must carry the exact catalog/configuration/world identity. Use a
49
+ released Capability Reporter to render `output/bundle/manifest.json`; Verifier
50
+ writes no report HTML. Input citations exported to `output/reports/` must travel
51
+ with the rendered report.
52
+
53
+ ## Verify this checkout
54
+
55
+ Use Docker with Compose v2 and Task 3.54.0:
56
+
57
+ ```sh
58
+ task verify
59
+ task consumer:smoke
60
+ ```
61
+
62
+ Inside the prepared runtime, use `task -t Taskfile.runtime.yml verify`.
63
+ `consumer:smoke` installs a small synthetic grading package through the public
64
+ loader and renders retained public G1 evidence with the released Reporter.
65
+ Its requested PASS and FAIL exercise orchestration; they are not new robot
66
+ judgments. Missing, refused, crashed and failed dependency cases must refuse.
67
+ No simulation is run for this fixture proof.
68
+
69
+ The separate installed-package gate builds a wheel and runs outside the checkout:
70
+
71
+ ```sh
72
+ python .github/scripts/check_wheel_install.py
73
+ ```
74
+
75
+ It uses normal runtime dependency resolution, no dependency overrides and no
76
+ `PYTHONPATH`. It checks all package imports and package data before running the
77
+ public command and installed synthetic evaluator.
@@ -0,0 +1,46 @@
1
+ [project]
2
+ name = "livingproof-verifier"
3
+ version = "6.3.1"
4
+ description = "Fixture reference verifier; not robot safety certification"
5
+ readme = "README.md"
6
+ requires-python = ">=3.12,<3.13"
7
+ license = "Apache-2.0"
8
+ dependencies = [
9
+ "livingproof-sim-mujoco==3.10.2",
10
+ "pyyaml==6.0.4",
11
+ "jsonschema==4.26.0",
12
+ ]
13
+
14
+ [project.entry-points."livingproof.capability.commands"]
15
+ verify = "capability_verifier.plugin:verify"
16
+
17
+ [dependency-groups]
18
+ dev = [
19
+ # Reporter is test interoperability only; no evaluator is a runtime dependency.
20
+ "playwright==1.64.1",
21
+ "pytest==9.0.3",
22
+ "pytest-bdd==8.1.0",
23
+ "ruff==0.17.6",
24
+ "zensical==0.0.73",
25
+ "livingproof-capability-report==5.0.12",
26
+ "livingproof-common==1.0.56",
27
+ ]
28
+
29
+ [tool.pytest.ini_options]
30
+ pythonpath = ["src"]
31
+ addopts = "-ra"
32
+ testpaths = ["tests"]
33
+ norecursedirs = ["tests/docs"]
34
+ junit_family = "legacy"
35
+ markers = ["reference_v1: released catalog revision 1 scenarios"]
36
+
37
+ [tool.ruff]
38
+ line-length = 100
39
+ extend-exclude = [".matrix-sources", ".specs", ".specs-hallway"]
40
+
41
+ [tool.setuptools.packages.find]
42
+ where = ["src"]
43
+
44
+ [tool.setuptools.package-data]
45
+ capability_verifier = ["*.json"]
46
+
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1 @@
1
+ # SPDX-License-Identifier: Apache-2.0
@@ -0,0 +1,118 @@
1
+ # SPDX-License-Identifier: Apache-2.0
2
+ """Every sha256 a run bundle declares resolves (capability-verifier#86).
3
+
4
+ An evidence folder's hashes are resolved by the pinned livingproof-sim-mujoco
5
+ ``evidence.unresolved_hashes`` (v3.2.5, sim#74): artifact hashes against the file at the
6
+ sibling ``path``, ``trajectory_sha256`` recomputed from the trial file with
7
+ ``evidence.trajectory_sha256_of`` (the observation's ``trace`` as compact, key-sorted
8
+ JSON), and pinned source inputs by name. No formula is copied here.
9
+
10
+ The sim catalog does not document three fields that released bundles carry. This module
11
+ documents them, and nothing else is skipped:
12
+
13
+ - ``lock.content.definition.sha256``: ``source``. The verification-lock 0.2.0 digest of
14
+ the robot's definition file (``definition.lock``), which is not in the evidence folder.
15
+ - ``lock.content.overridden_robot_lock.sha256``: ``source``. The robot
16
+ ``verification.lock.json`` a caller lock replaced (``evidence_lock``).
17
+ - ``trials.reproducibility.finding.trajectory_sha256``: ``copy``. The sim's disagreement
18
+ finding lists each trial's ``trajectory_sha256`` in result order, so it resolves when it
19
+ equals ``trials.results[].trajectory_sha256`` (each of which resolves by recompute).
20
+
21
+ ``unresolved_report`` does the same for the verifier's ``verification.json``: a hash with
22
+ a sibling ``path`` is the evidence file at that path, and a repeat row (``index``) copies
23
+ the evidence result with that index.
24
+ """
25
+
26
+ import hashlib
27
+ import json
28
+ from pathlib import Path
29
+
30
+ from livingproof_sim_mujoco import evidence
31
+
32
+ VERIFIER_DECLARED_HASHES = {
33
+ "manifest.json": {
34
+ "lock.content.definition.sha256": "source",
35
+ "lock.content.overridden_robot_lock.sha256": "source",
36
+ "trials.reproducibility.finding.trajectory_sha256": "copy",
37
+ },
38
+ }
39
+
40
+
41
+ def _hash_fields(node, key: str = ""):
42
+ """``(key, value, parent)`` for every field whose name contains ``sha256``."""
43
+ if isinstance(node, dict):
44
+ for name, value in node.items():
45
+ here = f"{key}.{name}" if key else name
46
+ if "sha256" in name:
47
+ yield here, value, node
48
+ yield from _hash_fields(value, here)
49
+ elif isinstance(node, list):
50
+ for index, value in enumerate(node):
51
+ yield from _hash_fields(value, f"{key}[{index}]")
52
+
53
+
54
+ def _results(folder: Path) -> list:
55
+ manifest = json.loads((folder / "manifest.json").read_text(encoding="utf-8"))
56
+ trials = manifest.get("trials") if isinstance(manifest, dict) else None
57
+ results = trials.get("results") if isinstance(trials, dict) else None
58
+ return results if isinstance(results, list) else []
59
+
60
+
61
+ def unresolved(folder: Path) -> list[str]:
62
+ """One message per hash in evidence ``folder`` that does not resolve. Empty when all do."""
63
+ folder = Path(folder)
64
+ verifier = {}
65
+ for item in evidence.declared_hashes(folder):
66
+ if item["covers"] is None:
67
+ covers = VERIFIER_DECLARED_HASHES.get(item["file"], {}).get(item["key"])
68
+ if covers is not None:
69
+ verifier[f"{item['file']} {item['key']}"] = (covers, item)
70
+ problems = [
71
+ message
72
+ for message in evidence.unresolved_hashes(folder)
73
+ if not any(message.startswith(f"{where} ") for where in verifier)
74
+ ]
75
+ for where, (covers, item) in verifier.items():
76
+ if covers != "copy":
77
+ continue
78
+ trial_hashes = [r.get("trajectory_sha256") for r in _results(folder)]
79
+ if item["sha256"] != trial_hashes:
80
+ problems.append(
81
+ f"{where} is {item['sha256']!r} but trials.results[].trajectory_sha256 "
82
+ f"is {trial_hashes!r}."
83
+ )
84
+ return problems
85
+
86
+
87
+ def report_hashes(report: Path) -> list[tuple[str, object, dict]]:
88
+ """``(key, value, parent)`` for every sha256 field in a ``verification.json``."""
89
+ return list(_hash_fields(json.loads(Path(report).read_text(encoding="utf-8"))))
90
+
91
+
92
+ def unresolved_report(report: Path, folder: Path) -> list[str]:
93
+ """Hashes in ``report`` that are neither an evidence file in ``folder`` nor a copy."""
94
+ report, folder = Path(report), Path(folder)
95
+ by_index = {r.get("index"): r for r in _results(folder) if isinstance(r, dict)}
96
+ problems = []
97
+ for key, value, parent in report_hashes(report):
98
+ where = f"{report.name} {key}"
99
+ name = key.rsplit(".", 1)[-1]
100
+ rel = parent.get("path")
101
+ if isinstance(rel, str):
102
+ target = folder / rel
103
+ if not target.is_file():
104
+ problems.append(f"{where}: its path {rel!r} is not a file in the evidence.")
105
+ continue
106
+ actual = hashlib.sha256(target.read_bytes()).hexdigest()
107
+ if actual != value:
108
+ problems.append(f"{where} is {value} but the file {rel} gives {actual}.")
109
+ elif "index" in parent:
110
+ source = by_index.get(parent["index"])
111
+ if source is None or source.get(name) != value:
112
+ got = None if source is None else source.get(name)
113
+ problems.append(
114
+ f"{where} is {value} but evidence result {parent['index']} has {got}."
115
+ )
116
+ else:
117
+ problems.append(f"{where} names no evidence file and copies no evidence result.")
118
+ return problems