Skip to content

Commit 34c0522

Browse files
docs(skills): the manifest.namespace paragraph lists runs among the refused route literals (#33392)
<!-- claude-projects-attribution: {"github_login":"os-project-manager"} --> _Requested by **Leehom** · [project thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1X7MHKScQJbnbXmp6vNg11Zg)_ Fixes #32429 domain:skills#1 · os-project-manager · session_01FEkQ5nrKa94odCWJqYjKNv Clause-②: no Metadata-protocol: none ## 维护者速读 - 改了什么:`objectstack-platform` 技能里 `manifest.namespace` 段落的「永不使用的命名空间」清单加上 `runs`,现在列出全部七个路由字面量:`actions`、`connectors`、`global`、`hooks`、`oauth`、`runs`、`trigger`。 - 为什么改:平台已拒绝把 `runs` 当作包命名空间(入站 hook 路由在命名空间位置读到 `runs` 时把它当字面量),但技能清单漏了它,AI 作者照清单挑了 `runs` 后要到 `os validate`、构建或安装时才被拒。 - 风险与回滚:纯技能文字,一个文件一行内加一个词,不动 schema、不动运行时;回滚即还原本 PR。 - 先看:`skills/objectstack-platform/SKILL.md` 第 123 行末尾那句 "Never …"。 - 两分钟验证:`git diff origin/main -- skills/`,预期只见 `` `oauth`, `runs`, `trigger` `` 这一处插入。 - 需要你做的:受管面 Tier H(`skills/**`):请批准或合并。 ## What changes - **`skills/objectstack-platform/SKILL.md:123`**, the `manifest.namespace` (ADR-0048) paragraph. "Never `actions`, `connectors`, `global`, `hooks`, `oauth`, `trigger` (route literals; `os validate` and build refuse)." becomes "Never `actions`, `connectors`, `global`, `hooks`, `oauth`, `runs`, `trigger` (route literals; `os validate` and build refuse)." - **`.changeset/32429-skills-namespace-literal-runs.md`**: `'@objectstack/skills': patch`, carrying both declaration lines. - No eval changed: `skills/objectstack-platform/evals/config-plugins-ops.json` is the only eval file and none of its prompts asks for the reserved namespace list (it asks for `namespace: 'crm'`), so per the card no eval is extended or added. ## Why Read on `origin/main` fca5f89 (`packages/spec/src/kernel/address-grammar.ts` is byte-identical to the order's base 6538ba4): - `NAMESPACE_POSITION_LITERALS` holds `automation` `['_status', 'actions', 'connectors', 'hooks', 'trigger']`, `automationTrigger` `[]`, `inboundHook` `['runs']`, `actions` `['', '_activation', 'global']`, `meta` `[]`, `connectors` `['credential-refs', 'oauth']`. - `NAMESPACE_REFUSED_LITERALS` is that union filtered by `NAMESPACE_PATTERN` and sorted: `actions`, `connectors`, `global`, `hooks`, `oauth`, `runs`, `trigger`. `packages/objectql/src/registry-namespace-address-literal.test.ts:68` pins exactly that list. `runs` is the only member the skill did not name, so no other literal is missing. - The new list follows the set's sorted order, which is the order the skill's list already used. ## Acceptance notes - The parenthetical "`os validate` and build refuse" is left as it was. On `main` the install door refuses too: `packages/objectql/src/registry.ts:10133` asks `validateNamespaceNotAddressLiteral(manifest.namespace)` and throws `NamespaceAddressLiteralError` for a package not already held. That refusal covers every literal in the set and predates this card's dependency, so the sentence was already silent on install for the other six; the order rules one word, and the skill's token headroom on this file is 4 tokens (2 after this change), which the extra words would exceed. Noted, not changed. - Other copies swept with `git grep` over `skills/` for `oauth`, `route literal` and `NAMESPACE_REFUSED_LITERALS` on fca5f89: this paragraph is the only place a skill lists the refused namespaces. ## Verification Head `301c72a0`, base `origin/main` fca5f89. <details><summary>Line and token budget (skills/**)</summary> - `skills/objectstack-platform/SKILL.md`: 414 to 414 lines, 24048 to 24056 bytes; token ratchet 6007 to 6009 (ceiling 6011, headroom 2). No ceiling moved. - Whole package, all `skills/*/SKILL.md`: 4602 to 4602 lines. Bundle total (whole shipped tree): 244310 to 244312 tokens. - `node scripts/pm/check-skill-line-ratchet.mjs`: exit 0. `node scripts/check-skills-token-ratchet.mjs`: exit 0. </details> <details><summary>Derived gates: 47 derived, 45 run green, 2 NOT MEASURED</summary> `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` derived 47 families for the two paths. `@objectstack/formula`, `@objectstack/lint` and `@objectstack/spec` were built first under the verify lock (VERDICT command-exit 0, 95s). Each family was run with its exit code captured before any pipe: - 45 exit 0, among them `check-adr-0087-registration` (scan and `--self-test`), `check-changeset-no-major`, `check-empty-changeset` (scan and `--self-test`), `check-skills-token-ratchet` (scan and `--self-test`), `@objectstack/lint check:doc-formula-expressions`, `@objectstack/spec check:skill-docs` ("Skill docs in sync"), `check:doc-authoring`, `check:nul-bytes`, `check:pm-governed-merges`, `check:published-files`, `check:skill-compatibility`, `check:skill-frame-sync`, `check:skill-identifier-liveness`, `check:skill-links`, `check:dts-closure` and `check:sourcemap-no-sources-content` (both over the 5 built packages). - NOT MEASURED, exit 3 PREREQUISITE NOT MET, each reading every package's `dist/`: `check:dual-build-cjs-loads`, `check:lean-entry-closure`. No package source is touched, so no full build was paid locally; CI builds and runs them. - `--ran` reconciliation: "47 derived famil(ies) accounted for — 45 run, 2 NOT-MEASURED (2 DERIVED from a recorded exit 3)". - CI families are read from this PR's check-runs, not re-run here. </details> <details><summary>Tier and governed readings</summary> - `dispatch-gates --tier`: MANDATORY contract-review tier for `skills/objectstack-platform/SKILL.md` under clause ① (the published catalog); no one-line exit for this surface. - `node scripts/pm/check-governed-merges.mjs --branch claude/project-thread-g4rhqz`: exit 3, GOVERNED, landing tier H (人合). 1 of 2 paths hits the register (`skills/**` x1); the changeset is not on it. Size +11 / -1, under the 3000 threshold. </details> 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01FEkQ5nrKa94odCWJqYjKNv <!-- signed: domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb --> Co-authored-by: Claude <noreply@anthropic.com>
1 parent e2d6953 commit 34c0522

2 files changed

Lines changed: 11 additions & 1 deletion

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 `manifest.namespace` paragraph lists `runs` among the namespaces a package may never declare
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
`objectstack-platform` named `actions`, `connectors`, `global`, `hooks`, `oauth` and `trigger` as the route literals a package namespace may never spell, but the address grammar's refused set (`NAMESPACE_REFUSED_LITERALS`, derived from `NAMESPACE_POSITION_LITERALS` in `@objectstack/spec/kernel`) also holds `runs`, the literal in the inbound hook's namespace position. An AI author who picked `runs` met the refusal only at `os validate`, build or the install door. The list now names all seven, in the set's sorted order. No schema or runtime change.

‎skills/objectstack-platform/SKILL.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ to a new protocol major — never to silence a mismatch.
120120

121121
**Object naming:** The object `name` is the canonical identifier and equals the physical table name. Embed any domain prefix directly in the name (e.g. `name: 'crm_account'`); the object-level `namespace` *field* is retired (ADR-0129 D3) and refused at load. Never set `tableName`, and never add a `sys_metadata` object to a runtime manifest.
122122

123-
**`manifest.namespace` (ADR-0048):** Optional, but **enforced once set**. When a package declares `manifest.namespace: 'crm'`, every `object.name` must start with `crm_` or `defineStack` errors (`validateNamespacePrefix` in `@objectstack/spec`); the legacy `<ns>__<short>` double-underscore form is rejected, and `sys_`-prefixed names are platform-reserved and exempt. The namespace is also a package-ownership key — installing two packages that both claim `crm` fails with `NamespaceConflictError` (downgrade to a warning with `OS_METADATA_COLLISION=warn`). Never `actions`, `connectors`, `global`, `hooks`, `oauth`, `trigger` (route literals; `os validate` and build refuse).
123+
**`manifest.namespace` (ADR-0048):** Optional, but **enforced once set**. When a package declares `manifest.namespace: 'crm'`, every `object.name` must start with `crm_` or `defineStack` errors (`validateNamespacePrefix` in `@objectstack/spec`); the legacy `<ns>__<short>` double-underscore form is rejected, and `sys_`-prefixed names are platform-reserved and exempt. The namespace is also a package-ownership key — installing two packages that both claim `crm` fails with `NamespaceConflictError` (downgrade to a warning with `OS_METADATA_COLLISION=warn`). Never `actions`, `connectors`, `global`, `hooks`, `oauth`, `runs`, `trigger` (route literals; `os validate` and build refuse).
124124

125125
**Which names carry the namespace (ADR-0150):** object and doc names, capabilities (`crm.export_data`) and positions (one slot per environment). Every other name stays short (`send_email`): flows, actions, hooks, apps, pages, dashboards, reports, datasets, permission sets, tools, skills, agents are identified by package and name. A prefixed name stays valid; no name starts with `_`, which the router reserves. `os lint`'s `naming/namespace-prefix` warns on a bare capability or position name, and when one package declares an app, page, dashboard, flow, report or dataset name twice, or an action name twice on one object.
126126

0 commit comments

Comments
 (0)