Filter scripts from base64 website artifacts - #875
Open
chubes4 wants to merge 2 commits into
Open
Conversation
AI assistance: OpenAI gpt-5.6-sol via OpenCode traced the fixture-matrix failure, implemented representation-aware script filtering, added contract coverage, and ran verification. Chris Huber directed the work and remains responsible for every line.
AI assistance: OpenAI gpt-5.6-sol via OpenCode added precise PHPCS suppressions for declared artifact base64 decoding and representation-preserving encoding, then ran the policy and repository test suites. Chris Huber remains responsible for every line.
This was referenced Aug 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #874.
This unblocks the combined fixture matrix for Automattic/blocks-engine#688 and Automattic/blocks-engine#822: canonical fixture
10-nonprofitno longer retainsjs/main.jsmarkup after the corresponding script asset is dropped.Verification
php tests/smoke-client-script-policy.php(12 assertions)npm test(54 selected commands passed; fixture-matrix suite 261/261)10-nonprofitthrough patched SSI policy plus combined Blocks Engine commit598c6898: valid WordPress site plan, zero diagnosticsphp -l includes/class-static-site-importer-client-script-policy.phpphp -l tests/smoke-client-script-policy.phpgit diff --checkAI assistance
OpenAI gpt-5.6-sol via OpenCode traced the WP Codebox fixture-matrix failure, isolated the base64 policy mismatch, implemented the fix and contract coverage, and ran verification. Chris Huber directed the work and remains responsible for every line.