Vue-subset HTML wire authoring

core_write_view_html accepts familiar Vue-shaped markup, but it does not run Vue or JavaScript. The rule is deliberately strict: an attribute is adopted iff it lowers to a declared AppDSL carrier with no execution. Call core_get_view_html_catalog first; it is the live vocabulary and includes the normalization table and schema-derived component properties.

Structural and reactive forms

Only the item alias is accepted for repeaters. A query-backed repeater needs a stable key; index identity is intentionally unavailable. Nested repeater expressions are compiled in the existing row scope.

Schema-derived component properties

Prefer the catalog projection over raw JSON. Scalar properties become attributes, arrays/objects become generated v-* child elements, and reserved wrapper names are exposed as spec-*. For example:
These forms and view_html export address the same canonical spec paths. Authoring the same path twice—such as raw spec plus the corresponding child element—is rejected rather than resolved by precedence. Chart, table, metric, and map cards have no built-in title or description headers in edit or view mode. Titles, source names, and descriptions remain metadata; author visible titles as separate heading or Markdown elements. Existing pages are not automatically migrated. Existing chart-template source carriers in chart titles, spec titles, or descriptions remain supported and are not removed by this presentation rule.

Dialogs, popovers, title, and invokers

Native platform spellings lower to existing overlay and interaction carriers:
open supplies the resolver’s initial value. title on ordinary elements is preserved in the wrapper title carrier and rendered as a native hover tooltip. Use wrapper-title="Caption" for wrapper title metadata without implicitly enabling the tooltip flag. Optional native-title="true|false" preserves that flag explicitly; omitting it preserves absence. Ordinary hosts cannot combine title and wrapper-title; schema-owned widget and platform overlay titles remain separate spec properties and may coexist with wrapper metadata. Targets resolve across the whole submitted fragment and multiple invokers may share one overlay. A conditional class accepts one entry, including nested SQL calls and quoted commas. Optional class-scope="substrate.render|repeater.row" preserves its exact owner; omission uses the actual ambient context. Explicit row scope requires a repeater body. Export verifies the full boolean expression carrier and preserves the distinction between an absent base class and class="". Canonical content templates retain their native fixed render owner. Registered spec bindings and source-projected chart expressions are checked against a fresh scoped compilation before export. Chart compute verification excludes only the derived sql, sql_params, and sql_error artifacts, which native preparation regenerates; source, AST, hash, type, and scope remain exact. Opaque form field expression residue retains its original bytes instead of claiming first-class source integrity or readable coverage for those fields. Typed or formatted spec templates are reconstructed with the same template producer, current view declarations, and the innermost authoritative repeater query schema. Missing metadata is VIEW_HTML_TEMPLATE_CONTEXT_UNAVAILABLE; a stored carrier that disagrees with available current metadata is VIEW_HTML_TEMPLATE_NONCANONICAL. Reads never silently retype it. Restore missing metadata, or explicitly author fresh intended HTML, inspect semantic preview, and commit the fenced payload. Fresh authoring under a changed schema is not rejected merely because the old stored template used another type. An overlay without v-model:open uses its own local.open.<element-id> resolver and works with its built-in trigger/editor affordance. An external invoker cannot write another element’s local resolver, so the compiler blocks that combination and asks for an explicit declared state.* or param.* binding. State variables must already exist in AppDSL state.

Diagnostics and canonical export

Blocking findings include a stable code, source path, and actionable Vue-shaped suggestion. Advisories describe deterministic normalization. Canonical export may prefer when, key, and schema-derived property spellings even when the input used their Vue aliases; byte-for-byte HTML round-trip is not promised, but the typed AppDSL meaning is. The compiler’s normalized output rewrites projectable raw specs to props/children, and htmlwire.ExportPlan provides the same AppDSL-to-wire projection for stored plans. Supported projectable forms recompile without changing their typed meaning; click assignments also export back to @click when the interaction is exactly one declared assignment. Use core_read_view_html for whole-view or targeted HTML reads. Public page JSON reads remain retired; a historical carrier that cannot be represented exactly returns an explicit export refusal, not a lossy document. An authorized export refusal may include error.html_target with the same-page view_id, writable container target_id, and current etag. This permits an explicit replacement, not automatic repair:
  1. Choose the intended fresh HTML with stable IDs. A refused leaf may nominate its parent, so supply the intended complete children of that container and preserve siblings explicitly.
  2. Run core_write_view_html with validate_only: true. Inspect the exact create/update/delete diff; a successful preview has not changed the model.
  3. Commit the same payload with the supplied ETag. A stale version, changed permission or changed context can still refuse atomically.
