Skip to content

Commit 41db2e1

Browse files
committed
docs(spec): onFailedRead docblock says the producer honours refuse in the code half, and where the activation-ledger read stands
Contract review should-fixes: the 'refuse' bullet says an implementation written before the key answers 'nobody' and plugin-sharing honours 'refuse' from the code half on; the table list names sys_business_unit_member and sys_business_unit and says the sys_metadata_activation read is not a failed read in this sense (its failure still reads switched on). Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzfHeHezsXgrF5MEs4N
1 parent 12fb7d3 commit 41db2e1

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

‎packages/spec/src/contracts/ownership-queue-service.ts‎

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,13 @@ export type QueueExpansionPurpose = 'access' | 'addressing';
5757
* The tables behind a queue are its own row (`sys_queue`, through which an
5858
* authored queue resolves), its member rows (`sys_queue_member`), and the
5959
* member tables a specification reads: `sys_team_member`, `sys_user_position`,
60-
* `sys_member` (through the position transition limb), and the business-unit
61-
* membership and tree. A table the composition does not carry is absence, not
62-
* failure.
60+
* `sys_member` (through the position transition limb), `sys_business_unit_member`
61+
* and the business-unit tree (`sys_business_unit`). A table the composition
62+
* does not carry is absence, not failure. The activation-ledger read
63+
* (`sys_metadata_activation`, which says whether a declared queue or a position
64+
* is switched off) is NOT a failed read in this sense: under either answer its
65+
* failure reads "switched on", as it did before the key existed; whether that
66+
* posture moves is #29604's code half to decide.
6367
*
6468
* - `'nobody'` — the default and the answer every caller had before the key
6569
* existed. A failed read is logged at `warn`, and what sat behind it
@@ -70,7 +74,10 @@ export type QueueExpansionPurpose = 'access' | 'addressing';
7074
* read, never `[]`, a partial set or `false`. The recompute consumers take
7175
* it, because they turn the member set into routed work or materialised
7276
* grants and "nobody" there revokes: the approver slate (D6) and the
73-
* sharing-recipient grant recompute (D7).
77+
* sharing-recipient grant recompute (D7). An implementation written before
78+
* this key existed ignores it and answers `'nobody'`; the registered one,
79+
* `@objectstack/plugin-sharing`'s, honours `'refuse'` from #29604's code half
80+
* on, so until then a caller passing `'refuse'` still gets `'nobody'`.
7481
*
7582
* Under either answer an EMPTY queue — every read succeeded and reached
7683
* nobody — is still `[]`, and a name that resolves nowhere is still `[]` /

0 commit comments

Comments
 (0)