Skip to content

Update schema snapshot test for configurable indexing agent URL - #161

Merged
BigSimmo merged 4 commits into
mainfrom
copilot/update-schema-test-configurable-agent-url
Jul 2, 2026
Merged

Update schema snapshot test for configurable indexing agent URL#161
BigSimmo merged 4 commits into
mainfrom
copilot/update-schema-test-configurable-agent-url

Conversation

CopilotAI commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • The schema test still asserted a fully hard-coded invoke_indexing_v3_agent URL, but the URL base is now configurable via v_base_url.

  • This updates the assertion to validate the stable function path/query fragment so schema tests stay aligned with the migration intent.

  • Schema test alignment

    • In /tests/supabase-schema.test.ts, replaced the exact host assertion with a path-level assertion:
      • from hard-coded https://sjrfecxgysukkwxsowpy.supabase.co/functions/v1/indexing-v3-agent?limit=
      • to /functions/v1/indexing-v3-agent?limit=
expect(schema).toContain("/functions/v1/indexing-v3-agent?limit=");

Verification

  • npm run verify:cheap
  • npm run verify:ui when UI, routing, styling, browser behavior, reduced-motion, or forced-colors behavior changed
  • npm run verify:release before release or handoff confidence claims
  • npm run format:check
  • npm run check:production-readiness when clinical workflow, privacy, environment, Supabase, source governance, or deployment behavior changed
  • npm run check:deployment-readiness when deployment startup, hosting, or rollout behavior changed

Clinical Governance Preflight

Complete this section when the change touches ingestion, answer generation, search/ranking, source rendering, document access, privacy, production env, or clinical output.

  • 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

  • Scope is intentionally minimal: one test assertion updated to remove coupling to a specific Supabase host while preserving URL-shape validation for the cron invoker.

CopilotAI changed the title [WIP] Update schema test for the configurable agent URLUpdate schema snapshot test for configurable indexing agent URLJul 2, 2026
CopilotAI requested a review from BigSimmoJuly 2, 2026 10:08
@BigSimmo
BigSimmo marked this pull request as ready for review July 2, 2026 10:29
@BigSimmo
BigSimmo enabled auto-merge July 2, 2026 10:29

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

ℹ️ 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 threadtests/supabase-schema.test.ts
@BigSimmo
BigSimmo merged commit edf5383 into mainJul 2, 2026
4 checks passed
@BigSimmo
BigSimmo deleted the copilot/update-schema-test-configurable-agent-url branch July 2, 2026 16:31
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.

**<sub><sub>![P2 Badge](https://img.shields.io/badge/P2-yellow?style=flat)</sub></sub> Update the schema test for the configurable agent URL**

2 participants

@BigSimmo