Skip to content

docs(skills): the registerHook example names the app's onEnable export, and the refusal-list teaching names its routes, the /data bound and its section - #38182

Merged
os-zhuang merged 3 commits into
mainfrom
claude/project-thread-17pmrm
Nov 28, 2026
Merged

os-zhuang merged 3 commits into
mainfrom
claude/project-thread-17pmrm

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Sales · project thread

Fixes #38161
Fixes #37642

Clause-②: no
Metadata-protocol: none

维护者速读

  • 是什么:照数据技能写钩子的开发者和 AI 会读到正确的注册位置:示例注释原来写「放在插件的 onEnable 里」,插件根本没有这个方法,照写的钩子永远不会注册;现在写明放在应用配置导出的 onEnable 里,插件则在启动方法里经服务拿引擎注册。拒绝清单一段还补了两点:数据接口会把返回消息截在 500 字,长清单的最后一行在那里会被截掉;哪些接口返回拒绝清单也点了名。动作技能页的「规则在那里」改成点名所指的章节。运行时行为不变。
  • 为什么:属于「AI 照技能写出能跑的元数据」。照错误注释写的钩子不跑也不报错,是静默失效。
  • 出错会怎样:只是技能文字,写错了是教错,可直接撤回;两个文件都在字数上限,新增靠删同文件里的重复说法来付,没有事实被删掉。
  • 要你做的:座位审核和合同审核通过后,技能目录需你批准合并。

