Repository navigation
docs(skills): list job, queue and messaging only under --preset minimal; name the mcp and pinyin-search host defaults - #31297
Conversation
…al; name the mcp and pinyin-search host defaults The automation skill's prerequisite table marks job, queue and messaging as always-on, and its examples drop them from requires:. The platform skill's requires: lead names the host defaults mounted under every preset. Same-file restatements pay the growth. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01J8VVAk6b17FVUZ5zGeyYi4
|
domain:skills#3 · huangyiirene · session_01J8VVAj7CvjkGXvgXzd6RZ7 Contract reviewServed-tier: ① Derived judgmentsInputs: card #31184 (body, triage 2026-11-07T16:54Z, claim 2026-11-07T23:31Z), the PR body, its file list (7 files), the net diff against Check-runs, read 2026-11-07T23:55Z: 39 runs. 22 success, 13 skipped, 4 in progress ( Each taught fact, checked against code:
② Semver level
③ Boundary flags
④ Design judgmentNo must-fix. No should-fix. Each
Nits, all optional:
Implemented-by: VERDICT: PASS |
|
domain:skills#3 · huangyiirene · session_01J8VVAj7CvjkGXvgXzd6RZ7 维护者速读
席位核对 — ACCEPT · domain:skills#3 · head
|
Requested by Irene · project thread
Fixes #31184
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 (domain:skills#3) runs the contract review.维护者速读
objectstack-automation前置能力表把job、queue、messaging三行标 °,表后加一句「常驻,只在--preset minimal下才需列出(见 objectstack-platform §requires:)」,三行原有的症状保留(minimal 下仍成立);examples-flows.md与integration-recipes.md三处requires:数组去掉常驻 token;objectstack-platform§requires:导语补一句:宿主默认mcp(OS_MCP_SERVER_ENABLED=false关闭)与pinyin-search(i18n含zh-*语言时开启,OS_SEARCH_PINYIN_ENABLED可覆盖)在任何预设下都挂载;automation 三个 eval 用例不再要求把常驻 token 写进requires。resolveServedCapabilities在非 minimal 预设下把常驻清单(含queue、job、messaging)追加到每个应用的requires,serve另在任何预设下追加mcp/pinyin-search;技能仍按旧的 opt-in 读法教,作者会把常驻服务当成必须声明的,且「其余服务插件都是 opt-in」对这两个宿主默认不成立(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,源自 PR docs(skills): mark the always-on tokens in the platform skill's requires: table #31181 复核)。@objectstack/skillspatch;回滚即 revert。skills/objectstack-platform/SKILL.md§requires:导语第三行;然后skills/objectstack-automation/SKILL.md§ Prerequisite 表与表后脚注。node scripts/check-skills-token-ratchet.mjs(全绿,四个文件均有余量);grep -n "'job'\|'queue'" skills/objectstack-automation/references/*.md不再命中requires:数组;对照packages/cli/src/commands/serve.tsL3007-L3009 与packages/core/src/capability-composition.tsL115-L140 读导语新句。check-governed-merges判为 Tier H(skills/**),需os-zhuang或hotlong批准;席位契约复核 ACCEPT 后再批。Code sites per taught sentence (read on
main59d9815a; the branch is rebased on7c523aa1, which touches none of these files)job,queue,messagingare always-on (°)packages/spec/src/kernel/platform-capabilities.tsL350PLATFORM_ALWAYS_ON_CAPABILITIES, L357 ('queue', 'job'), L369 ('messaging')--preset minimalpackages/core/src/capability-composition.tsL130-L134: the slate is appendedif (opts.preset !== 'minimal');packages/cli/src/commands/serve.tsL2971 (presetName, default'default') and L3009skipped: true)--preset minimalproducesrequires: ['automation', 'triggers']suffices fortimeRelative, the Stripe sweep and the carrier callbackjob(packages/core/src/capability-providers.tsL112-L116triggerscomment)capability-composition.tsL127-L129:hostDefaultsare appended before, and independent of, thepreset !== 'minimal'branch;serve.tsL3006-L3009 builds them for everypresetNamemcpunlessOS_MCP_SERVER_ENABLED=falseserve.tsL3007;packages/types/src/env.tsL633-L639isMcpServerEnabled: unset ⇒ on;0/false/off/no⇒ offpinyin-searchwheni18nnames azh-*locale,OS_SEARCH_PINYIN_ENABLEDoverridesserve.tsL3008;env.tsL804stampSearchPinyinEnabled→ L755resolveSearchPinyinEnabled(a non-empty env value wins: truthy on, anything else off; unset ⇒ anyzh-*locale) over L770collectConfiguredLocales(i18n.defaultLocale,fallbackLocale,supportedLocales)The order also suggested teaching that "
requires: ['mcp']works whatever the env var says" (from theserve.tscomment at L2994-L2995). This PR does not teach it: the plugin loads, butpackages/runtime/src/domains/mcp.tsL112-L114 answers404 MCP server is not enabledon/api/v1/mcpwheneverisMcpServerEnabled()is false, listed or not. See other sites.Token readings (
ceil((bytes − release stamp) / 4),scripts/check-skills-token-ratchet.mjs)mainskills/objectstack-automation/SKILL.mdskills/objectstack-automation/references/examples-flows.mdskills/objectstack-automation/references/integration-recipes.mdskills/objectstack-platform/SKILL.mdNo ratchet row moves;
scripts/check-skills-token-ratchet.mjsis untouched. Nothing is rewrapped: new text sits on new lines (the automation footnote) or inside the one edited line (the platform lead).Deletions and their homes
`previous` (before the change) vs `record` (after) in an update trigger's condition: see [objectstack-formula](../objectstack-formula/SKILL.md) §5.previousis the pre-change row andrecordthe post-change row in an update condition; objectstack-formula §5 owns itSKILL.md§ "5. Update hook condition —previousvsrecord" (L305ff, with the binding table); the same file's start-node example L393 (previous.status != 'escalated' && record.status == 'escalated'); the skill's lead L29-L32 and frontmatter send CEL conditions to objectstack-formulaBarrel exports · `Object.values(imported)` · `objects: Object.values(objects)`Object.valuesreferences/bootstrap.md§ Barrel Import Pattern (L53ff:objects: Object.values(objects)and the rest), linked from SKILL.md L70; absent in the open framework per cloud ADR-0025on theAIServicePluginlinereferences/bootstrap.mdL98: "Cloud / EE only —@objectstack/service-aimoved to cloud (cloud ADR-0025); the open edition has no in-UI AI plugin"(dev hops to the next free port, production fails loudly)references/operations.md§ Ports & networking L65 (Dev: "Auto-hops to the next free port (up to +100)") and L66 (Production: "Fails loudly and exits 1."), the link that stays on the lineThe Seed Data
modeline was considered and not cut:check-skill-identifier-livenessregisters## Seed Dataas exhaustive overSeedMode(entryseed-modes), so it is pinned (see other sites for its wrong default).Eval cases touched
Every case below was re-read with
must_containagainstexpected_output(each string present) andmust_not_containagainst it (none present).skills/objectstack-automation/evals/flows-triggers-approvals.jsoncase 2requireslistsautomation,triggers,messaging, else notify reports success withskipped: true";must_containheld"messaging"requireslistsautomation,triggers:messagingis always-on, listed only under--preset minimal(else notify reports success withskipped: true)";"messaging"dropped frommust_contain, so an answer that rightly leavesmessagingout ofrequiresis not failedrequireslistsautomation,triggers,messaging."requireslistsautomation,triggers(messagingis always-on)."skills/objectstack-automation/evals/integrations-declared.jsoncase 2requireslistsautomation,triggers,job."requireslistsautomation,triggers(jobis always-on)."skills/objectstack-platform/evals/config-plugins-ops.json: no case carries the old claim. Cases 3, 9 and 20 already teach the always-on reading (PR #31181); case 20's "a token outside that set, such asautomationormailbox, mounts only whenrequires:lists it" names two tokens that are not host defaults, so it stays true.Pre-existing, not changed (outside the old claim):
integrations-declared.jsoncase 2 hasmust_contain"dialect: 'cel'", which itsexpected_outputdoes not spell (it says "via CEL"); case 1 hasmust_contain"type: 'api'"absent from, andmust_not_contain"connector-esign"present in, itsexpected_output(that one names a rejected option).Other sites found (not changed here)
packages/spec/src/kernel/platform-capabilities.tsL385-L392, the'package-registry'jsdoc, still says the token is inert underobjectstack servebecauseServe.CAPABILITY_PROVIDERS"keysmarketplace, not this token".packages/core/src/capability-providers.tsL174 now keys'package-registry'. Re-read onmain59d9815a: still stale.serve.tsL2994-L2995 comment: "Explicitrequires: ['mcp']in config works regardless of the env var." The MCP plugin loads, but the HTTP route refuses:packages/runtime/src/domains/mcp.tsL112-L114 (and L203 for the skill route) answers 404 wheneverisMcpServerEnabled()is false. A CLI-lane comment (or a behaviour ruling).requires:lead: "--preset minimaldrops exactly those" is not exact forjobandqueue:capability-composition.tsL135-L138 adds them back under any preset whenemail,approvalsorauthis in the token list (NEEDS_JOB_AND_QUEUE, L86), andauthpulls inemail. Not taught anywhere; the automation footnote ("list it only under--preset minimal") stays true.mode(upsertdefault · …)" names the wrong default.packages/spec/src/data/seed.zod.tsL207 isSeedMode.default('ignore'), as objectstack-datareferences/seeds.md§ Import modes teaches. Outside this card's claimed section; the fix is byte-neutral.examples/app-showcase:objectstack.config.tsL109 lists'messaging'and'job'inrequires, andsrc/automation/flows/index.tsL423 and L647 tell the reader to installrequires: ['automation', 'triggers', 'job', 'messaging']. Listing an always-on token is harmless (it makes the provider a hard requirement), but the comments teach the old reading.content/,skills/,examples/orapps/listsjob,queueormessagingin arequires:array (grep).Gates
See the thread report for every
dispatch-gates --commandsrun with its exit code. Also run:pnpm --filter @objectstack/spec check:skill-examples(exit 0, 285 examples),pnpm --filter @objectstack/spec check:skill-refs(exit 0),pnpm check:skill-identifier-liveness(exit 0),node scripts/check-skills-token-ratchet.mjs(exit 0),node scripts/check-commit-card-trailers.mjs --range origin/main..HEAD(exit 0).🤖 Generated with Claude Code
https://claude.ai/code/session_01J8VVAk6b17FVUZ5zGeyYi4