Repository navigation
fix(capture): derive device-profile documents from their own server pair - #2169
Merged
Merged
Conversation
chubes4
marked this pull request as draft
November 20, 2026 21:32
9 tasks
Contributor
Author
|
Evidence from a real Wix site (eliteflooringservicestx.com: 125 routes, 37 templates, including a 44-post blog cluster). Command:
What each fix did in the last two rows:
Fidelity spot check. I compared 9 of the 41 derived posts against the live site. All 9 match on h1 (desktop and phone documents) and on exact paragraph text length. Still open on this site:
AI disclosure: fixes, runs and analysis by Claude (Anthropic) via Pi/Roadie; Chris Huber directed the work. |
This was referenced Nov 21, 2026
chubes4
force-pushed
the
fix/issue-2152-data-liberation-agent
branch
from
November 22, 2026 16:21
32ecc47 to
e9ecafd
Compare
chubes4
marked this pull request as ready for review
November 22, 2026 16:21
…s derive The in-pass deferral checked a member's desktop derivation only, but post-capture derivation also derives each profile document, from the profile's own server pair and a light render as that profile when the source serves it a different document. Those renders then started after the capture window and the deferred member, skipped by the browser pass, was lost. The browser pass now hands the deferral each route's captured profiles, and a member is deferred only after every profile document derives, with its profile renders memoized for post-capture derivation.
chubes4
force-pushed
the
fix/issue-2152-data-liberation-agent
branch
from
November 22, 2026 17:00
e9ecafd to
8bc9d95
Compare
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.
What this changes
Wix serves a phone or tablet identity its own server document (the mobile site). A member's phone document was derived from the representative's phone capture against the desktop server pair, so anchors inside
content-wrapperhad no counterpart and every member failedslot_anchor_unmapped. When a profile's user agent receives a server document thatcompareServerHtmlclassifies as different, that profile now derives from its own server pair, fetched with the capture's user agent. Runtime media come from a light render as that profile (#2151's hook). The desktop pair still decides cluster identity. Nothing is loosened: a profile document that can't be fetched or derived escalates the member. Rebased onto main (2026-11-21). #2151 has merged. #2138 (runtime islands,canonicalizeHtml) is still open and is carried here as the first commit, because the cluster-key canonicalization calls it. If #2138 merges first, only the last two commits remain.sourceDocumentaccepts a user agent. Per profile, the representative's server document is fetched with that profile's UA, and kept only when it differs from the desktop server HTML.TemplateClusterDeferrallight renders accept a render profile (identity and viewport), so profile documents get that device's runtime media.template-cluster-escalation.test.ts,template-clusters.test.ts, Wixderived-media.test.ts).How I found it
Type of change
Tested against