Repository navigation
docs(skills): teach the grouping fields a grid refuses, the ungranted hook body call and updateById under api.write - #39031
Conversation
The Grouping section names list-view-group-field-ungroupable (a multi-valued, JSON-stored or formula field as a grid grouping level) and the dotted path a grid grouping level refuses (list-view-field-dotted), each with its fix. Paid by deletion in the same file; the token count stays 4509. Claude-Session: https://claude.ai/code/session_01WGufzhKEbEnW8pwZRgK2gJ Co-authored-by: Claude <noreply@anthropic.com>
…k body call The Capabilities section names hook-body-capability-undeclared, the doors that refuse it, the calls the rule reads and the fix; the api.write row lists every write leaf the sandbox gates, updateById included. Paid by deletion in the same file; the token count stays 10120. Claude-Session: https://claude.ai/code/session_01WGufzhKEbEnW8pwZRgK2gJ Co-authored-by: Claude <noreply@anthropic.com>
An action body may write through ctx.api.object(X).updateById(id, patch); it takes the api.write grant like update, and without it the write is refused at save. Paid by deletion in the same file; the token count stays 3918. Claude-Session: https://claude.ai/code/session_01WGufzhKEbEnW8pwZRgK2gJ Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzhKEbEnW8pwZRgK2gJ Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhKEbEnW8pwZRgK2gJ 2026-12-02T04:22Z · |
…ills-save-refusals Claude-Session: https://claude.ai/code/session_01WGufzhKEbEnW8pwZRgK2gJ Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhKEbEnW8pwZRgK2gJ Final green head · 2026-12-02T05:13Z · zone osa-data
|
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm Contract-review-claim: session_01WGufzhGA3zoCFquQgku4pm · head 7fb152b · 2026-12-02T05:17Z |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm Contract reviewServed-tier: Inputs: card #38655 (body and its four comments, through dev report 7334623230), PR #39031 (body, 4-file list, net diff against ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentNo must-fix, no should-fix.
Implemented-by: VERDICT: PASS |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm L1 review · PR #39031 (#38655) · head 7fb152b · 2026-12-02T05:21ZACCEPT, on head
Landing rule B: Next: the seat's Tier H hand-off. |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS 席位核对ACCEPT — PR #39031 @
|
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS 维护者速读
|
Part of #38655
Clause-②: no
Metadata-protocol: none
This PR lands the two pages that fit their token ceilings and the first
actions.mditem. Twoactions.mditems stay open on the card, because that file has no restatement left to pay for them:action-body-capability-undeclared, and the identity-assignment write an action body is refused. Their text is written and pushed on the backup branchclaude/issue-38655-skills-save-refusals-wip(8b30ebeb, no PR); see Acceptance notes.维护者速读
What changes
Text only, in three published skill pages. Each sentence follows the merged rule explanation in
packages/lint/src/rule-explanations/(list-view-field-refs.ts,record-writes.ts), read at444dce61.skills/objectstack-ui/rules/list-views.md, Grouping: on a grid (the defaulttype) a grouping level'sfieldis a stored single-valued field of the object. A multi-valued, JSON-stored orformulafield is refused at validate and publish aslist-view-group-field-ungroupable(show it as a column). Dotted grouping is on main, so the same sentence covers it: a dotted path is refused aslist-view-field-dotted(group by the lookup itself).skills/objectstack-data/references/data-hooks.md, Capabilities: a hook body call whose token is missing is refused at save ashook-body-capability-undeclared(an error fromos validate,os build,os lintand a runtime save,422 INVALID_METADATA); add the token the message names, or remove the call. The paragraph names the spellings the rule reads, and the token table under it is the list the rule judges. Itsapi.writerow now lists every write leaf the sandbox gates,updateById(id, patch)included.skills/objectstack-ui/rules/actions.md, opening paragraph: a body writes throughctx.api.object(X).update(...)or.updateById(id, patch)underapi.write; without the grant the write is refused at save (action-body-write-capability-undeclared, which the page already named)..changeset/38655-skills-save-refusals.md:@objectstack/skillspatch, with the list of what was deleted to pay for each addition.Skills size, both readings (tokens are the ratchet's own count):
rules/list-views.mdrules/actions.mdreferences/data-hooks.mdSKILL.md, summed.mdunderskills/No ceiling row moves. Each addition is paid for by deletion in its own file; the changeset lists every cut.
Read first, by risk:
skills/objectstack-data/references/data-hooks.md, the Capabilities hunk: the reworded paragraph is the one place an existing sentence changed meaning order (the save refusal now comes before the sandbox throw). The cuts in this file are the "What Are Hooks?" heading with its one sentence, and the Status row of thebody/handlertable.skills/objectstack-ui/rules/list-views.md, the Grouping hunk, then theuserFiltershunk: it drops "and thevalidatelist-view-mode lint reports it" after the parse rejection.skills/objectstack-ui/rules/actions.md, the new-tab warning: it no longer names theActionParam[]type.Two-minute verification:
node scripts/check-skills-token-ratchet.mjsprints the three files at4509,10120and3918tokens with headroom 0 and ends on its✓line.Tests
No package source changes, so no package test or typecheck is owed. No behaviour a test pins changed, so no ablation.
Acceptance notes
actions.mditems. With them the file measures 16206 bytes, 4052 tokens, against a ceiling of 3918 (+134), after the one cut the file offers. The ratchet's earlier notes on this row say the same ("Nothing else in the file restates another passage"). Moving the row is outside this card's claimed file surface, so the text waits on the backup branch named above.data-hooks.md: the method table under "the cross-object repo" still listsupdateand notupdateById; theapi.writetoken row now names it. Not widened here.check:closed-ceremony-textcrashes locally in its self-test withspawnSync git ENOBUFS(the tracked-file listing overflows the default buffer in this container). Not measured locally; CI reads it.Verification
Local run at
e284151c, the derived list ofnode scripts/pm/dispatch-gates.mjs --commands(51 commands).Gate readings
check-skills-token-ratchetand its self-test,check:skill-refs,check:skill-served-sections,check:skill-links,check:skill-identifier-liveness,check:skill-compatibility,check:skill-frame-sync,check:doc-authoring,check:doc-formula-expressions(after building its closure),check:pm-skill-id-lint,check:role-word,check:nul-bytes,check:published-files,check-empty-changeset,check-changeset-no-major,check-adr-0087-registration,check:changeset-gate-self-tests,check-comment-mask-corpus(24733 files, 0 disagree; a second run with a longer limit after the first timed out), and the remaining whole-tree and self-test commands on the list.check:dts-closure,check:dual-build-cjs-loads,check:lean-entry-closure,check:sourcemap-no-sources-content. Reason: they read built output of every package; this diff touches no package. CI runs them.check:closed-ceremony-text(the crash above), andcheck:skill-examples(outside the derived list; needs the client SDK built; no checked example block changed).Generated by Claude Code