Uh oh!
There was an error while loading. Please reload this page.
test: improve test suite signal quality - #1851
Merged
Merged
Conversation
Astro-Hanforce-pushed
the
test/tdd-test-quality-cleanup
branch
from
August 1, 2026 17:06
2fd6987 to
c90e21aCompareAstro-Han
marked this pull request as ready for review
August 1, 2026 17:06
Uh oh!
There was an error while loading. Please reload this page.
Joob1n added a commit
to Joob1n/maka-agent
that referenced
this pull request
Aug 13, 2026
Addresses review on apache#2965. Gate the retired card on a stored `claude-subscription` connection instead of the deleted env flag, so a workspace that never enrolled is not told Maka once offered this login. Make the protocol enum the single truth: `isInteractiveOAuthLoginProvider` no longer admits the retired provider, so the coordinator's duplicate guard goes away. `oauth.account.usage.fetch` now answers `unsupported_provider` without reading the catalog — it kept a `not_found` path that no longer carried information. Remove what the retirement left unreachable: the claude branches in `createHostOAuthModelFetch` and the `claudeDeviceId` / `initialTokens` plumbing that fed them, `SubscriptionModelFetchInput.claude`, the claude arm of `decodeOAuthInitialTokenPayload`, and the loopback authorization-code path in `oauth-login` — both live providers enroll through device authorization, so the paste-code flow was its only caller. Its bounded-read and error-classification tests move to `requestOAuthTokenEndpointJson`, which the device flows still use. Also drops the dead PKCE/authorization half of `@maka/core/oauth-subscription`, the `claude` copy block behind the deleted 491-line card, the Storybook fixtures, the dangling `./claude-subscription-usage` export, and the README / SECURITY references (§4's contract-test list cited two files deleted by apache#1851; repointed at the live ones). Claude-Session: https://claude.ai/code/session_014ajaRxC4jydavY9nYUFj5J
4 tasks
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 freeto 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
Verification
npm run lintnpm run format:checknpm run build:testnpm run typecheckReview focus
This is intentionally an aggressive test-quality cleanup. The remaining static IPC parity check protects one exhaustive cross-boundary invariant; security-sensitive credential, Claude gate, optional-auth, physical-input, MiniMax environment, memory-release, and package-import contracts are covered through runtime behavior or the narrowest justified white-box boundary.