Skip to content

Forge Studio — FHIR, explained

Current delivery: Pass 3 adds nine use-case chapters, three explanation depths, a glossary and a generated API map. Earlier pass receipts and limitations below are historical; the Pass 3 section records the current checks and remaining source gaps.

Prototype by Cedric Jones (Codex), worker #2, for Clahadore Jones (Claude). Scope: forge-studio/, tools/FhirDemo.CodeGraph/, architecture/, and this guide. No application source, production web app, tests, infrastructure, or BI files were edited.

Run

Requires .NET 10 SDK and Node.js 24. Verified with Node 24.18.0 and .NET SDK 10.0.400-preview.0.26322.102. All direct npm dependencies are pinned exactly; package-lock.json pins the dependency tree.

From the repository root:

dotnet run --project tools/FhirDemo.CodeGraph
cd forge-studio
npm ci
npm run build
npm run preview -- --port 4178 --strictPort

Open http://localhost:4178/ for the guided story; /mockup retains the sketch surface. Keep the preview process running while presenting. The preview binds all interfaces for phone access on the same network; use the host's LAN address and port 4178. Build assets and synthetic snippets are static; no API, Docker, database, credentials, or CDN is needed at runtime. Initial npm/NuGet restoration requires network access. Stop preview before npm ci on Windows because the running Vite process locks its native bundler file.

Direct pages: /mockup, /mockup/puck/, /architecture, /blueprint, /blocks, /source. /mockup/puck resolves to the isolated Puck entry. Vue and React have separate HTML entries; Puck is never mounted inside a Vue page. LikeC4 builds its own static viewer under /architecture-view/; npm run build regenerates it from architecture/model.c4.

The Roslyn scanner locates this repository from its executable path, scans local src/**/*.cs, and writes forge-studio/public/codegraph.json. If local src/ is absent it reads sibling ../fhir-pipeline-demo-wt-WT-dc65/src. Override either location explicitly:

dotnet run --project tools/FhirDemo.CodeGraph -- --source C:/path/to/src --output forge-studio/public/codegraph.json

It never runs the target application's build targets or analyzers. It excludes bin/obj, parses C# using Roslyn, builds an in-memory compilation using runtime references, and emits types, public/interface methods, declarations, resolved call edges, and type dependencies. Unresolved calls are omitted rather than guessed. Regenerate after merging the main worker's source; the committed snapshot is real code, not a stub, but it is a point-in-time partial semantic graph. Private methods, constructors, local functions, and top-level API endpoints aren't separate nodes. Source snippets are deliberately published as part of the demo: scan only source approved for presentation, never a repository containing credentials.

90-second demo script

Time Action and words
0–18s Open Live mockup. “This is synthetic. I start where the doctor starts: the patient chart. We can discuss a risk card, an allergy, or the form before committing to an implementation.” Edit chart text or add a card. Explain that this sandbox uses a constrained GrapesJS editing surface.
18–30s Open typed Puck components. “The sketch becomes typed components with explicit properties. Promotion to production Vue/Vuetify is a reviewed implementation step, not an automatic conversion.”
30–48s Zoom to C4 architecture, advance two tour steps, and open the containers view. “FHIR records become patient facts and population history. The doctor gets a chart; the care team gets trends. Azure here is a proposal.”
48–62s Zoom to Blueprint. “These are real C# symbols, extracted with Roslyn. We can inspect resolved dependencies and calls.” Select a node; point to its file and snippet. “This is a partial graph, not an execution trace.”
62–79s Open Method blocks, switch from A1c to uncontrolled BP. “The clinical reasoning is visible. Two of the last three qualifying readings cross the demo threshold. Changing a block updates a C# proposal beside it.”
79–90s Click actual C# source. “This is the actual method. The blocks never overwrite it. Developers review and test a proposal before promoting it. The same system can be explained to a doctor, a care manager, and a developer.”

Phone shortcut: use the Rete node selector rather than the canvas; use Blockly Fit blocks. The visual editors are best on a laptop. Do not claim the demo rules are clinically validated or that sketch cards are calculated from the live application.

Three explanations of each level

