idx-cli/scripts
hermes de58d04da9 fix(ownership): sync snapshots over 10 MiB; refuse oversized publishes
On 2026-09-25 a snapshot built with --history 5 (15.3 MB) was
published, and `idx ownership sync` failed for every client:
"the response body is larger than request limit: 10485760" (ureq's
default body cap). It was republished by hand with --history 2 (8.2 MB).

- snapshot download: raise the ureq body limit to 1 GiB; the file is
  still verified against the manifest's size and SHA-256. The PDF/XLSX
  report downloads get a 256 MiB limit for the same reason.
- CLI test: sync a >10 MiB snapshot over HTTP (fails without the fix
  with the exact production error).
- build-latest-ownership-snapshot.sh: --max-snapshot-bytes (default
  10485760, the limit of released clients <= v0.2.3); an oversized
  snapshot fails the build, so the published one stays untouched.
- publish-ownership-snapshot.sh passes --max-snapshot-bytes through;
  publisher tests cover the failure and that the release is unchanged.
- docs: size table and guidance.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017a5Cv5Z1NzdYKgKnTiAF4E
2026-09-25 22:22:48 +00:00
..
audit-msn-fundamentals.sh fix: handle non-finite msn key ratios 2026-04-13 23:34:36 +07:00
build-latest-ownership-snapshot.sh fix(ownership): sync snapshots over 10 MiB; refuse oversized publishes 2026-09-25 22:22:48 +00:00
build-ownership-snapshot.sh fix(ownership): verify snapshot assets before publishing manifests 2026-09-25 10:37:32 +00:00
check-ownership-snapshot-freshness.sh fix(ownership): make publisher RESULT contract hold on every path 2026-09-24 21:50:51 +00:00
idx.js fix: harden npm distribution release and installer 2026-09-24 18:57:53 +00:00
install-sh-test.sh fix: expand quoted ~ in install dir and trim trailing slashes on mirror URLs 2026-09-24 19:34:18 +00:00
install.js fix: harden npm distribution release and installer 2026-09-24 18:57:53 +00:00
live-smoke.sh feat: support explicit MSN chart history 2026-04-15 13:48:27 +07:00
npm-smoke.sh fix: harden npm distribution release and installer 2026-09-24 18:57:53 +00:00
publish-ownership-snapshot-test.sh fix(ownership): sync snapshots over 10 MiB; refuse oversized publishes 2026-09-25 22:22:48 +00:00
publish-ownership-snapshot.sh fix(ownership): sync snapshots over 10 MiB; refuse oversized publishes 2026-09-25 22:22:48 +00:00