Authoring: adapt source styles to native WordPress markup in core - #67
Merged
noeltock merged 10 commits intoSep 7, 2026
Conversation
noeltock
changed the base branch from
foundry/62-authoring-let-block-runner-own-source-binding-and-bookkeepin
to
main
September 7, 2026 05:29
Member
Author
Foundry hard stopThis draft preserves the stopped work for owner review; it is not ready to merge. What was attempted
FailureFoundry could not safely classify the verification failure; its original evidence was retained. DiffLine totals unavailable; file layout reflects the recorded change inventory. Change inventory unavailable; inspect the PR diff. Testing & verification
Owner questionCan the mixed or unrecognised verification output be inspected before any code repair is attempted? Assumptions
|
Member
Author
Foundry hard stopThis draft preserves the stopped work for owner review; it is not ready to merge.
|
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.
Problem
Source links, images and grids do not have the same markup as their native WordPress equivalents. Copying classes alone can apply padding and hover effects twice, lose image sizing, or let native layout rules override the source. Closes #63.
Solution
The existing authoring pipeline now emits bounded native adapters from source bindings and exact supplied declarations. Original declaration ownership remains separate from generated selectors and resets; unsupported relationships return source-located diagnostics.
src/author/plan.ts,src/authoring/generate.tsscripts/proof-playwright.mjs18 files changed, 1,412 insertions and 42 deletions.
Verification
Candidate:
3adf250c194a93b19b7f90d5d06cc0f98550bd5b.npm_config_script_shell=/usr/bin/true node scripts/check-private-refs.mjs;npm run pack:checkalso passed.Risk
Adapters support the declared native relationships rather than arbitrary CSS. Unsupported mappings remain explicit failures. Repeat proof setup reuses an existing fixture image only after its bytes match exactly.
Authored with Terra medium and Codex.