What changes

  • skills/objectstack-data/references/data-hooks.md, Registration Methods, method 2 (skills(objectstack-data): the registerHook example says "in your plugin's onEnable()", but a kernel plugin has init/start, and onEnable is the app's config export #38161): the comment // in your plugin's onEnable() named a method no kernel plugin has. It now reads // in the app's onEnable export (objectstack.config.ts). A kernel plugin has no ctx.ql: from start(ctx), ctx.getService('objectql').registerHook(…), and the heading's "the plugin escape hatch" became "the onEnable escape hatch".
    • packages/core/src/types.ts:155 Plugin has init / start? / destroy? and no onEnable; PluginContext (:16) has getService (:37) and no ql.
    • packages/runtime/src/app-plugin.ts:1795-1834 resolves the bundle's onEnable and calls it with hostContext = { ...ctx, ql, logger, drivers }; packages/spec/src/stack.zod.ts:1319 declares onEnable on the stack.
    • packages/objectql/src/plugin.ts:932 registers the engine as service objectql; engine.ts:715 is registerHook; AppPlugin.start itself reads ctx.getService('objectql') (app-plugin.ts:1464).
  • Same file, Declared refusals, the several-reasons bullet (review follow-ups of PR #37619: refusal-list teaching on the hook and actions skill pages (the /data message bound, two wording nits) #37642 N2, N5): "the HTTP doors answer details.refusals" became: /data cuts userMessage (a single sentence's too) at 500 characters, so a long list loses its closing line there; /data and /actions answer details.refusals: [{ reason, message }] uncut (MCP tools relay the lines as text).
    • Bound: packages/types/src/data-error-classification.ts:55 CLIENT_MESSAGE_MAX = 500, applied to a declared userMessage by mapDataError → withDeclaredUserMessage → boundedDeclaredUserMessage (:568-703); the list stays whole (:609-620). /actions uses the unbounded declaredUserMessage (thrown-http-error.ts:408, via actions-door-answer.ts:415-438).
    • Routes: /data withDeclaredRefusalLines (data-error-classification.ts:622); /actions action-dispatch.ts:957 → thrown-http-error.ts:396-404; MCP packages/mcp/src/mcp-http-tools.ts:1474-1498 appends the lines as text.
  • skills/objectstack-ui/rules/actions.md, Refusing by code (review follow-ups of PR #37619: refusal-list teaching on the hook and actions skill pages (the /data message bound, two wording nits) #37642 N4): "(rules there)" named no place; it now ends "(Declared refusals)", the last segment of the same paragraph's pointer "objectstack-data → Lifecycle Hooks → Declared refusals". "closed by" became "then" to pay the byte.
  • .changeset/38161-skills-hook-registration-refusal-pointers.md: @objectstack/skills patch.

Paid by cuts in data-hooks.md (each fact still in the file): the Error-handling row's "onError defaults to 'abort' unconditionally" (the row keeps "Also aborts by default"); the repeated transition expression → "as above" (the code block above carries it); the after* bullet's "(record is that row's real state, not the bare payload)" (the section's bold lead says it); Gotcha 1's one-line findOne block → "re-query it by ctx.result.id, as the example below does" (the copy-paste example and Query shape carry the line); the copy-paste intro's "(a lookup FK that is not in the partial patch)" (Gotcha 1 says it); the ctx.log bullet's "two independent causes: (1) … (2)" scaffolding.

Skills readings (lines / bytes, merge base 4f7aa88 → head):

before after
data-hooks.md 856 / 40477 851 / 40480
actions.md 268 / 15670 268 / 15671
all skills/**/SKILL.md, lines 4953 4953
whole skills/ tree, bytes 1224868 1224872

Both files stay at their token ceilings (10120, 3918); no ceiling line changed.

The skills/** edits were written by isolated sub-agents at the contract-review tier; node scripts/pm/verify-review-tier.mjs on their transcripts: PASS — 4 assistant turn(s) (actions.md) and PASS — 54 assistant turn(s) (data-hooks.md), every one served at CONTRACT_REVIEW_TIER. Not traced: whether the dispatcher's own /data twin (packages/runtime/src/domains/data.ts) carries the same cut and list, so the text names only /data and /actions.

Tests

gates (head 7eb3a71)

Derived by node scripts/pm/dispatch-gates.mjs --commands (48 lines). Run locally, exit 0 (30): check-skills-token-ratchet.mjs, check-adr-0087-registration.mjs, check-changeset-no-major.mjs, check-closing-keyword-parity.mjs, check-comment-mask-corpus.mjs, check-doc-route-spelling.mjs --advisory, check-empty-changeset.mjs, @objectstack/spec check:skill-refs, check:adr-anchors, check:agent-test-spelling, check:changeset-gate-self-tests, check:ci-filter-parity, check:closed-ceremony-text, check:corpus-claim-drift, check:cross-package-test-inputs, check:doc-authoring, check:driver-memory-census, check:gitlink-declared, check:nul-bytes, check:pm-expected-skips, check:pm-governed-merges, check:pm-skill-id-lint, check:published-files, check:refd-timer-probe, check:role-word, check:skill-compatibility, check:skill-frame-sync, check:skill-identifier-liveness, check:skill-links, check:watch-hint-literal.

NOT MEASURED locally, reason: they read built dist/ and no package is built in this worktree (the diff touches no package source): check:doc-formula-expressions, check:dts-closure, check:dual-build-cjs-loads, check:lean-entry-closure, check:sourcemap-no-sources-content. Left to CI, as are the --self-test lines.

Acceptance notes

  • The 4xx error text on /data is cut at the same 500 characters (data-error-classification.ts:1679); not added, it did not fit the budget and the card asks for userMessage.
  • A throw that leaves the dispatcher's dispatch() exits through errorResponseBase (packages/runtime/src/dispatcher-plugin.ts:711), where no refusals handling was seen; that is why the page does not promise the list on the dispatcher's other routes. Read only, not filed.

Verification

Read first: data-hooks.md method 2 code block; the several-reasons bullet under Declared refusals; the last sentence of "Refusing by code" in actions.md.

Two-minute check: node scripts/check-skills-token-ratchet.mjs prints 61 authored bundle file(s) within their ceilings.

🤖 Generated with Claude Code

https://claude.ai/code/session_01L6bhgWXNEKowao8Fvau3Bs

…ointer means

"(rules there)" after the reasons-list sentence pointed nowhere: the nearest
place named before it was objectstack-i18n. It now names Declared refusals,
the last segment of the same paragraph's objectstack-data pointer. Same token
count (3918), ceiling unchanged.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgWXNEKowao8Fvau3Bs
@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 28, 2026
…t, and the refusal list names its routes and the /data bound

The method-2 comment said "in your plugin's onEnable()": a kernel plugin has
init/start/destroy and no ctx.ql; ctx.ql is the engine on the app's onEnable
host context. The reasons-list bullet now names /data's 500-character cut of
userMessage and the routes that answer details.refusals (/data, /actions),
instead of "the HTTP doors". Paid by cutting restatements in the same file;
data-hooks.md stays at 10120 tokens.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgWXNEKowao8Fvau3Bs
@objectstack-fleet objectstack-fleet Bot changed the title docs(skills): the registerHook example names the real seam, and the refusal-list teaching names its places docs(skills): the registerHook example names the app's onEnable export, and the refusal-list teaching names its routes, the /data bound and its section Nov 28, 2026

Copy link
Copy Markdown
Collaborator

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 7eb3a7173e49e1b57c9b762df4fdba9063f07810
Local-runs: none
Scope: skills/objectstack-data/references/data-hooks.md, skills/objectstack-ui/rules/actions.md + none
Security-touching: no

Read: card #38161 (body, 3 comments, dev report 7235308567), card #37642 (body, 2 comments), PR #38182 (body, 3 files, net diff against merge base 4f7aa88a), the check-runs on the head. The PR carries no comments and no earlier record. The diff holds no implementing file: it is two skill pages and one changeset, so the code below was read on main, not reviewed.

① Derived judgments

  • Accept-set: unchanged. No schema, validator, gate or runtime file is in the diff. Right.
  • Public surface: the published text of two @objectstack/skills pages. Three teachings change; each is judged in ④. Right.
  • Token ceilings: no ceiling line is in the diff, and the dev reports both files at their ceilings (10120 / 3918). The ratchet runs in Lint · repo & tooling gates, which was still in progress when this record was written (see ③).

② Semver level

.changeset/38161-skills-hook-registration-refusal-pointers.md declares @objectstack/skills: patch. The package exists (packages/skills/package.json), and a wording fix on a published skill page that changes no runtime behaviour is a patch. Right. Check Changeset concluded success on this head.

Clause-②: no. Agreed: the diff narrows no accept-set and adds no published key. The line is on both the PR body and the changeset.

③ Boundary flags

  • open_questions: empty. Nothing to answer.
  • security_findings: none. Agreed: no changed hunk teaches permission, sharing, credential, token or authentication behaviour. Gotcha 2 (the target's sharing model) sits between two changed hunks and is itself unchanged.
  • Out-of-scope finding 1 (the /data 4xx error text is cut at the same 500 characters): confirmed on main, truncateClientMessage in packages/types/src/data-error-classification.ts:92. The card asks for userMessage only, so leaving it out is within the card. Answered.
  • Out-of-scope finding 2 (a throw that leaves the dispatcher's dispatch() exits through errorResponseBase, and the dispatcher's own /data twin was not traced): the dev reports carrier: none. This is not answered by the PR, and it bears on the page's unqualified /data. See N1; it wants a carrier card.
  • SQL push-down: not applicable, no code in the diff.
  • Check-runs on the head, read at review time: 0 failed. Concluded success include Check Changeset, Governed Surface Queue Guard, both PR-body guards, Build Core, Lint · docs & code guards, Lint · PM dispatch-gates, Lint · ESLint, the three Lint · scoped jobs and the four Type Check jobs. Still in progress: Lint · repo & tooling gates, Lint · CI, release & engine gates, Test Core (1/10), Test Core (2/10). Those four gate verdicts are NOT in this record; the adopting seat reads their conclusions before it adopts.

④ Design judgment

No must-fix, no should-fix.

skills/objectstack-data/references/data-hooks.md

Method 2, the comment and the heading (#38161). Holds.

  • "in the app's onEnable export (objectstack.config.ts)": AppPlugin.start resolves onEnable from the bundle and calls it with hostContext = { ...ctx, ql, logger, drivers } (packages/runtime/src/app-plugin.ts:1795-1834), and ql is the engine from ctx.getService('objectql') (:1464). StackSchema declares onEnable (packages/spec/src/stack.zod.ts:1319). So ctx.ql.registerHook exists on the seam the comment now names, which is the card's first acceptance line.
  • "A kernel plugin has no ctx.ql": PluginContext (packages/core/src/types.ts:16) has getService and no ql. Plugin (:155) has no onEnable.
  • "from start(ctx), ctx.getService('objectql').registerHook(…)": the ObjectQL plugin registers the engine as service objectql in its init (packages/objectql/src/plugin.ts:897, :932), so it is present in every plugin's start. registerHook is on the engine (packages/objectql/src/engine.ts:715). start rather than init is the right phase, and it agrees with skills/objectstack-platform/rules/service-registry.md:192-206 and references/plugin-hooks.md:72.
  • The heading "the onEnable escape hatch" agrees with the comment, and the ctx.title row's "ql.registerHook" still reads the same way.

Declared refusals, the several-reasons bullet (#37642 N2, N5). Holds against the REST door and the actions door.

  • "/data cuts userMessage (a single sentence's too) at 500 characters": mapDataError → withDeclaredUserMessage → boundedDeclaredUserMessage → truncateClientMessage, with CLIENT_MESSAGE_MAX = 500 (data-error-classification.ts:55, :92-96, :600-607, :700-703). The bound applies to any declared userMessage, a single sentence included.
  • "so a long list loses its closing line there": the code's own docblock says the same (:609-620): the closing line is the last line of userMessage and is not on the list.
  • "/data and /actions answer details.refusals uncut": /data through withDeclaredRefusalLines (:622); /actions through actionsDoorAnswerOf → thrownAnswerOf → resolveThrownHttpError, which sets details.refusals and an unbounded userMessage (packages/types/src/thrown-http-error.ts:396-411, packages/runtime/src/action-dispatch.ts:957).
  • "(MCP tools relay the lines as text)": withRefusalReasonsRelay appends a text content block (packages/mcp/src/mcp-http-tools.ts:1474-1498).
  • "absent for a single reason": declaredRefusalLines answers undefined without a list (thrown-http-error.ts:303-317).
  • "door" now has one sense on the page (a registration path, in the ctx.title row).

The cuts that pay for the additions. Each deleted fact was looked for in the head file, and each is still there.

  • "onError defaults to 'abort' unconditionally": the row keeps "Also aborts by default".
  • The repeated transition expression → "as above": the code block directly above carries previous.done != true && record.done == true.
  • The after* bullet's parenthesis on record: the section's bold lead ("record here is the RECORD, not this write's payload") and the before* bullet say it.
  • Gotcha 1's one-line findOne block: the copy-paste example below carries the identical line, and the gotcha now points at it.
  • The copy-paste intro's "(a lookup FK that is not in the partial patch)": Gotcha 1 says it, two headings up.
  • The ctx.log bullet: both causes are kept; only the "(1) … (2)" scaffolding went.

N1 (nit) — the page says /data without saying which server answers it. Every claim above was read against @objectstack/rest's routes (mapDataError). On a host that serves /data through HttpDispatcher.dispatch(), a thrown hook refusal leaves through errorResponseBase (packages/runtime/src/dispatcher-plugin.ts:711) or the host's catch-all, and neither the 500-character cut nor details.refusals was traced there by the dev or by this review. The new text is narrower and truer than "the HTTP doors" it replaces, so it does not block. It wants a follow-up card to trace that exit and either confirm the page or qualify it.

N2 (nit) — ctx.getService('objectql').registerHook(…) is shorthand. getService is generic with no inference site (its return type is its type parameter), so the line copied as written into TypeScript does not compile until a type argument is given. The failure is loud, not silent, and plugin-hooks.md:72 already uses the same shorthand. Accepted deviation; the file has no bytes to spend.

N3 (nit) — the example still passes packageId: 'my-plugin', under a comment that now says the code runs in the app's onEnable. The value is a placeholder and the text above tells the reader what packageId is for. Accepted deviation, or a zero-byte swap in a later edit.

skills/objectstack-ui/rules/actions.md

"Refusing by code" (#37642 N4). Holds. "(Declared refusals)" names the heading ### Declared refusals (refusals) in data-hooks.md, and it is the last segment of the pointer the same paragraph already gives ("objectstack-data → Lifecycle Hooks → Declared refusals"). "one line per reason, then the code's message" is true on the door this page teaches: /actions answers userMessage unbounded, so the closing line is not cut there.

Implemented-by: claude/project-thread-17pmrm
Reviewed-by: session_01L6bhgV6i8jfWwSXjpWJrjA

VERDICT: PASS


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

席位核对 — ACCEPT · head 7eb3a71730 · cards #38161 #37642 · area s2-ai · 2026-11-28T06:48Z

L1 checklist

Tier: H. Landing: hand-off to the maintainer follows this record.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

The contract reviewer's record, posted through the relay with its served-tier evidence; it replaces comment 7235392160 (same text, posted outside the relay).

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 7eb3a7173e49e1b57c9b762df4fdba9063f07810
Local-runs: none
Scope: skills/objectstack-data/references/data-hooks.md, skills/objectstack-ui/rules/actions.md + none
Security-touching: no

Read: card #38161 (body, 3 comments, dev report 7235308567), card #37642 (body, 2 comments), PR #38182 (body, 3 files, net diff against merge base 4f7aa88a), the check-runs on the head. The PR carries no comments and no earlier record. The diff holds no implementing file: it is two skill pages and one changeset, so the code below was read on main, not reviewed.

① Derived judgments

  • Accept-set: unchanged. No schema, validator, gate or runtime file is in the diff. Right.
  • Public surface: the published text of two @objectstack/skills pages. Three teachings change; each is judged in ④. Right.
  • Token ceilings: no ceiling line is in the diff, and the dev reports both files at their ceilings (10120 / 3918). The ratchet runs in Lint · repo & tooling gates, which was still in progress when this record was written (see ③).

② Semver level

.changeset/38161-skills-hook-registration-refusal-pointers.md declares @objectstack/skills: patch. The package exists (packages/skills/package.json), and a wording fix on a published skill page that changes no runtime behaviour is a patch. Right. Check Changeset concluded success on this head.

Clause-②: no. Agreed: the diff narrows no accept-set and adds no published key. The line is on both the PR body and the changeset.

③ Boundary flags

  • open_questions: empty. Nothing to answer.
  • security_findings: none. Agreed: no changed hunk teaches permission, sharing, credential, token or authentication behaviour. Gotcha 2 (the target's sharing model) sits between two changed hunks and is itself unchanged.
  • Out-of-scope finding 1 (the /data 4xx error text is cut at the same 500 characters): confirmed on main, truncateClientMessage in packages/types/src/data-error-classification.ts:92. The card asks for userMessage only, so leaving it out is within the card. Answered.
  • Out-of-scope finding 2 (a throw that leaves the dispatcher's dispatch() exits through errorResponseBase, and the dispatcher's own /data twin was not traced): the dev reports carrier: none. This is not answered by the PR, and it bears on the page's unqualified /data. See N1; it wants a carrier card.
  • SQL push-down: not applicable, no code in the diff.
  • Check-runs on the head, read at review time: 0 failed. Concluded success include Check Changeset, Governed Surface Queue Guard, both PR-body guards, Build Core, Lint · docs & code guards, Lint · PM dispatch-gates, Lint · ESLint, the three Lint · scoped jobs and the four Type Check jobs. Still in progress: Lint · repo & tooling gates, Lint · CI, release & engine gates, Test Core (1/10), Test Core (2/10). Those four gate verdicts are NOT in this record; the adopting seat reads their conclusions before it adopts.

④ Design judgment

No must-fix, no should-fix.

skills/objectstack-data/references/data-hooks.md

Method 2, the comment and the heading (#38161). Holds.

  • "in the app's onEnable export (objectstack.config.ts)": AppPlugin.start resolves onEnable from the bundle and calls it with hostContext = { ...ctx, ql, logger, drivers } (packages/runtime/src/app-plugin.ts:1795-1834), and ql is the engine from ctx.getService('objectql') (:1464). StackSchema declares onEnable (packages/spec/src/stack.zod.ts:1319). So ctx.ql.registerHook exists on the seam the comment now names, which is the card's first acceptance line.
  • "A kernel plugin has no ctx.ql": PluginContext (packages/core/src/types.ts:16) has getService and no ql. Plugin (:155) has no onEnable.
  • "from start(ctx), ctx.getService('objectql').registerHook(…)": the ObjectQL plugin registers the engine as service objectql in its init (packages/objectql/src/plugin.ts:897, :932), so it is present in every plugin's start. registerHook is on the engine (packages/objectql/src/engine.ts:715). start rather than init is the right phase, and it agrees with skills/objectstack-platform/rules/service-registry.md:192-206 and references/plugin-hooks.md:72.
  • The heading "the onEnable escape hatch" agrees with the comment, and the ctx.title row's "ql.registerHook" still reads the same way.

Declared refusals, the several-reasons bullet (#37642 N2, N5). Holds against the REST door and the actions door.

  • "/data cuts userMessage (a single sentence's too) at 500 characters": mapDataError → withDeclaredUserMessage → boundedDeclaredUserMessage → truncateClientMessage, with CLIENT_MESSAGE_MAX = 500 (data-error-classification.ts:55, :92-96, :600-607, :700-703). The bound applies to any declared userMessage, a single sentence included.
  • "so a long list loses its closing line there": the code's own docblock says the same (:609-620): the closing line is the last line of userMessage and is not on the list.
  • "/data and /actions answer details.refusals uncut": /data through withDeclaredRefusalLines (:622); /actions through actionsDoorAnswerOf → thrownAnswerOf → resolveThrownHttpError, which sets details.refusals and an unbounded userMessage (packages/types/src/thrown-http-error.ts:396-411, packages/runtime/src/action-dispatch.ts:957).
  • "(MCP tools relay the lines as text)": withRefusalReasonsRelay appends a text content block (packages/mcp/src/mcp-http-tools.ts:1474-1498).
  • "absent for a single reason": declaredRefusalLines answers undefined without a list (thrown-http-error.ts:303-317).
  • "door" now has one sense on the page (a registration path, in the ctx.title row).

The cuts that pay for the additions. Each deleted fact was looked for in the head file, and each is still there.

  • "onError defaults to 'abort' unconditionally": the row keeps "Also aborts by default".
  • The repeated transition expression → "as above": the code block directly above carries previous.done != true && record.done == true.
  • The after* bullet's parenthesis on record: the section's bold lead ("record here is the RECORD, not this write's payload") and the before* bullet say it.
  • Gotcha 1's one-line findOne block: the copy-paste example below carries the identical line, and the gotcha now points at it.
  • The copy-paste intro's "(a lookup FK that is not in the partial patch)": Gotcha 1 says it, two headings up.
  • The ctx.log bullet: both causes are kept; only the "(1) … (2)" scaffolding went.

N1 (nit) — the page says /data without saying which server answers it. Every claim above was read against @objectstack/rest's routes (mapDataError). On a host that serves /data through HttpDispatcher.dispatch(), a thrown hook refusal leaves through errorResponseBase (packages/runtime/src/dispatcher-plugin.ts:711) or the host's catch-all, and neither the 500-character cut nor details.refusals was traced there by the dev or by this review. The new text is narrower and truer than "the HTTP doors" it replaces, so it does not block. It wants a follow-up card to trace that exit and either confirm the page or qualify it.

N2 (nit) — ctx.getService('objectql').registerHook(…) is shorthand. getService is generic with no inference site (its return type is its type parameter), so the line copied as written into TypeScript does not compile until a type argument is given. The failure is loud, not silent, and plugin-hooks.md:72 already uses the same shorthand. Accepted deviation; the file has no bytes to spend.

N3 (nit) — the example still passes packageId: 'my-plugin', under a comment that now says the code runs in the app's onEnable. The value is a placeholder and the text above tells the reader what packageId is for. Accepted deviation, or a zero-byte swap in a later edit.

skills/objectstack-ui/rules/actions.md

"Refusing by code" (#37642 N4). Holds. "(Declared refusals)" names the heading ### Declared refusals (refusals) in data-hooks.md, and it is the last segment of the pointer the same paragraph already gives ("objectstack-data → Lifecycle Hooks → Declared refusals"). "one line per reason, then the code's message" is true on the door this page teaches: /actions answers userMessage unbounded, so the closing line is not cut there.

Implemented-by: claude/project-thread-17pmrm
Reviewed-by: session_01L6bhgV6i8jfWwSXjpWJrjA

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

Tier H hand-off · 2026-11-28T06:49Z · head 7eb3a71730 · approver os-zhuang

维护者速读

  • 改了什么: 两张卡合成一个 PR,只改两份技能文字:
    • 数据技能里注册钩子的示例,以前注释写「在插件的 onEnable() 里」,但内核插件没有这个方法,照着写的钩子永远不会注册、也没有报错。现在改成应用配置导出的 onEnable,并说明内核插件要在 start(ctx) 里通过 objectql 服务注册。
    • 钩子拒绝的提示:/data 会把给用户的提示截在 500 字,长清单最后一行可能丢;/data 和 /actions 返回完整的拒绝清单,MCP 以文字转述。界面技能里指向这一节的链接也改对了。
  • 影响: 只改技能文字,不改产品行为。两份文件都没超出字数上限,新增内容靠删同文件里重复的说法来抵,删项列在 PR 正文。
  • 请你留意: 「/data 截 500 字」只在 REST 路由上核过;经运行时分发器提供 /data 的宿主还没追,已立跟进卡 skills(objectstack-data): the /data refusal bound and details.refusals are taught for the REST routes only; a host serving /data through the runtime dispatcher is untraced #38203。
  • 审核: 契约审核(最高档)PASS(7235392160),没有必须改或建议改的项,三处小瑕疵一处立卡、两处按已接受偏差记录。席位 L1 ACCEPT 在本评论前一条。
  • 要你做什么: 需要你批准后才能合并。撤回这一次合并即恢复原样。

@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 28, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 28, 2026 06:58
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 28, 2026
Merged via the queue into main with commit b703678 Nov 28, 2026
54 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-17pmrm branch November 28, 2026 08:33
@objectstack-fleet objectstack-fleet Bot removed the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

3 participants