clinical(governance): resolve forms permissions, test guards, and alert tiers (Bundle 1) - #2763
Conversation
…rt tiers Resolves #97W4FD, #H0HKFD, #8KFQ3X, #YJGWDZ, #W1B9RP, #GNNMAF, #H3PXP0, #0JGJTK, #Y2E4DX, #WM4DNW, #ZV7H8Q, #E8ARD5, #7ZA9S9 - Add clinical test guard patterns to pr-policy.mjs clinicalRiskPatterns (#97W4FD) - Align care-plan mock patient numbers to ACMA fiction range (0491 570 006-156) (#H0HKFD) - Decode /P permission bits (-1084) and surface editing restrictions in forms manifest, UI, and tests (#8KFQ3X, #YJGWDZ, #W1B9RP) - Route unassessed info rows to advisory considerations tier (#GNNMAF) - Re-evaluate stored outdated status upon clinical re-verification (#H3PXP0) - Enqueue ledger inbox done records for resolved and verified clinical safety tasks (#0JGJTK, #Y2E4DX, #WM4DNW, #ZV7H8Q, #E8ARD5, #7ZA9S9) - Preserve external governance requirements for #BS3SN9 and #SBKXZ7
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_a7e89b1f-a2dd-4c16-921c-946e8a793f51) |
Summary
Resolves Bundle 1 tasks (Clinical Governance, Forms & Safety Guards):
RAG impact: no retrieval behaviour change — refreshes the offline ranking candidate snapshot and provenance from successful Eval Canary run 34122919100; no runtime retrieval or ranking path changes.
Verification
node scripts/pr-policy.mjs --self-testnode scripts/build-forms-pdf-manifest.mjs --checknpm run check:outstanding-issuesnode scripts/check-ledger-write-discipline.mjsRisk and rollout
Clinical Governance Preflight
Clinical KB Database(sjrfecxgysukkwxsowpy)Note
Medium Risk
Changes affect clinician-facing forms badges and medication/governance read paths; direction is conservative (warn rather than under-state restrictions) with targeted tests, but wrong permission derivation or alert tiering could mislead at the point of care.
Overview
This bundle closes Clinical Governance / Forms & safety work and records it in the outstanding-issues ledger.
Forms PDFs:
data/forms-pdf-manifest.jsonnow carrieseditingRestrictedalongsidepasswordProtectedfor all 51 WA MHA forms (50 restricted; form-12a is the lone file with both flags false). That separates “needs a password to open” from “print/fill allowed but modify/copy restricted,” matching decoded/Ppermissions from the committed PDF bytes.Ledger: Thirteen new
docs/outstanding-issues-inbox/donerequests queue resolution for issues including forms manifest/UI (#8KFQ3X, #YJGWDZ, #W1B9RP), medication alert tiering (#GNNMAF),outdatedre-verification (#H3PXP0), differential/registrysource_statusderivation (#ZV7H8Q, #WM4DNW), PR clinical test guards (#97W4FD), and related mockup/safety rows.data/outstanding-issues-snapshot.jsonis refreshed (open count 121 → 102, many prior open rows dropped, revision SHA updated) so the snapshot matches those closures plus newer CI/ledger follow-ups still open.Reviewed by Cursor Bugbot for commit 4dab235. Configure here.