Skip to content

Commit a2d3008

Browse files
committed
docs(skills): pay objectstack-data SKILL.md's ratchet again after the merge
main's aiReadable row spent the headroom this branch had used; drop two more ADR asides, the ObjectExtensionSchema and PermissionSetSchema pointers (references/_index.md carries object.zod.ts and permission.zod.ts), the BASE_FIELD_DISPLAY_WHITELIST constant name and the validation.md link the Quick Reference list already gives. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5ocBJgBm6Bz2yqoibS
1 parent 4fccfc8 commit a2d3008

2 files changed

Lines changed: 7 additions & 10 deletions

File tree

‎.changeset/33506-skills-owner-id-for-assignee.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ docs(skills): an owner, assignee or 负责人 in a request is the injected `owne
77
Clause-②: no
88
Metadata-protocol: none
99

10-
objectstack-data teaches that a request's owner, assignee, 负责人 or 处理人 is the platform's injected `owner_id`, not a second person field beside it. A handler the request names apart from the owner is a `user` field that grants no access, with a label no other visible field carries, the injected `owner_id` (Owner, 负责人), `created_by`, `updated_by`, `created_at` and `updated_at` included. To pay for the text inside the file's token ceiling, SKILL.md drops a ruling date, two ADR asides and a sentence restating its heading. The Quick-Start Template's support case no longer declares an `assigned_to` user field, and a new eval asks for a ticket app with a 负责人.
10+
objectstack-data teaches that a request's owner, assignee, 负责人 or 处理人 is the platform's injected `owner_id`, not a second person field beside it. A handler the request names apart from the owner is a `user` field that grants no access, with a label no other visible field carries, the injected `owner_id` (Owner, 负责人), `created_by`, `updated_by`, `created_at` and `updated_at` included. To pay for the text inside the file's token ceiling, SKILL.md drops a ruling date, four ADR asides, two zod pointers that `references/_index.md` already carries, an internal constant name, a sentence restating its heading and a link the Quick Reference list already gives. The Quick-Start Template's support case no longer declares an `assigned_to` user field, and a new eval asks for a ticket app with a 负责人.

‎skills/objectstack-data/SKILL.md‎

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -337,9 +337,7 @@ one: `draft` / `pending` / `new`), never a terminal one; keys and values are
337337
option `value`s, never labels.
338338

339339
> **There is NO `unique` validation type** — uniqueness is a unique **index**
340-
> with its scope (ADR-0120; [rules/validation.md § Uniqueness](./rules/validation.md#uniqueness--use-unique-indexes)).
341-
342-
See [rules/validation.md](./rules/validation.md) for all types and examples.
340+
> with its scope ([rules/validation.md § Uniqueness](./rules/validation.md#uniqueness--use-unique-indexes)).
343341
344342
### Index Patterns
345343

@@ -370,21 +368,20 @@ To add fields/validations/indexes to an object you do not own, author
370368
`200`, range `0–999`); an extension can add but never remove, except that a new
371369
`label` without `pluralLabel` clears the base plural unless a tenant authored it (set both). ⛔ Not the same key
372370
as object-level `ownership` (the record-ownership enum
373-
`'user' | 'business_unit' | 'org' | 'none'`). Schema:
374-
`node_modules/@objectstack/spec/src/data/object.zod.ts` (`ObjectExtensionSchema`).
371+
`'user' | 'business_unit' | 'org' | 'none'`).
375372

376373
**Relabel a field the owner declares with `fieldPatches` — never by redeclaring
377374
it in `fields`**, which takes the field over whole and cuts it off from the
378-
owner's upgrades. A patch carries display keys only
379-
(`BASE_FIELD_DISPLAY_WHITELIST`): `label`, `description`, `inlineHelpText`,
375+
owner's upgrades. A patch carries display keys only:
376+
`label`, `description`, `inlineHelpText`,
380377
`placeholder`, and an option's `label` keyed by its stored `value`; the type,
381378
values and rules stay the owner's. A key the tenant edited keeps the tenant's
382379
text; between two extensions the higher `priority` wins. A patch naming a field
383380
or option value the target lacks is refused at install and by `os validate`, and
384381
a `picklist`-bound field's options are never patchable. Example:
385382
`defineObjectExtension({ extend: 'crm_account', fieldPatches: { industry: { label: 'Sector' }, type: { options: { customer: { label: 'Client' } } } } })`.
386383

387-
**An object an installed package ships** (ADR-0146 D10) is extended from the
384+
**An object an installed package ships** is extended from the
388385
base's paired `.custom` package (`hotcrm.custom`; **objectstack-platform**
389386
§ Customizing an installed package), never replaced: it takes no `overrides`
390387
declaration. Every field the pair adds ends in `__c` (`region__c`). The suffix is
@@ -414,7 +411,7 @@ hand-writing an RLS policy (ADR-0057 D1): `own` (default) · `own_and_reports`
414411
only `own` and `org` work in open source — the hierarchy-relative three need the
415412
paid `@objectstack/security-enterprise` plugin, **fail closed to `own`** without
416413
it, and `defineStack` errors unless the grant declares
417-
`requires: ['hierarchy-security']`. Schema: `PermissionSetSchema.objects.*`.
414+
`requires: ['hierarchy-security']`.
418415

419416
### Ownership queues — park a record for a team to claim
420417

0 commit comments

Comments
 (0)