Repository navigation
Commit 7bafab3
<!-- claude-projects-attribution: {"github_login":"os-support-ai"} -->
_Requested by **Yibo Wang** · [project
thread](https://claude.ai/code/project/chan_01BVUyyPie8gHwoPM18iABwB?thread=cmsg_01BVUyyPie8gHwoPM18iABwB4xjiquevJqfBXiUoqfQwa1)_
Refs #29951
## 维护者速读
- 改了什么:`objectstack-ui` 技能的 `rules/pages.md` 里,`page:header` 那一行去掉了
`placedActions: true` 的“not drawn yet”限定语;`evals/record-page.json`
新增一个评测,考 `placedActions: true` 的用法。
- 为什么改:#29951 的 ui 半边(#30097,已合并)让控制台页头真正读这个键了,#30028
当时写下的限定语和“等渲染器落地再补评测”的说明到这里兑现。
- 风险与回滚:只改技能文本和评测,不改代码和 spec。`pages.md` 在 token 上限处,改后 5668/5669,没有变长。回滚
= revert 本 PR。
- 先看:`skills/objectstack-ui/rules/pages.md`
一行,`skills/objectstack-ui/evals/record-page.json` 新增的第 3 个用例。
- 两分钟验证:`node scripts/check-skills-token-ratchet.mjs`,预期 `pages.md is
5668 tokens (ceiling 5669)`、整体通过。
- 需要你做的:`skills/**` 是受管文件(Tier H),请你复核后批准合并。
Clause-②: no
Metadata-protocol: none
## What changes
- `skills/objectstack-ui/rules/pages.md`: the component catalogue's
`page:header` row now reads `` `placedActions: true` (all placed, read
live) `` in place of `(all placed; not drawn yet)`. The console's header
renderer reads the key since #30097 (`PageHeaderActions`, through
`placedHeaderActions`), so the qualifier #30028 wrote is dropped. This
is the sixth of the six qualifiers #30028 listed; #30097 dropped the
other five.
- `skills/objectstack-ui/evals/record-page.json`: a third case. The
prompt asks for a custom `kind: 'full'` account record page whose header
shows every action packages place on `account`, without listing ids. The
expected answer keeps the page and its tab strip and sets `{ type:
'page:header', properties: { placedActions: true } }`, with no `actions`
id list beside it (the two are refused together). Assertions: must
contain `placedActions: true` and `page:header`; must not contain
`slots.tabs` or `actions: ['`.
- `skills/objectstack-ui/evals/README.md`: the `record-page.json` line
names the new case.
- Changeset `.changeset/29951-skills-placed-actions-drawn.md`:
`@objectstack/skills` patch.
## Why
#30028's Skills-docs line deferred both pieces to the reader: "no eval
exercises it while no renderer reads it, so the eval and the qualifier
drop ride with the reader." The reader landed in #30097. The seat split
this Tier H file out of #30097 so that PR could land through the queue.
## Verification
- `node scripts/check-skills-token-ratchet.mjs`: exit 0;
`skills/objectstack-ui/rules/pages.md is 5668 tokens (ceiling 5669;
headroom 1)`, so the row costs one token less than before.
- `node scripts/pm/dispatch-gates.mjs --commands` on this diff: 42
commands, all run under `os-verify-lock` (VERDICT command-exit 0), every
one exit 0; `--ran`: 42 derived, 42 run, 0 NOT-MEASURED, 0 UNRUN. They
include the token ratchet and its self-test, `check:pm-skill-id-lint`,
`check:skill-compatibility`, `check:skill-frame-sync` and
`check:skill-identifier-liveness`.
- The branch is `main` at a52761f (the #30097 squash) merged in, plus
this one commit; `git diff origin/main` before the commit was empty.
## Human Minimum
- [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic.
(Not touched.)
- [x] 2. Every name I added uses the casing for its kind.
- [x] 3. No formatter ran; `pnpm lint` passes. (No TypeScript changed;
CI's `pnpm lint` covers the tree.)
- [x] 4. One issue, one branch off an up-to-date `main`, one pull
request.
- [x] 5. A change that publishes carries a changeset, and both
declaration lines are filled in here and in the changeset.
- [x] 6. `packages/spec` touched: its generated artifacts are
regenerated and committed. (Not touched.)
- [x] 7. No hand edits to `content/docs/references/`,
`packages/*/CHANGELOG.md` or `content/docs/releases/`.
- [x] 8. Title, body and comments are in English, except the `## 维护者速读`
block, which is written in Chinese for the maintainer.
- [x] The *Before Submitting* list in CONTRIBUTING.md is done.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01WGufzh8VRbTbBnqwnrXsSL
---------
Co-authored-by: Claude <noreply@anthropic.com>
1 parent 2381085 commit 7bafab3
4 files changed
Lines changed: 31 additions & 3 deletions
File tree
- .changeset
- skills/objectstack-ui
- evals
- rules
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
38 | 54 | | |
39 | 55 | | |
40 | 56 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
0 commit comments