Skip to content

Commit 05abc10

Browse files
committed
docs(spec): editable names the row-level write scope it leaves out, beside the object grant
Claude-Session: https://claude.ai/code/session_01WGufzfXsZBPnnuWWQGXm48 Co-authored-by: Claude <noreply@anthropic.com>
1 parent c28f8a4 commit 05abc10

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

‎content/docs/references/api/protocol.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1756,7 +1756,7 @@ The published metadata item body, opaque by ruling (1C). Shape is the item's own
17561756
| **object** | `string` | ✅ | Object name |
17571757
| **recordId** | `string` | ✅ | The record the projection was judged on |
17581758
| **readable** | `string[]` | ✅ | Fields the caller may read on this object. Reads are judged row-blind, so this equals the object-wide read projection |
1759-
| **editable** | `string[]` | ✅ | Fields the caller may write on this record, as field-level security judges an update of the stored row: a row-conditioned field permission locks a field only on the rows its condition names. A field absent here is refused by the write gate. The object grant and a field's own rules (readonly, computed types) are not part of it |
1759+
| **editable** | `string[]` | ✅ | Fields the caller may write on this record, as field-level security judges an update of the stored row: a row-conditioned field permission locks a field only on the rows its condition names. A field absent here is refused by the write gate. The object grant, the record's row-level write scope (sharing, row-level security, ownership) and a field's own rules (readonly, computed types) are not part of it |
17601760

17611761

17621762
---

‎packages/spec/src/api/protocol.zod.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3118,7 +3118,8 @@ export const GetRecordFieldAccessResponseSchema = lazySchema(() => z.object({
31183118
editable: z.array(z.string()).describe(
31193119
'Fields the caller may write on this record, as field-level security judges an update of the stored row: a '
31203120
+ 'row-conditioned field permission locks a field only on the rows its condition names. A field absent here is '
3121-
+ 'refused by the write gate. The object grant and a field\'s own rules (readonly, computed types) are not part of it',
3121+
+ 'refused by the write gate. The object grant, the record\'s row-level write scope (sharing, row-level security, '
3122+
+ 'ownership) and a field\'s own rules (readonly, computed types) are not part of it',
31223123
),
31233124
}));
31243125

‎packages/spec/src/contracts/security-service.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -620,8 +620,9 @@ export interface ISecurityService {
620620
* (`FieldPermissionSchema.when`) contributes its lock only on the rows its
621621
* condition names, and a field is in `editable` iff a by-id update of that
622622
* row naming it passes field-level security. Like {@link getWritableFields},
623-
* neither the object grant nor a field's own rules (`readonly`, a computed
624-
* type) are part of the answer.
623+
* neither the object grant, the record's row-level write scope (sharing,
624+
* row-level security, ownership) nor a field's own rules (`readonly`, a
625+
* computed type) are part of the answer: a reader ANDs it with those.
625626
*
626627
* **`readable` is {@link getReadableFields}' answer**, unchanged: reads are
627628
* judged row-blind (a `when` reaches the edit vote only).

0 commit comments

Comments
 (0)