Skip to content

Implementation Roadmap

Current Snapshot (Updated 2026-08-15)

Progress: Milestone 33 is complete. Wait Time Canada is in a stewardship phase; no research conversion or discretionary expansion is active.

The observatory covers Ontario, Quebec, Alberta, and British Columbia while preserving each source's methodology and exposing invalid direct comparisons. Historical occupancy aggregation and the Ontario-first public-health resources module are live. Repository-side reliability, documentation, migration, and offloaded-operations contracts are implemented. The homepage now server-renders exact database-derived national coverage and preserves it through hydration, province changes, and refresh. Public status responses explicitly separate current 120-minute source freshness from 24-hour UTC measurement-hour completeness.

The bounded research/evaluation option screen is closed. Existing methodology, quality, and longitudinal-data assets remain useful project evidence, but the screen did not establish a study-ready prospective lane, an independently worthwhile supervised question, or a feasible attributable output. The closeout record defines the evidence and any future external-pull gate.

The frontend now fails closed for occupancy observations whose matching source heartbeat is failed, stale, future-dated, or missing. Current-value hospital and occupancy APIs use Cache-Control: no-store; healthy sources remain available independently in mixed-source results.

No delivery campaign or standing operator project is active. Scheduled collection and heartbeat checks provide the routine service posture; human work begins only after a concrete truthfulness, provenance, security, integrity, or source-change trigger. The prior trusted-runner pilot, Ontario representation decision, and expansion candidates remain preserved as inactive historical material, not an execution queue.

Completed Foundations

  • PostgreSQL schema, ontology enums, and source provenance tracking
  • Four provincial scraper lanes with source-health reporting
  • Methodology divergence warnings and comparability matrix
  • Data quality dashboard, anomaly detection, and methodology-change tracking
  • Aggregation pipeline for raw, hourly, daily, weekly, and monthly summaries
  • Analytics and benchmarking dashboard
  • Quebec stretcher-occupancy capture and historical occupancy trends
  • Ontario-first public-health resources module with source caveats
  • Privacy, terms, citation metadata, security policy, and contributor guidance
  • Public documentation boundary cleanup with private notes moved to the private/shared operations source of truth
  • Documentation and CI guardrails for public-boundary checks, human-authorship policy, roadmap freshness, ontology drift, and Docs CI path coverage
  • Public offloaded-operations acceptance controls for runner isolation, secret handling, log retention, bounded failure summaries, and schedule-level rollback, paired with a private operator procedure
  • ADR-0027 strategy, public source-freshness offload contract, and copy/adapt-only trusted-runner examples for scraper, watchdog, and aggregate adoption
  • ADR-0028 critical-only operational notification mode with persisted notified-tier state for scraper and public-health source incidents
  • Backend uv.lock setup and CI alignment, migration sequence validation, and frontend test-file type checking
  • Exact database-derived homepage coverage across server rendering, hydration, province changes, and refresh, with no approximate hospital-count fallback
  • Explicit /api/status measurement-hour-completeness metadata kept separate from the current-freshness contract exposed by /api/health
  • Fail-closed current occupancy presentation based on each contributing source's resolved heartbeat threshold, with no-store response contracts and healthy mixed-source observations preserved

Continuous Guardrails

  • Keep emergency, non-triage, and non-medical-advice boundaries prominent.
  • Do not provide hospital-choice recommendations.
  • Compare measurements directly only when metric family, start event, end event, and statistic type match.
  • Keep source freshness, data-quality state, and official-source attribution visible without exposing private monitoring configuration.
  • Retain raw measurements for 30 days while preserving permanent aggregates.
  • Keep public documentation free of credentials, private hostnames, private paths, monitoring routes, and environment-specific deployment details.
  • Preserve low-frequency health polling, bounded cache policies, and explicit production cost controls.
  • Keep GitHub manual dispatch available as an emergency operator control; its availability does not create scheduled human work.
  • Do not represent the platform as a national performance comparison.
  • Treat research or evaluation as inactive unless an external supervisor or partner independently identifies a worthwhile question and the opportunity has a ready data/ethics route, bounded workload, and scheduled attributable output.

Event-Triggered Stewardship

There is no standing implementation or manual-review queue. These triggers authorize only the smallest bounded response needed to restore a truthful and safe public service:

Trigger Bounded response Stop condition
Public freshness, provenance, or displayed-data defect Fail closed, preserve healthy sources, and contain only the affected source or presentation path Public claims are truthful again, or the affected source is narrowed or suspended
Security, privacy, or data-integrity incident Follow the applicable incident and disclosure process without expanding product scope The concrete risk is contained and required evidence is preserved
Verified official source or methodology change Revalidate only the affected source representation and public documentation The changed public contract is accurate, or the affected claim is withdrawn
Dependency or scheduler failure that breaches the public service contract Apply one bounded recovery or rollback using existing controls The contract is restored, or the failing automation/source is suspended

The trusted-runner pilot and alternative CI material are parked. Ontario ontology/history work is parked unless a concrete public-truthfulness trigger requires it. Methodology artifacts, public-health additions, new provinces, and other expansion ideas remain historical candidates and require an explicit new project decision; none is active stewardship work.