Level Plain Middle Complex
Live mockup Agree on what the doctor should see. Sketch risk cards, allergies, and an add-allergy form; then express the screen as typed components. GrapesJS 0.23.9 (BSD-3-Clause) runs headlessly inside sandbox="allow-scripts", with a local HTML editing surface backed by its component model and undo manager. Puck 0.24.0 (MIT) runs in an isolated React entry with typed RiskCard, AllergyTable, and AllergyForm configuration. Neither writes to a backend.
C4 architecture Show where information comes from and where it goes. FHIR sources feed operational SQL records and DuckDB bronze/silver/gold; the API serves the chart and Metabase serves population reporting. workspace.dsl defines Structurizr context, containers, deployment, and a chart sequence. model.c4 defines equivalent LikeC4 logical/deployment views. The static interactive viewer uses hash navigation. Azure Container Apps, Azure SQL, Key Vault, and Service Bus are explicitly undeployed proposals.
Blueprint Show which pieces of code work together. Pick an actual type or method and follow its resolved calls and dependencies. Rete.js v2 uses Vue 3 rendering, area, minimap, ELK auto-arrange, and the readonly plugin. The canvas filters and caps at 60 symbols; the selector exposes all symbols. Self-loops are omitted from the canvas but retained in relationship text. Roslyn IDs, source paths, line numbers, snippets, and semantic edges come from static JSON.
Method blocks Make the rule understandable enough to question. Change lab codes, thresholds, trend length, and cited resources while reading the proposed C# result. Unforked Blockly defines typed expression/statement blocks and a C# generator. A1c and BP presets serialize into real workspaces. Generated RiskInputs/RiskFlag contracts are proposed adapters, not production types. Missing data is not imputed. Strings are escaped; citations are examples requiring binding to evaluated resources. The source banner states: “Generated code is a proposal; the C# source stays the source of truth.”
C# source Show exactly what was implemented. The selected symbol links back to its real source file and line. Prism syntax-highlights escaped C# snippets from codegraph.json. Selection is retained across blueprint/source navigation in session storage. The rule-page source button resolves the actual risk method from the graph. Nothing executes, edits, or compiles source in the browser.

The A1c visual example deliberately combines latest value ≥5.7 with a rising three-result trend; the actual risk method reports range and trend separately. This difference is disclosed in the UI. The BP adapter must preserve the real method's complete paired readings, dates/as-of filter, and systolic OR diastolic comparison before taking the last three. Generated proposals require review and meaningful tests before adoption.

Traceability: SPEC's patient chart/outbox, shared risk library, two data tracks, and Azure proposal; REQUIREMENTS-TRACE A1, A4–A7, A9–A10, J1–J4, J9–J13. This companion explains the demo; it does not claim to implement the production pipelines.

Verification receipts

Actual command outputs and browser receipts appear below. Browser integration checks are reproducible with node verify.mjs from forge-studio while preview is running on 4178. They use installed Microsoft Edge; BROWSER_CHANNEL=chrome selects Chrome. STUDIO_URL overrides the URL. They check rendered controls and interactions, not just SPA HTTP fallback responses.

NOT DONE

  • Native GrapesJS drag-and-drop canvas: Chromium produced Cannot read properties of null (reading 'open') and Cannot read properties of null (reading 'querySelector') when GrapesJS tried to access its nested frame from an opaque sandbox. The required sandbox="allow-scripts" remains unchanged. A working, explicitly labeled GrapesJS component-model surface supports text edits, adding a card, undo/redo, and reset; it is not the full native GrapesJS canvas. No allow-same-origin exception was taken.
  • Original Forge design reference: the supplied C:/Users/fives/source/repos/fleet-docs-hub/docs_src/forge-specs/forge-updated-design.md does not exist in this machine's checkout. A filename search found no replacement. Implementation follows the user's explicit five-level brief and the two available domain documents.
  • Structurizr parser validation: Java/Structurizr CLI is unavailable. DSL was checked against official syntax; only the LikeC4 model has executable parser/build validation.
  • Full call graph: target NuGet/project build references are intentionally not loaded in the lightweight scanner. Missing references produce diagnostics and omitted edges; the viewer exposes those limitations. It is not whole-program analysis.
  • Commit/push gate: required Clahadore review is currently blocked by the usage governor: native state unavailable — refusing automated claude -p spend (fail-closed). Running its suggested UsageGovernor scan returned GREEN but retry remained denied. Jenny's CLI requires login and timed out. The gaming-PC council timed out after 300 seconds; no streaming council tool is available. Local Ollama returned no concrete bug findings. A supplemental independent Cedric review found no P1/P2 issues, but is not a replacement for the required council chair. No bypass flag was set. Commit and push remain pending until the gate is available or the user explicitly authorizes an exception.
  • Performance: visual editor bundles exceed Vite's 500 kB chunk warning threshold. Routes are lazy-loaded and operate without a runtime CDN, but first visits to editors transfer sizeable assets. Browser cache helps repeat visits.

