Skip to content

docs(skills): objectstack-ai says a delete_record the human named, with one record matching, is already approved - #34538

Merged
os-zhuang merged 1 commit into
mainfrom
claude/project-thread-v6r1gl
Nov 17, 2026
Merged

os-zhuang merged 1 commit into
mainfrom
claude/project-thread-v6r1gl

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Steve · project thread

Fixes #34456
Clause-②: no
Metadata-protocol: none

维护者速读

  • 改了什么:objectstack-ai 技能的 MCP 工具表里,删除一行的说法改成和工具本身一致:用户点名要删的记录、且只匹配到一条时,这句话本身就是确认,AI 直接带 confirm: true 删,不再二次询问;名字匹配多条或没指明哪条时,先列出候选、问清再删。
  • 为什么改:fix(mcp): delete_record treats a request naming one matching record as the approval #34453 已把这条规则写进 delete_record 的工具说明和服务端技能,但仓库里的技能文件还写着“每次删除都先问人”,读技能的 AI 会对用户已点名的删除再问一遍。
  • 风险与回滚:只改技能文档里一行,服务端仍拒绝不带 confirm: true 的删除,行为不变。回滚即还原本 PR。
  • 先看:skills/objectstack-ai/SKILL.md MCP 工具表 create_record, update_record, delete_record 那一行。
  • 两分钟验证:对照 packages/mcp/src/mcp-http-tools.ts 的 DELETE_NAMED_RECORD_IS_APPROVAL 与 DELETE_AMBIGUOUS_ASKS_FIRST,两句意思一致。
  • 需要你做的:skills/** 是受管面,需要 GOVERNED_APPROVERS 批准后才转 ready。

What changes

skills/objectstack-ai/SKILL.md, MCP tools table, the create_record, update_record, delete_record row. "ask the human first, then retry" becomes the rule the delete_record tool description carries since #34453 (DELETE_NAMED_RECORD_IS_APPROVAL and DELETE_AMBIGUOUS_ASKS_FIRST in packages/mcp/src/mcp-http-tools.ts): a request naming the record to delete, with exactly one record matching, is the human's approval, so the agent sends confirm: true on that call without asking again; when the name matches more than one record, or the request does not identify one, the agent lists the candidates, asks which one, and sends confirm: true only after the answer. The server-side refusal of a delete_record without confirm: true is unchanged.

Changeset: .changeset/34456-skill-delete-record-named-approval.md, @objectstack/skills patch (skills/** ships in it).

Line and token readings (os-dev.md, skills/**)

measure before (origin/main) after
skills/objectstack-ai/SKILL.md lines 434 434
skills/objectstack-ai/** lines (whole skill) 551 551
skills/objectstack-ai/SKILL.md tokens (check-skills-token-ratchet, ceiling 6801, not raised) 6068 6142

Gates

node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack at b9388ff9 derived 48 families; all 48 ran and exited 0 after a full pnpm build (lock VERDICT command-exit 0), among them check-skills-token-ratchet, check:skill-links, check:skill-identifier-liveness, check:skill-compatibility, check:role-word and check-empty-changeset. --ran reconciliation: 48 derived, 48 run, 0 NOT-MEASURED.

No test change: prose only.

🤖 Generated with Claude Code

https://claude.ai/code/session_01ADHkmSYVw1sqCsaHSJS9JC

…th one record matching, is already approved

The MCP tools table row for create_record, update_record and delete_record
said "ask the human first, then retry" for every delete. The delete_record
tool description now says a request naming exactly one matching record is
the human's approval; the row states that rule and the ambiguous-name case.

Claude-Session: https://claude.ai/code/session_01ADHkmSYVw1sqCsaHSJS9JC
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 17, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmSYVw1sqCsaHSJS9JC

Final head and L1 · 2026-11-17T00:45Z
Final head: b9388ff9 (card #34456, area o2-B). CI at this head: every check completed success or skipped by path filter (Lint & Repo Gates, TypeScript Type Check, Test Core, Check Changeset, PR-body guards, Governed Surface Queue Guard among them); none red.

L1: ACCEPT (self-review)

Self-review under l1-review-checklist.md: 12 changed lines (+11 / -1), text only, Clause-②: no, Metadata-protocol: none, no contract surface.

  • Form: draft to main, first line Fixes #34456; the card closes on merge as intended. No other open card number sits beside a closing keyword.
  • Scope: two files, both on the claimed surface (skills/objectstack-ai/SKILL.md one row, root changeset). No content/docs/releases/ edit.
  • Row checked sentence by sentence against DELETE_NAMED_RECORD_IS_APPROVAL and DELETE_AMBIGUOUS_ASKS_FIRST in packages/mcp/src/mcp-http-tools.ts on main: named record with exactly one match is approval, send confirm: true without asking again; several matches or no single record → list candidates, ask, confirm after the answer. Same rule, no added claim.
  • Changeset checked sentence by sentence: @objectstack/skills patch (packages/skills, published, ships the skills); "the server still refuses a delete_record without confirm: true" holds (packages/mcp/src/skill-md.ts, the served skill's delete_record entry).
  • Readings: SKILL.md 434 → 434 lines; tokens 6068 → 6142 under the unchanged 6801 ceiling; derived gates 48/48 exit 0, 0 NOT-MEASURED (--ran).
  • Governed: check-governed-merges.mjs --pr 34538 → GOVERNED, Tier H (skills/**). The area does not land it; it goes to the seat.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

l2-review#4 · os-steve · session_01ADHkmP44onN8RMzsPMqjRq

Contract-review-claim: session_01ADHkmP44onN8RMzsPMqjRq · head b9388ff · 2026-11-17T00:47Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

l2-review#4 · os-steve · session_01ADHkmP44onN8RMzsPMqjRq

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: b9388ff949df20e61c92467b4ec2b7a47ea0cadf
Local-runs: none
Scope: skills/objectstack-ai/SKILL.md + none
Security-touching: yes

① Derived judgments

  • The net diff against main is two files: one row of the MCP tools table in skills/objectstack-ai/SKILL.md (1 line replaced) and one new changeset. No schema, no runtime code, no gate, no test changes.
  • Accept-set: unchanged, right. The row still states that delete_record is refused with ACTION_CONFIRMATION_REQUIRED (428) unless it sends confirm: true; that matches the gate on main (recordDeleteConfirmationRefusal and isDeleteConfirmed in packages/mcp/src/mcp-http-tools.ts), which this PR does not touch.
  • Public surface: the only published change is the taught behaviour of an agent reading the skill, from "ask the human first, then retry" on every single-record delete to the named-record rule. Right: it is the rule main already serves on the tool description, the confirm member description, the refusal message and the served skill since PR 34453, and the card is the follow-up that PR declared owed.
  • Security-touching reads yes: the changed hunk teaches when an agent may send the human-approval confirmation on a destructive delete without asking again, which is approval behaviour for a guarded operation and not skill wording alone. The path name does not show this, so the adopting seat adds the security label and the PR stays off the low-risk arm. This is not a finding against the change.
  • Check-runs on this head: 44 runs, all completed, each success or skipped, none failed, none pending. Check Changeset, Governed Surface Queue Guard, PR-body guards, the Lint and Type Check families, Build Core and Test Core are success; the skipped runs are the UI, docs, dogfood-shard, opt-in and queue-verdict jobs the path filter or the non-queued state leaves out.

② Semver level

  • Changeset .changeset/34456-skill-delete-record-named-approval.md declares a patch of the skills package. Right: the diff publishes prose in a shipped skill file and nothing else; no key, tool, code or status is added or removed.
  • Clause-②: no on the PR body and in the changeset, matching the claim on the card. Right: nothing a consumer could previously author or send is now refused, and nothing is narrowed.
  • Metadata-protocol: none is right: no metadata shape is touched.

③ Boundary flags

  • Dev flags: none raised in the PR body or the claim. open_questions: none.
  • Claim file surface (the one table row plus the root changeset directory) is held exactly; no breach.
  • The body's line and token readings report 434 to 434 lines for the file, 551 to 551 for the skill, and 6068 to 6142 tokens under an unraised ceiling of 6801; the lint families that carry the token ratchet are green on this head.
  • SQL push-down: not applicable, the diff holds no query, id materialisation or join.

④ Design judgment

skills/objectstack-ai/SKILL.md, read against DELETE_NAMED_RECORD_IS_APPROVAL and DELETE_AMBIGUOUS_ASKS_FIRST in packages/mcp/src/mcp-http-tools.ts on main, their interpolation in packages/mcp/src/skill-md.ts, and the card's scenario (an agent reading the skill asks a second time for a delete the human already named):

  • Sentence one, the refusal without confirm: true at 428: agrees with the gate, which refuses before the bridge on anything other than the boolean true.
  • Sentence two, a request naming the record with exactly one match is the approval, send confirm: true on that call without asking again: agrees with the landed constant in both conditions (the human names the record; exactly one record matches) and in the instruction.
  • Sentence three, more than one match or no identified record means list the candidates, ask which one, confirm only after the answer: agrees with the landed constant in both triggers and in all three steps.
  • Attempts to break it: a bulk delete does not fall under the new sentence, because the next row keeps delete_records on its preview-then-approve rule, as the landed code comment requires; a truthy non-boolean confirmation is not taught; the rule is conditioned on a human request, so it grants nothing to a caller acting for no person; the row no longer contradicts the tool description an agent sees beside it, which was the card's defect.
  • The scenario holds: an agent following the new row deletes a uniquely named record in one confirmed call and asks only on ambiguity, which is the maintainer ruling quoted on card 34340 and carried by PR 34453.
  • Nit, left as an accepted deviation: the row compresses the landed wording ("their approval" for "the human's approval of that delete", and it omits "do not delete yet"). The meaning is the same and the table row stays shorter.

No must-fix, no should-fix.

Implemented-by: claude/project-thread-v6r1gl
Reviewed-by: session_01ADHkmP44onN8RMzsPMqjRq

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmQ2SN4K183oqAvUajA

Seat record · 2026-11-17T00:52Z · Head-sha: b9388ff

维护者速读

  • 改了什么:objectstack-ai 技能的 MCP 工具表里,删除那一行改成和工具本身一致。用户点名要删某条记录、且只匹配到一条时,这句话本身就是确认,AI 直接带 confirm: true 删,不再追问。名字匹配到多条或没指明哪条时,先列出候选、问清楚再删。
  • 为什么改:fix(mcp): delete_record treats a request naming one matching record as the approval #34453 已经把这条规则写进 delete_record 的工具说明(DELETE_NAMED_RECORD_IS_APPROVAL / DELETE_AMBIGUOUS_ASKS_FIRST),但技能文件还写着「每次删除都先问人」。读技能的 AI 会对用户已经点名的删除再问一遍。
  • 风险与回滚:只改技能文本一行,外加 changeset。服务端仍然拒绝不带 confirm: true 的删除,这一点不变。它改的是 AI 什么时候自己发出确认,所以契约复审标了 Security-touching: yes,本 PR 加了 security 标签。回滚即 revert。
  • 先看:skills/objectstack-ai/SKILL.md MCP 工具表里 create_record, update_record, delete_record 那一行。
  • 两分钟验证:对照 packages/mcp/src/mcp-http-tools.ts 第 1257–1262 行的两条常量,新句和它们逐句同义。
  • 需要你做的:审批这个受治理 PR(Tier H,skills/**)。L1 ACCEPT 6934098003 和契约复审 PASS 6934211225 都在同一 head b9388ff9。批准后由席位落地。

席位意见:同意合并。新句逐字对齐 main 上已经发布的工具说明,没有发明新规则;删除依旧要 confirm: true。点名单条即视为确认是 #34453 已裁定、已发布的行为,技能只是跟上。

席位核对

  1. 形态:一卡一 PR,2 个文件,+11/−1(skills/objectstack-ai/SKILL.md 一行、一个 changeset);Clause-②: no,Metadata-protocol: none。
  2. 前提实测:在 origin/main 上读到 DELETE_NAMED_RECORD_IS_APPROVAL、DELETE_AMBIGUOUS_ASKS_FIRST(packages/mcp/src/mcp-http-tools.ts:1257–1262),新句两半与之同义。
  3. 门禁 check-runs:head b9388ff9 上 44 条,28 绿、16 跳、0 红。check-governed-merges 读作 GOVERNED Tier H(skills/**);低风险 skills 臂不成立,因为契约复审记录写的是 Security-touching: yes。
  4. 接受的偏差:无。契约复审没有 must-fix 或 should-fix。
  5. 范围外去向:无。Skills-docs: 不适用,本 PR 就是 fix(mcp): delete_record treats a request naming one matching record as the approval #34453 的技能跟进。
  6. 落地条款:Tier H。授权批准在案后,席位翻 ready,经合并队列落地。

@objectstack-fleet objectstack-fleet Bot added pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue security labels Nov 17, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 17, 2026 02:06
@os-zhuang
os-zhuang enabled auto-merge November 17, 2026 02:06
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 17, 2026
Merged via the queue into main with commit 5a50524 Nov 17, 2026
54 of 55 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-v6r1gl branch November 17, 2026 02:49
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmQ2SN4K183oqAvUajA

Merged as 5a505241ef, written at 2026-11-17T03:13Z. The approval is on record and the PR landed through the queue. pm:awaiting-merge comes off in this stroke.

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 security 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.

skills/objectstack-ai: delete_record treats a request naming one matching record as the approval (follow-up of #34340)

3 participants