Skip to content

Commit b31889f

Browse files
committed
docs(skills): rename the upgrade decision row's skill and tighten the action lint wording
The objectstack-upgrade "Open decisions" row for `agent.tools` still named the skill `case_management` in both cells while the example below it declares `crm_case_management`; both cells now match. The platform rule's enforcement sentence now says an action warns only when one package declares its name twice on one object, which is how the lint keys actions. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cw4B24PbS5MZbX1r5j
1 parent 7fd4006 commit b31889f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎skills/objectstack-platform/SKILL.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ to a new protocol major — never to silence a mismatch.
120120

121121
**`manifest.namespace` (ADR-0048):** Optional, but **enforced once set**. When a package declares `manifest.namespace: 'crm'`, every `object.name` must start with `crm_` or `defineStack` errors (`validateNamespacePrefix` in `@objectstack/spec`); the legacy `<ns>__<short>` double-underscore form is rejected, and `sys_`-prefixed names are platform-reserved and exempt. The namespace is also a package-ownership key — installing two packages that both claim `crm` fails with `NamespaceConflictError` (downgrade to a warning with `OS_METADATA_COLLISION=warn`).
122122

123-
**One rule for every name:** every metadata name a package authors starts with its namespace — flows, actions, hooks, apps, pages, dashboards, reports, datasets, queues, positions, permission sets, skills (`crm_send_email`, `crm_sales_rep`) — so no two installed packages share one. Exceptions: fields, object extensions and container views (derived from a prefixed object), and translations (`<ns>_<locale>`). Today `defineStack` refuses only a bare object name and `os build` a bare doc name; `os lint`'s `naming/namespace-prefix` warns only when one package declares an app, page, dashboard, flow, action, report or dataset name twice.
123+
**One rule for every name:** every metadata name a package authors starts with its namespace — flows, actions, hooks, apps, pages, dashboards, reports, datasets, queues, positions, permission sets, skills (`crm_send_email`, `crm_sales_rep`) — so no two installed packages share one. Exceptions: fields, object extensions and container views (derived from a prefixed object), and translations (`<ns>_<locale>`). Today `defineStack` refuses only a bare object name and `os build` a bare doc name; `os lint`'s `naming/namespace-prefix` warns only when one package declares an app, page, dashboard, flow, report or dataset name twice, or an action name twice on one object.
124124

125125
**Customizing an installed package (ADR-0146):** Customize an installed base `hotcrm` in its paired writable `hotcrm.custom`, which depends on it: a same-named item there with `overrides: { package: 'hotcrm', basedOn: '3.2.0' }` (its `manifest.id`/`manifest.version`) replaces the base's document whole. Reads honour it only from the pair (the row's `package_id`), for a view, dashboard, report, email_template, translation, flow, action, page, app, dataset, doc, book or mapping, never judging `basedOn`. An email template is one item per (name, locale): an override names a locale the base ships; one it does not ship is added without `overrides`. Then no `?package`, `?package=hotcrm`, the layered read and both lists serve it, and removing the pair's item (`DELETE …?package=hotcrm.custom`) serves the base's again; the env-wide list holds one item per name one code package ships (a dependent's stays under its own `?package=`); a pre-D11 unbound Setup row wins over the base's until `os migrate packageless-overlays` moves it, and once movable as a declared override, its package-less save, publish, reset and rollback are refused (D11); an email-template row at a locale the base does not ship moves as the pair's own member and keeps that write. The base's address serves the pair's added locale too (both lists, the layered read with `code` null and `effective` the pair's, the execution list, a send in that locale); one a dependent adds under the base's name is served only under its own `?package=`. An undeclared pair row or a dependent's row at a base-shipped locale is an orphan in the layered read's `overlay`, `effective` = the base's. An override may narrow a public form's anonymous intake, never re-open one any honoured body withdrew. `GET /packages/hotcrm.custom/export` carries it with `overrides`.
126126

‎skills/objectstack-upgrade/references/examples-upgrade.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ _N sites, M conversions. Ported into sources from `os migrate meta --out`._
7070

7171
| Item | Site | Options | Recommendation | Blocking? |
7272
|:--|:--|:--|:--|:--|
73-
| `agent.tools` → which skill | `src/ai/support-bot.ts:12` | `case_management` · new skill | `case_management` | no — parses without it |
73+
| `agent.tools` → which skill | `src/ai/support-bot.ts:12` | `crm_case_management` · new skill | `crm_case_management` | no — parses without it |
7474

7575
## 4 · Pending, per deployment
7676

0 commit comments

Comments
 (0)