Skip to content

test: verify published admin key metadata contract - #1096

Merged
sidneyswift merged 1 commit into
mainfrom
codex/agent-signups-docs-contract
Oct 21, 2026
Merged

sidneyswift merged 1 commit into
mainfrom
codex/agent-signups-docs-contract

Conversation

@sidneyswift

@sidneyswift sidneyswift commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Documents the metadata response added by #1095 through the shared published-docs fixture. The new tests call the actual GET route and authentication/query code with synthetic service boundaries, checking both auth envelopes, admin denial, masked read failures, returned key-record counts, no credential fields, and UTC calendar periods.

The companion Marketing reference distinguishes /api/admins/agent-signups from the unavailable /api/admins/agent/signups. Current-email metadata and returned-record counts do not establish signup origin, unique agents/accounts, active keys, adoption or collection completeness. No runtime behavior or live data access changes; Mono #327 / API #428 and held gates remain separate.

Validation: 218 tests / 23 files pass (including 15 new published-contract tests and the 20 metadata owner tests); response-constructor typecheck, full lint, changed-file formatting and whitespace checks pass. Whole-project TypeScript retains exactly the same 211 diagnostic lines, with none added; it is not clean. New tests first failed for the missing fixture. API fixture release precedes the Marketing source pin, then generated retained Docs publication; coordinator owns merge approval and release.


Summary by cubic

Verifies the documented admin key metadata contract by testing the real GET route against a new shared published-docs fixture entry.

  • Adds 15 contract tests exercising auth envelopes, admin denial, masked read failures, UTC calendar cutoffs, and schema adherence with synthetic boundaries.
  • Documents that the metadata route returns key-record data only and does not establish signup origin, unique agents, adoption, or collection completeness.
  • No runtime behavior or live data access changes; tests only.

Written for commit d6f14f6. Summary will update on new commits.

View guided diff Turn on auto-fix

@vercel

vercel Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
api Ready Ready Preview Oct 21, 2026 10:47pm UTC

Request Review

@coderabbitai

coderabbitai Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: Repository: recoupable/api/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 94a64a8c-f873-41a0-8479-dcdc50f85826
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@sidneyswift
sidneyswift marked this pull request as ready for review October 21, 2026 22:51
@sidneyswift
sidneyswift merged commit 7bb7677 into main Oct 21, 2026
7 checks passed

This branch was successfully deployed

1 active deployment
Preview — d6f14f60 Deployed Oct 21, 2026 by vercel[bot]
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