FORGE STUDIO TASK 2
You are Cedric on gpt-6-astra (high reasoning), worker #2, Forge Studio pass 2, in worktree branch wt/WT-dc65/forge-studio. Touch ONLY forge-studio/, tools/FhirDemo.CodeGraph/, architecture/, ehr-floorplan/, agentrail/, docs/forge-studio*.md. Never edit src/, web/, tests/, infra/ or ehr-track/ (other workers own those). Commit per item with git -c user.name="Andrew Jones" -c user.email="andrewjonesdev1@gmail.com" commit and the Co-Authored-By trailers for Cedric (Codex) and Claude Opus 5.5. Push.
Andrew: "make sure we are using the Forge Studio to tell the story and that we have our documentation and the Floorplan open source repo and Agent Rails."
1. Forge Studio tells THE STORY (guided Story mode, the new home page)¶
A linear, clickable story, each chapter linking deeper into the existing zoom levels:
1. The problem: Innovare's roadmap, Allscripts → Ottehr/Oystehr → their own EMR. The job is FHIR ETL in .NET/Azure. (Source: docs/REQUIREMENTS-TRACE.md on main.)
2. Data first: the data profile → how the models come from the data. Pull from the main demo's docs/DATA-PROFILE.md and DATA-MODEL.md once pass 8 lands on branch wt/WT-dc65/fhir-demo; read with git show origin/wt/WT-dc65/fhir-demo:<path>. If they're not there yet, show a clearly-labelled placeholder plus a regenerate script.
3. The model at every layer: MVC inside MVC, the C4 component view (the architecture/components.dsl from pass 8 when present).
4. Predictions: the risk rules (Blockly level) → lineage to SQL / DuckDB / Oystehr.
5. Two ways, same answer: Way 1 (.NET) vs Way 2 (Oystehr Zambda): parity, 12 patients / 56 flags agree. Cite branch wt/WT-dc65/ottehr-track docs/ottehr-track.md.
6. Lakehouse vs operational: SSM-style vs Innovare-style.
7. Migration: ours → Oystehr → the in-house EMR (pass 9; placeholder until it lands).
8. How it was built: the AI team + gates (Agent Rail timeline, below) + the Floorplan map (below).
Each chapter has a Plain / Middle / Complex toggle. The plain text must be understandable by a non-technical person. Sources: - docs/levels/ on the fhir-demo branch - docs/FLEET-FORGE-3LEVEL.md on origin/main (copy its content in; public names "Jones"; never "GitHub Copilot"; never NarrativeGMC)
Make it mobile-friendly. Add a "Start the story" button on the current home.
2. Floorplan (github.com/haydenschmitty/floorplan, MIT)¶
- Read its README. Pin a release/commit. Record the URL, commit and license in docs/forge-studio.md.
- Run it as documented (it's a Claude Code/Codex plugin plus Node scripts) against the JS/TS parts: web/ (main branch checkout or the fhir-demo branch), forge-studio/, and ehr-track/ (ottehr branch). It does NOT parse C#; state that, and point to our Roslyn Blueprint level for the C# map.
- Put the generated
floorplan/index.htmloutput underehr-floorplan/and add a Forge Studio level "Floorplan map" that embeds or links it, sandboxed iframe. - If Floorplan can't run headlessly, document exactly why (file:line or error text) and use its documented manual steps. No guessing.
3. Agent Rail (github.com/oxnw/agentrail)¶
- Read its README and LICENSE. Pin a commit. Record that the license is source-available (README) vs Apache-2.0 (launch pages); use it only locally.
- Install per its docs (
agentrail init, local state under ~/.agentrail, but use an isolated AGENTRAIL_HOME or config dir inside agentrail/ if supported, so it doesn't touch anything global). - Model THIS build as Agent Rail tasks: each pass (docs/CODEX-TASK-.md, FORGE-STUDIO-TASK.md, OTTEHR-TRACK-TASK.md) becomes a task with its branch, commits (from git log), verification receipts (test counts from docs/VERIFY.md), the reviewers (Fable/Astra/Carbon/Susie/Gronktayvius/Jenny) and their outcomes.
- Use its own CLI/API if it supports import; otherwise generate its task-file format.
- Do NOT connect it to GitHub, Linear or CI with credentials. Local only.
- Add a Forge Studio level "How it was built": a timeline from Agent Rail data (or exported JSON), showing pass → reviews → fixes → verified tests → tag (demo-safe-1/2/3).
4. Refresh the code graph¶
Regenerate codegraph.json from the LATEST fhir-demo branch src (use a read-only worktree of origin/wt/WT-dc65/fhir-demo outside your worktree).
DONE¶
npm ci && npm run buildin forge-studionpm run previewserves all pages (curl 200s)- a Playwright pass: the story chapters at 390px and 1280px, screenshots in docs/screenshots/forge-*.png
- Floorplan output present (or a documented failure)
- the Agent Rail timeline rendered
Put the REAL outputs in docs/forge-studio.md under "Pass 2". Mark anything not working as NOT DONE with the error.