Repository navigation
docs(skills): data hooks and actions teach the multi-reason refusal throw - #37619
Conversation
…hrow Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgUpnvPnJ1hR74pUrVj
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA Contract reviewServed-tier: PR #37619 for card #37407. Read: the card body and its four comments, the PR body and file list, the net diff against ① Derived judgments
② Semver level
③ Boundary flagsDev flags, from the PR body's "Small calls made here":
Card notes (comment 7181230894): N1 is answered by the
The security line reads ④ Design judgment
The card's three rules (every listed reason declared, both forms on one throw a fault, the entry's own
S1 (should-fix) — N1 (nit) — N2 (nit) — N3 (nit) — No must-fix. S1 is open on this head and earns a delta review of its fix. Implemented-by: VERDICT: PASS |
… two hook-page claims Contract review on #37407: actions.md now writes the list throw's shape and its closing line; data-hooks.md says the HTTP doors (not every door) answer details.refusals, and names a non-list reasons as a 500 too. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgUpnvPnJ1hR74pUrVj
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA Contract reviewServed-tier: DELTA review from PR #37619 for card #37407. Read: the card body and its four comments, the PR body and file list, the earlier record, the net diff against ① Derived judgments
② Semver level
③ Boundary flagsDev flags, from the PR body's "Small calls made here":
The card's two notes (comment 7181230894) stay answered: the
The security line reads ④ Design judgment
S1: closed The sentence now reads: For several reasons throw
The shape can no longer be mistaken for the catalogue's declared
The rows of the earlier record's table for the sentences this delta did not move were re-read against Nits of the earlier record:
New on this head: N4 (nit) — N5 (nit) — No must-fix, no should-fix. Nits only; they end the round. Implemented-by: VERDICT: PASS |
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA 席位核对 — ACCEPT · head 19b5b42 · card #37407 · area s2-ux-T · 2026-11-26T17:00ZL1 checklist
Tier: H. Landing: hand-off to the approver by the next stroke; ⛔ the seat does not merge. |
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA Tier H hand-off · 2026-11-26T17:01Z · head 19b5b42 · approver 维护者速读
|
Requested by Sales · project thread
Fixes #37407
Clause-②: no (published prose only; teaches the list throw already on main)
Metadata-protocol: none
维护者速读
What changes
skills/objectstack-data/references/data-hooks.mdandskills/objectstack-ui/rules/actions.md, plus apatchchangeset for@objectstack/skills.reasonsbullet says how an entry declares them: a snake_case reason mapped to{ message }only, under the code's wirecodeand status; another status needs another code (zone o5-U note N1, comment 7181230894).paramsbullet says a reason's holes follow the same rule.reasons: [{ reason, params? }, …]instead ofreason: one translated line each, filled from its ownparams;userMessagejoins them by newlines and ends with the entry'smessage, filled from the throw's top-levelparams, else its holes are empty (note N3); the HTTP doors answerdetails.refusals: [{ reason, message }], absent for a singlereason(the MCP tool gives the lines as text beside its envelope, so the page does not say every door).reasons, and that areasonsthat is not a non-empty list of{ reason, params? }, or one besidereason, is a500.reasons: [{ reason, params? }, …], notreason:userMessageis one line per reason, closed by the code'smessage(rules there)." The rules stay a pointer to the hook section.conditionexample, two comments that restated the condition below them,annual_revenuefrom the insertinputsample, the "lifecycle events organized by operation type" lead-in. The rest is tightened wording (data-hooks: What Are Hooks,defineHook,has(),filter:,findOne, unpredicatedfind, capabilities lead-in,ctx.log,HookContextnote,ctx.input; actions: shorter example strings and oneparamsarray on one line). No other file pins any shortened string.Checked against
packages/runtime/src/sandbox/hook-refusal-catalogue.ts,quickjs-runner.tsandpackages/spec/src/data/declared-entry.zod.tsonmain: the join order and closing line, top-levelparamsfilling the closingmessage,details.refusalsonly on a list throw, a listed reason judged under every code,{ message }as the reason value.Small calls made here (no card):
e.reasons = [...]; throw e) is not taught; the object-literal throw is the one the page already uses.500s: the source detects them in the runner, not at save.userMessage, not how the console toast renders its newlines, which was not traced. The console's param-dialog listing of reasons (feat(console): a refusal that names several reasons lists every one in its alert box #37538) is not taught here.Why
PR #37395 (#36877) let one throw carry several declared reasons. Its
Skills-docs:line points here: both pages taught the singlereasonform only, so an agent writing a hook or action that refuses a selection for several reasons had no pointer to the list.Verification
Run at
19b5b425d(contract-review fixes;f0fd20d1ebefore), each exit 0:node scripts/check-skills-token-ratchet.mjs: both files within their ceilings (data-hooks.md 10122/10122, actions.md 3880/3880).node scripts/check-skill-links.mjs,node scripts/check-skill-identifier-liveness.mjs,node scripts/check-skill-top-level-keys.mjs.pnpm --filter @objectstack/spec check:skill-refs,check:skill-docs.pnpm --filter @objectstack/spec check:skill-examples(after building spec, client and client-react): 352 prose examples type-check, the editedos:checkblocks included.node scripts/pm/overlap-check.mjs: clean.The edits were drafted by a contract-tier subagent, as
dispatch-gates --tierrequires forskills/**, and reviewed here (one claim narrowed). The contract-review fixes (S1, N1, N3 of 7197638051) were drafted the same way; the extra bytes in actions.md are paid by wording-only tightenings in the same file.Contract review (L2) is owed before landing:
skills/**is a governed surface (Tier H).Human Minimum
packages/specholds no runtime logic.pnpm lintpasses.main, one pull request.packages/spectouched: its generated artifacts are regenerated and committed (not touched).content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.🤖 Generated with Claude Code
https://claude.ai/code/session_01L6bhgUpnvPnJ1hR74pUrVj
Generated by Claude Code