Repository navigation
Commit b7fe94a
docs(spec,objectql): SharedRecordIds and fixed-read leaf seam docblocks describe the share arm after the switch (#36723)
Fixes #36121
Clause-②: no
Metadata-protocol: none
## 维护者速读
- 用户能看到什么变化:用户无感;只改了两处源码注释,让它们和第 6 步切换后的实际行为一致。
- 为什么做:属于「共享授权不再有 5000 条上限」那个系列的收尾,旧注释仍说名单最多 5000 条、仍说还没有生产者。
- 出错会怎样:只是注释,不改任何代码或行为;写错了也只是误导读注释的人,随时可撤回。
- 要你做的:无。
## What changes
Comment-only, in two files. Each sentence below was false on
`origin/main` (3aa008d) after the ADR-0155 step-6 switch
(plugin-sharing's `buildReadFilter` / `buildWriteFilter` now push
`SharedRecordIds.read` / `.write` at `sharing-service.ts:828` and
`:948`; `share-arm-boot.ts` holds the class-2 boot check;
`shareGrantsInertReason` calls `driverEvaluatesFixedReadLeaf` at
`sharing-service.ts:1763`).
`packages/spec/src/data/shared-record-ids.ts`
| line | before | after |
|---|---|---|
| 9 | It sits where today's list of granted ids sits | It sits where the
share arm's list of granted ids sat before the producer's switch
(ADR-0155 plan step 6) |
| 21-23 | The list the share arm binds today holds at most 5,000 members
of G; the leaf is G at every count. | The list the share arm bound
before the switch is retired; the share arm now carries this leaf, which
is G at every count. |
| 72 | where today's `recipient_id` comes from | where the retired
list's `recipient_id` came from |
| 102-104 | No caller of the comparand-shape door admits it until the
engine's card (ADR-0155 plan step 2), and nothing writes it until that
producer's switch (plan step 6). | The engine's callers of the
comparand-shape door admit it (ADR-0155 plan step 2), and that producer
writes it from its switch on (plan step 6). |
`packages/objectql/src/fixed-read-leaf-seam.ts`
| line | before | after |
|---|---|---|
| 57-59 | the class-② boot check and R2's share-arm answer land with the
producer (ADR-0155 plan step 6), and until then nothing on main writes
the leaf. | the class-② boot check and R2's share-arm answer live with
the producer, plugin-sharing (ADR-0155 plan step 6), which is the one
writer of the leaf. |
| 85-86 | the seam's consult now, and the producer's up-front answer
(R2) when it lands (ADR-0155 plan step 6) | the seam's consult, and the
producer's up-front answer (R2, ADR-0155 plan step 6) |
| 121 | which today's read of the table runs and the subquery would read
around | which the retired list's read of the table ran and the subquery
would read around |
Kept, because still true at main: seam line 5, "`SharedRecordIds` today,
ADR-0147's leaf on the card that adds it" (`FIXED_READ_LEAF_NAMES` is
still `['SharedRecordIds']`), and "with no cap and no ordering"
(ADR-0155 ① ruled A, restated unchanged). The corrected prose describes
the 5,000 cap only as retired, never as live.
The card's `git grep -n "5,000\|5000" -- packages/spec/src/data
packages/objectql/src` hits one grant-list line
(shared-record-ids.ts:22, fixed here). The other hits are unrelated:
autonumber seed page size (`engine-top-level.ts`,
`engine-defaults-and-autonumbers.ts`), `MIN_MAX_EXCLUDED_ID_BUDGET`,
timeouts and test fixtures. Left alone.
Two patch changesets, one per touched published package
(`@objectstack/spec`, `@objectstack/objectql`), because the docblocks
ship in the published bytes.
## Tests
No behaviour changes, so there is no new test and no ablation.
## Acceptance notes
- `packages/plugins/plugin-sharing/src/share-arm-boot.ts:10` still says
"today's grant read" about the retired list read. It is outside this
card's file surface (not under the card's grep roots), so it is left for
a later pass.
## Verification
Two-minute check: `git diff origin/main --
packages/spec/src/data/shared-record-ids.ts
packages/objectql/src/fixed-read-leaf-seam.ts` shows only lines inside
block comments, and `grep -n "today\|until"
packages/spec/src/data/shared-record-ids.ts` no longer finds the list or
the producer described as live.
Files to read first: `packages/spec/src/data/shared-record-ids.ts` (the
5,000 sentence, lines 21-23).
<details><summary>Local gates at d42859d</summary>
- Build: `pnpm --filter '@objectstack/objectql^...' --filter
@objectstack/objectql build` under os-verify-lock: VERDICT command-exit
0.
- `pnpm --filter @objectstack/spec typecheck` and `pnpm --filter
@objectstack/objectql typecheck`: both passed (the lock command's later
vitest leg named a wrong path; rerun below).
- `vitest run src/data/shared-record-ids.test.ts` (spec): Test Files 1
passed, Tests 32 passed. `vitest run
src/engine-fixed-read-leaf-seam.test.ts` (objectql): Test Files 1
passed, Tests 70 passed.
- `dispatch-gates --commands`: 81 families derived; 79 exit 0, 2 exit 3
(NOT MEASURED): `check-plugin-teardown-shape.mjs --self-test` (shallow
clone cannot reach its pinned control commit) and
`check:dual-build-cjs-loads` (needs a full workspace build). Both run in
CI.
- `--ran` reconciliation: 81 derived, 79 run, 2 NOT-MEASURED, 0 UNRUN.
- Spec dist gates rerun after the build: check:api-surface,
check:exported-any, check:docs, check:authorable-surface all exit 0.
`check-nul-bytes`: exit 0.
- `test:repo` not run locally (no repo-project test touched); CI Test
Core covers it.
</details>
---
_Generated by [Claude
Code](https://claude.ai/code/session_011y7As6FyXmJyGyHNKXUkV7)_
Co-authored-by: Claude <noreply@anthropic.com>1 parent fa23941 commit b7fe94a
4 files changed
Lines changed: 39 additions & 20 deletions
File tree
- .changeset
- packages
- objectql/src
- spec/src/data
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | | - | |
60 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
86 | | - | |
| 85 | + | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
122 | | - | |
123 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
| 9 | + | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
103 | | - | |
104 | | - | |
| 102 | + | |
| 103 | + | |
105 | 104 | | |
106 | 105 | | |
107 | 106 | | |
| |||
0 commit comments