File size: 8,065 Bytes
ef6eb55
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
# Verify Your PAX-Coder Clone

This document explains how to verify that your clone of PAX-Coder matches an official release.

## Why Verification Matters

When you clone PAX-Coder from GitHub, you receive files over the network. An official PAX-Coder release is cryptographically signed with a Sovereign Node Key. This verification system lets you confirm:

βœ“ **Integrity** β€” Files have not been modified  
βœ“ **Authenticity** β€” This is an official release from SNAPKITTYWEST  
βœ“ **Timestamp** β€” The release existed at a specific point in time  
βœ“ **Commitment** β€” Every tracked file matches the official manifest  

## Quick Start

After cloning:

```bash

git clone https://github.com/SNAPKITTYWEST/pax-coder.git

cd pax-coder



./scripts/verify-clone

```

If verification passes, you'll see:

```

========================================

STATUS: AUTHENTIC PAX-CODER RELEASE

========================================

```

If verification fails, you'll see:

```

========================================

STATUS: VERIFICATION FAILED

========================================

```

**Do NOT use a release that fails verification.**

## What Verification Checks

The `verify-clone` script performs a hard gate with 9 critical checks:

### [1] Release Metadata
Checks that `sovereign/release.json` exists and is valid.

### [2] Git Commit
Verifies your clone is at the exact git commit specified in the release.

```bash

git rev-parse HEAD

# Should match: "git_commit" in sovereign/release.json

```

### [3] Release Version
Checks that `VERSION` file matches the release version.

### [4] Canonical Manifest
Reads the official file manifest for this release.

### [5] File Integrity
Verifies every tracked file's SHA-256 hash against the manifest.

If any file is modified, verification fails.

### [6] Manifest Commitment
Computes the SHA-256 of the entire manifest.

Must match the value in `sovereign/release.json`.

### [7] Node Key Fingerprint
Verifies the public Ed25519 key matches the release.

### [8] Release Signature
Verifies the Ed25519 signature on the manifest.

Uses the public key from the release to check authenticity.

### [9] Prior-Art Timestamp
Checks that a prior-art record exists with a UTC timestamp.

## Understanding the Results

### PASS

All 9 checks passed. The clone is authentic and unmodified.

You can safely use PAX-Coder's proofs, kernels, and specifications.

### FAIL

One or more checks failed. Possible reasons:

- **Commit mismatch** β€” Your clone is not at the official release commit
- **Files modified** β€” Someone or something has modified tracked files
- **Files missing** β€” Expected files are not present
- **Signature invalid** β€” The release signature does not verify
- **Manifest corrupted** β€” The release manifest is invalid JSON

**Do not trust a clone that fails verification.**

#### Common Failure Scenarios

**"Commit mismatch"**
- Your clone is on a different branch
- Your clone is ahead of the release
- Someone force-pushed to the repository

**Solution:** Clone fresh from the official repository.

**"Files modified"**
- You edited tracked files
- A tool or script modified files
- Network corruption during clone

**Solution:** Re-clone or restore files from git.

**"Signature invalid"**
- The release was tampered with
- You're using an unofficial clone
- The public key is incorrect

**Solution:** Clone from the official GitHub repository only.

## Manual Verification

If you want to verify manually instead of using the script:

### 1. Get the Release Information

```bash

cat sovereign/release.json | jq .

```

You'll see:
- `repository` β€” SNAPKITTYWEST/pax-coder
- `release_version` β€” e.g., 1.0.0
- `git_commit` β€” The exact commit hash
- `manifest_sha256` β€” The file manifest hash
- `node_id` β€” The signer's node identity
- `node_public_key_hex` β€” The Ed25519 public key
- `signature_hex` β€” The signature (hex-encoded)

### 2. Verify the Git Commit

```bash

git rev-parse HEAD

# Compare with release.json: git_commit

```

### 3. Verify File Integrity

