Skip to content

Commit e29de87

Browse files
committed
docs(CLAUDE.md): reflect release-checksums variant split
Updates Layout and Lockstep sections to point at the new release-checksums/{core,consumer}.mts paths and explain the archetype gating (consumer here ships core+consumer, btm will ship core+producer once it adopts the new layout).
1 parent f4f580b commit e29de87

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

CLAUDE.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ checksums, stage per-platform packages, and republish them under the
154154

155155
- `packages/iocraft/` — umbrella with `optionalDependencies` + platform loader
156156
- `packages/iocraft-{darwin,linux,win32}-{arm64,x64}` (+ linux musl variants) — 8 per-platform shims
157-
- `packages/build-infra/lib/release-checksums.mts`copy of socket-btm's canonical helper for SHA-256 verification (sync manually from btm until lifted to `@socketsecurity/lib`)
158-
- `packages/build-infra/release-assets.json` — embedded source-of-truth tag + checksums
157+
- `packages/build-infra/lib/release-checksums/{core,consumer}.mts`fleet-canonical helpers for SHA-256 verification + sibling-release fetch. socket-addon ships **core + consumer** (consumer archetype). The third sibling, `producer.mts`, exists in the template but isn't included here — it's for repos that *generate* releases (socket-btm).
158+
- `packages/build-infra/release-assets.json` — embedded source-of-truth tag + checksums (validated against `release-assets.schema.json`)
159159
- `scripts/publish.mts` — download → verify → stage → `pnpm publish`
160160

161161
### Publish flow
@@ -188,6 +188,8 @@ pnpm run publish:ci # full publish (CI only)
188188
pnpm run clean # remove caches
189189
```
190190

191-
### Lockstep with socket-btm
191+
### Fleet-canonical lockstep
192192

193-
`packages/build-infra/lib/release-checksums.mts` is a **manual sync** from `socket-btm/packages/build-infra/lib/release-checksums.mts`. Until that file lifts to `@socketsecurity/lib`, drift is a finding — diff against btm's copy when bumping checksums.
193+
`packages/build-infra/lib/release-checksums/{core,consumer}.mts` and `packages/build-infra/release-assets.schema.json` are **fleet-canonical** files in `OPTIONAL_IDENTICAL_FILES`. They must be byte-identical to `socket-repo-template/template/`'s copies. `node scripts/sync-scaffolding.mts --target . --fix` rewrites drift; `--fix` never materializes new files (they're opt-in by archetype).
194+
195+
socket-btm currently ships an older single-file JSDoc-typed `release-checksums.mts`. It will be cascaded to the new layout in a follow-up; until then, expect `optional_drift` on btm's side, not ours.

0 commit comments

Comments
 (0)