Repository navigation
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
Conversation
…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
…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
Contract reviewServed-tier: Read: card #38161 (body, 3 comments, dev report 7235308567), card #37642 (body, 2 comments), PR #38182 (body, 3 files, net diff against merge base ① Derived judgments
② Semver level
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
④ Design judgmentNo must-fix, no should-fix.
Method 2, the comment and the heading (#38161). Holds.
Declared refusals, the several-reasons bullet (#37642 N2, N5). Holds against the REST door and the actions door.
The cuts that pay for the additions. Each deleted fact was looked for in the head file, and each is still there.
N1 (nit) — the page says N2 (nit) — N3 (nit) — the example still passes
"Refusing by code" (#37642 N4). Holds. "(Declared refusals)" names the heading Implemented-by: VERDICT: PASS Generated by Claude Code |
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA 席位核对 — ACCEPT · head 7eb3a71730 · cards #38161 #37642 · area s2-ai · 2026-11-28T06:48ZL1 checklist
Tier: H. Landing: hand-off to the maintainer follows this record. |
|
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 reviewServed-tier: Read: card #38161 (body, 3 comments, dev report 7235308567), card #37642 (body, 2 comments), PR #38182 (body, 3 files, net diff against merge base ① Derived judgments
② Semver level
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
④ Design judgmentNo must-fix, no should-fix.
Method 2, the comment and the heading (#38161). Holds.
Declared refusals, the several-reasons bullet (#37642 N2, N5). Holds against the REST door and the actions door.
The cuts that pay for the additions. Each deleted fact was looked for in the head file, and each is still there.
N1 (nit) — the page says N2 (nit) — N3 (nit) — the example still passes
"Refusing by code" (#37642 N4). Holds. "(Declared refusals)" names the heading Implemented-by: VERDICT: PASS |
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA Tier H hand-off · 2026-11-28T06:49Z · head 7eb3a71730 · approver 维护者速读
|
Requested by Sales · project thread
Fixes #38161
Fixes #37642
Clause-②: no
Metadata-protocol: none
维护者速读
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 "theonEnableescape hatch".packages/core/src/types.ts:155Pluginhasinit/start?/destroy?and noonEnable;PluginContext(:16) hasgetService(:37) and noql.packages/runtime/src/app-plugin.ts:1795-1834resolves the bundle'sonEnableand calls it withhostContext = { ...ctx, ql, logger, drivers };packages/spec/src/stack.zod.ts:1319declaresonEnableon the stack.packages/objectql/src/plugin.ts:932registers the engine as serviceobjectql;engine.ts:715isregisterHook;AppPlugin.startitself readsctx.getService('objectql')(app-plugin.ts:1464).details.refusals" became:/datacutsuserMessage(a single sentence's too) at 500 characters, so a long list loses its closing line there;/dataand/actionsanswerdetails.refusals: [{ reason, message }]uncut (MCP tools relay the lines as text).packages/types/src/data-error-classification.ts:55CLIENT_MESSAGE_MAX = 500, applied to a declareduserMessagebymapDataError→withDeclaredUserMessage→boundedDeclaredUserMessage(:568-703); the list stays whole (:609-620)./actionsuses the unboundeddeclaredUserMessage(thrown-http-error.ts:408, viaactions-door-answer.ts:415-438)./datawithDeclaredRefusalLines(data-error-classification.ts:622);/actionsaction-dispatch.ts:957→thrown-http-error.ts:396-404; MCPpackages/mcp/src/mcp-http-tools.ts:1474-1498appends 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/skillspatch.Paid by cuts in
data-hooks.md(each fact still in the file): the Error-handling row's "onErrordefaults to'abort'unconditionally" (the row keeps "Also aborts by default"); the repeated transition expression → "as above" (the code block above carries it); theafter*bullet's "(recordis that row's real state, not the bare payload)" (the section's bold lead says it); Gotcha 1's one-linefindOneblock → "re-query it byctx.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); thectx.logbullet's "two independent causes: (1) … (2)" scaffolding.Skills readings (lines / bytes, merge base 4f7aa88 → head):
data-hooks.mdactions.mdskills/**/SKILL.md, linesskills/tree, bytesBoth 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.mjson their transcripts:PASS — 4 assistant turn(s)(actions.md) andPASS — 54 assistant turn(s)(data-hooks.md), every one served at CONTRACT_REVIEW_TIER. Not traced: whether the dispatcher's own/datatwin (packages/runtime/src/domains/data.ts) carries the same cut and list, so the text names only/dataand/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-testlines.Acceptance notes
errortext on/datais cut at the same 500 characters (data-error-classification.ts:1679); not added, it did not fit the budget and the card asks foruserMessage.dispatch()exits througherrorResponseBase(packages/runtime/src/dispatcher-plugin.ts:711), where norefusalshandling 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.mdmethod 2 code block; the several-reasons bullet under Declared refusals; the last sentence of "Refusing by code" inactions.md.Two-minute check:
node scripts/check-skills-token-ratchet.mjsprints61 authored bundle file(s) within their ceilings.🤖 Generated with Claude Code
https://claude.ai/code/session_01L6bhgWXNEKowao8Fvau3Bs