LuxelEspañol

Luxel v0.2 · Project · part 3 of 5

GAPS (3)

GapWhy it is openWhere it would go
(S13.5, S1l) The response guard refuses a body that holds the request's credential; it checks each body (and the streamed page's data part) as one piece, before compression. A handler that splits the token across two streamed pieces, or encodes it (base64 of the token, reversed), is not caughtThe guard matches the request's own credential values; an encoded copy is an app choice the framework cannot seeNone planned: a handler that echoes a credential is the app's bug; the guard is a backstop
(S13.5, step 1; S1o; S1p; S1q) Under gateway identity, an event's last session check and its commit. With an event store that declares callsBeforeCommit (ADR-067: the memory store, the lab's PostgreSQL store), the check is the store's last statement before COMMIT; with sessionsInEventTransaction (the PostgreSQL session store on the event database) it also locks the session row (FOR SHARE), so a close or a revocation waits for the commit: no window (the real-PostgreSQL tests "S1p"/"S1q" in tests/sessions/pg-identity-key.test.mjs run only where a PostgreSQL is available). With a memory or delegated session store the commit itself is the remaining window (within the owner's "one store call" boundary, ADR-065 §13). An event store that does not declare the hook is refused under gateway identity (S1r: at host start, and per write event). A hand-written adapter's check is its own responsibility: the host requires it to declare checksSessionInTransaction, and the gateway answers 500 to an accepted event whose ask never answered true, but neither can roll back what the adapter committed (ADR-065 §21)The host cannot enter an adapter's or a store's transactionEvery event store declaring callsBeforeCommit, and a session store on the event database
(S13.5, step 1; narrowed in Sprint 12.6 E5) ‹Logout> under gateway identity reaches the gateway's sign-out only when it is one plain path of the app's own origin (identity.signOutPath: Envoy Gateway's logoutPath, oauth2-proxy's /oauth2/sign_out, Cloudflare Access's /cdn-cgi/access/logout). An address on another host, or with a query (oauth2-proxy's rd), is refused; without signOutPath the next request with the gateway's token opens a new Luxel sessionItem 19 allows only the closed-list destination of the sign-out; a cross-origin address would also need the page's form-action widened. The general external destinations stay in phase 3Declared external destinations (phase 3)

Open after Sprint 11

Sprint 11 closed: three Sprint 10 rows (a static view's load has no session: LUXEL-E056; anyone can spend an account's limit: accountLimit refuse/delay/handler, ADR-049; old browsers: the non-static sign-in is documented and now has the same sign-in limits, RT-1), the Sprint 9 row "the event id travels whole in every request body" for reads (reads carry none, VSA 0.9, ADR-050; writes keep it), and the internal pilot's two gaps (input values at first paint; the clicked submit button).

GapWhy it is openWhere it would go
(S11) The rename script renames names the app does not own (a backend route) unless each is listed with --keepIt cannot tell the framework's names from another system'sReview the diff (docs/migration-aegis-to-luxel.md says so)
(S11) The VSA 0.9 specification has no external review yetThe review pack is ready (docs/security/review-pack); the review is the owner's to commissionExternal review (PENDING)

Open after Sprint 10

Sprint 10 closed: "a logout button is not a compiled component" in practice (ctx.signOut() from any ‹Action>; still no dedicated component), the anonymous session of login pages (static public views, ADR-046), handler edits ignored by luxel dev (a new host process per server change).