Reads never choose whether a mismatched source or AST is authoritative. The caller must make that choice in the replacement; titles, identity and unrelated siblings are not permission to discard unknown data. Denied or unresolved reads and non-container roots do not receive a repair target. This reuses the ordinary semantic-preview and fenced-write flow, not a migration mode or JSON escape.

Ordered and conditional handlers

Keep @click and other event shortcuts for one plain action. For a sequence or handler flags, put a compiler-only group directly inside the interaction host:
The event uses the same adopted arguments as shortcuts (click, click.shift, click.meta, hover, change, submit, rowclick), subject to the host’s catalog whitelist. Handlers lower to the existing ordered Handler[]; groups are not rendered elements and create no new runtime owner. Use explicit closing tags. Duplicate groups, attributes, or a group and shortcut for the same event are refused. Different events compose. Existing @click plus v-model:selection remains accepted with its existing action-before-publisher order; export makes that order explicit in a group. Each handler has exactly one action, selection, set-state, or set-parameter. Actions reuse the existing assignment/call grammar. A generated publisher can occupy any sequence position:
Declare xf as the existing canonical selection on the same page. A selection handler reuses v-model:selection lowering and its selection-point-column, selection-column, and selection-empty-all modifiers. For generated interval or region brushes, use event="brush.commit" and exactly one selection handler with selection-column; additional actions run in the same ordered on_commit list. Action-only custom brush machines and custom predicate templates are not introduced by this syntax. when is compiled with a real boolean AST, not stored as source-only text. It supports pure references, literals, operators and registered pure functions: declared state.* / param.*, the event’s value, chart click datum.*, table rowclick row.*, and item.* / loop.* inside repeaters. Table row conditions read only row.* and page values; chart hover has no current row. Function calls must resolve through the shared registry, be pure and not render-context-only, and have the registered arity. For example, abs(state.picked) > 0 and nested abs(floor(-7.2)) = 8 and array_length([state.picked, 2]) = 2 are supported. Array literals use the registry-owned pure lowered constructor; its equivalent list_value and main.list_value forms retain the same semantics. Other qualified or quoted calls, subqueries, windows, aggregates, unknown roots, and nonboolean literal conditions are refused. This does not widen function support in assignment expressions or action arguments. Every handler condition export requires an authoritative scoped parser. It reparses the stored source and requires exact equality of the complete existing expression carrier, including AST, hash, type and scope; it never repairs stored conditions. The default Go exporter without a parser refuses these conditions. The condition owner remains render scope outside repeater bodies and row scope inside them, separately from handler values; literal handlers without a condition still export without a parser. This does not migrate historical carriers or certify every non-handler expression slot. Compiler spellings must also remain canonical: the camel-case startsWith alias currently lowers to an unregistered name and is refused; use canonical starts_with. Navigation transfers outside declared shareable destination inputs and unavailable native host events remain explicit refusals.

Literal assignments

Use set-state or set-parameter with exactly one static v-value to preserve an existing literal assignment payload rather than compile an expression binding:
The targets must be declared in the page/project context. v-value uses the same static string, number, boolean, null, object and array shapes as action arguments: objects contain named v-arg children and arrays contain v-item children. Unlike fire_action, setters preserve literal JSON values without stringifying them. Null, false, zero, empty strings and empty containers remain distinct; omitting v-value is refused. Handler conditions, permissions and sequence order are preserved. Existing action="state.picked = 0" remains an expression binding, not a literal payload. :value and template are not supported on v-value. Top-level interpolation strings and objects containing the reserved binding key are refused rather than reinterpreted. Nested strings and objects remain static literal data.

Action arguments

