Skip to content
Draft
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
5 changes: 3 additions & 2 deletions skills/objectstack-automation/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,9 @@ run reports success. `objectstack validate` names the offending template.

> **Writing a `readonly` field? Set `runAs: 'system'`.** `readonly: true`
> governs the end-user surface: under the default `runAs: 'user'`, the engine
> **silently strips** a `readonly` field from an `update_record` payload
> — the step reports success but the value never lands. A flow that
> **strips** a `readonly` field from any non-system write — `create_record` and
> `update_record` alike — the step reports success but the value never lands,
> and the drop is named in the step's warnings. A flow that
> maintains a `readonly` field (approval stamps, conversion flags, SLA
> markers, rollups) must run `runAs: 'system'`, the trusted-writer channel.
> `os validate` / `os build` fail a `runAs:'user'` `update_record` that writes
Expand Down
2 changes: 1 addition & 1 deletion skills/objectstack-data/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ export const Invoice = ObjectSchema.create({
incoming changes when the predicate is `TRUE`.
- **`readonly: true` governs the end-user surface, not trusted system writers.**
A non-system write (REST/UI, and any `runAs:'user'` flow — the default) has
the field **silently stripped** from an UPDATE payload; the write reports
the field **stripped** from any non-system write; the write reports
success but the value never lands. System-context writes —
`runAs:'system'` flows, system hooks, seeds, imports, migrations — are exempt
and DO write it. So the pattern "users can't edit this, but automation
Expand Down
Loading