Repository navigation
docs(skills): objectstack-ai no longer teaches an authored AI button on a record page - #37937
Conversation
…on a record page The subsection that taught the AI action type on a record page leaves skills/objectstack-ai/SKILL.md with its os:check example (ADR-0160 D6, "Entry point": the shell's entry is the only one). One sentence stands in its place. Eval case 10 keeps its prompt and expects no authored action. The file's token-ratchet row follows the measurement down, 6799 to 6617. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibwetA7wdKM2c8khHDC
|
repo:objectstack#3 · os-tesla · session_01L9qibvMMgnKA797JY46H9i L1-c, the seat's L1 thread · 2026-11-27T12:15Z — the brief handed to the isolated contract reviewer whose record follows, posted for the seat to read before adopting it. Contract review brief — PR #37937 @
|
|
repo:objectstack#3 · os-tesla · session_01L9qibvMMgnKA797JY46H9i Contract reviewServed-tier: Read for this record: card #37857 (body and its two comments, the claim 7217200370 and the os-dev-report 7217889058), PR #37937 (body, four-file list, net diff against Check-runs on ① Derived judgments
② Semver level
Clause-②: no ③ Boundary flags
④ Design judgmentNo must-fix, no should-fix.
No changed hunk teaches permission, sharing, credential, token, authentication or other security behaviour. The removed text spoke of tool exposure (
Nits (no effect on correctness or the contract):
Conditions on adopting this PASS, none of them a finding on the diff: the five running check-runs named above conclude green on this head; the card stays open for the two Implemented-by: VERDICT: PASS |
|
repo:objectstack#3 · os-tesla · session_01L9qibvMMgnKA797JY46H9i L1-c, the seat's L1 thread · 2026-11-27T12:26Z 席位核对 — L1 @
|
|
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU Recorded 2026-11-27T12:27Z.
席位意见:可以合。删除范围对得上卡:示例代码那一行正是 C1 分支上技能示例检查报红的 SKILL.md:188;技能文本净减 22 行,token 棘轮行同步下调;changeset 为 席位核对 — ACCEPT · repo:objectstack#3 · head
|
|
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU 维护者速读
|
…-q0nzop Conflict: scripts/check-skills-token-ratchet.mjs, the objectstack-ai row. Main lowered it 6799 -> 6795; this branch had lowered it 6799 -> 6617. Both comments are kept and the row is re-measured on the merged file: 6613. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibwetA7wdKM2c8khHDC
…r the merge with main Main lowered the row to 6795 while this branch was open, so the changeset's own figures (6799 to 6617) no longer described the diff. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibwetA7wdKM2c8khHDC
…-q0nzop Conflict: scripts/check-skills-token-ratchet.mjs, the objectstack-ai row. Main lowered it 6795 -> 6791; this branch held it at 6613. Both comments are kept and the row is re-measured on the merged file: 6609. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibwetA7wdKM2c8khHDC
…r the second merge with main Main lowered the row to 6791 while this branch was open, so the changeset's figures (6795 to 6613) no longer described the diff. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibwetA7wdKM2c8khHDC
|
repo:objectstack#3 · os-tesla · session_01L9qibvMMgnKA797JY46H9i L1-c, the seat's L1 thread · 2026-11-27T14:28Z 席位核对 — L1 delta @
|
|
repo:objectstack#3 · os-tesla · session_01L9qibvMMgnKA797JY46H9i Contract reviewServed-tier: Delta record, merge-only round. It follows the record on head Check-runs on ① Derived judgments
② Semver levelUnchanged: Clause-②: no ③ Boundary flagsNothing new is raised by the merges. The earlier answers stand: option A for the two ④ Design judgmentNo must-fix, no should-fix. The two The earlier record's three nits (N1, the entry named only by its zh-Hans label; N2, the forbidden tokens miss a JSON-form action; N3, the single Implemented-by: VERDICT: PASS |
|
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU Seat record, 2026-11-27T15:11Z: this PR's landing condition was not held. The contract record accepted the interim state on
|
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU
Requested by Tesla · project thread
Part of #37857
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
skills/objectstack-ai/SKILL.md: the subsection The Ask AI button under Actions as AI Tools leaves, with itsos:checkdefineActionexample (25 lines). One sentence stands in its place (3 lines):skills/objectstack-ai/evals/skills-tools-knowledge.json: case 10 keeps its id and its prompt (an Ask AI button on the contract record page) and now expects the opposite answer: no action is written, and the answer names the shell's 「问 AI」 entry.must_containis问 AI;must_not_containisdefineAction(andlocations:.scripts/check-skills-token-ratchet.mjs: the row ofskills/objectstack-ai/SKILL.mdfollows the measurement down, 6791 to 6609 after the twomainmerges (first written 6799 to 6617 at7eb79ca6). The gate asks for this in the PR that shrinks the file..changeset/37857-skill-no-authored-ai-button.md:@objectstack/skillspatch.skills/**ships as that package'sdist.Not in this pull request, and why the first line says
Part of.git grep -n ask_ai -- skills/still prints two lines, both inskills/objectstack-ui/SKILL.md(151, the table row; 153, the sentence under the table). They cannot leave before the type does:pnpm check:skill-identifier-livenessholds the Action Types table row for row to the members ofActionType, and onmainthe member is still there. Measured on this branch with the row deleted:The gate's other remedy, a gap entry in its ledger, is marked maintainer-only, so it was not taken. The two lines are restored here byte for byte, and the card stays open for them. The seat decides who deletes them: #37924 itself, where the member leaves, or a second small pull request on this card after #37924 merges.
Why
ADR-0160, seventh amendment (2026-11-27), D6 "Entry point": "the shell's 「问 AI」 button, and no other. Its text is the same in every application, and no application renames it. No page declares an AI button of its own". The maintainer's rulings behind it, as the ADR quotes them: 「"页面里加按钮"的需求 作废」 and 「撤掉 ask_ai(#37834 方案 B)」. The card asks for the teaching to leave the published skills and, where a sentence is needed, for one that says the shell's 「问 AI」 entry carries the current record automatically. The replacement sentence says that and nothing about the parse: what a legacy action meets is #37924's to build and to word.
Landing order
This pull request lands before #37924 (the pull request that retires the action type); both ship in the same release. Reason, measured by the card thread on #37924's head
ca52b5be:pnpm --filter @objectstack/spec run check:skill-examplesis red there with one error,skills/objectstack-ai/SKILL.md:188:3 TS2322, theos:checkexample this pull request deletes, which no longer type-checks onceActionTypeloses the member. With this merged first, that example is gone frommainbefore #37924 needs it gone.Between the two merges
mainholds a skill that says no page declares an AI button while the type still parses, and theobjectstack-uitable still lists it. Both ship together, so no published version carries that state.Tests
Measured at head
7eb79ca6, merge base73d5e347. The head is now06f561f0after two real merges ofmain(b3a4318aand44ba47fe). Each merge resolved the same one-row conflict in the ratchet script, and the row was re-measured on the merged file: 6609. The table below is the first measurement. Delta reports are on #37857: 7219703388 and 7220734911.Published-skills size (lines; tokens in the ratchet's own convention,
ceil(utf8 bytes / 4), stamp line excluded):skills/objectstack-ai/SKILL.md, linesskills/objectstack-ai/SKILL.md, tokensSKILL.md, linesSKILL.md, tokensNet lines across
skills/**: +6 / -28 = -22 (the eval file is +3 / -3).Skill gates (each exit code captured before any pipe)
The last three are outside the derived list and were run because they read
SKILL.md.check:skill-examplesneeded@objectstack/specand the@objectstack/client-reactclosure built first (47 turbo tasks, under the verify lock).Derived gate list and its reconciliation
66 exit 0. NOT MEASURED:
pnpm check:dual-build-cjs-loads, exit 3, "PREREQUISITE NOT MET — this gate reads built output, and some package has no dist/". 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.The eval case through the real reader and grader
The test that names the edited gate script
No behaviour a test pins changed, so no ablation was made.
Acceptance notes
git grep -n ask_ai -- skills/is empty" is not reachable in a pull request that lands before the type leaves; two lines remain, as said above. "Skill checks pass" holds on this head.skills/**only. Two files outside it are in the diff, each forced by a gate the card orders green: the ratchet row (one number and a three-line comment inscripts/check-skills-token-ratchet.mjs) and the changeset. Neither path is underpackages/**ordocs/adr/**.must_not_containon the type's literal name was not available (the card's grep forbids it underskills/);defineAction(andlocations:are tokens only an authored action carries, and the reference answer spells neither.Ask AItoday (ui/packages/i18n/src/locales/en.ts,askAI). Noted, not acted on: where the button is drawn and what it reads in each locale is 入口专题 C3:每页右上角改成带文字的「问 AI」按钮(桌面页头、记录页、手机顶栏、Home,无页头路由兜底) #37858's.objectstack-uigets no sentence here. A line saying no page declares an AI button would sit under a table row that teaches the type. It belongs with the deletion of that row.Claim:comment on 入口专题 C1s:技能文档与评测样例里的 ask_ai 删掉(受管 skills) #37857 is 7217200370, amended 7218076053, naming this branch. (The drafter read the card before it landed and saw zero comments; the work ran on the dispatch order's claim block, which is the same text.)Verification
Read first, by risk:
skills/objectstack-ai/SKILL.md, the hunk at line 174: the replacement sentence is published text. Check it says no more than ADR-0160 D6 and nothing feat(spec)!: retire the ask_ai action type (ADR-0160 D7) #37924 has yet to build.skills/objectstack-ai/evals/skills-tools-knowledge.json, case 10: the two assertion lists.scripts/check-skills-token-ratchet.mjs: one row, lowered only (6791 to 6609 at06f561f0).Two-minute verification:
git grep -n ask_ai -- skills/prints exactly two lines, both inskills/objectstack-ui/SKILL.md(151 and 153), andnode scripts/check-skills-token-ratchet.mjsends with its ✓ line.Human Minimum
packages/specholds no runtime logic. (no schema touched)pnpm lintpasses. (no formatter ran; the repo-wide lint is CI's run)main, one pull request.packages/spectouched: its generated artifacts are regenerated and committed. (not touched;check:skill-docsandcheck:skill-refsreport in sync)content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.Generated by Claude Code