Repository navigation
Commit a262197
docs(skills): the objectstack-ui action-type table no longer lists ask_ai (#38226)
<!-- claude-projects-attribution: {"github_login":"os-tesla"} -->
_Requested by **Tesla** · [project
thread](https://claude.ai/code/project/chan_01AXsQkLFKRdQCqQ3RTr6Jao?thread=cmsg_01AXsQkLFKRdQCqQ3RTr6Jao3PpF4t89AvwzCmzVRuQMwV)_
Fixes #37857
Clause-②: no
Metadata-protocol: none
## 维护者速读
- 用户能看到什么变化:写界面元数据的作者(以及替他写的 AI)查界面技能文档里的「动作类型」表时,不再看到已经下线的「问
AI」动作类型;表下那句「哪些类型必须填目标」同步去掉了它。应用的使用者无感。
- 为什么做:「问 AI 入口改造」专题已定全站只留页头的「问 AI」一个入口,页面不再自己声明 AI
按钮;这个动作类型已从平台撤掉,这是技能文档里剩下的最后两行。
- 出错会怎样:只改了两行文档和一行额度账;删错的话,作者照文档会少知道一种动作类型,撤回这一个合并即可恢复。
- 要你做什么:批准这个受管的技能文档改动。
## What changes
This is the second and last pull request on the card. The first, #37937
(the `objectstack-ai` text and its eval case), merged as `4de4e3e9`;
#37924 (the pull request that retired the action type) merged as
`9609c137`, the base of this branch.
- `skills/objectstack-ui/SKILL.md`, *Action Types*: the `ask_ai` row
leaves the table, and the line under the table reads "Every type but
`script` requires `target`." (it read "Every type but `script` and
`ask_ai` requires `target`."). 1 line added, 2 removed.
- `scripts/check-skills-token-ratchet.mjs`: the row of
`skills/objectstack-ui/SKILL.md` follows the measurement down, 2262 to
2228, with a three-line note above it. The gate asks for this in the
pull request that shrinks the file.
- `.changeset/37857-skill-ui-action-types-no-ask-ai.md`:
`@objectstack/skills` patch. `skills/**` ships as that package's
content.
After this, `git grep -n ask_ai -- skills/` prints nothing (exit 1),
which is the card's acceptance.
**Read first, by risk:**
1. `skills/objectstack-ui/SKILL.md`, the one hunk at line 148: the whole
published change.
2. `scripts/check-skills-token-ratchet.mjs`, the one hunk: only the
`objectstack-ui` row moves, down, to the measurement.
3. `.changeset/37857-skill-ui-action-types-no-ask-ai.md`: the sentence
that ships in the package changelog.
**Two-minute verification:** `git grep -n ask_ai -- skills/` prints
nothing; then `pnpm check:skill-identifier-liveness && node
scripts/check-skills-token-ratchet.mjs` ends with both gates' success
lines (quoted under Tests).
## Why
ADR-0160, seventh amendment, D6 "Entry point": the entry to the in-app
assistant is the shell's 「问 AI」 entry, and no page declares an AI button
of its own. D7 retired the `ask_ai` action type, and on `main`
`ACTION_TYPE_VALUES` in `packages/spec/src/ui/action.zod.ts` is
`script`, `url`, `modal`, `flow`, `api`, `form`. The seat's route for
this card (claim amendment 7218076053 on the card) left these two lines
for a second pull request after the type left, because the liveness gate
held the table to the type's members while the member was still there.
The footnote is written from the tree, not from the card:
`TARGET_REQUIRED_TYPES` is `ActionType.options` without `script`, so
every remaining type but `script` requires `target`.
## Tests
Measured at head `47a39aad`, merge base `9609c137` (`origin/main` at
dispatch).
Published-skills size (lines; tokens in the ratchet's own convention,
`ceil(utf8 bytes / 4)`, the release-stamp line not priced):
| | before | after |
|:--|--:|--:|
| `skills/objectstack-ui/SKILL.md`, lines | 165 | 164 |
| `skills/objectstack-ui/SKILL.md`, bytes | 9075 | 8937 |
| `skills/objectstack-ui/SKILL.md`, tokens | 2262 | 2228 |
| all 14 `SKILL.md`, lines | 4953 | 4952 |
| ratcheted authored files, tokens | 199880 | 199846 |
| whole shipped tree, tokens | 303421 | 303387 |
Net lines across `skills/**`: +1 / -2 = -1 (budget: net added lines at
most 0). Whole pull request: +15 / -3.
<details>
<summary>The table binding: green with the row gone, red when a live
member's row goes</summary>
```text
main 9609c13, file untouched:
pnpm check:skill-identifier-liveness :: exit 0
check-skill-identifier-liveness OK — Leg 1: 563 citation(s) over 76 published file(s) ...; Leg 2: 11 registered exhaustive section(s), 0 ledgered gap(s).
head 47a39aa, the ask_ai row and its footnote words gone:
pnpm check:skill-identifier-liveness :: exit 0
check-skill-identifier-liveness OK — Leg 1: 562 citation(s) over 76 published file(s) ...; Leg 2: 11 registered exhaustive section(s), 0 ledgered gap(s).
head 47a39aa with the `form` row also deleted on disk (a probe, restored from HEAD, blob hash identical):
node scripts/check-skill-identifier-liveness.mjs :: exit 1
[leg2-missing-row] skills/objectstack-ui/SKILL.md — ### Action Types is registered exhaustive over `ACTION_TYPE_VALUES` (packages/spec/src/ui/action.zod.ts) and does not document `form`.
restored:
node scripts/check-skill-identifier-liveness.mjs :: exit 0
```
So on this tree the gate holds the table to `ACTION_TYPE_VALUES`, the
live members, and the `ask_ai` row is free to leave. The red reading for
deleting that row was taken before the type left, on the first pull
request's branch (quoted in #37937, the first pull request on this
card).
One reading that differs from what a reader might expect: on `main` the
gate was green with the retired row still in the table. It reds on a
live member with no row; it did not red on a row for a retired member.
</details>
<details>
<summary>Token ratchet: before, after the text edit, after the row
moved</summary>
```text
main 9609c13: node scripts/check-skills-token-ratchet.mjs :: exit 0 skills/objectstack-ui/SKILL.md 2262 / 2262 (+0)
text edited, row not yet moved: node scripts/check-skills-token-ratchet.mjs :: exit 1
✗ check-skills-token-ratchet: skills/objectstack-ui/SKILL.md is 2228 tokens; its ratchet ceiling is 2262, above the measurement by 34. ... Lower the row to 2228 in this PR: lowering is shrink-only and is every author's to make, no ruling needed.
head 47a39aa: node scripts/check-skills-token-ratchet.mjs :: exit 0 skills/objectstack-ui/SKILL.md 2228 / 2228 (+0)
✓ check-skills-token-ratchet: 61 authored bundle file(s) within their ceilings; 11 generator-owned file(s) and 42 eval fixture(s) measured, not ratcheted.
node scripts/check-skills-token-ratchet.mjs --self-test :: exit 0
✓ check-skills-token-ratchet self-test: 111 cases pass.
```
Hand audit: `ceil((8937 - 27) / 4) = 2228`, 27 being the release-stamp
line's bytes.
</details>
<details>
<summary>Skill gates (each exit code captured before any pipe)</summary>
```text
pnpm check:skill-links :: exit 0
✓ check-skill-links: 272 relative link(s) in 76 published skill file(s) resolve; 140 fragment(s) name a real heading under GitHub's slug rule.
pnpm check:pm-skill-id-lint :: exit 0
✓ check-skill-id-lint: 134 file(s) clean
pnpm check:skill-compatibility :: exit 0
pnpm check:skill-frame-sync :: exit 0
pnpm --filter @objectstack/spec run check:skill-docs :: exit 0
✅ Skill docs in sync
pnpm --filter @objectstack/spec run check:skill-served-sections :: exit 0
✓ check-skill-served-sections: 24 served section(s), each heading exactly once in its file (6 json, 2 json+ts, 16 neutral); 10 JSON fence(s) parse and pass their spec validators.
pnpm --filter @objectstack/spec run check:skill-examples :: exit 0 (outside the derived list)
✅ 351 prose examples type-check across 3 surface(s)
pnpm --filter @objectstack/spec run check:skill-refs :: exit 0 (outside the derived list)
✅ 10 generated files in sync with packages/spec
```
`@objectstack/spec` and the `@objectstack/client-react` closure were
built first, under the verify lock (47 turbo tasks, `VERDICT
command-exit 0`).
</details>
<details>
<summary>Derived gate list and its reconciliation</summary>
```text
node scripts/pm/dispatch-gates.mjs --commands → 68 command(s)
node scripts/pm/dispatch-gates.mjs --ran RECORD → ✓ dispatch-gates --ran: 68 derived famil(ies) accounted for — 67 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3).
```
67 exit 0, among them `check-empty-changeset` ("1 declaring changeset(s)
added"), `check-changeset-no-major`, `check-adr-0087-registration`,
`check:doc-authoring`, `check:nul-bytes` and `check:pm-dispatch-gates`.
NOT MEASURED: `pnpm check:dual-build-cjs-loads`, exit 3, "Run `pnpm
build` first. This is NOT a pass: nothing was measured." It needs the
whole workspace built; this diff changes no package, so the build was
not made for it and CI's run is the reading.
</details>
<details>
<summary>The test that names the edited gate script</summary>
```text
pnpm --filter @objectstack/spec exec vitest run --maxWorkers=2 scripts/platform-catalog.test.ts
Test Files 1 passed (1)
Tests 21 passed (21)
os-verify-lock: VERDICT command-exit 0
```
</details>
No tested behaviour changes (two lines of published prose, one ceiling
row, one changeset), so there is no ablation of a fix; the probe above
is a reading of the gate, not of this diff.
## Acceptance notes
- The card's acceptance, "`git grep -n ask_ai -- skills/` is empty;
skill checks pass", is met at `47a39aad`: the grep exits 1 with no
output, and the skill gates are quoted above.
- The branch `claude/project-thread-q0nzop` was restarted from
`origin/main`. It no longer existed on the remote after #37937 merged,
so it was pushed as a new branch; nothing was force-pushed.
- Noted, not acted on here: `chore: version packages (next)`
(`9d111a7f`) landed on `main` between the first pull request's merge
(`4de4e3e9`) and the type retirement's (`9609c137`), and the registry's
`next` tag for `@objectstack/skills` reads `19.0.0-next.2`. The reviews
of the first pull request carried a landing condition that no release of
that package, a prerelease included, fall between those two merges. That
prerelease therefore carries the in-between state: the `objectstack-ai`
skill says no page declares an AI button, while the `objectstack-ui`
table still lists the type and the type still parses. This pull request
and the type retirement close it in the next one. What, if anything, to
do about `next.2` is the seat's and the maintainer's.
- Not taken: the optional review nit on the first pull request (adding
one more forbidden token to eval case 10 in the `objectstack-ai`
bundle). It is outside this pull request's file surface.
- `content/docs/**` and `packages/**` are untouched. No generated
artifact moved: `check:skill-docs` and `check:skill-refs` are in sync
without regeneration.
## Verification
- Local: the gates above, at `47a39aad`. Repo-wide lint, the full type
check, `test:repo` and the dogfood battery are CI's runs and were not
repeated locally. No dogfood run is owed: the title has no breaking
marker and the declaration has no narrowing arm.
- This diff touches `skills/**`, a governed surface: it is opened as a
draft and waits for its tier's record. Nothing here readies, queues or
arms it.
## Human Minimum
- [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic.
(No schema touched.)
- [x] 2. Every name I added uses the casing for its kind. (No name
added.)
- [x] 3. No formatter ran; `pnpm lint` passes. (No formatter ran;
repo-wide lint is CI's run.)
- [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. (The maintainer
summary is in Chinese by the fleet's rule.)
- [x] The *Before Submitting* list in CONTRIBUTING.md is done.
---
_Generated by [Claude
Code](https://claude.ai/code/session_01L9qibwetA7wdKM2c8khHDC)_
Co-authored-by: Claude <noreply@anthropic.com>1 parent 69bb8ae commit a262197
3 files changed
Lines changed: 15 additions & 3 deletions
File tree
- .changeset
- scripts
- skills/objectstack-ui
| 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 | |
|---|---|---|---|
| |||
1180 | 1180 | | |
1181 | 1181 | | |
1182 | 1182 | | |
1183 | | - | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
1184 | 1187 | | |
1185 | 1188 | | |
1186 | 1189 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
152 | 151 | | |
153 | | - | |
| 152 | + | |
154 | 153 | | |
155 | 154 | | |
156 | 155 | | |
| |||
0 commit comments