A fire_action handler can contain named v-arg children. They lower directly to its existing argument map; they are not elements or a second action model.
value is a literal string by default; type="string", number, boolean, null, object, and array select existing JSON literal shapes. Numbers and booleans use JSON scalar text in value; null forbids value. Objects contain named v-arg children; arrays contain unnamed v-item children. Nested values are static literals only: nested binding-looking objects or interpolation strings are not evaluated. Duplicate names and mixed value forms are refused. Top-level objects cannot contain the reserved binding property: use :value or template to author a binding, never a supplied AST. :value compiles an existing expression binding; template compiles literal text around expression holes using the existing template compiler. These forms are top-level arguments only, with the event’s permitted roots and declared page values. The initial expression subset is pure references, literals and operators, not function calls. A literal top-level string containing {{ or }} is refused rather than silently reinterpreted as a binding. Historical raw reference/template strings without canonical compiled carriers remain export refusals. Binding fallbacks and unsupported binding shapes are also refused. No argument children means the argument bag is absent. args="empty" on the handler preserves an explicit empty object and cannot be combined with children. An argument bag of null is not supported; an individual type="null" value is. This spelling preserves existing runtime semantics, not new argument types: fire_action stringifies literal values (null becomes "", arrays use their existing string conversion, objects become "[object Object]"), whereas whole expression/reference results preserve their type and templates produce strings. The target action’s argument schema and server authorization still decide whether the resulting invocation is accepted.

Form And Writeback Arguments

A form’s existing v-submit can contain a v-handler for its native fire_action handler and a sibling v-args bag for submit overrides:
Handler base arguments keep their native gesture scope. Submit override arguments and the submit condition use form-field scope; they are not flattened into the ordinary handler policy. Actual compiled carriers are verified even when an older raw attribute spelling is retained. A table v-write-binding can likewise contain v-args with named v-arg children. These preserve static JSON and the existing whole {{row.column}} / {{value}} strings; :value and template are refused because the native writeback owner does not consume those compiled binding arms. Unrepresentable native-valid legacy argument values retain their exact opaque attribute spelling; this is not a claim that every raw argument value is first-class syntax. Working chart fallback properties have explicit mark-options-curve, mark-options-fill-opacity, mark-options-point-radius, mark-options-shape and mark-options-stroke-width attributes on a layer. They preserve the legacy mark_options path rather than migrating it into a modern encoding; authoring both paths for the same fact is refused. Ignored map options, native-refused form collection sources and compiler-owned chart output_as are not new features.

Element Transfer

