Skip to content

Commit bc5c3e8

Browse files
Obligations opt in to owner edits under controlled_by_parent (#165)
Part of #64 — ruling 6395825992 (D) step 2: sharing.controlledByParent.ownerMayEdit on clm_obligation. Inert until objectstack-ai/objectstack#26591: the 18.2.0 gate compares owner_id, and the accountable person here is owner. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017nzWFRUo2U7evMkPdVniAn
1 parent c53d37d commit bc5c3e8

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

‎src/objects/obligation.object.ts‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,19 @@ export const Obligation = ObjectSchema.create({
3232
// Access derives from the contract (ADR-0055): whoever can read the
3333
// contract reads its obligations, whoever can edit it edits them.
3434
sharingModel: 'controlled_by_parent',
35+
// ...with one exception: the row's platform owner may update it while only
36+
// READING the contract (ADR-0055 §3 amendment, platform 18.2). An
37+
// obligation exists only under a signed contract, which a requester can no
38+
// longer edit, so without this nobody without contract edit could ever act
39+
// on one. Only a by-id update is opened: creating, deleting, and moving an
40+
// obligation to another contract still need edit on the contract.
41+
//
42+
// ⚠️ The platform's owner is the injected `owner_id`, NOT the `owner` field
43+
// below that 我负责的履约, F10 and `obligation_requester_own` key on. All
44+
// 200 demo obligations carry `owner_id` = the dev admin, and F9 inserts its
45+
// renewal obligation as a system write, so on its own this admits no
46+
// requester (measured on 18.2.0, issue #64).
47+
sharing: { controlledByParent: { ownerMayEdit: true } },
3548
nameField: 'display_name',
3649
highlightFields: ['display_name', 'kind', 'due_date', 'owner', 'status'],
3750

0 commit comments

Comments
 (0)