Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .changeset/35178-ui-router-names-refusals.md
Original file line number Diff line number Diff line change
@@ -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.
11 changes: 10 additions & 1 deletion scripts/check-skills-token-ratchet.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions skills/objectstack-ui/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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) |
Expand Down
Loading