Skip to content

docs(db): record the 2026-08-20 alignment window and reopen the D4 question - #2201

Merged
BigSimmo merged 4 commits into
mainfrom
claude/drift-alignment-window-record
Aug 20, 2026
Merged

docs(db): record the 2026-08-20 alignment window and reopen the D4 question#2201
BigSimmo merged 4 commits into
mainfrom
claude/drift-alignment-window-record

Conversation

@BigSimmo

Copy link
Copy Markdown
Owner

Summary

Documentation-only. Records the 2026-08-20 production window for the migration-history alignment fix (PR #2198), and lands that PR's owed review-ledger record.

RAG impact: no retrieval behaviour change — documentation and a review-ledger record only; no code, migration, schema, or fixture is touched.

Verification

  • npx prettier --write on both changed docs; the pre-push guard checked the pushed commit.
  • No gate beyond formatting applies: this diff contains no executable code. The production facts quoted above came from read-only supabase db query calls against an explicitly passed --project-ref, made during the owner-authorised window and recorded in docs/audit/live-drift-forensics-2026-08.md.
  • Not run, with reasons: no provider-backed gate (nothing here changes behaviour); no browser gate (no UI surface).

Clinical Governance Preflight

  • Source-backed claims still require linked source verification before clinical use
  • No patient-identifiable document workflow was introduced or expanded without explicit governance approval
  • Supabase target remains Clinical KB Database (sjrfecxgysukkwxsowpy)
  • Service-role keys and private document access remain server-only
  • Demo/synthetic content remains clearly separated from real clinical sources
  • Source metadata, review status, and outdated/unknown-source behavior remain conservative
  • Deployment classification/TGA SaMD impact was checked when clinical decision-support behavior changed

Notes

  • No secret value was read or printed at any point; the only credential-adjacent observation is that created_by is NULL, which is metadata about the history table.
  • The main checkout D:\Repos\Database remains linked to staging; the production link used here was made in a dedicated worktree and is removed at the end of the session.

BigSimmoand others added 2 commits August 21, 2026 02:04
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
…estion
The PGRST106 fix (PR #2198, squash a341832) merged before its production
window, so the window's pre-flight found 20260820120000 already applied and
db push was never run. Verified read-only against sjrfecxgysukkwxsowpy:
stmt_count 3 (executed statements, not mark-applied), prosecdef true,
provolatile s, search_path="", proacl postgres=X/postgres |
service_role=X/postgres, and the function returns probe ok with
version_count 211 against 211 history rows and 211 local files. No guard
migration is owed.
Two open items are recorded rather than absorbed.
D4 is unresolved again. created_by and idempotency_key are NULL on every row
from 20260818090000 onward, including ones this programme applied by operator
db push, so the history table carries no provenance signal. The 2026-08-19
observation recorded as "D4 is OFF" was that migrations sat pending WHILE a PR
was open; that never tested deploy-on-merge, and so never contradicted section
3.7's 34-second application after #2106's squash-merge. Until the dashboard is
re-checked, assume merging a migration PR deploys it to production.
Staging is one version behind (210 rows, function absent, pending set exactly
20260820120000). Both write paths were denied by the session auto-mode
classifier under the live-Supabase confirmation rule added by PR #2196, so
Phase 4's staging parity is open by one version until an operator applies it.
Also lands the owed PR #2198 review-ledger record, whose original push was cut
short when the branch was deleted on merge.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@supabase

supabaseBot commented Aug 20, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project sjrfecxgysukkwxsowpy because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@coderabbitai

coderabbitaiBot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You’ve reached a temporary PR review limit under our Fair Usage Limits Policy.

Your current included review allowance is based on your included PR review attempts over the past 7 days.

Next review available in:47 minutes

Limit details: You’ve used the included review currently available. Your 85 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Your organization has reached its usage spending cap. Adjust your spending cap in the billing tab.

How can I continue?

Wait for the limit to reset, then comment @coderabbitai review or push new commits to the PR.

An organization admin can change what happens after included review limits in Billing.

How do review limits work?

CodeRabbit enforces per-developer PR review limits within each organization.

For paid Pro and Pro+ reviews, CodeRabbit uses a developer's included PR review attempts over the past 7 days to set the current hourly allowance. At typical activity levels, the full plan allowance applies. Higher sustained activity can lower the allowance until earlier attempts leave the 7-day window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: d5549cfc-8782-4c60-8193-c9647921f167

📥 Commits

Reviewing files that changed from the base of the PR and between 31b02fd and 13c9f88.

📒 Files selected for processing (4)
  • docs/audit/live-drift-forensics-2026-08.md
  • docs/branch-review-records/0b9f33dbb3fde5baaca33bd4ac3d075d142ccc11773079e8b7026dcf973d5579.record.md
  • docs/branch-review-records/b0f1f213296ed6e158184a90156c52a58b6fa4fc3597114c8fd29864d090f58d.record.md
  • docs/database-remediation-coordination.md

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connectorchatgpt-codex-connectorBot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit:4c0fa08ded

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment threaddocs/database-remediation-coordination.md
@BigSimmo
BigSimmo enabled auto-merge (squash) August 20, 2026 19:05
BigSimmoand others added 2 commits August 21, 2026 04:12
… is re-verified
The 2026-08-20 window update reopened D4 (Supabase GitHub auto-deploy), but the
status board's active instructions still told a coordinator the opposite: the
"Next dispatches" line, the D4 owner-decision entry, the 2026-08-19 "Resolved"
paragraph, and the pre-window forensics section all said D4 is OFF and every
migration needs its own explicit `db push`. A coordinator reading those could
merge a migration PR outside its approved window — the unapproved production
schema change the update exists to prevent.
All four now point at the reopened decision: assume merging a migration PR
deploys it to production until the dashboard toggle is re-verified. Push-before-
merge stays the required order, for the inverted reason.
Also lands the PR #2201 review-ledger record.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HoyoNN7nCUVDLaE84k6e6c
@BigSimmo
BigSimmo merged commit 3ed1932 into mainAug 20, 2026
32 checks passed
@BigSimmo
BigSimmo deleted the claude/drift-alignment-window-record branch August 20, 2026 20:27
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@BigSimmo@claude