voltry-probe 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- voltry_probe-0.1.0/.gitignore +50 -0
- voltry_probe-0.1.0/CHANGELOG.md +34 -0
- voltry_probe-0.1.0/CONTRIBUTING.md +22 -0
- voltry_probe-0.1.0/Dockerfile +40 -0
- voltry_probe-0.1.0/LICENSE +201 -0
- voltry_probe-0.1.0/PKG-INFO +118 -0
- voltry_probe-0.1.0/README.md +93 -0
- voltry_probe-0.1.0/pyproject.toml +71 -0
- voltry_probe-0.1.0/tests/conftest.py +105 -0
- voltry_probe-0.1.0/tests/fixtures/h100_read.json +29 -0
- voltry_probe-0.1.0/tests/test_attestation.py +128 -0
- voltry_probe-0.1.0/tests/test_builder.py +128 -0
- voltry_probe-0.1.0/tests/test_cli.py +192 -0
- voltry_probe-0.1.0/tests/test_dcgm_reader.py +23 -0
- voltry_probe-0.1.0/tests/test_functional.py +59 -0
- voltry_probe-0.1.0/tests/test_monitor.py +48 -0
- voltry_probe-0.1.0/tests/test_nvml_reader.py +109 -0
- voltry_probe-0.1.0/tests/test_read_only.py +43 -0
- voltry_probe-0.1.0/tests/test_render.py +116 -0
- voltry_probe-0.1.0/tests/test_sources.py +71 -0
- voltry_probe-0.1.0/tests/test_tokens_asset.py +59 -0
- voltry_probe-0.1.0/voltry_probe/__init__.py +40 -0
- voltry_probe-0.1.0/voltry_probe/attestation/__init__.py +14 -0
- voltry_probe-0.1.0/voltry_probe/attestation/model.py +33 -0
- voltry_probe-0.1.0/voltry_probe/attestation/verify.py +190 -0
- voltry_probe-0.1.0/voltry_probe/cli.py +214 -0
- voltry_probe-0.1.0/voltry_probe/evidence/__init__.py +11 -0
- voltry_probe-0.1.0/voltry_probe/evidence/builder.py +165 -0
- voltry_probe-0.1.0/voltry_probe/functional/__init__.py +13 -0
- voltry_probe-0.1.0/voltry_probe/functional/runner.py +68 -0
- voltry_probe-0.1.0/voltry_probe/monitor/__init__.py +13 -0
- voltry_probe-0.1.0/voltry_probe/monitor/monitor.py +48 -0
- voltry_probe-0.1.0/voltry_probe/py.typed +0 -0
- voltry_probe-0.1.0/voltry_probe/readers/__init__.py +23 -0
- voltry_probe-0.1.0/voltry_probe/readers/dcgm.py +64 -0
- voltry_probe-0.1.0/voltry_probe/readers/nvml.py +188 -0
- voltry_probe-0.1.0/voltry_probe/readers/redfish.py +26 -0
- voltry_probe-0.1.0/voltry_probe/readers/taxonomy.py +38 -0
- voltry_probe-0.1.0/voltry_probe/render/__init__.py +7 -0
- voltry_probe-0.1.0/voltry_probe/render/assets/certificate.css +178 -0
- voltry_probe-0.1.0/voltry_probe/render/assets/tokens.css +40 -0
- voltry_probe-0.1.0/voltry_probe/render/certificate.py +231 -0
- voltry_probe-0.1.0/voltry_probe/sources/__init__.py +13 -0
- voltry_probe-0.1.0/voltry_probe/sources/base.py +40 -0
- voltry_probe-0.1.0/voltry_probe/sources/fixture.py +19 -0
- voltry_probe-0.1.0/voltry_probe/sources/live.py +94 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# --- OS / editor ---
|
|
2
|
+
.DS_Store
|
|
3
|
+
*.swp
|
|
4
|
+
.idea/
|
|
5
|
+
.vscode/
|
|
6
|
+
|
|
7
|
+
# --- Python ---
|
|
8
|
+
__pycache__/
|
|
9
|
+
*.py[cod]
|
|
10
|
+
*.egg-info/
|
|
11
|
+
.eggs/
|
|
12
|
+
.pytest_cache/
|
|
13
|
+
.ruff_cache/
|
|
14
|
+
.mypy_cache/
|
|
15
|
+
.coverage
|
|
16
|
+
.coverage.*
|
|
17
|
+
coverage.xml
|
|
18
|
+
htmlcov/
|
|
19
|
+
.venv/
|
|
20
|
+
venv/
|
|
21
|
+
dist/
|
|
22
|
+
build/
|
|
23
|
+
|
|
24
|
+
# --- Node / TS ---
|
|
25
|
+
node_modules/
|
|
26
|
+
.next/
|
|
27
|
+
.turbo/
|
|
28
|
+
*.tsbuildinfo
|
|
29
|
+
out/
|
|
30
|
+
|
|
31
|
+
# --- Generated token outputs are committed? No — regenerated in CI ---
|
|
32
|
+
packages/tokens/dist/
|
|
33
|
+
apps/web/.next/
|
|
34
|
+
|
|
35
|
+
# --- Local secrets (never committed; enforced by hooks) ---
|
|
36
|
+
.env
|
|
37
|
+
.env.*
|
|
38
|
+
*.pem
|
|
39
|
+
*.key
|
|
40
|
+
|
|
41
|
+
# --- SBOM / scan artifacts (regenerated in CI) ---
|
|
42
|
+
sbom*.json
|
|
43
|
+
sbom*.xml
|
|
44
|
+
trivy-results.*
|
|
45
|
+
|
|
46
|
+
# Next.js generated
|
|
47
|
+
next-env.d.ts
|
|
48
|
+
|
|
49
|
+
# hypothesis example database
|
|
50
|
+
.hypothesis/
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to `voltry-probe` are documented here. The format follows
|
|
4
|
+
Keep a Changelog.
|
|
5
|
+
|
|
6
|
+
## [0.1.0] - 2026-07-02
|
|
7
|
+
|
|
8
|
+
First public release.
|
|
9
|
+
|
|
10
|
+
- `voltry scan`: read-only capture from NVML, DCGM, Redfish, and the NVIDIA
|
|
11
|
+
attestation chain into a signed evidence bundle. Works fully offline and
|
|
12
|
+
air-gapped. Live readers behind the `[hardware]` extra; fixtures and
|
|
13
|
+
simulator supported everywhere.
|
|
14
|
+
- `voltry cert`: renders a bundle to a self-contained offline HTML
|
|
15
|
+
certificate. Measured facts and modeled estimates are separate blocks;
|
|
16
|
+
exposure renders "Not Assessed" without facility instrumentation. The command
|
|
17
|
+
verifies the bundle signature and renders a prominent UNVERIFIED watermark
|
|
18
|
+
(with a stderr warning) for any bundle whose signature does not validate, so
|
|
19
|
+
the offline certificate can never look authoritative without cryptographic
|
|
20
|
+
backing.
|
|
21
|
+
- `voltry submit`: separate, explicit, opt-in submission client behind the
|
|
22
|
+
`[submit]` extra. Scan and cert never use the network.
|
|
23
|
+
- `voltry --version` reports the installed version; malformed inputs to `cert`
|
|
24
|
+
produce a clean error and a non-zero exit, never a raw traceback.
|
|
25
|
+
- Readers refuse to fabricate any measured fact. Every counter the certificate
|
|
26
|
+
renders as a Block-2 measured fact — ECC (volatile and aggregate), spare-row
|
|
27
|
+
headroom, and retired pages — must have actually been read at the leaf level;
|
|
28
|
+
an absent, empty, or partially-populated block is rejected rather than
|
|
29
|
+
certified as "0 errors" / "512/512 spare rows" / "0 retired pages". A
|
|
30
|
+
genuinely-measured zero is still a valid clean read. The live reader now
|
|
31
|
+
captures aggregate (lifetime) ECC and retired-page counts.
|
|
32
|
+
- Attestation verdicts reflect real chain state (VERIFIED, FAILED, UNVERIFIED,
|
|
33
|
+
FALLBACK); never a stubbed pass.
|
|
34
|
+
- Python 3.10 through 3.13. Typed (`py.typed`).
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# voltry-probe
|
|
2
|
+
|
|
3
|
+
The open, **read-only** Voltry agent. PyPI `voltry-probe`, import `voltry_probe`, CLI
|
|
4
|
+
`voltry` (Stage 5).
|
|
5
|
+
|
|
6
|
+
Stage 3 (Read mode):
|
|
7
|
+
|
|
8
|
+
- `voltry_probe/sources/` — read-only capture (live NVML on hardware via the `[hardware]`
|
|
9
|
+
extra, or captured fixtures / the DCGM simulator). No device-mutating call anywhere.
|
|
10
|
+
- `voltry_probe/readers/` — pure mappers: verbatim NVML/DCGM/Redfish payloads → typed
|
|
11
|
+
evidence-schema blocks. Spare-rows-remaining derived against the fixed 512 cap.
|
|
12
|
+
- `voltry_probe/attestation/` — **real** ECDSA P-384 verification of the device-identity
|
|
13
|
+
chain (root → device key → signed measurement) + VBIOS re-flash detection. Never a
|
|
14
|
+
stubbed PASS: `UNVERIFIED` with no root, `FAILED` on a broken chain, `FALLBACK` (lower
|
|
15
|
+
confidence, marked) for parts without a hardware root.
|
|
16
|
+
- `voltry_probe/evidence/` — thin adapter assembling a signed Read-mode (Bronze) bundle.
|
|
17
|
+
|
|
18
|
+
Read + cert work fully offline; submission is a separate, opt-in step (Stage 5).
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
uv run pytest # readers, attestation, builder, read-only invariant
|
|
22
|
+
```
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# syntax=docker/dockerfile:1
|
|
2
|
+
#
|
|
3
|
+
# Voltry Probe container — the read-only agent on the NVIDIA CUDA base.
|
|
4
|
+
# Multi-arch (amd64 + arm64; arm64 covers Grace). Build from the REPO ROOT so the
|
|
5
|
+
# evidence-schema contract (a workspace sibling, not on PyPI) is in the build context:
|
|
6
|
+
#
|
|
7
|
+
# docker buildx build -f packages/voltry-probe/Dockerfile \
|
|
8
|
+
# --platform linux/amd64,linux/arm64 \
|
|
9
|
+
# -t ghcr.io/voltry/voltry-probe:0.1.0 .
|
|
10
|
+
#
|
|
11
|
+
# Collects NO PII (NGC GDPR posture): identity is device-level only; account linkage is
|
|
12
|
+
# server-side. No secrets are baked in (no keys/.env copied; see .dockerignore). Image is
|
|
13
|
+
# signed (cosign) and CVE-scanned (Trivy) in CI.
|
|
14
|
+
ARG CUDA_TAG=12.6.2-base-ubuntu22.04
|
|
15
|
+
FROM nvcr.io/nvidia/cuda:${CUDA_TAG}
|
|
16
|
+
|
|
17
|
+
# Pinned uv binary from the official image (no `curl | sh`).
|
|
18
|
+
COPY --from=ghcr.io/astral-sh/uv:0.11.21 /uv /uvx /usr/local/bin/
|
|
19
|
+
|
|
20
|
+
ENV DEBIAN_FRONTEND=noninteractive \
|
|
21
|
+
PYTHONDONTWRITEBYTECODE=1 \
|
|
22
|
+
PYTHONUNBUFFERED=1
|
|
23
|
+
|
|
24
|
+
RUN apt-get update \
|
|
25
|
+
&& apt-get install -y --no-install-recommends python3.12 python3.12-venv ca-certificates \
|
|
26
|
+
&& rm -rf /var/lib/apt/lists/*
|
|
27
|
+
|
|
28
|
+
WORKDIR /opt/voltry
|
|
29
|
+
# evidence-schema (the contract) must be installed before the probe that depends on it.
|
|
30
|
+
COPY packages/evidence-schema /opt/voltry/evidence-schema
|
|
31
|
+
COPY packages/voltry-probe /opt/voltry/voltry-probe
|
|
32
|
+
RUN uv pip install --system --python python3.12 ./evidence-schema ./voltry-probe
|
|
33
|
+
|
|
34
|
+
# Run unprivileged; the agent is read-only and collects no PII.
|
|
35
|
+
RUN useradd --create-home --uid 10001 voltry
|
|
36
|
+
USER voltry
|
|
37
|
+
WORKDIR /home/voltry
|
|
38
|
+
|
|
39
|
+
ENTRYPOINT ["voltry"]
|
|
40
|
+
CMD ["--help"]
|
|
@@ -0,0 +1,201 @@
|
|
|
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 Derivative
|
|
95
|
+
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
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been 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
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2026 Voltry
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: voltry-probe
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Voltry Probe — the open, read-only agent. Reads NVML/DCGM/Redfish/attestation into a signed evidence bundle and renders the offline certificate.
|
|
5
|
+
License-Expression: Apache-2.0
|
|
6
|
+
License-File: LICENSE
|
|
7
|
+
Classifier: Operating System :: OS Independent
|
|
8
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
9
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
12
|
+
Classifier: Typing :: Typed
|
|
13
|
+
Requires-Python: >=3.10
|
|
14
|
+
Requires-Dist: cryptography<50,>=44
|
|
15
|
+
Requires-Dist: pydantic<3,>=2.11
|
|
16
|
+
Requires-Dist: rfc8785<0.2,>=0.1.4
|
|
17
|
+
Requires-Dist: typer<1,>=0.12
|
|
18
|
+
Requires-Dist: voltry-evidence-schema<2,>=1
|
|
19
|
+
Provides-Extra: hardware
|
|
20
|
+
Requires-Dist: nvidia-ml-py<13,>=12.560; extra == 'hardware'
|
|
21
|
+
Requires-Dist: sushy<6,>=5.0; extra == 'hardware'
|
|
22
|
+
Provides-Extra: submit
|
|
23
|
+
Requires-Dist: httpx<1,>=0.27; extra == 'submit'
|
|
24
|
+
Description-Content-Type: text/markdown
|
|
25
|
+
|
|
26
|
+
# Voltry Probe
|
|
27
|
+
|
|
28
|
+
Voltry Probe is an open, read-only agent that produces a signed condition and
|
|
29
|
+
provenance record for data-center GPUs. It reads what the hardware already
|
|
30
|
+
exposes (NVML, DCGM, Redfish, and the NVIDIA attestation chain), binds the
|
|
31
|
+
readings to the device's fused cryptographic identity, and renders a
|
|
32
|
+
self-contained certificate you can open with no network at all.
|
|
33
|
+
|
|
34
|
+
It never states or implies what your hardware is worth. It records what the
|
|
35
|
+
hardware is.
|
|
36
|
+
|
|
37
|
+
## Install
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
pipx install voltry-probe
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Requires Python 3.10 or newer. Stock DGX OS and Ubuntu 22.04 hosts work as-is.
|
|
44
|
+
`pip install voltry-probe` inside a virtualenv works too.
|
|
45
|
+
|
|
46
|
+
Optional extras:
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
pipx install "voltry-probe[hardware]" # live NVML + Redfish readers
|
|
50
|
+
pipx install "voltry-probe[submit]" # the opt-in submission client
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Without `[hardware]` the probe runs against captured fixtures and simulators,
|
|
54
|
+
which is all you need to evaluate it.
|
|
55
|
+
|
|
56
|
+
## Sixty seconds to a certificate
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
# 1. Scan. Read-only, works fully offline and air-gapped.
|
|
60
|
+
# Reads live hardware; signs with your operator key.
|
|
61
|
+
voltry scan --signing-key operator.pem --out bundle.json
|
|
62
|
+
|
|
63
|
+
# 2. Render. A self-contained HTML certificate, no network needed to view.
|
|
64
|
+
voltry cert bundle.json --out cert.html
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Just evaluating, with no GPU and no key of your own? Point `scan` at a captured
|
|
68
|
+
sample and sign with a throwaway key:
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
voltry scan --fixture sample.json --ephemeral-key --out bundle.json
|
|
72
|
+
voltry cert bundle.json --out cert.html
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
That is the whole loop. `voltry submit` exists as a separate, explicit,
|
|
76
|
+
opt-in step; scanning and rendering never phone home.
|
|
77
|
+
|
|
78
|
+
## What read-only means
|
|
79
|
+
|
|
80
|
+
The probe never writes to, resets, reconfigures, or stress-tests a device
|
|
81
|
+
during a scan. You can run it on a live production fleet. Functional
|
|
82
|
+
qualification (which does exercise the device) is a separate mode behind an
|
|
83
|
+
explicit flag, never part of a read-only `scan`.
|
|
84
|
+
|
|
85
|
+
## What the certificate says, and what it does not
|
|
86
|
+
|
|
87
|
+
The certificate keeps measured facts and modeled estimates in separate blocks
|
|
88
|
+
that never look alike:
|
|
89
|
+
|
|
90
|
+
- Deterministic gates: authenticity, firmware integrity, functional and
|
|
91
|
+
sanitization results. Pass or fail, no model in the loop.
|
|
92
|
+
- Measured condition: ECC and Xid history, retired and remapped pages, spare
|
|
93
|
+
rows remaining, throttle and clock behavior. Raw values against published
|
|
94
|
+
thresholds.
|
|
95
|
+
- Provenance: certification history on the device's permanent identity,
|
|
96
|
+
append-only. A failed attempt stays on the record; cherry-picking is
|
|
97
|
+
structurally impossible.
|
|
98
|
+
|
|
99
|
+
It never contains a price, a dollar figure, or a lifetime guarantee. Power-chain
|
|
100
|
+
exposure reads "Not Assessed" unless the facility itself was instrumented; it
|
|
101
|
+
is never inferred from board power.
|
|
102
|
+
|
|
103
|
+
## Verifying a bundle yourself
|
|
104
|
+
|
|
105
|
+
Every bundle is signed (ECDSA P-384 over RFC 8785 canonical JSON) and can be
|
|
106
|
+
verified by anyone with the `voltry-evidence-schema` package:
|
|
107
|
+
|
|
108
|
+
```python
|
|
109
|
+
import json
|
|
110
|
+
from evidence_schema import EvidenceBundle, verify_bundle
|
|
111
|
+
|
|
112
|
+
bundle = EvidenceBundle.model_validate(json.load(open("bundle.json")))
|
|
113
|
+
assert verify_bundle(bundle)
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
## License
|
|
117
|
+
|
|
118
|
+
Apache-2.0.
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# Voltry Probe
|
|
2
|
+
|
|
3
|
+
Voltry Probe is an open, read-only agent that produces a signed condition and
|
|
4
|
+
provenance record for data-center GPUs. It reads what the hardware already
|
|
5
|
+
exposes (NVML, DCGM, Redfish, and the NVIDIA attestation chain), binds the
|
|
6
|
+
readings to the device's fused cryptographic identity, and renders a
|
|
7
|
+
self-contained certificate you can open with no network at all.
|
|
8
|
+
|
|
9
|
+
It never states or implies what your hardware is worth. It records what the
|
|
10
|
+
hardware is.
|
|
11
|
+
|
|
12
|
+
## Install
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
pipx install voltry-probe
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Requires Python 3.10 or newer. Stock DGX OS and Ubuntu 22.04 hosts work as-is.
|
|
19
|
+
`pip install voltry-probe` inside a virtualenv works too.
|
|
20
|
+
|
|
21
|
+
Optional extras:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
pipx install "voltry-probe[hardware]" # live NVML + Redfish readers
|
|
25
|
+
pipx install "voltry-probe[submit]" # the opt-in submission client
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Without `[hardware]` the probe runs against captured fixtures and simulators,
|
|
29
|
+
which is all you need to evaluate it.
|
|
30
|
+
|
|
31
|
+
## Sixty seconds to a certificate
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
# 1. Scan. Read-only, works fully offline and air-gapped.
|
|
35
|
+
# Reads live hardware; signs with your operator key.
|
|
36
|
+
voltry scan --signing-key operator.pem --out bundle.json
|
|
37
|
+
|
|
38
|
+
# 2. Render. A self-contained HTML certificate, no network needed to view.
|
|
39
|
+
voltry cert bundle.json --out cert.html
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Just evaluating, with no GPU and no key of your own? Point `scan` at a captured
|
|
43
|
+
sample and sign with a throwaway key:
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
voltry scan --fixture sample.json --ephemeral-key --out bundle.json
|
|
47
|
+
voltry cert bundle.json --out cert.html
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
That is the whole loop. `voltry submit` exists as a separate, explicit,
|
|
51
|
+
opt-in step; scanning and rendering never phone home.
|
|
52
|
+
|
|
53
|
+
## What read-only means
|
|
54
|
+
|
|
55
|
+
The probe never writes to, resets, reconfigures, or stress-tests a device
|
|
56
|
+
during a scan. You can run it on a live production fleet. Functional
|
|
57
|
+
qualification (which does exercise the device) is a separate mode behind an
|
|
58
|
+
explicit flag, never part of a read-only `scan`.
|
|
59
|
+
|
|
60
|
+
## What the certificate says, and what it does not
|
|
61
|
+
|
|
62
|
+
The certificate keeps measured facts and modeled estimates in separate blocks
|
|
63
|
+
that never look alike:
|
|
64
|
+
|
|
65
|
+
- Deterministic gates: authenticity, firmware integrity, functional and
|
|
66
|
+
sanitization results. Pass or fail, no model in the loop.
|
|
67
|
+
- Measured condition: ECC and Xid history, retired and remapped pages, spare
|
|
68
|
+
rows remaining, throttle and clock behavior. Raw values against published
|
|
69
|
+
thresholds.
|
|
70
|
+
- Provenance: certification history on the device's permanent identity,
|
|
71
|
+
append-only. A failed attempt stays on the record; cherry-picking is
|
|
72
|
+
structurally impossible.
|
|
73
|
+
|
|
74
|
+
It never contains a price, a dollar figure, or a lifetime guarantee. Power-chain
|
|
75
|
+
exposure reads "Not Assessed" unless the facility itself was instrumented; it
|
|
76
|
+
is never inferred from board power.
|
|
77
|
+
|
|
78
|
+
## Verifying a bundle yourself
|
|
79
|
+
|
|
80
|
+
Every bundle is signed (ECDSA P-384 over RFC 8785 canonical JSON) and can be
|
|
81
|
+
verified by anyone with the `voltry-evidence-schema` package:
|
|
82
|
+
|
|
83
|
+
```python
|
|
84
|
+
import json
|
|
85
|
+
from evidence_schema import EvidenceBundle, verify_bundle
|
|
86
|
+
|
|
87
|
+
bundle = EvidenceBundle.model_validate(json.load(open("bundle.json")))
|
|
88
|
+
assert verify_bundle(bundle)
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
## License
|
|
92
|
+
|
|
93
|
+
Apache-2.0.
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "voltry-probe"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
description = "Voltry Probe — the open, read-only agent. Reads NVML/DCGM/Redfish/attestation into a signed evidence bundle and renders the offline certificate."
|
|
5
|
+
requires-python = ">=3.10"
|
|
6
|
+
license = "Apache-2.0"
|
|
7
|
+
readme = "README.md"
|
|
8
|
+
classifiers = [
|
|
9
|
+
"Programming Language :: Python :: 3.10",
|
|
10
|
+
"Programming Language :: Python :: 3.11",
|
|
11
|
+
"Programming Language :: Python :: 3.12",
|
|
12
|
+
"Programming Language :: Python :: 3.13",
|
|
13
|
+
"Typing :: Typed",
|
|
14
|
+
"Operating System :: OS Independent",
|
|
15
|
+
]
|
|
16
|
+
dependencies = [
|
|
17
|
+
"voltry-evidence-schema>=1,<2",
|
|
18
|
+
"pydantic>=2.11,<3",
|
|
19
|
+
"cryptography>=44,<50",
|
|
20
|
+
"rfc8785>=0.1.4,<0.2",
|
|
21
|
+
"typer>=0.12,<1",
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
[project.scripts]
|
|
25
|
+
voltry = "voltry_probe.cli:main"
|
|
26
|
+
|
|
27
|
+
[project.optional-dependencies]
|
|
28
|
+
# Real-hardware readers. Lazy-imported by sources/live.py; absent on dev/CI, where the
|
|
29
|
+
# probe runs against captured fixtures / the DCGM simulator (read-only either way).
|
|
30
|
+
hardware = [
|
|
31
|
+
"nvidia-ml-py>=12.560,<13",
|
|
32
|
+
"sushy>=5.0,<6",
|
|
33
|
+
]
|
|
34
|
+
# The network client for `voltry submit` only. Kept optional so scan/cert stay offline
|
|
35
|
+
# and dependency-light (§1.7 federated-by-default).
|
|
36
|
+
submit = [
|
|
37
|
+
"httpx>=0.27,<1",
|
|
38
|
+
]
|
|
39
|
+
|
|
40
|
+
# Published on PyPI with a 3.10 floor (ADR-0003): lint for the floor, not the
|
|
41
|
+
# workspace default. `extend` keeps the root select/per-file-ignores rules.
|
|
42
|
+
[tool.ruff]
|
|
43
|
+
extend = "../../pyproject.toml"
|
|
44
|
+
target-version = "py310"
|
|
45
|
+
|
|
46
|
+
[build-system]
|
|
47
|
+
requires = ["hatchling"]
|
|
48
|
+
build-backend = "hatchling.build"
|
|
49
|
+
|
|
50
|
+
[tool.hatch.build.targets.wheel]
|
|
51
|
+
packages = ["voltry_probe"]
|
|
52
|
+
|
|
53
|
+
# The sdist must not ship the internal agent constitution or local caches to PyPI.
|
|
54
|
+
[tool.hatch.build.targets.sdist]
|
|
55
|
+
exclude = ["CLAUDE.md", "AGENTS.md", ".claude", ".hypothesis", ".pytest_cache", ".ruff_cache"]
|
|
56
|
+
|
|
57
|
+
# voltry-evidence-schema resolves from the workspace locally and from PyPI when published.
|
|
58
|
+
[tool.uv.sources]
|
|
59
|
+
voltry-evidence-schema = { workspace = true }
|
|
60
|
+
|
|
61
|
+
[tool.pytest.ini_options]
|
|
62
|
+
addopts = "-q --import-mode=importlib"
|
|
63
|
+
testpaths = ["tests"]
|
|
64
|
+
filterwarnings = ["error"]
|
|
65
|
+
|
|
66
|
+
[tool.coverage.run]
|
|
67
|
+
branch = true
|
|
68
|
+
source = ["voltry_probe"]
|
|
69
|
+
|
|
70
|
+
[tool.coverage.report]
|
|
71
|
+
exclude_also = ["if TYPE_CHECKING:", "raise NotImplementedError", "@(abc\\.)?abstractmethod"]
|