Skip to content

feat(spec): sync the CCHP v1.0.10 control-plane spec for v0.1.2 - #6

Merged
ding113 merged 3 commits into
mainfrom
chore/sync-spec-v1.0.10
Oct 21, 2026
Merged

ding113 merged 3 commits into
mainfrom
chore/sync-spec-v1.0.10

Conversation

@ding113

@ding113 ding113 commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Why

cchp v0.1.1 is built from the CCHP v1.0.6 control-plane spec. CCHP v1.0.10 is the latest release; this PR syncs the spec to it and prepares cchp v0.1.2.

What changed

  • make sync-spec UPSTREAM=v1.0.10: spec/upstream/control-plane.yaml exported from CCHP v1.0.10 (b0bf159de), spec/source.lock.json updated, catalog, schemas, engine spec and docs/coverage.md regenerated.
  • Coverage: 621 operations, 514 available, 107 excluded with reasons, 0 unsupported (was 562 / 464 / 98 / 0).
  • Added (62 operations): each has a group, command name, English summary and a policy entry in spec/operation-policy.yaml.
    • Available (53): moderation events, stats, summary, sanctions and lifting a sanction; organization billing mode and member and team overdraft limits (plus the platform admin view and setting); grant adjustments (list, show, items, member grants, compensation plans, subjects, preview, create, retry); plan renewal; inviter binding; LLM token and member key disable and enable; member tags, member account status, notification categories; platform teams and member tags; redeem code list, batch view and updates; plugin upstream bindings, guard override and webhook secret rotation; provider group key scheduling, split endpoint save, task callbacks, draft model sync preview; the organization's task webhook secret (status, reveal, rotate). listProviders became listAdminProviders on the same path, so cchp providers overview is unchanged.
    • Excluded with reasons (9): getMyModerationCooldown, listUserNotifications, markUserNotificationsRead (self-service; the server rejects management tokens, checked: 403), setMemberEmail, setMemberTemporaryPassword (recent browser sign-in; checked: 403), completePaymentOrderPayer (WeChat in-app browser payment step), updateAdminUser, getAdminUserSecurity, listAdminUserSessions (the server accepts only a browser session).
  • Removed (3): listModerationViolations and streamModerationViolations with cchp safety violations and cchp safety watch-violations; listProviders (renamed, see above).
  • Changed (133 operations with schema or parameter changes): new parameters get English help; lists the server now pages (listMembers, listInvitations, listLLMTokens, listMemberLLMKeys, listWalletReferrals) get pagination policies; getUsageLogArchiveRaw stays a download with its new media types.
  • Safety classes: destructive for clawbacks and retries of grant adjustments, plan renewal, unbinding the inviter, the organization billing mode and rotating the task webhook secret; the rest of the changes are writes, and reads are retried.
  • test(e2e): the pagination test creates four providers, since v1.0.10 omits nextCursor after the last item.

Tests

  • make check-generated, make test, go test -race ./..., go vet -tags e2e ./..., make lint (golangci-lint v2.14.0): pass.
  • make e2e against a local CCHP v1.0.10 built from the tag (fresh Postgres and Dragonfly on 10.213.212.0/24, ports 63730-63735): up, bootstrap and all 15 e2e tests pass.
  • CHANGELOG.md: v0.1.2 holds the Unreleased download fixes (fix(download): save every download byte for byte whatever its Content-Type #5) and this sync.
  • Smoke runs of the new commands against the same server: reads, write gates (--allow-write, --confirm), LLM token disable and enable, overdraft limits on a postpaid organization, redeem code issue, list, disable and batch update, task webhook secret reveal and rotate.

🤖 Generated with Claude Code

ding113 and others added 2 commits October 21, 2026 21:15
Re-export spec/upstream/control-plane.yaml from CCHP v1.0.10 (b0bf159de)
with make sync-spec and regenerate the catalog, schemas, engine spec and
docs/coverage.md: 621 operations, 514 available, 107 excluded with reasons,
0 unsupported.

- 62 new operations get a group, command name, English summary and a
  policy entry. Nine are excluded with reasons: the self-service
  moderation cooldown and personal notifications (the server rejects
  management tokens), setting a member's email or temporary password
  (recent browser sign-in), the WeChat in-app payment step, and three
  user administration operations that accept only a browser session.
- listProviders became listAdminProviders on the same path; cchp
  providers overview keeps its name.
- listModerationViolations and streamModerationViolations are gone with
  their commands; moderation events replace them.
- Lists the server now pages (members, invitations, LLM tokens, member
  keys, referrals) get pagination policies, and new parameters get
  English help.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…n test

CCHP v1.0.10 leaves nextCursor out once the last provider is listed, so on
a fresh server with exactly three providers --max-items 3 correctly ends
with has_more false. A fourth provider keeps the list going past the third
item, which is what the test checks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 21, 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 ⚠️ Failed 2026-10-21T13:34:36.626869Z
We couldn’t complete this review. Comment @codex review to try again.
5d639f4 PR opened
ℹ️ 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.

Move the Unreleased download fixes (#5) into v0.1.2 and add the CCHP
v1.0.10 spec sync with its new, changed and removed commands (#6).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ding113
ding113 merged commit 37cc200 into main Oct 21, 2026
5 checks 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