Implementation references

GrapesJS canvas API, Puck configuration, Rete readonly, Rete Vue renderer, Rete ELK arrangement, LikeC4 CLI, Structurizr DSL.

Final recorded outputs - 2026-11-12

npm ci exited 0:

npm warn deprecated deep-diff@1.0.2: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

added 257 packages, and audited 258 packages in 34s

52 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

npm run build exited 0 (tail; includes the disclosed bundle warning):

dist/assets/Source-B0ejmA64.js                        27.62 kB │ gzip:  10.53 kB
dist/assets/chunk-ZOLLDKZQ-BMDSf0Qv.js                69.15 kB │ gzip:  25.39 kB
dist/assets/chunk-FWBFOZBF-Byp8o6Cv.js               123.76 kB │ gzip:  42.60 kB
dist/assets/dist-Dnn1hAry.js                         297.74 kB │ gzip:  91.31 kB
dist/assets/main-7rwVXRF9.js                         640.52 kB │ gzip: 203.45 kB
dist/assets/puck-MLuwmC5r.js                         702.73 kB │ gzip: 196.03 kB
dist/assets/Blocks-D4pcVcb2.js                       723.24 kB │ gzip: 199.61 kB
dist/assets/Mockup-D_DPRW4n.js                     1,220.86 kB │ gzip: 314.17 kB
dist/assets/Blueprint-D9WSYQCa.js                  1,448.19 kB │ gzip: 445.48 kB

[plugin builtin:vite-reporter] 
(!) Some chunks are larger than 500 kB after minification. Consider:
- Using dynamic import() to code-split the application
- Use build.rolldownOptions.output.codeSplitting to improve chunking: https://rolldown.rs/reference/OutputOptions.codeSplitting
- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.
✓ built in 717ms

dotnet run --project tools/FhirDemo.CodeGraph exited 0:

CodeGraph REAL: 19 files, 85 nodes, 126 edges
Source: C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src
Output: C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65-forge\forge-studio\public\codegraph.json
Local src/ absent: scanned the sibling implementation worktree read-only. Regenerate after merging source.
Partial semantic graph: Roslyn syntax-tree compilation with runtime references; project NuGet references and conditional build configurations are not loaded. Only resolved semantic call/dependency edges are emitted; external and unresolved calls are omitted. This is an inspection graph, not a complete execution trace.
Scanned 19 files; 494 compilation diagnostics; 813 unresolved invocation sites. No application build or execution was attempted.
Nodes include type declarations and public/interface methods. Private methods, constructors, local functions and top-level statements are not standalone nodes. Top-level API endpoints are not represented. A type snippet includes its complete declaration.

Edges: 10 calls, 32 declarations, 84 type dependencies. Source was read from the evolving sibling worktree; regenerate after integration.

Preview command: npm run preview -- --port 4178 --strictPort. Actual curl.exe -s -o NUL -w "<route> HTTP %{http_code}\n" http://localhost:4178<route> results:

/mockup HTTP 200
/mockup/puck HTTP 200
/architecture HTTP 200
/blueprint HTTP 200
/blocks HTTP 200
/source HTTP 200

node verify.mjs exited 0, Microsoft Edge headless, desktop 1440x1000 and mobile 390x844:

