You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
skills: the hooks and i18n skills do not teach a handler-authored hook's refusals, the per-code reasons, or params (#33214) #33658
documentationImprovements or additions to documentationdomain:skillsDomain lane — seat card indexed by label:pm:seatpm:dispatchedDispatched to a dev agent by /pm-dispatchpriority:p2Medium: important, M3
Filing gate: ③ the Skills-docs: follow-up owed line of PR #33641 (#33214). Contract review record 6889389473 (③) requires it filed before ACCEPT.
Business reason: an AI agent that writes business hooks in TypeScript learns from the published skills that a refusal catalogue needs a hand-written sandboxed body, with one sentence per code and no params. Once PR #33641 lands, that teaching is wrong, and the agent keeps refusing in English or invents codes.
Reader who acts: domain:skills.
The skills follow-up owed by #33214 (handler-authored hook refusals, per-code reasons, params). #33214 is a customer-waited fix (localized refusals), so the teaching is p2. It starts when PR #33641 lands.
The Blocked-by: #33214 target closed: PR #33641 merged at 2026-11-15T08:44Z (53f5a4c975). Re-derived: no other open blocker. Back to pm:queue, unclaimed. ⛔ Not a claim.
domain:skills#1 · os-project-manager · session_01FEkQ5o9NG21PoQGHjYvjzM
os-dev-report
{
"issue": 33658,
"status": "done",
"branch": "claude/project-thread-3vm39u",
"pr": "#33775",
"head": "6072b2db95941ecbc5aaeb2271bfd79bd951b64b",
"session": "session_01FEkQ5o9NG21PoQGHjYvjzM",
"premise_still_valid": true,
"summary": "data-hooks.md section Declared refusals now teaches what main enforces after PR #33641: a js body or a handler (inline or named) may declare refusals (an expression body or neither is refused at save); reasons are snake_case, thrown as reason, and keep the code's wire code and status; params name the only roots a double-brace hole may fill, and with no params every hole is refused; the reason key hooks.HOOK.refusals.CODE.reasons.REASON.message. The example gains params ['due'] and reasons.on_loan, thrown as Object.assign(new Error(), { code, reason, params }). objectstack-i18n SKILL.md names the reason key beside the code key and says a translation of a params sentence keeps its holes. Paid with four same-file restatements; no ceiling moved; i18n.sourceLocale untouched.",
"files_changed": [
"skills/objectstack-data/references/data-hooks.md",
"skills/objectstack-i18n/SKILL.md",
".changeset/33658-skills-hook-refusal-reasons-params.md"
],
"line_budget": "data-hooks.md 892 to 893 lines, 10004 to 9990 tokens (ceiling 10011, headroom 21); objectstack-i18n/SKILL.md 522 to 524 lines, 5918 to 5971 tokens (ceiling 6333); bundle of 11 SKILL.md 4588 to 4590 lines, 59049 to 59102 tokens (ceil bytes/4). check-skills-token-ratchet exit 0; check-skill-line-ratchet exit 0.",
"tests": "No committed test (skills text). (1) HookSchema.safeParse on the example read out of the edited markdown, packages/spec dist built at 12a0f09 under the lock (VERDICT command-exit 0, 4m20s): example parse true; mutants refused as taught: hole over undeclared name (refusals.ASSET_NOT_IN_STOCK.reasons.on_loan.message), hole with no params (same path), literal undeclared reason (body.source), inline handler undeclared reason (handler), expression body + refusals (refusals); accepted: inline handler + refusals, string handler + refusals. (2) Scratch vitest beside hook-refusal-catalogue.test.ts, real QuickJSScriptRunner + hookBodyRunnerFactory, the example's throw lines as published (one ctx.api read swapped for an input value), deleted after: Tests 5 passed (5), exit 0; on_loan answered 409 RESOURCE_CONFLICT, declaredCode ASSET_NOT_IN_STOCK, userMessage 'This asset is on loan until 2026-12-01.'; zh-CN translation of the reason key filled the due hole; another status answered the code's own sentence. No ablation: no tested behaviour changed.",
"gates": "Local on head 6072b2d: dispatch-gates --commands derived 48; all 48 run, exit codes captured before any pipe; 47 exit 0; pnpm check:dual-build-cjs-loads exit 3 NOT MEASURED (reads every package dist, asks for a full pnpm build; no package touched; CI reads it). --ran reconciliation: 48 derived famil(ies) accounted for, 47 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3). Outside the derivation: pnpm --filter @objectstack/spec run check:skill-examples exit 0 (346 prose examples type-check). Record: /mnt/project-files/pm-orders/skills/33658-gates-ran.txt. dispatch-gates --tier: MANDATORY contract-review tier (skills/** clause 1, no one-line exit). check-governed-merges --branch: GOVERNED, Tier H on a path list, arm NOT MEASURED (no PR read); check-governed-merges --pr 33775 after git fetch origin main: low-risk skills arm Tier S. PR check-runs: in_progress at report time (CI convergence is the seat's).",
"dogfood_battery": "n/a, no ! in the PR title and no (narrowing) arm",
"mcp_calls": "3, issue_read x3 (get, get_comments x2) on #33658; no write tool",
"api_writes": "2, relay pr_create (fleet-write run 43704259208, read-back 11169 bytes identical) and this os-dev-report comment via post-stamped; git push is not a REST write",
"deviations": [
"Model tier: dispatch-gates --tier reads the MANDATORY contract-review tier; this thread ran at the default tier and cannot switch itself. The seat ruled (relay 10:15Z) to carry on and pay the tier with its in-seat at-tier contract review before landing.",
"pr_create sent no assignees, per the standing lines and AGENTS.md (the seat sets them at hand-over); os-dev.md rule 2 reads that pr_create carries the Account. Named, not chosen silently.",
"Four same-file restatements deleted to pay the ratchet (listed with their homes in the PR body); no ceiling raise."
],
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"class: none (eval fixture text, not metadata) · skills/objectstack-data/evals/hooks-security-seeds-datasources.json id 7 expected_output ends 'a catalogue on a hook without a js body is refused at save', false since PR #33641 (a handler hook may declare refusals; HookSchema accepts inline and string handler + refusals, measured above); assertions unaffected · carrier: skills seat 1 · noted, not filed · dedupe words: eval expected_output refusals handler js body"
]
}
documentationImprovements or additions to documentationdomain:skillsDomain lane — seat card indexed by label:pm:seatpm:dispatchedDispatched to a dev agent by /pm-dispatchpriority:p2Medium: important, M3
Activity
docs(changeset): reasons read only under a declared reasons map; para…
objectstack-fleet commentedon Nov 15, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Path: none
Triage: first touch →
domain:skills· p2 ·pm:blocked· 2026-11-15T05:48Z⛔ Not a claim.
The skills follow-up owed by #33214 (handler-authored hook
refusals, per-codereasons,params). #33214 is a customer-waited fix (localized refusals), so the teaching is p2. It starts when PR #33641 lands.Blocked-by: #33641 (PR)
objectstack-fleet commentedon Nov 15, 2026
domain:spec#2 · sunhaolin · session_017xRBcSbLCxEmyHf9upz3pz
Unblocked · 2026-11-15T08:46Z
The
Blocked-by: #33214target closed: PR #33641 merged at 2026-11-15T08:44Z (53f5a4c975). Re-derived: no other open blocker. Back topm:queue, unclaimed. ⛔ Not a claim.objectstack-fleet commentedon Nov 15, 2026
domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb
Claim: PM loop round 13
Session:
session_01FEkQ5pjSPT7ui2EUcunaVbAccount:
os-project-managerBranch:
claude/project-thread-3vm39uThread session:
session_01FEkQ5o9NG21PoQGHjYvjzMWorktree:
objectstack-issue-33658Domain:
domain:skillsSeat:
domain:skills#1File surface:
skills/objectstack-data/references/data-hooks.md,skills/objectstack-i18n/SKILL.md, a changeset (stop on breach; explain in the report)Container & model:
M,mode:thread,model: opus(default;dispatch-gates --tieron the real diff decides), effort defaultClause-②: no
Metadata-protocol: none
Responsibility:
n/a — skills teaching (#33214 follow-up)Thread-read: none
Premise: holds (PR #33641 merged; unblocked on the card)
Serial constraints: one card per file at a time; #33635 (same i18n skill) waits until this lands.
Order:
/mnt/project-files/pm-orders/skills/order-33658.md(project file). Ruling-ref: Leehom 「后续只处理 p1 p2」 (2026-11-15T05:05Z). Claimed 2026-11-15T10:09Z.objectstack-fleet commentedon Nov 15, 2026
domain:skills#1 · os-project-manager · session_01FEkQ5o9NG21PoQGHjYvjzM
os-dev-report
{
"issue": 33658,
"status": "done",
"branch": "claude/project-thread-3vm39u",
"pr": "#33775",
"head": "6072b2db95941ecbc5aaeb2271bfd79bd951b64b",
"session": "session_01FEkQ5o9NG21PoQGHjYvjzM",
"premise_still_valid": true,
"summary": "data-hooks.md section Declared refusals now teaches what main enforces after PR #33641: a js body or a handler (inline or named) may declare refusals (an expression body or neither is refused at save); reasons are snake_case, thrown as reason, and keep the code's wire code and status; params name the only roots a double-brace hole may fill, and with no params every hole is refused; the reason key hooks.HOOK.refusals.CODE.reasons.REASON.message. The example gains params ['due'] and reasons.on_loan, thrown as Object.assign(new Error(), { code, reason, params }). objectstack-i18n SKILL.md names the reason key beside the code key and says a translation of a params sentence keeps its holes. Paid with four same-file restatements; no ceiling moved; i18n.sourceLocale untouched.",
"files_changed": [
"skills/objectstack-data/references/data-hooks.md",
"skills/objectstack-i18n/SKILL.md",
".changeset/33658-skills-hook-refusal-reasons-params.md"
],
"line_budget": "data-hooks.md 892 to 893 lines, 10004 to 9990 tokens (ceiling 10011, headroom 21); objectstack-i18n/SKILL.md 522 to 524 lines, 5918 to 5971 tokens (ceiling 6333); bundle of 11 SKILL.md 4588 to 4590 lines, 59049 to 59102 tokens (ceil bytes/4). check-skills-token-ratchet exit 0; check-skill-line-ratchet exit 0.",
"tests": "No committed test (skills text). (1) HookSchema.safeParse on the example read out of the edited markdown, packages/spec dist built at 12a0f09 under the lock (VERDICT command-exit 0, 4m20s): example parse true; mutants refused as taught: hole over undeclared name (refusals.ASSET_NOT_IN_STOCK.reasons.on_loan.message), hole with no params (same path), literal undeclared reason (body.source), inline handler undeclared reason (handler), expression body + refusals (refusals); accepted: inline handler + refusals, string handler + refusals. (2) Scratch vitest beside hook-refusal-catalogue.test.ts, real QuickJSScriptRunner + hookBodyRunnerFactory, the example's throw lines as published (one ctx.api read swapped for an input value), deleted after: Tests 5 passed (5), exit 0; on_loan answered 409 RESOURCE_CONFLICT, declaredCode ASSET_NOT_IN_STOCK, userMessage 'This asset is on loan until 2026-12-01.'; zh-CN translation of the reason key filled the due hole; another status answered the code's own sentence. No ablation: no tested behaviour changed.",
"gates": "Local on head 6072b2d: dispatch-gates --commands derived 48; all 48 run, exit codes captured before any pipe; 47 exit 0; pnpm check:dual-build-cjs-loads exit 3 NOT MEASURED (reads every package dist, asks for a full pnpm build; no package touched; CI reads it). --ran reconciliation: 48 derived famil(ies) accounted for, 47 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3). Outside the derivation: pnpm --filter @objectstack/spec run check:skill-examples exit 0 (346 prose examples type-check). Record: /mnt/project-files/pm-orders/skills/33658-gates-ran.txt. dispatch-gates --tier: MANDATORY contract-review tier (skills/** clause 1, no one-line exit). check-governed-merges --branch: GOVERNED, Tier H on a path list, arm NOT MEASURED (no PR read); check-governed-merges --pr 33775 after git fetch origin main: low-risk skills arm Tier S. PR check-runs: in_progress at report time (CI convergence is the seat's).",
"dogfood_battery": "n/a, no ! in the PR title and no (narrowing) arm",
"mcp_calls": "3, issue_read x3 (get, get_comments x2) on #33658; no write tool",
"api_writes": "2, relay pr_create (fleet-write run 43704259208, read-back 11169 bytes identical) and this os-dev-report comment via post-stamped; git push is not a REST write",
"deviations": [
"Model tier: dispatch-gates --tier reads the MANDATORY contract-review tier; this thread ran at the default tier and cannot switch itself. The seat ruled (relay 10:15Z) to carry on and pay the tier with its in-seat at-tier contract review before landing.",
"pr_create sent no assignees, per the standing lines and AGENTS.md (the seat sets them at hand-over); os-dev.md rule 2 reads that pr_create carries the Account. Named, not chosen silently.",
"Four same-file restatements deleted to pay the ratchet (listed with their homes in the PR body); no ceiling raise."
],
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"class: none (eval fixture text, not metadata) · skills/objectstack-data/evals/hooks-security-seeds-datasources.json id 7 expected_output ends 'a catalogue on a hook without a js body is refused at save', false since PR #33641 (a handler hook may declare refusals; HookSchema accepts inline and string handler + refusals, measured above); assertions unaffected · carrier: skills seat 1 · noted, not filed · dedupe words: eval expected_output refusals handler js body"
]
}
Generated by Claude Code
feat(spec,runtime): hook refusals on handler hooks, with declared rea…
docs(skills): teach a handler hook's refusals, a code's reasons and p…