diff --git a/docs/achievements.md b/docs/achievements.md index 23f7d4f7..ecff5f42 100644 --- a/docs/achievements.md +++ b/docs/achievements.md @@ -1,10 +1,10 @@ # Clash of Cultures achievements -Prepared engine release: `@boardgamers/clash-server` **0.4.150**, BGS `clash/1` -(Clash of Cultures: Monumental edition). Publication awaits release-delta review; -this source document does not assert deployment. Engine-only release; the hosted -viewer remains 0.1.217. See `web-client/release/engine-package.json` for the reproducible -package metadata. +Delivered engine release: `@boardgamers/clash-server` **0.4.150**, BGS `clash/1` +(Clash of Cultures: Monumental edition). Engine-only release; the hosted viewer +remains 0.1.217. See `web-client/release/engine-package.json` for package metadata +and [the delivery receipt](../web-client/docs/achievements-0.4.150-receipt.md) for +the exact reviewed artifact, source commit and activation evidence. The native Rust evaluator is the single source of truth. The WASM package exports `achievementDefinitions()` and `achievements(serializedData)` directly, alongside diff --git a/web-client/docs/achievements-0.4.150-receipt.md b/web-client/docs/achievements-0.4.150-receipt.md new file mode 100644 index 00000000..1a21fa5f --- /dev/null +++ b/web-client/docs/achievements-0.4.150-receipt.md @@ -0,0 +1,83 @@ +# Clash of Cultures engine 0.4.150 delivery receipt + +## Identity and reviewed source + +- Game: **Clash of Cultures: Monumental edition**, BGS `clash/1`. +- Package: `@boardgamers/clash-server@0.4.150`, entry point `server.js`. +- Core approval: `e7928f088e02814d33c29cdf7d73dd1db28b5780`. +- Release/package approval and artifact source: `9ff814d17b3925c9b9e31fa3a8146fa18645dca1`. +- Fresh canonical fetch before delivery found no upstream drift. Source, protocol + dependency/lockfile, release metadata and packaging recipe were non-force pushed + to `origin/main`; the remote was verified to contain the reviewed source commit. +- This receipt is a documentation-only follow-up, not a new engine build. + +## Exact reviewed and delivered artifact + +Archive: `boardgamers-clash-server-0.4.150.tgz` + +SHA-256: + +```text +ce99ed5dc66c6104da6def723766bf7e84f5670bf318d74c5ef07e6f5f5b5d85 +``` + +Hosted artifact: + + + +Built from the committed release source with Rust 1.94.1, wasm-bindgen 0.2.105 +and Cargo's locked dependency resolution. The scoped independent review approved +this exact archive after testing its unpacked Node/WASM engine. Package files were +checked against outputs from that build, and the package's dynamic-import named +exports and official protocol schemas were verified. + +This is **same-build integrity, not a bit-reproducible-build claim**. A later review +rebuild changed ignored `.engine` outputs; wasm-bindgen invocations can produce +different bytes even with identical compiled input. Delivery did not rebuild or +repackage those outputs. The preserved approved tarball was hash-checked before +upload, and the hosted bytes were independently downloaded and verified against +the exact approved SHA-256. Manifest verification used the preserved tarball, +not the later ignored outputs. + +## Activation and public verification + +Installer activation verified at **2026-11-14T01:04:29.030Z**: + +- Admin `GET /api/admin/gameinfo/clash/1` reports package 0.4.150 and the exact + installer-owned `achievementManifest`: **revision 1, all 17 definitions**. +- The manifest was absent before upload and appeared after the installer processed + this artifact; verification did not treat the upload response alone as activation. +- Public `GET /api/boardgame/clash/info/1` returned HTTP 200 and the exact manifest. +- Public album returned HTTP 200, + title `Clash of Cultures: Monumental edition achievements`, and all 17 names + in its server-rendered page. +- Public counts endpoint returned HTTP 200 for all 17 IDs (all zero at verification). +- No fake games, test accounts, historical awards or live-game moves were created. + +Only the raw reviewed tarball was sent to the existing engine-upload endpoint. +Credentials were read from `~/.bgs` in memory and were not committed or printed. +The POST response omits inherited gallery metadata; an initial comparison stopped +on that omission. A fresh full admin GET confirmed preservation, without reupload +or metadata writes. Subsequent installer verification compared the full GET again. + +## Preserved scope + +No viewer upload: hosted viewer **0.1.217** remains unchanged, including its URL: + + + +Full before/after comparisons confirmed unchanged viewer, gallery, options, +preferences, settings, tutorial, meta, players and label. No practice-policy, +default-stack, database, production-configuration or game-rule changes were made. +The destroyed-wonder final-state caveat remains documented and regression-tested. + +## Validation + +- 105 Rust library tests passed with the pinned Rust 1.94.1 toolchain. +- Five achievement tests passed against WASM, including the independently reviewed + unpacked archive; exact catalog, completed fixture, boundaries, losing-seat feats, + serialization and secret filtering were checked. +- Svelte/TypeScript check: zero errors and zero warnings; locale checks passed. +- Prior core review independently passed 1,071 web tests. +- Strict Clippy diagnostics and the Zod advisory remain acknowledged baseline + findings, not new release blockers. No unrelated remediation was bundled. diff --git a/web-client/docs/viewer-publishing.md b/web-client/docs/viewer-publishing.md index fb5e6cdc..a6c7f585 100644 --- a/web-client/docs/viewer-publishing.md +++ b/web-client/docs/viewer-publishing.md @@ -1322,7 +1322,13 @@ engine, or push Git. It packages existing `.engine` outputs, so **do not skip th fresh build above**. Unpack the archive and byte-compare every declared file to `.engine`, run protocol/fixture tests against its `server.js` via dynamic import, and retain the source commit, toolchain versions and artifact SHA-256 together. -Any later source edits require a fresh build and validation before publication. +These checks establish **same-build source/artifact integrity**, not bit-for-bit +reproducibility: wasm-bindgen output can differ between invocations even with the +same compiled input. Once an archive has been independently approved, preserve +and upload that exact SHA-256; do not repackage later ignored `.engine` outputs. +Runtime/package source edits require a fresh build and review before publication; +post-delivery receipt-only documentation does not change the approved artifact. +See [the 0.4.150 delivery receipt](achievements-0.4.150-receipt.md). For this engine-only release, use the existing authenticated admin endpoint `POST /api/admin/gameinfo/clash/1/engine` with the raw npm tarball and