Skip to content

refactor(php-transformer): expose compact site plan result projection - #1671

Merged
chubes4 merged 1 commit into
trunkfrom
refactor/1360-compact-result-projection
Sep 11, 2026
Merged

refactor(php-transformer): expose compact site plan result projection#1671
chubes4 merged 1 commit into
trunkfrom
refactor/1360-compact-result-projection

Conversation

@chubes4

@chubes4 chubes4 commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Summary

Continues #1360. Add TransformerResult::toCompactWordPressSitePlanView() to own the existing v1 projection plus v2 compaction sequence. SSI direct-artifact and URL-batch composition currently repeat that sequence.

The API lives on the result rather than ArtifactCompiler: callers retain the same composed result and its terminal-work metrics. Composition, validation, compact schema, and existing public methods are unchanged.

Verification

All ten checks passed on 1591a37abfd89e1c7975448841295339d4335f1d: Composer tests and WordPress integration across PHP 8.2-8.5, plus visual parity tools, and solved-site promotion.

php tests/contract/staged-artifact-compilation.php
composer run test:canonical
composer run test:parity

Run from php-transformer after installing dependencies. All passed; parity covers 307 fixtures. Contracts assert exact old/new compact-view equality for ordinary and reference-backed staged receipts, zero terminal payload reads, and retained zero-transform/normalization metrics on the same result.

SSI adoption follows the producer release; its direct-import checkpoint PR overlaps the consumer site and must be coordinated. No release or deployment included.

AI Assistance

OpenCode GPT-6 Astra coordinated implementation, review, and verification under Chris Huber direction. Independent review identified the terminal-metrics requirement; the final API preserves the result object rather than returning only a compact view from composition.

@chubes4
chubes4 marked this pull request as ready for review September 11, 2026 02:23
@chubes4
chubes4 merged commit d60a14b into trunk Sep 11, 2026
10 checks passed
@chubes4
chubes4 deleted the refactor/1360-compact-result-projection branch September 11, 2026 02:48
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