Repository navigation
feat(emulators,qa): add stateful Anthropic /v1/messages emulator and 33 account/calendar/inbox story tests - #2400
Open
NubsCarson wants to merge 1 commit into
Open
NubsCarson wants to merge 1 commit into
NubsCarson wants to merge 1 commit into
Conversation
…33 account/calendar/inbox story tests
NubsCarson
temporarily deployed
to
turbo-cache-read
December 4, 2026 20:31 — with
GitHub Actions
Inactive
NubsCarson
requested a deployment
to
turbo-cache-read
December 4, 2026 20:31 — with
GitHub Actions
In progress
NubsCarson
temporarily deployed
to
turbo-cache-read
December 4, 2026 20:31 — with
GitHub Actions
Inactive
NubsCarson
temporarily deployed
to
turbo-cache-read
December 4, 2026 20:31 — with
GitHub Actions
Inactive
NubsCarson
temporarily deployed
to
turbo-cache-read
December 4, 2026 20:31 — with
GitHub Actions
Inactive
NubsCarson
temporarily deployed
to
turbo-cache-read
December 4, 2026 20:31 — with
GitHub Actions
Inactive
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Builds on the service emulation and story QA framework in
#2382(and cleanly stacks on merged#2396) with two self-contained improvements:Stateful Anthropic
/v1/messagesloopback emulator (@repo/eliza-harness):packages/eliza-harness/src/providers/anthropic-provider.tsbuilt onvibestack/emulate(createEmulatorServer), replacing thecanned-fixtureentry foranthropicinemulators/manifest.jsonwith a dedicatedvibestack-customemulator (contractHashupdated,4verified services untouched).GET /v1/models,GET /v1/models/:id,POST /v1/messages/count_tokens, andPOST /v1/messages(non-streaming JSON and wire-faithful Anthropic SSE streams:message_start,ping,content_block_start,content_block_deltafortext_deltaandinput_json_delta,content_block_stop,message_delta,message_stop), multi-turntool_use/tool_result, strictx-api-key+anthropic-version+max_tokens+405validation, Anthropic error envelopes (429 rate_limit_error+retry-after,529 overloaded_error,401 authentication_error,500 api_error),x-vibestack-namespaceisolation,FaultArmory(/__control/fault), and/__control/{script,messages,reset,requests,state}.startAnthropicProvider,DEFAULT_ANTHROPIC_MODELS,DEFAULT_ANTHROPIC_VERSION, and types frompackages/eliza-harness/src/index.ts.packages/eliza-harness/test/anthropic-provider.test.ts(includingassertNoSecrets).Deterministic story-cited QA tests closing all 33 uncovered
account,calendar, andinboxstories:apps/app/test/account-stories.test.ts(16stories acrosschange,google,index,outside,plan,provider,records,session,signIn).apps/app/test/calendar-stories.test.ts(7stories acrossagent,editor,index,reminderReopen,sharing,writing).apps/app/test/inbox-stories.test.ts(10stories acrossaccess,drafts,index,letter,sending,shelf).pnpm cli qa statusstory coverage from494/634(77.9%) to527/634(83.1%) with126/126(100%,0uncovered) acrossspec/app/{account,calendar,inbox}/*and0dangling citations. Zero edits tospec/,gen/, orspec/lock.json.Verification
pnpm exec node vibestack/spec.ts tasks @repo/eliza-harness#build @repo/eliza-harness#typecheck @repo/app#typecheck @repo/cloud#build: PASSpnpm --filter @repo/eliza-harness test: PASS (4/4files,26/26tests, includingtest/anthropic-provider.test.ts3/3)pnpm --filter @repo/app exec vitest run --project node test/account-stories.test.ts test/calendar-stories.test.ts test/inbox-stories.test.ts: PASS (3/3files,33/33tests)pnpm cli emulate audit --json: PASS (ok: true,946files scanned,0uncovered,0stale)pnpm cli emulate status --json: PASS (ok: true,4verified,9unverified,0stale)pnpm cli qa status --summary --json: PASS (527/634covered =83.1%,126/126inaccount/calendar/inbox,0dangling citations)NODE_OPTIONS=--max-old-space-size=4096 pnpm exec eslint --max-warnings 0on all 6 touched/added.tsfiles: PASS (0errors,0warnings)pnpm exec jscpd --silent --threshold 0on touched files and whole repo (1475files): PASS (0clones,0.00%)pnpm exec knip: PASSpnpm exec madge --circular vibestack packages apps: PASS (2477files,0circular dependencies)pnpm run no-bun: PASS