Skip to content

test: verify guest adoption workspace routing - #1223

Merged
sidneyswift merged 1 commit into
mainfrom
codex/context-guest-workspace-contract
Nov 2, 2026
Merged

sidneyswift merged 1 commit into
mainfrom
codex/context-guest-workspace-contract

Conversation

@sidneyswift

@sidneyswift sidneyswift commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Add the missing guest-adoption routing coverage through the real handler, authentication-context validation, owner authorization and processor. Mock only credential/membership lookups and RPC/dispatch boundaries. The eight cases verify personal and organization actor/owner routing, denied/malformed scope, domain membership recheck, credential refusal, retained claim cookies, and handling of mocked expired/foreign-claimed/replay answers.

Only a new test suite and two bounded README paragraphs change. Existing guest/transport/owner/workflow tests are reused, including fresh-start capability behavior and duplicate-worker skipping. No production behavior, claim policy, destination UI, migration or attribution changes.

Validation: baseline34tests/5suites passed (not claimed as RED); a temporary wrong-owner production mutation failed the organization routing assertion, then production was restored byte-identical and all8newcases passed again. Scoped lint/format passed. Repository-settings scoped TypeScript passed; an exploratory strict=true run reported one existing transitive nullability error in unchanged canAccessAccount.ts. Independent review recorded in handoff.

Mocked RPC idempotent/rejection answers are source fixtures, not DB transaction or intended-account hosted/browser proof. Redispatching the existing guest ID does not itself prove extraction deduplication. Root owns final exact-head review/CI/merge.


Summary by cubic

Adds guest-adoption workspace routing coverage through the real handler, authentication-context validation, owner authorization, and processor, mocking only credential/membership lookups and RPC/dispatch boundaries.

  • The eight new cases in guestWorkspaceRouting.test.ts verify personal and organization actor/owner routing, denied and malformed scopes never reaching private storage or dispatch, domain membership recheck, credential refusal, retained claim cookies, and mocked expired/foreign-claimed/replay answers.
  • Two README paragraphs document the routing source contract and note that mocked RPC answers don't prove DB idempotency, extraction deduplication, or hosted-account/browser behavior.
  • No production behavior, claim policy, destination UI, migration, or attribution changes; existing guest/transport/owner/workflow tests are reused.

Written for commit 16caf0f. Summary will update on new commits.

View guided diff Turn on auto-fix

@vercel

vercel Bot commented Nov 2, 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 Nov 2, 2026 8:07pm UTC

Request Review

@coderabbitai

coderabbitai Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

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

Run configuration
  • 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

@sidneyswift
sidneyswift marked this pull request as ready for review November 2, 2026 20:11
@sidneyswift
sidneyswift merged commit f38a86b into main Nov 2, 2026
7 checks passed

This branch was successfully deployed

1 active deployment
Preview — 16caf0f6 Deployed Nov 2, 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