Transfer sources use the existing ordered handler pipeline:
Payloads are opaque static JSON: nested binding-looking objects and interpolation strings remain data. An omitted v-value keeps the payload absent; type="null" is explicit null. Ordered acceptance children require unique static kinds. accepts-drag-kinds="empty" cannot mix with children; the native canonical JSON serializer treats an empty acceptance list as equivalent to an absent list. Existing DataTransfer kind normalization and drop checks remain authoritative. New source declarations refuse fire_action or navigate before drag_start with NATIVE_TRANSFER_ASYNC_SOURCE_ORDER: DataTransfer must be written during the synchronous browser source event. Put asynchronous effects after the transfer handler. Permissions or conditions do not make an asynchronous prefix safe, and the compiler never reorders handlers or rewrites replayed models. Use named v-param children on a navigation handler to initialize the destination page’s declared shareable URL inputs:
The target must be a static view ID in the same project, opened in the same tab. At dispatch, nonempty transfers to the active view are refused; use a state setter for same-page changes. Authoring and semantic preview validate the static destination and its declarations, not which route will be active when an embedded control is used. A successful preview can therefore admit this definition while the runtime refuses a same-active-view handoff. This preserves the existing keyed-mount URL hydration contract without another handoff owner. The destination must declare each named input as shareable (type="url") with scalar or list data. Local/private declarations, ranges, unknown inputs, cross-project routes, external URLs and new-tab input transfers are refused. Route keys branch, ref, cursor, block, element, tab, and prototype keys are reserved even if a declaration uses that name. Current destination metadata and authority are checked again at dispatch; this is not an access grant. value is a string; :value and template use the existing compiled binding carriers and event/repeater scope, not opaque JSON. Raw interpolation strings, typed literal values and nested v-param children are refused. Dynamic scalar values serialize through the existing URL-input channel and hydrate as strings; lists use its existing primitive-list encoding. Objects and nested arrays are not accepted. Empty strings or null remove the URL input, so the destination keeps its declared default rather than receiving a null override. An unresolved binding is an error, not an instruction to reset the input. Values the current router cannot preserve as exactly the same URL-input string are refused rather than normalized; this does not change the stored literal or the page-input URL codec. Dynamic navigation input bindings on continuous/brush commits are refused in this slice; static parameter bags remain representable. Button click receipts do not certify every host’s scope or every destination lifecycle. No children means the parameter bag is absent. params="empty" preserves an explicit empty object and requires no children; empty bags retain ordinary navigation behavior. Input transfer changes only the destination URL and its normal page-input hydration, never graph parameters or another page’s local store. URL inputs are public/shareable data, not a place for secrets. For non-no-op HTML writes, validate_only runs compilation, preparation and schema checks, then sends the same ordered command batch to the project’s distinct, nonmutating ValidateAuthoringBatch RPC. It admits and folds commands against an isolated candidate at the ETag-checked project version. Newly created declarations and parents are therefore visible to later commands; a late refusal discards the whole candidate. It does not persist events, record undo or accepted command IDs, invoke actions, or dispatch work. An unavailable or older backend fails closed; preview never falls back to the mutating batch RPC. Normal snapshot-cursor issuance bookkeeping on the preceding snapshot read is unchanged; this is not a promise of zero protocol-metadata writes. Preview and commit agree on project-state admission for the same planned commands and base version. A subsequent edit, permission change, or lineage change can still make a later commit fail; preview is not a reservation or an authorization grant. It also does not execute the action: the invocation’s argument schema, current authorization and delivery can still reject. These stronger checks are specific to HTML batches; other scope previews retain their existing local preparation/schema behavior. Argument transport witnesses do not prove every target accepts those values. The host’s requires-permission is a default; a handler’s value overrides it. Both use the existing permission vocabulary. These flags and when are client UX gates, not authorization grants; existing command authorization remains authoritative. when-unresolved-strategy is conservative or optimistic. stop-propagation is true or false and affects DOM propagation, not execution of sibling handlers. Failed or skipped handlers do not roll back earlier effects or terminate later handlers; the runtime dispatcher is unchanged. Complex events export wholly as ordered groups; single unflagged handlers keep their compact shortcut when lossless. Unrepresentable payloads still trigger the existing raw-carrier/public HTML refusal instead of silently dropping details.

Checking representation parity

Two checked-in reports describe different evidence, not a blanket parity claim:
  • pkg/htmlwire/testdata/wire-coverage.json inventories schema-derived spec leaves, wrapper fields, page declarations, and real HTML corpus residues. Structural projection coverage does not prove every value or runtime behavior.
  • pkg/htmlwire/testdata/interaction-parity.json records executable bounded interaction recipes. Event/action vocabularies, typed payload fields, shared handler fields, continuous-gesture fields/enums, and host-event pairs come from domain types and the component catalog, not a list of supported booleans.
