Release v0.1.4 verifiable fixture bundle
Browse filesDistribution-only: adds one-command bundle integrity verification, CITATION.cff, and a bounded reviewer path. Profile schema and synthetic characterization are unchanged.
- CHANGELOG.md +9 -0
- CITATION.cff +13 -0
- README.md +14 -9
- REVIEW.md +44 -0
- artifacts/authority-boundary-synthetic-fixture-bundle-v0.1.4.zip +3 -0
- artifacts/evidence-passport-v0.1.4.json +86 -0
- scripts/build_distribution_artifacts.py +10 -4
- scripts/verify_bundle_manifest.py +55 -0
CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
| 1 |
# Changelog
|
| 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
## v0.1.3 - 2026-08-07
|
| 4 |
|
| 5 |
Distribution-only release. The profile schema, evidence schema, and synthetic
|
|
|
|
| 1 |
# Changelog
|
| 2 |
|
| 3 |
+
## v0.1.4 - 2026-08-07
|
| 4 |
+
|
| 5 |
+
Distribution-only release. The profile schema, evidence schema, and synthetic
|
| 6 |
+
characterization are unchanged.
|
| 7 |
+
|
| 8 |
+
- Adds a dependency-free verifier for every file, size, and SHA-256 digest in
|
| 9 |
+
an extracted synthetic fixture bundle.
|
| 10 |
+
- Adds `CITATION.cff` and a bounded five-minute reviewer path.
|
| 11 |
+
|
| 12 |
## v0.1.3 - 2026-08-07
|
| 13 |
|
| 14 |
Distribution-only release. The profile schema, evidence schema, and synthetic
|
CITATION.cff
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
cff-version: 1.2.0
|
| 2 |
+
message: "If you use this profile, please cite it using the metadata below."
|
| 3 |
+
type: dataset
|
| 4 |
+
title: "MCP Sandbox Authority Boundary Profile"
|
| 5 |
+
version: "0.1.0"
|
| 6 |
+
date-released: 2026-07-23
|
| 7 |
+
authors:
|
| 8 |
+
- family-names: Saleme
|
| 9 |
+
given-names: Michael K.
|
| 10 |
+
orcid: "https://orcid.org/0009-0003-6736-1900"
|
| 11 |
+
license: MIT
|
| 12 |
+
url: "https://huggingface.co/datasets/msaleme/mcp-sandbox-authority-boundary-profile"
|
| 13 |
+
abstract: "A vendor-neutral, synthetic-only characterization profile for declared and observed authority boundaries in MCP-connected execution sandboxes."
|
README.md
CHANGED
|
@@ -16,7 +16,7 @@ configs:
|
|
| 16 |
|
| 17 |
# MCP Sandbox Authority Boundary Profile
|
| 18 |
|
| 19 |
-
**Profile v0.1.0 · Release v0.1.
|
| 20 |
|
| 21 |
**Profile release date:** 2026-07-23
|
| 22 |
|
|
@@ -38,13 +38,13 @@ run. The versioned JSON files and dependency-free validator remain authoritative
|
|
| 38 |
|
| 39 |
## Evidence Passport and fixture bundle
|
| 40 |
|
| 41 |
-
The [Evidence Passport](artifacts/evidence-passport-v0.1.
|
| 42 |
machine-readable receipt for the release: canonical artifact hashes, validator
|
| 43 |
commands, reproduction command, and its explicit claim ceiling. It lets a
|
| 44 |
reviewer verify the distributed inputs without inferring anything about an
|
| 45 |
external target.
|
| 46 |
|
| 47 |
-
The [synthetic fixture bundle](artifacts/authority-boundary-synthetic-fixture-bundle-v0.1.
|
| 48 |
contains the profile, schema, complete synthetic characterization, viewer index,
|
| 49 |
coverage matrix, validators, and a hash manifest. It is intentionally
|
| 50 |
synthetic-only and contains no credentials, provider observations, or target
|
|
@@ -137,10 +137,14 @@ locally and bound to the evidence record by digest before validation.
|
|
| 137 |
- `scripts/validate_profile.py` - dependency-free structural validator
|
| 138 |
- `scripts/validate_viewer_split.py` - binds the flat viewer index to the
|
| 139 |
canonical synthetic characterization
|
|
|
|
|
|
|
| 140 |
- `scripts/build_distribution_artifacts.py` - rebuilds the Evidence Passport
|
| 141 |
and downloadable synthetic fixture bundle
|
| 142 |
-
- `
|
| 143 |
-
- `
|
|
|
|
|
|
|
| 144 |
reproducible synthetic fixture bundle
|
| 145 |
|
| 146 |
## Limitations
|
|
@@ -153,9 +157,10 @@ must be recorded explicitly.
|
|
| 153 |
## Release metadata and compatibility
|
| 154 |
|
| 155 |
- **Profile schema:** v0.1.0, Experimental Characterization Profile, 2026-07-23
|
| 156 |
-
- **Current distribution release:** `v0.1.
|
| 157 |
-
|
| 158 |
-
|
|
|
|
| 159 |
- **Corrective release:** `v0.1.1`, 2026-08-01, corrects a stale
|
| 160 |
coverage-matrix case identifier and adds a validator that prevents future
|
| 161 |
matrix/profile drift.
|
|
@@ -176,7 +181,7 @@ must be recorded explicitly.
|
|
| 176 |
author = {Saleme, Michael K.},
|
| 177 |
title = {MCP Sandbox Authority Boundary Profile: v0.1.0 Experimental Characterization Profile},
|
| 178 |
year = {2026},
|
| 179 |
-
version = {0.1.
|
| 180 |
url = {https://huggingface.co/datasets/msaleme/mcp-sandbox-authority-boundary-profile},
|
| 181 |
note = {Pin the cited Hugging Face dataset revision.}
|
| 182 |
}
|
|
|
|
| 16 |
|
| 17 |
# MCP Sandbox Authority Boundary Profile
|
| 18 |
|
| 19 |
+
**Profile v0.1.0 · Release v0.1.4 - Experimental Characterization Profile**
|
| 20 |
|
| 21 |
**Profile release date:** 2026-07-23
|
| 22 |
|
|
|
|
| 38 |
|
| 39 |
## Evidence Passport and fixture bundle
|
| 40 |
|
| 41 |
+
The [Evidence Passport](artifacts/evidence-passport-v0.1.4.json) is a compact,
|
| 42 |
machine-readable receipt for the release: canonical artifact hashes, validator
|
| 43 |
commands, reproduction command, and its explicit claim ceiling. It lets a
|
| 44 |
reviewer verify the distributed inputs without inferring anything about an
|
| 45 |
external target.
|
| 46 |
|
| 47 |
+
The [synthetic fixture bundle](artifacts/authority-boundary-synthetic-fixture-bundle-v0.1.4.zip)
|
| 48 |
contains the profile, schema, complete synthetic characterization, viewer index,
|
| 49 |
coverage matrix, validators, and a hash manifest. It is intentionally
|
| 50 |
synthetic-only and contains no credentials, provider observations, or target
|
|
|
|
| 137 |
- `scripts/validate_profile.py` - dependency-free structural validator
|
| 138 |
- `scripts/validate_viewer_split.py` - binds the flat viewer index to the
|
| 139 |
canonical synthetic characterization
|
| 140 |
+
- `scripts/verify_bundle_manifest.py` - verifies an extracted fixture bundle's
|
| 141 |
+
exact file set, sizes, and SHA-256 digests before the profile is used
|
| 142 |
- `scripts/build_distribution_artifacts.py` - rebuilds the Evidence Passport
|
| 143 |
and downloadable synthetic fixture bundle
|
| 144 |
+
- `CITATION.cff` - machine-readable citation metadata
|
| 145 |
+
- `REVIEW.md` - a bounded five-minute reviewer path
|
| 146 |
+
- `artifacts/evidence-passport-v0.1.4.json` - machine-readable release receipt
|
| 147 |
+
- `artifacts/authority-boundary-synthetic-fixture-bundle-v0.1.4.zip` -
|
| 148 |
reproducible synthetic fixture bundle
|
| 149 |
|
| 150 |
## Limitations
|
|
|
|
| 157 |
## Release metadata and compatibility
|
| 158 |
|
| 159 |
- **Profile schema:** v0.1.0, Experimental Characterization Profile, 2026-07-23
|
| 160 |
+
- **Current distribution release:** `v0.1.4`, 2026-08-07. It adds a
|
| 161 |
+
one-command fixture-bundle integrity verifier, citation metadata, and a
|
| 162 |
+
bounded reviewer path. The v0.1.0 profile schema and synthetic run are
|
| 163 |
+
unchanged.
|
| 164 |
- **Corrective release:** `v0.1.1`, 2026-08-01, corrects a stale
|
| 165 |
coverage-matrix case identifier and adds a validator that prevents future
|
| 166 |
matrix/profile drift.
|
|
|
|
| 181 |
author = {Saleme, Michael K.},
|
| 182 |
title = {MCP Sandbox Authority Boundary Profile: v0.1.0 Experimental Characterization Profile},
|
| 183 |
year = {2026},
|
| 184 |
+
version = {0.1.4},
|
| 185 |
url = {https://huggingface.co/datasets/msaleme/mcp-sandbox-authority-boundary-profile},
|
| 186 |
note = {Pin the cited Hugging Face dataset revision.}
|
| 187 |
}
|
REVIEW.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Five-minute reviewer path
|
| 2 |
+
|
| 3 |
+
This path checks the integrity and internal consistency of the released
|
| 4 |
+
synthetic fixture bundle. It does **not** evaluate a provider or establish a
|
| 5 |
+
security, conformance, or certification outcome.
|
| 6 |
+
|
| 7 |
+
## 1. Download and extract the synthetic fixture bundle
|
| 8 |
+
|
| 9 |
+
Download the bundle linked from the dataset card, then extract it in an empty
|
| 10 |
+
directory. The bundle contains synthetic data only.
|
| 11 |
+
|
| 12 |
+
## 2. Verify the bundle before using it
|
| 13 |
+
|
| 14 |
+
```bash
|
| 15 |
+
python3 scripts/verify_bundle_manifest.py
|
| 16 |
+
```
|
| 17 |
+
|
| 18 |
+
This checks every bundled file's SHA-256 digest, byte size, and expected file
|
| 19 |
+
set against `bundle-manifest.json`. A mismatch is a stop condition.
|
| 20 |
+
|
| 21 |
+
## 3. Validate the profile and viewer index
|
| 22 |
+
|
| 23 |
+
```bash
|
| 24 |
+
python3 scripts/validate_profile.py
|
| 25 |
+
python3 scripts/validate_viewer_split.py
|
| 26 |
+
```
|
| 27 |
+
|
| 28 |
+
The first validator binds the Markdown coverage matrix to the profile and
|
| 29 |
+
complete synthetic run. The second binds every flat viewer row to that run.
|
| 30 |
+
|
| 31 |
+
## 4. Inspect one receipt
|
| 32 |
+
|
| 33 |
+
Open `examples/synthetic-characterization.json` and inspect an observation, or
|
| 34 |
+
paste a redacted observation into the Field Guide's browser-only Receipt
|
| 35 |
+
Inspector. The Inspector checks structural completeness only. It does not
|
| 36 |
+
verify evidence bytes, target authorization, target behavior, or any external
|
| 37 |
+
security outcome.
|
| 38 |
+
|
| 39 |
+
## 5. State only the supported conclusion
|
| 40 |
+
|
| 41 |
+
After all checks pass, the supported conclusion is limited to: the downloaded
|
| 42 |
+
synthetic profile artifacts are internally consistent with their declared
|
| 43 |
+
version and manifest. It is not a claim about a provider, an untested
|
| 44 |
+
environment, or the absence of undiscovered authority paths.
|
artifacts/authority-boundary-synthetic-fixture-bundle-v0.1.4.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a5c3bae33626fd13ebe524c558569b70b313cfcb27af44ba035bf6ea29095571
|
| 3 |
+
size 19252
|
artifacts/evidence-passport-v0.1.4.json
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"artifact": "MCP Sandbox Authority Boundary Profile Evidence Passport",
|
| 3 |
+
"release": "v0.1.4",
|
| 4 |
+
"profile_schema_version": "0.1.0",
|
| 5 |
+
"output_type": "characterization",
|
| 6 |
+
"classification": "synthetic-only distribution artifact",
|
| 7 |
+
"claim_ceiling": "This release documents a synthetic characterization profile only. It is not a certification, conformance determination, provider finding, or statement about an untested environment.",
|
| 8 |
+
"canonical_artifacts": [
|
| 9 |
+
{
|
| 10 |
+
"path": "profile/sandbox-boundary-profile-v0.1.json",
|
| 11 |
+
"sha256": "d9de45400682fbb07712e5f6aa5e02cdb729dbf1871367759b3fc03b41af8e40",
|
| 12 |
+
"bytes": 4338
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"path": "schemas/observation.schema.json",
|
| 16 |
+
"sha256": "e20d7d2cea6da7bea4e172f97e693acce7c725526d5a950e361aa1fb4a5e3407",
|
| 17 |
+
"bytes": 4860
|
| 18 |
+
},
|
| 19 |
+
{
|
| 20 |
+
"path": "examples/synthetic-characterization.json",
|
| 21 |
+
"sha256": "598ccd8025cd21b1da24e51d247a0a141c9fedff024a2cbf4c0ff7dab46e3435",
|
| 22 |
+
"bytes": 19711
|
| 23 |
+
},
|
| 24 |
+
{
|
| 25 |
+
"path": "examples/coverage-matrix.md",
|
| 26 |
+
"sha256": "29e7c62c74b90d9c187fdcda16e6f3cd3fe40c07cb9790d0af152f636a46cfe9",
|
| 27 |
+
"bytes": 849
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"path": "data/authority_boundary_cases.jsonl",
|
| 31 |
+
"sha256": "8f5c1192db7943dbaa0e786287ef1a4cfca57ba97eb2b08225b279c5e19caa35",
|
| 32 |
+
"bytes": 9784
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"path": "scripts/validate_profile.py",
|
| 36 |
+
"sha256": "7269fb19829c493dbd309ffe4e3b3ef3244b44ac2f5c4f41017390cacbb89430",
|
| 37 |
+
"bytes": 3106
|
| 38 |
+
},
|
| 39 |
+
{
|
| 40 |
+
"path": "scripts/validate_viewer_split.py",
|
| 41 |
+
"sha256": "75a91767c475c26549391d7dc68276aa7dff788e4eec90fd00195ed81ca68cd9",
|
| 42 |
+
"bytes": 1294
|
| 43 |
+
},
|
| 44 |
+
{
|
| 45 |
+
"path": "scripts/verify_bundle_manifest.py",
|
| 46 |
+
"sha256": "cfa50d2987c781c84b392c88700ea417be35aa1a0477dbfde4652d126bcdc567",
|
| 47 |
+
"bytes": 1977
|
| 48 |
+
},
|
| 49 |
+
{
|
| 50 |
+
"path": "scripts/build_distribution_artifacts.py",
|
| 51 |
+
"sha256": "e2b6acdf4c00cabe1577491db708ed6816da0d914554f989e0443828ea6cbd6b",
|
| 52 |
+
"bytes": 3368
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"path": "CITATION.cff",
|
| 56 |
+
"sha256": "35269ff0e0a3690f37e0d0d2204e7f4bcdc1c017587c0ba946bb79442cbcf506",
|
| 57 |
+
"bytes": 568
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"path": "REVIEW.md",
|
| 61 |
+
"sha256": "3dd0a9d831e26d43aed6f3a37ac35f8813d0ad0b2c0bdc2d1169d6956a1d30fc",
|
| 62 |
+
"bytes": 1621
|
| 63 |
+
},
|
| 64 |
+
{
|
| 65 |
+
"path": "README.md",
|
| 66 |
+
"sha256": "944095c3ed5252d7decdcef4e60ef5d9875bd43920e628becfbed9adee1011c0",
|
| 67 |
+
"bytes": 9976
|
| 68 |
+
},
|
| 69 |
+
{
|
| 70 |
+
"path": "LICENSE",
|
| 71 |
+
"sha256": "80de1ff0c3049a253fd3308f1a8358c82b580f72c83f696064943ad24611d50a",
|
| 72 |
+
"bytes": 1074
|
| 73 |
+
}
|
| 74 |
+
],
|
| 75 |
+
"validators": [
|
| 76 |
+
"python3 scripts/verify_bundle_manifest.py",
|
| 77 |
+
"python3 scripts/validate_profile.py",
|
| 78 |
+
"python3 scripts/validate_viewer_split.py"
|
| 79 |
+
],
|
| 80 |
+
"reproduction": "python3 scripts/build_distribution_artifacts.py",
|
| 81 |
+
"limitations": [
|
| 82 |
+
"The passport verifies published artifact bytes, not an external target.",
|
| 83 |
+
"Evidence digests identify supplied evidence; they do not make evidence retrievable.",
|
| 84 |
+
"Independent review and target authorization remain separate requirements."
|
| 85 |
+
]
|
| 86 |
+
}
|
scripts/build_distribution_artifacts.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
#!/usr/bin/env python3
|
| 2 |
-
"""Build reproducible, synthetic-only distribution artifacts for v0.1.
|
| 3 |
from __future__ import annotations
|
| 4 |
|
| 5 |
import hashlib
|
|
@@ -10,7 +10,7 @@ from zipfile import ZIP_DEFLATED, ZipFile
|
|
| 10 |
|
| 11 |
ROOT = Path(__file__).resolve().parents[1]
|
| 12 |
OUT = ROOT / "artifacts"
|
| 13 |
-
RELEASE = "v0.1.
|
| 14 |
FILES = (
|
| 15 |
"profile/sandbox-boundary-profile-v0.1.json",
|
| 16 |
"schemas/observation.schema.json",
|
|
@@ -19,6 +19,10 @@ FILES = (
|
|
| 19 |
"data/authority_boundary_cases.jsonl",
|
| 20 |
"scripts/validate_profile.py",
|
| 21 |
"scripts/validate_viewer_split.py",
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
"README.md",
|
| 23 |
"LICENSE",
|
| 24 |
)
|
|
@@ -53,6 +57,7 @@ def main() -> None:
|
|
| 53 |
),
|
| 54 |
"canonical_artifacts": entries,
|
| 55 |
"validators": [
|
|
|
|
| 56 |
"python3 scripts/validate_profile.py",
|
| 57 |
"python3 scripts/validate_viewer_split.py",
|
| 58 |
],
|
|
@@ -63,7 +68,7 @@ def main() -> None:
|
|
| 63 |
"Independent review and target authorization remain separate requirements.",
|
| 64 |
],
|
| 65 |
}
|
| 66 |
-
passport_path = OUT / "evidence-passport-v0.1.
|
| 67 |
passport_path.write_text(json.dumps(passport, indent=2) + "\n")
|
| 68 |
|
| 69 |
bundle_manifest = {
|
|
@@ -72,11 +77,12 @@ def main() -> None:
|
|
| 72 |
"classification": "synthetic-only",
|
| 73 |
"files": entries,
|
| 74 |
"verify": [
|
|
|
|
| 75 |
"python3 scripts/validate_profile.py",
|
| 76 |
"python3 scripts/validate_viewer_split.py",
|
| 77 |
],
|
| 78 |
}
|
| 79 |
-
bundle_path = OUT / "authority-boundary-synthetic-fixture-bundle-v0.1.
|
| 80 |
with ZipFile(bundle_path, "w", compression=ZIP_DEFLATED) as bundle:
|
| 81 |
for relative_path in FILES:
|
| 82 |
bundle.write(ROOT / relative_path, relative_path)
|
|
|
|
| 1 |
#!/usr/bin/env python3
|
| 2 |
+
"""Build reproducible, synthetic-only distribution artifacts for v0.1.4."""
|
| 3 |
from __future__ import annotations
|
| 4 |
|
| 5 |
import hashlib
|
|
|
|
| 10 |
|
| 11 |
ROOT = Path(__file__).resolve().parents[1]
|
| 12 |
OUT = ROOT / "artifacts"
|
| 13 |
+
RELEASE = "v0.1.4"
|
| 14 |
FILES = (
|
| 15 |
"profile/sandbox-boundary-profile-v0.1.json",
|
| 16 |
"schemas/observation.schema.json",
|
|
|
|
| 19 |
"data/authority_boundary_cases.jsonl",
|
| 20 |
"scripts/validate_profile.py",
|
| 21 |
"scripts/validate_viewer_split.py",
|
| 22 |
+
"scripts/verify_bundle_manifest.py",
|
| 23 |
+
"scripts/build_distribution_artifacts.py",
|
| 24 |
+
"CITATION.cff",
|
| 25 |
+
"REVIEW.md",
|
| 26 |
"README.md",
|
| 27 |
"LICENSE",
|
| 28 |
)
|
|
|
|
| 57 |
),
|
| 58 |
"canonical_artifacts": entries,
|
| 59 |
"validators": [
|
| 60 |
+
"python3 scripts/verify_bundle_manifest.py",
|
| 61 |
"python3 scripts/validate_profile.py",
|
| 62 |
"python3 scripts/validate_viewer_split.py",
|
| 63 |
],
|
|
|
|
| 68 |
"Independent review and target authorization remain separate requirements.",
|
| 69 |
],
|
| 70 |
}
|
| 71 |
+
passport_path = OUT / "evidence-passport-v0.1.4.json"
|
| 72 |
passport_path.write_text(json.dumps(passport, indent=2) + "\n")
|
| 73 |
|
| 74 |
bundle_manifest = {
|
|
|
|
| 77 |
"classification": "synthetic-only",
|
| 78 |
"files": entries,
|
| 79 |
"verify": [
|
| 80 |
+
"python3 scripts/verify_bundle_manifest.py",
|
| 81 |
"python3 scripts/validate_profile.py",
|
| 82 |
"python3 scripts/validate_viewer_split.py",
|
| 83 |
],
|
| 84 |
}
|
| 85 |
+
bundle_path = OUT / "authority-boundary-synthetic-fixture-bundle-v0.1.4.zip"
|
| 86 |
with ZipFile(bundle_path, "w", compression=ZIP_DEFLATED) as bundle:
|
| 87 |
for relative_path in FILES:
|
| 88 |
bundle.write(ROOT / relative_path, relative_path)
|
scripts/verify_bundle_manifest.py
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""Verify a released synthetic fixture bundle after extracting it."""
|
| 3 |
+
from __future__ import annotations
|
| 4 |
+
|
| 5 |
+
import hashlib
|
| 6 |
+
import json
|
| 7 |
+
from pathlib import Path
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
ROOT = Path(__file__).resolve().parents[1]
|
| 11 |
+
MANIFEST = ROOT / "bundle-manifest.json"
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
def sha256(path: Path) -> str:
|
| 15 |
+
return hashlib.sha256(path.read_bytes()).hexdigest()
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
def safe_relative(value: str) -> Path:
|
| 19 |
+
path = Path(value)
|
| 20 |
+
if path.is_absolute() or ".." in path.parts:
|
| 21 |
+
raise SystemExit(f"unsafe manifest path: {value}")
|
| 22 |
+
return path
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
def main() -> None:
|
| 26 |
+
if not MANIFEST.is_file():
|
| 27 |
+
raise SystemExit("missing bundle-manifest.json; run from an extracted fixture bundle")
|
| 28 |
+
manifest = json.loads(MANIFEST.read_text())
|
| 29 |
+
files = manifest.get("files")
|
| 30 |
+
if not isinstance(files, list) or not files:
|
| 31 |
+
raise SystemExit("manifest has no files list")
|
| 32 |
+
expected: set[Path] = set()
|
| 33 |
+
for item in files:
|
| 34 |
+
if not isinstance(item, dict):
|
| 35 |
+
raise SystemExit("manifest file entry is not an object")
|
| 36 |
+
relative = safe_relative(item.get("path", ""))
|
| 37 |
+
expected.add(relative)
|
| 38 |
+
path = ROOT / relative
|
| 39 |
+
if not path.is_file():
|
| 40 |
+
raise SystemExit(f"missing: {relative}")
|
| 41 |
+
if path.stat().st_size != item.get("bytes"):
|
| 42 |
+
raise SystemExit(f"size mismatch: {relative}")
|
| 43 |
+
if sha256(path) != item.get("sha256"):
|
| 44 |
+
raise SystemExit(f"digest mismatch: {relative}")
|
| 45 |
+
actual = {path.relative_to(ROOT) for path in ROOT.rglob("*") if path.is_file()}
|
| 46 |
+
allowed = expected | {Path("bundle-manifest.json")}
|
| 47 |
+
if actual != allowed:
|
| 48 |
+
unexpected = sorted(str(path) for path in actual - allowed)
|
| 49 |
+
missing = sorted(str(path) for path in allowed - actual)
|
| 50 |
+
raise SystemExit(f"bundle file set mismatch; unexpected={unexpected}; missing={missing}")
|
| 51 |
+
print(f"valid: {len(expected)} bundle files match bundle-manifest.json")
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
if __name__ == "__main__":
|
| 55 |
+
main()
|