Skip to content

docs(skills): name the publish-time findings, drop the fallbackLocale refusal workaround, name the MCP door tool set - #35673

Merged
os-zhuang merged 7 commits into
mainfrom
claude/issue-35245-skills-publish-traps
Nov 20, 2026
Merged

os-zhuang merged 7 commits into
mainfrom
claude/issue-35245-skills-publish-traps

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Sales · project thread

Fixes #35245
Part of #35569
Part of #35460

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:给 AI 写应用用的技能说明更新了五处:状态流转规则、审批分支、外部调用超时这几个老陷阱,现在直接告诉作者「发布时会被拦下,这样改」;勾选框「必填」的真实含义写清楚了;多语言说明去掉了一个已经不需要的绕法;智能体可用工具的清单补全了;按钮只写了显示位置却没绑对象时会被拦下,也写进了界面技能。
  • 为什么做:这些检查和修复都已经合并上线,技能说明还在讲旧的说法,照着写的作者会多做无用功,甚至把正确的写法改错。
  • 出错会怎样:只改说明文字和评测题,不影响运行;写错了再改一版即可,可直接撤回。
  • 要你做什么:这是对外发布的技能文字,合并前需要你审核批准。

What changes

Text only, in five published skills. No token ceiling moves; every addition is paid for inside its own file.

objectstack-data (card of this PR)

  • SKILL.md, state machine paragraph: a state_machine rule that runs on insert declares initialStates, or publish refuses it (state-machine-no-initial-states). An update-only machine (events: ['update']) needs none.
  • SKILL.md, yes/no flag bullet: "never required" is gone. On a boolean required refuses only null; an unchecked box is a value, so it never means "must be checked". A box that must be checked is a validations[] script rule, shown inline.
  • rules/validation.md, State Machine Validation: the same refusal and the same update-only exception, in one sentence.
  • evals/objects-fields-relationships.json: eval 10 (required checkbox) follows the new meaning and no longer fails an answer that keeps required: true; eval 11 names the refusal and the update-only exception.

objectstack-automation (card of this PR)

  • SKILL.md, node type list: a type no executor runs is refused when the flow is published to a running server (flow-node-type-no-executor).
  • SKILL.md, http row: with no positive timeoutMs the call has no timeout and raises the warning flow-http-timeout-missing.
  • references/state-machines-and-approvals.md: initialStates is no longer "optional, omit to keep the legacy behaviour"; it names the refusal and the update-only exception. The approve / reject bullet says the out-edges are labelled exactly approve and reject, and that publish refuses the flow otherwise (flow-approval-decision-unrouted).

objectstack-i18n (the refusal-label card)

  • SKILL.md: the warning that refusal messages fall back to fallbackLocale / defaultLocale is replaced by the behaviour on main: validation, delete-restriction and permission-denial messages name fields and objects in the request's language, and a request in sourceLocale reads the inline label. The fallbackLocale table row is untouched.
  • evals/bundles-locales-coverage.json, eval 11: the "also declare fallbackLocale: 'en'" reasoning and its must_contain entry are gone.

objectstack-ai (the tool-source card)

  • SKILL.md, resolution ladder, source 4: MCP_DOOR_TOOL_NAMES, every tool the MCP door registers (the MCP_FILE_TOOL_NAMES file pair included), resolved only for a skill MCP can offer (mcpPrompt not false); on a mcpPrompt: false skill a name only the door serves still warns, with its own hint. No eval or reference under skills/objectstack-ai/ quotes the list.

objectstack-ui (card of this PR)

  • rules/actions.md, placement paragraph: a standalone action that declares locations and no objectName is refused at validate and at publish (action-no-object-binding); the fix is objectName, or locations: [] for a headless action. Added on claim amendment 7024130793.

Changeset: @objectstack/skills patch.

Why

The rule is the check first and the prose second (ruling E1 = A on the epic card). The five publish-time rules, the narrowing of the state-machine rule to machines that run on insert, the refusal-label change and the door tool constant are all on main; the skills still taught the older reading.

Tests

Readings at head a42688d(第四轮修 L2 的 S1;第三轮读于 f97d0d1,合入 main 986a0f2 并还 4 token;第二轮读于 a7b6298;第一轮读于 d5fca85)

第四轮(L2 记录 7024839798 的 S1):skills/objectstack-ui/rules/actions.md「Opening in a New Tab」一节的示例 PrintA3Action 原先声明了 locations 却没有 objectName,正是同文件说会被 action-no-object-binding 拒绝的写法;现补 objectName: 'lead'。同文件删词抵付、含义不变:never a predicate and never a gate → never a predicate or a gate;"Action completed" 后多余的 toast;in list_item contexts. → in list_item.。token 3708 → 3708 / 3711,上限未动。提交 a42688d 叠在 f97d0d1 上,未合 main、未 rebase、未 force。在 a42688d 上 token 棘轮、check:skill-docs、check:skill-refs、check:skill-served-sections、check:skill-links、check:skill-identifier-liveness、check:nul-bytes、overlap-check 均 exit 0;check:skill-examples 本地前置未满足(exit 3),由 CI 判定。CI 在 a42688d:28 success、16 skipped、0 失败。os-dev-report 7024934065。

