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
22 changes: 22 additions & 0 deletions .changeset/34770-project-skill-router.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
'@objectstack/skills': patch
---

docs(skills): the objectstack-project entry file becomes a router

Clause-②: no
Metadata-protocol: none

`skills/objectstack-project/SKILL.md` goes from 12.0 KB to 9.0 KB (214 lines to 184). It keeps its numbered sections under the same headings: the three questions asked before any work (app or platform, own use or product, does the platform ship it), what is written at each stage, the four checks with what each platform command covers and one `bootStack` test, the platform-gap rules, the customer changeset and release rules, the bump steps with the backfill rules, and the list of which skill teaches which kind of change. No rule's teaching changes. This skill has no hand-written reference file (its one reference, the platform catalog, is generated), so no text moved: what left the entry was cut, and this entry says what now answers it.

**What the entry keeps.** Every ⛔ of the old entry: an own-use app is not asked for a requirement record, a design note or a changeset; `os verify` is not one of the four checks and not in the scaffold's CI; a check the platform makes is not hand-written; a platform defect is never worked around in the app; a new rule that reports existing metadata is never silenced. Beside them, the facts that pass every check and go wrong later: only errors fail `validate` and `lint`, so a warning (label case, an unresolved navigation target) passes without `--strict`; `--rls` proves consistency, not what the business intends; a Studio change stays in that environment's database and never ships; a blocked issue unblocks when the fix is in an installable version, not when the upstream change merges; `manifest.version` is set by hand because `os package publish` ships that one; the skills are re-synced with `--copy` after a bump; removing a field puts its values out of reach once the new metadata is installed, so the backfill runs first, on the old release. One sentence is new: where the installed `@objectstack/cli` differs from the `compatibility` line, the installed command is right.

**What left, and what answers it now.**

- The per-command check lists, now behind https://objectstack.ai/docs/deployment/cli. `os validate` keeps its rule families in one sentence; the kinds of reference it resolves, dataset members, package docs and the capability-provider check are on that page. `os lint` keeps "naming, label and translation-coverage style"; `--i18n-strict` is there too, and its rule on hook bodies that stop lowering is no longer listed (the rule reports itself when it fires). `os verify` keeps the round-trip and `--rls`; its other opt-in proofs and the advisory reading of `os validate`'s capability findings are there too. The `pnpm typecheck` row said only what the command's name says.
- The rest of the `bootStack` handle: that `flows.run` needs `{ automation: true }` unless the app requires `automation` is in the README that `@objectstack/verify` ships, which the entry names. The entry now says which call tests which kind of fact (`stack.hooks.run`, `stack.flows.run`, `stack.actions.run`, `stack.rows`), and keeps inline that `stack.rows` reads as a user only when the call passes `as`: without it the read is the system's, past sharing and row-level security. A plugin's `LiteKernel` tests are no longer named; the routing list sends a plugin's tests to objectstack-platform. The pointer to the scaffold's starter test is cut (the old entry called it `note.test.ts`; the template's file is `starter.test.ts`).
- Which schema changes apply on boot and which take `renamedFrom` or `os migrate`: objectstack-data `rules/field-types.md` § Changing a field that has data, which the entry names with the two commands and `--allow-destructive` for a drop.
- Restated inside the entry, so cut once: the stage rows that only named a later section (Test, Release, Upgrade); the sentence that the release note names the backfill script (the breaking-change bullet orders the administrator's steps, a backfill first); what each item of the bump's sweep step does (§3, §2 and the catalog question say it); the opening sentence that the domain skills teach the metadata, and the objectstack-upgrade row of the routing list (the frontmatter description and bump step 2 say both); that package docs are objectstack-ui's (its routing row says so); that `os package publish` is taught by objectstack-platform (its routing row lists the CLI and deployment); "no issue numbers, no internal names" in a customer changeset (the same bullet says it is written for the customer's administrator, in their words). The objectstack-ask and objectui rows are cut too: answering a question from the app's records and rendering the metadata in React are not changes to the metadata project, and each of those skills is still found by its own description.
- Cut with no other home. Each is a convention, an example or a reason, and none passes a check and fails later: the requirement-file template (`# REQ-NNNN`, asked by, their words, a user can, out of scope, status) and that it is created the first time one is needed; "the locale or device when it matters" in the acceptance line; that a product's design note "always answers" installed data and upgrade steps (the two are starred items of the design list, and the breaking-change and backfill rules require both); "if a stale bot runs, exempt that label"; "an older scaffold may lack the `pnpm test` step" (the entry says to run the four in CI); that `npx os explain` lists only the rules that carry an explanation; that `os verify` can also run as a CI step (the entry says to run it before a release); the changesets set-up command; that a Studio change's rule is in the project's `AGENTS.md`; the examples of a breaking change (a field, object, view, permission or behaviour), of a consistency question (labels are translated), of a hand-written check ("every reference resolves") and of a business judgement (how a case is routed); the qualifier "and the app pays for it" on a platform gap; "a workaround outlives the fix"; that a REST-only backfill "works on any installed metadata".

**Anchors.** No section anchor left `SKILL.md`: the title and every section heading are unchanged.
23 changes: 22 additions & 1 deletion scripts/check-skills-token-ratchet.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2916,7 +2916,28 @@ export const CEILINGS = new Map([
// pinned AT the measurement. Raise path: the standing ruling (2026-10-27,
// verbatim and untranslated) 「A:先削重复,余额按实测提高」, recognised per
// ruling record 6513306068.
['skills/objectstack-project/SKILL.md', 2990],
// 2990 -> 2244 (#34770): the entry becomes a router. It keeps the three questions asked
// before any work (app or platform, own use or product, does the platform ship it), what is
// written at each stage, the four checks with what each platform command covers, one
// `bootStack` test, the platform-gap rules, the customer changeset and release rules, the
// bump steps, the backfill rules and the list of which skill teaches which kind of change.
// This skill has no hand-authored reference file (its one reference, the platform catalog,
// is generator-owned), so nothing MOVED: the rest is CUT. Behind a pointer: the per-command
// check lists (the published CLI page), the rest of the
// `bootStack` handle (the README `@objectstack/verify` ships), the schema-change table
// (objectstack-data `rules/field-types.md`). Restated inside the entry or by its own
// frontmatter: the stage-table rows that only named a later section, the sweep step's
// parentheticals, the objectstack-upgrade routing row. With no other home, each a convention,
// an example or a rationale and none a trap: the requirement-file template, the stale-bot
// note, the changesets set-up command, the `os explain` caveat; and the two routing rows for
// work outside the metadata project (objectstack-ask, objectui), which each skill's own
// description still routes. No row rises and no row is added. The file is
// 11987 bytes (11960 priced) -> 9000 (8973 priced) -> 2244 tokens, pinned AT the
// measurement; the sum of all ceilings falls by the same 746.
// Authority: the ruling of record that orders the entry file down to router size, decision
// record #34691 S3 = A.
// ceil(($(wc -c < skills/objectstack-project/SKILL.md) - 27) / 4) == ceil(8973 / 4)
['skills/objectstack-project/SKILL.md', 2244],
]);

/**
Expand Down
Loading
Loading