PASS /mockup HTTP 200; rendered and interacted; browser errors=0
PASS /mockup/puck/ HTTP 200; rendered and interacted; browser errors=0
PASS /architecture HTTP 200; rendered and interacted; browser errors=0
PASS /blueprint HTTP 200; rendered and interacted; browser errors=0
PASS /blocks HTTP 200; rendered and interacted; browser errors=0
PASS /source HTTP 200; rendered and interacted; browser errors=0
PASS mobile /mockup 390px viewport / 390px document
PASS mobile /architecture 390px viewport / 390px document
PASS mobile /blueprint 390px viewport / 390px document
PASS mobile /blocks 390px viewport / 390px document
PASS mobile /source 390px viewport / 390px document

Pass 2

Guided Story is the new home (/), with eight chapters at /story/problem, /story/data, /story/models, /story/predictions, /story/parity, /story/tracks, /story/migration, and /story/built. Each has Plain / Middle / Complex explanations, a live visual tool, tool badges, zoom links, previous/next navigation and commit-pinned source documents. The old /mockup home includes Start the story. Public copied prose uses Jones names.

The steering additions use the actual tools: Structurizr DSL and LikeC4 component / Way 1-versus-Way 2 / planned migration views; Rete risk lineage and migration pipeline; GrapesJS data-model and migration sketches; typed Puck DataProfileCard, MappingChainRow, LineageStep, ReconciliationSummary; and editable Blockly migration rules producing a C# proposal. These are inspection and proposal surfaces; they do not execute a migration. Vue/TypeScript extends the existing browser app and upstream Node integrations. The Agent Rail evidence exporter and Roslyn scanner use C#.

Evidence and regeneration

Final source snapshot: main 0a8d5aae715e, fhir-demo 1a21de5f7e62c67dc51b1d8ada0f9bfb4ad9dbe0, Ottehr a2e5bf9faf3a3857c83b0b2e5971e8a0932a2870. Full hashes and per-document states are in forge-studio/public/story-sources/manifest.json. Refresh with pwsh -File forge-studio/scripts/Refresh-Story.ps1 -Fetch; rebuild afterward. See story receipt.

Pass 8 landed during this pass. The refreshed story includes its real DATA-PROFILE.md and DATA-MODEL.md: 93 fixture files, 10 clinical Patient records and 2 Ottehr Patient records are separate populations; repeated versions count separately. It also includes the later demo VERIFY.md report Parity PASS: 12 patients, 56 flags identical. This is a recorded fixture comparison, not rerun by Forge Studio or proof of live Oystehr execution. The older pinned Ottehr document still records the earlier three ASCVD differences and 0x800711C7 runtime block; both are disclosed chronologically.

Pass 8's component DSL is published at docs/architecture/components.dsl, rather than the requested root architecture/components.dsl. The refresh script now resolves that documented fallback and records its actual pinned path. The full source is copied into the story; Forge's LikeC4 view is a separately authored, consolidated explanation of the same responsibilities.

NOT DONE — migration evidence: a pass 9 migration guide remains absent at the captured demo commit. The story labels this placeholder and gives the regenerate command. All migration screens, rules and pipeline stages are PLANNED.

Floorplan

Upstream haydenschmitty/floorplan, pinned 5e3eaac9639705f52e5e31b620a0d20550acd9dd (0.8.0), MIT. The documented unattended scan/build/describe/export workflow succeeded. ehr-floorplan/index.html is the real self-contained export, served at /floorplan-map/index.html and embedded at /floorplan with sandbox="allow-scripts". Notices for Floorplan, ELK and fonts accompany it. No runtime Ask server or global plugin install is needed. It maps web/, Forge Studio and ehr-track/ from the recorded sources.

The pinned Floorplan version regex-extracts a few C# names, but has no C# semantic parser. Our map deliberately excludes C#: use Roslyn Blueprint for that. Regenerate with pwsh -File ehr-floorplan/regenerate.ps1. Complete commands, provenance, export hash and real metrics: Floorplan receipt, ehr-floorplan/provenance.json, ehr-floorplan/build-receipt.txt.

Agent Rail

Upstream oxnw/agentrail, pinned ac75225f090ac67fafbdf63b3fdcd5ad520d867d (0.1.8). Its README and LICENSE specify AgentRail Source-Available License 1.1; the Product Hunt launch page advertises Apache 2.0. We follow the pinned repository terms and use Agent Rail locally only. No upstream source or credentials ship in Forge Studio.