Run the checks from the repository root:
Each interaction recipe first passes registered model/schema and catalog host validation. It then enters the real exporter and CompilePage; supported requires semantic model equality and a stable second export. Comparison ignores JSON object-key order and repairs only recognized generated selection-template AST/hash representations. It preserves template source, all handler flags, payload values, references, node relationships, and array order. A default publish handler passing says nothing about a gated publish handler or a sequence. unsupported includes an explicit reason, such as requiring a raw model carrier; it is not permission to bypass the public HTML export guard. The report’s per-member classifications distinguishes supported_roundtrip, native_implemented_html_refused, runtime_unavailable_public_refusal, no_authorable_host, and unverified. Its keys come from the same reflected inventory, not a second list of capabilities. A native-only classification links a required executable receipt, not a new HTML spelling. An unavailable host links the same catalog refusal and public atomic-refusal cases. Events without any catalog host need explicit reviewed reasons; the derived difference between the typed vocabulary and catalog hosts detects new or stale reasons. evidence and case covers record attempted model members, not an automatic claim that every observed field works. Native field claims additionally require native_fields and native_receipt links to shared capability variants. The frontend requires a real driver for each such variant, checks the report links, and asserts value-dependent effects or counterfactual refusal. Mere presence on a refused model cannot establish an anchor, binding, modifier or scale effect. The same full variant IDs identify public subcases in TestHTMLInteractionMemberContractPublicNativeLifecycle: actual native create/update/read preserves the complete model, while HTML read/edit and preview/save refuse unspellable configuration atomically. The base catalog recipes also run through TestHTMLCapabilityContractPublicMatrix. unverified remains reviewed, bounded debt, not unsupported language or verified execution. Every member without a qualified classification needs a nonblank reason in interactionParityUnverified; new members fail even during regeneration, and removed or newly evidenced members make old exemptions fail. Runtime-owned selection clauses are separately marked internal_only and the general leaf gate checks that its runtime-owned exemptions still match schema leaves. Arbitrary literal/interpolation payload values and all possible handler combinations are not exhaustively enumerated by the initial recipes. After reviewing a changed result, add a valid recipe or an explicit narrow debt reason, then regenerate and rerun without update flags:
The report’s execution_status: unverified deliberately does not turn compiler round trips into browser or public-command evidence. Separate tests exercise public create/update/read/edit refusal and preservation in view_html_interaction_parity_test.go, and the real ButtonCell.test.tsx consumer executes compiled assignment, ordered, conditional and permission/stop fixture cases. ChartCell.test.tsx executes the compiled histogram publisher sequence through publication, state folding and a routed receiving query. Those tests do not certify every catalog host: for example, an authorable hover handler does not prove that a particular native control binds hover. Extend the corresponding boundary test when adding an execution claim; do not infer it from this generated report. The shared continuous-field variants exercise dependent binding consumption, using seed omission as a counterfactual, plus modifier admission, mark anchoring, scale/axis selection, region brush mode and integer-bin snapping through native controls. These configurations now have bounded readable HTML witnesses. Physical Plot/D3 interval tests additionally compare pixel sizes 2 and 4 numerically in plot-local SVG coordinates. These bounded counterfactuals do not certify all values, combinations, chart marks or browsers. Full model comparison separately preserves binding-array order; the native fixed-seed witness does not establish temporal evaluation order across phases. Charts can author explicit drag, pan and zoom declarations without an opaque interaction carrier:
Place this compiler-only child inside a chart. kind and anchor are required; mark anchors require mark-class. Pan/zoom require an element anchor and may declare scale="x" or scale="y" and ordered axes="x y". Ordered modifier filters use the existing alt, meta and shift vocabulary. Bindings precede payload fields, which precede exactly one nonempty commit group. Expressions compile in gesture.scope; type preserves their canonical expected type and defaults to any. Binding dependencies may reference earlier bindings only. The commit group reuses existing ordered handlers, permissions and conditions; outside repeaters, its value-expression scope matches native ingress (gesture.scope). A childless set-state or set-parameter handler spells the existing omitted-value/event-payload fallback only inside this explicit commit group with a declared terminal payload. Existing literal setters outside it still require v-value. Export reparses declaration and terminal expressions with the authoritative parser and preserves their complete expression carriers, rather than repairing historical sources or scopes. Unverifiable expressions, historical mismatched terminal scopes and terminal templates are refused. In repeater bodies, terminal values and conditions use row scope; declaration bindings and payloads remain in gesture scope. Paired full-plan fixtures exercise actual repeated chart and DAG adapters rather than flattening their primary widgets outside the row. The existing generated brush shorthand can coexist with distinct explicit kinds; duplicate declarations cannot. None of these spellings adds gesture/runtime semantics. The older scatter-plot-matrix gallery source contains handcrafted control ASTs with empty hashes, including an internal list_value call. Its highlight-spec projection is tested separately; exact export of those unverifiable controls is refused without rewriting them. This does not affect the new canonical compiled gesture recipes or certify every historical gallery carrier. Configured brushes reuse the generated selection publisher, not a second predicate language:
The named column must be encoded on the selected axis. selection-axis="x|y" disambiguates the same column on both axes and is invalid for a two-axis region. Use brush-mode="lasso" or brush-mode="rectangle" with a recognized selection-column="xColumn,yColumn" region instead of interval granularity. Exactly one generated selection handler is required; ordered actions and their existing conditions/permissions/stop flags can surround it. At least one configuration attribute is required. Default brushes retain their existing shorthand, including its repeater support. Configured brushes also retain their canonical generated publisher inside repeated rows; publication uses the committed authored chart identity, not its transient row-instance ID. Interval bin-size must be finite and positive; fractional values are preserved, not certified to snap. pixel-size must be a positive safe integer no larger than 9007199254740991 for the existing publication transport. Fractional or larger native pixel configurations remain valid stored models but are not spellable by this HTML subset. Region granularity, interval brush modes, brush axes/scale, mark anchors, modifiers, bindings, custom payloads and predicates remain refused. Explicit interval pixel-size quantizes published endpoints to the nearest plot-local SVG lattice anchored at the live axis range minimum, then clamps them to that range. Pointer conversion precedes quantization; the visible brush still follows the raw pointer. Existing data-bin rounding then expands intervals to half-open bin boundaries. Physical Plot/D3 tests cover pixel sizes 2 versus 4, reversed axes, changed domains, CSS/SVG transforms and extent clamping; this is not a claim about every browser, ordinal channel or region configuration. The native/public model and publication metadata are preserved exactly. Linked activation tests prove admission, summary-demand deduplication and distinct minted-summary identities for pixel sizes 2 and 4 with bin size 7; their generated SQL is unchanged. The native publication and Go activation tests share configuration but use different source fixtures, not a single serialized-command end-to-end path. Those identity tests are separate from the numerical interval tests. An embedded read-only graph is an ordinary leaf widget:
An empty graph-id uses the owning view’s backing graph. Explicit graph IDs or names retain their existing resolver behavior; authoring the reference does not grant graph access. The graph supplies its nodes and edges, not HTML children. The existing click handler grammar receives the clicked node ID as scalar value; it does not receive a row or datum object. Ordered conditions, permissions and follow-up actions use the same handler model and pipeline. New click assignment values compile in native gesture.scope, while conditions retain their existing render scope outside rows. Repeated embedded DAGs can use row-scoped item.* values and conditions through the actual row dispatcher; passive graph-only DAG widgets retain their ordinary row support. This does not change DAG-rooted graph tabs or legacy pipeline renderer interactions. Export requires exact authoritative recompilation rather than rewriting older render-scoped assignment carriers. The ordinary projection schema derives from Go DagSpec, not the TypeScript schema. Its authored fields are projected; the Go wire-coverage manifest does not inventory TypeScript-only reserved fields. Missing/null specs, missing graph keys and historical extra fields such as reserved layout remain refused when exact projection would change them; no opaque spec fallback is introduced. Display preferences remain view configuration. This witness covers the embedded DSL DAG adapter, not DAG-rooted DSL GraphTab or legacy type="pipeline" rendering. Whole DAG-root view HTML remains refused; it is not a topology editor or a way to cross the existing view-type/root-kind lock. The inventory is bounded, not a universal parity claim. Handler assignment values, action arguments and navigation parameters share the native handler-slot policy: gesture.scope outside repeater bodies and repeater.row inside them. Existing-row fragments use authoritative row context for handlers and registered spec slots, while each slot’s declared owner still controls its policy. Conditions retain their separate render/repeater policy. Form handler base arguments retain their native gesture owner; submit override arguments and the submit condition retain the separate form-field owner. Export verifies each compiled handler value and condition’s complete source, AST, hash, type and contextual scope with the real compiler; templates also require their complete source, skeleton and holes to agree. Literal values are not rewritten. Historical mismatched carriers or unavailable verification explicitly refuse projection rather than being repaired. Existing external bound targets such as navigate(datum.url) use the same policy for their string-valued slot; parameterized dynamic targets remain refused. Cross-context moves use the actual final topology to verify and recompile handler values, conditions and registered spec binding slots into their respective new owners. The move and ordinary correction update are atomic and undoable. Row-only item / loop references cannot escape into an ordinary context; an unverifiable historical carrier is refused, not silently repaired. At an unknown or floating native position, dynamic values must already carry compiler-verified gesture/repeater expressions or templates with the slot’s expected type; source-only dynamic values refuse with handler_value_context_required. Static literals are unaffected. Final project admission checks newly authored or explicitly changed value carriers and registered spec bindings when attached; genuinely detached provisional row carriers remain legal. Replay and unchanged historical title/layout edits are not recanonicalized. Fixed-owner content templates, form fields, query and selection predicates retain their separate policies; movement does not flatten them into handler value scope or certify every expression owner. pkg/htmlwire/testdata/fire-action-arguments.json contains actual compiler and export/recompile witnesses for absent/empty bags, literals, structured values, bindings, templates and ordered flags. Public-route and native-control tests consume those same cases and check current transport arguments independently. Regenerate only after reviewing canonical values and expected effects:

