Skip to content

test(api): drop KNOWN_GAPS entries that #441 implemented - #484

Merged
thinkclay merged 1 commit into
mainfrom
claude/contract-baseline-441
Jul 30, 2026
Merged

thinkclay merged 1 commit into
mainfrom
claude/contract-baseline-441

Conversation

@thinkclay

Copy link
Copy Markdown
Contributor

main is currently red on the SDK↔api contract test.

#439 landed the test with an 85-entry KNOWN_GAPS baseline that was captured before #441 merged. #441 implemented two of those entries, so the stale-entry assertion fires on every run:

SDK ↔ api: KNOWN_GAPS has no stale entries ... FAILED
  GET /v1/profiles/slug/check
  PATCH /v1/profiles/slug

This is the assertion working as intended — it exists precisely so a baseline can't quietly drift out of date once endpoints get implemented — but the two lines need removing. Baseline drops 85 → 83.

Verification

Reproduced red on origin/main in a scratch worktree, naming both entries, then confirmed green with this change:

deno test --allow-read packages/supabase/functions/api/__tests__/contract/
api router: parser still understands the route files ... ok
SDK ↔ api: no SDK method calls an unimplemented endpoint ... ok
SDK ↔ api: KNOWN_GAPS has no stale entries ... ok
ok | 3 passed | 0 failed

I also confirmed the two routers coexist correctly after the merge — #441's static /slug/check and PATCH /slug register ahead of #439's /slug/{slug} param route, so neither is swallowed. Against the local stack: /slug/check and /slug/history return 401 from their own handlers, /slug/eric returns the profile, /slug/no-such 404s.

Remaining gaps are tracked in #447.

🤖 Generated with Claude Code

main is currently red on the contract test. #439 landed the test with an
85-entry baseline captured before #441 merged; #441 implemented two of
those entries, so the stale-entry assertion now fires on every run:

  GET /v1/profiles/slug/check
  PATCH /v1/profiles/slug

That is the assertion doing its job — it exists so a baseline cannot
quietly drift out of date — but it needs the two lines removed. Baseline
drops 85 -> 83.

Verified red before and green after: checked out origin/main in a
scratch worktree and reproduced the failure naming both entries, then
confirmed 3/3 pass with this change.

Co-Authored-By: Claude Opus 5 <[email protected]>
@thinkclay
thinkclay merged commit e567179 into main Jul 30, 2026
5 of 14 checks passed
@thinkclay
thinkclay deleted the claude/contract-baseline-441 branch July 30, 2026 12:47
Sign up for free to 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.

1 participant