Skip to content

Commit 7c65d0d

Browse files
committed
docs(skills/automation): reconnect clause names the client; add the skills changeset
Contract review round: "a reconnect naming none keeps it" could read as "omit the secret and the kept secret stays", but a reconnect that names any client replaces the stored one whole. It now says "naming no client". The bytes are paid inside the new text: the code comment's "each deployment's own client" restated the when-to-use sentence below the block. The ceiling row follows the measurement (10377 bytes, 2595). skills/** ships in @objectstack/skills, so the change carries a patch changeset with both declaration lines instead of the skip label. Claude-Session: https://claude.ai/code/session_01J8VVAnmBmMPE4eUyJhJRfx Co-authored-by: Claude <noreply@anthropic.com>
1 parent fd3cf40 commit 7c65d0d

3 files changed

Lines changed: 21 additions & 8 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@objectstack/skills': patch
3+
---
4+
5+
docs(skills): the automation skill's OAuth recipe teaches the installer-supplied client
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
Recipe 6 of `objectstack-automation/references/integration-recipes.md` now shows `clientSource: 'installer'` beside a declared `clientId` + `credentialRef`, with when to use which: a declared client for an app its publisher deploys, the installer form for one installed on deployments the publisher never sees. The administrator registers a client with the vendor against the `redirectUri` the connection's status read answers, connects with `{ clientId, clientSecret }` (no secret for a public client; a reconnect naming no client keeps the stored one), and the connection reads back `client: { source: 'installer', clientId, hasSecret }`, never the secret.

‎scripts/check-skills-token-ratchet.mjs‎

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,7 @@ export const CEILINGS = new Map([
957957
// and untranslated: 「A:先削重复,余额按实测提高」 — the standing path of
958958
// ruling record 6513306068 on #27847.
959959
// ceil($(wc -c < skills/objectstack-automation/references/integration-recipes.md) / 4) == ceil(9949 / 4)
960-
// 9926 -> 10402 (card #29255; the file had shrunk 23 bytes under the row
960+
// 9926 -> 10377 (card #29255; the file had shrunk 23 bytes under the row
961961
// since, headroom 6 tokens): recipe 6 teaches `clientSource: 'installer'`
962962
// beside the declared client — when to use which, the administrator's
963963
// `{ clientId, clientSecret }` connect body against the status read's
@@ -968,14 +968,17 @@ export const CEILINGS = new Map([
968968
// once" (the paragraph under the block says an administrator connects it,
969969
// once per organization), and "`client_credentials` and `app-credential`
970970
// dispatch once the ref is set." (the file's opening paragraph says an unset
971-
// ref leaves its instance degraded until set). Arithmetic: 9926 -> 10402
972-
// (+476 net: -100 cut, +576 added) -> ceil(10402 / 4) = 2601; the ceiling
973-
// moves +113, pinned AT the measurement. Maintainer ruling 2026-10-27 on the
971+
// ref leaves its instance degraded until set). The contract-review round
972+
// reworded the reconnect clause ("naming no client") and paid for it inside
973+
// the new text: the code comment's "each deployment's own client" restated
974+
// the when-to-use sentence below the block. Arithmetic: 9926 -> 10377
975+
// (+451 net: -100 cut, +551 added) -> ceil(10377 / 4) = 2595; the ceiling
976+
// moves +107, pinned AT the measurement. Maintainer ruling 2026-10-27 on the
974977
// seat's decision card 「skills 修复卡的教学和 eval 都撞 token 天花板,怎么付?」,
975978
// tap A verbatim and untranslated: 「A:先削重复,余额按实测提高」 — the
976979
// standing path of ruling record 6513306068 on #27847.
977-
// ceil($(wc -c < skills/objectstack-automation/references/integration-recipes.md) / 4) == ceil(10402 / 4)
978-
['skills/objectstack-automation/references/integration-recipes.md', 2601],
980+
// ceil($(wc -c < skills/objectstack-automation/references/integration-recipes.md) / 4) == ceil(10377 / 4)
981+
['skills/objectstack-automation/references/integration-recipes.md', 2595],
979982
// 5569 -> 5587 (card #26298, audit #26184 row A2): the approval config table
980983
// gains `excludeSubmitter` (refused beside `onEmptyApprovers: 'auto_approve'`),
981984
// +105 tokens. Paid down first: Best Practices 1 and 4 restated the Branching

‎skills/objectstack-automation/references/integration-recipes.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ token is fetched per dispatch; no metadata key holds it.
163163
auth: { type: 'oauth2', grant: 'authorization_code', authorizationUrl: 'https://account.docusign.com/oauth/auth',
164164
tokenUrl: 'https://account.docusign.com/oauth/token', scopes: ['signature'],
165165
clientId: 'objectstack-prod', credentialRef: 'DOCUSIGN_CLIENT_SECRET' }
166-
// Or each deployment's own client: clientSource: 'installer' in place of clientId + credentialRef.
166+
// Or clientSource: 'installer' in place of clientId + credentialRef.
167167
// Server to server: grant: 'client_credentials' with tokenUrl, clientId, credentialRef (`resource` optional).
168168
// Vendor app id + app secret (`vendor`: `feishu` / `dingtalk` / `wecom`):
169169
auth: { type: 'app-credential', vendor: 'feishu', appId: 'cli_a1b2', credentialRef: 'FEISHU_APP_SECRET' }
@@ -178,6 +178,6 @@ instance on `mcp` may omit the `https://` endpoints and `clientId`, discovered a
178178
Name `clientId` for an app its publisher deploys; `clientSource: 'installer'` for one installed
179179
on deployments the publisher never sees: the administrator registers a client with the vendor
180180
against the `redirectUri` that `GET …/:name/connection` answers, then connects with `{ clientId, clientSecret }`
181-
(no secret for a public client; a reconnect naming none keeps it). The connection keeps it
181+
(no secret for a public client; a reconnect naming no client keeps it). The connection keeps it
182182
encrypted; a read shows `client: { source: 'installer', clientId, hasSecret }`.
183183
Still never park a short-lived token behind a `bearer` ref.

0 commit comments

Comments
 (0)