Skip to content

Document box-tree wrapper evidence and consolidate transformer contracts - #7564

Merged
chubes4 merged 1 commit into
trunkfrom
fix/issue-7560-blocks-engine
Nov 29, 2026
Merged

chubes4 merged 1 commit into
trunkfrom
fix/issue-7560-blocks-engine

Conversation

@chubes4

@chubes4 chubes4 commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

Summary

The ADRs said box-tree intake had been removed, while the compiler still uses captured evidence for wrapper folds and a separate purchase-affordance visibility check. ADRs 0005 and 0006 now describe those limits, and the current contracts live together under php-transformer/docs/contracts.

What changed

  • Documented how sidecars bind to source bytes, what proves a wrapper fold, and why author CSS still ships.
  • Published WordPress Site Plan v3 at the canonical path, archived superseded specifications, and updated links and packaging checks.
  • Kept the visual parity schemas referenced by the packaging tests and downstream tooling; removed the unused root copies.
  • Deleted three working notes and preserved their useful findings in this review.
  • Retained all four compatibility surfaces after finding consumers in Blocks Engine or Static Site Importer.

Verification

  • ( if git diff --quiet --no-renames 4167bd1 -- ' (( if git diff --quiet --no-renames 4167bd1f4a31fa6fb49c966126859c8772b04b26 -- ':(literal)php-transformer'; then :; els…): passed on d734405. Base trunk@4167bd1 advanced to 4f74b53 (base_behind_by: 3; rebase onto the current base before merging). 426828 ms; retained gate metadata.
  • repro: none (no repro gate was declared, so these gates do not prove the issue).
  • CI: pending

Cook run
  • Cook ID: wf-cook-batch-58aa2d924b02-cook-i1-n0-a1
  • Attempt run ID: wf-cook-batch-58aa2d924b02-cook-i1-n0-a1-attempt-1-6f34ff49
  • Gate 1: tree b8db503bde87a6dbf1f21cbaf04d966fc2631aa1

Evidence

  • Box-tree v2: the compiler still reads inline-style sidecars through BoxTree::read() for wrapper folds and purchase-affordance visibility; importer smoke fixtures also construct v2 sidecars from the shared contract.
  • Convert-report v1: it remains the active JavaScript convertReport() output and is consumed by convert() and the report validator. The v2 identifier is used in a rejection test, not as a replacement. No Static Site Importer consumer was found.
  • External proof authorized by operator.
  • Recovery retained 2 infrastructure-invalid gate record(s).
  • Replacement proof covers 2 gate(s).
  • Site-plan-view v1: fromResult() emits it, and compact v2 materialization restores it. Static Site Importer uses the direct compiler view and the restored compact view before consuming the enclosed site plan.
  • The Bedford audit distinguished paragraph separators in the shared footer from actual text changes: a generated Submit action, lost pagination captions, missing required-label spacing, and different slideshow text despite equal desktop character counts. It was a baseline comparison, not a fresh acceptance result.: Bedford theme quality: imported pages carry different text than the source (29/39 cells) #7523
  • The multilingual-header investigation ruled out per-page translation URLs. Retained control-label state splits shell identities, and duplicate terminal slugs block unambiguous exclusion templates; this remains a route-state and placement design problem, not an href-stripping fix.: Header that differs only in per-page link targets is not extracted as a shared template part #3279 (comment)
  • The package draft’s durable guidance remains in the package README and migration docs: php-transformer owns conversion primitives, while downstream adapters own product workflows and preserve existing entry points.
  • Webfont legacy projection: php-transformer contract tests read the projected fields. Static Site Importer primarily reads webfont_contract, but its inferred Google Fonts fallback still inspects top-level imports from the legacy projection.

AI disclosure

Tool: Homeboy Cook. Agent: Homeboy (roadie). Model: roadie · route cook-heavy · served gpt-6.2-sol. Cook time: 3h20m.

AI traced the implementation and downstream consumers, updated the documentation and contract paths, and ran focused checks, under the direction of the Cook requester. Gates were run by Homeboy. A human reviews before merge.

Refs #7560

@chubes4
chubes4 marked this pull request as ready for review November 29, 2026 22:03
@chubes4
chubes4 merged commit e3f149d into trunk Nov 29, 2026
15 checks passed
@chubes4
chubes4 deleted the fix/issue-7560-blocks-engine branch November 29, 2026 22:03
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