Cross-layer interaction contract

pkg/htmlwire/testdata/interaction-capabilities.json is the versioned host/event contract consumed by Go public-route tests and frontend native-renderer tests. Its denominator comes from every component catalog gestures and gesture_kinds entry, including capabilities that have no readable HTML syntax. The existing payload/flags parity report remains a separate bounded matrix; its unverified entries are not a global statement that a host has never been tested. The catalog’s interaction_capabilities classifies that same exact set. A supported status is a native-effect test obligation, not a passing-test marker and not a promise that HTML can spell every model. unsupported needs an explicit reason identifying an unavailable authored dispatcher binding. retired separately identifies an intentionally withdrawn authoring spelling: flat chart on_brush and on_region callbacks are not new runtime work; use the canonical continuous gestures.brush declaration and its ordered commit handlers. Their stored/replay vocabulary remains compatible, but new HTML authoring refuses the retired spelling with its canonical replacement. The advertised gesture vocabulary is retained for stored-model compatibility; no migration removes existing native models. HTML import/export refuses unavailable runtime bindings instead of accepting inert controls. This does not disable ordinary map navigation, table focus/editing, or editor layout dragging. Map pan/zoom actions require the interactive WebGL map engine. The static Plot fallback displays an advisory when those actions are authored; it does not pretend to dispatch viewport gestures. Output click covers artifact content in the ordinary DOM; clicks inside an iframe document do not bubble to its wrapper. Each fixture row separates:
  • element and native_model: schema-valid models with the actual advertised event;
  • html and language: the attempted document and real compiler/export result;
  • public: the expected admission or exact refusal diagnostic;
  • runtime: a required native receipt key, or the reviewed unsupported reason.
  • effects: ordered state-write expectations, including event-derived values; selection-publishing recipes additionally require publication receipts.
