mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-29 15:52:36 +01:00
Three gaps in the stamp the server's prepare:runner-vendor step trusts, all found in review: - The root patches directory was not an input, although build:typescript hashes patches/acpx@0.13.1.patch and copies the pi-acp and brace-expansion patches into dist. Every file under patches/ is now in the digest. - Only four outputs were checked, so a dist tree that lost a helper such as dist/cli/acpx-runtime-sidecar.cjs still counted as current. The stamp now records the path and size of every file under dist, and reuse requires all of them intact (reason code outputs_changed). - The digest was hashed after the build, so a source edited while the build ran was recorded as compiled. The Runner's build now brackets itself: record-build-inputs.mjs --begin captures the digest (and drops the old stamp) before the first step, --finish recomputes it after the last check and writes the stamp only if nothing moved. The stamp schema is now paperclip.runner-build-inputs.v2, so an older stamp is rejected and rebuilt. Rebuild paths are unchanged. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>