Repository navigation
docs(skills): objectstack-ui and objectstack-i18n teach the action notices key - #39234
objectstack-fleet[bot] wants to merge 3 commits into
Conversation
…jectstack-i18n Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CZjeArT6MXwmFD2V36
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CZjeArT6MXwmFD2V36
|
repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd Contract reviewServed-tier: ① Derived judgmentsFull first-round review of PR #39234 (card #39203, follow-up of #39182 / PR #39201 under ruling A 7359751238 on #39045). Read: The
Evals: both files parse; ids are unique and sequential (ui #29, i18n #18); each new case has Ratchet: Findings:
② Semver level
③ Boundary flags
④ Design judgment
No must-fix. One should-fix (S1), open; it needs a delta read before landing. Two nits. Implemented-by: VERDICT: PASS |
… reference answer writes Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CZjeArT6MXwmFD2V36
|
repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd Contract reviewServed-tier: ① Derived judgmentsThis is a delta of the contract review of head Findings of the earlier record, by id:
Ratchet at this head: exit 0; No new finding in the delta. ② Semver level
③ Boundary flags
④ Design judgment
No must-fix, no should-fix. Two nits carried. Implemented-by: VERDICT: PASS |
Requested by Bill · project thread
repo:objectstack@os-bill · os-bill · session_01Utp6CZjeArT6MXwmFD2V36
Fixes #39203
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
ActionSchema.notices(merged in #39201) is taught in the two published skills an author of a dialog action reads. Read from the spec as merged:packages/spec/src/ui/action-notices.ts,packages/spec/src/system/translation.zod.ts.skills/objectstack-ui/rules/actions.md: one bullet under "Visibility, Disable & Feedback", aftersubmitText. It gives the named map with one notice spelled out, the closedseverityset (infoby default,warning,error,success),title/bodyas plain I18nLabels (at least one; no hole, markup or link),visiblein the action's ownvisibleshape and scope (never the values typed into the dialog), that a notice is display only and gates nothing, and that the key is refused on an action with neitherconfirmTextnor a non-emptyparams.skills/objectstack-i18n/SKILL.md: the key map listsnotices.{notice}.{title,body}under_actions.{action}, whichglobalActions.{action}already inherits by its own line. The notice name is the key.objectstack-ui/views-apps-actions-pages#29(a param-dialog warning on an expired quote) andobjectstack-i18n/bundles-locales-coverage#18(where that warning's Chinese text goes).skills/objectstack-ui/evals/README.mdnames the new case.alerts/warnings,message/text,visibleWhen) and the refused banner keys (icon,action,dismissible,dismissKey). The strict schema refuses each with the key to write.Landing order.
packages/spec/liveness/action.jsonholdsnoticesatplannedwithauthorWarn: no console dialog draws the key until the console half of #39045. The text here describes the final behaviour with no "not drawn yet" sentence, so this PR lands only after that console PR flips the row tolive(the seat holds the landing; claim comment 7364520978).Size readings
skills/objectstack-ui/rules/actions.mdskills/objectstack-i18n/SKILL.mdSKILL.mdfiles, summedToken ratchet
objectstack-i18n/SKILL.md: no raise. The key-map entry adds 36 bytes and is paid by a 35-byte deletion in the same file (net +1 byte, inside the row): "preflightholdsfieldsandcolumnsonly, notitle." becomes "preflight: notitle." (the key map listspreflight.fieldsandpreflight.columnsand nothing else). The row stays at 2243.objectstack-ui/rules/actions.md: 3918 to 4062 (+144), under the standing ruling 「A:先削重复,余额按实测提高」 (maintainer, 2026-10-27; ruling record 6513306068, letter B). Paid down first by 20 bytes of restatement in the same file: the second " (Declared refusals)" pointer closing the "Refusing by code" paragraph, which names that section four lines up. The earlier notes on this row record that nothing else in the file restates another passage. The bullet adds 598 bytes, the cut removes 20: 15669 to 16247 bytes, 4062 tokens, pinned at the measurement.Tests
ActionSchemaat this head: an action withparamsand two notices (onefeatures.*condition, onerecord.*condition) parses; the samenoticeson an action with neitherconfirmTextnorparamsis refused with "noticesare drawn in the dialog an action opens before it runs…".--dry-runplans the two new cases.Live check
pnpm --filter @objectstack/scenarios skill-evals --case 'objectstack-ui/views-apps-actions-pages#29,objectstack-i18n/bundles-locales-coverage#18' --model haiku --effort medium, one repeat, subscription login (oauth_token, no API key), servedclaude-haiku-5-5.724b3695, the new cases added)598aa3a4)objectstack-ui/views-apps-actions-pages#29notices,visible,record.valid_until,severity,title/bodyobjectstack-i18n/bundles-locales-coverage#18title/bodyleaf under the notice nameThe baseline was taken in the same worktree, with the two skill text files checked out at the merge base and restored after, not in a second
-cmptree: the runner and the cases are the same, and only the two text files differ. Notional cost the CLI reported: $0.01 per round, two rounds.Acceptance notes
notices.{notice}.{title,body}); the sentence form lives in the eval's expected output and intranslation.zod.ts, where the entry already sends a reader for a key's meaning.features.emailDelivery, the flag the protocol page's own example reads.Verification
Two minutes: open
skills/objectstack-ui/rules/actions.mdand read thenoticesbullet besidepackages/spec/src/ui/action-notices.ts; each clause is one sentence of that module's header.Read first, by risk:
scripts/check-skills-token-ratchet.mjs(the one row that rises, and its note),skills/objectstack-ui/rules/actions.md(the bullet and the 20-byte cut),skills/objectstack-i18n/SKILL.md(the key map line and thepreflightsentence).Local gates at 598aa3a
node scripts/pm/dispatch-gates.mjs --commandsderived 69 families at this head;--ranreconciled 66 run, 3 NOT-MEASURED, 0 UNRUN.check-skills-token-ratchet.mjsand its--self-test(111 cases),pnpm --filter @objectstack/spec run check:skill-docs,pnpm --filter @objectstack/lint run check:doc-formula-expressions(after building the lint closure),check:skill-links,check:skill-top-level-keys,check:published-files,check-empty-changeset.mjs,check-nul-bytes.mjs, and the rest of the 66.check:pm-dispatch-gatesexited 1 on its first run, which overlapped the changeset commit and the baseline eval round's file swap; on the settled tree it exits 0 (fast tier, 2904 cases).check:dts-closure,check:dual-build-cjs-loads,check:lean-entry-closureanswered PREREQUISITE NOT MET (they read every package'sdist/; this diff changes no package source).Generated by Claude Code