```bash

# For each file in sovereign/manifest-VERSION.json:

sha256sum PATH/TO/FILE

# Compare with the value in the manifest

```

### 4. Verify the Manifest Commitment

```bash

sha256sum sovereign/manifest-1.0.0.json

# Compare with release.json: manifest_sha256

```

### 5. Verify the Signature

Extract the public key and convert to PEM:

```bash

# Get public key hex from sovereign/release.json

PUB_KEY_HEX="..."

echo "$PUB_KEY_HEX" | xxd -r -p > /tmp/pk.der



# Get signature hex and convert to binary

SIGNATURE_HEX="..."

echo "$SIGNATURE_HEX" | xxd -r -p > /tmp/sig.bin



# Verify

openssl dgst -sha256 -verify <(openssl pkey -inform DER -pubin -in /tmp/pk.der) \

  -signature /tmp/sig.bin sovereign/manifest-1.0.0.json

```

If the signature is valid:

```

Verified OK

```

## How Releases Are Created

Official PAX-Coder releases are created with:

```bash

cd sovereign

./generate_release.sh 1.0.0

```

This creates:

- `release.json` β€” Public release metadata + signature
- `manifest-1.0.0.json` β€” File manifest

Both files are committed to git and published on the GitHub release page.

The **private key is never published** and never appears in the clone.

## What Verification Does NOT Prove

**Important:** Verification proves integrity and authenticity, but:

βœ— **Does NOT prove legality** β€” The code is still under the tri-license (BSL-1.1 / AGPL-3.0 / MPL-2.0)  
βœ— **Does NOT prove correctness** β€” Verified code could still have bugs  
βœ— **Does NOT prove safety** β€” Always review untrusted code  
βœ— **Does NOT prove Bitcoin confirmation** β€” Unless explicitly stated  

See [SOVEREIGN_NODE.md](SOVEREIGN_NODE.md) for the complete security model.

## If Verification Fails

### Step 1: Check Your Git State

```bash

git status

git log --oneline -5

```

If you've made local changes, the clone is no longer official.

### Step 2: Re-Clone

```bash

cd /tmp

git clone https://github.com/SNAPKITTYWEST/pax-coder.git pax-clean

cd pax-clean

./scripts/verify-clone

```

If the fresh clone verifies, your original clone was modified.

### Step 3: Report a Security Issue

If a fresh clone from the official repository still fails verification:

**Email:** jessica@collectivekitty.com  
**Subject:** `[SECURITY] PAX-Coder Clone Verification Failed`  
**Include:**
- Output of `./scripts/verify-clone`
- Your git version
- Your OS and platform
- Steps you took

## FAQ

**Q: Is this blockchain-based?**  
A: No. Verification uses cryptographic signatures. Optional: Bitcoin anchoring via OpenTimestamps.

**Q: What if the GitHub repository is hacked?**  
A: If the release files are modified on GitHub, verification will fail. Clone from a backup source.

**Q: Can I verify without running a script?**  
A: Yes. Manual verification is documented in "Manual Verification" section above.

**Q: What if I don't have `openssl`?**  
A: The verification script requires: `bash`, `git`, `jq`, `openssl`, `sha256sum`. These are standard on Linux/macOS.

**Q: Should I trust verification if it passes?**  
A: Verification proves this is an authentic, unmodified PAX-Coder release. Still review the code before useβ€”verification is not a code review.

**Q: Can I modify the code after verification?**  
A: Yes. Verification confirms the initial state. You can modify files locally. Re-verification will fail (as expected).

---

**For more details:**
- [SOVEREIGN_NODE.md](SOVEREIGN_NODE.md) β€” Security model and what's proved
- [SECURITY.md](SECURITY.md) β€” Incident response and key management
- [sovereign/README.md](sovereign/README.md) β€” Full Sovereign Node Key system guide

---

**Last updated:** 2026-08-18  
**Status:** Production release verification system  
**License:** BSL-1.1 / AGPL-3.0 / MPL-2.0