|
87 | 87 | * it joins the activation-ledger read's wave, so the fixture still resolves in |
88 | 88 | * two legs. That read is in the golden because the code genuinely issues it — |
89 | 89 | * the organization-less row this fixture used to hold asked none. |
| 90 | + * |
| 91 | + * ⚠️ A fifth recorded move ([#29281], the visible set it corrects is the |
| 92 | + * defect the card reports): the fellow-org `sys_member` read that comes back |
| 93 | + * AT its 1,000-row bound is a first page, no longer the membership, and the |
| 94 | + * resolver reads the active organization's membership to completion. One |
| 95 | + * fixture's golden moved, `read-limits-truncate`, whose 1,006 rows for |
| 96 | + * `org_0000` came back at the bound: `grants.org_user_ids` gains the six |
| 97 | + * members the bound cut (`peer_0999` … `peer_1004`), `queries` gains the |
| 98 | + * completion read (`sys_member {organization_id}`, limit 10,000), and the |
| 99 | + * fixture resolves in three legs, the completion read being its own. The |
| 100 | + * first read itself, its bound and every other recorded read are unchanged, |
| 101 | + * and so is every other fixture: none comes back at the bound. |
90 | 102 | */ |
91 | 103 |
|
92 | 104 | import { readFileSync } from 'node:fs'; |
@@ -143,7 +155,9 @@ const BATCHED_LEGS: Record<string, number> = { |
143 | 155 | 'ai-seat-and-email-from-sys-user': 2, |
144 | 156 | 'ai-seat-denied': 2, |
145 | 157 | 'seeded-permissions-and-email': 2, |
146 | | - 'read-limits-truncate': 2, |
| 158 | + // [#29281] Three: the fellow-org read came back at its bound, so the |
| 159 | + // membership is read to completion after wave 1, in a leg of its own. |
| 160 | + 'read-limits-truncate': 3, |
147 | 161 | 'no-active-org': 2, |
148 | 162 | }; |
149 | 163 |
|
@@ -283,6 +297,9 @@ describe('[#10825] batched resolveUserAuthzGrants — equivalence with the seque |
283 | 297 | // Wave 2: the activation ledger and the Default Organization read, |
284 | 298 | // which are issued together after wave 1 (#10757 leg 4). |
285 | 299 | .filter((c) => c.object !== 'sys_metadata_activation' && c.object !== 'sys_organization') |
| 300 | + // [#29281] …and the membership completion read (limit 10,000), which |
| 301 | + // exists only because wave 1's fellow-org read came back at its bound. |
| 302 | + .filter((c) => !(c.object === 'sys_member' && c.limit === 10000)) |
286 | 303 | .map((c) => c.object) |
287 | 304 | .sort(), |
288 | 305 | ); |
|
0 commit comments