Skip to content

feat: add admin agent-prefixed key metadata report - #1095

Merged
sidneyswift merged 2 commits into
mainfrom
codex/agent-signups-report
Oct 21, 2026
Merged

sidneyswift merged 2 commits into
mainfrom
codex/agent-signups-report

Conversation

@sidneyswift

@sidneyswift sidneyswift commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Admins lack the GET /api/admins/agent-signups metadata report proposed in #428. Add the admin-only endpoint with optional all/daily/weekly/monthly UTC calendar periods and the flat response { status, total, signups: [{ id, name, email, created_at }] } for API-key records associated with an agent+ account email.

Reuse current admin authentication, UTC cutoff and typed error-response helpers. Select metadata only, never key hashes or key values. Case-insensitive prefix matching follows the current signup convention. Choose a matching email instead of the first arbitrary address, and propagate query failures to 500 instead of reporting a successful zero.

This report classifies current key records by an email convention. It does not establish signup origin, unique agents/accounts, active keys or adoption. total counts returned records; existing Data API row limits apply, without a completeness or pagination guarantee. No signup/key creation, database/schema/permission/billing change, UI, poller, export or automatic caller. Docs owns the operation inventory/publication companion; contract and limits are in docs/verification/agent-signups-report.md.

Validation:

  • Tests written before implementation; 20 new tests pass. Error-body/status/CORS characterization also passed before the shared-helper replacement.
  • 236 focused tests across 41 files and 183 contract tests across 20 files pass. Local response-contract typecheck, full lint, formatting and diff checks pass.
  • Local whole-project TypeScript retains 211 diagnostics byte-identical to the baseline; no clean whole-project typecheck claim.
  • Fresh corrected-head CI: 7,247 tests passed and 15 skipped across 1,293 passing files and 13 skipped files. Response-contract typecheck, all four required checks and preview PASS.
  • Records independently accepted the exact corrected head: zero Spec/Standards findings; both prior P3 constructor findings closed.
  • Actual GET/validation/cutoff code uses mocked auth/query leaves. The installed Supabase/PostgREST request builder uses a fake transport. No live database/admin/credential/account/key/Slack/provider/customer/credit operation, deployment setting or permission change.

Head 57e8daf394ca63da68f4f3f8390a82b81d26833f, tree 584aa4c10a206dcd9cb04f71811db4cc1656fbcc, based on API1094 actual merge 1d2109f1d313ea4cd02e6a294467823c6989c5d1. Fixture/contract changes preserved. Ready for coordinator guarded merge; not merged/deployed. Original #428 remains untouched.

@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:30pm 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: 5654a89b-5b16-4d3e-9368-7460f99bb889
  • 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 merged commit 8ec4169 into main Oct 21, 2026
7 checks passed

This branch was successfully deployed

1 active deployment
Preview — 57e8daf3 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