Implementation and qualification#
Recorded 12–13 October 2026. This is the built demo: the frontend is published on Vercel, and its backend remains in the Sam Neon staging workspace. The release checks below are still qualification limits, not a claim of production readiness.
Foundation decisions#
- The staging Sam workspace is used throughout. PG18 and logical replication are enabled. Ohio replaces the plan's provisional Frankfurt region because the supplied setup reference had qualified Realtime in Ohio.
- SDK and CLI source is pinned to
5e276fdb4114555eac89f6033b15e6ff5e9e7eb4. Portable tarballs are checked in; secrets and the CLI source checkout are ignored. - The initial JSON-valued scene query failed with “scalar expression uses a mutable function.” The equivalent typed-column UNION query passed against staging, including correlated membership/session predicates. No additional scene projection table was needed.
- Static mechanical fit uses discrete yaw, voxel occupancy, stud/socket pairs, shaft/hole pairs, cardinal gear mesh slots, and a coplanar paired-hinge slot. Animation and mechanism control are deferred.
- The database takes neighbourhood and changed-part locks. Regular edits share the world lifecycle lock. Independent attachments do not exclusively lock a common baseplate.
Checks completed#
| Check | Result |
|---|---|
| Geometry | Eight tests: 36 shapes × four poses, starter validation, shaft fits, incompatible connectors, fixed gear/hinge poses, bucket coverage, coordinate limits |
| End-to-end races | 100 trials each: empty-region collision, intersecting rotations across bucket boundaries, disjoint placements, move/delete, newly adjacent connectors, distinct shared-baseplate attachments |
| Receipts and compensation | Identical replay, digest mismatch, foreign receipt isolation, stable rejection, repeated undo/redo, third-party revision conflict, stale-generation replay, coherent reset |
| Access | Viewer role denies edits; membership withdrawal empties scene/presence/history; session revocation empties live rows; session expiry rejects renewal and existing capability ceases to be live by its 60-second boundary |
| Presence | Sequence ordering, heartbeat preserves preview timestamp, clean leave, delayed update cannot recreate viewer, public cleanup request rejected |
| Lifecycle | 100 close-versus-edit trials; owner reopen/reset; closed world rejects further edits |
| Lock independence | Holding one neighbourhood lock does not block a distant placement; an intersecting edit times out with 503 and succeeds using the same operation ID after release |
| Deployed mechanical fit | 28 shaft/receiver combinations across four yaws create their connection; offset moves are rejected without changing topology |
The race suite uses independent guest sessions and simultaneous requests with varied dispatch order, through the deployed Function and real Postgres. It observes results through Realtime. These checks establish the tested cases; they are not a formal proof of every possible interleaving.
Capacity measurement#
The reference workload uses a synthetic 2,000-part scene with seven part shapes and twelve independent guests, each with scene, presence, and history subscriptions. Commands mix moves, recolours, deletions, and replacements. Presence heartbeats run every ten seconds; continuous placement-preview traffic is not included. The observer records command dispatch to an authoritative peer SDK snapshot with a monotonic clock. Browser render latency is a separate measurement. Runs begin after initial query admission and fixture loading; they do not isolate cold-wake latency.
The initial full reference run completed 2,880 commands without errors. Peer SDK visibility was 421.9 ms at p50 and 849.3 ms at p95, with a 2,061.6 ms maximum. HTTP receipt p95 was 585.3 ms. The raw result is preserved in artifacts/capacity-original.json.
Batching transaction setup and combining access checks reduced Function processing to approximately 31–32 ms at p50 and 50–51 ms at p95. A subsequent short ws transport run completed 1,585 commands without API or delivery errors, with peer visibility p50 289.9 ms and p95 629.5 ms, and HTTP receipt p95 420.2 ms. Its harness incorrectly flagged a one-command scheduling overshoot as a shortfall; phase scheduling and the shortfall check were corrected for the final run. This short comparison is preserved in artifacts/capacity-optimized-ws-short.json.
An intervening native Node 22 WebSocket comparison was slower and failed to sustain the burst rate. Node's close-handshake behaviour also left completed test processes alive; Node harnesses now use the SDK-supported ws transport. The tests and browser use the same SDK; browsers retain their native WebSocket.
The final full ws run failed qualification. It completed 2,605 of 2,880 requested commands: 1,165 during the burst and 1,440 during the ten-minute steady phase. Observed peer delivery was 551.7 ms at p50, 1,064.6 ms at p95, and 2,848.6 ms maximum. HTTP receipt p95 was 529.7 ms; Function processing p50/p95 was 35.4/62.3 ms. Diagnostics recorded nine resource_exhausted connection losses, one rejected upstream subscription, one other connection loss, and one heartbeat timeout. Eighteen renewal attempts failed, including failures after a connection became unrecoverable. The report contains those failures plus the workload shortfall, and the script exits unsuccessfully. The result is preserved in artifacts/capacity.json and .tools/capacity-final.log.
Successful command delivery to the measured observer does not establish that every participant remained subscribed. Query admission, renewal, and resource limits under sustained load need investigation with the Realtime service before repeating this workload or selecting a smaller public operating envelope. The normal two-browser editor checks passed; that is the demonstrated interactive case, without a promised latency budget.
The proposed 500 ms p95 target has not passed. These measurements qualify neither peer-painted-frame latency nor a public participant cap. Network distance from London to Ohio, HTTP receipt overhead, and Realtime variability remain relevant; low Function processing time alone does not explain all of that latency. Public capacity remains a release gate.
Rendering was checked on an Apple M4 Max with 48 GiB memory, in Codex's in-app Chromium browser at an actual 1280 × 720 CSS viewport. The standard quality setting used DPR up to 1.75, dynamic directional shadows, and a refreshed contact-shadow pass. With 2,000 parts, the inspector observed approximately 10–11 ms p95 frame intervals over a rolling 600-frame foreground window, including an orbit check. The scene reported roughly 1.69 million visible triangles and twelve draw calls before collaborator selection overlays. This measurement does not qualify lower-powered devices or the 5,000-part growth case.
Browser verification#
The browser calls the deployed Function directly. Independent guests joined an isolated room and exercised placement, selection, recolouring, duplicate, move, multi-selection, rotation, repeated undo/redo, and bulk deletion/restoration. A peer received the committed scene and coloured selection outlines. Owner reset restored 26 parts and 37 connections.
The production build on port 4173 created a fresh starter room. Its catalogue thumbnails, static mechanical pieces, inspector, and presentation view were inspected. The 390 × 844 CSS viewport had no horizontal page overflow and supported model viewing and camera presets; editing is intended for desktop. Temporary viewport overrides were reset. Final screenshots are saved under ignored artifacts/.
The subsequent movement UX check used an isolated room in the production build: clicking selected a piece and exposed X/Y/Z handles; direct dragging preserved height and did not orbit the camera; the Y handle changed height, and the X handle constrained movement. Shift-click and dragging a selected member moved a two-part group; undo restored it. An out-of-board drop showed feedback and left the transaction unchanged. Background dragging orbited without an edit. One-shot placement returned to selection, Keep placing allowed repeated additions, and clicking an existing brick in build mode added a stacked brick and its connection. A second guest received the added parts and selection outlines. Read-only inspection of Postgres receipts confirmed one operation per successful drop, preserved group offsets, and constrained coordinates.
Four movement regression tests cover planar and axis snapping, fine movement, preserved off-grid origins and group offsets, immutable pickup revision/connection preconditions, and collision/bounds checks. Eight pointer-lifecycle cases cover click jitter, Escape during a held drag, a single drop outside the canvas, pointer cancellation, lost capture, focus loss, lifecycle cancellation, and disposal. They verify that cancellation releases capture, restores the camera, and submits no edit. Together with the eight geometry tests, all twenty tests pass. Browser checks also verified Escape from the focused Keep placing checkbox and from the optional M pickup tool. These checks do not repeat or change the capacity qualification above.
Surface snapping was then restored to direct dragging and shared with placement, M pickup, and copying. Twelve additional tests cover logical stud height, off-grid targets, group offsets, occupied attachments, axle/beam fits across four yaws, moved receivers, gears, hinges, rotated side bounds, explicit build layers, instanced-mesh target normals, and axis constraints. The suite now has 32 passing tests. In a fresh isolated production-build room, an existing brick dragged onto another brick created its stud connection; a new brick snapped to a free stud; an axle placed through a beam hole and a dragged bearing each created their attachment. M pickup stacked a brick and copying added another connected piece. Surface snapping preserves the movement snapshot's revision and connection preconditions.
The Neon-inspired visual update adds locally bundled Inter, a smaller neonbricks wordmark with its outlined brick on the left, and coordinated light/dark colours for the interface, scene, and thumbnails. Appearance preferences persist on reload and synchronize across tabs; System and keyboard dismissal were also checked. The editor removes duplicate headings and selection actions, and replaces the build-layer panel with automatic snapping and the selected piece's Y handle. In an isolated room, placing a 1 × 1 brick against the upper side of a 2 × 2 brick saved a stacked piece and its stud connection. Four new tests cover upper-edge stud capture, lower-side placement, fine placement, and occupied attachments; all 36 tests pass. The production build passes, with the existing Three.js bundle-size warning.
The revised header, camera controls, toolbar, selection indicator, and help were checked at desktop size and at 390 × 844 and 780 × 844 CSS viewports. Narrow-screen help now wraps within the viewport; neither responsive check had horizontal page overflow. Editing remains intended for desktop. Viewport overrides were reset and the existing user build was preserved. Light/dark previews are saved as artifacts/neonbricks-light.png and artifacts/neonbricks-dark.png. These visual checks do not change the capacity qualification above.
The inspector's responsive position previously let its panel cover its toggle. The panel now anchors above that button, has its own close button, and closes with Escape. Browser checks exercised repeated toggle dismissal, close-button dismissal, and Escape, including 390 × 844 and 780 × 844 viewports. The mobile panel and toggle were separated by 12 pixels. The header's Display menu now contains theme, construction grid, and enhanced lighting controls; grid and lighting were switched off and back on, and Light/Dark rendering was checked. The wordmark is smaller again, and its brick symbol is reduced to three simple paths. Type checking and the production build pass. Viewport and display settings were restored; verification made no scene edits. The updated preview is artifacts/neonbricks-display-controls.png.
Transient renewal failures retry after one second, including when sealing succeeded before the subscription renewal failed. Scheduling uses the estimated server clock. Epoch/disposal guards prevent obsolete callbacks from acting on another room.
Collaborative cursors now use fractional world-space points on actual bricks and the board, with colours and names from viewer presence. The additive migration adds cursor and cursor_at to viewer_sessions; the staging Function validates bounds and updates them under the existing viewer sequence check. Heartbeats preserve sample timestamps, older clients can omit the cursor field, and remote cursors disappear after three seconds without samples. Cursor requests coalesce at up to five per second with one request in flight, while local interpolation smooths their display.
Nine cursor tests cover picking through overlays, board hits, misses, camera reprojection, canvas departure, pointer cancellation, focus loss, hidden tabs, disposal, and touch input. Five sender tests cover coalescing behind a slow request, selection preservation, stationary refresh and departure, transient retries, and stopping during queued or expired requests. The suite has 50 passing tests. test:presence uses independent guests in a disposable staging room and verifies committed cursor delivery over Realtime, ordering, heartbeat timestamps, bounds, viewer ownership, older-client compatibility, clearing, leaving, and delayed packets. Two initial runs timed out waiting for updated live rows at ten seconds after deployment; two subsequent runs passed. These checks make no new latency or capacity claim.
The production-build browser check used a separate rover room, preserving the user's build. A peer saw a cursor on a selected brick and on the board, retained the brick target after switching from 3D to Top view, and cleared the cursor when the source mouse moved into the catalogue or its tab closed. The original 26 parts and 37 connections remained unchanged. The pointer and name preview is saved as artifacts/collaborative-cursors.png.
Cursor animation subsequently changed from fast exponential interpolation to a critically damped spring that adapts to the arrival cadence and preserves position and velocity when a new point arrives. This avoids reaching each point quickly and pausing before the next packet. The sender also removes the extra 200 ms wait after a response: it keeps the minimum between dispatches and the single in-flight request. Seven animation tests cover continuous travel at 200, 350, and 500 ms sample intervals, jittery delivery and stopping, continuity across packets, frame-rate independence, stationary refreshes, and resuming after a backgrounded frame. A sender regression checks the dispatch interval. All 58 tests and the production build pass.
A moving-cursor fixture sent 447 samples over 90 seconds through the deployed Function and Realtime in a disposable rover room. The production-build observer's DOM showed 114 changing projected positions in a 1.9-second observation window, rather than one screen-position change per network sample. The cursor cleared when the fixture ended, with the original 26 pieces and 37 connections unchanged. Observations are saved as artifacts/cursor-motion-observed.json and the preview as artifacts/cursor-smoothing.png. This verifies local animation in that browser; it does not change the public latency or capacity qualification.
An active guest-session renewal was also checked through the deployed API: it extends the sliding expiry and clamps it to the absolute expiry. This is separate from the ten-minute capability-renewal workload.
AI building#
The workshop menu now offers Build with AI. The existing Sam staging branch has AI Gateway enabled, and the deployed Neon Function calls it using the server-side branch credential. Postgres stores generation requests, stages, candidate blueprints, validation results and token counts; Realtime delivers progress. Acceptance creates a new workshop in one transaction with ordinary pieces, connections and connector claims. See AI_BUILDING.md for the versioned format and operating limits.
All 70 unit tests and the production build pass. The AI lifecycle integration test passed three times through the deployed Function, Postgres and Realtime, without paid inference: guest isolation, idempotent reservation, quota enforcement, three concurrent acceptances returning the same workshop, topology import, subsequent edits, collision rejection, cancellation, invalid-candidate rollback and interrupted-work expiry. The existing database regression suite also passed with one trial per race scenario and all 28 mechanical fits. This regression does not replace the earlier 100-trial qualification or the failed capacity measurement.
Three live generations passed with the final gpt-5-4 configuration and medium reasoning:
| Prompt | Pieces | Candidates | Time to ready | Output tokens, including reasoning |
|---|---|---|---|---|
| Cabin with red roof, chimney and pine tree | 46 | 1 | 89.1 s | 12,377 |
| Red and white lighthouse, rock base and sea | 30 | 2 | 87.2 s | 13,121 |
| Yellow exploration rover with chunky wheels | 45 | 1 | 104.2 s | 14,305 |
Each result passed the shared collision, bounds, connector-claim and grounding checks and was accepted into a workshop. The rover includes eight wheel pieces; this is a static model, with separate grounded wheel assemblies, and does not establish a working vehicle mechanism. During tuning, earlier candidates failed geometric checks and a high-reasoning request exhausted a smaller output budget without producing JSON. Failed candidates were never imported. These three successful runs establish the demonstrated examples, not a general success rate, latency promise or cost forecast. Complex prompts may still require a simpler description or a retry.
The production-build browser check used an isolated workshop and preserved the user's existing build. It verified closing and reopening during generation, restoring the ready preview after reload, explicit acceptance, automatic camera framing, selection, recolouring and undo on generated pieces. The prompt dialog was inspected in light and dark modes and at a 390-pixel viewport without page overflow; Escape dismisses it and the textarea receives initial focus. Original display preferences and viewport were restored. Late responses from an older job cannot replace a newer draft, and a long inference request is excluded from presence-clock estimation.
Raw results are saved under ignored artifacts/ai-cabin-gpt-medium.json, artifacts/ai-lighthouse.json and artifacts/ai-rover-gpt-medium.json. The preview is artifacts/ai-preview.png, and the accepted lighthouse is artifacts/ai-lighthouse-workshop.png. Functions use a bounded HTTP invocation with a lease, not a durable job queue; eviction can require retry. These AI checks do not change the public-capacity release gate.
AI builder iteration — 13 October#
Inference now produces compact repeated rows and verified assemblies, expanded into normal version 1 pieces. The limit is 240 expanded pieces. Architectural assemblies include a correctly pitched roof and a tapered pine; mechanical assemblies include fitted wheel/axle/bearing units. Directed surface-support checks permit decks to rest on bearing tops without inventing connector records. Geometry validation still rejects occupied-cell overlaps, bounds violations and conflicting connector claims.
Repairs use row patches rather than whole-model rewrites. Ready drafts can be refined with a follow-up prompt; unaffected rows are preserved. Reservation captures an owned immutable draft snapshot. The prior validated preview remains visible during an update and after failure or cancellation. HTTP/live response-order guards prevent stale stages from undoing cancellation or replacing a newer preview.
A fixed benchmark uses the normal deployed reservation/run/accept path with fresh guests, at most two simultaneous requests, and no automatic retries. Times cover reservation through the run response, excluding acceptance. The first format comparison used GPT 5.4 with low reasoning and whole-design repair:
| Case | Result | Pieces | Calls | Ready time | Output tokens |
|---|---|---|---|---|---|
| Cabin | Passed | 55 | 3 | 96.0 s | 11,327 |
| Rover | Passed | 37 | 2 | 51.5 s | 6,319 |
| Castle | Passed | 51 | 2 | 62.5 s | 8,019 |
| Dinosaur | Passed | 25 | 3 | 62.5 s | 7,506 |
The old-format baseline castle took 89.1 seconds and dinosaur 99.8 seconds. These are single samples, not a controlled latency distribution. Visual inspection of the compact cabin found a valley roof and a block-shaped tree despite geometric acceptance. That led to the verified architectural assemblies and more explicit opening/roof instructions.
Sonnet 4.6 was faster per call but failed both cabin and castle after three attempts (55.0 and 74.3 seconds) on overlaps and support errors. Two subsequent reservations intended to test GPT still selected Sonnet during a mixed-version rollout and also failed. GPT remains the default. The benchmark now verifies source version and model configuration before reserving work. Earlier no-inference failures exposed a Postgres parameter-type ambiguity in progress recording; explicit integer casts fixed it, and the integration suite exercises the real SQL recording path.
All 82 unit tests pass. The deployed no-inference lifecycle suite passed after the SQL fix and response-order changes, including Realtime stages, source ownership/snapshotting, attempt recording, exact usage increments, cancellation rejecting late progress, acceptance and normal editing. One overlapping fixture run was rejected by the intended two-build global cap; it was rerun successfully while idle. Synthetic fixture jobs are cleaned during/following the test; paid generation records remain unchanged. Existing paid reservation timestamps and limits were not reset for testing.
The subsequent GPT cabin passed in 37.3 seconds with 47 pieces and two calls (4,042 output tokens). Its roof was correctly pitched and the tree tapered, but its doorway faced away from the default camera. The same run's held-out windmill failed after three calls (79.3 seconds), with unsupported/colliding blades. A rover trial also failed after three calls, ending with a three-piece antenna one stud outside its support.
These observations produced three further changes: explicit front metadata with whole-model presentation rotation; a complete four-wheel chassis and a supported vertical cross for static blades; and a bounded small-placement snap pass. The real failed rover is kept as a credential-free unit fixture. The snap regression passes through all four declared front directions, preserves the rest of the rover and rejects large gaps, overlaps and partially anchored repeats. All seven verified assemblies pass collision, support and extent checks through four yaws. A roof occupancy regression verifies a ridge rather than a valley.
On builder design-v2-patches-3, the same rover prompt passed through the production UI in 49.4 seconds, with 31 pieces, three calls and 6,026 output tokens. The preview shows four fitted wheels, a readable cockpit, headlights and antenna. This candidate needed model repairs but no automatic snaps. The UI verified an update rejected by the daily budget keeps the 31-piece preview available, and closing/reloading restores that preview even when the newer reservation has no server record. The original user workshop was preserved.
All 86 unit tests and the production build pass. The updated windmill assembly, new-generation doorway orientation and successful paid refinement still need further live qualification; their deterministic geometry/patch tests pass. The staging 40-request allowance was reached during this run. Automatic approval review rejected raising it to 50 without additional user approval; the existing limit was retained for that run. The later budget-policy change below supersedes that allowance.
Current results remain small samples. Raw comparisons are under ignored artifacts/ai-benchmark-baseline, artifacts/ai-benchmark-compact-low, artifacts/ai-benchmark-sonnet-v2, artifacts/ai-benchmark-gpt-v2 (actually Sonnet during rollout), and artifacts/ai-benchmark-gpt-final. The successful v3 rover diagnostics are artifacts/ai-rover-v3.json; its preview is artifacts/ai-rover-v3-preview.png. These checks improve the demonstrated examples but do not establish a general success rate, public launch readiness or a cost/latency promise.
AI Gateway budget policy — October 13#
At the user's request, builder design-v2-patches-4 removes the application's daily and hourly request-count quotas. Neon prepaid credits and Gateway spending policy now control spending. The two-job global and one-job-per-guest concurrency controls remain, along with per-build token and deadline bounds. Financial error details trigger the budget message; generic 429s, token rate limits and daily token limits show a busy message instead.
All 96 unit tests and the production build pass. The deployed no-inference lifecycle regression passes, including reserving a refinement after 41 recent completed fixtures for the same guest, alongside the retained paid-generation records. It also verifies the existing per-guest concurrency rejection. The first live attempt hit the previous Function during rollout; the rerun passed after normal and cache-bypassed health requests reported the new version. Synthetic fixture records were removed; paid generation records and existing workshops were preserved. No inference calls or credit purchases were made to test this change. Budget error mapping is covered with SDK error fixtures, including Neon's documented spending-limit and token-rate-limit envelopes; an actual depleted-credit response was not induced.
Streaming builds and workshop chat — October 13#
Builder workshop-chat-stream-3 opens a blank workshop as soon as a new prompt is submitted. The persistent AI side chat also works in existing workshops. Complete design rows and patches stream through the Gateway, are persisted in Postgres at most every 800 ms, and arrive through Realtime for drawing on the main canvas. The chat reports elapsed time, actual drawing counts, validation and repair activity. Partial drawings may still have fit issues; they remain private drafts until validated and explicitly applied.
Follow-up requests capture the actual workshop's pieces, revisions and connections, including manual edits. Application checks that snapshot and uses the regular edit transaction, spatial locks and undo history. It preserves existing piece identities where patches retain their local IDs. Concurrent changes reject stale application. Discarding a draft also sets aside its unapplied ancestors so they do not reappear on reload. The additive migration stores target, scene snapshot, preview, activity and preview revision on generation rows; it was applied to the Sam staging branch.
All 102 unit tests and the production build pass. The new no-inference workshop suite passed through the deployed Function, Postgres and Realtime: idempotent blank-workshop creation, private history/access isolation, streamed JSON delivery without modifying live pieces, concurrent application to the same workshop, undo/redo, identity-preserving refinement, concurrent-edit conflict, late-drawing rejection and ancestor discard. The existing AI lifecycle suite passed while inference was idle; its first overlapping run hit the intended global concurrency cap. The database regression passed one trial per race scenario and all 28 mechanical fits. These are regression checks, not a repeat of capacity qualification.
A live browser run built a 44-piece cabin with an open doorway, chimney and pine tree in two model calls, with 24.4 seconds of recorded inference, six streamed preview revisions, 8,283 input tokens and 2,944 output tokens. A follow-up asking for only a cobalt-blue roof produced ten colour-only changes and preserved all other pieces and positions. Both drafts were applied to the same temporary QA workshop. Reload restored its 44 pieces, 107 connections and both chat exchanges; closing and reopening the chat restored the conversation. The user's original workshops were untouched. The final preview is artifacts/ai-workshop-chat.png.
The chat is private to its guest author; applied edits are shared with workshop collaborators. Function execution still uses a bounded HTTP invocation rather than a durable queue. These two successful requests verify this flow, not a general AI success rate or latency promise, and do not change the public-release gates below.
Shared workshop AI conversation — October 13#
Builder workshop-shared-chat-2 makes targeted AI requests a workshop conversation. Current members see the latest 50 exchanges with author names and colours. Editors can create, resume, stop, refine and apply requests from any author in that workshop; viewers can read the conversation and watch the draft. Original untargeted builder drafts keep their author-only access. Existing targeted requests become shared without rewriting their data.
One sealed live query now supplies the whole conversation, including newly inserted prompts, progress, previews, final summaries and application/cancellation state. The panel renders those snapshots directly; delayed HTTP responses cannot overwrite them. Membership withdrawal and session revocation empty the query, and denied capability renewal clears cached rows. The query uses the viewing member's session rather than the prompt author's session. Admission serializes competing reservations and allows one active build per workshop, alongside the existing global/per-guest controls.
The first cross-editor application race exposed a lock-order inversion around the initial workshop-title update. AI actions now acquire generation locks before workshop locks. The corrected staging suite passes simultaneous application by multiple editors, with one operation and one winning editor's undo history; undo/redo remain valid. It also passes simultaneous reservations by two authors (one admitted), source refinement and cancellation across authors, discovery of new prompts in both members' subscriptions, author attribution, viewers' denied write actions, outsider denial, membership withdrawal, session revocation, and independence from an expired author's session. The existing no-inference AI lifecycle regression also passes, including old author-only drafts. No paid inference was needed for this change.
All 106 unit tests and the production build pass. Two distinct browser guests opened the cabin QA workshop: the second guest saw both existing exchanges, then both sessions received a synthetic third-author prompt and drawings progressing from six to eighteen to forty-four pieces without reload. They received the same ready-draft controls. At 390 × 844 the chat sits below the canvas. Cleanup removed only that synthetic request; both sessions returned to the original two exchanges and the unchanged 44-piece, 107-connection cabin. Reload on the second guest restored the shared history. The viewport was restored and the extra browser tab closed. Screenshots are artifacts/ai-shared-chat.png and artifacts/ai-shared-chat-mobile.png.
This checks independent browser sessions and a mobile viewport, not a physical-phone network or mobile-hardware qualification. A phone needs a frontend URL it can reach; the development URL on 127.0.0.1 is local to each device. The original user workshops were preserved. These checks do not change the capacity or public-release gates below.
Vercel frontend — October 13#
The static frontend is published at <https://neonbricks-app.vercel.app>, in Vercel project neonbricks-app under samwillis-projects. The verified hostname is attached to the project for future production deployments. The previous temporary hostname redirects with HTTP 308, preserving workshop paths and query strings. Functions, Postgres, Realtime and AI Gateway remain on the existing Sam staging branch.
The uploaded Build Output API bundle contains only static assets and SPA routing, with no Vercel Functions. Only the two public frontend endpoint variables are configured in Vercel; backend credentials are excluded from the bundle. The exact new origin was applied to Function CORS and Realtime. Anonymous requests to the home page, workshop deep link and all three JS/CSS assets returned 200; Function preflight returned 204 with the correct allowed origin.
A new guest on the hosted cabin workshop restored 44 pieces, 107 connections and both shared AI exchanges, and showed Live & saved. At 390 × 844, the chat appeared below the canvas with no horizontal page overflow. The viewport was restored. Screenshots are artifacts/neonbricks-vercel.png and artifacts/neonbricks-vercel-mobile.png. Verification made no scene edits or paid inference calls. Type checking, the production build and git diff --check pass. Physical-phone hardware and network behaviour remain unqualified, as does the public capacity gate below.
AI geometry repairs — October 13#
Builder geometry-repair-1 addresses the failed prompt “A little forest lookout with a red roof”. Its saved final candidate had 95 pieces, 12 detected overlapping pairs and three unsupported bushes. The regression fixture verifies that the bounded snap pass grounds all three bushes while preserving every piece and the existing conflicts, across all four front orientations. Repairs now name source rows and compiled extents, explain wall openings and stair landings, and retain the best fitting candidate when a patch worsens the score or fails expansion. Counts cover every detected issue while the examples remain capped at 30. Initial GPT designs and user refinements use low reasoning; geometry repair uses medium. The existing three-call, 12,000-output-token and 150-second bounds remain.
All 113 unit tests and the production build pass. Both no-inference staging AI suites pass, including shared workshop chat, acceptance, undo/redo and access checks. A new SQL regression verifies that a rejected candidate remains in its attempt record, the retained blueprint remains canonical, and both calls' token usage is counted. Deployment changed only the existing Sam staging Function, with no schema or frontend changes; health reported the new marker before paid testing.
The exact prompt produced a valid 56-piece model in one call, ready in 37.0 seconds, using 3,275 input and 4,118 output tokens. Automatic grounding corrected two pine trees and two bushes without another inference call. Its separate workshop has 118 connections and rendered the raised tower, red pitched roof and surrounding trees on the hosted frontend with Live & saved. This is geometry and rendering evidence; the solid tower walls are less expressive than an open lookout platform. The screenshot is artifacts/ai-lookout-repaired.png; raw diagnostics are in artifacts/ai-benchmark-geometry-repair-1/lookout.json.
A second independent request with the same prompt passed in two calls, ready in 62.7 seconds, with 52 pieces, 90 connections, 8,072 input tokens and 6,497 output tokens. The initial candidate had two wall/post overlaps and two unsupported steps. The repair shortened the side walls and added supporting stair risers, preserving the raised platform, red roof and pine tree. Browser inspection confirmed the open front, stepped approach and Live & saved state. Its separate workshop is 0732a16c; the screenshot is artifacts/ai-lookout-fit-repair.png, and diagnostics are in artifacts/ai-benchmark-geometry-repair-1-repeat/lookout.json. The user's original workshop was unchanged.
A related treehouse benchmark was interrupted during its second call after the first draft reported 30 overlaps, including the trunk crossing the floor/roof and stairs crossing neighbouring steps. The HTTP connection failed after 127.2 seconds; Postgres subsequently recorded an interrupted failure. No candidate was imported. The persisted attempt diagnostics are saved with artifacts/ai-benchmark-geometry-repair-1-treehouse/treehouse.json. This remains a limitation of complex geometry and bounded Function execution; two successful lookouts do not establish a general success rate.
Remaining public-release work#
- Resolve the latency/workload release gate and measure local preview latency and bulk-edit visibility separately.
- Include continuous preview and cursor traffic, cold wake-up, and client memory/subscription growth in final capacity and long-session qualification.
- Rehearse recovery from a prior compatible application release once this first runnable baseline has a successor.
- Add edge-level abuse control for anonymous session and room creation, and settle long-term storage pruning and ownership recovery. This staging demo does not claim those production policies are complete.
- Qualify AI cost, success rate and concurrency for the intended audience, and enforce the desired Gateway spending policy. Per-build token/deadline bounds and concurrency admission do not establish a public service budget.
- Run the five-visitor first-minute usability study and the 5,000-part growth test.
- Measure command dispatch to a peer's actual painted frame if the launch makes a browser-render visibility claim. The capacity script measures authoritative SDK delivery.
- Qualify the intended public audience's hardware and network. Current rendering evidence comes from an M4 Max.
For the next phase, specify joint degrees of freedom, movement envelopes, and shared control before animating the hand crank. Motors should use database control state plus timestamped phase anchors, with client interpolation, as outlined in PLAN.md.