Repository navigation
docs(skills): scope "Declaring is a demand" to what os serve does - #35294
Conversation
A declared provider-table token or ai/ai-studio with its package absent fails the boot; a declared enterprise / cloud token with no provider only warns, and hierarchy-security's scopes fall back to owner-only. Paid by two same-file restatement cuts; the platform ratchet row moves by the measured remainder (6145 -> 6163). Claude-Session: https://claude.ai/code/session_01Utp6CazXu8zyYD5PC6J2u7 Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ Contract reviewServed-tier: Basis: PR #35294 for card #35285. Read: the card body and its three comments (claim 6997737811, dev report 6998072382, first touch 6998127438), the PR body and file list (the PR has no comments or reviews yet and is a draft), the net diff from merge-base The security line reads ① Derived judgmentsAccept set and public surface: no change. The diff is one The rewritten rule (
Which boot takes which path:
ADRs: neither named ADR requires a hard error, so the skill contradicts no accepted ADR and no maintainer question arises.
Rest of the published catalog, grepped under
② Semver level
③ Boundary flagsDev report 6998072382, Deviations and notes, each answered:
SQL push-down check: the diff has no query code, so no id materialisation and no in-app join. The PR author is ④ Design judgment
The 10402 principle (no growth for a small feature) is not engaged: the growth corrects a false sentence and adds no feature. The cuts lose no instruction:
Both are restatements in the ruling's sense: the fact keeps a home in the same sentence. Findings. No must-fix. No should-fix. Six nits, none of which touches correctness or the contract; all are accepted as they stand on this head.
Implemented-by: VERDICT: PASS |
|
repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ 维护者速读
席位核对 — ACCEPT · repo:objectstack#5 · head
|
Requested by Bill · project thread
Fixes #35285
Clause-②: no
Metadata-protocol: none
维护者速读
objectstack-platform技能里「Declaring is a demand」一条,从"凡是声明了而缺 provider 都是启动硬错误"改成按os serve的真实行为分两类:provider 表里的 token 与ai/ai-studio缺包即启动失败;企业版/云端 token(hierarchy-security等)缺 provider 只告警、照常启动,hierarchy-security的层级范围随后退化为仅本人。skills/objectstack-platform/SKILL.md第 331-335 行(改写的规则);scripts/check-skills-token-ratchet.mjs平台行注释(6145 -> 6163 的算账);.changeset/35285-platform-declared-capability-boot.md。node scripts/check-skills-token-ratchet.mjs,预期平台行打印6163 tokens (ceiling 6163; headroom 0)且整体通过。skills/**受管,需席位契约评审记录)。What changes
skills/objectstack-platform/SKILL.md, the "Declaring is a demand" rule underrequires:. Before: any capability the app declared whose provider package is absent is a hard boot error. After: a declared token of the provider table, orai/ai-studio, with its package absent is a hard boot error; one the platform auto-injects stays best-effort; a declared enterprise / cloud token with no provider only warns at boot, andhierarchy-security's scopes then fall back to owner-only.What
os servedoes, read atorigin/mainf848e373:CAPABILITY_PROVIDERStoken, provider import fails: throwsmissingProviderMessage(cap)(module not found) orCapability ... failed to start(crash); the outer boot catch exits 1.packages/cli/src/commands/serve.ts:5608-5628. The same token auto-injected (not indeclaredRequires) only warns or logs and the boot goes on:serve.ts:5629-5633.ai/ai-studio:resolveAiServiceLoadanswersrequired(packages/cli/src/utils/ai-service-auto-inject.ts:57-70), andloadOptionalServicePluginthrows for a required load whose package is absent or crashes (serve.ts:5311-5342, called at:5374-5378and:5395-5405).CAPABILITY_PROVIDERSrow and no tier, which ishierarchy-securityand the cloud-onlyai-seat,governance,audit-compliance,access-policy-console:judgeDeclaredCapabilities(packages/cli/src/utils/capability-preflight.ts:413-432) and every finding is printed withconsole.warn; the code comment says "A warning, never a refusal: the boot is unchanged" (serve.ts:5472-5497). The resolver loop thencontinues past these tokens silently (serve.ts:5499-5531).if (!resolver) return [me];(packages/plugins/plugin-sharing/src/sharing-service.ts:2470-2477).Prior rulings read before writing, as the claim named: ADR-0116 Decision (D1-D5, plugin ordering and init-service requirements) and ADR-0120 D5 (uniqueness authoring gates). Neither says a declared capability provider must always be a hard boot error, so the skill is scoped to the code, not the other way round.
Paid for under the standing ruling 「A:先削重复,余额按实测提高」 (ruling record 6513306068, letter B). Two restatements cut first, each keeping its other home in the same sentence:
defineStackat authoring time".createHonoApp... delegates everything else to it".The platform row of
scripts/check-skills-token-ratchet.mjsmoves by the measured remainder only, with its arithmetic note.Tests
No code changes; the gates below are the evidence.
Published-skills readings (
skills/**):skills/*/SKILL.mdsummed: 4830 -> 4831 lines. Bundle total (whole shipped tree, ratchet report): 269946 -> 269964 tokens.Acceptance notes
ai/ai-studio) and leavesi18n,uiandauthunsaid: their blocks take norequiresintent (serve.ts:4016-4048warns on a missing@objectstack/service-i18nwhether or not declared). Not a claim this PR makes either way.CAPABILITY_PROVIDERStoken whose package loads but does not export its class only warns (serve.ts:5538-5541), unlike the tier loader, which throws for a required load (serve.ts:5319-5323). Observation only, not filed: no reach measured.check:role-wordreportsskills/objectstack-platform/SKILL.mdimproved 2 -> 1; its ledger is outside this card's file surface, so--updatewas not run.Verification
Head
811f56608. Local subset:node scripts/pm/dispatch-gates.mjs --commandsderived 67 families for this diff; all 67 ran,--ranreconciliation: "67 derived famil(ies) accounted for — 63 run, 4 NOT-MEASURED (4 DERIVED from a recorded exit 3)".Gate readings
node scripts/check-skills-token-ratchet.mjs: exit 0; "skills/objectstack-platform/SKILL.md is 6163 tokens (ceiling 6163; headroom 0)"; "59 authored bundle file(s) within their ceilings".--self-test: exit 0, "104 cases pass".pnpm --filter @objectstack/spec run check:skill-docs,check:skill-links,check:skill-identifier-liveness,check:skill-top-level-keys,check:skill-compatibility,check:skill-frame-sync,check:doc-authoring,check:nul-bytes,check:pm-skill-id-lint,check:role-word,check-adr-0087-registration,check-changeset-no-major,check-empty-changeset: exit 0.pnpm --filter @objectstack/lint run check:doc-formula-expressions: first run exit 3 (PREREQUISITE NOT MET,@objectstack/formulaand@objectstack/lintunbuilt); rebuilt under the verify lock (VERDICT command-exit 0), rerun exit 0.pnpm check:pm-dispatch-gates: exit 0, "2249 cases pass" (fast tier).check:dts-closure,check:dual-build-cjs-loads,check:lean-entry-closure,check:sourcemap-no-sources-content. CI's Build Core and Lint & Repo Gates run them.node scripts/pm/overlap-check.mjs --branch=HEAD: "VERDICT clean exit 0" againstorigin/mainand docs(skills): the objectstack-ui router names action refusals #35279, docs(skills): the ask skill teaches withheldFields, the database top-N cut and totalGroups #35268, chore: version packages #35129.🤖 Generated with Claude Code
https://claude.ai/code/session_01Utp6CazXu8zyYD5PC6J2u7