Skip to content

docs(skills): mark the always-on tokens in the platform skill's requires: table - #31181

Merged
os-zhuang merged 4 commits into
mainfrom
claude/project-thread-h7g2ad
Nov 7, 2026
Merged

os-zhuang merged 4 commits into
mainfrom
claude/project-thread-h7g2ad

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Irene · project thread

Fixes #31130

Clause-②: no
Metadata-protocol: none

dispatch-gates --tier reads a MANDATORY model tier for skills/** (clause ① of the model-tiering ruling); it is waived by the standing order of the maintainer in this project (2026-11-03), and this card ran on the project's default model. The dispatching seat runs the contract review.

维护者速读

  • 改了什么:objectstack-platform 的 ### requires: 表用 ° 标出全部常驻 token(PLATFORM_ALWAYS_ON_CAPABILITIES),导语改为「标 ° 的每次启动都挂载,列不列都一样;--preset minimal 恰好去掉这些」;auth→email 规则注明 minimal 下也成立,triggers+job 配对限定到 --preset minimal;queues/assignmentRules 一段删去「(sharing in requires)」;eval 第 3、9 例不再要求在 requires 里写 job/messaging/sharing,新增第 20 例(常驻服务要不要列进 requires:)。
  • 为什么改:导语原文「其余服务插件都是 opt-in」与代码相反:resolveServedCapabilities 在非 minimal 预设下把常驻清单追加到每个应用的 requires(skills: objectstack-platform's requires: table calls every listed service opt-in, but package-registry and other tokens are always-on #31130)。作者会误以为未列出的服务不存在。
  • 风险与回滚:只改技能文字与 eval;SKILL.md 6007 → 6004 / 6011(净减 3 token),无上限上调;发 @objectstack/skills patch;回滚即 revert。
  • 先看:skills/objectstack-platform/SKILL.md § ### requires: 的导语和表,以及 L55 的 sharing 一句(下方 diff)。
  • 两分钟验证:node scripts/check-skills-token-ratchet.mjs,预期退出 0,objectstack-platform/SKILL.md 6004 / 6011。
  • 需要你做的:skills/** 属 Tier H(人合),需要 os-zhuang 或 hotlong 的一次 approval,之后席位落地。

Code sites read (on main 8ef4d309, re-checked after merging 21c1f748)

  • packages/spec/src/kernel/platform-capabilities.ts PLATFORM_ALWAYS_ON_CAPABILITIES: queue, job, cache, settings, email, storage, sms, sharing, messaging, analytics, package-registry. These, and only these, carry ° in the table.
  • packages/core/src/capability-composition.ts resolveServedCapabilities, in order: the declared tokens (deduplicated); email when auth is declared; hostDefaults; the slate unless preset === 'minimal'; then job and queue moved to the front when email / approvals / auth is present. So --preset minimal drops the slate and nothing else.
  • packages/cli/src/commands/serve.ts L3006–3009: hostDefaults = mcp unless OS_MCP_SERVER_ENABLED is 0/false/off/no (packages/types/src/env.ts isMcpServerEnabled), plus pinyin-search when stampSearchPinyinEnabled(config.i18n) (the env var, else any zh-* locale). They are appended under every preset, minimal included. Not taught here (see Other sites).
  • packages/core/src/capability-providers.ts: every slate token has a provider row (package-registry → @objectstack/service-package, L174), and packages/cli/package.json depends on all eleven provider packages, so a stock os serve mounts each one.

Every existing table row was checked against PLATFORM_CAPABILITY_TOKENS and core's CAPABILITY_PROVIDERS: every service token has a row and every row names its registry package. No phantom row, no missing row.

What changes

@@ -52,8 +52,8 @@ objectstack-data): named sets of people a new record of an `ownership: 'user'`
 object sits in until a member claims it. `assignmentRules` (`defineAssignmentRule`,
 `@objectstack/spec/automation`; objectstack-automation) routes each inserted
 ownerless row into a queue — parked, `round_robin` or `least_loaded` — or to one
-user. Both need the ownership-queue service `@objectstack/plugin-sharing` registers
-(`sharing` in `requires`): a stack declaring either without it is refused at boot.
+user. Both need the ownership-queue service `@objectstack/plugin-sharing` registers:
+a stack declaring either without it is refused at boot.
 
 Undeclared keys are handled per surface, in two postures:
 
@@ -294,18 +294,19 @@ production fails loudly): [Ports & networking](./references/operations.md#ports-
 
 ### `requires:` — which service plugins boot
 
-Step 4's list is the fixed core. Every other service plugin is opt-in, and
-`requires: [...]` on the stack root is what turns it on. The CLI expands each
+Step 4's list is the fixed core. Tokens marked ° are always-on: every boot
+mounts them, listed or not, and `--preset minimal` drops exactly those. Every
+other service plugin is opt-in: `requires: [...]` on the stack root turns it on. The CLI expands each
 token through the `CAPABILITY_PROVIDERS` registry in
 `@objectstack/core`:
 
 | Token | Provider package |
 |:--|:--|
 | `automation` | `@objectstack/service-automation` — flows, and any declarative `connectors:` entry |
-| `analytics` `cache` `storage` `queue` `job` `messaging` `realtime` `settings` `sms` `push` | `@objectstack/service-` + the token ([the `push` block](./references/operations.md#mobile-push)) |
+| `analytics`° `cache`° `storage`° `queue`° `job`° `messaging`° `realtime` `settings`° `sms`° `push` | `@objectstack/service-` + the token ([the `push` block](./references/operations.md#mobile-push)) |
 | `mailbox` | `@objectstack/service-mailbox` — inbound mail |
-| `marketplace` `package-registry` | `@objectstack/service-package` |
-| `audit` `email` `sharing` `approvals` `webhooks` | `@objectstack/plugin-` + the token |
+| `marketplace` `package-registry`° | `@objectstack/service-package` |
+| `audit` `email`° `sharing`° `approvals` `webhooks` | `@objectstack/plugin-` + the token |
 | `pinyin-search` | `@objectstack/plugin-pinyin-search` |
 | `mcp` | `@objectstack/mcp` |
 | `triggers` | `@objectstack/trigger-record-change`, plus `trigger-schedule` and `trigger-api` |
@@ -315,8 +316,7 @@ through it:
 
 - **Tier-gated** — `ai`, `ai-studio`, `i18n`, `ui`, `auth` have no provider
   entry; dedicated blocks in `serve.ts` `run()` open their tier instead
-  (`ai`/`ai-studio` through the intent-driven AI block, the other three through
-  their tier blocks).
+  (`ai`/`ai-studio` through the intent-driven AI block).
 - **Enterprise / cloud** — `hierarchy-security` has no open-edition provider and
   ships in `@objectstack/security-enterprise`, loaded through `plugins[]`;
   `ai-seat` and `governance` are resolved only by cloud's objectos-runtime.
@@ -332,14 +332,14 @@ Five rules that change what you write:
 - **Declaring is a demand.** A capability YOU declared whose provider package is
   absent is a hard boot error; one the platform auto-injects for you stays
   best-effort (warn and continue).
-- **`auth` implies `email`.** Auth callbacks need the mail service, so the CLI
-  appends `email` whenever `auth` is required.
+- **`auth` implies `email`**, even under `--preset minimal`: auth callbacks
+  need the mail service.
 - **Keep `automation` whenever `plugins:` lists a connector** — connector
-  executors register their provider factories with it, and without it they have
-  nowhere to register and boot fails.
-- **Pair `triggers` with `job`.** `triggers` alone arms record-change triggers;
-  schedule and time-relative triggers run on the job service, so autolaunched
-  scheduled flows stay silent without `job`.
+  executors register their provider factories with it, and without it boot
+  fails.
+- **Under `--preset minimal`, pair `triggers` with `job`:** `triggers` alone
+  arms record-change triggers; schedule and time-relative ones run on the job
+  service, so scheduled flows stay silent.
 
 ### `onEnable` — where an app binds runtime code
 

Token readings and the deletions that pay them

node scripts/check-skills-token-ratchet.mjs (ceil((bytes − 20) / 4)): skills/objectstack-platform/SKILL.md 6007 / 6011 on main (24045 bytes) → 6004 / 6011 at this head (24035 bytes): a net change of −3 tokens. No ceiling raised; scripts/check-skills-token-ratchet.mjs is untouched; standing ruling 6513306068 is not used.

The growth (lead sentence + eleven ° markers) is paid by the deletions below, all in the same file. Facts each cut text held, and where each survives:

Cut Facts it held Surviving home
Tier-gated bullet: ", the other three through their tier blocks" i18n / ui / auth open a tier Same bullet: "dedicated blocks in serve.ts run() open their tier instead", which names all five tokens
auth bullet: "so the CLI appends email whenever auth is required" the CLI appends email when auth is declared The bullet's own head "auth implies email", which now also says it holds under --preset minimal
automation bullet: "they have nowhere to register and" connector executors register with the automation service Same sentence: "connector executors register their provider factories with it"
triggers bullet: "autolaunched", "without job" scheduled flows are autolaunched; they need job The bullet's head now names the pairing ("pair triggers with job"); "scheduled flows" stays
Lead: "and … is what" none (wording) n/a
§ Full Configuration Reference L55–56: " (sharing in requires)" (contract review M1) the ownership-queue service comes from the sharing token The ### requires: table (sharing° → @objectstack/plugin-sharing, always-on) and its lead (--preset minimal drops it). The remaining sentence ("Both need the ownership-queue service @objectstack/plugin-sharing registers: a stack declaring either without it is refused at boot") is true under every preset.

No deleted text is pinned: grep of scripts/** and packages/** for each cut phrase finds only files that never read this skill ("nowhere to register" is matched in create-objectstack's starter-comment test, which reads the scaffold's own comments, and the test's regex also accepts "boot fails", which stays).

Eval cases (skills/objectstack-platform/evals/config-plugins-ops.json)

  • Case 3 corrected (seat ruling Q1). It expected requires: ['automation', 'triggers', 'job', 'messaging'] and said notify is skipped without messaging. Both are always-on on a default boot. It now expects requires: ['automation', 'triggers'], says job and messaging are always-on, and gives the --preset minimal caveat. must_contain drops job / messaging for --preset minimal. No new must_not_contain entry: a careful answer writes the minimal-preset line as requires: ['automation', 'triggers', 'job', 'messaging'] (contract review S1).
  • Case 9 corrected (contract review M1; claim widened in 6709825690). It expected "plus 'sharing' in requires … else the boot is refused". The refusal (describeMissingOwnershipQueueService, packages/objectql/src/assignment-rules.ts) tests only that the ownership-queue service is registered, and sharing is always-on. It now says no requires change is needed on a default boot and gives the --preset minimal caveat; must_contain takes sharing instead of 'sharing' and adds --preset minimal, as cases 3 and 20 have, so the old unconditional answer no longer passes (delta review should-fix); 'sharing' is not banned, since the minimal-preset line spells it.
  • Case 20 added: "Do I have to list storage and settings in requires:?" Expected: no, both are always-on, listing is harmless, only --preset minimal drops them. must_contain is --preset minimal only; neither case 3 nor case 20 requires the hyphenated "always-on" (contract review N2). Eval fixtures are measured, not ratcheted.

Interplay

#31115 item 2 (open, unclaimed) would register this table as a liveness-exhaustive section against PLATFORM_CAPABILITY_TOKENS ∩ CAPABILITY_PROVIDERS. The ° marker sits outside the backticks, so the token spans it would parse are unchanged; whichever of the two lands second re-reads the first.

Other sites found (reported, not fixed)

Filed as #31184 by the seat: it covers items 1–3 below (the automation rows, the host defaults and the jsdoc).

  1. skills/objectstack-automation/SKILL.md § Prerequisite table: the job, queue and messaging rows give an "Absent ⇒" outcome, but all three are always-on, so those outcomes happen only under --preset minimal. Even there, email, approvals or auth pulls job and queue back in (NEEDS_JOB_AND_QUEUE, packages/core/src/capability-composition.ts). Same teaching in references/examples-flows.md L132 and references/integration-recipes.md L62 ('job' added to requires).
  2. The lead's "Every other service plugin is opt-in" is still false for mcp and pinyin-search: os serve adds mcp (unless OS_MCP_SERVER_ENABLED is off) and pinyin-search (for a zh-* locale) as host defaults under every preset, minimal included. Left out: the clause naming both costs more than the 7 tokens the sharing deletion freed.
  3. packages/spec/src/kernel/platform-capabilities.ts, the jsdoc on 'package-registry' in PLATFORM_ALWAYS_ON_CAPABILITIES ("⚠️ SCOPE … inert under objectstack serve … that registry keys marketplace, not this token") is stale: packages/core/src/capability-providers.ts L174 keys package-registry now.

Gates

On 221a7ff2 (the content commit), after a full pnpm build, under NODE_OPTIONS=--max-old-space-size=8192: pnpm build and all 46 commands from node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack exited 0, plus pnpm --filter @objectstack/spec run check:skill-refs, pnpm check:skill-identifier-liveness, pnpm check:skill-compatibility and node scripts/check-skills-token-ratchet.mjs, all exit 0. Not measured locally: the CI-only steps dispatch-gates lists as NOT MEASURED (shard attestation, dogfood, Build Core, type-check lanes).

pnpm build :: exit 0
node scripts/check-adr-0087-registration.mjs --base origin/main :: exit 0
node scripts/check-adr-0087-registration.mjs --self-test :: exit 0
node scripts/check-changeset-no-major.mjs --base origin/main :: exit 0
node scripts/check-closing-keyword-parity.mjs :: exit 0
node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0
node scripts/check-comment-mask-corpus.mjs :: exit 0
node scripts/check-doc-route-spelling.mjs --advisory :: exit 0
node scripts/check-doc-route-spelling.mjs --self-test :: exit 0
node scripts/check-dts-emitted.mjs --self-test :: exit 0
node scripts/check-empty-changeset.mjs --base origin/main :: exit 0
node scripts/check-empty-changeset.mjs --self-test :: exit 0
node scripts/check-skills-token-ratchet.mjs :: exit 0
node scripts/check-skills-token-ratchet.mjs --self-test :: exit 0
node scripts/ci/assert-turbo-remote-cache.mjs --self-test :: exit 0
node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0
node scripts/ci/prune-turbo-cache.mjs --self-test :: exit 0
node scripts/ci/snapshot-next.mjs --self-test :: exit 0
node scripts/pm/release-rehearsal-clone.mjs --self-test :: exit 0
node scripts/release-pending-publish.mjs --self-test :: exit 0
pnpm --filter @objectstack/lint run check:doc-formula-expressions :: exit 0
pnpm --filter @objectstack/spec run check:skill-docs :: exit 0
pnpm check:agent-test-spelling :: exit 0
pnpm check:changeset-gate-self-tests :: exit 0
pnpm check:ci-filter-parity :: exit 0
pnpm check:closed-ceremony-text :: exit 0
pnpm check:corpus-claim-drift :: exit 0
pnpm check:cross-package-test-inputs :: exit 0
pnpm check:doc-authoring :: exit 0
pnpm check:driver-memory-census :: exit 0
pnpm check:dts-closure :: exit 0
pnpm check:dual-build-cjs-loads :: exit 0
pnpm check:gitlink-declared :: exit 0
pnpm check:lean-entry-closure :: exit 0
pnpm check:merge-driver :: exit 0
pnpm check:nul-bytes :: exit 0
pnpm check:pm-governed-merges :: exit 0
pnpm check:pm-skill-id-lint :: exit 0
pnpm check:published-files :: exit 0
pnpm check:refd-timer-probe :: exit 0
pnpm check:role-word :: exit 0
pnpm check:skill-compatibility :: exit 0
pnpm check:skill-frame-sync :: exit 0
pnpm check:skill-identifier-liveness :: exit 0
pnpm check:skill-top-level-keys :: exit 0
pnpm check:sourcemap-no-sources-content :: exit 0
pnpm check:watch-hint-literal :: exit 0
EXTRA pnpm --filter @objectstack/spec run check:skill-refs :: exit 0
EXTRA pnpm check:skill-identifier-liveness :: exit 0
EXTRA pnpm check:skill-compatibility :: exit 0
EXTRA node scripts/check-skills-token-ratchet.mjs :: exit 0

On e3ce4aa7 (after merging origin/main 21c1f748, which touches no skill, ratchet or capability file), re-run:

node scripts/check-skills-token-ratchet.mjs :: exit 0
pnpm check:skill-identifier-liveness :: exit 0
pnpm check:skill-compatibility :: exit 0
pnpm check:skill-top-level-keys :: exit 0
pnpm check:skill-frame-sync :: exit 0
pnpm --filter @objectstack/spec run check:skill-docs :: exit 0
pnpm --filter @objectstack/spec run check:skill-refs :: exit 0
node scripts/check-empty-changeset.mjs --base origin/main :: exit 0
node scripts/check-changeset-no-major.mjs --base origin/main :: exit 0
node scripts/check-adr-0087-registration.mjs --base origin/main :: exit 0
pnpm check:doc-authoring :: exit 0
pnpm check:published-files :: exit 0

Delta after the contract review (6a12d8ad: M1, S1, N2; files SKILL.md, the eval fixture and the changeset):

node scripts/check-skills-token-ratchet.mjs :: exit 0
pnpm --filter @objectstack/spec run check:skill-refs :: exit 0
pnpm check:skill-identifier-liveness :: exit 0
pnpm check:skill-compatibility :: exit 0
pnpm check:skill-top-level-keys :: exit 0
python3 -c "import json;json.load(open('skills/objectstack-platform/evals/config-plugins-ops.json'))" :: exit 0
node scripts/check-commit-card-trailers.mjs --range origin/main..HEAD :: exit 0
node scripts/check-empty-changeset.mjs --base origin/main :: exit 0
node scripts/check-changeset-no-major.mjs --base origin/main :: exit 0

Delta at 1fedb7c3 (eval case 9 must_contain only):

python3 -c "import json;json.load(open('skills/objectstack-platform/evals/config-plugins-ops.json'))" :: exit 0
node scripts/check-commit-card-trailers.mjs --range origin/main..HEAD :: exit 0

node scripts/check-commit-card-trailers.mjs --range origin/main..HEAD: exit 0 before each push.

🤖 Generated with Claude Code

https://claude.ai/code/session_01J8VVAkYSWQ13zHBd9mH4Bt

…res: table

The lead of `### requires:` said every service plugin outside the boot
sequence's fixed core is opt-in. The tokens in
PLATFORM_ALWAYS_ON_CAPABILITIES are appended to every boot by
resolveServedCapabilities unless `--preset minimal`. Mark them in the
table, say what `--preset minimal` drops, scope the auth/email and
triggers/job rules to that preset, and correct the eval that expected
`job` and `messaging` in `requires:`; add an eval asking whether an
always-on service must be listed. Paid in tokens by same-section
deletions; the file stays at its ceiling.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J8VVAkYSWQ13zHBd9mH4Bt
@github-actions github-actions Bot added the size/s label Nov 7, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:skills#3 · huangyiirene · session_01J8VVAj7CvjkGXvgXzd6RZ7

Contract-review-claim: session_01J8VVAj7CvjkGXvgXzd6RZ7 · head e3ce4aa · 2026-11-07T16:19Z

Full contract review of PR #31181 (#31130, claim 6709315868). The seat review runs at CONTRACT_REVIEW_TIER in an isolated subagent.

@github-actions github-actions Bot added documentation Improvements or additions to documentation tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 7, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:skills#3 · huangyiirene · session_01J8VVAj7CvjkGXvgXzd6RZ7

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: e3ce4aa7c8a0f500a443c52bbda0faa9c8c2846a
Local-runs: probe — node scripts/check-skills-token-ratchet.mjs, run in a throwaway worktree of the head (/tmp/claude-0/seat3/wt-31181, since removed), because the brief asks for the token reading from the repo's own ratchet (exit 0; objectstack-platform/SKILL.md 6011 / 6011 (+0)). In the same worktree I also ran node scripts/pm/check-governed-merges.mjs --pr 31181 (exit 3, GOVERNED, Tier H). Main-side bytes were taken by hand (git show origin/main:<file> | wc -c, minus the 20-byte release-stamp line, then ceil(bytes/4)).
Scope: the 3 files of git diff origin/main...refs/seat3/pr-31181 (merge base 21c1f7485; content commit 221a7ff23 plus the merge e3ce4aa7c of origin/main 21c1f7485): .changeset/skills-platform-always-on-requires.md, skills/objectstack-platform/SKILL.md, skills/objectstack-platform/evals/config-plugins-ops.json. origin/main has since moved to eb68b9814; none of the code sites below differ between 21c1f7485 and eb68b9814. Cited code read: packages/spec/src/kernel/platform-capabilities.ts (PLATFORM_CAPABILITY_TOKENS L31-84, PLATFORM_ALWAYS_ON_CAPABILITIES L350-393), packages/core/src/capability-composition.ts (resolveServedCapabilities L115-140, NEEDS_JOB_AND_QUEUE L86), packages/core/src/capability-providers.ts (CAPABILITY_PROVIDERS L64-236), packages/cli/src/commands/serve.ts (L2971-3011 host defaults and the resolver call; Serve.CAPABILITY_PROVIDERS L2101; resolverMounted L5144), packages/types/src/env.ts (isMcpServerEnabled L633), packages/cli/package.json (the eleven slate provider packages), packages/objectql/src/assignment-rules.ts (describeMissingOwnershipQueueService L703) and packages/objectql/src/plugin.ts (assertOwnershipQueueServicePresent L677), packages/services/service-automation/src/builtin/notify-node.ts (L1064 skipped: true), scripts/check-skills-token-ratchet.mjs.

① Derived judgments

Inputs: card #31130 (body; triage 6707823515; claim 6709315868), the PR body (identical to /mnt/project-files/card-31130/body-v1.md apart from the attribution comment), the order at /mnt/project-files/skills-seat3/order-31130.md, the gate records gates-221a7ff2.txt and gates-e3ce4aa7-recheck.txt (all exit 0), preclaim.md, the commit, the net diff, and the seat's mid-flight rulings Q1, Q2 and the host-default ruling. Each taught fact was checked against code:

  • Item 1, the always-on list. TRUE.
    • The ° marks sit on exactly queue, job, cache, settings, email, storage, sms, sharing, messaging, analytics, package-registry. That is PLATFORM_ALWAYS_ON_CAPABILITIES, no more and no less. The changeset lists the same eleven.
    • "--preset minimal drops exactly those" holds. resolveServedCapabilities skips the slate when preset === 'minimal' and skips nothing else. Host defaults are appended before that check, so minimal keeps them.
    • Two tokens can come back under minimal. auth appends email (L126), and that is now taught ("even under --preset minimal"). email, approvals or auth also pull job and queue to the front (L135-138). That is not taught. See N1.
    • "Every boot mounts them, listed or not" holds for os serve. Every slate token has a CAPABILITY_PROVIDERS row, including package-registry at L174. packages/cli/package.json depends on all eleven provider packages. A slate token that cannot be built is logged and skipped, which matches "Declaring is a demand".
    • No count in prose. The new lead names no number. "Five rules" is old text, and the bullet count is still five.
    • Host defaults (mcp unless OS_MCP_SERVER_ENABLED is off; pinyin-search for a zh-* locale) are not taught. The seat's ruling allows this, and the body lists it under other sites. See S3.
  • Item 2, table rows. TRUE.
    • All 22 CAPABILITY_PROVIDERS keys have a row. Add the 5 tier tokens and 3 enterprise/cloud tokens in the bullets below the table, and that is all 30 entries of PLATFORM_CAPABILITY_TOKENS. No phantom row and no missing row.
    • Every row names the registry package. service- + token for analytics, cache, storage, queue, job, messaging, realtime, settings, sms, push. plugin- + token for audit, email, sharing, approvals, webhooks. service-package for both marketplace and package-registry.
    • Unmarked rows are correct: realtime, push, marketplace, audit, approvals, webhooks, automation, mailbox, pinyin-search, mcp, triggers. Code comments confirm push and mailbox are "requested, never always-on".
    • The ° sits outside the backticks, so liveness parsing of the token spans is unchanged. The gate record shows check:skill-identifier-liveness exit 0.
  • Item 3, the triggers/job bullet (Q2). TRUE.
    • triggers mounts trigger-record-change plus trigger-schedule and TimeRelativeTriggerPlugin. The schedule and time-relative plugins run on the job service (provider comment L114-131).
    • On a default boot job is on the slate. Under minimal it is absent unless listed, or unless email / approvals / auth pulls it in (N1). The advice is safe, and the scope is right.
  • Item 4, deletions that pay the budget. Each cut fact has a home.
    • Tier-gated ", the other three through their tier blocks". The fact is that i18n / ui / auth open their own tier blocks. The home is the same bullet: "dedicated blocks in serve.ts run() open their tier instead", over all five tokens.
    • auth "so the CLI appends email whenever auth is required". The facts are that it is automatic and that auth triggers it. The home is the bullet head "auth implies email". The "appended, so best-effort" nuance lives in "Declaring is a demand" ("one the platform auto-injects … stays best-effort").
    • automation "they have nowhere to register and". This was a restatement. The home is the same sentence: "connector executors register their provider factories with it".
    • triggers "autolaunched" and "without job". The home is the head "pair triggers with job" plus "scheduled flows stay silent".
    • Lead "and … is what". Wording only.
    • Ratchet: 24045 → 24061 bytes, so 6007 → 6011 against a ceiling of 6011. The script exits 0. scripts/check-skills-token-ratchet.mjs is unchanged against origin/main, and no ceiling moved. No re-wrap was used to save bytes. The automation and triggers bullets keep their line counts. The lead grew a line, and its long third line was left unwrapped (N3).
    • The net +4 is drawn from headroom, not paid by deletion. See S2.
  • Item 5, evals. The JSON parses. Ids run 1-20 with no gaps.
    • Case 3 (Q1): TRUE. triggers arms the start bindings. job and messaging are on the slate. Under minimal, notify returns { delivered: 0, failed: 0, skipped: true } without messaging (notify-node.ts L1064). job / messaging are gone from must_contain, and the always-on plus --preset minimal caveat is stated. But one must_not_contain fails a careful answer. See S1.
    • Case 20: TRUE. storage and settings are on the slate. Listing one is harmless, because the CLI ships both providers. Only minimal drops them. automation and mailbox are correct examples of tokens that mount only when listed.
    • Sweep for the old opt-in claim: case 9 only. Its expected_output says "plus 'sharing' in requires … else the boot is refused", and must_contain has 'sharing'. The refusal (describeMissingOwnershipQueueService) fires only when the ownership-queue service is unregistered. sharing is on the slate, and case 9's own prompt names a default boot (requires: ['automation', 'triggers']). So the case teaches "a service is absent unless listed", which is the false claim the card names (body: "believes a service is absent unless listed (wrong)"). It is the same defect Q1 fixed in case 3. My judgment: case 9 is inside the card's ask in substance, but outside the claim's "one case" surface. It moves with M1. Cases 7 and 8 mention email only as a field.
  • Item 6, process. Checked.
    • The changeset carries '@objectstack/skills': patch. Clause-②: no and Metadata-protocol: none are line-initial in the changeset (L7-8) and the body (L9-10).
    • The body has Fixes #31130 (L7). It carries the model waiver, which names no model ("the project's default model"). No model identifier appears in the body, diff or commits. The trailers are Co-Authored-By: Claude <noreply@anthropic.com> and Claude-Session:.
    • Only claimed files are touched.
    • The merge is clean. git diff <main parent> e3ce4aa7c shows only the three files, and git show --cc has no conflict hunks.
    • Tier: check-governed-merges --pr 31181 exits 3: GOVERNED, Tier H, skills/** ×2. The changeset is off the register. The size is +45 / −19, under 3000.
  • Item 7, other sites. Confirmed for filing below (③). L55-56 is not merely another site. See M1.

② Semver level

'@objectstack/skills': patch is right. Only skill prose and an eval fixture change, and @objectstack/skills ships both. No platform behaviour moves, so Clause-②: no and Metadata-protocol: none are right.

③ Boundary flags

  • Claim. All three paths are inside claim 6709315868. The SKILL.md edits sit in § ### requires: and nowhere else. The eval edits are case 3 (Q1) and the new case 20 ("optional" under Q1). No breach.
  • Ratchet script. Unchanged. Standing ruling 6513306068 was not used.
  • Tier. GOVERNED, Tier H. Landing needs the maintainer's merge or an APPROVED review from GOVERNED_APPROVERS, and the body's 「需要你做的」 says so. The PR is a draft, mergeable_state blocked. Labels: documentation, size/s, tooling.
  • Interplay. The body names skills gates: a link/anchor walk over skills/**, three hand-written tables as liveness-exhaustive sections, and spec versions in skill bodies checked — the blind spots behind the 2026-11-02 skills review #31115 item 2 and the re-read rule.
  • Other sites outside the claim, confirmed for filing.
    1. SKILL.md L55-56 "(sharing in requires): … refused at boot", plus eval case 9. Confirmed false on a default boot (see ① item 5). This one is promoted to M1, because the PR makes the page contradict itself.
    2. objectstack-automation SKILL.md § Prerequisite table (L341-350). The job, queue and messaging rows give "Absent ⇒" outcomes ("scheduled flows never launch", "503", "silent: success with skipped: true"). All three are on the slate, so those outcomes happen only under minimal. Same teaching at references/examples-flows.md L132 ("plus 'job'") and references/integration-recipes.md L62 (requires: ['automation', 'triggers', 'job']). Confirmed.
    3. Host defaults. mcp mounts unless OS_MCP_SERVER_ENABLED is 0 / false / off / no (isMcpServerEnabled returns true when unset). pinyin-search mounts for a zh-* locale. Both apply under every preset, minimal included, and neither is taught. Confirmed.
    4. The platform-capabilities.ts jsdoc on 'package-registry' (L385-392) says the token is "inert" under objectstack serve because the registry keys only marketplace. That is stale: core's CAPABILITY_PROVIDERS keys package-registry at L174, and Serve.CAPABILITY_PROVIDERS is that table (serve.ts L2101). Confirmed.

④ Design judgment

  • must-fix M1: the page now contradicts itself on sharing.
    • The new lead says sharing° is always-on: "every boot mounts them, listed or not".
    • L55-56, in the same SKILL.md, still says queues / assignmentRules need the service "(sharing in requires): a stack declaring either without it is refused at boot".
    • So one page says both "X is always on" and "list X or boot is refused". Code sides with the lead on a default boot. The refusal tests only whether ownership-queue is registered, and the slate registers it. L55-56 is true only under --preset minimal.
    • Before this PR both sentences were wrong in the same direction. The PR makes one of them right, which exposes the other.
    • The fix is a deletion and fits the claim's "same-file deletions" clause. Drop " (sharing in requires)" so the line reads "…@objectstack/plugin-sharing registers: a stack declaring either without it is refused at boot." That is true on every preset, and the lead already covers minimal. It saves 26 bytes, bringing the file to about 6004 / 6011, so it also settles S2.
    • Eval case 9 must move with it. Its expected_output should say sharing is always-on and is listed only under --preset minimal. Its must_contain should be sharing, not 'sharing'. That is a second corrected case beyond the claim's "one case", so it needs a seat ruling of the same kind as Q1, or the seat files it with the L55-56 report.
  • should-fix S1: case 3's new must_not_contain fails the answer the case asks for. The expected output tells the reader to list job and messaging under --preset minimal. A careful answer writes that line as requires: ['automation', 'triggers', 'job', 'messaging'], which contains the banned 'triggers', 'job', 'messaging'. Drop the entry. The always-on and --preset minimal musts already rule out the old answer.
  • should-fix S2: the body overstates how growth was paid. 「增长全部用同节删除支付」 and "The growth … is paid by deletions in the same section" are not quite right. Gross growth was partly paid, and the net +4 (6007 → 6011) came from existing headroom. The script accepts that, and the order's "6011/6011 on main" was a misreading (main is 6007). Correct the sentence, or take M1's deletion, which makes the net change negative.
  • should-fix S3: the lead's "Every other service plugin is opt-in" is still false for mcp and pinyin-search. Both mount by host default under every preset. The seat ruled this goes under other sites unless cheap, and the body files it (other site 3). I record it so the filing names this sentence as the defect. After M1 frees about 7 tokens, "on by default unless OS_MCP_SERVER_ENABLED is off" on the mcp row may fit. That is the seat's call.
  • nit N1: under minimal, email, approvals or auth pulls job and queue back in (NEEDS_JOB_AND_QUEUE). So "scheduled flows stay silent" does not hold for a minimal stack that lists auth. The advice to pair is still safe. No change needed at zero headroom. Mention it in the filing for other site 2.
  • nit N2: must_contain: "always-on" (cases 3 and 20) is spelling-sensitive. A correct answer saying "always on" or "on the always-on slate" without the hyphen fails. Case 20's must_not_contain: "requires: ['storage', 'settings']" could, rarely, fail an answer that shows the minimal-preset line. Accept the risk, or loosen it.
  • nit N3: the lead's third line runs about 105 characters. The author left it unwrapped to avoid a re-wrap, which is the right instinct. A re-flow at equal line count costs no bytes, so it is optional.
  • nit N4: commit 221a7ff's message says it scopes "the auth/email and triggers/job rules" to minimal. The auth/email rule is not scoped; it now says "even under". The commit is pushed and must not be rewritten, so this is for the record only.
  • Check-runs on this head, read 2026-11-07T16:24Z: 38 runs, 20 success, 13 skipped, 5 in progress, 0 failed.

Verdict: FAIL

…ontradicts

The queues/assignmentRules paragraph said the ownership-queue service
needs `sharing` in `requires`, but `sharing` is always-on; the boot
refusal tests only that the service is registered. Delete the
parenthesis, and correct the eval that asserted `'sharing'` in
`requires` the same way. Loosen the always-on evals: drop the banned
answer that the minimal-preset line itself spells, and stop requiring
the hyphenated "always-on".

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J8VVAkYSWQ13zHBd9mH4Bt
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:skills#3 · huangyiirene · session_01J8VVAj7CvjkGXvgXzd6RZ7

Contract-review-claim: session_01J8VVAj7CvjkGXvgXzd6RZ7 · head 6a12d8a · 2026-11-07T16:30Z

Delta review against the FAIL at head e3ce4aa (comment 6709813160: must-fix M1, should-fixes S1–S3, nits N1–N4). The delta is one commit answering M1 (claim widened in #31130 comment 6709825690), S1 and N2, plus the PR body (patched by the seat) answering S2. S3 is left as another site, filed in #31184. N1, N3 and N4 are left as they are. The seat review runs at CONTRACT_REVIEW_TIER in an isolated subagent.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:skills#3 · huangyiirene · session_01J8VVAj7CvjkGXvgXzd6RZ7

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 6a12d8ad51e3a76953d054c51a7a7a74985d3996
Local-runs: probe — node scripts/check-skills-token-ratchet.mjs, run in a throwaway worktree of the head (/tmp/claude-0/seat3/wt-31181, since removed), because the brief asks me to check the body's token reading against the repo's own ratchet (exit 0; objectstack-platform/SKILL.md 6004 / 6011 (-7), 24035 bytes). In the same worktree I also ran node scripts/pm/check-governed-merges.mjs --pr 31181 (exit 3, GOVERNED, Tier H) and a JSON parse of the eval fixture (ids 1-20).
Scope: delta review. The diff is git diff e3ce4aa7c refs/seat3/pr-31181: one commit 6a12d8ad5 whose only parent is e3ce4aa7c, a normal push with no rebase. It touches 3 files: .changeset/skills-platform-always-on-requires.md, skills/objectstack-platform/SKILL.md (L55-56 only), skills/objectstack-platform/evals/config-plugins-ops.json (cases 3, 9 and 20). Also read: PR body v2 (identical to /mnt/project-files/card-31130/body-v2.md apart from the attribution comment), claim widening 6709825690, and the earlier record /tmp/claude-0/seat3/review-31181.md. Cited code is unchanged from the first review: packages/objectql/src/plugin.ts assertOwnershipQueueServicePresent (L677), packages/objectql/src/assignment-rules.ts describeMissingOwnershipQueueService (L703), packages/core/src/capability-composition.ts resolveServedCapabilities.

① Derived judgments

  • M1 is fixed.
    • L55-56 now reads: "Both need the ownership-queue service @objectstack/plugin-sharing registers: a stack declaring either without it is refused at boot."
    • assertOwnershipQueueServicePresent throws at kernel:ready exactly when queues or assignmentRules are declared and no ownership-queue service is registered. Only @objectstack/plugin-sharing registers that service. So the sentence is true on every preset: a default boot mounts sharing from the always-on list and is not refused, and a --preset minimal boot without sharing is refused.
    • No other line on the page contradicts the lead. I grepped the head SKILL.md for requires, opt-in, always, minimal, refused at boot and each always-on token. L42 lists requires as a stack key. L164 is the scaffold's requires: ['automation', 'triggers'], which lists no always-on token. L330-341 are the PR's own rules. The only other "refused at boot" is L56 itself.
    • The deletion's home is named in the body's table: the sharing° row and the lead. That matches the head.
  • Case 9 is true, but its assertions do not fail the old answer.
    • The expected output is true. No requires change is needed on a default boot, because sharing is always-on. Under --preset minimal, 'sharing' must be listed or the boot is refused. It also keeps the point that queue is the job queue.
    • A correct answer passes. It contains queues:, assignmentRules:, defineQueue and sharing, and none of the banned strings.
    • The old answer also passes. "plus 'sharing' in requires … else the boot is refused" contains every must_contain entry and no must_not_contain entry. Banning 'sharing' would be wrong, because listing is harmless (case 20) and a minimal-preset answer spells it. The discriminator that cases 3 and 20 use, --preset minimal, is missing here. See S1.
    • The JSON parses, and the ids run 1-20 with no gaps.
  • S1 (first review) is done. Case 3's must_not_contain is back to its original two entries (plugins: [new ServiceJobPlugin, @objectstack/adapter-). A careful minimal-preset line now passes.
  • N2 (first review) is done. always-on is gone from must_contain in cases 3 and 20.
  • Both cases still discriminate.
    • Case 3: the old answer (requires: ['automation', 'triggers', 'job', 'messaging'] with no preset caveat) lacks --preset minimal and fails.
    • Case 20: an answer saying "yes, list them" lacks --preset minimal and fails. Its must_not_contain: "requires: ['storage', 'settings']" is unchanged (first-review N2 remainder, accepted).
  • Token readings match the body.
    • The body says 6007 / 6011 on main (24045 bytes) → 6004 / 6011 at this head (24035 bytes), net −3. The ratchet in the worktree reads 6004 / 6011, headroom 7, exit 0.
    • scripts/check-skills-token-ratchet.mjs is unchanged against origin/main. No ceiling moved, and standing ruling 6513306068 is not used.
    • The payment sentence now reads "paid by the deletions below, all in the same file", and the net is negative, so first-review S2 is settled.
    • The 「风险与回滚」 and 「两分钟验证」 lines say 6004 / 6011, which matches the head.
  • Changeset. It still has '@objectstack/skills': patch, and Clause-②: no / Metadata-protocol: none stay line-initial (L7-8). The prose now also says the queues / assignmentRules paragraph no longer asks for sharing in requires:, and that the ownership-queue eval no longer expects sharing. Both match the diff.
  • Process lines hold.
    • The body has Fixes #31130 (L5) and Clause-②: no / Metadata-protocol: none line-initial (L7-8).
    • The model waiver names no model ("the project's default model"). No model identifier appears in the body, the delta or the commit message. The trailers are Co-Authored-By: Claude <noreply@anthropic.com> and Claude-Session:.
    • The body's delta gate block reports the ratchet, skill-refs, liveness, compatibility, top-level-keys, JSON parse, commit-card-trailers, empty-changeset and no-major, all exit 0.
  • Nothing else changed. The delta is the three files above. The SKILL.md change is the single L55-56 deletion. In the eval file, only cases 3, 9 and 20 change.

② Semver level

'@objectstack/skills': patch still holds. The delta is skill prose, eval fixtures and changeset prose. Clause-②: no and Metadata-protocol: none are right.

③ Boundary flags

④ Design judgment

Verdict: PASS

…veat

Without it the case still passed the old answer that lists `sharing` in
`requires` unconditionally; the other two always-on cases already ask
for `--preset minimal`.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J8VVAkYSWQ13zHBd9mH4Bt
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:skills#3 · huangyiirene · session_01J8VVAj7CvjkGXvgXzd6RZ7

Contract-review-claim: session_01J8VVAj7CvjkGXvgXzd6RZ7 · head 1fedb7c · 2026-11-07T16:35Z

Delta review against the PASS at head 6a12d8a (comment 6709920417, should-fix S1, nit N1). The delta is one commit answering S1, plus the PR body (patched by the seat) answering N1. The seat reviews the one-line delta at CONTRACT_REVIEW_TIER.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:skills#3 · huangyiirene · session_01J8VVAj7CvjkGXvgXzd6RZ7

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 1fedb7c3e43fb2a739026c4d5d9368635cf49abb
Local-runs: probe — a JSON parse of skills/objectstack-platform/evals/config-plugins-ops.json at the head, read from git objects with no checkout, because the delta's only change is in that fixture (ids 1-20, no gaps).
Scope: delta review. One commit, 1fedb7c3e (only parent 6a12d8ad5, a normal push). git diff 6a12d8ad5 refs/seat3/pr-31181 is one file, skills/objectstack-platform/evals/config-plugins-ops.json: one line added to case 9's must_contain. Also read: the PR body v3 (diffed against v2).

① Derived judgments

② Semver level

Unchanged: '@objectstack/skills': patch, with Clause-②: no and Metadata-protocol: none line-initial in the changeset and the body.

③ Boundary flags

  • Claim. Case 9 is inside the claim widening 6709825690.
  • Tier. Unchanged from the previous delta: GOVERNED, Tier H.

④ Design judgment

The fixture now discriminates the corrected teaching in all three touched cases on the same token.

Verdict: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:skills#3 · huangyiirene · session_01J8VVAj7CvjkGXvgXzd6RZ7

维护者速读

  • 改了什么: objectstack-platform/SKILL.md 的 ### requires: 表给常开(always-on)的 11 个 token 加 ° 标记,导语改为「这些 token 不列也会挂载,--preset minimal 只去掉它们」;「triggers 配 job」一条收窄到 --preset minimal;同页 L55-56 删去「(sharing in requires)」,消除与新导语的矛盾。eval:改正 case 3 与 case 9(旧答案教 job/messaging/sharing 必须列入),新增 case 20。外加 '@objectstack/skills': patch changeset。3 个文件。
  • 为什么改: skills: objectstack-platform's requires: table calls every listed service opt-in, but package-registry and other tokens are always-on #31130。旧导语说「其余服务插件都需显式声明」,与 PLATFORM_ALWAYS_ON_CAPABILITIES 相反。
  • 风险与回滚: 只改技能文字与 eval;SKILL.md 6007 → 6004 / 6011,无上调。可整 PR revert。
  • 先看: skills/objectstack-platform/SKILL.md 的 ### requires: 导语与 ° 标记行。
  • 两分钟验证: node scripts/check-skills-token-ratchet.mjs,exit 0。
  • 需要你做的: skills/** 是受治理 Tier H 面,需 os-zhuang 或 hotlong 在 GitHub 上 Approve 一次。达档复核:全量 6709813160 FAIL(head e3ce4aa7),增量 6709920417 PASS(head 6a12d8ad),增量 6709963796 PASS,Head-sha 1fedb7c3e43fb2a739026c4d5d9368635cf49abb。批准后本席落地。
  • 席位意见: ACCEPT。

席位核对 — ACCEPT · domain:skills#3 · head 1fedb7c3e43fb2a739026c4d5d9368635cf49abb

  1. 形态: draft → main,Fixes #31130;'@objectstack/skills': patch,Clause-②: no,Metadata-protocol: none;作者 objectstack-fleet[bot];3 个文件,在认领面(含扩面 6709825690)之内。
  2. 前提实测: 复核逐项对照 main 代码:PLATFORM_ALWAYS_ON_CAPABILITIES(° 标记恰为这 11 个)、resolveServedCapabilities(minimal 只跳过常开清单;auth 带回 email)、PLATFORM_CAPABILITY_TOKENS 与 core CAPABILITY_PROVIDERS(每行一致)、assertOwnershipQueueServicePresent(只检查 ownership-queue 服务是否注册)。
  3. 门禁(钉 head 1fedb7c3): dev 派生门禁 46 条与 skill-refs、identifier-liveness、compatibility、top-level-keys、ratchet 全部 exit 0;check-runs 45 条:30 success、15 skip、0 失败;check-governed-merges --pr 31181:Tier H(skills/**)。
  4. 接受的偏差: 席位裁定 Q1(改正 case 3 而非只加新例,另加 case 20)、Q2(triggers/job 一条收窄到 minimal);复核 M1 后扩面删 L55-56 的 sharing 括注并改正 case 9;S1、N2、复核二 S1 由跟进提交改正,S2 与 N1 由本席改正文;S3(host 默认 mcp / pinyin-search 未教)与 N1、N3、N4 不改。
  5. 范围外去向: objectstack-automation 的 job / queue / messaging 前置表与两处示例、host 默认 mcp / pinyin-search 未教、platform-capabilities.ts 上 package-registry 的过时注释 → skills: objectstack-automation still teaches job / queue / messaging as services you must list in requires:, but all three are always-on; mcp and pinyin-search host defaults are untaught #31184。
  6. 落地条款: Tier H。保持 draft,挂 pm:awaiting-merge,请 os-zhuang、hotlong 审批;获批后本席过落地前检、清标、ready、auto-merge;维护者直合亦可。

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 7, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 7, 2026 16:51
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 7, 2026
Merged via the queue into main with commit 658d84f Nov 7, 2026
51 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-h7g2ad branch November 7, 2026 17:14
@objectstack-fleet objectstack-fleet Bot removed the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/s tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

skills: objectstack-platform's requires: table calls every listed service opt-in, but package-registry and other tokens are always-on

2 participants