Repository navigation
Commit 34c0522
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
| 123 | + | |
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| |||
0 commit comments