Skip to content

docs(skills): objectstack-ai names what replaces the retired agent keys - #37797

Draft
objectstack-fleet[bot] wants to merge 6 commits into
mainfrom
claude/area-o1B-37419
Draft

objectstack-fleet[bot] wants to merge 6 commits into
mainfrom
claude/area-o1B-37419

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Elon · project thread

Fixes #37419

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:靠这份 AI 技能文档工作的助手,遇到已下线的两个智能体配置项时,能说出该改用哪两个配置项、工具该登记在哪里。
  • 为什么做:技能评测跟进项。第 5 题带技能原本 0/5,补了两行文档后四轮都达标,最近一轮 5/5。第 6 题按您的第二次裁决恢复主线原样,改由另一张卡处理(让判分接受几种写法中的任意一种),在那之前它仍约半数误判。
  • 出错会怎样:只改文档两行、示例删一行,运行行为不变;撤回这一个改动即可恢复。
  • 要你做什么:技能文档属受管文件,合并需要 os-zhuang 批准。

What changes

  • skills/objectstack-ai/SKILL.md, the retired-keys table (2 rows): the agent.tools row now says where the tools go (a defineSkill under the stack's skills); the agent.knowledge row names the two keys that restrict retrieval on the knowledge source (aiExposed, source.where). Both come from the saved phase-2 patch, applied by hand.
  • skills/objectstack-ai/SKILL.md, the skill example: one sample instruction line removed ("Escalated cases must summarise the actions already taken."). This is the whole payment for the two rows: on the base this PR was written on, the rows alone took the file to 6813 tokens against a 6801 ceiling (over by 12), and with the line gone it measured 6797 (4 under). main has since lowered the file and its row twice (6801, then 6800, then 6799); on the current head the file measures 6795 against main's 6799, the same 4 under. The other trims of the saved patch are not applied: the ratchet does not need them.
  • The human-in-the-loop paragraph is not touched: it reads exactly as on main (ruling 7208935788, execution item 2; second ruling 7217332972, item 5).
  • skills/objectstack-ai/evals/skills-tools-knowledge.json is not in this PR any more. Under the second ruling on the card (7217332972, option A, 「A 先上第5题,第6题另开卡」) case 6 is back at main's bytes: git diff origin/main HEAD for that file is empty. Case 6 moved to skill-evals grader: an any-of form over literal tokens, so one case can accept any of several correct code spellings (objectstack-ai case 6 first) #37928 (the skill-evals grader gains an any-of form over literal tokens, and case 6 is graded with it).
  • scripts/check-skills-token-ratchet.mjs: the ceiling row for skills/objectstack-ai/SKILL.md is lowered from 6799 (the value on main) to 6795, the file's measurement on this head. main reds a row left above its measurement, so the 4 tokens the trim over-paid are banked in the row. A lowering, not a raise; no other row moves, and the two notes main wrote above the row stay as they landed.
  • .changeset/37419-ai-skill-tombstone-replacements.md: @objectstack/skills patch. Its paragraph on case 6 is removed.
  • Head 5b486c62 is 239d73bd plus one commit: the eval file restored from main and the changeset paragraph removed (2 files, +1 / -3). main was not merged again: since 0a3ea67c (already inside this head) main has moved 4 commits to 73d5e347, none of them in skills/, the ratchet script or this PR's changeset, and a trial merge of 73d5e347 is clean with the same skills/ tree and the same ratchet script as this head. So the ratchet reading on this head is the reading on the merged tree.
  • skills/objectstack-ai/SKILL.md is the same blob on 239d73bd and on 5b486c62 (3215031f): git diff 239d73bd 5b486c62 for that file is empty. The skill text the 239d73bd round read is the text on this head.

Skills size readings

reading before (main 73d5e347) after (5b486c62)
skills/objectstack-ai/SKILL.md, lines 487 486
skills/objectstack-ai/SKILL.md, tokens of ceiling (ratchet) 6799 of 6799 6795 of 6795
all skills/*/SKILL.md, lines 4959 4958
authored bundle, tokens of ceilings (ratchet) 199689 of 199689 199685 of 199685
whole shipped tree, tokens 301286 301282

Net lines across skills/**: +2 / -3 = -1 (budget: at most +3). The main column was measured on 0a3ea67c; main has not changed skills/ or the ratchet script since.

Tests

Acceptance, narrowed to case 5 by the second ruling (7217332972, item 3): the round on 239d73bd (dev report 7217136306), 5 draws per arm. Scratch worktree at the pushed head, eval file trimmed locally to ids 5 and 6 (uncommitted); pnpm --filter @objectstack/scenarios skill-evals --skills objectstack-ai --repeats 5. Driver: claude-code-cli 2.1.332, subscription login, the login's default tier, CLI default effort, --max-turns 16, 2 at once. 20 of 20 turns ran; none invalid or errored. No new round is owed on 5b486c62: SKILL.md is byte-identical to 239d73bd (item 2 of the ruling's execution).

case with skill no skill tokens missed (with skill) bar met
5 5/5 0/5 none with skill at least 4/5 yes

Case 5 with the skill on the three earlier rounds since the two rows: 4/5, 4/5, 4/5. The case-6 rates of the same rounds stay recorded on the card (report 7217136306) and belong to #37928.

No behaviour pinned by a unit test changed, so no ablation.

Acceptance notes

  • overlap-check --branch=claude/area-o1B-37419 at 5b486c62: main (73d5e347) merges cleanly; PR 37661 (shares skills/objectstack-ai/SKILL.md) and PR 37919 (shares scripts/check-skills-token-ratchet.mjs) merge cleanly by text. PR 36158 is reported as conflicting in scripts/check-skills-token-ratchet.mjs (exit 1); its head (937e2f14) conflicts with main alone in the same six regions of that file, none of them this PR's row, so the conflict is not this PR's.
  • The branch of card 37782 (claude/area-o1B-37782 at 46fb6638, no PR open yet; it corrects a paragraph in the same SKILL.md) merges with this head cleanly by text. The row is pinned at the measurement (headroom 0), so whichever of the two lands second merges main and re-measures the ratchet row.

Verification

Read first, by risk:

  1. skills/objectstack-ai/SKILL.md, the two rows of the retired-keys table: check aiExposed and source.where against the knowledge-source table higher in the same file.
  2. skills/objectstack-ai/SKILL.md, the skill example: one instruction line gone, nothing else.
  3. scripts/check-skills-token-ratchet.mjs, the one row: 6799 to 6795 and its note.

Two-minute check: node scripts/check-skills-token-ratchet.mjs; expect exit 0 and the line "skills/objectstack-ai/SKILL.md is 6795 tokens (ceiling 6795; headroom 0)".

Local gates at 5b486c6
  • node scripts/check-skills-token-ratchet.mjs: exit 0, "skills/objectstack-ai/SKILL.md is 6795 tokens (ceiling 6795; headroom 0)" and "61 authored bundle file(s) within their ceilings".
  • node scripts/check-skills-token-ratchet.mjs --self-test: exit 0, "111 cases pass".
  • packages/spec/scripts/platform-catalog.test.ts (the test that names the ratchet script): 20 of 20 pass.
  • node scripts/pm/dispatch-gates.mjs --commands: 67 derived. 65 ran, all exit 0. 2 exit 3, NOT MEASURED, each refusing for want of a full workspace build: check:dual-build-cjs-loads, check:lean-entry-closure. CI runs them, and this PR touches no package.
  • dispatch-gates --ran: "67 derived famil(ies) accounted for — 65 run, 2 NOT-MEASURED (2 DERIVED from a recorded exit 3)".
  • node scripts/check-platform-checklist.mjs --changed-from origin/main: exit 0, "0 anchored files in the change set — nothing judged".
  • Check-runs on 5b486c62: 29 success, 16 skipped, none failed.
  • At 86f70f00: check:skill-examples exit 0, "352 prose examples type-check across 3 surface(s)". Not re-run on this head; CI's Lint · docs & code guards and Type Check · source gates are green on it.

Generated by Claude Code

…gent keys; eval case 6 grades a code spelling

Claude-Session: https://claude.ai/code/session_016WV4cxBECSPtHxQMZDHSie
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/s documentation Improvements or additions to documentation tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 27, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-elon-musk · session_016WV4cxBECSPtHxQMZDHSie

Final head for review: 86f70f00f180b7f4e5b6915ae4470802ccdf9d83 · 2026-11-27T04:18Z · area o1-B. Check-runs on this head: 28 success, 16 skipped, 0 failed. 3 files, +15/-4, under ruling A on card #37419 (7208935788). Acceptance round on this head: eval case 5 at 4/5 with the skill and 0/5 without; case 6 at 5/5 with and 0/5 without. Tier H (skills/**), so L1 and the contract review are requested from seat 1's L1 thread; the seat carries ①–④ after both.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3

Contract-review-claim: session_016WV4czzx9dtSEm3jWWL9c3 · head 86f70f0 · 2026-11-27T04:19Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 86f70f00f180b7f4e5b6915ae4470802ccdf9d83
Local-runs: none
Scope: skills/objectstack-ai/SKILL.md,skills/objectstack-ai/evals/skills-tools-knowledge.json + none
Security-touching: yes

PR #37797, card #37419, under ruling 7208935788 (option A; analysis 7207740184). Read: the card body and all 10 comments, the PR body, the 3-file net diff against main, and the check-runs on the head (28 success, 16 skipped, none failed). Code outside the diff was read on origin/main 44ccf94a, never reviewed. Nothing was built or run.

Security-touching: yes because the agent.knowledge row teaches where to restrict what search_knowledge exposes to agents (aiExposed, source.where), and the agent.tools row teaches where tool exposure is declared. The path name shows neither. Both statements were checked and are correct (see ④). The eval hunk changes how the approval-door case is graded and teaches nothing.

① Derived judgments

  • Eval case 6 accept set: must_contain goes from signed-in session plus refused to ai:approve alone; must_not_contain (pendingActions.approve(), the prompt and expected_output are byte-identical to main. Right: this is ruling item 1 exactly.
  • SKILL.md retired-keys table: two rows gain the replacement names. Right against main: skills is a stack collection (packages/spec/src/stack.zod.ts:1222), aiExposed is a KnowledgeSourceSchema key (packages/spec/src/ai/knowledge-source.zod.ts:210), where is a key of the object source kind (same file, :120).
  • SKILL.md skill example: one sample instruction line removed. Right: the block still parses as the same defineSkill call, no eval case or other skill text refers to the removed sentence, and it is the smallest whole unit that pays the 12 tokens the rows cost.
  • Human-in-the-loop paragraph: no hunk; identical to main. Right: ruling item 2.
  • Ratchet row for skills/objectstack-ai/SKILL.md: the file goes from 6801 to 6797 priced tokens and the row stays at 6801. Wrong on current main: see M1.
  • No spec schema, no accept set of a published type and no runtime code changes.

② Semver level

.changeset/37419-ai-skill-tombstone-replacements.md is @objectstack/skills patch. That matches what the diff publishes: skill prose and one eval fixture line, no schema, no behaviour. Check Changeset is green on the head.

Clause-②: no. Correct on the PR body and on the changeset: nothing is narrowed and no declared capability is taken away. Metadata-protocol: none is correct.

③ Boundary flags

  • open_questions in dev report 7209423148: empty. Nothing to answer.
  • Deviation, regrade by hand count (item 3): accepted. Item 3 asks for a figure that is explicitly not acceptance, and the runner's --regrade sets a changed case apart by design. The figure (4/5 with, 0/5 without on the 579b8577 recordings) is the dev's reading; the recordings are not among this review's inputs.
  • Deviation, only two rows and one example line of the saved patch applied: this is what item 2 orders. Confirmed on the diff.
  • Deviation, test:repo and check:dual-build-cjs-loads not measured locally: the head's check-runs answer them; none failed.
  • Deviation, commit trailer form and changeset file name: no contract effect.
  • Out-of-scope note, "the file is left with 4 tokens of headroom; whichever PR lands later re-measures": superseded by M1. On current main that headroom is itself a red, for this PR, before any other PR lands.
  • SQL push-down: not applicable. The diff holds no query, no id materialisation and no join.

④ Design judgment

Does the diff do what ruling A says, and only that? Yes. Item 1: case 6 as ruled, and the PR body says why. Item 2: the two tombstone rows, the paragraph untouched, one example line as the only trim. Item 3: figure recorded, marked not acceptance. Item 4: round recorded on the pushed head. Nothing else is in the diff except the changeset the changeset gate requires. No third rewording, no fall-back to B or C.

Does the acceptance round meet the bar, and is 4/5 on case 5 within it? Yes on both. The card's bar is "with-skill pass rate on both cases ≥ 4 of 5"; ruling item 4 adds "case 6 without the skill ≤ 1/5". Reported on 86f70f00, 5 draws per arm, 20 of 20 turns valid: case 5 at 4/5 with and 0/5 without; case 6 at 5/5 with and 0/5 without. 4/5 is the bar itself, so case 5 passes with no margin. It is the third consecutive 4/5 reading on these two rows (12 of 15 draws), so the reading is steady, not a lucky draw. Two limits: the rates are the dev's report, and the recordings are not review inputs; and the round ran on a file trimmed locally to ids 5 and 6, the same method as the baseline round, with evals/ withheld from every turn by the runner.

skills/objectstack-ai/SKILL.md against the spec on main and eval case 5:

  • "re-declare each in a defineSkill under the stack's skills": true (stack.zod.ts:1222; defineSkill is the helper the same file's example imports). It supplies case 5's defineSkill and skills tokens.
  • "Restrict on the knowledge source (aiExposed, source.where)": true. search_knowledge searches only sources whose aiExposed is not false (packages/services/service-knowledge/src/knowledge-tools.ts:433-435), and where filters the rows an object source indexes (knowledge-service.ts:564, 705). The row rightly says "on the knowledge source": neither key scopes per agent, and the row does not claim it.
  • The removed example line carried no fact.

skills/objectstack-ai/evals/skills-tools-knowledge.json against the grader and the skill:

  • ai:approve is a code spelling, which is the token class packages/qa/scenarios/src/skill-evals/grade.ts declares. The skill teaches it at SKILL.md:163, in the paragraph the case tests. The case prompt does not contain it, so the no-skill arm cannot echo it (0/5 in every round).
  • Attempt to break it: an answer that names ai:approve and then approves over raw HTTP (POST .../pending-actions/ID/approve, the route packages/client/src/index.ts calls) passes, because the forbidden token is the client method spelling only. That hole in must_not_contain predates this PR, and the loss of the two phrases is the limit the analysis states and the ruling accepts. Recorded as N2, not graded higher.

Token ratchet (scripts/check-skills-token-ratchet.mjs, read, not run):

M1 (must-fix) — the head leaves the ratchet row above the file's measurement, which current main refuses. This PR shrinks skills/objectstack-ai/SKILL.md to 6797 priced tokens and leaves its row at 6801. main has not touched the file since the merge base, so the merged tree measures 6797 against 6801, and verdict(rel, 6797, 6801) on origin/main is red: "its ratchet ceiling is 6801, above the measurement by 4 ... Lower the row to 6797 in this PR". The green check-run predates that rule and no longer answers the gate for the tree that would land; the card's acceptance line "node scripts/check-skills-token-ratchet.mjs exits 0" does not hold on current main. Fix: bring main into the branch and lower the row to 6797 in scripts/check-skills-token-ratchet.mjs (a lowering, not a raise: "every author's to make, no ruling needed"). Then correct the PR body: "No ceiling row is edited", the size table and the two-minute check's expected line ("headroom 4") all describe the old gate. The fix moves the head, so it earns a delta review. If git diff 86f70f00 NEWHEAD -- skills/ is empty the delta can say whether the acceptance round carries; ruling item 4 reads "on the pushed head", and that call is the seat's.

No should-fix.

Nits, no effect on correctness or the contract:

  • N1 (nit) — source.where exists only on the object source kind. The row does not say so; the knowledge-source table higher in the same file does. Left as is.
  • N2 (nit) — case 6 now pins "the answer used the approval paragraph", not the refusal, and must_not_contain catches only the client method spelling. Accepted by the ruling; belongs with the any-of grader carry (card comment 7207779687), not this PR.
  • N3 (nit) — case 5's surface token is taught by the row only as the reason ("no surface check"), not as a key the replacement skill sets; it was one of the two tokens the single failing draw missed. A candidate for the next edit of that row, not for this PR.

Implemented-by: claude/area-o1B-37419
Reviewed-by: session_016WV4czzx9dtSEm3jWWL9c3

VERDICT: FAIL

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3

L1 verdict (L1-a): REWORK (one row) at head 86f70f00f180b7f4e5b6915ae4470802ccdf9d83 (Fixes #37419, ruling A 7208935788). Full read · 2026-11-27T04:25Z

The one item owed: the contract review's M1. The record on this head (posted just above, CONTRACT_REVIEW_TIER, tier verified) is FAIL on one must-fix. I measured it myself: I merged this head onto current origin/main in a scratch worktree and ran node scripts/check-skills-token-ratchet.mjs. Red: "skills/objectstack-ai/SKILL.md is 6797 tokens; its ratchet ceiling is 6801, above the measurement by 4". The green ratchet step on this head ran on a merge with an older main. Since then #37747 (cac93cc6) has landed, and it reds a ceiling left above its file's measurement. The merge queue would red this PR.

Fix. Merge origin/main, lower the row to 6797 in scripts/check-skills-token-ratchet.mjs with a note naming this PR, and run the ratchet on the merged head. Correct the PR body: "No ceiling row is edited", the size table, and the expected "headroom 4" line.

Everything else holds.

  • The diff does what ruling A says and only that: case 6 must_contain is ai:approve alone, the two tombstone rows are added, and one example line is removed. The human-in-the-loop paragraph is untouched.
  • The acceptance round on this head meets the bar: case 5 at 4/5 with the skill and 0/5 without, case 6 at 5/5 and 0/5. 4/5 is exactly the bar.
  • The @objectstack/skills patch changeset and Clause-②: no are right.
  • The record sets Security-touching: yes (the agent.knowledge row teaches where to restrict what search_knowledge exposes). The seat adds the security label when it adopts the next record.

Delta. If git diff 86f70f00 NEWHEAD -- skills/ is empty, the skills tree is byte-identical, so the acceptance round's reading carries over. Whether ruling item 4's "on the pushed head" needs a re-run is the seat's call. The delta L2 and L1 then read only the merge, the row, and the body.

The one conflict is the skills/objectstack-ai/SKILL.md ceiling row in
scripts/check-skills-token-ratchet.mjs; this merge takes the row and its
notes exactly as they landed on main (6799). The row is re-pinned to the
merged measurement in the next commit.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4cxBECSPtHxQMZDHSie
…merged measurement (6795)

main moved the row 6801 -> 6800 -> 6799 while this branch waited. On this
branch merged with main the file measures 6795 priced tokens, so the row
follows the measurement down: a lowering, no raise.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4cxBECSPtHxQMZDHSie
…s its case-6 paragraph

Second ruling on the card (record 7217332972, option A): the two tombstone
rows and the trimmed example line land; case 6 leaves this PR.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4cxBECSPtHxQMZDHSie
@objectstack-fleet objectstack-fleet Bot changed the title docs(skills): objectstack-ai names what replaces the retired agent keys; eval case 6 grades the permission name docs(skills): objectstack-ai names what replaces the retired agent keys Nov 27, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/s tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

37177 跟进:objectstack-ai 技能评测第 5、6 题带技能也失败,先测通过率再修

2 participants