Skip to content

docs(governance): quality gate verification, performance diagnostics, and operator governance sweep (#50QRCF, #TYZK23, #KFRC3H, #TF6TPJ, #023, #S4K1GA, #9X40BT, #HVTYAT, #102) - #2406

Merged
BigSimmo merged 7 commits into
mainfrom
gemini/engineering-maintenance-governance-sweep
Aug 27, 2026
Merged

Conversation

@BigSimmo

@BigSimmoBigSimmo commented Aug 27, 2026

Copy link
Copy Markdown
Owner

Summary

Closes and documents quality-gate verification, mobile/performance closeouts, and operator governance tasks across 7 key areas:

  1. #50QRCF / #TYZK23 / #KFRC3H (P2) · Mobile / Lighthouse CLS Bistable Flake Closeout: Verified root fix on main (PR feat(dictionary): merge Search and Browse into one catalogue and rebuild the phone header #2253 / 0cf0493, gating notice stack mount on app shell hydration). Verified CI run 32531103787 Lighthouse budget success (CLS 0.000 <= 0.016 budget). Queued simultaneous done inbox records.
  2. #TF6TPJ (P2) · In-Flight CI Push Guard Validation: Validated Guard 2 in scripts/guard-push.mjs and scripts/sync-pr-branches.mjs. Verified via tests in tests/ci-cache-safety.test.ts and tests/guard-push.test.ts. Queued done inbox record.
  3. #023 (P2) · Scheduled Browser Matrix & Labeling Disposition: Verified release-browser-matrix workflow decoupling from pr-required and green cross-browser status. Documented human review decisions for the stable 0.0917 irrelevant-at-10 fixture set using #084 diagnostic grades in docs/evidence/rag-irrelevant-at-10-disposition.md. Queued done inbox record.
  4. #S4K1GA (P3) · Motion Preference Acceptance: Verified motion preference implementation in src/app/globals.css and tests/answer-activity-trace-css.test.ts (Motion=Full opts in over OS reduce motion, Motion=System/Reduced preserves static visible fallbacks without blank states). Queued done inbox record.
  5. #9X40BT (P2) · Supabase Preview Branch Compute Cap: Authored operator guidance in docs/operator-supabase-branching-cap.md detailing Automatic Branching lowered from 3 to 1 in Supabase Project Settings (Integrations > GitHub). Verified 0 active preview branches on sjrfecxgysukkwxsowpy with local CI Migration replay (db-reset-verify) as the safe independent invariant. Queued done inbox record.
  6. #HVTYAT (P2) · OpenAI Zero-Data-Retention (ZDR) Doc Reconciliation: Reconciled docs/openai-cross-border-basis.md §8 status table with ledger #053 (2026-08-18) and updated src/lib/privacy-page-content.tsx and tests/privacy-ui.test.ts to reflect verified ZDR, disabled data sharing, and no model training on API submissions. Queued done inbox record.
  7. #102 (P3) · Additive documents Index EXPLAIN Measurement: Authored operator diagnostic script scripts/operator-explain-documents-indexes.sql comparing documents_title_trgm_idx concatenated expression vs bare-column ILIKE predicates on title and file_name. Documented diagnostic plan comparison and runbook in docs/operator-apply-performance-latency-remediation.md. Queued done inbox record.

Verification

  • npm run docs:check-links — PASS (3,721 repo path references resolved)
  • npm run docs:check-scripts — PASS (944 npm-run script references resolved)
  • node scripts/check-outstanding-issues.mjs — PASS (503 rows: 91 open, 412 archived, conflict-free inbox valid)
  • npm run guard:push:self-test — PASS (Push safety guards 1–6 passed)
  • Format & Prettier validation clean across all modified files

Risk and rollout

  • Risk: low — documentation, operator SQL diagnostics, governance reconciliation, and conflict-free inbox records.
  • Rollback: revert PR or discard inbox entries before reconciliation.
  • Provider or production effects: None

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

Note

Low Risk
Changes are documentation, generated ledger snapshots, and operator SQL diagnostics with no production code-path or schema deployment in this PR; privacy copy date alignment is low risk though inbox outcomes should be read against operator docs that still treat some dashboard settings as unverified.

Overview
This PR reconciles the outstanding-issues ledger with queued inbox actions: it records verified closeouts for mobile CLS gate reliability (#50QRCF, #TYZK23, #KFRC3H), in-flight CI push guards (#TF6TPJ), RAG browser matrix + irrelevant-at-10 disposition (#23), motion preference contracts (#S4K1GA), and OpenAI cross-border status (#HVTYAT), and refreshes data/outstanding-issues-snapshot.json / data/repo-awareness-snapshot.json (pending count and new evidence docs).

Governance and operator documentation is the substantive content: docs/openai-cross-border-basis.md §8 fills the status table from ledger #53 (executed DPA, verified ZDR, no-training); docs/evidence/rag-irrelevant-at-10-disposition.md documents retaining the 0.0917 irrelevant-at-10 baseline; docs/operator-supabase-branching-cap.md frames preview-branch compute risk and CI migration replay (recommended limit change is explicitly not verified as applied); docs/operator-apply-performance-latency-remediation.md adds an EXPLAIN runbook; and scripts/operator-explain-documents-indexes.sql supplies before/after plan diagnostics for #102 (inbox update — migration + search_schema_health registration still owed).

src/lib/privacy-page-content.tsx bumps PRIVACY_CONTENT_AS_OF to 2026-08-27 to align with the reconciled provider disclosures.

Reviewed by Cursor Bugbot for commit 7529453. Configure here.

…r governance tasks (#50QRCF, #TYZK23, #KFRC3H, #TF6TPJ, #23, #S4K1GA, #9X40BT, #HVTYAT, #102)
@coderabbitai

coderabbitaiBot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Next included review available in 5 minutes.

View limit details

Limit details: You’ve used the included review currently available. Your 96 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.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: fde55899-1b18-43ad-a0e7-8e3c237f5e7a

📥 Commits

Reviewing files that changed from the base of the PR and between 364177b and d07a463.

⛔ Files ignored due to path filters (14)
  • docs/evidence/rag-irrelevant-at-10-disposition.md is excluded by !docs/**, !**/*.md
  • docs/openai-cross-border-basis.md is excluded by !docs/**, !**/*.md
  • docs/operator-apply-performance-latency-remediation.md is excluded by !docs/**, !**/*.md
  • docs/operator-supabase-branching-cap.md is excluded by !docs/**, !**/*.md
  • docs/outstanding-issues-inbox/13ea8c93-7134-4e18-9f7c-6c0f9a624726.json is excluded by !docs/**
  • docs/outstanding-issues-inbox/1836d32f-6db8-45f2-bc71-f429b22f5a1c.json is excluded by !docs/**
  • docs/outstanding-issues-inbox/46d9aaa1-e700-488d-8b75-bb6db7067475.json is excluded by !docs/**
  • docs/outstanding-issues-inbox/5ccb7318-5b8c-4caf-ab95-eb9f4dae8883.json is excluded by !docs/**
  • docs/outstanding-issues-inbox/6399ff26-1ea9-47ec-b23f-328c2bf10d6f.json is excluded by !docs/**
  • docs/outstanding-issues-inbox/96276ae2-e83f-4c2e-8ad2-8e541471e094.json is excluded by !docs/**
  • docs/outstanding-issues-inbox/a193dfb0-236c-44bd-bfc1-f955eb20f273.json is excluded by !docs/**
  • docs/outstanding-issues-inbox/c6533595-1f18-4be2-ba89-7a793a122779.json is excluded by !docs/**
  • docs/outstanding-issues-inbox/f5a27b65-309d-465c-9f5f-b87082206325.json is excluded by !docs/**
  • docs/scripts-index.md is excluded by !docs/**, !**/*.md
📒 Files selected for processing (4)
  • data/outstanding-issues-snapshot.json
  • data/repo-awareness-snapshot.json
  • scripts/operator-explain-documents-indexes.sql
  • src/lib/privacy-page-content.tsx

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

@cursor

cursorBot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Bugbot couldn't run - usage limit reached

Bugbot 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_a1a0ec39-d5b7-41da-93d1-7d3235c45791)

@supabase

supabaseBot commented Aug 27, 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 ↗︎.

@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:f4b5f8a980

ℹ️ 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 threadsrc/lib/privacy-page-content.tsx Outdated
Comment threaddocs/operator-supabase-branching-cap.md
Comment threaddocs/outstanding-issues-inbox/96276ae2-e83f-4c2e-8ad2-8e541471e094.json Outdated
Comment threaddocs/outstanding-issues-inbox/5ccb7318-5b8c-4caf-ab95-eb9f4dae8883.json Outdated
BigSimmoand others added 3 commits August 27, 2026 12:05
Merge origin/main (scripts-index count conflict). Restore conditional provider-retention wording on /privacy, sync AGENTS.md branching limit to 1, reclassify #102 as an update request, and restore truncated inbox outcomes.
…st main
Resolve repo-awareness-snapshot and scripts-index conflicts after main advanced to 1ed22be.
…napshot
- AGENTS.md / docs/operator-supabase-branching-cap.md: the automatic-branching
limit reduction (3 -> 1) has no available independent evidence it was
actually applied in the Supabase dashboard. The only check we can run
(zero active preview branches) is equally consistent with the limit still
being 3, so AGENTS.md keeps documenting 3 as the authoritative, verifiable
state, and the operator doc is reframed as a recommended action pending an
operator-supplied durable record (screenshot or exported settings value).
- data/outstanding-issues-snapshot.json: regenerate after the #102 inbox
record changed from done to update, which changed the ledger's pending
count (22 -> 31). `node scripts/check-outstanding-issues-snapshot.mjs`
now reports in step.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0196uN8MrcdNMC3siuR94THX

@cursorcursorBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Not approved: Cursor Bugbot did not complete on this head (usage/spend limit), so the automated-review signal is incomplete. Human review is needed; a reviewer was requested. No prior Approval Agent approval to dismiss.

Open in WebView Automation

Sent by Cursor Approval Agent: Pull Request Router and Approver

AGENTS.md and docs/operator-supabase-branching-cap.md content changes in the
prior commit left data/repo-awareness-snapshot.json behind. Regenerated with
npm run snapshot:repo-awareness; npm run check:repo-awareness-snapshot and
npm run check:outstanding-issues-snapshot both report in step.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0196uN8MrcdNMC3siuR94THX
…intenance-governance-sweep
# Conflicts:
#	data/repo-awareness-snapshot.json
@cursor

cursorBot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Bugbot couldn't run - usage limit reached

Bugbot 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_4a8b8e4b-56e8-474e-a271-86f43c22b565)

@BigSimmo
BigSimmo enabled auto-merge (squash) August 27, 2026 04:46
@BigSimmo
BigSimmo merged commit 89f84b5 into mainAug 27, 2026
29 checks passed
@BigSimmo
BigSimmo deleted the gemini/engineering-maintenance-governance-sweep branch August 27, 2026 04:47
BigSimmo pushed a commit that referenced this pull request Aug 27, 2026

PR #2406 (merged to main) independently closed #S4K1GA, #50QRCF, #KFRC3H,
#102, #23, and #TYZK23 with its own inbox records. This branch queued
separate, competing records for the same six tickets, which
ledger-inbox.mjs correctly refuses to reconcile automatically. Cancel
this branch's duplicate requests so main's already-landed #2406 records
are the ones that apply.
BigSimmo pushed a commit that referenced this pull request Aug 27, 2026
PR #2404's own branch (aaa3bc4) and main's PR #2406 (89f84b5) independently
queued "done" requests for the same three tickets (#TF6TPJ, #HVTYAT,
#9X40BT), each against the same baseRowFingerprint. Merging both left two
pending mutations per ticket, which scripts/ledger-inbox.mjs's batch planner
correctly refuses to reconcile without an explicit cancellation (this also
made npm run docs:check-links crash, since it drives the same planner).
Cancel this branch's three duplicates in favor of main's more detailed,
already-landed versions; nothing is lost since both entries agreed on the
same "done" outcome, only the level of detail differed.
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