agentrail init succeeded with AGENTRAIL_HOME=agentrail/state, disabled provider integrations, disabled telemetry, loopback binding. Native TaskStore accepted 13 retrospective tasks; export includes 3 real demo-safe tags. Reviewer requests are separated from actual recorded outcomes; pending gates remain pending. agentrail/timeline.json powers /built. Native tasks and a C# exporter are retained for reproduction; upstream dependencies/state are ignored. No GitHub, Linear or CI connection and no coding runner was invoked. Local upstream npm audit reported four high-severity dependencies, recorded without claiming remediation. Full commands and doctor output: Agent Rail receipt.

Refreshed Roslyn graph

pwsh -File forge-studio/scripts/Refresh-CodeGraph.ps1 -SourceWorktree C:/Users/fives/source/repos/fhir-pipeline-demo-wt-WT-dc65-forge-source-pass8 exited 0. It fetched the demo branch and scanned a clean detached worktree outside this worktree at 1a21de5f7e62c67dc51b1d8ada0f9bfb4ad9dbe0. No target build/execution or edits were performed in that checkout. Provenance: forge-studio/public/codegraph-provenance.json.

CodeGraph REAL: 98 files, 216 nodes, 460 edges
Scanned 98 files; 469 compilation diagnostics; 833 unresolved invocation sites. No application build or execution was attempted.

The diagnostics are missing-reference/static-compilation limitations, not a successful target-app build. Only resolved edges are emitted. The refresh script refuses dirty or stale source worktrees and asks for a new path rather than resetting them.

Verification

npm ci exited 0:

added 257 packages, and audited 258 packages in 39s
found 0 vulnerabilities

npm also reported install-script approval warnings for esbuild and rete. Build and browser receipts below record whether the installed packages functioned; no approval policy was changed.

Pass 2 limitations and gate status

  • NOT DONE — original design reference: C:/Users/fives/source/repos/fleet-docs-hub/docs_src/forge-specs/forge-updated-design.md is absent on this PC. Followed the supplied task and steering note; no claim of reviewing that unavailable document.
  • NOT DONE — session registry update: worktree-identity update --help could not run: An Application Control policy has blocked this file. Existing WT-dc65 branch identity was preserved.
  • NOT DONE — Structurizr executable validation: no local Java/Structurizr CLI. LikeC4 equivalent views have executable validation; the portable DSL is not claimed parser-validated.
  • Prior native GrapesJS sandbox limitation remains: the working surface uses its component model, editing and undo; no native nested drag-and-drop canvas claim. Puck components are explicitly typed manually, not automatically translated.
  • Commit gate pending: Clahadore invocation exited 2: USAGE-GOVERNOR: native state unavailable - refusing automated claude -p spend (fail-closed). No human-only bypass was used. Gaming council returned timed out awaiting tools/call after 300s; streaming council tool unavailable. Jenny returned Error: authentication timed out. Local Gemma returned a summary rather than a usable review verdict. Supplemental independent Cedric review does not replace the required chair.

Final UI verification (Pass 2)

npm run build exited 0: asset preparation, vue-tsc --noEmit, LikeC4 generation and Vite production build all succeeded. The existing warning about chunks larger than 500 kB remains; editor routes are lazy loaded. npm run preview -- --host 127.0.0.1 --port 4179 --strictPort serves the built site. All 24 requested routes/assets checked with curl returned HTTP 200 (SPA responses were followed by browser assertions):

/; /story/problem; /story/data; /story/models; /story/predictions;
/story/parity; /story/tracks; /story/migration; /story/built;
/mockup; /mockup?screen=data; /mockup?screen=migration; /mockup/puck/;
/architecture; /blueprint; /lineage?mode=risks; /lineage?mode=migration;
/blocks; /blocks?rule=migration; /source; /floorplan;
/floorplan-map/index.html; /built; /build-timeline.json
All HTTP 200.

STUDIO_URL=http://localhost:4179 node verify.mjs exited 0 in Microsoft Edge: all six original pages rendered and interacted; five original mobile routes remained 390px wide; browser errors = 0. The architecture assertion was updated for its new title and view selector.

STUDIO_URL=http://localhost:4179 node verify-story.mjs exited 0. Real output:

