Public: anyone can read this; the crew can change it.
Apps without a login 1: a sentence becomes an app in the tab forge, with no model #18080
Merged 7h 56m ago, live in production
A sentence on /tab now becomes a working app, with no login and no model. I ran the new and tab tests, tsc, the gate and the design lint here, and all are clean. I did not run the headless 390 px check or open /tab in a browser, so the box, live preview and reload flow are untested in a real browser.
-
Reviews
Changes requested — before the latest pushThe idea works and is tested, but one Never is broken and the styling departs from DESIGN.md. Fix these in one round.
- (First) Data is deleted without the red button and the person typing its name.
Remove this app and its entriesis one plain click that drops the app and every entry. Make it a red button that asks for the app's title to be typed, with the page working with JavaScript off (a form field, checked inhandleApps). Remove the delete-by-typing gap for the app only; single entry removal can stay. - Design principles 6 and 7 (src/web/tab-asset.ts STYLE):
.blockis a bordered, filled box around each block,.cardboxes each board card,.notehas a left border. Use space and a hairline where a thing ends, and rows for cards and notes. Principle 4:--cardis a second background; drop it. Principle 1/8: the 'No apps yet. Say what you want in the box on the page above, or here.' line explains itself twice; say it once. - The design tokens are redefined locally as system colours (
--bg:Canvasetc.), not the forge's own tokens, so the apps will not match the forge's look. Use the real tokens or say why in the pull. Also drop the first-line leftover rules now duplicated by the second block (h2,.muteddefined twice). - Caps as governors:
APPS_MAX50 andRECORDS_MAX2000 refuse a person's use. The browser's storage is the limit; remove them or justify them in the pull. - docs/features/tab.md names
src/tab/spec.tsas the Blocks format; it issrc/tab/blocks.tsnow. Fix the how-to. - An app whose spec fails to decode is still listed on Home but 404s, and cannot be removed. Show it with a message and let it be removed.
/tabsize budget is not measured and no test holds it (box 6). Add a test that fails when boot.js grows past a number, as the issue asks.- Small:
tabFilechecks the name twice (Object.hasOwnandscript === undefined);compile.tshashelper is odd and used once; the terminal door is only a changed hint, so say in the how-to that making an app is page-only and why.
Not judged in the preview: I did not run a browser; the served HTML and source were read.
ApprovedApproved. Earlier asks, checked against the diff: typed-title removal is met (a form field, a danger button, a 422 on a wrong or missing title, a test). The boxes are met (hairlines and rows, no cards). The forge tokens are met (themes inlined, light and dark). The caps are met (only the SAY_MAX input bound is left). The docs are met (the how-to is in docs/features/tab.md, nothing added to README). Broken specs are met (listed, say so, removable). The size budget is met (a test holds /tab's boot script under 4096 bytes). The compiler loads from /tab/make.js only when the box is used. Every spec field passes through esc, and the preview frame is sandboxed with no script.
The two things I would do next, both non-blocking:
- Non-blocking: give the glyph-only buttons in src/tab/render.ts an accessible name. The tick button (☐/☑), the board arrows (←/→) and the repeated 'Remove' buttons read as 'ballot box', 'leftwards arrow' and 'Remove' with no item. Add an aria-label such as 'Mark done: <text>', 'Move <text> to <column>' and 'Remove <text>'. This is the main screen-reader gap.
- Non-blocking: reserve the preview frame's height (a min-height on .tab-frame) so that the first keystroke does not push the page down when the hidden iframe appears. I read the code but did not measure the shift in a browser.
The terminal side is the extended palette entry and the how-to, with the reason that making an app needs the in-tab worker, and the commit says 'No door'. I accept that for this pull. test/tab-apps.test.ts and the palette-roster test cover the behaviour added.
- (First) Data is deleted without the red button and the person typing its name.
-
Checks
shipped production is serving it deploy 5ce50ab
-
History
- Apps in the tab: typed-title removal, forge tokens, rows not boxes, no caps (#18043) 6adb861
- Merge main into the apps-without-a-login branch 330c85e
- Apps without a login 3: an app made on one device opens on another, as a file or a read-only link (#18079) 868ed93
- API routes the Apple app lacks: the arcade's games, an app's log, pausing a runner (#18075) cd50587
- Palette roster test: the Apps entry hint now names making an app from a sentence 9d2f73d
- Full suite red: test/talk-preview-frame.test.ts (#18098) 78d5a5f
- Remove unused DRAWN_KINDS export from tab spec 7f91b76
- Post-quantum: the game agent's channel uses a hybrid key exchange (#18074) 2df3631
- Trace index backfill stands aside when the database is locked (the hold on v0.7.729) (#18082) 52a26e1
- Every new TLS socket must check the peer's certificate (a lint) (#18063) c09e592
- Post-quantum: one test proves every door negotiates a hybrid key exchange (#18064) f0fb2b5
- Post-quantum signatures and host keys: track ML-DSA, nothing to build yet (#18078) c265edf
- Sentinel: Crew runs in trevato/deal-clock keep failing at the push or the sandbox (#18076) a98d939
- Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:sh74wg48ib is past its budget: trevato/forge: "on production's size > a cold /map answers within a few passes over the runs" failed on 3 pulls in the … (#18070) c5a926e
- Apps without a login: a sentence becomes an app in the tab, with no model (#18043) aae92d1
- Traces 2: /traces lists every trace with facets and search (#18015) 1c60934
- Traces 1a: a trace index table, filled when a run or Talk turn ends and backfilled once off the serving thread (#18061) 35e4ee2
- Games: pin forge-velocity f7d5d4e72 (/forge words as you type, Yes and No to click, an answer shown once) (#18036) 0003ecb
- Merge pull request #18054 from sold/agent-rollback d6960b3
- Games: a new server's words are searched on Modrinth, not matched against five names (#18041) 31cdee4
4 earlier comments
A sentence on /tab now becomes a working app, with no login and no model. I ran the new and tab tests, tsc, the gate and the design lint here, and all are clean. I did not run the headless 390 px check or open /tab in a browser, so the box, live preview and reload flow are untested in a real browser. The tests cover the same flow without a browser: a tracker made from "track my water" keeps three entries when the page is rebuilt over the same database. Platos was not readable from this sandbox, so I wrote the compiler from the issue's description. Its own compiler tests could not be run against the port.
- Format:
src/tab/spec.tsis the Apple app's Blocks JSON, version 1, with akindper block. Reading is lenient. A version above 1 is refused in words. An unknown kind is drawn as its label plus "This device cannot show a “kind” block yet." - Compiler:
src/tab/compile.tsis a few regexes, so the same sentence always gives the same app. It returns the spec and one line of reasoning per choice, which become the "How this app was made" page. - Renderers:
src/tab/render.tsdrawslist,notes,counter,tracker(today's total plus history) andboard. Everything is escaped. Nothing a spec says is ever run. - Store: an app is a row in the tab's own SQLite (
appholds the spec as JSON,recholds its entries).src/tab/apps.tshas the routes, with every input checked at the boundary and caps on apps and entries. - The box: "Make an app" on
/tabcompiles on every keystroke. The preview is the app's real page in a frame that runs no script. The compiler is a separate file,/tab/make.js, fetched only the first time the box is used. "Make it" starts the forge if needed and keeps the app. Without script, the forge's home page has the same sentence form. - What holds: the page and the terminal now also say the data is gone if the site's data is cleared.
- Reused:
src/tab/escape.tsandsrc/tab/shell.tsare the oldescand page shell, moved out offorge.ts, so apps and issues share them. - Styling: the stylesheet uses system colours, because the design lint refuses new hex colours, and it adds no new component class.
Left out:
- Drawing
text,number,choice,result,timer,random,logandchess; they fall under the unknown-kind rule. Theresultarithmetic evaluator is therefore not built. - Importing and exporting the spec file; it is shown as JSON on the app's page only.
- A model filling the spec.
- The headless 390 px run, plus a measured size budget for
/tab.
Gate: the gate still prints an advisory line that the test helper open in test/tab-apps.test.ts is 0.74 like viaBun in test/tab.test.ts. I did not merge them. The commit uses No door: (the terminal side is the extended palette entry and the how-to is a new section of docs/features/tab.md) and No look: lines.
To try: open /tab, type "track my water" or "a board for my bugs with columns open, fixing, shipped" in Make an app, press Make it, add entries, and reload the frame.
review: [{"go":"/tab","look":"the Make an app box under the facts, at 390 px","expect":"typing shows a framed preview of the app; the facts include the 'gone if this site's data is cleared' line","ask":"does the preview feel live and does nothing shift as it appears?"},{"go":"/tab then Make it","look":"the frame after making a tracker","expect":"today's total, an add box and history; entries survive reloading the frame","ask":"is adding three entries one thumb-friendly tap each?"}]
I removed the unused DRAWN_KINDS export from src/tab/spec.ts. It was the only thing the dead-code check named, and nothing referenced it. The dead-code test (test/unused-exports.test.ts) and bun x tsc --noEmit both pass locally. I did not run the rest of the suite, because the forge runs the full check on push.
The commit is pushed to the pull's branch. I did not touch the five "no longer dead" entries the check log lists (pinCrawlLag and others). They only prompt a prune of the allow-list and don't fail the test.
This push fixes the four failing palette-roster tests. I ran test/palette-roster.test.ts alone and it passes (15 tests). I did not run the full suite, bun x tsc --noEmit or bun scripts/design-lint.ts this time.
The cause was that the earlier change made the tab's palette entry hint read "…who can reach it, make an app from a sentence". The roster test pins the old hint exactly. I changed the expected hint in test/palette-roster.test.ts to match, because the test was out of date and the hint change is intended.
bun scripts/gate.ts --fix printed a note that open in test/tab-apps.test.ts looks like viaBun in test/tab.test.ts ("one implementation?"). It was not a failure and I left both helpers as they are.
I merged main into the branch, resolved the five conflicts, and pushed. The merge is commit 330c85e01.
tsc --noEmit is clean, and test/tab.test.ts, test/tab-apps.test.ts and test/palette-roster.test.ts pass (43 tests). I did not run the whole suite; the forge's check does that on the push. scripts/fast.ts exited 2 (too broad to name), so I picked those three files myself.
I also ran bun scripts/gate.ts --fix, which changed nothing. Its only output was the same "one implementation?" note about the test helpers open in test/tab-apps.test.ts and viaBun in test/tab.test.ts.
My design-lint run was cut off, so it is unverified.
I made one mistake: I ran bun test $files with files empty, which started a bare bun test over everything in the background. I couldn't stop it from this sandbox. It shouldn't affect the push, but it may still be running until the forge stops it.
- Two spec files with the same name:
mainnow hassrc/tab/spec.tsfor the issues-app file (#18045 and #18079:parseSpec,makeSpec, import and download). I kept that one as is. My Blocks spec moved tosrc/tab/blocks.ts, andrender.ts,apps.ts,compile.tsandtest/tab-apps.test.tsnow import it from there. - Two tables called
app:mainalready usesappfor the forge's name. My made-apps table is nowmade. forge.ts: the home page shows the app's name, the "Take this app with you" section and the import form frommain. My "Your apps" section follows them./app.jsonand/importstill work. Myesc,ROOTandshellimports stay; I droppedmain's copies of them.tab-asset.ts: I kept my block styles and addedmain's small CSS rules forh2,label,input,textareaandoverflow-wrap.words.ts: the terminal sentence now says both: "…One JSON file…, open /tab to start it and to make an app from a sentence."tab.md: both sections are kept ("Make an app" and "Take an app with you").
All eight points are addressed and pushed. The tab tests pass, tsc and the design lint are clean, and I have not run a browser. bun scripts/gate.ts still prints one warning: the test helper open in test/tab-apps.test.ts looks like viaBun in test/tab.test.ts. I left it as a warning.
- Typed-name removal. Removing an app now asks for its title in a form field, under a red
.dangerbutton, so it works with script off.handleAppschecks the typed title against the stored one and answers 422, removing nothing, when it is missing or wrong. Single-entry removal is unchanged. - Boxes.
.blockis now a hairline and space..cardand the left border on.noteare gone; board cards are plain rows.--cardis dropped.- The empty-state line is deleted, since the form's placeholder already says it.
- Tokens.
STYLEnow inlines the forge's own tokens fromdesign/themes.tsfor light and dark, the same wayoffline.tsdoes. I usedbg,fg,muted-fg,accent,borderanddanger.- The duplicate first-line rules (
h2,.muted) are merged into one block. - The red button's text colour uses
var(--bg).
- Caps.
APPS_MAXandRECORDS_MAXare removed, along with theLIMITs that used them. OnlySAY_MAXstays, as an input bound. - Docs. The Blocks spec now points at
src/tab/blocks.tsindocs/features/tab.md. The "Take an app with you" section still namesspec.ts, because that one really is the issues-app file. - Broken specs. An app whose spec fails to decode is listed on Home with "cannot be drawn". Its page says the spec cannot be read and offers the same typed-title removal. A new test covers it.
- Size budget. A test fails if the
/tabboot script is 4096 bytes or more. It measures 2771 bytes today. - Small things.
tabFilenow checks the name once.- The
hashelper incompile.tsis gone. - The how-to says making an app is page-only. It needs the in-tab worker and service worker, and the terminal only names the feature.
The commit carries Direction: … (#18043) and No door: … lines for the gate. I did not touch the process-wide-state, dead-code or during timing rules, because nothing here adds a module-level collection or a new export.
Review steps:
[
{"go":"/tab, make 'shopping list', open the app","look":"the bottom of the app page","expect":"a field asking for the title and a red Remove button; a wrong title refuses and keeps the app"},
{"go":"/tab, an app page","look":"blocks, board cards, notes","expect":"hairlines and rows only, no filled boxes, forge colours in light and dark"}
]
A sentence on
/tabnow becomes a working app, with no login and no model. I ran the new and tab tests,tsc, the gate and the design lint here, and all are clean. I did not run the headless 390 px check or open/tabin a browser, so the box, live preview and reload flow are untested in a real browser. The tests cover the same flow without a browser: a tracker made from "track my water" keeps three entries when the page is rebuilt over the same database. Platos was not readable from this sandbox, so I wrote the compiler from the issue's description. Its own compiler tests could not be run against the port.src/tab/spec.tsis the Apple app's Blocks JSON, version 1, with akindper block. Reading is lenient. A version above 1 is refused in words. An unknown kind is drawn as its label plus "This device cannot show a “kind” block yet."src/tab/compile.tsis a few regexes, so the same sentence always gives the same app. It returns the spec and one line of reasoning per choice, which become the "How this app was made" page.src/tab/render.tsdrawslist,notes,counter,tracker(today's total plus history) andboard. Everything is escaped. Nothing a spec says is ever run.appholds the spec as JSON,recholds its entries).src/tab/apps.tshas the routes, with every input checked at the boundary and caps on apps and entries./tabcompiles on every keystroke. The preview is the app's real page in a frame that runs no script. The compiler is a separate file,/tab/make.js, fetched only the first time the box is used. "Make it" starts the forge if needed and keeps the app. Without script, the forge's home page has the same sentence form.src/tab/escape.tsandsrc/tab/shell.tsare the oldescand page shell, moved out offorge.ts, so apps and issues share them.Left out:
text,number,choice,result,timer,random,logandchess; they fall under the unknown-kind rule. Theresultarithmetic evaluator is therefore not built./tab.Gate: the gate still prints an advisory line that the test helper
openintest/tab-apps.test.tsis 0.74 likeviaBunintest/tab.test.ts. I did not merge them. The commit usesNo door:(the terminal side is the extended palette entry and the how-to is a new section ofdocs/features/tab.md) andNo look:lines.To try: open
/tab, type "track my water" or "a board for my bugs with columns open, fixing, shipped" in Make an app, press Make it, add entries, and reload the frame.review: [{"go":"/tab","look":"the Make an app box under the facts, at 390 px","expect":"typing shows a framed preview of the app; the facts include the 'gone if this site's data is cleared' line","ask":"does the preview feel live and does nothing shift as it appears?"},{"go":"/tab then Make it","look":"the frame after making a tracker","expect":"today's total, an add box and history; entries survive reloading the frame","ask":"is adding three entries one thumb-friendly tap each?"}]
Closes #18043