GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — CI: streamline risk-scoped PR verification by BigSimmo · Pull Request #454 · BigSimmo/PsychSift

Conversation

@BigSimmo

@BigSimmo BigSimmo commented Jul 10, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Owner

Summary

  • Add repository-owned change classification and one always-reporting required PR aggregate.
  • Run coverage, builds, migration replay, critical UI, Codex workflow guards, and offline RAG checks only when their scopes apply.
  • Replace the placeholder RAG preflight with 57 production-backed tests using static fixtures and mocked providers.
  • Keep five Chromium contract tests required and run the remaining 119 as advisory PR regression coverage.
  • Align local PR verification, review automation guidance, and the PR checklist with the new CI flow.
  • Fail closed when a diff base is unknown, preserve both sides of renames, and classify coverage config and runtime data inputs correctly.

Why

The previous required workflow repeated expensive work and made broad browser and migration checks block unrelated pull requests. This keeps deterministic and clinical safety checks while reducing the required UI gate from roughly ten minutes to about thirty seconds.

Verification

  • npm run verify:cheap: passed; 152 test files passed, 1 skipped; 1,426 tests passed, 1 skipped.
  • npm run verify:pr-local: passed; runtime, full formatting, lint, typecheck, 1,426 unit tests, production Next.js build, and offline RAG preflight completed.
  • npm run eval:rag:offline: passed; 36 fixture cases validated and 57/57 production contract tests passed with providers mocked and credentials removed.
  • npm run test:e2e:critical: passed; 5/5 Chromium contract tests in about 29 seconds.
  • npm run test:e2e:advisory: passed; 119/119 Chromium regression tests in 9.8 minutes.
  • npm run check:ci-scope: passed, including coverage-config, runtime-data, rename, unknown-base, and unstaged-path regression cases.
  • npm run check:github-actions: passed; GitHub Action pin validation completed.
  • npm run check:codex-autofix-workflow: passed; scoped auto-resolve workflow guard completed.
  • npm run format:check: passed; all repository files match Prettier formatting.
  • git diff --check: passed; no whitespace errors.

Not Run

  • No live Supabase or OpenAI evaluations.
  • No production deployment or data mutation.
  • No release gate, because this process-only PR does not change production clinical behavior.

Risk and Governance

This is CI, test, and process infrastructure only. The offline RAG gate invokes production retrieval and answer-contract code with credentials removed and providers mocked; live clinical eval requirements remain unchanged for relevant future PRs. Branch protection now requires CI / PR required and Secret Scan / Gitleaks; Semgrep remains advisory.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@BigSimmo
ci: streamline risk-scoped PR verification
e66c2a9
Add conservative change classification, an always-reporting required aggregate, production-backed offline RAG contracts, and a fast critical UI gate with advisory regression coverage. Verified with verify:cheap, verify:pr-local, 124 Chromium tests, and CI workflow guards.
@supabase

supabase Bot commented Jul 10, 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 ↗︎.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coderabbitai

coderabbitai Bot commented Jul 10, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The PR adds path-scoped CI classification, local PR verification, offline RAG preflight checks, critical/advisory UI test commands, a consolidated required gate, and updated Codex review-policy and process documentation.

Changes

PR verification and merge gating

Layer / File(s) Summary
Change scope classification
scripts/ci-change-scope.mjs, package.json
Changed files are classified into documentation, source, UI, database, RAG, workflow, container, Codex, coverage, and build scopes, with CLI output and self-tests.
Local verification and offline RAG checks
scripts/verify-pr-local.mjs, scripts/eval-rag-offline.mjs, tests/rag-offline-answer.test.ts, .github/pull_request_template.md, package.json
Local verification runs common checks and conditionally runs build and offline RAG evaluation; RAG fixtures and answer citation contracts receive expanded validation.
Conditional CI and required aggregation
.github/workflows/ci.yml, docs/process-hardening.md, scripts/check-codex-autofix-workflow.mjs, AGENTS.md, docs/branch-review-ledger.md
CI is split into scoped jobs with safety, coverage, build, UI, database, and aggregate required checks; Codex instruction boundaries and process records are updated.
Critical UI test partitioning
tests/ui-smoke.spec.ts, package.json
Critical Playwright tests are tagged and use landing-state assertions, while critical and advisory command variants are exposed for CI.

Estimated code review effort: 4 (Complex) | ~60 minutes

Sequence Diagram(s)

sequenceDiagram
  participant GitHubActions
  participant changes
  participant ScopedJobs
  participant pr-required
  participant release-browser-matrix
  GitHubActions->>changes: classify changed files
  changes->>ScopedJobs: provide scope outputs
  ScopedJobs->>pr-required: report job results
  pr-required->>release-browser-matrix: provide required aggregate status
