Floorplan integration receipt¶
Pinned upstream¶
- Repository: https://github.com/haydenschmitty/floorplan
- Commit:
5e3eaac9639705f52e5e31b620a0d20550acd9dd(version 0.8.0). - License: MIT, copyright 2026 Hayden Smith. The complete license is preserved in
ehr-floorplan/LICENSE-Floorplan.txt; bundled ELK, Inter and JetBrains Mono notices are preserved beside it. - Read: the pinned
README.md,LICENSE,docs/unattended.md,skills/floorplan/SKILL.md, schema, boundary and description references. - The supported headless workflow is documented in Running without an agent session. No global plugin install, agent login, API credential or running Ask service was needed.
Reproduce¶
Run from the repository root, with PowerShell 7, Git and Node 18+:
git fetch origin
pwsh -NoProfile -File ehr-floorplan/regenerate.ps1
The script pins Floorplan, archives web/ from origin/wt/WT-dc65/fhir-demo and ehr-track/ from origin/wt/WT-dc65/ottehr-track, and snapshots current Forge Studio source. It writes scratch files only under ignored ehr-floorplan/.work/. Original source folders are read-only. Optional -DemoRef <commit> and -OttehrRef <commit> reproduce the branch inputs recorded in ehr-floorplan/provenance.json.
Before invoking upstream code, regeneration rejects any dirty upstream checkout, including one whose HEAD already equals the pinned commit. A review regression introduced an untracked sentinel at the exact pin; regeneration exited 1 with Upstream checkout is dirty; leave it untouched. before running Floorplan scripts. The sentinel was removed afterward and the upstream checkout was clean. This fixes the earlier conditional check that only examined dirty state when changing commits.
The Forge source snapshot includes src/, mockup/, root source/build files and scripts/*.mjs, including the static-asset preparation step. Generated public/, dist/, dependencies and upstream checkouts are excluded.
It calls upstream scan.mjs, build.mjs, and describe.mjs with --unattended --json, fills the documented description format with reviewed descriptions, validates complete coverage, and calls generated floorplan/serve.mjs --export <absolute-output-path>. This export command writes the HTML and does not start a server. New files or routes deliberately stop regeneration until their descriptions are reviewed. Node is required by upstream; PowerShell only orchestrates its documented CLI.
The generated output is ehr-floorplan/index.html, a self-contained export of upstream's generated floorplan/index.html. Export removes the Ask bar, editor links and machine paths. Forge Studio serves it at /floorplan-map/index.html and embeds it at /floorplan in sandbox="allow-scripts". There is no allow-same-origin grant. Pan, zoom, file descriptions and guided flows use the bundled viewer; no runtime CDN is needed. Static export intentionally omits live AI questions, write operations and live refresh.
Scope and limitations¶
The map covers JavaScript, TypeScript, Vue, HTML and CSS in the three selected areas. C# and PowerShell files are excluded from the rendered map. Floorplan does not provide the C# semantic parser needed for the backend: use Forge Studio's Roslyn Blueprint. For precision, this pinned release recognizes .cs (scripts/lib/common.mjs:100) and regex-extracts public type names (scripts/lib/extract.mjs:645–646); that limited pattern matching is not a Roslyn map or a complete call graph.
The explicit viewer-to-risk-function connection describes a presenter-configured Oystehr deployment. A source map does not establish that Oystehr is deployed or that tests passed. The source snapshot and export SHA-256 hashes, exact branch commits, file counts and build metrics are in ehr-floorplan/provenance.json; the real build output is in ehr-floorplan/build-receipt.txt.
Recorded run¶
The final regeneration succeeded with 61 mapped files, 65 links, 0 unassigned files, 61/61 file descriptions, 0/0 route descriptions and 11 detected screens. Inputs: demo 1a21de5f7e62c67dc51b1d8ada0f9bfb4ad9dbe0 (pass 8), Ottehr a2e5bf9faf3a3857c83b0b2e5971e8a0932a2870, and current Forge working files including Story, Lineage, BuildTimeline and sketches. No headless failure blocks this integration.
An initial export attempt used a relative output path and failed with ENOENT: no such file or directory, open 'C:\Users\fives\ehr-floorplan\index.html'. The documented export resolves the output against the process working directory; the regeneration script now passes an absolute output path. The successful export is present. A subsequent new-file check correctly stopped on forge-studio/src/story.ts; its reviewed description was added and regeneration then succeeded.
The initial scan's one low-severity finding marked ehr-track/viewer/serve.mjs as apparently unused. It is a standalone local-server entry point, not an imported module; nothing was deleted based on this heuristic. This static map is not a security audit.
Browser inspection of /floorplan in Edge headless at 1280×900 confirmed the required allow-scripts sandbox renders six real map nodes: Patient chart, Forge Studio, Oystehr risk rules, Oystehr card viewer, Checks and receipts, and Oystehr services. #viewport contained 124 descendants; the layout indicator's computed opacity was 0. Upstream renders node labels as HTML .title elements inside SVG foreignObject, not SVG text. The initial story check used the wrong #viewport text selector; it was corrected to #viewport .node .title. No upstream HTML or sandbox relaxation was needed. The permanent “Laying out…” element is hidden by opacity after layout, so its presence in innerText alone is not a loading failure.