Skip to content

FORGE STUDIO TASK 3

You are Cedric on gpt-6-astra (high reasoning), Forge Studio pass 3, in worktree branch wt/WT-dc65/forge-studio. Touch ONLY forge-studio/, architecture/, tools/FhirDemo.CodeGraph/, ehr-floorplan/, agentrail/ and docs/forge-studio*.md. Commit and push each item yourself as its check passes; never stop to ask for a review chair. The live site is https://forge-studio-8y3.pages.dev (the orchestrator redeploys it).

Andrew: "i want the forge tool to break it down for them" and "i want the documentation to be great". Forge Studio is how the Innovare panel (James Mickael, a data-first .NET hiring manager, a developer, and Anita) UNDERSTANDS the whole system at lunch on a phone.

1. A breakdown chapter for EVERY use case

Each chapter has Plain / Middle / Complex views, uses a visual tool (Structurizr C4, Rete.js lineage, GrapesJS→Puck mockup, Blockly rules, Floorplan, Agent Rail), and ends with "What I'd say if asked". 1. The SSM way: FHIR → bronze → silver → gold in DuckDB (EFCore.DuckDB) → Metabase / predictive reports. A Rete.js lineage from a FHIR Observation to a gold column to a risk flag to an outreach row. 2. The Innovare way: FHIR → EF Core → SQL Server/SQLite → ASP.NET Core API → Vue 3. MVC inside MVC (API layers + the Vue app's own model/view/state). 3. The Oystehr way: - Ottehr (open-source EHR front end) on Oystehr (headless FHIR backend) - M2M auth, the project header, FHIR R4B - the risk rules as a Zambda, the seed transaction - Way 1 = Way 2 parity - the Allscripts → Ottehr → own-EMR roadmap 4. Every API endpoint: an interactive endpoint map generated from the API's OpenAPI document (from the fhir-demo branch). Tap an endpoint to see its purpose, request/response example, security behavior, and which page uses it. Generate it; don't hand-write it. 5. The migration system: manifest → crosswalk → skip-if-unchanged → checkpoints → reverse-map reconciliation → negative control → flag parity, as a Rete.js pipeline with real names from the pass-9 code (or "PLANNED" until pass 9 lands). Also the out-of-scope list and the unexecuted cutover runbook. 6. The executive summary tool: - code facts → quote-only note excerpts (release 1), then MedGemma in-tenant, then BAA break-glass - FactGuard (negation / experiencer / temporality) - why scrubbing isn't de-identification - the council + 3 security-veto rounds as an Agent Rail mini-timeline - the use-case packets shown three ways (link to the demo's Examples page) 7. Predictive reports both ways (link to the demo pages + Blockly rule views). 8. Everything as code: EF migrations, Aspire, cdktn (GCP + Cloudflare, with the live deployment IDs), GitHub Actions on self-hosted runners, Stryker/SAST/DAST gates. The Structurizr deployment view. 9. How it was built: the AI team, gates, receipts (Agent Rail + Floorplan).

2. Great documentation

  • The plain level is readable by someone non-technical. No jargon without a one-line definition, plus a glossary drawer.
  • Each chapter links to the exact files in the repo (as GitFront-style relative paths) and to the live demo pages.
  • Public names are "Jones". Never "GitHub Copilot". Synthetic-data banner everywhere.
  • *Pull content from the fhir-demo branch's docs/levels/, MIGRATION.md, AI-SUMMARY docs and VERIFY.md via git show origin/wt/WT-dc65/fhir-demo:<path>. Where a doc isn't there yet, show a clearly labeled placeholder and a regenerate script.

DONE

  • npm ci && npm run build
  • Playwright over every chapter × 3 levels × 390px/1280px: no console errors, no empty panels, no overflow at 390px
  • screenshots docs/screenshots/forge3-*.png
  • receipts in docs/forge-studio.md "Pass 3"