PASS source provenance: 12 immutable receipts; local copies load; missing inputs labeled
PASS story problem 390px: 3 depths, Structurizr rendered, 390px document, browser errors=0
PASS story data 390px: 3 depths, GrapesJS rendered, 390px document, browser errors=0
PASS story models 390px: 3 depths, Structurizr rendered, 390px document, browser errors=0
PASS story predictions 390px: 3 depths, Blockly rendered, 390px document, browser errors=0
PASS story parity 390px: 3 depths, Structurizr rendered, 390px document, browser errors=0
PASS story tracks 390px: 3 depths, Structurizr rendered, 390px document, browser errors=0
PASS story migration 390px: 3 depths, Rete.js rendered, 390px document, browser errors=0
PASS story built 390px: 3 depths, Agent Rail rendered, 390px document, browser errors=0
PASS story problem 1280px: 3 depths, Structurizr rendered, 1280px document, browser errors=0
PASS story data 1280px: 3 depths, GrapesJS rendered, 1280px document, browser errors=0
PASS story models 1280px: 3 depths, Structurizr rendered, 1280px document, browser errors=0
PASS story predictions 1280px: 3 depths, Blockly rendered, 1280px document, browser errors=0
PASS story parity 1280px: 3 depths, Structurizr rendered, 1280px document, browser errors=0
PASS story tracks 1280px: 3 depths, Structurizr rendered, 1280px document, browser errors=0
PASS story migration 1280px: 3 depths, Rete.js rendered, 1280px document, browser errors=0
PASS story built 1280px: 3 depths, Agent Rail rendered, 1280px document, browser errors=0
PASS home, Start the story, previous/next and per-chapter depth memory
PASS story tool switch data → Puck: actual tool content rendered
PASS story tool switch migration → GrapesJS: actual tool content rendered
PASS story tool switch migration → Puck: actual tool content rendered
PASS story tool switch migration → Blockly: actual tool content rendered
PASS story tool switch built → Floorplan: actual tool content rendered
PASS complete three-level team source is readable in the story

Screenshots: all eight chapters at 390px and 1280px, sixteen files under docs/screenshots/forge-story-*.png. These are the explicit screenshot deliverables requested alongside the normal path allowlist. Browser checks verify actual nested tool content, distinct depth text, previous/next navigation, per-chapter depth memory, source copies, no horizontal document overflow, and no external runtime requests on the primary chapter tools. The complete three-level team document opens inside the story.

node verify-lineage.mjs exited 0: five risk selections each rendered eight nodes/seven edges and verified their FHIR/SQL/gold details; actual C# source navigation worked; eight planned migration stages rendered; three connected migration blocks generated ordered skip/map/reject C#; both typed Puck screens rendered; 390px selectors worked; embedded navigation retained its isolated presentation; browser errors = 0.

Browser-driven fixes: Blockly originally requested https://static.blockly.com/media/sprites.svg; media and its license are now bundled under /blockly-media/. Floorplan's first check incorrectly expected SVG text; the upstream renders HTML titles inside foreignObject. Corrected selector verifies six real map cards inside the unchanged opaque sandbox. No browser failure is hidden by an HTTP-only check.

Supplemental independent review found no P1 and two P2s, both fixed: Agent Rail evidence is bounded to each pass rather than leaking later receipts into earlier passes; Floorplan rejects dirty upstream files even when HEAD matches its pin. Exporter boundary regressions and a dirty-at-pin Floorplan rejection test passed. Tool tab navigation now preserves embedded mode. The required Clahadore chair remains unavailable; supplemental review does not claim to satisfy that gate.

Final Floorplan export: 61 files, 65 links, 61/61 descriptions, 0 unassigned, 11 detected screens. The generated HTML and provenance file record the exact source and export hashes. Source descriptions cover the final Story, lineage, timeline, sketch, asset-preparation and browser-verification files.

Pass 3

Synthetic data only. Nine chapters explain the whole system for a phone conversation. Each offers Plain, Middle and Complex views, a working visual tool, repository-relative source paths linked to immutable revisions, a live-demo link, a glossary drawer, and a final What I'd say if asked answer.

Forge: https://forge-studio-8y3.pages.dev · FHIR demo: https://fhir-pipeline-demo.pages.dev (HTTP 200 verified). The orchestrator owns redeployment of Forge; pushing this branch does not update the live site. The current demo changes pages through application state, so links open the actual site with instructions naming the page to select. No nonexistent deep links are invented.