Shared context declares graph/view/root identities, referenced nodes, states and queries. Public tests apply admitted documents through real command folding, read/edit them, and check stable semantics; refused documents must not dispatch or mutate existing state. Frontend tests use the same row IDs and actual native event bindings to verify effects or their explicitly unsupported absence. A language round trip cannot substitute for either boundary’s evidence. For example, native map camera motion can exist without having an authored on_pan dispatcher binding. Flat chart on_brush/on_region are distinct from the supported continuous brush machine’s on_commit handlers. New or stale catalog classifications fail exact-set checks. A new row also needs a real frontend driver/receipt and public-boundary coverage; regenerating a fixture cannot silently mark it executed. Run and regenerate the focused Go contract with:
Rerun the public TestHTMLCapabilityContractPublicMatrix and frontend capability contract suites after changing a recipe or classification. Keep their actual receipt results separate from the generated file’s normative required status. The initial payload witnesses include table row.session_id, form fields.note, and selection/DAG event values, with ordered follow-up writes. The gated DAG variant uses the embedded read-only graph adapter, not a root graph renderer. They are bounded examples, not all possible payload combinations. The chart shift-click row also contains a generated point-publisher variant, distinct from a constant action. The selection.on_change native witness is a named picker, not every selection union/render arm; these recipes do not certify all chart kinds, payloads, or physical browsers. Reverse coverage remains separate debt: TableCell dispatches hover, but the current catalog does not advertise table on_hover; this suite does not silently add it to the authoring contract.