LuxelEspañol

Luxel v0.1 · Project · part 3 of 3

GAPS (3)

GapWhy it is openWhere it would go
05-htmx's D-mini read can mix versionsIt reads the panel and its devices in two statements (ADR-024); changing it would move a baseline's regression numbers. (Sprint 8's new views read in one statement in every implementation.)A baseline fix in a sprint that re-measures 05
The browser checks error codes by form, not against the listByte budget of the core (ADR-026); the gateway enforces the list and the recovery pairing—
Charts are fixed componentsChart (columns) and Bar only; authors do not write SVGMore chart components, same model (scale + values)
Push (SSE or WebSocket) for data that changes on the serverIt does not exist in the code (decision 11: request/response only). Scenario B polls every pollMs (5 s); a change waits up to one interval and every interval costs a request (about 1 KB on HTTP/1.1, about 340 B behind HTTP/2 when nothing changed)A push transport module, optional, that the core does not need
Reads are POST events with their security contextA page change, a search or a sort sends the CSRF token, the view token and an event id (about 140 B more per request than a baseline's GET with a query string); the answers are as small or smallerA read path that a GET could carry safely (same-origin, no side effect), studied against decision 11
A refresh press while another event is in flight is droppedThe poll module clicks; the core drops a click while busy, like a double click; the next interval tries againA transport-level queue for reads, if a view needs it
A failure after the first byte has status 200The early send fixes the status with the first byte; the page ends with the compiled error state and the server logs it (ADR-033)A trailer or a server-timing marker monitors can read
Native controls draw a few pixels differently from load to loadScreenshot comparisons mask ‹select> and date inputs (Sprint 8 E2E)—
(S9) Versions from a shared sequence are not in commit order across writers"What a page showed at v" is exact only when a scope's writes commit in version order; the lab takes a per-user transaction lock before each write (ADR-043). An app with several concurrent writers per scope and no such lock could miss a rowA per-scope version counter, or the lock made part of the framework's write path
(S9) The event id travels whole in every request body (~24 B of ~84)It changes per intent, so HPACK cannot index it; a stable part in a header and a counter in the body would make the browser count (forbidden)A server-issued per-page nonce plus a short id, if bytes ever require it
(S9) A view has no route parameter; a record's detail is reached through a selection kept in the session (the pilot application)Sprint 12.3 (C5) gave views static paths (a route table fixed at build: path, LUXEL-E064/E065; docs/guide/concepts.md "Routes"), so pages are no longer only /‹variant>/‹view>. A path with a parameter segment is still refused: the parameter's design (row C3) waits for the owner, because a link to a record would put data in an href (ADR-058 point 4; docs/sprints/12.3-disagreements.md entry 1)A view parameter checked by the view's policy (the pilot's gap list (not published)); it attaches to the route table as described in ADR-061 §8
(S12.3, C5) After a handler's ctx.navigate('view'), a view with a path is reached in two requests: the runtime goes to the id address /‹variant>/‹view>, which answers 302 to the pathThe runtime maps a view id to an address with one template (data-luxel-route), and the answer's navigate is a view id on the wire. Sending the path, or the table, to the browser would change a runtime module or the wire format, and with them the measured claims (criteria rule 7)A protocol revision in which the answer carries the address (a path of the table, never data), or a route map in the page's resume block read by the core module
(S12.3, C5) A view with a path is served in one variant only, and a translated view (‹view>-‹lang>) keeps its id addressOne compiled template serves every variant of a view, and an absolute link is right in one of them; a path per language is row C18Per-variant path prefixes, or one template per variant; C18 for languages
(S12.3, C5) There is no luxel export command, and a link between two views WITHOUT a path is not portable to pages saved as files: it is the bare view id, relative to the id address (ADR-058), so from /dom/status/ (the spelling a static host gives dom/status/index.html) it names /dom/status/statusOnly links to a view with a path are absolute. The fixture test (tests/conformance/routes.test.mjs) proves that much and no more: saved as ‹address>/index.html, a link to a routed view names the same page from /x and from /x/; the id-relative link is shown to break under /x/. The criterion's count is measured on the website's own export, not hereA luxel export that writes each static route of the table to ‹path>/index.html and refuses a static page that is linked without a path; until then, a site saved as files gives every linked view a path
(S12.3, C5) Build-time code is trapped, not sandboxed: luxel.config.ts, the contract and view files cannot read process.env, the clock, randomness or the network (LUXEL-E054, E026, E052), but they run in the build's process and can still import node:fs, node:os or node:child_process, or read process.argv, and write what they find into a public value. process.env.NODE_ENV is trapped too, so a dependency that reads it while it loads stops the buildThe traps of guard.ts replace globals; Node's own modules stay available because views and configurations legitimately import some (node:path). Only screens run in the confined process (ADR-061 §2)Evaluate the configuration, the contract and view files in the confined process as well, once its cost per build is measured
(S12.3, C5) Not audited: whether a view FILE's expanded tree can still hold a live value (an object prop with a getter) that is read after the build-time traps are lifted. The configuration and the contract are copied by value under the traps; a view's tree is expanded under them (expand) and analysed afterwards (analyzeView)The second review of C5 asked for the configuration and the contract; screens already cross as JSON (ADR-061 §2)Copy the expanded tree by value under the traps as screens do (encode/decode), or prove that checkProps leaves nothing live
(S12.3, template) ctx.navigate('contacts') in the template's sign-in screen is a view id written as a string that nothing checks: ctx.navigate('nowhere') passes tsc --strict, luxel build and luxel check (measured on an app made from the template) and fails only when the handler runs. Importing the screen instead (ctx.navigate(contacts)) builds, but tsc refuses it when the two screens name each other (contacts names login as its loginView): TS7022, the default export "is referenced directly or indirectly in its own initializer" (measured). route: { identity: 'username' } is the other string left; that one is checked by the buildnavigate takes ScreenDeclaration | string, and the string is not typed from the app's view ids nor checked against the screens by the compiler (ADR-061, open question 6, expected the check). The cycle is in the types: a screen's type includes its route, which holds the other screenCheck a string navigate target against the app's view ids at build (the compiler reads each handler's text already, checkHandlerText), and type it from the generated view ids; or let route.loginView take a view id typed the same way, which removes the cycle
(S12.3, template) Under luxel dev, saving a screen file starts a new host process even when only its view changed, so the app's in-memory data (the template's demo contacts) is lost on every screen edit; sessions survive (D13). Measured on an app made from the template: a heading edit and a handler edit both print handlers bundled; host restarted (313–338 ms against 148–167 ms for a reload in place); a CSS edit prints host reloaded. Before this sprint's fix the host was reloaded in place and kept running the OLD handlers after a handler edit in a screen file (measured: a name refused by the edited handler was accepted)The server bundle holds the whole screen file, view included, so its bytes change with any edit of the file, and Node caches a module by URL: only a new process loads new server codeLeave the view out of the server bundle (the server never calls it), so a view-only edit gives the same bundle and the host is reloaded in place; a file-backed demo store for the template
(S12.3, template) The app create-luxel gives is no longer the app most security tests run on. Since the template is written as screen files, nine files of tests/security/ and four browser specs run on tests/fixtures/classic-app (the template in its older form: view files, server/contract.ts, server/events.ts, id addresses, a sign-out event). What each one tests, and so is not exercised on the shipped template: (1) incident: rotating the view keys, revoking a user's sessions, a revoked build or a dropped signing key not starting. (2) provenance: a signed build starts in production and serves the bytes its provenance names; a changed, added or removed build file, another key or an edited provenance stops the host; a revoked build's tokens are refused on every node. (3) reads: a read handler that writes does not build (E055) and fails at run time; reads carry no event id and pass session, CSRF, Origin, view token, roles, scopes and the rate limit. (4) redteam (the tests of it that use the app): accountLimit: 'handler' without ctx.throttled does not build and a sign-in without identity warns (RT-4, RT-1); provenance covers the bindings and the app's server modules (RT-8); luxel dev answers only its own host names (RT-9); a static file's Brotli bytes have their own entity tag (RT-14). (5) s12-1-link: ‹Link> builds to ‹a href="‹view id>">; an address from data, a non-id address, an unknown view and a raw ‹a> do not build; a built template whose link names an unknown view stops the host. (6) s12-check: ASEF = 0 against the shipped runtime (app strings looked for in it; another runtime file refused), and the exposure check's rule for literal secrets. (7) s12-debt (the tests of it that use the app): another Host than LUXEL_HOSTS gets 421; pages take load tokens (30 per address, then 429); the installed production dependencies are signed file by file; a load without a policy, publicLoad() on a private view and roles on a public view do not build (E058). (8) sprint10: the sign-in page is static (same bytes for everyone, public cache, no cookie); no session fixation; no user enumeration by answer or time; the static form refuses malformed and replayed requests; the sign-in limit per address and per account, and across 3 nodes; luxel dev shows compiler errors escaped and refuses LUXEL_ENV=production. (9) static-review: a static load that reads the session does not build (E056) and has no session at run time; the per-account lockout and its mitigations; the spent-nonce store failing closed. Browser specs: tests/e2e/dev-session.spec.mjs (D13: a session survives a handler edit), tests/e2e/provenance.spec.mjs (every public file the browser receives hashes to the signed provenance), tests/e2e/sprint11.spec.mjs (a form with two buttons sends the clicked one), tests/browsers/static-login.spec.mjs (each engine sends Fetch Metadata on the static form; a client without it is refused). What does run on the shipped template: tests/conformance/template.test.mjs (it builds, luxel check passes, it type-checks; over HTTP: the static sign-in's headers, the redirects of the route table, a wrong password, validation, add, page, remove with an id that is not the user's refused, the sign-out form; its 4 screen tests with luxel test); tests/security/markup-structural (its built templates are accepted by the structural check), pilot-gaps (an input's value escaped at first paint, never a password), dev-exposure (luxel dev on loopback only), s12-3-dev-session-file (luxel-host refuses the development session file); its own Playwright spec, run by H-CREATE in an app made from the tarballs. Screen files as such are covered on another fixture, tests/fixtures/screen-app (the template's two screens without the clean paths): tests/security/s12-3-* (sign-out form, build isolation, E055–E057 on screen handlers, the test harness)The nine files edit the older form's files, send events by its indexes or assert its id addresses and file names; running them on the screens means changing their assertions (href="login" becomes href="/sign-in", a diagnostic's file is no longer server/events.ts), which an implementation agent does not do (rule 4). The properties are the framework's, not the app's, and are still tested on an app; they are not tested on the one a new user starts fromPort each of the nine files and four specs to the template's screens and paths, each change of an assertion reviewed on its own (a Changes to security tests: commit per file); or run both apps through the same file where the test only needs a built app
(S9) A logout button is not a compiled component. Closed in 12.3 (C15): ‹Logout> compiles to a same-origin form that signs out without JavaScript (docs/guide/sessions.md); its limits are the (S12.3) ‹Logout> rows under "Open after Sprint 10"——
(S9) The delegated session store needs five endpoints in the app's backendThe pilot application's FastAPI does not have them yet (the pilot's gap list (not published))The pilot application's repository
Edit this page on GitHub

This page: 7.9 KB of JavaScript (Luxel's shared runtime), 0 KB from your app.

Measured when the site is built: the runtime files this page loads, compressed as they are sent.

Made by IntiOps. Luxel 0.1.0-beta.1 is a beta: no external security review yet.