GapWhy it is openWhere it would go
(S10) luxel check cannot prove that a static view's load reads no user dataA load is app code; it runs once without a session and what it returns is shown to everyoneA rule in the load's types (a load of a static view receives no session object), or a check that the static page holds no zone bound to user state
(S10) The per-account login limit can be spent by anyone (a slow-down for the victim)The usual trade-off of per-account limits (ADR-046)CAPTCHA or a second factor: the app's
(S10) Old browsers without Fetch Metadata cannot log in through a static viewThe static form requires Sec-Fetch-Site: same-origin (no session CSRF token to fall back on)A non-static login for such clients
(S10) Sessions in memory end when luxel dev restarts the host for a server change. Closed in 12.3 (D13) for the memory session store: a development-only session file. Still open: the app's other in-memory data (the template's contacts, the memory event store) is lost on that restartNode loads new handler code only in a new processA database in development for the app's data
(S12.1) The cluster E2E helper can leave its three nodes running when the test process ends first (found twice: window 7's leftover servers held the ports of the next series; three nodes left by a re-run)tests/e2e/luxel-host.mjs stops the cluster asynchronously from kill() and nothing waits for itThe helper waits for the stop in the spec's afterAll; until then, check for leftover host processes before a measurement window
(S12.3) The lab's own type check fails and no suite runs it: npm run typecheck -w luxel-example-03-luxel (tsc -p tsconfig.json) reports 5 errors in examples/03-luxel/server/events.ts on a fresh build of 8678c3d in the container (a flow typed string where the contract has "in" | "out", version missing on Movement, three implicit any)Found while typing ctx.plural (D7); the build bundles with esbuild, which does not type-check, and the root tsc -b does not include the labFix the five errors and add the lab's type check to a suite; a change in examples/, to do with its own ADR note if shared/ types are involved
(S12.3, found in C15; older than ‹Logout>) A private view whose loginView is not a public view sends a signed-out visitor nowhere: a non-public login view with the default loginView answers 302 to itself for ever (measured on the fixture app with a private screen named as its own loginView: GET /dom/gate → 302 Location: /dom/gate). A loginView that names no view is accepted too (NOT MEASURED: by the code the redirect goes to a path the host does not serve). The build and the host accept both; by the code the same holds after ctx.signOut().navigate(...) to such a view. ‹Logout> no longer adds a way in (its destination must be public, LUXEL-E066)Nothing checks loginView (of a view, a page or a surface) at build or at host start; the route guard trusts itRefuse at build and at host start a loginView that opensWithoutSession (@luxel-framework/check, the guard's predicate) does not accept. Not done in C15: it is a new diagnostic that would stop apps that build today (every private view of an app without a public login), so it needs a decision
(S10) create-luxel installs only the framework packages an app always needs@luxel-framework/postgres and pg are for several nodes; the template comments show themcreate-luxel --postgres, once Luxel is on npm (Sprint 12)
(S10) An E016/E025/E026-style diagnostic points at the collection or the export for some item-template mistakes, not at the exact expressionThe item template is evaluated with placeholders; the failing expression has no source positionSource maps of the bundled view
(S10) Item types do not include disabled, ctx.plural keys are not type-checked, Session has no displayName. 12.3 (D7), on screen files: all three are typed (an item's disabled, messages and plurals as typed functions, ctx.session.displayName), with type tests T25–T28. In the older form (server/contract.ts + server/events.ts) Session.displayName was added and ctx.plural's key is checked (type cases E12, E13); an item's disabled stays untyped thereFound while writing the guide (docs agent); typing gaps, not behaviourWrite the screen as a screen file
(S12.3) A build-time misuse (LUXEL-E026, E052–E054) is located by searching the view's file, then its helpers, for the first line that matches the API's name: a string or an unrelated earlier use of the same name can be reported instead of the real call (found by a blind review; the same for view files since Sprint 10)The evaluation knows which API was called, not where; the bundle has no source mapSource maps of the bundled view (criterion D6)
(S12.3, C15) An app has one destination after ‹Logout>, in the variant of home: two ‹Logout> cannot go to different views, and signing out from a page of another variant lands in the variant of home (LUXEL-E066 refuses what cannot be honoured)The form posts to one fixed address that names no view and no variant, and the answer's redirect is never read from the request (no open redirect by construction)A fixed sign-out address per variant or per destination (/_luxel/logout/‹id>, each a build-time constant checked by the markup check), if an app needs it
(S12.3, C15) ‹Logout> exists only in filled pages (variants with projection: 'slots'): a view served by Luxel Visual or by a page the runtime projects cannot use it (LUXEL-E066) and signs out with an ‹Action> whose handler calls ctx.signOut(), which needs JavaScriptA form is markup of the compiled template; a page built from the manifest has text zones onlyA sign-out control in the semantic bridge and the dynamic module
(S12.3, C15) A browser without Fetch Metadata (before Chrome/Edge 76/79, Firefox 90, Safari 16.4) cannot sign out with ‹Logout>: the form's post is refused (403), and a refused post shows the gateway's JSON error, not a page of the appThe form carries no token (the template is public), so the proof of origin is Sec-Fetch-Site: same-origin; nothing falls back to a weaker check (as for static forms, ADR-049)A sign-out ‹Action> for such clients (it has the CSRF header); an error page for refused navigations
(S12.3, C15) The sign-out form's request has one proof less than an event: Fetch Metadata and Origin, no CSRF token, and Origin: null is accepted beside Sec-Fetch-Site: same-originPages are served with Referrer-Policy: no-referrer, and a browser then writes Origin: null in a form's navigation; a token in the form would put session data in the page's markup (a hidden input, which the markup check refuses)Referrer-Policy: same-origin on pages with a ‹Logout> (the browser would send the real Origin, and null could be refused): a change to the document headers, for the owner to decide
(S12.3, found in C15) ‹Link to> refuses a view file that luxel.config's views does not list (LUXEL-E059 "not a view or page"), although the build compiles it and the host serves it (‹Logout to> refuses it too, for another reason: an unlisted view is not public)The link check reads config.views and config.pages only (screens are always listed; a .view.tsx without route options is not)The link check should count every compiled view as a route
(S10) Framework READMEs lag the guide (packages/ui/README.md omits Select, Chart, Bar; packages/server/README.md omits insert/remove/move/sync/signIn/signOut)The guide (docs/guide) is now the user documentationTrim the READMEs to point at the guide
(S10) A ‹Collection label> reaches the manifest but is not written as the list's aria-label (found by H-DX-AGENT)The compiler uses it for the zone onlyThe list element's aria-label (compiler)
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. 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.