Roadmap lifecycle and formatting rules are defined in roadmap-process.md; the dormant stewardship trigger contract is recorded in manual-tasks.md.

Completed Milestones

Milestone Summary
M1: Database Foundation PostgreSQL schema, ontology enums, Quebec scraper, and source status tracking
M2: Ontario End-to-End Ontario scraper, geocoding, Mapbox frontend, and hospital inventory
M3: Methodology Warnings Divergence warnings, methods page, and comparison context
M4: Polish and PWA Emergency banner, dark mode, split view, trend charts, and PWA setup
M7: UX Polish and SEO Structured data, skeleton loading, search/filter, geolocation, and live indicators
M8: UX Enhancements Expandable cards, FAQ, quick actions, and distance sorting
M9: Public Launch Foundations Public about/governance surfaces and screenshot guidance
M10: Multi-Province Groundwork Alberta and British Columbia scraper groundwork
M11: Access and Equity Access Burden Estimator and equity scaffold
M12: Research Infrastructure Citation-ready export and source freshness checks
M13: Aggregation Pipeline Permanent hourly/daily/weekly/monthly aggregates
M14: Data Quality and Anomaly Detection Data-quality service, anomaly detection, and methodology-change tracking
M15: Analytics and Benchmarking Peer benchmarking, temporal patterns, and regional intelligence
M16: Multi-Province Operationalization Four-province source inventory and methodology documentation
M17: Quebec Occupancy Implementation Stretcher occupancy extraction and ontology support
M18: Occupancy Frontend UI Occupancy display and availability messaging
M19: Governance and Quality License, security policy, citation metadata, privacy, terms, and loading states
M23: Quality Standardization Typing, accessibility, mobile, validation, and rate-limit hardening
M28: Ontario Real-Data Equity Layer Ontario StatsCan tract integration and provenance
M29: Ontario Equity Rigor Hardening Uncertainty, suppression, and non-causal interpretation safeguards
M30: Scraper Visibility and Reliability Structured source failure metadata and status improvements
M31: Divergence Briefs and Quality Drift Quality snapshots and divergence context
M32: CSV Divergence Warnings Methodology warnings in exported datasets
M33: Historical Occupancy Trends Occupancy aggregation and analytics trend support

Architecture Reference

Area Current Direction
Data model Strict ontology tags preserve source semantics rather than normalizing away differences
Comparability Measurements are comparable only when metric family, start event, end event, and statistic type match
Storage Raw measurement rows are retained briefly; permanent aggregates support long-term analysis
Public resources Ontario-first, source-catalog-driven, and explicit about freshness and reuse limits
Safety Emergency disclaimers and non-clinical interpretation limits must remain prominent

Database Schema (15 tables)

Table Purpose
sources Provincial source metadata and methodology provenance
hospitals Facility metadata and visibility controls
measurements Raw measurement audit rows with ontology tags
scraper_status Source freshness records
scraper_alert_state Stateful source-health reconciliation
measurement_aggregates Permanent trend aggregates
data_quality_snapshots Data-quality summary windows
methodology_change_events Detected reporting-method shifts
regions Province/region metadata
hospital_regions Hospital-to-region mapping
public_data_sources Public-health resource source catalog
resource_locations Normalized public-health resource locations
public_health_alerts Public-health alert records
public_health_system_metrics Public-health system context metrics
public_health_source_alert_state Public-health ingest source-health state

Key ADRs

ADR Decision
0002 Strict metric ontology for comparability
0005 Access Burden Estimator design
0008 Two-tier aggregation pipeline
0009 Data quality and anomaly detection
0015 Ontario real-data equity layer
0016 Ontario equity rigor hardening
0019 Include stretcher occupancy in aggregation
0023 Public Health Hub boundary
0024 Ontario naloxone link-out posture
0025 Data-quality scrape-window and runtime env contracts
0026 Public documentation boundary and private maintainer-note handling
0027 Hybrid CI/offload strategy for GitHub Actions quota pressure
0028 Critical-only stateful operational notification mode

Implementation Plan References

Existing public historical plans retained for context:

  • docs/superpowers/plans/2026-07-10-public-api-error-hardening.md
  • docs/planning/archive/maintenance-2026-06-22-tooling-roadmap-maintenance.md
  • docs/planning/archive/maintenance-2026-06-04-public-docs-cleanup.md
  • docs/planning/archive/maintenance-2026-06-12-autonomous-stewardship.md
  • docs/planning/archive/2026-04-23-repo-audit-follow-up-board.md
  • docs/planning/archive/2026-04-23-repo-audit-remediation-plan.md
  • docs/planning/archive/heartbeat-offload-pilot-scaffold-2026-06-13.md
  • docs/planning/archive/milestone-17-quebec-occupancy.md
  • docs/planning/archive/milestone-18-occupancy-frontend.md
  • docs/planning/archive/milestone-23-quality-standardization.md
  • docs/planning/archive/milestone-28-equity-real-data-ontario.md
  • docs/planning/archive/milestone-29-equity-academic-rigor-hardening.md
  • docs/planning/archive/public-health-data-hub-decision-brief.md