Repository navigation
docs(skills): mark the always-on tokens in the platform skill's requires: table - #31181
Conversation
…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
|
domain:skills#3 · huangyiirene · session_01J8VVAj7CvjkGXvgXzd6RZ7 Contract reviewServed-tier: ① Derived judgmentsInputs: 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:
② Semver level
③ Boundary flags
④ Design judgment
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
|
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. |
|
domain:skills#3 · huangyiirene · session_01J8VVAj7CvjkGXvgXzd6RZ7 Contract reviewServed-tier: ① Derived judgments
② Semver level
③ 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
|
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. |
|
domain:skills#3 · huangyiirene · session_01J8VVAj7CvjkGXvgXzd6RZ7 Contract reviewServed-tier: ① Derived judgments
② Semver levelUnchanged: ③ Boundary flags
④ Design judgmentThe fixture now discriminates the corrected teaching in all three touched cases on the same token. Verdict: PASS |
|
domain:skills#3 · huangyiirene · session_01J8VVAj7CvjkGXvgXzd6RZ7 维护者速读
席位核对 — ACCEPT · domain:skills#3 · head
|
Requested by Irene · project thread
Fixes #31130
Clause-②: no
Metadata-protocol: none
dispatch-gates --tierreads a MANDATORY model tier forskills/**(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一段删去「(sharinginrequires)」;eval 第 3、9 例不再要求在requires里写job/messaging/sharing,新增第 20 例(常驻服务要不要列进requires:)。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)。作者会误以为未列出的服务不存在。@objectstack/skillspatch;回滚即 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
main8ef4d309, re-checked after merging21c1f748)packages/spec/src/kernel/platform-capabilities.tsPLATFORM_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.tsresolveServedCapabilities, in order: the declared tokens (deduplicated);emailwhenauthis declared;hostDefaults; the slate unlesspreset === 'minimal'; thenjobandqueuemoved to the front whenemail/approvals/authis present. So--preset minimaldrops the slate and nothing else.packages/cli/src/commands/serve.tsL3006–3009:hostDefaults=mcpunlessOS_MCP_SERVER_ENABLEDis0/false/off/no(packages/types/src/env.tsisMcpServerEnabled), pluspinyin-searchwhenstampSearchPinyinEnabled(config.i18n)(the env var, else anyzh-*locale). They are appended under every preset,minimalincluded. 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), andpackages/cli/package.jsondepends on all eleven provider packages, so a stockos servemounts each one.Every existing table row was checked against
PLATFORM_CAPABILITY_TOKENSand core'sCAPABILITY_PROVIDERS: every service token has a row and every row names its registry package. No phantom row, no missing row.What changes
Token readings and the deletions that pay them
node scripts/check-skills-token-ratchet.mjs(ceil((bytes − 20) / 4)):skills/objectstack-platform/SKILL.md6007 / 6011 onmain(24045 bytes) → 6004 / 6011 at this head (24035 bytes): a net change of −3 tokens. No ceiling raised;scripts/check-skills-token-ratchet.mjsis 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:
i18n/ui/authopen a tierserve.tsrun()open their tier instead", which names all five tokensauthbullet: "so the CLI appendsemailwheneverauthis required"emailwhenauthis declaredauthimpliesemail", which now also says it holds under--preset minimalautomationbullet: "they have nowhere to register and"triggersbullet: "autolaunched", "withoutjob"jobtriggerswithjob"); "scheduled flows" stayssharinginrequires)" (contract review M1)sharingtoken### requires:table (sharing° →@objectstack/plugin-sharing, always-on) and its lead (--preset minimaldrops it). The remaining sentence ("Both need the ownership-queue service@objectstack/plugin-sharingregisters: a stack declaring either without it is refused at boot") is true under every preset.No deleted text is pinned:
grepofscripts/**andpackages/**for each cut phrase finds only files that never read this skill ("nowhere to register" is matched increate-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)requires: ['automation', 'triggers', 'job', 'messaging']and said notify is skipped withoutmessaging. Both are always-on on a default boot. It now expectsrequires: ['automation', 'triggers'], saysjobandmessagingare always-on, and gives the--preset minimalcaveat.must_containdropsjob/messagingfor--preset minimal. No newmust_not_containentry: a careful answer writes the minimal-preset line asrequires: ['automation', 'triggers', 'job', 'messaging'](contract review S1).'sharing'inrequires… else the boot is refused". The refusal (describeMissingOwnershipQueueService,packages/objectql/src/assignment-rules.ts) tests only that theownership-queueservice is registered, andsharingis always-on. It now says norequireschange is needed on a default boot and gives the--preset minimalcaveat;must_containtakessharinginstead 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.storageandsettingsinrequires:?" Expected: no, both are always-on, listing is harmless, only--preset minimaldrops them.must_containis--preset minimalonly; 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).
skills/objectstack-automation/SKILL.md§ Prerequisite table: thejob,queueandmessagingrows give an "Absent ⇒" outcome, but all three are always-on, so those outcomes happen only under--preset minimal. Even there,email,approvalsorauthpullsjobandqueueback in (NEEDS_JOB_AND_QUEUE,packages/core/src/capability-composition.ts). Same teaching inreferences/examples-flows.mdL132 andreferences/integration-recipes.mdL62 ('job'added torequires).mcpandpinyin-search:os serveaddsmcp(unlessOS_MCP_SERVER_ENABLEDis off) andpinyin-search(for azh-*locale) as host defaults under every preset,minimalincluded. Left out: the clause naming both costs more than the 7 tokens thesharingdeletion freed.packages/spec/src/kernel/platform-capabilities.ts, the jsdoc on'package-registry'inPLATFORM_ALWAYS_ON_CAPABILITIES("objectstack serve… that registry keysmarketplace, not this token") is stale:packages/core/src/capability-providers.tsL174 keyspackage-registrynow.Gates
On
221a7ff2(the content commit), after a fullpnpm build, underNODE_OPTIONS=--max-old-space-size=8192:pnpm buildand all 46 commands fromnode scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstackexited 0, pluspnpm --filter @objectstack/spec run check:skill-refs,pnpm check:skill-identifier-liveness,pnpm check:skill-compatibilityandnode 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).On
e3ce4aa7(after mergingorigin/main21c1f748, which touches no skill, ratchet or capability file), re-run:Delta after the contract review (
6a12d8ad: M1, S1, N2; files SKILL.md, the eval fixture and the changeset):Delta at
1fedb7c3(eval case 9must_containonly):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