Skip to content

CODEX TASK 15

You are Cedric on gpt-6-astra (high reasoning), pass 15: CI ON SELF-HOSTED RUNNERS + COMPLETE 3-LEVEL DOCS + ARCHITECTURE AS CODE. Run AFTER passes 9, 14 and 12, on branch wt/WT-dc65/fhir-demo, held to the pass-11 bar. Commit and push each item yourself as its check passes; never stop to ask for a review chair.

1. GitHub Actions on the home self-hosted runners (Andrew: "full github actions on self runners")

  • Today every job in .github/workflows/ci.yml is runs-on: ubuntu-24.04 (GitHub-hosted). Move ALL jobs to the org's self-hosted fleet. Live runners as of 2026-11-13:
  • DESKTOP-SCDT9HI-org-1: self-hosted, Windows, X64, home-ci, docker, streaming, bigram
  • DESKTOP-SCDT9HI-org-3: self-hosted, Windows, X64, home-ci, streaming, bigram
  • DESKTOP-D249KD4-org-1: self-hosted, Windows, X64, home-ci, docker, gaming
  • DESKTOP-D249KD4-org-2: self-hosted, Windows, X64, home-ci, gaming
  • ANDREWBEDROOMTV: self-hosted, Windows, X64, home-ci (currently offline)
  • Use runs-on: [self-hosted, Windows, home-ci], and add docker for the jobs needing containers (ZAP DAST, HAPI, Metabase).
  • The runners are WINDOWS: use shell: pwsh (or powershell per the fleet convention). Port every bash step and keep the behavior identical.
  • Windows Application Control on the streaming PC blocks some freshly built DLLs. Route the .NET test/mutation jobs to labels on runners where tests are proven to run, and document which job runs where and why.
  • Keep the gates identical:
  • build with 0 warnings
  • NUnit
  • Stryker on all configs (with mutant>0 and break checks)
  • Vitest + StrykerJS + e2e
  • Semgrep, gitleaks, dependency audit, ZAP
  • cdktn synth + checkov + invariants
  • the quality-matrix check
  • ReleaseAudit, failing closed
  • Concurrency group per branch with cancel-in-progress. Least-privilege permissions:. Actions pinned by SHA. No secrets needed.
  • PROOF: trigger the workflow on the branch and paste the run URL plus every job's conclusion from gh run view --json jobs. Every job must run on a self-hosted runner and pass. Mark any job that can't pass as NOT DONE, with the log excerpt.
  • Document in docs/CI.md:
  • the runner map
  • that the final Innovare repo (private, andrewjonesdev/fhir-pipeline-demo) needs repo-level runner registration, OR keeps GitHub-hosted fallback. Make the workflow support a vars.RUNNER_LABELS override, defaulting to the self-hosted labels.

2. Complete 3-level documentation (plain / middle / complex) for EVERY capability

Update docs/levels/plain.md, middle.md and complex.md so each covers all of the following, each with a "What I'd say if asked" line: - SSM-style lakehouse + Metabase (the Power BI mapping) - Innovare-style operational ETL - Oystehr/Ottehr way (Way 2) - the migration system (pass 9) - the 5-minute executive summary tool (pass 12) + the tiered AI architecture (from fhir-pipeline-demo-docs/AI-SUMMARY-ARCHITECTURE-PLAN-v2.md: code facts, then MedGemma in-tenant, then BAA break-glass; quote-only release 1; the council and security-veto history) - everything-as-code (EF migrations, Aspire, cdktn GCP + Cloudflare + Azure, GitHub Actions on self-hosted runners) - the quality gates (NUnit, Stryker, SAST/DAST, contract tests) - how it was built (the AI team + Forge Studio + Agent Rail + Floorplan)

The plain level must be readable by a non-technical person. Public names are "Jones". Never write "GitHub Copilot".

3. Architecture as code (Structurizr)

Extend architecture/workspace.dsl with: - the tiered summary (container + dynamic view) - the migration hop view - the deployment view: GCP Cloud Run + Artifact Registry + Cloudflare Pages + self-hosted CI

Keep the Forge Studio C4 level rendering them (coordinate by committing the DSL here; Forge Studio reads it).

DONE

  • the green self-hosted run URL with all jobs passing
  • docs at 3 levels covering every row above
  • the DSL renders
  • VERIFY.md "Pass 15"