Archive upstream v1 and remove retired runtime contract readers

This commit is contained in:
2026-10-01 11:11:29 +08:00
parent d85480c00c
commit 163e233419
60 changed files with 15 additions and 41 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ manifest = {
"contract_attestation": {
"local_contract_manifest_sha256": project_sha256("contracts/local/manifest.json"),
"local_mq_topology_sha256": project_sha256("contracts/local/mq-topology.json"),
"historical_upstream_manifest_sha256": project_sha256("contracts/upstream/manifest.txt"),
"historical_upstream_manifest_sha256": project_sha256("docs/archive/upstream/manifest.txt"),
"proto_manifest_sha256": project_sha256("proto/manifest.json"),
},
"security": {
+3 -3
View File
@@ -2,13 +2,13 @@
set -eu
root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
manifest="$root/contracts/upstream/manifest.txt"
manifest="$root/docs/archive/upstream/manifest.txt"
[ -f "$manifest" ] || { echo "missing contract manifest" >&2; exit 1; }
bundle=$(sed -n 's/^active_bundle=//p' "$manifest")
[ -n "$bundle" ] || { echo "missing active contract bundle" >&2; exit 1; }
[ -d "$root/contracts/upstream/$bundle" ] || { echo "missing pinned contract directory: $bundle" >&2; exit 1; }
[ -d "$root/docs/archive/upstream/$bundle" ] || { echo "missing archived contract directory: $bundle" >&2; exit 1; }
cd "$root"
grep '^sha256=' "$manifest" | sed 's/^sha256=//' | sha256sum -c -
grep '^sha256=' "$manifest" | sed -e 's/^sha256=//' -e "s% contracts/upstream/$bundle/% docs/archive/upstream/$bundle/%" | sha256sum -c -
bash scripts/check-current-contracts.sh
go test ./contracts ./internal/contract ./internal/ai
+1 -1
View File
@@ -68,7 +68,7 @@ assert topology["saas"]["result"]["queue"].endswith(".v1")
expected_attestation = {
"local_contract_manifest_sha256": hashlib.sha256((root / "contracts/local/manifest.json").read_bytes()).hexdigest(),
"local_mq_topology_sha256": hashlib.sha256((root / "contracts/local/mq-topology.json").read_bytes()).hexdigest(),
"historical_upstream_manifest_sha256": hashlib.sha256((root / "contracts/upstream/manifest.txt").read_bytes()).hexdigest(),
"historical_upstream_manifest_sha256": hashlib.sha256((root / "docs/archive/upstream/manifest.txt").read_bytes()).hexdigest(),
"proto_manifest_sha256": hashlib.sha256((root / "proto/manifest.json").read_bytes()).hexdigest(),
}
assert manifest["contract_attestation"] == expected_attestation