You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7ba0132
Browse filesBrowse the repository at this point in the historyBrowse files
docs(skills): objectstack-data teaches an object extension's fieldPatches
The Object Extension Model section gains one paragraph: relabel a
vendor field with `fieldPatches` instead of redeclaring it in `fields`;
the display keys it may carry, who wins, what is refused, and the
`crm_account.industry` example. Paid for by deleting restatement in the
same file (the search section's second refusal paragraph, the index
blockquote and the validation type list, each already carried by the
skill's rules files). A patch changeset for the published skills package.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017ihL2g7RyXa8ErM6GAkHyc
docs(skills): objectstack-data teaches an object extension's `fieldPatches` — relabel a vendor field without redeclaring it in `fields`
6
+
7
+
Clause-②: no
8
+
Metadata-protocol: none
9
+
10
+
-**Before.**`ObjectExtensionSchema.fieldPatches` is applied by the registry merge and refused at install and by `os validate` when it names nothing, but the published `objectstack-data` skill's *Object Extension Model* taught only `fields` / `priority`, so an agent that wanted a vendor field to read "Sector" instead of "Industry" redeclared the field in `fields` and took it over.
11
+
-**Now.** The section carries one paragraph on `fieldPatches`: display keys only (`BASE_FIELD_DISPLAY_WHITELIST` — `label`, `description`, `inlineHelpText`, `placeholder`, and an option's `label` keyed by its stored `value`), type / values / rules stay the owner's, a tenant's edit wins, the higher `priority` wins between extensions, a patch naming a missing field or option is refused at install and by `os validate`, a `picklist`-bound field's options are not patchable — with the `crm_account.industry` example.
12
+
- The file stays under its token ceiling: the new text is paid for by deleting restatement in the same file (the search section's second refusal paragraph, folded into its first; the index blockquote and the validation type list, each already carried by `rules/indexing.md` / `rules/validation.md`). No ceiling moves, no frontmatter, schema, key or behaviour changes.
> **There is NO `unique` validation type** (removed from the spec).
340
329
> Enforce uniqueness — including composite — with a **unique index**, and state
@@ -357,14 +346,10 @@ indexes: [
357
346
]
358
347
```
359
348
360
-
> `type` and `partial` were **retired at protocol 17** (a `tsc` and parse error;
361
-
> `os migrate meta --from 16` lists the edits). A unique index **states its
362
-
> scope** — `'organization'` or `'global'`: on a declared index bare `unique: true`
363
-
> is the deprecated spelling of `'global'` and protocol 18 rejects it; on a FIELD
364
-
> it means `'organization'` and stays valid.
365
-
366
-
See [rules/indexing.md](./rules/indexing.md) for composite indexes, unique scope,
367
-
and how to build partial / gin / gist indexes at the database layer.
349
+
See [rules/indexing.md](./rules/indexing.md) for composite indexes, unique scope
350
+
(`'organization'` / `'global'` — on a declared index bare `unique: true` is
351
+
refused), the retired `type` / `partial`, and partial / gin / gist indexes at the
352
+
database layer.
368
353
369
354
→ Moved verbatim to [references/examples-objects.md](./references/examples-objects.md) § Lifecycle Hooks (the hooks reference itself is [references/data-hooks.md](./references/data-hooks.md)).
370
355
@@ -380,6 +365,17 @@ as object-level `ownership` (the record-ownership enum
0 commit comments