Loading
🚥 Pre-merge checks | ✅ 10 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 70.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (10 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Generated And Sensitive Files ✅ Passed Changed files are only workflow/docs/scripts/tests; no secrets, .envs, caches, build outputs, or local artifacts were added.
Verification Claims ✅ Passed PR description lists exact commands with pass/results; no vague verification claims found.
Risky Git Or Deployment Actions ✅ Passed No edited doc, script, or workflow adds unsafe git/destructive/deployment instructions; the changes reinforce scoped review and confirmation boundaries.
Supabase Project And Schema Safety ✅ Passed No changed app/scripts/migrations/env files re-point Supabase; PR only updates CI/docs/workflow code and adds no RLS/policy/schema migrations.
Runtime And Package Manager Integrity ✅ Passed PR keeps [email protected], Node 24.x, engine-strict, and package-lock.json; changed files only add npm-based scripts and CI using npm ci.
Api Route Failure Handling ✅ Passed No runtime API/server-action changes; the new RAG offline script and answer/search paths fail closed on invalid input, auth/rate-limit, provider failures, and empty evidence.
Title check ✅ Passed The title is concise and accurately summarizes the main change: streamlining risk-scoped PR verification.
Description check ✅ Passed The description is detailed and covers summary, verification, and risk context, with only minor template section naming differences.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/pr-testing-streamlining
✨ Simplify code
  • Create PR with simplified code
  • Commit simplified code in branch codex/pr-testing-streamlining

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Jul 10, 2026
View reviewed changes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

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: e66c2a9fc6

ℹ️ 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".

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread scripts/ci-change-scope.mjs Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread scripts/ci-change-scope.mjs Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread scripts/ci-change-scope.mjs Resolved

Uh oh!

There was an error while loading. Please reload this page.

coderabbitai[bot]
coderabbitai Bot requested changes Jul 10, 2026
View reviewed changes

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@scripts/ci-change-scope.mjs`:
- Around line 292-294: Update the GITHUB_ACTIONS fallback in classify() so
unknown-base changes also trigger RAG evaluation: add a sentinel path matching
ragEvalPatterns (or return an explicit force_all scope), and ensure the
corresponding CI output/job consumes it to run offline RAG verification.
- Around line 255-259: Prevent a feature-branch upstream from being used as the
local diff base: in the base-ref selection logic, replace the `return upstream
|| null` fallback after checking known branches with `return null`, or otherwise
classify the scope as full when no recognized base branch is available.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: f8d43e5d-4f6b-455c-b078-3814db08d31a

📥 Commits

Reviewing files that changed from the base of the PR and between 155c801 and e66c2a9.

📒 Files selected for processing (12)
  • .github/pull_request_template.md
  • .github/workflows/ci.yml
  • AGENTS.md
  • docs/branch-review-ledger.md
  • docs/process-hardening.md
  • package.json
  • scripts/check-codex-autofix-workflow.mjs
  • scripts/ci-change-scope.mjs
  • scripts/eval-rag-offline.mjs
  • scripts/verify-pr-local.mjs
  • tests/rag-offline-answer.test.ts
  • tests/ui-smoke.spec.ts

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread scripts/ci-change-scope.mjs Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread scripts/ci-change-scope.mjs Resolved

Uh oh!

There was an error while loading. Please reload this page.

@BigSimmo
fix: fail closed when detecting PR scope
dbe20ec
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Jul 10, 2026

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@BigSimmo
Merge origin/main into codex/pr-testing-streamlining
ed521f1
# Conflicts:
#	AGENTS.md
#	docs/branch-review-ledger.md
#	scripts/check-codex-autofix-workflow.mjs
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Jul 10, 2026

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

coderabbitai[bot]
coderabbitai Bot approved these changes Jul 10, 2026
View reviewed changes
@BigSimmo
BigSimmo merged commit 01f2cee into main Jul 10, 2026
17 checks passed

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Jul 10, 2026
feat(differentials): polish search results UX and mobile compare bar #461
Merged
ci: finish PR verification hardening #472
Merged
@BigSimmo
BigSimmo deleted the codex/pr-testing-streamlining branch July 10, 2026 21:25
This was referenced Jul 11, 2026
feat: harden public API limits, server-only env boundaries, and registry corpus sync #488
Merged
Harden public/anonymous access + server-only env boundaries (+ eval-canary discharge fix) #529
Merged
This was referenced Jul 13, 2026
feat(rag): remediate clinical retrieval and safety #553
Merged
ci: make Codex review repair single-pass #558
Merged
ci: make production-journey UI regression blocking, isolate mockup specs (PT-05) #592
Merged
feat(ci): bundle-size budget gate (warn-only until baseline enforced) #608
Merged
test(ci): guard the Codex auto-resolve missing-token graceful skip #635
Merged
Polish responsive shell and accessibility #685
Merged
Harden CI gates, ingestion commits, and SECURITY DEFINER grants #694
Closed
Harden CI gates, ingestion commits, and SECURITY DEFINER grants #696
Merged
workflow: add risk-scoped productivity toolkit #713
Merged
CI: include answer-progress Playwright journey in production UI gate #748
Closed
CI: include answer-progress Playwright journey in production UI gate #793
Closed
Add Database workflow skills catalog and workflows skill #837
Closed
This was referenced Jul 20, 2026
ci: enforce the local verify:cheap gate set in CI + gate-manifest self-test (maturity L3) #1002
Merged
docs: refresh maturity tracker + scripts index to merged reality #1010
Merged
@coderabbitai coderabbitai Bot mentioned this pull request Jul 26, 2026
Implement Audit Recommendations for Provenance and Safety #1254
Merged
17 of 22 tasks
This was referenced Aug 8, 2026
ci(lighthouse): make the budget gate self-healing and scope it to perf-relevant diffs #1722
Merged
Fix PR body sync scope and root-portable handoff test #1830
Merged
feat(medications): patient details dock pill and drug-interaction alerting #1874
Merged
@coderabbitai coderabbitai Bot mentioned this pull request Aug 19, 2026
fix(tooling,ui,cross-mode): complete safe tooling guards, landmark deduplication, and loading skeletons #2173
Merged
12 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@chatgpt-codex-connector chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] left review comments
@coderabbitai coderabbitai[bot] coderabbitai[bot] approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@BigSimmo
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.