Repository navigation
Conversation
Clean rebuild of PR #3641 (head df75f14) as one commit on main 1837b0b, with identical final code (the tree equals merging main into that head). Rebuilt because qodo-code-review[bot] commits in #3641's history (955e943, bad9ef2, c02f718, 6ad0176) touch protected paths and fail the bot-authored-sensitive-commits PR policy, and history rewrites are banned. Those bot changes appear here only as they stood at df75f14 and need owner review in this PR. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018UBtJDgQZJ3eBsxLWte9r4
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Comment |
Code Review ✅ Approved🔴 High risk · Adding migrations to the live clinical database for training milestones and roster alerts could corrupt persisted records or send private shift notifications incorrectly. Rebuilds the reviewed alert, PDF extraction, queue rollback and catalogue fixes from #3641 as one commit on current main. No open findings remain; this is a draft with migrations still to drop before any merge. VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Approved For more verification details, comment OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change the behavior for this request:
Important Your trial ends in 3 days — upgrade now to keep code review, CI analysis, auto-apply, custom automations, and more. Was this helpful? React with 👍 / 👎 | Gitar |
Owner asked for every fix from both rebuilt PRs in one PR. Brings across the durable roster offer device outbox (migration 20261018073435, sealed with the owner's named approval), PDF edge-text ruled-cell evidence, the exact 100,000-row metadata paging fix, the bulk reindex Retry-After wait and the CI drift-manifest recovery output. Left out on purpose: the duplicate milestone migration 20261018062800 (this PR already carries it as 20261018075500), the queue-rollback mutation_id migration the owner dropped, and the narrowed CET attribution the owner reverted. Drift manifest is this PR's generated manifest plus the roster entries from #3654's generated manifest; schema_sha256 matches schema.sql. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018UBtJDgQZJ3eBsxLWte9r4
|
Closing as superseded at the owner's request. All of this PR's work is now in #3652 (commit 5e9c34d). Only these were left out deliberately: the duplicate milestone migration Generated by Claude Code |
Requested by Josh · project thread
Do not merge as it stands. It still contains
20261018100000_fence_document_queue_rollbacks.sql, which the owner asked to drop at 16:17 AWST, and the training-milestone migration as20261018062800, a duplicate of the rebuilt #3638's20261018075500. Merge only one of this PR and the rebuilt #3638. Removing those two migrations needs the owner's explicit yes, because it changes the migration seal file.Summary
Repair the confirmed merged-PR review defects in durable roster alerts, PDF extraction, queue rollback fencing and catalogue integrity. This consolidated successor includes #3638's fixes. Review this PR and do not merge both independently.
open.post; claim them across instances with expiring tokens, drain device pages and acknowledge/retry each device independently. Recheck current eligibility, preferences, quiet nights and subscription ownership before each send. Preserve staff-release controls. Delivery is at least once: a crash after provider acceptance can duplicate that device's alert.3555daf05dc0e71d941634714c31d46ce792ffe19243408e3a7ba5db0238a49d. No expected catalogue fields were hand-edited.Issue-by-issue evidence and approval scope:
docs/audit/2026-10-18-remaining-review-closeout.mdand the original resolution audit. Immutable independent review records cover source corrections, seals, fail-closed recovery and generated-manifest integrity.Areas touched: Knowledge and records, Personal practice, Source intake and indexing, Clinical reference content, Answer engine, Data platform and access, Delivery and assurance, App experience, Prototypes
RAG impact: behaviour change — live canary pair not run; requires separate explicit owner approval. PDF extraction rejects uncertain clinical cell associations while preserving source text; inherited cited-source recovery and metadata admission fixes remain. No relevance comparator changes.
Verification
Risk and rollout
Clinical Governance Preflight
PsychSift Production(sjrfecxgysukkwxsowpy)Clinical/legal/cultural approval remains with accountable humans under
docs/clinical-sign-off-how-to.md.Generated by Claude Code
Summary by cubic
Clean rebuild of #3641 as one commit on current main, fixing the confirmed review defects in roster offer alerts, PDF edge-text extraction, queue rollback fencing, and catalogue/CI integrity. Not merge-ready: the PR still carries
20261018100000_fence_document_queue_rollbacks.sqland the duplicate training-milestone migration, and only one of this PR and the rebuilt #3638 should merge; merging applies the migrations to the live clinical database automatically.Roster offer alerts
open.postand drains it via expiring leases instead of process-local deduplication.PDF, queue, catalogue and CI
mutation_idand the stored timestamp rather than caller stamps, and the bulk reindex waits out its rate limit.Written for commit 0f539fd. Summary will update on new commits.