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
An object declares the states in which a document and its master-detail lines are closed to change (ADR first) #36253
Feature, ADR first. Maintainer ruling 2026-11-22, option C (record 7073676422 on #32004; analysed by an isolated contract-tier thread).
Rule. An object declares the states in which it and its master_detail lines refuse add, edit, remove and move: for example approved, paid, closed. Approval, payment and closing only set the state. A record leaves the closed state only through a sanctioned action that moves it back. The runtime refuses changes to a closed record and its lines at every door, with one loud refusal.
Why. Today the platform unlocks a record when its approval is decided, as content/docs/automation/approvals.mdx documents. Apps that need a decided document frozen hand-code it:
Removing a line cannot be guarded without code. Seat ruling 6281609466 on #24684 required "a named producer beyond this showcase" before a declarative state lock; that condition is now met. Mainstream ERP modelling is state-driven immutability, with child rows included.
The ADR settles:
the key's shape on the object;
the unit (the record plus its master-detail lines, the same unit the pending approval lock already uses);
exemptions (system writes, the record's own delete) and whether a closed document may be deleted;
one lock read for both producers (the pending approval lock and the declared closed states).
Then build cards. Convert the showcase's paid-invoice hooks to the declaration as the proof.
Not this card: the pending-window line lock. It is already on main (#35755), and #36135 lands with it.
Re-check: git grep -n "the record unlocks" origin/main -- content/docs/automation/approvals.mdx shows today's decided-state behaviour.
Triage: lands in domain:spec (ADR first, then build cards) · pm:queue; rationale: area:data (records refuse change at every door) · Feature · an object declares the states (approved, paid, closed) in which it and its master-detail lines refuse add, edit, remove and move, and a record leaves them only through a sanctioned action. Maintainer ruling option C, 2026-11-22 (7073676422 on #32004); it replaces hand-coded guard hooks such as the showcase paid-invoice hooks (#24731) → p2 (maintainer-ruled feature) · size L.
Activity
objectstack-fleet commentedon Nov 22, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in
domain:spec(ADR first, then build cards) ·pm:queue; rationale: area:data (records refuse change at every door) · Feature · an object declares the states (approved, paid, closed) in which it and its master-detail lines refuse add, edit, remove and move, and a record leaves them only through a sanctioned action. Maintainer ruling option C, 2026-11-22 (7073676422 on #32004); it replaces hand-coded guard hooks such as the showcase paid-invoice hooks (#24731) → p2 (maintainer-ruled feature) · size L.