The vendored flare-ui was a Nov-4 snapshot with no recorded pin. Advance it to the furthest-along upstream branch: blueflare/flare-ui `sprint` (0e1f5a259faa), which is 247 commits beyond `main`, 71 beyond `next`, and already contains `next` in full. The scattered 1-3 commit leads on individual sp/* feature branches are unmerged side-work, not a more-ahead integration line, so vendoring one of those would drop the 247-commit integration; `sprint` is the single most-ahead branch. This brings sprint's flare-ui crate additions (form.rs, page.rs, page/, table.rs and the flare-ui-axum / flare-plugin-host crates) into the tree. Record the pin in flare-ui.lock so the next re-vendor is reproducible. alkane-os builds against it with no source changes: the console (console.rs) and the rest compile clean, clippy -D warnings is clean, and 183 lib + integration tests pass (including the dashboard schema tests, so the wschema model stayed compatible). Re-verified the live console on sprint: --serve-sim boots, the flare-ui shell and control pages render, and stop -> ambient:18000 -> start all succeed. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BdKQBPjAXpCwmigUov5eQk
32 KiB
Read-only schema pages
flare_ui::page compiles a schema page into a copied PageSnapshot.
The host first refreshes authorization, then supplies an immutable value
cache through ValueSource. No renderer method performs I/O.
Host boundary
PagePrincipal::canchecks the freshly loaded grants for the bound site or device. Missing read permissions default tosite.read.ValueSource::settingsupplies effective setting rows. Static schema defaults fill absent rows when evaluatingvisible_when. Secret or unreadable settings keep the dependent block hidden, including undernot.ValueSource::secret_metadatasupplies onlywschema::secret::SecretMeta. Its default returns unknown status. Cards never callsettingfor secrets.ValueSource::readingreceives the declaredwschema::Reading, including itssource.docandsource.member. The host maps this declaration into its copied cache. It never receives a client-selected list of keys.ValueSource::seqis the journal sequence of that same cache snapshot. A config revision alone is insufficient. A changed sequence during compilation is an error; an unchanged number cannot prove host atomicity.
compile_page filters blocks, surfaces and reading permissions before
requesting values. It copies each distinct permitted reading once, even
when a page displays it several times. VisiblePages::from_snapshots
provides navigation permissions from these same compiled pages.
Rendering and invalidation
generic_page returns the body used by both full and HX responses. Compose
that body with shell::page for a complete document. Use the snapshot's
seq() as the initial events cursor; do not read another cache revision
when constructing the URL.
reading_oob(key) renders every occurrence of a permitted reading with
hx-swap-oob="outerHTML". Unknown and filtered keys return no fragment.
IDs are r- followed by the first eight hexadecimal digits of the SHA-256
of page_id|block_path. The block path includes its explicit block ID, or
original block index, and the reading's original index. Sorting and
permission filtering therefore preserve existing occurrence IDs. A
duplicate ID or truncated-hash collision rejects the page.
Compare identity() before reusing a journal. It includes the schema hash,
surface and visible layout, including readable keys. Expanded grants or
changed visible_when membership require invalidation, as do removals.
Changing values or their age does not change the identity. The host must
bind the identity, cache values and journal state atomically, and revalidate
access before every transport snapshot. The identity is not an access token.
Supported content
The renderer supports readings, hero, plain-text note and read-only
card blocks. fields is accepted as the same settings-card block.
Reading kinds are text, status and measure. Text and status accept
JSON scalars; measures accept finite numbers with bounded decimal precision
and optional range checks. Missing or invalid values display -. Values
with unknown age, explicit stale state or age beyond stale_s are marked
stale. Labels, units, notes and values are escaped as text.
Authorized known block kinds outside the drawn set (log, approvals,
approval_diff, ring and escape, from wschema::display::BLOCK_KINDS),
readings with thresholds, and readings whose display id is a registry
id remain in unsupported(). A block whose kind is another registry id, such
as approval_diff, is known to this build and refuses the same way. Full and
OOB rendering reject these pages, and navigation omits them. The d02 "Display
Library" fallbacks for ids outside the registry (P-09) draw instead, as the
next section sets out. Permission-filtered content is separate and does not
produce an unsupported diagnostic. Writes, other known block kinds, action
displays other than button (including an action with no display object), and
the action params of a list or secret kind remain outside this slice. Declared
params of the other kinds draw live controls when the host gives a scope (see
Live actions). Table and chart blocks draw read-only, as the paragraphs below
set out.
A table block names a reading whose display is table and whose value is an
array of row objects. Its columns (each with key, label and sort, one of
text, num, bytes or ip) draw the header, and each column has a col
element for the resize island. At most 16 columns are read, and at most 256
rows: a reading with more rows refuses the page. A row that holds a nested value
keeps the page unsupported.
The URL state is sort with dir (asc or desc), page (from 1), per
(10 to 200, default 50) and q, a text a row must contain in some cell, ignoring
case, at most 128 bytes. The header links keep the page path and the other
state, and a sort returns to page 1 (D64). A sort key that is not a column draws
the block default, which is the block sort object with key and dir. Rows
whose sort values tie keep the order of their row key. A missing or invalid
value sorts after every valid one. A page past the last draws the last page; an
invalid page draws page 1 and an invalid per the default size. A filter with
no match draws "No rows match". A table reading the viewer may not read draws
nothing.
The table controls are links and a filter form. In htmx mode each one carries
hx-get, hx-target="#table-<id>", hx-select="#table-<id>",
hx-swap="outerHTML" and hx-push-url="true", where <id> is the block path
with every character outside [A-Za-z0-9_-] replaced by -. The response is
the page body, and hx-select takes the table wrapper out of it.
Column resize is the islands.js script (d04 9.3): a handle on each header's
right edge, arrow keys (shift for a larger step), a double-click or Home to reset
a column, and widths kept per table under bf.tbl.<table id> when storage is
available. The binder runs on load and after each htmx swap.
A chart block lists series, each with a reading key, a label, a unit
and a color. The island draws with the three tier links, and the tier comes
from tier. The accessible table under it shows each series' latest value at
the reading precision. Samples arrive on the live stream (D63), so the render
carries none. The chart links its tiers from the page path, so a page compiled
without one keeps its chart unsupported. A series the viewer may not read is
left out of the chart.
A page with a table or chart block declares its scripts. PageSnapshot::scripts
names them in load order: islands.js for a table, chart.js for a chart, and
boot.js, the glue that mounts both, after them. PageSnapshot::assets turns
the names into one deferred script each, at the URL the caller gives. A page
with neither declares no script. The glue mounts each chart from the live
stream when the page has one. Without a stream it draws the server values once,
so a chart on a page with no stream still mounts. A caller that does not pass
these scripts leaves the island unmounted, and the page shows only the
accessible table.
Action ids appear only in buttons blocks (d02 block table) and in write_via
settings, and a repeated id refuses the page. Without a host action scope, a
known button action is unsupported: the page has no route or CSRF token for
it. An unknown display is the P-09 fallback below: without a scope it is the
disabled plain button, the one action control that needs no scope. With a scope
the button actions and the unknown-display fallbacks are live (see "Live
actions").
Limits are 256 blocks, 256 total reading and field occurrences, 4096 bytes per text value and 64 KiB per rendered body or OOB fragment. Conditions have depth at most four and at most 256 expression nodes. Malformed conditions fail closed. Sequences must fit JavaScript's exact integer range.
Unknown display fallbacks
An id outside the registry is unknown to this build, as when a newer firmware announces a display this build lacks. It draws the d02 fallback for its node kind. A registry id that this slice does not draw is known, so its page refuses.
| Node kind | Unknown id draws | Known id outside this slice |
|---|---|---|
| Setting | The kind's plain control, marked data-degraded: text input, select, checkbox or number input. A list is one read-only line of text. A secret shows {set} text with no input in render::field; a page shows its status text |
Page refused. render::field draws the label and Unsupported display, with no control |
| Reading | A kv row. A reading with thresholds still refuses the page |
Page refused |
Action in a buttons block or a write_via setting |
A plain button, confirm from the action: live with a scope (route, CSRF token and rules as for button); without a scope, disabled, since there is no route |
Page refused without a scope; live with one, for button displays |
| Block | A plate reading "This block needs a newer UI version" | Page refused |
In a bound card, a plain control saves like the matching known control, except
that a list or secret stays read-only and is not named in FormState.fields.
This table is the whole P-09 fallback set for this slice. The live button
actions are outside it and follow the next section (d04 7.4, flare-ui#135).
The one-line list never takes a write, because no grammar reads it back
(flare-ui#133).
Live actions
compile_page_with_actions takes an optional ActionScope. The host builds it
from the authenticated session and its route table: the surface's route prefix
(Routes::console() or Routes::flare_warden), the session CSRF token, whether
the session holds a fresh proof (d05 10.4), the surface's proof route (for
example /auth/proof) and the proof kind (password or local). The scope never
comes from request input. A malformed scope refuses the page with InvalidForm.
With a scope, each button action in a buttons block, and each write_via
setting in a card, draws a live control. A write_via setting whose
enabled_when is false keeps its row and draws the disabled plain button. Its target is
{prefix}/{section}/{tab}/actions/{name}, where the section and tab slugs come
from the one menu tab that shows the page. A page with no tab keeps its actions
unsupported (action route); a page shown by two tabs refuses with
InvalidSchema as soon as one of its actions draws, because it has no single
route. A page with no action rows never meets the menu check. The live control follows the
d02 rules:
| Rule | Drawn as | Without script |
|---|---|---|
confirm: none, proof met |
A POST form, hx-post upgraded |
Plain POST, 303 to the page |
confirm: arm |
A GET form to the confirm page, data-confirm="arm"; script arms it for 4 s and then posts |
Opens the confirm page, which has a POST form |
confirm: typed:<word> |
A POST form with a confirm_word field; script keeps submit disabled until the word matches |
The server checks the word (422 when wrong) |
proof: fresh, no fresh proof |
A GET link to the confirm page, which shows the password prompt | The same page; the prompt posts to the proof route |
proof: session, none |
As confirm alone |
As confirm alone |
proof: console |
As confirm alone; the host refuses a bearer token |
As confirm alone |
proof: local |
Not drawn: the web and FLARE do not offer it | Not drawn |
Declared params (d02 params) draw one field each inside the same form,
named param.<name>. A str is a text field capped by its max_len (default
127 bytes, at most 1023, or 10924 for the web-only profile-install content_b64
of the d02 amendment below); an int is a number field within its range; an enum
or int_set is a select; a bool is the hidden false and checkbox true
pair. The arm control keeps its fields in the GET form, so the no-script path
sends them to the confirm page in its query, and the confirm page prefills them.
The second press of a script arm posts them with the token. A list or
secret param, and a str whose name contains password until the schema
declares it secret, keep the page unsupported. A fresh action with no fresh
proof draws the link only; its params appear on the confirm page after the
proof.
Every POST carries the hidden csrf field. The arm control keeps its token in
data-csrf and gets a hidden field only when script posts it, so the no-script
GET never carries a token in its URL. The token never enters the page identity,
so a new session token does not invalidate a journal. The action's route and
rules do enter it, as part of the layout. So does proof_needed (a fresh-proof
action with no fresh proof), because it changes the control that is drawn.
actions::decide is the server side of the same rules. The host calls it on
every POST before it sends a command, in this order: CSRF (403 csrf), the
offer (404 for local), the fresh proof (403 proof_required), the cookie
session for console (403 forbidden), the typed word (422) and the declared
params (422: a missing or repeated param, an undeclared param. field, or a
value outside its kind). A bool takes one value, or the pair that d04 7.2 draws:
a hidden false, then a checked true. That pair is the only repeat a param
accepts; [true, false], [true, true] and longer lists are 422. decide
returns the checked values, which send receives. A confirm arm cannot be checked on the server; it guards a touch,
it does not authenticate.
Refusal::status gives the status of each refusal, and refusal_plate draws
its plate, adding the proof prompt or the control again where that helps. The
device-side refusals are Unavailable (503, E_UNAVAILABLE) and Timeout
(504, E_TIMEOUT), as d04 7.4 maps them. Refusal::problem names each refusal.
d05 names csrf, forbidden, proof_required and proof_invalid. The others
answer their own name (confirm_word, param, not_offered, unavailable,
timeout), which d05 does not name yet. A client that accepts JSON and sends no
htmx header gets the refusal as application/problem+json, {"type", "status"},
and a denied action as forbidden (amendment row for action refusals, below).
A permission the viewer lacks is not drawn, and the compile records its id:
PageSnapshot::action_denied names it. The permission check comes before the
support check, so a denied action is recorded whatever its params or display.
The record covers three cases:
| Case | Recorded when |
|---|---|
| Action permission | The action's own perm is lacking |
| Write-via setting | The setting's read permission, or its action's permission, is lacking |
| Block permission | The block that holds the action is omitted for a lacking perm |
A block-level omission removes the whole block, and its buttons and write_via
members are recorded the same way. The host's resolve then answers
Error::ActionDenied, which the routes draw as 403 with the refusal plate and no
data (d04 7.5). A surface-hidden, local or unknown action stays 404
(Error::NotFound), and so does an action that a permitted viewer cannot have
drawn (an unsupported display or param kind).
The proof form posts csrf, kind and value. A viewer without script also
posts next, the confirm page of the action, so the proof route can return them
there (AM-UI5-4, ruling Q6). The next field sits in a noscript element: a
browser with script on reads it as raw text, so a script client never posts it.
actions::confirm_next_ok accepts next only when it is the canonical
{prefix}/{section}/{tab}/actions/{name}/confirm path of an action that the
surface's tab shows, with no query, and only for a same-origin path (AM-UI5-4).
The proof route itself is owned by web-reauth-proof.
An async action (mode: async) answers 202 with an id. pending_plate draws
its status line, which script updates from the act event with that id
(flare:action) and polls every two seconds from its status route, which
answers JSON {id, state, detail}.
ACTIONS_JS (assets/js/actions.js) is the script for the arm, typed, async
and htmx refusal behaviours. A page that draws live actions must load it, and the
host must serve it. The arm rule stays safe without it, as the table shows. A
failed status poll is retried; after 30 in a row the status reads "Status unknown".
A typed gate is set again after every htmx swap, from the word its field holds.
The routes are served by flare_ui_axum::actions::router. The host implements
ActionHost (resolve, send, status) and nests the router under its surface
prefix; the axum crate README states the
contract. PageSnapshot::live_action finds the control of one action. The lookup
holds enabled actions only, so a disabled, hidden or local action has none.
Not in this slice: the bound card's own save route, and any host mount. A param
of kind list or secret, or a str named like a password, keeps the page
unsupported. flared and FLARE do not mount the action routes or adopt
compile_page_with_actions yet, so they stay on compile_page. Their
flare-ui.lock files pin release tags only, so a host can adopt these routes
only after a flare-ui release carries them.
Spec deviations (d04 7.4)
d04 7.4 is frozen. The answers below differ from it or extend it. Each needs an
amendment row before merge; the orchestrator assigns the row numbers. AM-UI5-1
to AM-UI5-3 are ratified by the orchestrator (decisions Q3 to Q5, 2026-11-06).
AM-UI5-4 (decision Q6) is ratified, and the code conforms: next sits in a
noscript element, so only a viewer without script posts it (#174).
The former AM-UI5-5 row is withdrawn (Q7, 2026-11-06): the refusal stays the
plate with its status, and d04 7.4 names no redirect for it. The rows marked
pending are new on 2026-11-07 and need a row number and a ruling.
| Item | d04 7.4 | This slice |
|---|---|---|
| Wrong typed word | No status; d04 uses 422 only for settings validation | 422, with the control drawn again (AM-UI5-1) |
| Async start | 202 with {"id"} JSON |
An API client that accepts JSON gets 202 with {"id"}. For htmx, 202 with the pending status line, which carries the id. A no-script start gets 303 to the page, so no status line shows (AM-UI5-2) |
| Status body | Not specified; the act event carries {id, state, detail} |
GET .../status?id= answers that JSON; an unknown id is 404 (AM-UI5-3) |
| Proof form fields | d05 10.4 names the body {kind, value} and requires the session CSRF token |
csrf, kind and value as d05 names them; next is the only extra field, and the host accepts it only when actions::confirm_next_ok holds (AM-UI5-4, ratified by Q6). next is posted only without script, from a noscript element (#174) |
| Refusal body | d05 11.4 lists the problem types, of which four apply to action refusals (csrf, forbidden, proof_required, proof_invalid); d04 7.4 gives the statuses and no body |
A client that accepts JSON and sends no htmx header gets application/problem+json with type and status. The type is the d05 name where d05 has one, else the refusal's own name (confirm_word, param, not_offered, unavailable, timeout). A denied action is forbidden without requires, since the route does not carry the permission key. Pending amendment row, number assigned by the orchestrator |
| Unknown action display, no scope | d02 5.2 and d04 5.2: an action draws a plain button, confirm from the action | Drawn disabled, because the page has no route to post to. With a scope it is live. Pending amendment row, number assigned by the orchestrator |
d02 amendment (flare-ui#154)
d02 caps a str param at 1023 bytes, while s06 allows 8,192-byte profiles.
The amendment (Q9, 2026-11-06) sets profile-install content_b64 to a str
with max_len 10924, the base64 length of such a profile, on the web surface
only. The other params keep 1023. wschema::kind::WEB_LONG_PARAMS names the
one exception, and lint L05 refuses it on any action that is not web-only.
The amendment row number is assigned by the orchestrator.
Panel builder twins
Web and FLARE render the declarative blocks beside a panel-only builder
escape. The supported declaration has exactly one escape block, with
only kind, order, id and escape.panel. The panel member contains
builder and a nonempty replaces list. It cannot carry a module, page,
Web handler, FLARE module, permission or visibility condition.
Every block needs a unique explicit ID matching [a-z][a-z0-9-]{0,30}.
The replacement list names every other block exactly once and excludes
the escape itself. The builder is an ASCII C identifier of at most 4096
bytes. The native generator checks the symbol against its builder registry;
the web renderer does not dispatch it.
The compiler validates the whole declaration before filtering permissions
or visibility. A valid panel-only escape is omitted on Web and FLARE;
its declarative blocks keep their usual validation and access checks.
Panel compilation returns Unsupported. Other targets and panel modules
remain unsupported; malformed or ambiguous declarations are errors.
Known null or empty optional members follow the typed schema's normalization.
Unknown members fail parsing. Full/HX and OOB output keep the same IDs and
values as the declarative page, while the schema hash still binds the escape.
Read-only cards
A card selects either a section or explicit items. Section members sort
by order, then path; explicit items retain their declared order. Repeated
fields share one copied value. The compiler filters read permissions,
surfaces, hidden and visible_when before requesting values. Device-only
settings omit FLARE by default. Write grants never enable these controls.
Text, number, slider, stepper, dropdown, segmented, swatch, switch and list
controls reuse the existing field renderer, always disabled. Static defaults
fill absent stored rows. Unresolved defaults and invalid values display
Value unavailable instead of selecting an option, unchecked switch or
range default. Integer controls stay within JavaScript's
exact range. Surface-specific display overrides resolve before rendering.
A display id this build does not know (P-09) draws the plain control of its
kind, with the same label and help, and carries data-degraded set to the id.
The plain controls follow the d02 "Display Library" fallback table (setting
row): a text input, select, checkbox or number input; one read-only line of
text for a list, with the items joined by ", "; and {set} text for a secret,
with no input and no stored value. The list line never takes a write, because
no grammar reads a one-line list back yet (list newline semantics need a
separate contract). Read-only pages show a secret as its status text
instead, for every secret display id. An unknown id therefore does not draw
the d02 {set} text on a page. This is a deliberate deviation: the page path
draws no secret control, so one read-only presentation applies. The {set}
text stays in render::field and render::card for direct callers. On the
page path, display parameters on a known control, a control that does not
match its kind, wildcard paths and map entries remain explicit unsupported
diagnostics in this slice. A write_via setting draws its action instead, with
a scope (see "Live actions"). In a bound card, a list or secret member
with a known display id still refuses the page, because the scalar form slice
writes neither kind (page_forms pins this). With an unknown id it draws the
same read-only control as on a read-only page and stays out of the writable
set, so FormState.fields must not name it.
render::field and render::card refuse by the registry rule alone. A display
id that names another node kind (map, reading, action or block), or that does
not bind the setting's kind, draws the label, the help and
Unsupported display: <id>, and no control at any permission. The page path
refuses the same settings before it renders. Swatch binds an enum only, so an
integer set takes dropdown or segmented.
Secret cards show only set/unset/unknown status and an optional 16-character
hexadecimal fingerprint. No password input or stored value is rendered. A FLARE-owned
secret on a Warden surface is marked Managed by FLARE. The current metadata
type does not identify which side holds a secret, so the renderer makes no
origin claim. Raw values and secret defaults never enter the copied page.
Read-only radio inputs omit native submission names so repeated cards keep
their own selected value. Their data-path, implicit labels and accessible
group names remain intact. Enabled form controls keep concrete path names.
Read-only value text uses the existing semantic text token in both themes.
Full and HX bodies use the same snapshot. Settings have no live reading ID
and are never returned by reading_oob. Identity includes visible paths,
resolved displays and enabled_when state; changing values alone preserves it.
compile_page stays read-only. compile_page_with_forms opts selected cards
into native scalar forms using host-owned FormState. Each state binds the
page, stable block path and schema hash to an opaque host revision, local
action path, CSRF token and exact writable field set. The event cursor never
supplies a configuration revision. Duplicate, denied and unmatched bindings
refuse the page. Field read/write permissions, owner, surface, visibility and
enabled conditions all apply.
State records stored/default provenance, non-secret submitted text and field
errors. Invalid input is escaped and retained exactly; a numeric input that
would sanitize invalid text renders as a text input until corrected. Repeated
cards retain separate values, errors, revisions and tokens. CR, LF and NUL
in stored/default or submitted scalar text return UnsupportedInput, since
single-line HTML controls cannot preserve those bytes. Invalid boolean display
state also refuses; true and false always render a correctable switch.
A multiline contract remains pending. Settings and
forms remain outside reading OOB targets. Action paths use a closed ASCII
path grammar; schemes, authorities, escapes, queries and fragments refuse.
Save is the first submit button, so native Enter submission saves rather than
resetting a field. Only stored writable fields have an explicit reset button. FormState::decode
checks ordered pairs against the retained binding and returns one typed
Submission::Save or Submission::Reset. Reserved names start with __bf_,
which cannot collide with schema setting paths. Unknown or repeated metadata,
missing fields, duplicate scalars and multiple reset targets refuse. An
unchecked bool remains Set(false); missing input never becomes a reset.
Reset validates pair structure and the stored target without parsing other
scalar values, so a reset can recover a form containing invalid input.
The host bounds the request before parsing it, retains the authorized baseline,
refreshes grants, validates CSRF and checks the revision in the same transaction
as its commit. Binding comparison alone proves none of these host checks.
Map members refuse a form whatever their display id. A write_via member of a
bound card draws its action beside the form, never inside it, because a nested
form is invalid HTML. A known
display id on a list, secret, grouped, guarded or secret-upload member also
refuses it; an unknown id renders that member read-only instead (see Read-only
cards). Atomic groups, secure secret writes, consumer save/reset routes,
422/409/303 responses and sync state remain separate integration gates.
Native scalar forms
The lower-level render::field switch emits a hidden false before its
checkbox true. The hidden control sits outside the label. Both controls
are disabled for read-only fields and submit nothing. Enabled switches
submit one value when unchecked, or ordered false,true when checked.
form::decode takes the effective schema, host-selected concrete paths,
ordered name/value pairs and explicit field/byte limits. Preserve duplicate
names when parsing the HTTP body; collecting into a map loses this contract.
Check reserved fields such as CSRF separately before passing setting pairs.
The decoder rejects unknown or missing paths and repeated scalar values.
Boolean input accepts only false or ordered false,true. Integers retain
their full signed 64-bit range subject to the schema's bounds and step.
String lengths and enum membership use the same schema checks as wire values.
An empty secret produces no operation. The decoder never produces Op::Reset.
Lists, wildcard settings, hidden fields, secret uploads and write_via
settings return explicit unsupported errors. A write_via member is never a
decoded field: it is an action (see "Live actions"). List newline and repeated-name semantics
need a separate contract. The decoder returns candidate Set operations;
it does not select authorized fields or commit changes. The host must refresh
access, validate CSRF, check its configuration revision, compare the rendered
baseline and run wschema::validate_batch. The opt-in scalar card seam uses this decoder for saves; consumer
save/reset routes remain pending.
Verification
Rust tests cover permissions, defaults, plan invalidation, escaping, repeated
readings, limits and matching full/HX/OOB fixtures. tests/browser/page.cjs
checks those generated fixtures in Chromium and Firefox over plain HTTP,
including no-JavaScript content and DOM replacement by stable identity.
The browser fixture does not implement a production SSE client.
cargo bench -p flare-ui --bench page --locked measures compilation, full
body rendering and one OOB key at 16 and 128 readings. The compile_panel
cases measure the same compiler with a validated panel builder escape.
These measurements have no enforced device budget. Consumer routes,
atomic host caches, named HTML event handling and device load budgets
remain separate integration gates.
cargo test -p flare-ui --test page_fields --locked checks settings cards.
node tests/browser/fields.cjs checks generated full/HX bodies in both
browsers, with no-JavaScript views at 390 and 1024 pixels. Run that Node
command from crates/flare-ui; it also runs in the browser package's npm test.
cargo bench -p flare-ui --bench fields --locked measures compile and body
rendering for 16 and 128 fields. Measurements are diagnostic, without a
device-load or latency-budget claim.
cargo test -p flare-ui --test form --test render --locked covers ordered
submission decoding and renderer fixtures. node tests/browser/render.cjs
checks native no-JavaScript POSTs in Chromium and Firefox, including checked,
unchecked and read-only switches. The existing fields benchmark also measures
native_forms/decode at 16 and 128 switches. These tests do not exercise a
consumer's authorization, revision or persistence boundary.
cargo test -p flare-ui --test page_forms --locked checks opt-in host state,
permission refusal, invalid input and repeated-card bindings. Browser
page-forms.cjs submits actual compiler fixtures without JavaScript in both
engines. It records ordered save/reset pairs; its HTTP test server does not
implement a consumer commit. Fields benchmarks include 16/128-field writable
compilation and body rendering as diagnostic measurements.
Live action checks: cargo test -p flare-ui --test live_actions --test page_actions --locked
covers the d02 rules, the drawn controls, the params and the identity. The axum
crate's cargo test -p flare-ui-axum --test actions --locked runs the real router
against a fake host: sends, refusals, params and the status order. node --test tests/js/actions.test.js covers the script with fake events. node tests/browser/actions.cjs, run from crates/flare-ui/tests/browser after
npm ci, drives the arm, typed, no-script, param, htmx refusal and async paths in
Chromium and Firefox, with htmx 2.0.4 from the browser package. It loads every
golden live fixture that holds a form (the arm and typed controls, the proof forms,
the page link and the confirm pages); the Rust test
every_live_form_fixture_is_loaded_by_the_browser_test fails when one is missing.