Skip to content

Fix bounded trusted archive source limits - #2243

Merged
chubes4 merged 2 commits into
fix/2240-staged-file-durabilityfrom
fix/2242-bounded-source-policy
Aug 8, 2026
Merged

Fix bounded trusted archive source limits#2243
chubes4 merged 2 commits into
fix/2240-staged-file-durabilityfrom
fix/2242-bounded-source-policy

Conversation

@chubes4

@chubes4 chubes4 commented Aug 8, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • classify digest-pinned and canonical provider archives as a generic trusted source class with an explicit 10,000-entry cap
  • preserve bounded download, aggregate expanded bytes, per-entry bytes, path, and compression-ratio validation through archive central-directory inspection
  • add deterministic 5,001-entry admission and 5,002-entry rejection coverage

Fixes #2242.

Verification

  • npm run build
  • npm run test:zip-source-policy
  • npm run test:recipe-extra-plugin-local-zip
  • ./node_modules/.bin/tsx scripts/source-policy-smoke.ts
  • Immutable fixture 20 completed WP Codebox import and package activation using the current official archive. The downstream SSI quality gate remains red because no static front page was configured; no fixture or downstream workaround was made.

AI assistance

OpenAI gpt-5.6-terra via OpenCode implemented the generic bounded archive-source policy, added deterministic archive-limit coverage, composed the #2241 dependency candidate, and ran focused plus immutable-fixture verification. Chris Huber remains responsible for every line.

chubes4 added 2 commits August 8, 2026 04:40
AI assistance: OpenAI gpt-5.6-terra via OpenCode diagnosed the mounted-source truncation, implemented snapshot and integrity verification, and added regression coverage. Chris Huber remains responsible for every line.
AI assistance: OpenAI gpt-5.6-terra via OpenCode implemented the generic bounded archive-source policy, added deterministic archive-limit coverage, and ran focused and immutable-fixture verification. Chris Huber remains responsible for every line.
@chubes4
chubes4 merged commit 57d7245 into fix/2240-staged-file-durability Aug 8, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant