Repository navigation
172 lines (169 loc) · 7.57 KB
/
Copy pathpython-wire-runtime.yml
File metadata and controls
172 lines (169 loc) · 7.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
name: AML Python Wire Runtime
on:
push:
branches: [main]
paths:
- "independent/python/wire_runtime.py"
- "independent/python/WIRE_RUNTIME.md"
- "scripts/check-python-wire-runtime.mjs"
- "protocol/wireProtocol.js"
- "schema/wire-envelope.schema.json"
- "independent/python/verify_evidence_capsule.py"
- "scripts/check-evidence-capsule-python.mjs"
- "independent/python/verify_evidence_archive.py"
- "scripts/check-evidence-archive-python.mjs"
- "scripts/check-evidence-archive-vector.mjs"
- "independent/python/verify_evidence_migration.py"
- "scripts/check-evidence-migration-python.mjs"
- "scripts/check-evidence-migration-vector.mjs"
- "independent/vectors/migration-v1/**"
- "runtime/evidenceMigration.js"
- "docs/EVIDENCE_MIGRATION.md"
- "independent/python/recover_evidence_shards.py"
- "independent/python/repair_evidence_share.py"
- "scripts/check-evidence-repair-python.mjs"
- "independent/python/evidence_repair_record.py"
- "scripts/check-evidence-repair-record-python.mjs"
- "independent/vectors/repair-record-v1/**"
- "runtime/evidenceRepairRecord.js"
- "scripts/evidence-repair-record.mjs"
- "independent/python/evidence_placement.py"
- "scripts/check-evidence-placement-python.mjs"
- "independent/vectors/placement-v1/**"
- "runtime/evidencePlacement.js"
- "scripts/evidence-placement.mjs"
- "docs/EVIDENCE_PLACEMENT.md"
- "docs/resilience-lab.html"
- "test/resilience-lab.test.js"
- "scripts/check-evidence-shards-python.mjs"
- "scripts/check-evidence-shards-vector.mjs"
- "independent/vectors/shards-v1/**"
- "runtime/evidenceShards.js"
- "docs/EVIDENCE_SHARDS.md"
- "independent/python/evidence_drill.py"
- "scripts/check-evidence-drill-python.mjs"
- "independent/vectors/drill-v1/**"
- "runtime/evidenceDrill.js"
- "runtime/evidenceDrillHtml.js"
- "scripts/evidence-drill.mjs"
- "scripts/evidence-drill-html.mjs"
- "test/evidence-drill-html.test.js"
- "docs/EVIDENCE_DRILL.md"
- "independent/vectors/archive-v1/**"
- "runtime/evidenceArchive.js"
- "runtime/evidenceRenewal.js"
- "docs/EVIDENCE_ARCHIVE.md"
- "runtime/evidenceCapsule.js"
- "docs/EVIDENCE_CAPSULE.md"
- ".github/workflows/python-wire-runtime.yml"
pull_request:
branches: [main]
paths:
- "independent/python/wire_runtime.py"
- "independent/python/WIRE_RUNTIME.md"
- "scripts/check-python-wire-runtime.mjs"
- "protocol/wireProtocol.js"
- "schema/wire-envelope.schema.json"
- "independent/python/verify_evidence_capsule.py"
- "scripts/check-evidence-capsule-python.mjs"
- "independent/python/verify_evidence_archive.py"
- "scripts/check-evidence-archive-python.mjs"
- "scripts/check-evidence-archive-vector.mjs"
- "independent/python/verify_evidence_migration.py"
- "scripts/check-evidence-migration-python.mjs"
- "scripts/check-evidence-migration-vector.mjs"
- "independent/vectors/migration-v1/**"
- "runtime/evidenceMigration.js"
- "docs/EVIDENCE_MIGRATION.md"
- "independent/python/recover_evidence_shards.py"
- "independent/python/repair_evidence_share.py"
- "scripts/check-evidence-repair-python.mjs"
- "independent/python/evidence_repair_record.py"
- "scripts/check-evidence-repair-record-python.mjs"
- "independent/vectors/repair-record-v1/**"
- "runtime/evidenceRepairRecord.js"
- "scripts/evidence-repair-record.mjs"
- "independent/python/evidence_placement.py"
- "scripts/check-evidence-placement-python.mjs"
- "independent/vectors/placement-v1/**"
- "runtime/evidencePlacement.js"
- "scripts/evidence-placement.mjs"
- "docs/EVIDENCE_PLACEMENT.md"
- "docs/resilience-lab.html"
- "test/resilience-lab.test.js"
- "scripts/check-evidence-shards-python.mjs"
- "scripts/check-evidence-shards-vector.mjs"
- "independent/vectors/shards-v1/**"
- "runtime/evidenceShards.js"
- "docs/EVIDENCE_SHARDS.md"
- "independent/python/evidence_drill.py"
- "scripts/check-evidence-drill-python.mjs"
- "independent/vectors/drill-v1/**"
- "runtime/evidenceDrill.js"
- "runtime/evidenceDrillHtml.js"
- "scripts/evidence-drill.mjs"
- "scripts/evidence-drill-html.mjs"
- "test/evidence-drill-html.test.js"
- "docs/EVIDENCE_DRILL.md"
- "independent/vectors/archive-v1/**"
- "runtime/evidenceArchive.js"
- "runtime/evidenceRenewal.js"
- "docs/EVIDENCE_ARCHIVE.md"
- "runtime/evidenceCapsule.js"
- "docs/EVIDENCE_CAPSULE.md"
- ".github/workflows/python-wire-runtime.yml"
permissions:
contents: read
jobs:
cross-runtime:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "24"
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Verify reference-produced artifacts with standalone Python
run: node scripts/check-python-wire-runtime.mjs > "${RUNNER_TEMP}/aml-wire-envelope-cross-runtime.json"
- name: Upload wire envelope comparison
uses: actions/upload-artifact@v4
with:
name: aml-wire-envelope-cross-runtime-${{ github.sha }}
path: ${{ runner.temp }}/aml-wire-envelope-cross-runtime.json
if-no-files-found: error
retention-days: 30
- name: Install Python Ed25519 verifier dependency
run: python -m pip install 'cryptography>=42,<51'
- name: Verify evidence capsules across JavaScript and Python
run: node scripts/check-evidence-capsule-python.mjs > "${RUNNER_TEMP}/aml-capsule-cross-runtime.json"
- name: Upload capsule comparison
uses: actions/upload-artifact@v4
with:
name: aml-capsule-cross-runtime-${{ github.sha }}
path: ${{ runner.temp }}/aml-capsule-cross-runtime.json
if-no-files-found: error
retention-days: 30
- name: Check fixed archive wire bytes and digests
run: node scripts/check-evidence-archive-vector.mjs
- name: Verify archives and renewal witnesses across JavaScript and Python
run: node scripts/check-evidence-archive-python.mjs
- name: Verify fixed archive vector with Python
run: python independent/python/verify_evidence_archive.py independent/vectors/archive-v1/archive.json independent/vectors/archive-v1/trusted-policy.json
- name: Check fixed migration handoff bytes and digests
run: node scripts/check-evidence-migration-vector.mjs
- name: Verify migration and recovery across JavaScript and Python
run: node scripts/check-evidence-migration-python.mjs
- name: Check fixed cold storage share bytes and digests
run: node scripts/check-evidence-shards-vector.mjs
- name: Recover cold storage shares across JavaScript and Python
run: node scripts/check-evidence-shards-python.mjs
- name: Compare deterministic recovery drill reports across runtimes
run: node scripts/check-evidence-drill-python.mjs
- name: Rebuild and rehearse missing shares across runtimes
run: node scripts/check-evidence-repair-python.mjs
- name: Verify deterministic repair records across runtimes
run: node scripts/check-evidence-repair-record-python.mjs
- name: Simulate declared common failures across runtimes
run: node scripts/check-evidence-placement-python.mjs