COVENANT UNWIND: Remove all Texture-internal surfaces from CommonGrid
completedVictor correction 2026-05-08 19:50 UTC on PR #231: CommonGrid is public OSS; no internal-only endpoints, no Texture-specific role names, no views shaped for Texture products, no private schemas hiding objects from public view.
Unwind scope (one coherent PR):
1. Delete app/api/internal/resolve-utility/route.ts. Replace with POST /api/v1/utilities/resolve (public, documented in OpenAPI, same API-key auth as other v1 routes).
2. Drop internal_api_consumer Postgres role (migration 0007).
3. Drop commongrid Postgres schema entirely. Move utility_resolver_cache + utility_name_manual_overrides to public.* (or remove if not needed for public endpoint). Drop enrichment_schema + any _crm_ or _internal_ named objects.
4. Update fn_resolve_utility_by_name to be invokable by the same role that powers public /api/v1/* reads (or, better, call it inline from the new public route without the function layer if simpler).
5. Remove internal-only test file lib/api/__tests__/internal-resolve-utility.test.ts; replace with public route test.
6. Remove any README/docs referencing internal_api_consumer role or /api/internal/*.
7. Regen public/openapi.json to include the new /api/v1/utilities/resolve endpoint.
8. Update specs/relay/commongrid-nisc-matcher.md in mono to reframe CommonGrid side as public APIs Relay consumes like any other customer. No internal contract language.
Branch: meridian/covenant-unwind-internal-surfaces.
PR title: refactor: remove internal-only surfaces — CommonGrid is public OSS.
MUST run lint, test, build, openapi:check locally and verify all green before pushing.
Event Timeline
created
status_change
queued → completed