Skip to content

feat(auth): prepare opaque credential acceptance and growth-safe CLI guidance - #86

Open
purpshell wants to merge 5 commits into
mainfrom
codex/mr-c-opaque-credentials
Open

purpshell wants to merge 5 commits into
mainfrom
codex/mr-c-opaque-credentials

Conversation

@purpshell

@purpshell purpshell commented Oct 19, 2026 •

Copy link
Copy Markdown
Member

Prepares opaque machine-credential acceptance and growth-safe CLI authentication guidance. The canonical API credential fixture remains byte-identical to the accepted producer.

Rebased with merge topology preserved onto main 044f8b7. The resulting tree matches the preserved integration candidate; authorship and range evidence are retained.

Remains draft: the declared published SDK dependency lacks the required opaque-credential validators, and fresh full CLI qualification needs a matching installed dependency graph. No fallback parser or guessed package version was introduced. New-head CI, independent approval, package publication and deployed availability remain separate.

@coderabbitai

coderabbitai Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

The included review limit has been reached and this organization has disabled usage-based review continuation. Wait for reviews to reset or ask a billing admin to change After included review limits.

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 11 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available. Your 56 included PR review attempts over the past 7 days set your current allowance at 4 reviews per hour.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Team
  • Run ID: a5db6117-cd45-4482-9b2b-157ccb26d90d
Commits

Reviewing files that changed from the base of the PR and between 044f8b7 and 233ec3b.

Files selected for processing: 104
  • .prettierignore
  • README.md
  • docs/command-research/call-consent.md
  • docs/command-research/calls.md
  • docs/command-research/customers.md
  • docs/command-research/platform-management.md
  • docs/command-research/quicklinks.md
  • docs/command-research/voice.md
  • docs/development/bansafe-sdk-integration.md
  • docs/opaque-credentials-cutover.md
  • docs/superpowers/specs/2026-08-19-polymorfa-cli-design.md
  • package.json
  • skills/polymorfa/SKILL.md
  • src/base-command.ts
  • src/commands/auth/login.ts
  • src/commands/billing/limits/list.ts
  • src/commands/billing/limits/set.ts
  • src/commands/billing/priority/list.ts
  • src/commands/billing/priority/reorder.ts
  • src/commands/billing/priority/set.ts
  • src/commands/calls/export.ts
  • src/commands/calls/opt-outs/add.ts
  • src/commands/calls/opt-outs/import.ts
  • src/commands/calls/opt-outs/list.ts
  • src/commands/calls/opt-outs/remove.ts
  • src/commands/calls/policy/get.ts
  • src/commands/calls/policy/set.ts
  • src/commands/calls/stats.ts
  • src/commands/key/revoke.ts
  • src/commands/listen.ts
  • src/commands/session/list.ts
  • src/commands/session/status.ts
  • src/commands/session/view.ts
  • src/context/environment.ts
  • src/mcp/server.ts
  • src/mcp/session-discovery.ts
  • src/services/projects.ts
  • test/commands/analytics.test.ts
  • test/commands/api-gh.test.ts
  • test/commands/api.test.ts
  • test/commands/audiences-optouts.test.ts
  • test/commands/auth.test.ts
  • test/commands/bansafe.test.ts
  • test/commands/billing-controls.test.ts
  • test/commands/business.test.ts
  • test/commands/call-analytics.test.ts
  • test/commands/call-consent.test.ts
  • test/commands/call-links.test.ts
  • test/commands/call-records.test.ts
  • test/commands/calls-and-identities.test.ts
  • test/commands/calls.test.ts
  • test/commands/campaign-conversions.test.ts
  • test/commands/campaign-follow-ups.test.ts
  • test/commands/campaign-recipients.test.ts
  • test/commands/campaigns.test.ts
  • test/commands/channels.test.ts
  • test/commands/cloud-group.test.ts
  • test/commands/cloud.test.ts
  • test/commands/contacts.test.ts
  • test/commands/customers.test.ts
  • test/commands/developer-webhooks.test.ts
  • test/commands/doctor.test.ts
  • test/commands/event-stream.test.ts
  • test/commands/events.test.ts
  • test/commands/flow-endpoints.test.ts
  • test/commands/flows.test.ts
  • test/commands/functions.test.ts
  • test/commands/group-mutations.test.ts
  • test/commands/groups.test.ts
  • test/commands/history.test.ts
  • test/commands/hybrid-credentials.test.ts
  • test/commands/hybrid-link.test.ts
  • test/commands/labels.test.ts
  • test/commands/listen.test.ts
  • test/commands/media.test.ts
  • test/commands/message-sends.test.ts
  • test/commands/messages.test.ts
  • test/commands/number-tiers.test.ts
  • test/commands/operations.test.ts
  • test/commands/platform-management.test.ts
  • test/commands/presence.test.ts
  • test/commands/privacy.test.ts
  • test/commands/profile.test.ts
  • test/commands/project-context.test.ts
  • test/commands/quick-replies.test.ts
  • test/commands/quicklinks.test.ts
  • test/commands/request-logs.test.ts
  • test/commands/sip-trunks.test.ts
  • test/commands/trigger.test.ts
  • test/commands/usage.test.ts
  • test/commands/voice-wait-timeout.test.ts
  • test/commands/voice.test.ts
  • test/config/credential-vectors.test.ts
  • test/context/environment.test.ts
  • test/developer/client.test.ts
  • test/fixtures/machine-credentials-v1.json
  • test/input/stdin.test.ts
  • test/mcp/session-discovery.test.ts
  • test/sdk/client.test.ts
  • test/services/auth.test.ts
  • test/services/doctor.test.ts
  • test/services/groups.test.ts
  • test/services/projects.test.ts
  • test/services/voice.test.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@purpshell
purpshell force-pushed the codex/mr-c-opaque-credentials branch from 5cfb098 to e4708d4 Compare October 28, 2026 04:54
@purpshell
purpshell force-pushed the codex/mr-c-opaque-credentials branch from e4708d4 to 233ec3b Compare October 30, 2026 01:42
@purpshell
purpshell marked this pull request as ready for review October 31, 2026 04:46
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-31T04:48:26.662129Z 233ec3b Draft marked ready
🔒 Security Review ✅ Completed 2026-10-31T04:48:31.538140Z 233ec3b Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 233ec3b204

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

fixture.kind === 'key'
? validateOrganizationApiKey
: validateProjectToken
expect(validate(fixture.token)).toBe(fixture.token)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Pin a compatible SDK before switching credential fixtures

With the committed dependency graph, @polymorfa/sdk remains pinned to 0.1.0-dev.20261004024706, which rejects these opaque credentials, as documented in docs/opaque-credentials-cutover.md. Consequently, this acceptance assertion and the many existing tests switched to the same credentials fail during validation before reaching storage or transport. Update both the SDK dependency and lockfile to an accepted compatible artifact before enabling these fixtures; documenting the external gate does not make the committed tests compatible with a clean install.

Useful? React with 👍 / 👎.

Comment on lines 9 to +10
static override description =
'Store an organization key or project token in the operating-system keyring.'
'Store an opaque team key or project token in the operating-system keyring. Never parse credentials or assume a fixed length.'

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Regenerate the CLI reference after changing command descriptions

The changed command descriptions are not reflected in contracts/cli-reference.json; for example, its auth login summary and description still contain the previous organization-key wording. scripts/cli-reference.mjs derives both fields from the compiled command and its --check mode throws on any difference, so the reference-check stage of npm run verify will fail even after the SDK compatibility issue is resolved. Regenerate and commit the reference with npm run docs:reference for all modified command metadata.

Useful? React with 👍 / 👎.

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