Spike, not the final UI: it answers whether flare-ui can drive Alkane OS's on-box pages, and what it costs. What works: - schema/alkane-bb.json authors the sidebar as data (3 sections, 14 tabs); - src/bin/ui-spike.rs renders it through flare_ui::nav + flare_ui::shell, so the unified sidebar, ordering and surface filtering come from the schema rather than from hand-written HTML; - the render uses the shared bf- design tokens, the same ones the rest of the suite uses. Size, measured rather than assumed (armv7, release, stripped): ui-baseline 323 KiB (maud + serde_json, no flare-ui) ui-spike 771 KiB (flare-ui + wschema + sha2) marginal 448 KiB Vendoring: third-party/flare-ui is the full v0.2.9 tree pinned in flare-ui/flare-ui.lock (a partial archive does not compile, since the crate include_str!s assets from dash-editor/). vendor/ is re-generated as a cargo directory source with the new registry dependencies (maud, sha2, typenum, digest, generic-array, block-buffer, crypto-common, cfg-if, etc.) so the build still works offline. third-party/README.md records how to re-pin.
Validation corpus
Cases that every implementation of the settings schema must answer the same
way: wschema (flared and the FLARE server) and anything that ports it. The
format is d02 "Corpus"; the reference is the module doc of
crates/wschema/src/corpus.rs.
Files
| File | What it holds |
|---|---|
generic.jsonl |
One or more cases per validation stage and code: path, key, cap, scope, write_via, type, range, enum, length, check, the cross-field rules, permissions, resets |
flare-ported.jsonl |
The leaf cases of FLARE's flare-server/src/tests_wardencfg.rs, each with a note naming its test |
schema/warden-base.json |
The schema both files run against: the Warden base as flare-edge emits it (data/schema/base.json, commit f6bc5281) |
A case's schema member names a base id (the base alone) or a fragment id
(the base plus that fragment). Both files use base.
Differences from FLARE
- An empty
system.hostnameis refused (V_LEN, d02 D25); FLARE stored it. network.interfaces.Eth0is outside the path grammar (V_PATH), so the key check never sees it;0ethis the key-check case (V_KEY).- A VPN field written alone carries the other VPN fields in
ctx.rows, since thevpnrules (all or none, allowed IPs once an address is set) now run.
Running
cargo test -p wschema --test corpus
wschema-cli validate --schema corpus/schema/warden-base.json \
--corpus corpus/generic.jsonl --corpus corpus/flare-ported.jsonl
validate_corpus runs every *.jsonl here. It also fails when the generic
file stops reaching a validation code the base can produce, and when any one
flipped expectation goes unreported.
Editing
Edit the JSON lines directly; one case per line, ASCII only. When flare-edge
changes a row the cases touch, refresh schema/warden-base.json from its
emitted data/schema/base.json and record the commit above. Each firmware
also emits its own corpus from the valid and invalid vectors of its
settings (wschema::corpus::emit). A setting that a cross-field rule
refuses in the empty context declares a vector_ctx (DSL vector_path,
vector_row): the concrete path and the stored rows its vectors run at.
Each emitted case carries those rows in ctx.rows. Like the vectors, it is
never emitted into the schema or hashed.