{"vsa":"0.9.0","type":"StaticManifest","manifestVersion":"1.0.0","viewId":"docs-v0-2-known-gaps-5","title":"GAPS (5) · Docs v0.2","requires":[{"name":"zone.text","version":"^1.0.0"}],"optional":[{"name":"render.dom","version":"^1.0.0"},{"name":"projection.slots","version":"^1.0.0"}],"trustDomain":"self","dataClass":"public","zones":[{"zoneId":"l-1","kind":"text","label":"Luxel"},{"zoneId":"l-2","kind":"text","label":"Docs"},{"zoneId":"l-3","kind":"text","label":"Demo"},{"zoneId":"l-4","kind":"text","label":"Numbers"},{"zoneId":"l-5","kind":"text","label":"Security"},{"zoneId":"l-6","kind":"text","label":"Releases"},{"zoneId":"l-7","kind":"text","label":"Roadmap"},{"zoneId":"l-8","kind":"text","label":"Blog"},{"zoneId":"l-9","kind":"text","label":"Español"},{"zoneId":"t-10","kind":"text","label":"Docs v0.2"},{"zoneId":"l-11","kind":"text","label":"Docs v0.1: 0.1.0 betas →"},{"zoneId":"l-12","kind":"text","label":"Search documentation →"},{"zoneId":"t-13","kind":"text","label":"Start"},{"zoneId":"l-14","kind":"text","label":"Overview"},{"zoneId":"l-15","kind":"text","label":"Getting started"},{"zoneId":"l-16","kind":"text","label":"Primeros pasos"},{"zoneId":"l-17","kind":"text","label":"Concepts"},{"zoneId":"t-18","kind":"text","label":"Guide"},{"zoneId":"l-19","kind":"text","label":"Views"},{"zoneId":"l-20","kind":"text","label":"Screens"},{"zoneId":"l-21","kind":"text","label":"Testing screens"},{"zoneId":"l-22","kind":"text","label":"Forms"},{"zoneId":"l-23","kind":"text","label":"Collections"},{"zoneId":"l-24","kind":"text","label":"Charts"},{"zoneId":"l-25","kind":"text","label":"Polling"},{"zoneId":"l-26","kind":"text","label":"Languages"},{"zoneId":"l-27","kind":"text","label":"Server"},{"zoneId":"l-28","kind":"text","label":"Sessions"},{"zoneId":"l-29","kind":"text","label":"Production"},{"zoneId":"l-30","kind":"text","label":"Behind a gateway"},{"zoneId":"l-31","kind":"text","label":"Tooling"},{"zoneId":"l-32","kind":"text","label":"From React or Next.js"},{"zoneId":"t-33","kind":"text","label":"Reference"},{"zoneId":"l-34","kind":"text","label":"Typical React mistakes"},{"zoneId":"l-35","kind":"text","label":"API"},{"zoneId":"l-36","kind":"text","label":"Diagnostics"},{"zoneId":"l-37","kind":"text","label":"Support matrix"},{"zoneId":"t-38","kind":"text","label":"Security"},{"zoneId":"l-39","kind":"text","label":"Security guide"},{"zoneId":"l-40","kind":"text","label":"Threat model"},{"zoneId":"l-41","kind":"text","label":"Claims and evidence"},{"zoneId":"t-42","kind":"text","label":"Project"},{"zoneId":"l-43","kind":"text","label":"Known gaps"},{"zoneId":"l-44","kind":"text","label":"Upgrading to 0.2.0-alpha.1"},{"zoneId":"l-45","kind":"text","label":"Changelog"},{"zoneId":"l-46","kind":"text","label":"Index of all sections"},{"zoneId":"t-47","kind":"text","label":"Luxel v0.2 · Project · part 5 of 5"},{"zoneId":"t-48","kind":"text","label":"GAPS (5)"},{"zoneId":"t-49","kind":"text","label":"Gap"},{"zoneId":"t-50","kind":"text","label":"Why it is open"},{"zoneId":"t-51","kind":"text","label":"Where it would go"},{"zoneId":"t-52","kind":"text","label":"(S12.3, C5) A view with a path is served in one variant only, and a translated view (‹view>-‹lang>) keeps its id address"},{"zoneId":"t-53","kind":"text","label":"One compiled template serves every variant of a view, and an absolute link is right in one of them; a path per language is row C18"},{"zoneId":"t-54","kind":"text","label":"Per-variant path prefixes, or one template per variant; C18 for languages"},{"zoneId":"t-55","kind":"text","label":"(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 "},{"zoneId":"t-56","kind":"text","label":"host gives dom/status/index.html) it names /dom/status/status"},{"zoneId":"t-57","kind":"text","label":"Only 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 "},{"zoneId":"t-58","kind":"text","label":"id-relative link is shown to break under /x/. The criterion's count is measured on the website's own export, not here"},{"zoneId":"t-59","kind":"text","label":"A 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"},{"zoneId":"t-60","kind":"text","label":"(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 "},{"zoneId":"t-61","kind":"text","label":"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 build"},{"zoneId":"t-62","kind":"text","label":"The 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)"},{"zoneId":"t-63","kind":"text","label":"Evaluate the configuration, the contract and view files in the confined process as well, once its cost per build is measured"},{"zoneId":"t-64","kind":"text","label":"(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 "},{"zoneId":"t-65","kind":"text","label":"traps; a view's tree is expanded under them (expand) and analysed afterwards (analyzeView)"},{"zoneId":"t-66","kind":"text","label":"The second review of C5 asked for the configuration and the contract; screens already cross as JSON (ADR-061 §2)"},{"zoneId":"t-67","kind":"text","label":"Copy the expanded tree by value under the traps as screens do (encode/decode), or prove that checkProps leaves nothing live"},{"zoneId":"t-68","kind":"text","label":"(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 "},{"zoneId":"t-69","kind":"text","label":"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 "},{"zoneId":"t-70","kind":"text","label":"referenced directly or indirectly in its own initializer\" (measured). route: { identity: 'username' } is the other string left; that one is checked by the build"},{"zoneId":"t-71","kind":"text","label":"navigate 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 "},{"zoneId":"t-72","kind":"text","label":"includes its route, which holds the other screen"},{"zoneId":"t-73","kind":"text","label":"Check 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 "},{"zoneId":"t-74","kind":"text","label":"removes the cycle"},{"zoneId":"t-75","kind":"text","label":"(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 "},{"zoneId":"t-76","kind":"text","label":"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 "},{"zoneId":"t-77","kind":"text","label":"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)"},{"zoneId":"t-78","kind":"text","label":"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 code"},{"zoneId":"t-79","kind":"text","label":"Leave 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"},{"zoneId":"t-80","kind":"text","label":"(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 "},{"zoneId":"t-81","kind":"text","label":"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 "},{"zoneId":"t-82","kind":"text","label":"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 "},{"zoneId":"t-83","kind":"text","label":"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 "},{"zoneId":"t-84","kind":"text","label":"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); "},{"zoneId":"t-85","kind":"text","label":"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> "},{"zoneId":"t-86","kind":"text","label":"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 "},{"zoneId":"t-87","kind":"text","label":"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, "},{"zoneId":"t-88","kind":"text","label":"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 "},{"zoneId":"t-89","kind":"text","label":"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 "},{"zoneId":"t-90","kind":"text","label":"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), "},{"zoneId":"t-91","kind":"text","label":"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 "},{"zoneId":"t-92","kind":"text","label":"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 "},{"zoneId":"t-93","kind":"text","label":"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 "},{"zoneId":"t-94","kind":"text","label":"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 "},{"zoneId":"t-95","kind":"text","label":"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, "},{"zoneId":"t-96","kind":"text","label":"build isolation, E055–E057 on screen handlers, the test harness)"},{"zoneId":"t-97","kind":"text","label":"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 "},{"zoneId":"t-98","kind":"text","label":"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 from"},{"zoneId":"t-99","kind":"text","label":"Port 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 "},{"zoneId":"t-100","kind":"text","label":"a built app"},{"zoneId":"t-101","kind":"text","label":"(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 "},{"zoneId":"t-102","kind":"text","label":"10\""},{"zoneId":"t-103","kind":"text","label":"—"},{"zoneId":"t-104","kind":"text","label":"—"},{"zoneId":"t-105","kind":"text","label":"(S9) The delegated session store needs five endpoints in the app's backend"},{"zoneId":"t-106","kind":"text","label":"The pilot application's FastAPI does not have them yet (the pilot's gap list (not published))"},{"zoneId":"t-107","kind":"text","label":"The pilot application's repository"},{"zoneId":"l-108","kind":"text","label":"Previous: GAPS (4)"},{"zoneId":"l-109","kind":"text","label":"Previous: Claims and evidence"},{"zoneId":"l-110","kind":"text","label":"Next: Upgrading to 0.2.0-alpha.1"},{"zoneId":"l-111","kind":"text","label":"Edit this page on GitHub"},{"zoneId":"t-112","kind":"text","label":"This page: 7.9 KB of JavaScript (Luxel's shared runtime), 0 KB from your app."},{"zoneId":"t-113","kind":"text","label":"Measured when the site is built: the runtime files this page loads, compressed as they are sent."},{"zoneId":"l-114","kind":"text","label":"GitHub"},{"zoneId":"l-115","kind":"text","label":"Discussions"},{"zoneId":"l-116","kind":"text","label":"Apache-2.0"},{"zoneId":"l-117","kind":"text","label":"Ties and losses"},{"zoneId":"t-118","kind":"text","label":"Made by IntiOps. The Luxel 0.1.0 betas are on npm (0.1.0-beta.1, 0.1.0-beta.2), with an alpha of 0.2 (0.2.0-alpha.1): no external security review yet."}],"events":[],"messages":{"network":"Could not reach the server. Check your connection and try again.","unexpected":"Something went wrong. Reload the page."},"extensions":{"render.dom@1":{"root":{"el":"div","class":"site site--en page--doc","children":[{"el":"header","class":"topbar","children":[{"zone":"l-1","el":"span","class":"brand"},{"el":"div","class":"nav","children":[{"zone":"l-2","el":"span","class":"nav-link"},{"zone":"l-3","el":"span","class":"nav-link"},{"zone":"l-4","el":"span","class":"nav-link"},{"zone":"l-5","el":"span","class":"nav-link"},{"zone":"l-6","el":"span","class":"nav-link"},{"zone":"l-7","el":"span","class":"nav-link"},{"zone":"l-8","el":"span","class":"nav-link"}]},{"zone":"l-9","el":"span","class":"lang"}]},{"el":"main","class":"main main--doc","children":[{"el":"div","class":"sidebar","children":[{"zone":"t-10","el":"p","class":"sidebar-version"},{"zone":"l-11","el":"span","class":"side-link side-link--version"},{"zone":"l-12","el":"span","class":"side-link side-link--search"},{"zone":"t-13","el":"p","class":"sidebar-group"},{"el":"div","class":"sidebar-links","children":[{"zone":"l-14","el":"span","class":"side-link"},{"zone":"l-15","el":"span","class":"side-link"},{"zone":"l-16","el":"span","class":"side-link"},{"zone":"l-17","el":"span","class":"side-link"}]},{"zone":"t-18","el":"p","class":"sidebar-group"},{"el":"div","class":"sidebar-links","children":[{"zone":"l-19","el":"span","class":"side-link"},{"zone":"l-20","el":"span","class":"side-link"},{"zone":"l-21","el":"span","class":"side-link"},{"zone":"l-22","el":"span","class":"side-link"},{"zone":"l-23","el":"span","class":"side-link"},{"zone":"l-24","el":"span","class":"side-link"},{"zone":"l-25","el":"span","class":"side-link"},{"zone":"l-26","el":"span","class":"side-link"},{"zone":"l-27","el":"span","class":"side-link"},{"zone":"l-28","el":"span","class":"side-link"},{"zone":"l-29","el":"span","class":"side-link"},{"zone":"l-30","el":"span","class":"side-link"},{"zone":"l-31","el":"span","class":"side-link"},{"zone":"l-32","el":"span","class":"side-link"}]},{"zone":"t-33","el":"p","class":"sidebar-group"},{"el":"div","class":"sidebar-links","children":[{"zone":"l-34","el":"span","class":"side-link"},{"zone":"l-35","el":"span","class":"side-link"},{"zone":"l-36","el":"span","class":"side-link"},{"zone":"l-37","el":"span","class":"side-link"}]},{"zone":"t-38","el":"p","class":"sidebar-group"},{"el":"div","class":"sidebar-links","children":[{"zone":"l-39","el":"span","class":"side-link"},{"zone":"l-40","el":"span","class":"side-link"},{"zone":"l-41","el":"span","class":"side-link"}]},{"zone":"t-42","el":"p","class":"sidebar-group"},{"el":"div","class":"sidebar-links","children":[{"zone":"l-43","el":"span","class":"side-link side-link--current"},{"zone":"l-44","el":"span","class":"side-link"},{"zone":"l-45","el":"span","class":"side-link"}]},{"zone":"l-46","el":"span","class":"side-link side-link--index"}]},{"el":"section","class":"article","children":[{"zone":"t-47","el":"p","class":"doc-meta"},{"zone":"t-48","el":"h1","class":"page-title"},{"el":"div","class":"block","children":[{"el":"div","class":"table-wrap","children":[{"el":"table","class":"table","children":[{"el":"thead","children":[{"el":"tr","children":[{"zone":"t-49","el":"th"},{"zone":"t-50","el":"th"},{"zone":"t-51","el":"th"}]}]},{"el":"tbody","children":[{"el":"tr","children":[{"zone":"t-52","el":"td"},{"zone":"t-53","el":"td"},{"zone":"t-54","el":"td"}]},{"el":"tr","children":[{"el":"td","children":[{"zone":"t-55","el":"span"},{"zone":"t-56","el":"span"}]},{"el":"td","children":[{"zone":"t-57","el":"span"},{"zone":"t-58","el":"span"}]},{"zone":"t-59","el":"td"}]},{"el":"tr","children":[{"el":"td","children":[{"zone":"t-60","el":"span"},{"zone":"t-61","el":"span"}]},{"zone":"t-62","el":"td"},{"zone":"t-63","el":"td"}]},{"el":"tr","children":[{"el":"td","children":[{"zone":"t-64","el":"span"},{"zone":"t-65","el":"span"}]},{"zone":"t-66","el":"td"},{"zone":"t-67","el":"td"}]},{"el":"tr","children":[{"el":"td","children":[{"zone":"t-68","el":"span"},{"zone":"t-69","el":"span"},{"zone":"t-70","el":"span"}]},{"el":"td","children":[{"zone":"t-71","el":"span"},{"zone":"t-72","el":"span"}]},{"el":"td","children":[{"zone":"t-73","el":"span"},{"zone":"t-74","el":"span"}]}]},{"el":"tr","children":[{"el":"td","children":[{"zone":"t-75","el":"span"},{"zone":"t-76","el":"span"},{"zone":"t-77","el":"span"}]},{"zone":"t-78","el":"td"},{"zone":"t-79","el":"td"}]},{"el":"tr","children":[{"el":"td","children":[{"zone":"t-80","el":"span"},{"zone":"t-81","el":"span"},{"zone":"t-82","el":"span"},{"zone":"t-83","el":"span"},{"zone":"t-84","el":"span"},{"zone":"t-85","el":"span"},{"zone":"t-86","el":"span"},{"zone":"t-87","el":"span"},{"zone":"t-88","el":"span"},{"zone":"t-89","el":"span"},{"zone":"t-90","el":"span"},{"zone":"t-91","el":"span"},{"zone":"t-92","el":"span"},{"zone":"t-93","el":"span"},{"zone":"t-94","el":"span"},{"zone":"t-95","el":"span"},{"zone":"t-96","el":"span"}]},{"el":"td","children":[{"zone":"t-97","el":"span"},{"zone":"t-98","el":"span"}]},{"el":"td","children":[{"zone":"t-99","el":"span"},{"zone":"t-100","el":"span"}]}]},{"el":"tr","children":[{"el":"td","children":[{"zone":"t-101","el":"span"},{"zone":"t-102","el":"span"}]},{"zone":"t-103","el":"td"},{"zone":"t-104","el":"td"}]},{"el":"tr","children":[{"zone":"t-105","el":"td"},{"zone":"t-106","el":"td"},{"zone":"t-107","el":"td"}]}]}]}]}]},{"el":"div","class":"pager","children":[{"zone":"l-108","el":"span","class":"pager-link"},{"zone":"l-109","el":"span","class":"pager-link"},{"zone":"l-110","el":"span","class":"pager-link pager-link--next"}]},{"zone":"l-111","el":"span","class":"edit-link"}]}]},{"el":"footer","class":"footer","children":[{"zone":"t-112","el":"p","class":"jsline"},{"zone":"t-113","el":"p","class":"jsnote"},{"el":"div","class":"footer-links","children":[{"zone":"l-114","el":"span","class":"footer-link"},{"zone":"l-115","el":"span","class":"footer-link"},{"zone":"l-116","el":"span","class":"footer-link"},{"zone":"l-117","el":"span","class":"footer-link"}]},{"zone":"t-118","el":"p","class":"made"}]}]}},"projection.slots@1":{"template":"/_luxel/a/docs-v0-2-known-gaps-5.5fafdbcf14da.html","map":"/_luxel/a/docs-v0-2-known-gaps-5.slots.47ee686dd149.json"}}}