第三轮:合入 origin/main 986a0f2(合并提交 73cf6a9,无冲突,未 rebase、未 force)。合并后 skills/objectstack-ui/rules/actions.md 读数 3712,超过上限 3711,因为 main 对同一文件的修改先落地。本 PR 在自己那段里删词还了 4 个 token(that object's record surfaces 删 record,returns or assigns the new values 删 the new):3712 → 3708 / 3711,行数 258 → 258。在 f97d0d1 上,token 棘轮、check:skill-docs、check:skill-refs、check:skill-served-sections、check:skill-links、check:nul-bytes 和 overlap-check 均 exit 0;下方其余读数不变。CI 在 f97d0d1:全部 success 或 skipped。

Round two: skills/objectstack-ui/rules/actions.md 258 → 258 lines, 3333 → 3333 of 3333 tokens, paid with three parentheticals of the locations table and the wording of the same paragraph. The token ratchet, check:skill-docs, check:skill-refs, check:skill-served-sections, check:skill-links, check:skill-identifier-liveness, check:doc-authoring, check:nul-bytes and the overlap check were re-run at a7b6298, all exit 0; dispatch-gates --commands derives the same 51 commands.

Files to read first, by risk:

  1. skills/objectstack-data/SKILL.md, the yes/no flag bullet: it reverses earlier advice ("never required").
  2. skills/objectstack-data/evals/objects-fields-relationships.json, eval 10: two must_not_contain entries are removed.
  3. skills/objectstack-automation/SKILL.md, node tables: seven rows lose a few words to pay for two new clauses.

Line readings, whole file before → after: ai SKILL.md 462 → 464; automation SKILL.md 478 → 478; state-machines-and-approvals.md 388 → 390; data SKILL.md 476 → 476; rules/validation.md 331 → 329; data eval 387 → 386; i18n SKILL.md 523 → 522; i18n eval 155 → 155. All SKILL.md files together: 4853 → 4854.

Token readings (node scripts/check-skills-token-ratchet.mjs, exit 0), tokens / ceiling: ai SKILL.md 6693 → 6737 / 6801; automation SKILL.md 7045 → 7045 / 7045; state-machines-and-approvals.md 5933 → 5934 / 5936; data SKILL.md 6709 → 6710 / 6710; rules/validation.md 2761 → 2758 / 2761; i18n SKILL.md 6332 → 6323 / 6333. Ratcheted total 195676 → 195710; whole bundle 274972 → 275033.

Removed to pay: three states and the default severity of the state-machine JSON example in rules/validation.md; three asides in state-machines-and-approvals.md; a few words in seven node-table rows of automation SKILL.md; two example state names and some wording in data SKILL.md.

Local gates: 51 commands derived by node scripts/pm/dispatch-gates.mjs --commands; 49 ran and exited 0, among them check:skill-docs, check:skill-refs, check:skill-served-sections, check:doc-formula-expressions (after building its closure), check:skill-links, check:skill-identifier-liveness, check:doc-authoring, check:nul-bytes, check:published-files. NOT MEASURED locally: check:dual-build-cjs-loads and check:lean-entry-closure (each exits 3, prerequisite: a whole-workspace build this diff does not touch; CI builds it). check:pm-skill-ratchet exit 0. node scripts/pm/overlap-check.mjs: VERDICT clean.

No served *.generated.ts changes: the one served skill file is generated from the ask skill, which this PR does not touch, and check:skill-refs reports its nine generated files in sync.

Acceptance notes

  • flow-node-type-no-executor is judged only by a running server's publish, not by the CLI, so the hint that there is no query_record node stays.
  • The row of the requires table that says an absent approvals capability leaves "no executor for the node type" is left as it is: a flow loaded from files at boot does not pass the publish gate.
  • The door tool list on main holds 21 names; the skill names the constant and states no count.
  • One marked example block (os:check) is edited: PrintA3Action in skills/objectstack-ui/rules/actions.md ("Opening in a New Tab") gains objectName: 'lead' (L2 S1, commit a42688d). No other os:check block changes.

Verification

Two-minute check: node scripts/check-skills-token-ratchet.mjs exits 0 and prints the six rows above; git grep -n "fallbackLocale: 'en'" -- skills/objectstack-i18n shows only the config example in SKILL.md.

Landing: skills/** is a governed surface; this PR stays a draft until its review record exists.

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic. (No spec change.)
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; pnpm lint is CI's run.
  • 4. One branch off an up-to-date main, one pull request; three cards folded by the seat's fold rule.
  • 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset.
  • 6. packages/spec not touched.
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English.
  • The Before Submitting list in CONTRIBUTING.md is done.

🤖 Generated with Claude Code

https://claude.ai/code/session_01L6bhgUZrkMKgGrXXe8zPGq

@github-actions github-actions Bot added size/m 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 19, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUZrkMKgGrXXe8zPGq

Final head · 2026-11-19T23:06Z · f97d0d16afaf8326121666b6c0aaab4a1aae94c5
skills 合并 PR:Fixes #35245,Part of #35569、Part of #35460(合并后两张 Part of 卡由区线程手动关闭)。本轮合入 main 986a0f2(合并提交 73cf6a9),因 main 先改了 skills/objectstack-ui/rules/actions.md,在本 PR 自己那段删词还了 4 token:3712 → 3708 / 3711。os-dev-report 是 7024337782。此 head 上的 check-runs 全部 success 或 skipped(Lint & Repo Gates、TypeScript Type Check、Test Core、Test UI、PR-body guards、Governed Surface Queue Guard、Check Changeset 等)。PR 正文的读数段已改到本 head。
skills/** 属 governed Tier H:落地需 os-zhuang 的 APPROVED 审查,再由席位落地。
Owed:L1-a 在本 head 的 L1,以及隔离的 CONTRACT_REVIEW_TIER L2(brief 紧随本条发出)。


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUZrkMKgGrXXe8zPGq

Contract review brief — PR #35673 @ f97d0d16afaf8326121666b6c0aaab4a1aae94c5 (card #35245)

You review at CONTRACT_REVIEW_TIER. Render ONE ## Contract review record on this head — its shape is
node scripts/pm/record-recognisers.mjs --template --paths skills/objectstack-ai/SKILL.md skills/objectstack-automation/SKILL.md skills/objectstack-automation/references/state-machines-and-approvals.md skills/objectstack-data/SKILL.md skills/objectstack-data/evals/objects-fields-relationships.json skills/objectstack-data/rules/validation.md skills/objectstack-i18n/SKILL.md skills/objectstack-i18n/evals/bundles-locales-coverage.json skills/objectstack-ui/rules/actions.md — with a PASS or FAIL verdict, and post it as ONE comment
on the PR or its card.

Inputs — these and nothing else:
· card #35245 and the two Part of cards #35569 and #35460: each body and EVERY comment (rulings and earlier records included)
· PR #35673: its body, its file list, and the net diff against main at f97d0d16afaf8326121666b6c0aaab4a1aae94c5
· the check-runs on f97d0d16afaf8326121666b6c0aaab4a1aae94c5: their conclusions ARE the gate verdicts
⛔ Not the dispatch order, ⛔ not the dispatching seat's own conclusions — this brief is adversarial by design.

Scope — the paths reviewFace returns as hits on this PR's file list: skills/objectstack-ai/SKILL.md, skills/objectstack-automation/SKILL.md, skills/objectstack-automation/references/state-machines-and-approvals.md, skills/objectstack-data/SKILL.md, skills/objectstack-data/evals/objects-fields-relationships.json, skills/objectstack-data/rules/validation.md, skills/objectstack-i18n/SKILL.md, skills/objectstack-i18n/evals/bundles-locales-coverage.json, skills/objectstack-ui/rules/actions.md;
plus every file IN THIS DIFF that directly implements or enforces them — the gate that enforces a rule, the code
a jsdoc or schema line describes, the validator a skill teaches — reviewed for agreement with the contract.
Widen it freely, ⛔ never below hits; the record's Scope: line names the implementing files apart from hits.
The rest of the diff (tests, unrelated modules, lockfiles, generated output, changesets) is the lane seat's
ACCEPT at TIER_DEFAULT, exactly as a standalone PR of those files.
④ judges the hits files and those implementing files ONLY:
lockfiles, generated output, changesets and prose elsewhere in the PR are not reviewed;
code outside the diff is READ to judge them, never reviewed.

Security — a hits path sits on the low-risk skills arm: when the change teaches security, auth or permission
behaviour the path name doesn't show, the record says so and the seat adopting the record adds the security label.
The record says so on its Security-touching: line, and the arm lands on no alone: write no ONLY when no changed
hunk teaches permission, sharing, credential, token, authentication or other security behaviour, else yes.

⛔ READ-ONLY. No worktree, no checkout, no build, no test run, no gate re-run, no ablation: the check-runs
on the head already answered every derived gate family, and a local run costs more than it returns.
If ONE probe is unavoidable, the record's Local-runs: line says probe — REASON; otherwise none.
Scratch space is /tmp/claude-0/-home-user/9e6bbf1c-0c22-5a93-a4cb-2186a977268c/scratchpad/pr-35673/ alone; nothing there you did not write this round is read.

Judge, in the record's own sections:
① Derived judgments — every accept-set and public-surface change the diff implies, each named right or wrong.
② Semver level — the changeset (or skip-changeset) matches what the diff publishes, and the Clause-②: line.
③ Boundary flags — every dev flag and every open_questions entry answered, or escalated.
On every face, SQL push-down: a new id materialisation or in-app join where SQL could push down is a
finding unless a reason is given (AGENTS.md, Prime Directive 5: SQL first).
④ Design judgment — for EVERY hits file: does the change hold against the code it cites and the
scenario it is accepted against? A skill file against the card's eval prompt and the spec it teaches
on main; a schema file against the ruling or ADR it implements and its first consumer; an ADR
against its first consumer and its execution plan. For EVERY implementing file in the diff: does the
code agree with the contract, sentence by sentence? Read the cited code in the live tree, and try to
break the design.
Grade each finding must-fix, should-fix or nit — a nit has no effect on correctness or the contract.
A must-fix is a FAIL; a must-fix or should-fix earns a delta review of its fix; nits alone end the round.
Spell a must-fix or should-fix with its id and grade, S1 (should-fix) — …, and a clean round as
No must-fix, no should-fix.: the queue guard reads a graded finding as OPEN on this head and
refuses the record; the delta record names those it closes by id alone, S1: closed.
A nit is fixed only on the prose faces, or left as an accepted deviation or a follow-up card: a fix
anywhere else moves the head, and this record no longer covers it.
⛔ Judge the tree, never the PR body's account of it.
Sign Implemented-by: with the dev's branch and Reviewed-by: with your session id — the value is the FIRST
thing after each colon.


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUZrkMKgGrXXe8zPGq

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: f97d0d16afaf8326121666b6c0aaab4a1aae94c5
Local-runs: none
Scope: skills/objectstack-ai/SKILL.md, skills/objectstack-automation/SKILL.md, skills/objectstack-automation/references/state-machines-and-approvals.md, skills/objectstack-data/SKILL.md, skills/objectstack-data/evals/objects-fields-relationships.json, skills/objectstack-data/rules/validation.md, skills/objectstack-i18n/SKILL.md, skills/objectstack-i18n/evals/bundles-locales-coverage.json, skills/objectstack-ui/rules/actions.md + none
Security-touching: yes

Inputs read: cards #35245, #35569 and #35460 with every comment; the PR body, its ten-file list and the net diff against main (merge base 986a0f20); the check-runs on this head. The diff holds no implementing file: nine skill text or eval files and one changeset. The changeset is the lane seat's remainder. Code on origin/main (03865ae9) was read to judge the text, never reviewed.

① Derived judgments

  • Accept-set: unchanged. No schema, rule, validator or constant is in the diff, so nothing an author may write is added or refused by this PR. Right.
  • Public surface: the published text of five skills in @objectstack/skills changes; no export, no served *.generated.ts, no token ceiling moves. Right.
  • Eval fixtures: eval 10 of the data skill loses two must_not_contain entries (an answer keeping required: true on a boolean no longer fails), and eval 11 of the i18n skill loses the fallbackLocale: 'en' must_contain entry. Both loosen an assertion to follow behaviour on main and a recorded ruling (skills: teach the six publish-time traps that #34776 turns into checks #35245 comment 6998116920; card skills: objectstack-i18n still says refusal messages fall back to defaultLocale labels; #35351 serves them in sourceLocale #35569 item 2). Right.
  • Gate verdicts (the check-runs on this head): every concluded run is success or skipped, none failed. Among them Lint & Repo Gates, Lint · docs & code guards, Lint · repo & tooling gates, Type Check · workspace, Test Core, Check Changeset, PR-body guards and Governed Surface Queue Guard are success.

② Semver level

.changeset/35245-skills-publish-time-findings.md declares @objectstack/skills: patch. The diff publishes wording only, in one package, so patch is the right level. Check Changeset concluded success.

Clause-②: no — the PR body and the changeset both carry Clause-②: no, and that is correct: the checks the text names were merged earlier by other PRs; this diff narrows nothing.

③ Boundary flags

  • Open question 1 of dev report 7024103427 (no text for action-no-object-binding in the first surface): answered A by claim amendment 7024130793; the clause is in skills/objectstack-ui/rules/actions.md on this head. Closed, with finding S1 below on the same file.
  • Open question 2 of the same report (keep eval 10's two required: true entries removed): answered A by the same amendment. I agree: ruling 6998116920 says required on a boolean is legitimate, and the engine's required arm refuses only a missing, null or empty value (isEmptyForRequired, packages/objectql/src/validation/record-validator.ts).
  • Open question of dev report 7024203128 (who patches the PR body): answered in fact, the body on this head carries the ui-skill item.
  • Measured contradictions in the dev report: the door set holds 21 names on main, not 19, and the text states no count; flow-node-type-no-executor is judged only by a running server, and the text says "at a server's publish". Both handled correctly in the text.
  • Deviations (model-free commit trailers, moved base, unsquashed WIP commits): process only, no contract effect.
  • Security line: yes, because two changed hunks restate security-adjacent guidance while paying tokens: the http row of the automation skill (where a credential may not be written) and the placement paragraph of the ui actions rule (the write capability a script body needs). The i18n hunk also names permission-denial messages. I compared old and new wording in each: the meaning is unchanged. The seat adopting this record adds the security label.
  • SQL push-down: not applicable, the diff has no code, no query and no id materialisation.

④ Design judgment

Each hits file was read at this head against the code it teaches on main.

  • skills/objectstack-ai/SKILL.md — holds. MCP_DOOR_TOOL_NAMES is in the same file as source 2 (packages/spec/src/system/constants/platform-tool-names.ts), contains query_records, run_action and both file tools, and validate-ai-tool-references.ts adds it only when mcpPrompt is not false; on a mcpPrompt: false skill a door-only name still warns with its own message and hint. Card skills(objectstack-ai): name the MCP door tool set (MCP_DOOR_TOOL_NAMES) as the fourth tool source once #35036 lands #35460 asked for exactly this and for no count.
  • skills/objectstack-automation/SKILL.md — holds. flow-node-type-no-executor judges only with a sealed vocabulary, which only the runtime publish gate hands in. flow-http-timeout-missing is a warning. The seven shortened rows lose no fact.
  • skills/objectstack-automation/references/state-machines-and-approvals.md — holds. state-machine-no-initial-states is an error on an active machine whose events are absent or include insert; events: ['update'] is exempt (validate-inert-object-declarations.ts). The false "omit to keep the legacy behavior" line is gone. flow-approval-decision-unrouted matches the labels approve and reject exactly and is an error. The file's own examples label their edges approve / reject and declare initialStates.
  • skills/objectstack-data/SKILL.md — holds. The boolean bullet matches the ruling and the engine. The inline rule parses against ScriptValidationSchema (snake_case name, type: 'script', a CEL envelope condition, message), and its predicate is the failure condition, as the schema requires. The state-machine paragraph matches the rule.
  • skills/objectstack-data/rules/validation.md — holds. The shortened JSON example is still a valid machine with initialStates; dropping severity leaves the schema default error; no later text refers to the removed states.
  • skills/objectstack-data/evals/objects-fields-relationships.json — holds. Eval 10 follows the ruling; eval 11's prompt is an insert-running machine, so initialStates: ['draft'] stays the right answer.
  • skills/objectstack-i18n/SKILL.md and skills/objectstack-i18n/evals/bundles-locales-coverage.json — hold. Refusal labels are resolved with the request's locale and the declared sourceLocale as the authored language (packages/objectql/src/engine-validation-messages.ts, and the denial path in packages/plugins/plugin-security/src/security-plugin-authz-middleware.ts). No other text in skills/objectstack-i18n/ teaches fallbackLocale as a refusal workaround; the remaining mentions are the config example, the table row and eval 1.
  • skills/objectstack-ui/rules/actions.md — the new clause is correct against validate-action-object-binding.ts (an error, on the three CLI commands and on the runtime door for an action write; both fixes are the rule's own hint), but the file now contradicts itself:

S1 (should-fix) — skills/objectstack-ui/rules/actions.md, section "Opening in a New Tab", the checked example PrintA3Action (name: 'crm_print_a3'): it declares locations: ['list_toolbar'] and no objectName. The file's first line says actions are registered under defineStack({ actions: [...] }), and the paragraph this PR rewrites says that locations without objectName is refused at validate and publish (action-no-object-binding). An author who copies that example gets the refusal the same file describes. It is the only example in the file with a non-empty locations and no objectName. Fix: give the example an objectName (the neighbouring examples use lead). The file sits at 3708 of 3711 tokens, so the added line is paid for in the same file. The example predates this PR, but card #35245's scope is the skills text that teaches each trap, and this example teaches it by showing it.

Nits (no effect on correctness or the contract):

  • N1 (nit) — state-machines-and-approvals.md, "On approve / on reject": "both branches would run" is exact for a misspelled pair; with a single out-edge the unclaimed decision takes that one edge. The rule's own wording is "a decision no edge claims runs every out-edge".
  • N2 (nit) — automation SKILL.md, http row: "set timeoutMs, or it has no timeout and warns" does not say that a durable: true node or a node-level timeoutMs also silences the warning. The same row already teaches durable: true.
  • N3 (nit) — automation SKILL.md, "a type none runs": "none" has no clear antecedent; "a type no executor runs" is the rule's phrase.

No must-fix. One should-fix: S1. It earns a delta review of its fix.

Implemented-by: claude/issue-35245-skills-publish-traps
Reviewed-by: session_01L6bhgUZrkMKgGrXXe8zPGq (isolated L2 sub-agent)

VERDICT: PASS


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgTcFanGhTvqS1V2Q4U

维护者速读

席位核对 — ACCEPT (L1-a) · repo:objectstack#1 · head f97d0d16afaf8326121666b6c0aaab4a1aae94c5 · 2026-11-19T23:12Z

  • Shape — draft, base main, 6 commits including one main merge, 10 files, +83/−63. Merge-base 986a0f20. The merge 73cf6a94 shows 0 @@@ hunks in git diff-tree --cc, so it is clean, and the last commit pays the 4 tokens that main's earlier edit to rules/actions.md cost.

  • Governance — check-governed-merges.mjs --pr 35673: GOVERNED, Tier H, skills/** ×9. No contract-review record names this head yet, so the low-risk skills arm (pm: land low-risk governed PRs on the seat review (Tier S arm for skills wording and docs), per the 2026-11-14 delegation ruling #33501) is not yet established. The size is 146 lines.

  • Card relation and declarations

  • Every new claim matches the code at this head

    • state-machine-no-initial-states and the update-only exception match runsOnInsert in validate-inert-object-declarations.ts. An absent events runs on insert, and ['update'] or [] never does, so "events: ['update'] needs none" is exact.
    • flow-approval-decision-unrouted is an error from scanApprovalDecisionEdges. A missing or respelled approve/reject label runs every out-edge, which the skill words as "both branches would run". The fault-edge and no-out-edge exclusions are not contradicted.
    • flow-http-timeout-missing is a warning that fires only when neither config.timeoutMs nor the node timeoutMs is positive. "set timeoutMs, or it has no timeout and warns" is exact. The durable: true exemption is the same row's next clause.
    • flow-node-type-no-executor is judged at a running server's publish (protocol-authoring-gate.ts and engine.ts), as the acceptance note says. The query_record hint stays, rightly.
    • action-no-object-binding is an error for a standalone action that has locations and no objectName. Its hint names objectName, or locations: [] for a headless action, which matches the skill word for word.
    • MCP_DOOR_TOOL_NAMES, MCP_FILE_TOOL_NAMES and PLATFORM_TOOL_FAMILY_PREFIXES all live in platform-tool-names.ts, so 「same file」 holds. The file pair is a member of the door list, as its docblock says.
    • Boolean required. It reverses earlier advice, which the PR body flags first. Scope addition 6998116920 carries the maintainer's ruling on lint: six publish-time checks for metadata that passes the schema and does nothing at run time #34776 (「本 PR 去掉这条检查」: teach the meaning instead). The engine agrees: isEmptyForRequired in @objectstack/core refuses isMissing values and an empty multi-value array, so false passes required. The consent example is a script rule whose condition is true while the box is not true, which is the validation-rule shape. Dropping eval 10's two must_not_contain entries follows from that.
    • i18n follows fix(i18n)!: refusal labels follow the declared sourceLocale, as /meta serves them #35351, as card skills: objectstack-i18n still says refusal messages fall back to defaultLocale labels; #35351 serves them in sourceLocale #35569 states. fallbackLocale keeps its table row, and the only fallbackLocale: 'en' left in the skill is the config example at SKILL.md:37, which I confirmed.
  • The cuts that pay for it remove asides and example states only. Every cut I read loses no rule:

    • the state-machine JSON drops 3 states and the default severity;
    • three asides in state-machines-and-approvals.md;
    • words in seven node rows;
    • three locations-table parentheticals.

    rules/validation.md keeps [] as the terminal mark.

  • Readings — at this head I ran check-skills-token-ratchet.mjs: exit 0, 59 authored files within their ceilings. The dev's gate list (check:skill-docs, -refs, -served-sections, -links, -identifier-liveness, doc-authoring) is in the PR body. dual-build-cjs-loads and lean-entry-closure were not measured locally, on a build prerequisite, and CI covers them. No marked os:check block was edited.

  • Gates — on this head: 30 success, 18 skipped, 0 failure. Mergeable clean.

  • Landing terms


Generated by Claude Code

The PrintA3Action example declared locations: ['list_toolbar'] with no
objectName, the shape the placement paragraph of the same file says is
refused (action-no-object-binding). Add objectName: 'lead' and pay the
line back in the same file; the file stays at 3708 of 3711 tokens.

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgUZrkMKgGrXXe8zPGq
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUZrkMKgGrXXe8zPGq
os-dev-report

{
  "issue": 35245,
  "status": "done",
  "branch": "claude/issue-35245-skills-publish-traps",
  "pr": "https://github.com/objectstack-ai/objectstack/pull/35673",
  "session": "session_01L6bhgUZrkMKgGrXXe8zPGq",
  "premise_still_valid": true,
  "summary": "Patch round for L2 finding S1 of contract-review record 7024839798, nothing else. In skills/objectstack-ui/rules/actions.md the PrintA3Action example (crm_print_a3, locations list_toolbar) now carries `objectName: 'lead'`, so it no longer shows the shape the same file says is refused (action-no-object-binding). The added line is paid in the same file by deleting words, meaning unchanged: `and never` became `or` in `never a predicate or a gate` (disabledReason bullet), the trailing `toast` after `\"Action completed\"` (the bullet already opens with `toast copy`), and `contexts` after `list_item`. Tokens 3708 before, 3708 after, ceiling 3711 untouched. One commit a42688df on top of f97d0d16; no merge of main, no rebase, no force. Nits N1 to N3, the changeset and the PR body are untouched.",
  "tests": "Text only; no package test owed, no ablation (docs).",
  "gates": "At a42688df. Exit 0 each, exit code captured before any pipe: node scripts/check-skills-token-ratchet.mjs (actions.md 3708 / 3711, headroom 3; 59 authored files within their ceilings), check:skill-docs (Skill docs in sync), check:skill-refs (10 generated files in sync), check:skill-served-sections (24 served sections), check:skill-links (269 links resolve), check:skill-identifier-liveness (OK, 545 citations), check:nul-bytes (OK). overlap-check: VERDICT clean exit 0 against origin/main 03865ae9 and pull heads 35649 and 35129. NOT MEASURED: check:skill-examples, the gate that type-checks the edited os:check block; reason: exit 3 PREREQUISITE NOT MET twice (first no packages/spec/dist; after building spec under the verify lock, no packages/client-react/dist), and I did not build the client closure for a gate outside the ordered list. The added key is the same `objectName` on the same `defineAction` import as four other checked examples in this file. CI owns that verdict; check-runs on the new head are in_progress.",
  "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
  "mcp_calls": "0",
  "api_writes": "1 this round — this comment (POST issues/35673/comments through post-stamped). One git push.",
  "open_questions": [],
  "security_findings": "none",
  "out_of_scope_findings": [
    "carrier: none · noted, not filed (read-only inference, not reproduced): the same example's target interpolates `${record.id}` while the spec on main documents a target's holes as `${param.X}` and `${ctx.X}` (packages/spec/src/ui/action.zod.ts, the Interpolation note on `target`), and `list_toolbar` has no current record. packages/spec/src/ui/action.test.ts parses the same string, so the schema accepts it; whether the renderer fills it was not measured. Predates this PR and is outside S1."
  ]
}

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUZrkMKgGrXXe8zPGq

Contract review brief — PR #35673 @ a42688dfee4d969ed3a959b78c93826a8ac97d30 (card #35245)

You review at CONTRACT_REVIEW_TIER. Render ONE ## Contract review record on this head — its shape is
node scripts/pm/record-recognisers.mjs --template --paths skills/objectstack-ai/SKILL.md skills/objectstack-automation/SKILL.md skills/objectstack-automation/references/state-machines-and-approvals.md skills/objectstack-data/SKILL.md skills/objectstack-data/evals/objects-fields-relationships.json skills/objectstack-data/rules/validation.md skills/objectstack-i18n/SKILL.md skills/objectstack-i18n/evals/bundles-locales-coverage.json skills/objectstack-ui/rules/actions.md — with a PASS or FAIL verdict, and post it as ONE comment
on the PR or its card.

Delta round. The prior record is 7024839798 at f97d0d16afaf8326121666b6c0aaab4a1aae94c5 (PASS, S1 should-fix, nits N1–N3). The fix is the one commit f97d0d16..a42688df, os-dev-report 7024934065 on this PR (its out_of_scope_findings entry is a dev flag for ③). Judge that commit, close S1 by id or keep it open, and render a whole record on this head. The seat ruled N1–N3 accepted deviations, no card (seat thread, 23:13Z): the record states so.

Inputs — these and nothing else:
· card #35245 and the two Part of cards #35569 and #35460: each body and EVERY comment (rulings and earlier records included)
· PR #35673: its body, its file list, and the net diff against main at a42688dfee4d969ed3a959b78c93826a8ac97d30
· the check-runs on a42688dfee4d969ed3a959b78c93826a8ac97d30: their conclusions ARE the gate verdicts
⛔ Not the dispatch order, ⛔ not the dispatching seat's own conclusions — this brief is adversarial by design.

Scope — the paths reviewFace returns as hits on this PR's file list: skills/objectstack-ai/SKILL.md, skills/objectstack-automation/SKILL.md, skills/objectstack-automation/references/state-machines-and-approvals.md, skills/objectstack-data/SKILL.md, skills/objectstack-data/evals/objects-fields-relationships.json, skills/objectstack-data/rules/validation.md, skills/objectstack-i18n/SKILL.md, skills/objectstack-i18n/evals/bundles-locales-coverage.json, skills/objectstack-ui/rules/actions.md;
plus every file IN THIS DIFF that directly implements or enforces them — the gate that enforces a rule, the code
a jsdoc or schema line describes, the validator a skill teaches — reviewed for agreement with the contract.
Widen it freely, ⛔ never below hits; the record's Scope: line names the implementing files apart from hits.
The rest of the diff (tests, unrelated modules, lockfiles, generated output, changesets) is the lane seat's
ACCEPT at TIER_DEFAULT, exactly as a standalone PR of those files.
④ judges the hits files and those implementing files ONLY:
lockfiles, generated output, changesets and prose elsewhere in the PR are not reviewed;
code outside the diff is READ to judge them, never reviewed.

Security — a hits path sits on the low-risk skills arm: when the change teaches security, auth or permission
behaviour the path name doesn't show, the record says so and the seat adopting the record adds the security label.
The record says so on its Security-touching: line, and the arm lands on no alone: write no ONLY when no changed
hunk teaches permission, sharing, credential, token, authentication or other security behaviour, else yes.

⛔ READ-ONLY. No worktree, no checkout, no build, no test run, no gate re-run, no ablation: the check-runs
on the head already answered every derived gate family, and a local run costs more than it returns.
If ONE probe is unavoidable, the record's Local-runs: line says probe — REASON; otherwise none.
Scratch space is /tmp/claude-0/-home-user/9e6bbf1c-0c22-5a93-a4cb-2186a977268c/scratchpad/pr-35673d/ alone; nothing there you did not write this round is read.

Judge, in the record's own sections:
① Derived judgments — every accept-set and public-surface change the diff implies, each named right or wrong.
② Semver level — the changeset (or skip-changeset) matches what the diff publishes, and the Clause-②: line.
③ Boundary flags — every dev flag and every open_questions entry answered, or escalated.
On every face, SQL push-down: a new id materialisation or in-app join where SQL could push down is a
finding unless a reason is given (AGENTS.md, Prime Directive 5: SQL first).
④ Design judgment — for EVERY hits file: does the change hold against the code it cites and the
scenario it is accepted against? A skill file against the card's eval prompt and the spec it teaches
on main; a schema file against the ruling or ADR it implements and its first consumer; an ADR
against its first consumer and its execution plan. For EVERY implementing file in the diff: does the
code agree with the contract, sentence by sentence? Read the cited code in the live tree, and try to
break the design.
Grade each finding must-fix, should-fix or nit — a nit has no effect on correctness or the contract.
A must-fix is a FAIL; a must-fix or should-fix earns a delta review of its fix; nits alone end the round.
Spell a must-fix or should-fix with its id and grade, S1 (should-fix) — …, and a clean round as
No must-fix, no should-fix.: the queue guard reads a graded finding as OPEN on this head and
refuses the record; the delta record names those it closes by id alone, S1: closed.
A nit is fixed only on the prose faces, or left as an accepted deviation or a follow-up card: a fix
anywhere else moves the head, and this record no longer covers it.
⛔ Judge the tree, never the PR body's account of it.
Sign Implemented-by: with the dev's branch and Reviewed-by: with your session id — the value is the FIRST
thing after each colon.


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUZrkMKgGrXXe8zPGq

Final head · 2026-11-19T23:39Z · a42688dfee4d969ed3a959b78c93826a8ac97d30(取代 f97d0d1 的公告 7024738028)
本轮只修 L2 记录 7024839798 的 S1:skills/objectstack-ui/rules/actions.md 的示例 PrintA3Action 补上 objectName: 'lead',同文件删词抵付,token 3708 → 3708 / 3711。os-dev-report 7024934065。此 head 上 check-runs 28 success、16 skipped、0 失败,mergeable clean;PR 正文读数段已改到本 head。N1–N3 由席位定为接受的偏差,不立卡。链头卡 #35245 已加 security 标签(L2 记录 Security-touching: yes),低风险档不适用。
Owed:L1-a 在本 head 的 delta L1,以及隔离的 CONTRACT_REVIEW_TIER delta L2(brief 7025343393)。Tier H:落地需 os-zhuang 的 APPROVED,再由席位落地。


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgTcFanGhTvqS1V2Q4U

维护者速读

  • 用户能看到什么变化:界面技能里「新标签页打开」那个示例补上了 objectName: 'lead',作者照抄时就不会被同一文件里说的那条检查拦下。同一文件里删了几处多余的词来抵付,意思不变。
  • 出错会怎样:只改说明文字,不影响运行。
  • 要你做什么:这单属于 Tier H,而且 skills: teach the six publish-time traps that #34776 turns into checks #35245 带 security 标签,所以要等增量 L2 PASS,再由 os-zhuang 给出 APPROVED,之后由席位落地。

席位核对 — ACCEPT (L1-a, delta) · repo:objectstack#1 · head a42688dfee4d969ed3a959b78c93826a8ac97d30 · 2026-11-19T23:41Z

  • Scope of this read — the delta f97d0d16..a42688df only, against my ACCEPT 7024844927. It is one commit, one file (skills/objectstack-ui/rules/actions.md), with no main merge, rebase or force.

  • L2 S1 (7024839798) is fixed as named. The os:check example PrintA3Action (locations: ['list_toolbar']) gains objectName: 'lead', the object the file's other three examples bind (lines 53, 79, 99). Every locations example in the file now has an objectName, so none of them is the shape action-no-object-binding refuses. objectName is a key defineAction takes, so the checked block still type-checks, and CI's example check is green on this head.

  • The three cuts that pay for it lose no rule:

    • 「never a predicate or a gate」 for 「never a predicate and never a gate」;
    • the trailing 「toast」 after 「"Action completed"」, which the clause already names as toast copy;
    • 「in list_item」 for 「in list_item contexts」.

    At this head I ran the token ratchet: exit 0, actions.md at 3708 of 3711.

  • The PR body needs one fix before landing. Acceptance notes line 88 still says 「No marked example block (os:check) is edited」. This commit edits one, so the line should say it, or name that block. It is not blocking.

  • Gates — at reading time: 29 success, 18 skipped, 0 failure, and Check Changeset in progress after the body edit, so mergeable reads unstable. This ACCEPT holds when that run finishes green.

  • Landing terms — Tier H. skills: teach the six publish-time traps that #34776 turns into checks #35245 carries security, so the low-risk arm does not apply. The seat lands after the delta L2 PASS on this head (brief 7025343393) and os-zhuang's APPROVED. Then it closes skills: objectstack-i18n still says refusal messages fall back to defaultLocale labels; #35351 serves them in sourceLocale #35569 and skills(objectstack-ai): name the MCP door tool set (MCP_DOOR_TOOL_NAMES) as the fourth tool source once #35036 lands #35460 by hand and removes their pm:dispatched.


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUZrkMKgGrXXe8zPGq

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: a42688dfee4d969ed3a959b78c93826a8ac97d30
Local-runs: none
Scope: skills/objectstack-ai/SKILL.md, skills/objectstack-automation/SKILL.md, skills/objectstack-automation/references/state-machines-and-approvals.md, skills/objectstack-data/SKILL.md, skills/objectstack-data/evals/objects-fields-relationships.json, skills/objectstack-data/rules/validation.md, skills/objectstack-i18n/SKILL.md, skills/objectstack-i18n/evals/bundles-locales-coverage.json, skills/objectstack-ui/rules/actions.md + none
Security-touching: yes

Delta round on record 7024839798 (head f97d0d16, PASS with S1 and nits N1 to N3). The fix is the one commit f97d0d16..a42688df, dev report 7024934065.

Inputs read: cards #35245, #35569 and #35460 with every comment; the PR body, its ten-file list and the net diff against main (merge base 986a0f20); the fix diff f97d0d16..a42688df; the check-runs on this head. The diff holds no implementing file: nine skill text or eval files and one changeset. The changeset is the lane seat's remainder. Code on origin/main (03865ae9) was read to judge the text, never reviewed.

S1: closed

① Derived judgments

  • The fix commit touches one file, skills/objectstack-ui/rules/actions.md, in four places: one added line in a checked example and three word deletions. The other eight hits files and the changeset are byte-identical to f97d0d16.
  • Accept-set: unchanged. No schema, rule, validator or constant is in the diff, so nothing an author may write is added or refused by this PR. Right.
  • Public surface: the published text of five skills in @objectstack/skills changes; no export, no served *.generated.ts, no token ceiling moves (no ratchet file is in the file list). Right.
  • Eval fixtures: eval 10 of the data skill loses two must_not_contain entries, and eval 11 of the i18n skill loses the fallbackLocale: 'en' must_contain entry. Both loosen an assertion to follow behaviour on main and a recorded ruling (skills: teach the six publish-time traps that #34776 turns into checks #35245 comment 6998116920; card skills: objectstack-i18n still says refusal messages fall back to defaultLocale labels; #35351 serves them in sourceLocale #35569 item 2). Right.
  • Gate verdicts (the check-runs on this head): 48 runs, all concluded; 30 success, 18 skipped, none failed, none pending. Among the successes: Lint & Repo Gates, Lint · docs & code guards, Lint · repo & tooling gates, Type Check · workspace, Type Check · consumer gates, Test Core, Check Changeset (both runs), PR-body guards and Governed Surface Queue Guard.
  • The fix edits a block marked os:check. The dev could not run check:skill-examples locally and left it to CI. That step runs in the job Type Check · consumer gates (.github/workflows/lint.yml), which concluded success on this head. Answered by the check-run, not by a local run.

② Semver level

.changeset/35245-skills-publish-time-findings.md declares @objectstack/skills: patch. The diff publishes wording only, in one package, so patch is the right level. The fix commit does not touch the changeset. Check Changeset concluded success.

Clause-②: no — the PR body and the changeset both carry Clause-②: no, and that is correct: the checks the text names were merged earlier by other PRs; this diff narrows nothing.

③ Boundary flags

  • Dev report 7024934065, open_questions: empty. Nothing to answer.
  • Dev report 7024934065, out_of_scope_findings (the ${record.id} hole in the target of the crm_print_a3 example, on a list_toolbar action): the observation is sound as a reading, and it is NOT in scope for this PR.
    • What I read on main: the interpolation note on target in packages/spec/src/ui/action.zod.ts names two hole families, ${param.X} and ${ctx.X}, and the same file writes the record id as ${ctx.recordId}. The preflight bullet of this skill file uses ${ctx.recordId} too. The locations table of this file describes list_toolbar as a bulk surface over selected rows. packages/spec/src/ui/action.test.ts parses the exact string '/print/a3?id=${record.id}', so the schema accepts it.
    • Why it is out of scope: the target line is not changed by any commit of this PR. It is none of the five rule ids of card skills: teach the six publish-time traps that #34776 turns into checks #35245, and neither skills: objectstack-i18n still says refusal messages fall back to defaultLocale labels; #35351 serves them in sourceLocale #35569 nor skills(objectstack-ai): name the MCP door tool set (MCP_DOOR_TOOL_NAMES) as the fourth tool source once #35036 lands #35460 covers it. No check on main refuses the string, so the card's principle (the check first, the prose second) has no check to point the text at. Whether the hole is filled at the click is decided by the renderer, which is not in this diff and was not measured by the dev or by me.
    • One fact the next reader should have: before the fix this example bound to no object and rendered nowhere; with objectName: 'lead' it now renders on the lead list toolbar. So the question of what ${record.id} resolves to on a toolbar is now reachable by an author who copies the example. That raises the value of the follow-up; it does not reopen S1, which was the object binding only.
    • Escalated to the seat: file one follow-up card (domain:skills). It should first measure the renderer's target scope, then either rewrite the hole to the documented spelling or move the example to a record surface, and look at the spec test fixture that carries the same string. Not graded on this head.
  • Earlier dev flags (open questions 1 and 2 of report 7024103427, the open question of report 7024203128, the measured contradictions and the process deviations): answered in record 7024839798. I re-read the answers against the cards and the tree; they stand unchanged on this head.
  • Nits N1, N2 and N3 of record 7024839798: accepted deviations by seat ruling, no card (seat thread, 23:13Z, as the brief states). The three texts are unchanged on this head, as they must be: a fix outside the prose faces would have moved the head.
  • Note for the seat, not graded: the PR body's Acceptance notes still say "No marked example block (os:check) is edited." On this head one is: the fix adds a key inside the checked PrintA3Action block. The body's own fourth-round reading says so further up. The seat patches that sentence; it does not move the head.
  • Security line: yes, unchanged from the prior record. Two hunks of the net diff restate security-adjacent guidance while paying tokens (the http row of the automation skill, on where a credential may not be written; the placement paragraph of the ui actions rule, on the write capability a script body needs), and the i18n hunk names permission-denial messages. The fix commit adds one more such hunk: the disabledReason bullet, which says the hook or permission still refuses. In each I compared old and new wording: the meaning is unchanged. The seat adopting this record adds the security label.
  • SQL push-down: not applicable, the diff has no code, no query and no id materialisation.

④ Design judgment

The fix commit, judged against packages/lint/src/validate-action-object-binding.ts on main:

  • skills/objectstack-ui/rules/actions.md, section "Opening in a New Tab", example PrintA3Action: it now declares objectName: 'lead' beside locations: ['list_toolbar']. The rule skips any standalone action whose objectName is a non-empty string, so the example no longer has the shape the file's first paragraph says is refused. I listed every locations line of the file at this head: six examples declare a non-empty locations, and all six now declare an objectName. The file no longer contradicts itself. This is the fix the prior record asked for, and lead is the object the neighbouring examples use.
  • The three deletions that pay for the added line keep their meaning. "never a predicate or a gate" says the same as "never a predicate and never a gate". The successMessage bullet opens with "toast copy", so dropping the trailing word "toast" loses nothing. "pre-fills from the selected row in list_item" names the same location value the table defines.
  • I tried to break it: a shape with objectName and list_toolbar is already taught by the checked bulk example earlier in the same file, so the fix adds no new pattern; no other rule cited by this file is triggered by adding the key; the token ceiling is not moved and the ratchet gate is green on this head.

The rest of the hits files are byte-identical to the head the prior record judged, and main has not moved since (03865ae9). I re-read the net diff and spot-checked the cited code again rather than carry the earlier judgments on trust:

  • skills/objectstack-ai/SKILL.md — holds. MCP_DOOR_TOOL_NAMES sits in packages/spec/src/system/constants/platform-tool-names.ts beside MCP_FILE_TOOL_NAMES, and validate-ai-tool-references.ts adds it only when mcpPrompt is not false, with a dedicated message for a mcpPrompt: false skill. The text states no count, as card skills(objectstack-ai): name the MCP door tool set (MCP_DOOR_TOOL_NAMES) as the fourth tool source once #35036 lands #35460's measured contradiction requires.
  • skills/objectstack-automation/SKILL.md — holds. flow-node-type-no-executor is an error; flow-http-timeout-missing is a warning. The seven shortened rows lose no fact.
  • skills/objectstack-automation/references/state-machines-and-approvals.md — holds. state-machine-no-initial-states skips a machine whose events leave out insert (runsOnInsert, validate-inert-object-declarations.ts) and fires on an absent or empty initialStates. The false "omit to keep the legacy behavior" line is gone.
  • skills/objectstack-data/SKILL.md, skills/objectstack-data/rules/validation.md and skills/objectstack-data/evals/objects-fields-relationships.json — hold. The boolean bullet and eval 10 follow ruling 6998116920; the state-machine sentences and eval 11 match the rule and scope note 7018552906.
  • skills/objectstack-i18n/SKILL.md and skills/objectstack-i18n/evals/bundles-locales-coverage.json — hold. The validation-message reader (packages/objectql/src/engine-validation-messages.ts) and the denial path (packages/plugins/plugin-security/src/security-plugin-authz-middleware.ts) read the declared sourceLocale as the authored language, as card skills: objectstack-i18n still says refusal messages fall back to defaultLocale labels; #35351 serves them in sourceLocale #35569 says.

No must-fix, no should-fix.

Implemented-by: claude/issue-35245-skills-publish-traps
Reviewed-by: session_01L6bhgUZrkMKgGrXXe8zPGq (isolated L2 sub-agent)

VERDICT: PASS


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

L2 adoption · 2026-11-19T23:45Z · The seat adopts area b1-C's isolated delta record 7025422414 for head a42688df, served at CONTRACT_REVIEW_TIER and posted with --tier-evidence. It is the delta for first-round record 7024839798. The verdict is PASS: S1 is closed, N1–N3 stand as accepted deviations, and there are no new graded findings. The record's Scope: line covers all nine reviewFace hits. Security-touching: yes, and the chain-head card #35245 carries the security label, so the low-risk skills arm does not apply. L1 ACCEPT on this head is 7025381030.

check-governed-merges --pr 35673 reads GOVERNED, Tier H, 153 changed lines. @os-zhuang, please review head a42688df and approve if you agree. The seat lands it afterwards (ruling C).

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 20, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 20, 2026 22:28
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 20, 2026
Merged via the queue into main with commit cf2e321 Nov 20, 2026
58 checks passed
@os-zhuang
os-zhuang deleted the claude/issue-35245-skills-publish-traps branch November 20, 2026 23:03
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…o 1 s before merged_at as the merge's (objectstack-ai#38896)

<!-- claude-projects-attribution: {"github_login":"os-support-ai"} -->
_Requested by **Yibo Wang** · [project
thread](https://claude.ai/code/project/chan_01BVUyyPie8gHwoPM18iABwB?thread=cmsg_01BVUyyPie8gHwoPM18iABwB1hPSUXVWWaX4kvGfBzBT7q)_

Fixes objectstack-ai#38863
Refs objectstack-ai#34178
Clause-②: no
Metadata-protocol: none

## 维护者速读
- 用户无感:每周治理合并审计不再把维护者本人经合并队列落地的改动,误报成席位违规。
-
为治理审计这一车队工具消除误报:合并队列在合并前一秒记下“移出队列”,旧读法把它当成最新的队列事件,读不出是谁把改动放进队列;现在只对队列机器人在合并前一秒之内的那一次移出放行,一秒是十二条误报上全部实测到的间隔。
- 出错只会让审计报告漏报或继续误报,不影响任何合并;可直接撤回本次改动恢复旧读法。
- 要你做的:这是须由维护者批准的治理面改动,批准一次即可。

## What changes

`scripts/pm/check-governed-merges.mjs` only (Tier H: an always-H
instrument).

- New `timelineAsQueued(events, landed, { enqueueEvent, dequeueEvent })`
feeds the enqueue leg of `readLandingClearance`. It keeps the events
strictly before `merged_at`, as before. It also drops the merge's own
terminal `removed_from_merge_queue`, but only when all three hold: it is
the **last** queue event the cut keeps, its actor is
`github-merge-queue[bot]` (`MERGE_QUEUE_BOT`), and it is at most
`MERGE_QUEUE_REMOVAL_WINDOW_MS` before `merged_at`. The guard's
`enqueuerFromTimeline` then reads the actor of the
`added_to_merge_queue` before it. The guard is not edited.
- `MERGE_QUEUE_REMOVAL_WINDOW_MS = 1000`. Its docblock cites the
readings: 0 s on objectstack-ai#33555, objectstack-ai#33632 and objectstack-ai#33616, and 1 s on all twelve BREACH
rows of objectstack-ai#34178 (table below). GitHub stamps whole seconds, so 1 s is the
narrowest window the readings support. No gap over 1 s was measured.
- Unchanged readings: a removal by any other actor, a removal further
out (an ejection the queue made first), and an earlier removal followed
by a re-add (the newest queue event is then the add). If the guard's
event names stop being strings, nothing is dropped and the leg stays
undetermined. It never clears on that path.
- Both callers of the landing half pick this up: the low-risk arm leg
and the `.claude/**` split leg.
- The two docblocks (the `readArmLanding` header and the self-test
fixture comment) now state the measured window instead of "shares the
merge's instant".

## Tests

Self-test pins, under `node scripts/pm/check-governed-merges.mjs
--self-test` (1017 assertions, exit 0 on `062ea49f4`):
- objectstack-ai#33603 battery, 71 → 77:
  - the one-second shape clears on the enqueue leg;
- the equal-instant control still clears, and a fleet-bot enqueue on the
one-second shape does not;
  - a removal 2 s or 60 s out stays undetermined;
  - a removal inside the window by another actor stays undetermined;
- after an earlier ejection, the re-add's enqueuer decides (the objectstack-ai#33355 /
objectstack-ai#33394 shape);
  - the pure reader, including a queue-bot removal that an add follows.
- objectstack-ai#35612 split battery, 35 → 36: the one-second shape on the split leg,
with another actor's removal and the fleet bot as controls.

<details><summary>Ablation (fix committed first; every mutation via
scripts/ablation-replace.mjs, restored to the HEAD blob)</summary>

- Enqueue leg back to the plain cut: red on 3 pins (the one-second
shape, the re-add after an ejection, the split leg's one-second shape).
The controls stay green, as expected, because the old reading was
already undetermined for them.
- Actor binding removed: red on the another-actor pin and on the split
pin. A first attempt was a no-op: the tool refused because the
replacement text already existed elsewhere. It was re-run with a unique
replacement.
- Window widened to 60 s: red on the outside-the-window pin and the
pure-reader pin.
- Last-event binding removed: green at first, which exposed a gap. Added
the pin for a queue-bot removal that an add follows (commit
`062ea49f4`). Re-ablated: red.

</details>

## Re-run on objectstack-ai#34178's rows

Enqueue leg, read on each PR's **live** timeline and `merged_at` through
the real guard, before (strict cut) and after (`timelineAsQueued`):

| PR | queue events (UTC) | gap | before | after |
|---|---|---|---|---|
| objectstack-ai#37072 | add os-zhuang 19:16:14 · rem bot 19:34:41 | 1 s |
undetermined | authorized (os-zhuang) |
| objectstack-ai#36775 | add os-zhuang 22:00:38 · rem bot 22:21:05 | 1 s |
undetermined | authorized (os-zhuang) |
| objectstack-ai#36067 | add os-zhuang 17:33:58 · rem bot 18:06:13 | 1 s |
undetermined | authorized (os-zhuang) |
| objectstack-ai#35673 | add os-zhuang 22:28:18 · rem bot 23:03:52 | 1 s |
undetermined | authorized (os-zhuang) |
| objectstack-ai#35709 | add os-zhuang 04:52:39 · rem bot 05:21:36 | 1 s |
undetermined | authorized (os-zhuang) |
| objectstack-ai#33355 | add · rem 09:52:16 · re-add os-zhuang 11:13:10 · rem bot
11:50:11 | 1 s | undetermined | authorized (os-zhuang) |
| objectstack-ai#33577 | add os-zhuang 02:51:26 · rem bot 04:44:21 | 1 s |
undetermined | authorized (os-zhuang) |
| objectstack-ai#33589 | add os-zhuang 02:50:20 · rem bot 04:44:21 | 1 s |
undetermined | authorized (os-zhuang) |
| objectstack-ai#33394 | add · rem 21:48:10 · re-add os-zhuang 22:52:01 · rem bot
00:44:32 | 1 s | undetermined | authorized (os-zhuang) |
| objectstack-ai#32841 | add os-zhuang 01:28:50 · rem bot 02:13:54 | 1 s |
undetermined | authorized (os-zhuang) |
| objectstack-ai#32839 | add os-zhuang 23:39:46 · rem bot 00:33:14 | 1 s |
undetermined | authorized (os-zhuang) |
| objectstack-ai#32313 | add os-zhuang 23:44:14 · rem bot 00:13:08 | 1 s |
undetermined | authorized (os-zhuang) |
| control objectstack-ai#33555 | removal == merged_at | 0 s | authorized (os-zhuang) |
authorized (os-zhuang) |
| control objectstack-ai#33632 | removal == merged_at | 0 s | authorized (os-zhuang) |
authorized (os-zhuang) |
| control objectstack-ai#33616 | enqueued by objectstack-fleet[bot] | 0 s |
unauthorized | unauthorized |

End-to-end sweep, the real CLI on both trees with `--since
2026-11-24T19:30:00Z --repos objectstack --json`. Both runs complete,
228 entries each:
- objectstack-ai#37072 goes from `breach` (stage) on `197e3ff3b` to `cleared` by
enqueue (os-zhuang) on `062ea49f4`.
- One more entry moved, outside the 12: **objectstack-ai#38233**, from `pass` to
`cleared` by enqueue. Its timeline has the same shape: added by
os-zhuang 09:48:54, removed by the bot 10:20:32, merged 10:20:33. It was
listed as a seat landing on a record, but it was the maintainer's
enqueue.
- No other entry changed state.

NOT MEASURED: the end-to-end sweep row for the other eleven PRs. A
window back to 2026-11-10 timed out at 570 s, and a 7-day window already
takes about 8 minutes per tree, so this container's 10-minute foreground
limit cannot fit it. Their enqueue-leg reading is in the table above.
The weekly audit job will read them on its next run.

## Smaller finding: recommendation for the seat to route

Recommendation: **enforce the record template where the record is
written. Do not widen the reader.** This PR changes no recogniser
(`record-recognisers.mjs` is outside the claimed surface).

- Evidence: the template the reviewer is handed already spells both
forms the 8 rows missed (`scripts/pm/record-recognisers.mjs` lines
2555–2559 on `197e3ff3b`): a clean round is written `No must-fix, no
should-fix.`, and the delta record names what it closes as `S1: closed`.
The rows wrote `must-fix 0 · should-fix 0`, `S1 closed.` and `F1
(must-fix on SHA): fixed.`, which are off-template.
- Reason: the audit reads records through the queue guard's own reader,
so the audit and the queue agree on what a record says. Widening the
reader alone would make them disagree. Widening it for both changes what
the queue accepts, a contract we own on both ends (AGENTS.md Prime
Directive objectstack-ai#12: reject off-spec input at authoring, never accept a
dialect). A check when the record is written tells the reviewer at once,
while the record can still be fixed.
- After this PR, those 12 rows clear on the enqueue leg, so the phrasing
gap no longer decides them. It matters only for seat landings, where the
queue already refuses the same phrasing.

## Acceptance notes

- `origin/main` moved one commit past the base (`3c617a28e`,
`packages/spec` and `ui/` only, nothing under `scripts/pm/`). It was not
merged in, because the diff does not overlap it.
- For the live sweep, this container's shallow clone was deepened with
`git fetch --shallow-since=2026-11-02 origin main` (additive).

## Verification

Read first:
1. `timelineAsQueued` and `MERGE_QUEUE_REMOVAL_WINDOW_MS` (the risk
hunk: the three conditions that drop an event).
2. The one-line change in `readLandingClearance`.
3. The `WINDOW` pins in the objectstack-ai#33603 battery.

Two-minute check: run `node scripts/pm/check-governed-merges.mjs
--self-test`. Expected: `✓ check-governed-merges --self-test: 1017
assertions`, exit 0.

<details><summary>Local gates on 062ea49</summary>

- The derived set is `node scripts/pm/dispatch-gates.mjs --commands
--repo objectstack-ai/objectstack`, 63 commands. Reconciled with
`--ran`: `63 derived, 61 run, 2 NOT-MEASURED, 0 UNRUN`.
- NOT MEASURED, both left to CI:
- `pnpm check:i18n-coverage`: exit 3, PREREQUISITE NOT MET (no CLI or
examples build in this worktree).
- `pnpm check:pm-dispatch-gates`: killed by timeout at 200 s and again
at 280 s on the shared box, so it never reached a verdict.
- `node scripts/check-self-test-workflow-commands.mjs` first failed when
its spawn timed out (`spawnSync node ETIMEDOUT`) while the box was
loaded. Re-run alone: exit 0.
- Every other command: exit 0.
- No changeset: `scripts/pm/**` is not published (`skip-changeset`).

</details>

---
_Generated by [Claude
Code](https://claude.ai/code/session_01WGufzfWWgrLkABDvbRjhAk)_

---------

Co-authored-by: Claude <noreply@anthropic.com>
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 pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue size/m 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: teach the six publish-time traps that #34776 turns into checks

3 participants