From 8254c29be93b43702e91c9d5a23473679547fbfb Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 19 Nov 2026 01:05:57 +0000 Subject: [PATCH] docs(skills): the objectstack-ui router names action refusals The Actions row of the routing table names `refusals` in the words of rules/actions.md's heading, so a refused action's message routes there. Paid down first by one restatement cut in the same file; the +2 token remainder is pinned at the measurement in the ratchet row. Claude-Session: https://claude.ai/code/session_01Utp6CazXu8zyYD5PC6J2u7 Co-authored-by: Claude --- .changeset/35178-ui-router-names-refusals.md | 10 ++++++++++ scripts/check-skills-token-ratchet.mjs | 11 ++++++++++- skills/objectstack-ui/SKILL.md | 10 +++++----- 3 files changed, 25 insertions(+), 6 deletions(-) create mode 100644 .changeset/35178-ui-router-names-refusals.md diff --git a/.changeset/35178-ui-router-names-refusals.md b/.changeset/35178-ui-router-names-refusals.md new file mode 100644 index 00000000000..42defe8073c --- /dev/null +++ b/.changeset/35178-ui-router-names-refusals.md @@ -0,0 +1,10 @@ +--- +'@objectstack/skills': patch +--- + +docs(skills): the `objectstack-ui` routing table sends a refused action's message to its rule + +Clause-②: no +Metadata-protocol: none + +The Actions row of the `objectstack-ui` routing table now names `refusals` in the words of the rule's heading, "refusing by code (`refusals`)", so an agent looking for how an action refuses with a declared code and a translated message opens `rules/actions.md`. First checks 3 loses a clause that restated First checks 1. diff --git a/scripts/check-skills-token-ratchet.mjs b/scripts/check-skills-token-ratchet.mjs index 159e1a4343e..c89bbdef10f 100644 --- a/scripts/check-skills-token-ratchet.mjs +++ b/scripts/check-skills-token-ratchet.mjs @@ -959,7 +959,16 @@ export const CEILINGS = new Map([ // paragraph. Raise path: ruling record 6513306068, letter B, 「A:先削重复,余额按实测提高」. 8974 -> 9128 bytes (8954 -> 9108 priced); the row // moves +38, the measured remainder, pinned AT the measurement. // ceil(($(wc -c < skills/objectstack-ui/SKILL.md) - 20) / 4) == ceil(9108 / 4) - ['skills/objectstack-ui/SKILL.md', 2277], + // 2277 -> 2279 (#35178): the Actions row of the routing table names `refusals` in the + // words of `rules/actions.md`'s heading ("refusing by code (`refusals`)", +31 bytes), so + // a model looking for a refused action's message is sent to that rule. PAID DOWN FIRST + // by one restatement cut from this file: First checks 3's ": it decides what to write" + // (-26 bytes) restates First checks 1's "the installed contract is right". Remainder + // raised under the standing ruling 「A:先削重复,余额按实测提高」 (record 6513306068, + // letter B): 9128 bytes (9108 priced) -> 9133 (9113 priced) -> 2279 tokens, pinned AT + // the measurement, zero headroom. + // ceil(($(wc -c < skills/objectstack-ui/SKILL.md) - 20) / 4) == ceil(9113 / 4) + ['skills/objectstack-ui/SKILL.md', 2279], // 8333 -> 6193: RE-LOCK at the landed count after the #19715 split (decision // batch #213 item 1, maintainer 「1 2 4 同意」): the worked R1, the report // template and the v17-canonical shapes block moved VERBATIM into diff --git a/skills/objectstack-ui/SKILL.md b/skills/objectstack-ui/SKILL.md index f8ae01588ba..51662210342 100644 --- a/skills/objectstack-ui/SKILL.md +++ b/skills/objectstack-ui/SKILL.md @@ -36,10 +36,10 @@ metadata: go). Add beside what is there; reuse a declared dataset, field group or view. 3. **Read the type's contract.** [references/_index.md](./references/_index.md) points at each type's Zod source in `node_modules/@objectstack/spec/src/`. - `Read` it for exact keys, enum members and refusals, never from memory: it - decides what to write. A running environment serves the parsed shape as - JSON Schema (`GET /api/v1/meta/types`, `entries[].schema`): a defaulted - key reads as required and a bare-string predicate as `{}`. + `Read` it for exact keys, enum members and refusals, never from memory. A + running environment serves the parsed shape as JSON Schema + (`GET /api/v1/meta/types`, `entries[].schema`): a defaulted key reads as + required and a bare-string predicate as `{}`. 4. **Verify before reporting done.** `os validate` (`npm run validate` in a scaffolded project; `os build` runs the same gates). Most traps below pass it. @@ -82,7 +82,7 @@ Two more: [List Views](#list-views), [Actions](#actions). | A form (`simple` / `tabbed` / `wizard`): width, columns and `sections`; master-detail (a parent with line items), a public form, field conditional rules | `src/views/*.view.ts` | [Form Views](./rules/list-views.md#form-views) | | An app and its navigation; who sees or opens it; object nav, a `filters` slice or an interface page | `src/apps/*.app.ts` | [Navigation](./rules/navigation.md) | | What a record page shows: related lists, a slotted or full page, drawer or page | the object | [Record Page](./rules/record-page.md) | -| A button or operation: `locations`, visibility, dialog and toast copy, params, new tab, the body's `ctx` | `src/actions/*.actions.ts` | [Actions](./rules/actions.md) | +| A button or operation: `locations`, visibility, dialog and toast copy, params, new tab, the body's `ctx`, refusing by code (`refusals`) | `src/actions/*.actions.ts` | [Actions](./rules/actions.md) | | A number, chart, KPI or report over records: datasets, widgets, dashboard filters, `compareTo`, date bucketing, drilldown, cubes | `src/datasets/*.dataset.ts`, `src/dashboards/*.dashboard.ts`, `src/reports/*.report.ts` | [Dashboards](./rules/dashboards.md) | | A page (regions, components, print, `kind: 'html'` / `'react'` source, styling) or package docs | `*.page.ts`, `src/docs/*.md` | [Pages & Docs](./rules/pages.md) | | The props of a block in a `kind: 'react'` page | | [react-blocks.md](./references/react-blocks.md) |