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 277bda5
Browse filesBrowse the repository at this point in the historyBrowse files
docs: error-handling, error-catalog and cli pages teach the optional controlled_by_parent master
A controlled_by_parent object may declare its only master_detail with
required: false (ADR-0055 §1 as amended). A stored empty reference on
it is not a 422: the row is its owner's, read by the owner and View All
on the detail and written by the owner and Modify All. The 422
MISSING_REQUIRED_FIELD exception now names a required master only; the
declaration table gains the optional-master row; the v18 refused-shape
list no longer lists an explicit required: false; and
--parent-write-reach names the null-master records it proves.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017ihL2ebbZkr2QAEG1x7UC8
| 413 |`validation`|`PAYLOAD_TOO_LARGE` — an upload over the storage settings' `max_upload_mb`, or an import over its row ceiling (see [above](#payload_too_large)) |
1014
-
| 422 |`validation`|`MISSING_REQUIRED_FIELD` on a `controlled_by_parent` detail whose stored master reference is null (see [above](#missing_required_field)) — this row is an exception to the 400 row, not a second home for the code |
1029
+
| 422 |`validation`|`MISSING_REQUIRED_FIELD` on a `controlled_by_parent` detail whose stored reference to a required master is null; an optional master's empty reference is not an error (see [above](#missing_required_field)) — this row is an exception to the 400 row, not a second home for the code |
Copy file name to clipboardExpand all lines: content/docs/deployment/cli.mdx
+15-8Lines changed: 15 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2139,7 +2139,7 @@ can produce, because both supply a live one.
2139
2139
| Types with no repository write path (`agent`) | Their write path records no history and would force a draft live — a half-write is worse than leaving the row to the read path |
2140
2140
| Rows that still fail the current schema after conversion | That is a genuine contract violation, not chain-owned history. The write path's rejection is correct; fix the row in Studio |
2141
2141
| A site the conversion chain leaves as stored because no lossless rewrite exists — above all a page filter carrying `$and` / `$or` / `$not` | Flattening a combinator changes which rows the page selects, so it is never done. Each site is printed as a `TODO` line under its row — path, block, and what blocks the rewrite — whatever the row's outcome; a row with nothing but TODOs is reported `skipped`. It does not fail the run, since no run of this pass can clear it: rewrite each site by hand |
2142
-
| A stored shape protocol 18 refuses and no conversion rewrites — a `controlled_by_parent` object without exactly one required `master_detail` (two masters, none, a required `lookup` only, an explicit `required: false`), a view bound to the retired view-level API data source or a page component whose `data` prop binds it (`object-grid`, `object-map`, `object-gantt`, `object-tree`), a flow value slot carrying a `{…}` token (a `get_record` / `update_record` / `delete_record` filter operand among them) | Each would need a choice only its owner can make — which master, which page, what an absent value should do — so it is never rewritten. Each site is printed as a `TODO` line under its row, naming the step-18 entry that refuses it, the object, view, page component or flow node, and the owner's choices; a binding's request headers are withheld. Until it is rewritten by hand, the row is refused: an object registers but derives no master, a view registers under `[metadata_spec_invalid]`, a page still loads, its next save is refused at the metadata save door (422), and `os validate`, `os build` and `os lint` refuse the binding in source, and a flow is not registered |
2142
+
| A stored shape protocol 18 refuses and no conversion rewrites — a `controlled_by_parent` object without exactly one master, which is one `master_detail` declared `required: true` or, with none, its only `master_detail` declared `required: false` (two masters, none, a required `lookup` only; an explicit `required: false` on the only `master_detail` is that optional master, admitted by `cbp-optional-master-admitted` and not listed), a view bound to the retired view-level API data source or a page component whose `data` prop binds it (`object-grid`, `object-map`, `object-gantt`, `object-tree`), a flow value slot carrying a `{…}` token (a `get_record` / `update_record` / `delete_record` filter operand among them) | Each would need a choice only its owner can make — which master, which page, what an absent value should do — so it is never rewritten. Each site is printed as a `TODO` line under its row, naming the step-18 entry that refuses it, the object, view, page component or flow node, and the owner's choices; a binding's request headers are withheld. Until it is rewritten by hand, the row is refused: an object registers but derives no master, a view registers under `[metadata_spec_invalid]`, a page still loads, its next save is refused at the metadata save door (422), and `os validate`, `os build` and `os lint` refuse the binding in source, and a flow is not registered |
2143
2143
| Any other site `registerFlow` refuses in a stored flow the parse accepts — a text slot's template hole, a decision's `mode`, a malformed predicate, a plugin node's undeclared config key, an `api` flow with no secret | The flow's own definition is wrong, and no conversion rewrites it. Each site is printed as a `TODO registerFlow` line under its row, in the words `registerFlow` refuses it with; a site already listed under a step-18 entry is not repeated. Until it is fixed, the flow is not registered at boot and never runs. A flow the parse itself refuses is reported among the rows that could not be rewritten, in the parse's words |
2144
2144
2145
2145
**One thing it lists and never writes: decision nodes that changed meaning at
@@ -2706,10 +2706,11 @@ os verify --dashboard-windows # Also prove each dashboard date
2706
2706
reported inconclusive, never proven.
2707
2707
With `--parent-write-reach`, another fresh boot proves ADR-0055's write rule
2708
2708
for every object declared `controlled_by_parent` (exactly one
2709
-
`master_detail` field names its master): editing, deleting or creating a
2710
-
detail is admitted exactly when the caller holds that verb on the detail's
2711
-
object **and** can edit its master. The first half is read from the
2712
-
server's effective permissions for the caller (`/auth/me/permissions`); the
2709
+
`master_detail` field names its master, required or optional): editing,
2710
+
deleting or creating a detail is admitted exactly when the caller holds
2711
+
that verb on the detail's object **and** can edit its master. The first
2712
+
half is read from the server's effective permissions for the caller
2713
+
(`/auth/me/permissions`); the
2713
2714
second is measured, by an empty update of the master as the caller, which
2714
2715
runs every write gate the master has — for a master that is itself
2715
2716
controlled by its parent, the gate above it too. The writes go through the
@@ -2726,9 +2727,15 @@ os verify --dashboard-windows # Also prove each dashboard date
2726
2727
answer disagrees fails the run, and so does a persona that could not be
2727
2728
provisioned; a refusal that is not the platform's `403 PERMISSION_DENIED`
2728
2729
naming the detail and the operation (a rule, a hook's own code, a refusal
2729
-
on another object) is reported inconclusive, never proven. An object
2730
-
with two `master_detail` fields, none, or a chain at the write gate's depth
2731
-
bound is reported `excluded`. A detail two levels below its root master (a
2730
+
on another object) is reported inconclusive, never proven. For an optional
2731
+
master (its only `master_detail` declared `required: false`) the run also
2732
+
proves the records that name no master: such a record is its owner's, so
2733
+
its edit or delete is admitted exactly when the caller holds that verb on
2734
+
the detail's object **and** owns the record (`owner_id`) or holds Modify All
2735
+
on that object, and a create that names no master exactly when the caller
2736
+
holds create on it; a null-master record the persona cannot read is not
2737
+
probed. An object with two `master_detail` fields, none, or a chain at the
2738
+
write gate's depth bound is reported `excluded`. A detail two levels below its root master (a
2732
2739
line under a quote under an account) is answered the same way: its write is
2733
2740
admitted exactly when the caller holds the verb on the detail and may update
2734
2741
the middle master directly, which also needs edit access to the root, and
0 commit comments