Chapter Route Working visual / evidence
The SSM way /story/ssm Rete: Observation → bronze → silver → gold, with the separate shared-rule calculation → risk flag → outreach path.
The Innovare way /story/innovare C4 component view, GrapesJS sketch and typed Puck components; conceptual MVC responsibilities inside API and Vue.
The Oystehr way /story/oystehr C4 parity view; Ottehr vs Oystehr, M2M credentials, project scope, Zambda and seed transaction; R4B requirement distinguished from older /r4 evidence.
Every API endpoint /story/api and /endpoints Nine operations generated from real OpenAPI; purpose, request/response examples, security evidence and generated page consumers.
The migration system /story/migration Rete with real pass-9 classes; Blockly proposal and typed Puck screen. Local fixture rehearsal is separate from unexecuted cutover.
The executive summary tool /story/summary Agent Rail mini-timeline: council plus three security-veto rounds, clearly labeled pending receipts. Quote-only release, FactGuard dimensions, in-tenant MedGemma and BAA break-glass are the requested roadmap.
Predictive reports both ways /story/predictions Blockly rule and Rete inputs; live demo Population reports and Compare instructions.
Everything as code /story/code Structurizr deployment source and equivalent LikeC4 viewer: live Pages hosts, configured GCP infrastructure, and explicit missing deployment IDs.
How it was built /story/built Agent Rail evidence and Floorplan; public Jones names and requested-versus-recorded review distinction.

Source generation and provenance

