Skip to content

Validate task-run account overrides before account lookup - #1076

Merged
sidneyswift merged 1 commit into
mainfrom
codex/task-run-query-validation
Oct 21, 2026
Merged

sidneyswift merged 1 commit into
mainfrom
codex/task-run-query-validation

Conversation

@sidneyswift

@sidneyswift sidneyswift commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

An explicit malformed account_id on GET /api/tasks/runs currently reaches account-access lookup instead of returning an input error. Require a trimmed UUID before those lookups, matching the maintained public schema. Authorized UUIDs retain the existing admin/member/self checks and account-scoped run reader; successful list/retrieve responses and foreign-run404 behavior stay unchanged.

This ports the remaining validation requirement from retired-test API488 under Mono358, on current main8586fb7. The included two-PR disposition records that523's task ownership intent is already implemented by1037; it does not retarget or close either old PR, finish the119-item inventory, or change Stop/reconnect behavior.

Validation: six new malformed-input regressions fail before the fix. All26 affected unit/real-GET-export tests pass after it, including API-key/Bearer list/retrieve rejection before access/task-provider calls. Focused task/MCP/OAuth coverage passes210tests across36files. Targeted ESLint, formatting and whitespace checks pass. Independent source review reports no actionable findings (no independent test rerun).

Local broader OAuth run collected210passing tests but could not collect fullOAuthRouting.test.ts because this fresh worktree lacks generated lib/mcp/extension/generated-ui. That setup limitation is retained; clean full CI remains required. No dependency/runtime extension workaround, live provider/database/customer operation, permission change, credential inspection, publication or deployment was performed.

Coordinator owns merge after exact-head CI/review; original actor/client/publisher/commercial gates remain in their existing tickets.

Final candidate: a7f59e9c79fccd44516888d6ca0d6df96e06b96b, tree 79b533bb0e252c2b316b7dbc027183b531bd0147. All four required CI checks pass; full CI reports7,062passing/15skippedtests across1,279passing files and passes response-contract typecheck. Vercel preview passes. Exact-head independent source review has no actionable findings, with no independent test rerun. The local generated-artifact limitation above is preserved; clean CI completes successfully. Not merged or deployed to production.

@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 4:26pm 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: a811f6e9-652f-431f-9f32-38b298cba39d
  • 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.

This branch was successfully deployed

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