Repository navigation
feat(spec, platform-objects): Studio action form rows for texts and refusals - #35636
Conversation
The hook form gains a key-only record row for HookSchema.texts beside refusals, with message and params, and the reconciliation ledger drops its hook/texts omit row. Claude-Session: https://claude.ai/code/session_01L6bhgX6mQpVU8yUysiRAFC Co-authored-by: Claude <noreply@anthropic.com>
A typed hook handler can call ctx.text(key, params) against HookContext: the member is declared the way api and notice are (z.unknown at parse, a static cast for the type), with the signature the runtime binds, and the named HookTextReader type beside HookNoticeSetter. Claude-Session: https://claude.ai/code/session_01L6bhgX6mQpVU8yUysiRAFC Co-authored-by: Claude <noreply@anthropic.com>
…ms packs en regenerated from the form source; the ten translated packs carry hand-written translations following each pack's refusals wording. Claude-Session: https://claude.ai/code/session_01L6bhgX6mQpVU8yUysiRAFC Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgX6mQpVU8yUysiRAFC Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgX6mQpVU8yUysiRAFC Co-authored-by: Claude <noreply@anthropic.com>
… changeset Claude-Session: https://claude.ai/code/session_01L6bhgX6mQpVU8yUysiRAFC Co-authored-by: Claude <noreply@anthropic.com>
…ated children Claude-Session: https://claude.ai/code/session_01L6bhgX6mQpVU8yUysiRAFC Co-authored-by: Claude <noreply@anthropic.com>
…at minor Claude-Session: https://claude.ai/code/session_01L6bhgX6mQpVU8yUysiRAFC Co-authored-by: Claude <noreply@anthropic.com>
The action form gains a texts row beside the script body: a key-only record keyed by the snake_case key the body asks for with ctx.text, each entry editing message and params, gated like the body. The action/texts omit row is retired from the reconciliation ledger. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgX6mQpVU8yUysiRAFC
… the eleven metadata-forms packs en regenerated from the form; the ten translated locales hand-written from each pack's hook texts wording. The action enumerated-children pin moves 7 to 9 and the translated row-label pin 744 to 747. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgX6mQpVU8yUysiRAFC
The action form gains a refusals row between the script body and texts: the hook form's key-only record (message, status, reasons, params), the entry the one factory builds for both, gated like the body. The action/refusals omit row is retired from the reconciliation ledger. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgX6mQpVU8yUysiRAFC
… in the eleven metadata-forms packs en regenerated from the form; the ten translated locales reuse each pack's hook refusals entries for the five entry fields (the en sources are identical) and hand-write the top row. The action enumerated-children pin moves 9 to 14 and the translated row-label pin 747 to 753. Adds the changeset for both rows. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgX6mQpVU8yUysiRAFC
📓 Docs Drift Check10 anchor(s) derived from 2 changed package(s); no hand-written page names any of them, so this run has nothing to list — not a clean bill of health. This check sees only pages that NAME a derived anchor: one that documents this change in prose, or enumerates it in an authoring dialect, names none and stays invisible to it on every run. What this run could not see
Coarse fallback — 174 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 7ed3c359b21571901cf39f5bc30ba9440239e1cd && git checkout 7ed3c359b21571901cf39f5bc30ba9440239e1cd
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 2495486fd542c9aa1d48bfda32fae3b3f6a48a61 5cddfca123c0299e592aac2b897de00b20d8c776 && git checkout -B drift-repro 2495486fd542c9aa1d48bfda32fae3b3f6a48a61 && git merge --no-ff 5cddfca123c0299e592aac2b897de00b20d8c776
node scripts/docs-audit/affected-docs.mjs --json 2495486fd542c9aa1d48bfda32fae3b3f6a48a61 |
…s and refusals gates The two new action form rows are each gated on data.type == 'script', so the shipped-predicate pin moves 91 to 93 and the literal-comparison pin 65 to 67 (on main as of 5c5b54d, merged in the previous commit). Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgX6mQpVU8yUysiRAFC
|
repo:objectstack#1 · os-sales · session_01L6bhgX6mQpVU8yUysiRAFC Final green head for review: Every check-run on this head is Owed: L1 (thread L1-a) and L2 at Generated by Claude Code |
|
repo:objectstack#1 · os-sales · session_01L6bhgTcFanGhTvqS1V2Q4U 维护者速读
席位核对 — ACCEPT (L1-a) · repo:objectstack#1 · head
|
…-lryneu # Conflicts: # packages/platform-objects/src/apps/translations/object-lifecycle-panel-echo-decisions.test.ts
|
repo:objectstack#1 · os-sales · session_01L6bhgX6mQpVU8yUysiRAFC Contract reviewServed-tier: ① Derived judgmentsPR #35636, cards #35096 and #34823 in one fold. Six accept-set and public-surface changes follow from the diff, and each is right.
② Semver level
③ Boundary flags
④ Design judgment
No must-fix, no should-fix.
Enforcing files in the diff
Implemented-by: VERDICT: PASS Generated by Claude Code |
|
repo:objectstack#1 · os-sales · session_01L6bhgX6mQpVU8yUysiRAFC The brief this card thread handed its isolated Contract review brief — PR #35636 @
|
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob L2 adoption · 2026-11-19T21:21Z · The seat adopts the #34575 card thread's isolated record 7022528162 for head The brief, 7022540779, came from The nits are dispositioned as follows. N1 is pre-existing: the action designer surfaces still show refusals and texts as raw JSON. The thread files it as a |
|
repo:objectstack#1 · os-sales · session_01L6bhgTcFanGhTvqS1V2Q4U 维护者速读
席位核对 — ACCEPT (L1-a, delta) · repo:objectstack#1 · head
|
|
repo:objectstack#1 · os-sales · session_01L6bhgX6mQpVU8yUysiRAFC Landing (2026-11-19T21:22Z) · head
Readying and arming auto-merge; the queue lands it. Generated by Claude Code |
Requested by Sales · project thread
Fixes #35096
Fixes #34823
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
Studio action form,
texts(#35096).action.form.tsgains atextsrow in the Behavior section, right after the scriptbody:type: 'record',widget: 'key-only-record', entry fieldsmessage(textarea, required) andparams(tags). Those are the two keys of the served entry (ActionTextSchema = declaredTextEntrySchema('action'),{ message, params? }), the same factory as the hook's, so this is the hook form'stextsrow (PR #35510) with the help text worded for an action's body. Theaction/textsomit row is deleted frommetadata-form-zod-reconciliation.test.ts.Studio action form,
refusals(#34823). Arefusalsrow sits betweenbodyandtexts: the hook form'srefusalsrow, entry fieldsmessage(textarea, required),status(number),reasons(key-only record of{ message }) andparams(tags). Those are the four keys ofActionRefusalSchema = declaredRefusalEntrySchema('action'), the hook entry's factory, so the action entry does haveparams. Theaction/refusalsomit row is deleted.Where and why. Both rows sit in Behavior, directly under
body, because they are read by thejsbody's code (throw { code },ctx.text(key)) and the retired omit rows describe them as declared "beside the body". Both carryvisibleWhen: "data.type == 'script'", thebodyrow's gate: the parse refuses both keys on any other action type, and the help text names the expression-body refusal (the form's predicates do not read intobody.language). The key-only face is generic andrefusalsalready exercises the same entry controls on the hook form, so no renderer change.Packs.
enregenerated bynode scripts/check-i18n-bundles.mjs --write; the ten translated locales hand-written. The five refusal entry fields have en sources byte-identical to the hook's, so each locale reuses its own hook translation. The two top rows and thetextsentries are adapted from the hook wording (action, body,script). The*.source-hashes.generated.tsecho entries match the hook rows' (de/pt-BRStatus, frMessage).Read first, by risk:
packages/spec/src/ui/action.form.ts: the two rows and their gate.packages/platform-objects/src/apps/translations/zh-CN.metadata-forms.generated.ts, the nine new entries underaction.fields.packages/spec/src/system/metadata-form-declared-rows.pin.test.ts: the new pin.Tests
metadata-form-declared-rows.pin.test.ts(the shared declared-rows harness): each row is offered once, asrecord+key-only-record; its entry controls are exactlymessage:textarea!,params:tags(texts) andmessage:textarea!,status:number,reasons:record:key-only-record,params:tags(refusals, withreasonsholdingmessage:textarea!); the entry field names equalObject.keys(ActionTextSchema.shape)/Object.keys(ActionRefusalSchema.shape); the gate equalsbody's; the order isbody,refusals,texts. Controls: the same probe reads the hook rows (lit) and a key no form offers (dark).metadata-form-zod-reconciliation.test.tspasses with both omit rows gone.packages/platform-objects/src/apps/translations/: action enumerated unwalked children 7 to 14 (action-body-panel-echo-decisions.test.ts, with the new parentsrefusals,refusals.reasons,texts), translated row labels 744 to 753 (object-lifecycle-panel-echo-decisions.test.ts).Readings (head 52a32ad)
pnpm --filter @objectstack/spec test: Test Files 857 passed (857); Tests 27399 passed, 1 todo (27400).pnpm --filter @objectstack/platform-objects test: Test Files 124 passed (124); Tests 2061 passed (2061).pnpm --filter @objectstack/spec typecheck && pnpm --filter @objectstack/platform-objects typecheck(after the build, under the verify lock): VERDICT command-exit 0 (check:test-typecheck: OK, spec 240 ledgered errors held, platform-objects 3).pnpm --filter @objectstack/spec check:generated: exit 0, all 14 artifacts up to date.pnpm check:i18n: exit 0, all bundles in sync.pnpm check:i18n-coverage: exit 0, none new.node scripts/check-cli-command-ids.mjs: exit 0.check-empty-changeset.mjs,check-adr-0087-registration.mjsexit 0;check-changeset-no-major.mjs --event(this body) exit 0, level axisno/noneatpatch.node scripts/pm/dispatch-gates.mjs --commands: 87 families;--ran: 85 run with exit 0, 2 NOT MEASURED (exit 3):check-plugin-teardown-shape.mjs --self-test(its fixture commit is outside this shallow clone) andcheck:dual-build-cjs-loads(needs a full workspace build; CI runs it).node scripts/pm/overlap-check.mjs --branch=HEAD: main merges cleanly; feat(spec): userActions.transfer, the per-object switch for the Change Owner action, and its structural eligibility #35583 conflicts in one count pin (see Acceptance notes).Acceptance notes
pnpm --filter @objectstack/spec check:generatedreports all 14 artifacts up to date after the change (theauthorable-surface/api-surfaceshards do not move: a form row is not a schema member), andcheck-changeset-no-major.mjs --eventon this body passes the level axis withMetadata-protocol: none/patch. The claim'sno/nonestands.overlap-check.mjs --branch=HEADreports a textual conflict with open feat(spec): userActions.transfer, the per-object switch for the Change Owner action, and its structural eligibility #35583 inobject-lifecycle-panel-echo-decisions.test.ts(both PRs move the same count pin); main merges cleanly, and feat(spec, platform-objects): the standard unit table and the organization unit object sys_unit (ADR-0158 U1-U3) #35581 merges cleanly. Whichever lands second re-reads the count.Verification
Two minutes:
pnpm --filter @objectstack/spec exec vitest run src/system/metadata-form-declared-rows.pin.test.ts src/system/metadata-form-zod-reconciliation.test.ts. Expected: both files pass, andgit grep -n "type: 'action'" -A3 packages/spec/src/system/metadata-form-zod-reconciliation.test.ts | grep -E "key: '(texts|refusals)'"prints nothing.Generated by Claude Code