The story snapshot reads origin/wt/WT-dc65/fhir-demo using git show; the captured commit is 37aea0b63c370f23259e35cac1959c9c65b238b4. Sixteen manifest entries include docs/levels/*, docs/MIGRATION.md, docs/VERIFY.md, deployment guidance, architecture and data models. Missing documents retain explicit placeholders and regeneration instructions. Ottehr receipts remain pinned separately and are identified as older evidence where appropriate.

Pass 9 records a local fixture migration: 3,188 resources created; zero updated/rejected/conflicted; ten patients; 48 identical flags; negative control catches 2/2 injected errors. It does not demonstrate operational-source export or live Oystehr cutover. The chapter retains the upstream out-of-scope list and unexecuted cutover runbook.

The C# endpoint generator lives at tools/FhirDemo.CodeGraph/EndpointMap/. It uses the actual captured /openapi/v1.json, asserts exact method/path equality against source definitions, and derives page consumers from Vue service callsites. Six operations have mapped Vue uses; three honestly report no direct Vue consumer. The operation inventory is never handwritten. Health/metadata routes omitted by the API's own OpenAPI document are disclosed in the capture receipt.

The first OpenAPI capture came from an existing compiled sibling API, isolated on loopback with an empty local fixture database, read-only mode and auth disabled. It was not rebuilt during capture. Assembly SHA-256 and the precise binary/source equivalence limit are recorded in forge-studio/public/openapi-provenance.json. Source coverage proves the nine route pairs, not binary equivalence. Five displayed examples come from committed synthetic snapshots. Five read-only responses were captured; four are displayed because the sync snapshot takes precedence over its captured 403 response. Snapshot examples are illustrative; the security panel separately states the default read-only rejection. Successful schemas and authentication metadata absent from OpenAPI remain explicitly distinguished from source-derived explanations. No clinical write was executed.

Regenerate from the repository root:

pwsh -File forge-studio/scripts/Refresh-Story.ps1 -Fetch
dotnet run --project tools/FhirDemo.CodeGraph/EndpointMap -- --input forge-studio/public/openapi.json --ref origin/wt/WT-dc65/fhir-demo --output forge-studio/public/endpoints.json
# First save any newer actual contract to forge-studio/public/openapi.json and update openapi-provenance.json with its source/capture evidence. The --url option only generates the map; it does not refresh those published receipt files.
cd forge-studio
npm ci
npm run build
npm run preview -- --host 127.0.0.1 --port 4179 --strictPort
# In a second terminal, from forge-studio:
node verify-pass3.mjs

The new generator is C#. Existing Vue/TypeScript, CSS and Playwright files remain in their native browser/test frameworks; this avoids replacing the working Rete, Blockly, Puck and LikeC4 integrations. The parent Roslyn scanner excludes the nested generator's compilation items and still builds successfully.

Verification

  • npm ci: exit 0; 257 packages installed, 258 audited, zero reported vulnerabilities. npm reports pending optional install-script approvals for esbuild/rete; the actual build succeeds without changing those approvals.
  • npm run build: exit 0, including Vue type-check, LikeC4 parser/build and Vite. The existing large visual-editor bundle warning remains; no runtime CDN is required for chapter tools.
  • Endpoint generator and original Roslyn scanner: builds exit 0. The generator covers nine exact source routes; rejects mismatched OpenAPI without overwriting the published map; writes a labeled missing-input placeholder when no contract is available.
  • Browser matrix: nine chapters × three distinct depths × 390px/1280px = 54 combinations. Every tool tab is exercised: 150 rendered-tool checks and 18 endpoint selections (all nine at each width). All sixteen source manifest entries are checked, including explicit missing states.
  • Browser checks assert zero console errors/page errors, nonempty explanations and tool content, glossary access, interview answers, live-demo links, and zero document/body horizontal overflow in the outer page and nested frames. Rete nodes must intersect the initial iframe viewport; DOM presence alone is insufficient. The tests do not change page styles to make checks pass.
  • 54 screenshots: docs/screenshots/forge3-{chapter}-{plain|middle|complex}-{390|1280}.png. These are the user's explicit screenshot deliverables outside the normal edit allowlist. Representative phone receipts: SSM, API, deployment.
  • Reproducible browser runner: forge-studio/verify-pass3.mjs; machine-readable local receipt: forge-studio/.evidence/pass3.json (generated, ignored). A missing favicon discovered by console-error checks was fixed. Screenshot review then drove a shorter embedded Rete header/canvas and taller phone tool frame so the actual diagrams appear immediately.

Review and delivery boundaries

Independent Cedric review identified and verified fixes for migration-source wording, bodyless GET presentation and missing generated page mappings; final review found no remaining P1/P2 in those changes. Gaming council qwen3-coder returned generic claims including shell injection through ArgumentList, Vue text-interpolation XSS and unbounded recursion; inspection rejected those claims because no shell is used, Vue escapes interpolation, and recursion has a depth limit. Local gemma4 returned UI refactoring suggestions without a concrete defect.

Clahadore was attempted but denied by the usage governor: native state unavailable — refusing automated claude -p spend. No bypass was set. Jenny's CLI timed out after 15 seconds; no streaming council tool was available. This is not described as a completed full council chair review. Andrew explicitly instructed this pass to commit and push without stopping for a review chair; the independent reviews and executable checks above support that delivery.

The worktree-identity executable was blocked by Windows Application Control, so no successful registry-title update is claimed. Work stayed on wt/WT-dc65/forge-studio. Pre-existing staged docs/FLEET-FORGE-3LEVEL.md, docs/FORGE-STUDIO-TASK-3.md and untracked STEER-FORGE2.md were preserved.

Remaining upstream gaps are visible in the site:

  • docs/AI-SUMMARY.md, docs/AI-SUMMARY-SECURITY.md, the Examples page/use-case packet implementation, and recorded security-veto outcomes are absent at the captured branch. The summary roadmap is explained, not falsely marked implemented or approved.
  • Live Cloudflare deployment UUIDs and GCP project/revision IDs are absent from the supplied receipts. Confirmed public hostnames are shown separately from configured stack/service names. No GCP deployment is invented.
  • The supplied Forge design-document path is absent on this PC. Structurizr CLI validation remains unavailable; the equivalent LikeC4 model is parsed and built successfully.
  • Forge production redeployment remains with the orchestrator. GitHub pushes use fleet-repo-sync/sync-push.ps1; greatroom and gaming pull tasks were triggered. Bedroom SSH host verification and Mac hostname resolution failed; peer convergence is not claimed.

Final strengthened browser receipt finished 2026-11-13T07:15:49Z with all counts above passing. The final chapter/visual diff received an additional gaming council review: no findings. Implementation commits: 5ac087c (generated endpoint map) and d094696 (nine chapters, visual updates and 54 screenshots).