feat(gatorwalk-factory): studio Design mode: the engine in the page, a lane layout, and Copy reference (swamp-club #2807) #402
Loading…
Reference in a new issue
No description provided.
Delete branch "cue/2807-gatorwalk-factory-studio"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes swamp-club #2807.
The studio's Design mode: one factory definition on one screen, with gatorwalk's own schema check and graph analysis re-run in the browser whenever the file changes. The page never edits. The agent writes the file, and Copy reference hands the agent a one-line pointer to a stage, exit, gate or finding.
What's in it
studio/src/model.tsreads the text with@std/yaml, asvalidatedoes, then runsDefinitionSchema,analyzeDefinitionanddesignView, imported by relative path. Theyamlpackage maps document paths to source lines. zod'sjitlessis set first, so the server's no-eval CSP isn't tripped.layout.ts, ported from the prototype): rows are tracker statuses, columns follow flow order, and every edge gets its own track, port and entry point. Tests on every example definition check that no edges overlap, no edge passes through a tile, and the output is deterministic.namefield.localStorage), kept until the stage is selected, plus a "Mark all seen" button.ccopies a reference (only when focus is in the graph, findings or inspector, per WCAG 2.2 SC 2.1.4). Plus reduced motion and phone width.ENGINE_INPUTS, checked againstdeno infoat build time and by a static import walk in the unit tests), plusdeno.jsonanddeno.lock. A change to one of those engine modules now needsdeno task build:studioin the same PR. The page is split into three generated modules, each under 800 KB; the script is 670 KB.studio/joins the unit test command, with--allow-env=LOG_TOKENS,LOG_STREAMonly, the two variables theyamlpackage reads (in bothdeno.jsonandverification/checks.yaml). The acceptance test adds a plan → implement exit toswamp-club-swamp-extensions.yamland expectsambiguous-exitandproduct-missing-on-path,planmarked changed, and a reference line naming the file, path and code.driving.md(how to read a pasted reference line).Verified
verify-build13/14 (codegen idempotency skipped) andverify-reviews3/3 pass on906cddd. The attestation is posted.maingained #2711 after verification. A local merge with it passesintegration/extension/skill_test.ts(12/12).Five low review findings remain (a stale-page Copy reference, the Findings count after a failed reload, a followed finding's trace, a string-named import in the test-time walk, and inspector display joining). They're for a follow-up issue.
🤖 Generated with Claude Code