Skip to content

Add the Context company lookup emulator - #31

Merged
RhysSullivan merged 2 commits into
mainfrom
restore-context
Sep 21, 2026
Merged

RhysSullivan merged 2 commits into
mainfrom
restore-context

Conversation

@RhysSullivan

Copy link
Copy Markdown

Executor's cloud onboarding e2e provisions a context service for company lookup, but no such emulator ever existed in this repo. The hosted control plane answered 404 unknown emulator service: context on the credentials call.

Adds packages/@emulators/context:

  • POST /v1/brand/retrieve by work email address or domain, over seeded brands.
  • Free and disposable mailbox domains are rejected before any lookup, the way the real resolver rejects them.
  • Unseeded domains return 404, which is how an unrecognized company is represented.
  • A brand seeded with partial: true answers 200 with the flag set, for the caller's retry path.

Registers it in the Cloudflare hosts worker and the CLI registry, and covers the hosted provisioning path with a worker test. Appended to the CLI service list last so every existing service keeps its default port.

Verified live after deploying emulate-hosts: executor-next's e2e/create-emulators.ts now provisions all five services, and the seeded company resolves.

Executor's cloud onboarding e2e provisions a "context" service for company
lookup, but no such emulator existed, so the hosted control plane answered
404 unknown emulator service.

Adds packages/@emulators/context with brand/retrieve by work email address
or domain over seeded brands, rejecting free and disposable mailbox domains
the way the real resolver does. Registers it in the Cloudflare hosts worker
and the CLI registry, and covers the hosted provisioning path with a worker
test.
@RhysSullivan
RhysSullivan merged commit 2d16196 into main Sep 21, 2026
1 check passed
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