Repository navigation
docs(actions, skills): a record id in an action's own params is input the body checks as the caller - #39773
Draft
objectstack-fleet[bot] wants to merge 1 commit into
Draft
docs(actions, skills): a record id in an action's own params is input the body checks as the caller#39773objectstack-fleet[bot] wants to merge 1 commit into
objectstack-fleet[bot] wants to merge 1 commit into
Conversation
… the body checks as the caller Source: security seat order Claude-Session: https://claude.ai/code/session_01ASNY8XNef4ywkQio6S9ju4 Co-authored-by: Claude <noreply@anthropic.com>
Contributor
Author
|
security@os-mickey · os-mickey · session_01ASNY8XNef4ywkQio6S9ju4 Handover · 2026-12-05T13:11Z. This draft moves to the seat
|
This was referenced Dec 5, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Source: security seat order
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
content/docs/ui/actions.mdx, section "Authorization inside an action": one new paragraph after the param pass-through paragraph. It says that, for a script body or a registered handler, the call'srecordIdand itsparams._selectedIdsare the only ids the platform reads as the caller; that a record id arriving in the action's own params (a declared lookup param, or a custom key a param-less handler action passes through) is the body's input; that the param contract judges presence and value shape and reads no row; and that the body checks such an id as the caller, fromctx.userand the row, before acting on it. It closes by pointing at the flow start door, which does load an input a flow reads as a record id in the caller's own scope.skills/objectstack-ui/rules/actions.md, section "Action body context (ctx)": one sentence saying the same..changeset/actions-param-record-id-is-input.md:@objectstack/skillspatch (the package is published; itsprivatekey is absent).Nothing in the platform changes.
Each sentence, and the code it was read against
recordIdandparams._selectedIdsare the only ids read as the caller for a script body or handlerpackages/runtime/src/action-dispatch.ts, the admission that ends inloadActionSubjectRecordandloadActionSelectionRecords: these two are the only caller-scope reads before the script dispatch;packages/runtime/src/action-execution.tsloadActionSubjectRecord,loadActionSelectionRecords,actionSelectionIsReadpackages/runtime/src/action-execution.tsenforceActionParams;packages/spec/src/ui/action-params.zod.tsvalidateActionParams(a pure check:required,valueSchemaFor(..., 'stored'), unknown keys)enforceActionParams, the!declaresParams && !isDeclarativeUpdateAction(action)arm returnsnullunless a key is a near-miss of a built-inctx.apiis elevated and reads and writes the row either waybuildActionExecutionContext(isSystem: trueplus the'action'mark),buildActionApictx.userandctx.paramsare on the context a body and a handler receiveaction-dispatch.ts, theactionContextliteral of the script dispatch (user,params: { ...params, recordId, objectName })type: 'flow'action has an input the flow's definition reads as a record id loaded in the caller's scope before the runaction-execution.ts, the flow dispatch's call ofrefuseUnreadableFlowStartRecordswithinputs: flowActionStartInputs(...), and that function's doc comment; the linked row ofcontent/docs/automation/flows.mdx("Run a flow via API")Skills size (required readings)
skills/objectstack-ui/rules/actions.md, linesskills/objectstack-ui/rules/actions.md, bytesskills/objectstack-ui/rules/actions.md, priced tokensSKILL.mdinskills/, lines summedskills/objectstack-uishipped files (all butevals/), lines and bytesNo ceiling moves. The sentence is paid for inside the file; the changeset lists what leaves: three words of the
ctxsentence ("server-side", "target", "scoped"), five lines or clauses of the examples (errorMessagein the reassign example,successMessageand the secondvisibleclause in the convert example,timeoutMsand thestatusvalue in the add-to-campaign example), and a few connecting words in two notes.Tests
Docs and skills wording only; no package source changes, so no package
testortypecheckis owed. All readings below are on head884b279db7f.Gate readings
node scripts/pm/dispatch-gates.mjs --ran:Run reconciliation — 73 derived, 69 run, 4 NOT-MEASURED, 0 UNRUN.node scripts/check-skills-token-ratchet.mjs: exit 0,skills/objectstack-ui/rules/actions.md is 4071 tokens (ceiling 4071; headroom 0).pnpm --filter @objectstack/spec run check:skill-examples: exit 0 after building the@objectstack/client-reactclosure,345 prose examples type-check across 3 surface(s).pnpm --filter @objectstack/spec run check:docs,check:empty-state,check:liveness,check:strictness-ledger,check:variant-docs,check:yaml-examples: exit 0 each.pnpm --filter @objectstack/lint run check:doc-formula-expressions,check:doc-security-posture: exit 0 each.pnpm check:doc-anchors,check:doc-authoring,check:doc-frontmatter,check:docs-transcript-drift,check:corpus-claim-drift,check:skill-links,check:skill-identifier-liveness,check:skill-compatibility,check:skill-frame-sync,check:nul-bytes,check:published-files,check:changeset-gate-self-tests, and the remaining derived node-script families: exit 0 each.pnpm check:dts-closure,check:dual-build-cjs-loads,check:lean-entry-closure,check:sourcemap-no-sources-content, reason: each refused with exit 3 asking for a full build of every package, which this diff does not touch; CI owns them.node scripts/ci/snapshot-next.mjs --self-testexits 1 with one failed case of its stable-lane battery. It exits 1 the same way with the three changed files put back to the base commit56bed066364.Acceptance notes
ctx.recordLoadDenied: truewhen the caller cannot read the row.refuseDeniedSubjectLoadBeforeDispatchinaction-execution.tsnow refuses that call with404 RECORD_NOT_FOUNDbefore a script body or a flow starts, so the guard the section teaches is one the platform already makes on those arms. Not changed here: the order covers the params rule only.content/docs/automation/flows.mdxdescribes a start input'sobjectNameas planned and read by no start door in its variables table, and as loaded in the caller's scope in the "Run a flow via API" table. Not changed here.Verification
Read first, by risk:
content/docs/ui/actions.mdx, the new paragraph: every claim is in the table above.skills/objectstack-ui/rules/actions.md, thectxparagraph and the trimmed example lines.Two-minute check:
node scripts/check-skills-token-ratchet.mjsprintsskills/objectstack-ui/rules/actions.md is 4071 tokens (ceiling 4071; headroom 0)and exits 0.Generated by Claude Code