From cc3d1e3d27bdd6ae7a4dd94ac0103a7acf806961 Mon Sep 17 00:00:00 2001 From: BigSimmo <87357024+BigSimmo@users.noreply.github.com> Date: Tue, 25 Aug 2026 04:34:21 +0800 Subject: [PATCH 01/54] Ward Flow Phase 4: the specialist-boards design, with its nine product-owner decisions Twelve items: eleven built, one deliberately held. Measured before writing, not assumed. Every one of the 41 open movements has at least six eligible wards, so the escalation board and the handover's placement-gone-wrong section have nothing to show on tonight's data; that is a fixture problem, not a board problem, so a scarcer scenario lands first. All fifteen reducer events move a patient forwards, and the only path that releases a held bed is closing the movement by declaring the patient does not need admission - so a coordinator who holds the wrong bed must lie about the patient to correct it. Seven beds are held, one hold has already expired and six expire within the hour, and nobody can act on any of them. The statutory clock board is HELD, not built. It was a board of legal countdowns, every legal deadline has been removed on the owner's instruction, and rebuilding it would either be empty or would re-invent the statutory figures this project has fabricated four times. It waits for the owner's real figures and no agent may supply them. Every fixed reason list is ruled in the spec rather than left to an implementer, and each is deliberately content-free: no reason code describes a patient, a diagnosis, a clinical judgement or a legal requirement. Co-Authored-By: Claude Opus 5 --- ...d-flow-phase-4-specialist-boards-design.md | 400 ++++++++++++++++++ 1 file changed, 400 insertions(+) create mode 100644 docs/superpowers/specs/2026-08-25-ward-flow-phase-4-specialist-boards-design.md diff --git a/docs/superpowers/specs/2026-08-25-ward-flow-phase-4-specialist-boards-design.md b/docs/superpowers/specs/2026-08-25-ward-flow-phase-4-specialist-boards-design.md new file mode 100644 index 0000000000..4dd0b6b997 --- /dev/null +++ b/docs/superpowers/specs/2026-08-25-ward-flow-phase-4-specialist-boards-design.md @@ -0,0 +1,400 @@ +# Ward Flow Phase 4 — specialist boards, design + +**Date:** 2026-08-25. **Product owner:** a psychiatrist in Perth. + +Ward Flow is a **synthetic, offline prototype, not clinical decision support.** No live database, +no patient data, no OpenAI call, no server. Every number is invented. + +## 0. Authority + +- **Binding:** `docs/superpowers/specs/2026-08-18-ward-flow-metro-patient-flow-design.md` — §6 + (specialist boards), §11 (success criteria), §15 (migration), §18 (phasing). +- **Phase 3 close:** `docs/ward-flow-phase-3-handover.md`. +- This document settles Phase 4's open questions and **supersedes** the one-line Phase 4 sentence + in §18 of the binding spec. Where the two disagree, this document wins for Phase 4 scope only; + every other section of the binding spec still governs. + +## 1. Standing constraints — absolute, unchanged + +1. **Never invent, infer, restate or "correct" any figure, requirement, title or classification + from the Mental Health Act.** If a legal quantity is needed it comes from the product owner or + it does not exist. This is the project's single most-violated rule: four fabricated statutory + figures have reached the code, one of them production. Form titles resolve from the Chief + Psychiatrist's official register or render as the bare code. +2. **Synthetic data only.** No name, date of birth, medical record number, address, diagnosis, + narrative history or treatment. **Sex is the only permitted patient attribute. Free text + counts** — see item 11, which removes the last free-text input in the prototype. +3. **Advisory only.** The system proposes; a human confirms or overrides, always, with the reason + recorded. Nothing auto-allocates and nothing defaults after a timeout. +4. **Conservative failure.** Missing data narrows what is shown. An absence renders as an explicit + absence, never as a substituted default. No `?? array[0]`, no `.find()!`. +5. **Not a medical device**, and the pages say so. +6. **Repo gates:** design tokens only (no raw hex); every `