Repository navigation
Commit 64ccf6b
docs(adr): ADR-0155 accepted with the maintainer's answers to Q1–Q3 (#34735)
Part of #33787
Clause-②: no
Metadata-protocol: none
## 维护者速读
- **改了什么**:ADR-0155(共享授权改走引擎内半连接子查询,去掉 5000 条上限)状态从 Proposed 改为
Accepted,把你对三问的裁决(Q1 A · Q2 推荐列逐行 · Q3 A)写进状态行、决策各句、三问各节、Consequences
与执行计划;ADR 索引随之重新生成;并按 ADR-0155 验收条件第 2 条,在
ADR-0139(D1、D3、O4)、ADR-0111(D7)、ADR-0147(D-a)各追加一条带日期的指针注记。不改任何代码。
- **为什么改**:你已在 #33787 的决策卡上选了「三问都按 ADR 推荐」(裁决记录 6942854600),ADR
规定裁决写进记录、合入之后才能切执行卡;本 PR 就是这一步。
- **风险与回滚**:纯文档,零运行时影响;回滚即还原这五个文件(ADR-0155、索引 README,以及
ADR-0139、ADR-0111、ADR-0147 上新增的注记)。唯一风险是措辞把裁决写偏,请对照下面"先看"核对。ADR-0139 的
D3 注记与在途 PR #34565 的 D3 修订并存:已做三方合并核对,无冲突、互不重述。
- **先看**:① `docs/adr/0155-…md` 的 Status 行(三问答案的总述);② 同文件 Q2 末尾新增的
"Ruled: the recommended column, row by row" 一段(宿主类 R1
启动拒收、不设"跳过系统读"豁免、不指名对象的注册留在类外并告知宿主);③ `docs/adr/0139-…md` 的 D1、D3、O4
三条注记(每条写明仅记录决策、由 ADR-0155 执行卡实现,main 上 5000 截断在切换卡落地前仍在)。
- **两分钟验证**:`git diff origin/main -- docs/adr/0155-*.md | grep -c
'ruled'` 有大量命中;打开 ADR-0155 读 Status 行与 Questions 一节开头的 "Ruled, all
three" 段,应与裁决记录 6942854600 的 Q1 A · Q2 推荐列 · Q3 A 一致。
- **需要你做的**:审批并合并本 PR(Tier H,只能由你落地)。
## What changes
ADR-0155 moves from **Proposed** to **Accepted — 2026-11-17**, recording
the maintainer's answers from ruling record
[`6942854600`](#33787 (comment))
(verbatim option: 「三问都按 ADR 推荐」), read against routing analysis
`6938582405` and the earlier ruling `6895275749`:
- **Q1 → A**: the subquery carries no tenant scope (parity with today's
grant read, D-0).
- **Q2 → the recommended column, row by row**: no capped id list
anywhere; the four storage rows take R2 with R1 behind it; the host
class (a registration naming `sys_record_share` by name) takes R1 at
boot from the switch on, with the seam's refusal behind it, the class
kept whole, with **no** exemption for a registration declaring it skips
system reads; a registration naming no object stays outside the class
and the host is told (D4's boundary); the analytics native compiler
compiles the leaf, the engine strategy's merge admits the brand, the
explainer resolves at the record. `driver-memory` stays as D5 states it
(the ruling did not move it).
- **Q3 → A**: the leaf's write form is admitted in the `where` of a
predicate `update` only.
Where the text changed, in
`docs/adr/0155-sharing-scope-share-grants-lower-to-an-engine-internal-semi-join-leaf.md`:
- **Status line** rewritten (Accepted, date, ruling link, the three
answers); a Provenance bullet names the ruling record and the routing
analysis.
- **Header bullets**: Revisits states the three governed sentences that
now move (ADR-0139 D1 read-verbs, ADR-0139 D3 capability bit, ADR-0111
D7); Leaves unchanged names R2 as the ruled answer that moves the by-id
gates on the storage rows.
- **TL;DR**: "proposes" becomes "decides"; the three bullets state the
rulings.
- **Decision**: every sentence that said it depended on a question now
states the answer (D-0, D1, D2, D3, D4 including the second class, its
boundary and the built-once table, D5, D6). No decision the ruling did
not answer was changed.
- **Questions for the maintainer**: a "Ruled, all three" paragraph opens
the section; Q1, Q2 and Q3 each end with a **Ruled** paragraph citing
the record; the options, costs and recommendations are kept as history.
The Q2 host-row cell and two cost bullets that said "the maintainer
rules which" now say what was ruled.
- **Consequences**: the predicate-update and Freshness bullets state ③
A; the "evaluators under ②" bullet states the ruled outcome; a bullet
names the three governed sentences elsewhere that move.
- **Open items**: the conditional phrases in O1, O6, O7 and O8 state the
ruled answer (O7 now lists exactly the notes owed). No item was removed.
- **Execution plan**: every "as ruled" step names the answer; no card
was cut or removed.
`docs/adr/README.md` is regenerated by `node scripts/adr-index.mjs`
(Accepted 134 → 135, Proposed 9 → 8, the ADR-0155 row's status column).
No changeset and `skip-changeset`: the diff is `docs/adr/**` only, a
fast-track path that publishes nothing from any package.
## Tests
Docs-only diff: no package is touched, so no build closure, unit test or
typecheck is owed. The gate families derived for these paths were run
locally (below).
## Acceptance notes
- **ADR-0155 Acceptance criterion 2 is met in this PR.** O7's five
pointer notes land in the same governed edit as the rulings, each dated
2026-11-17, append-only, and citing ADR-0155 and ruling record
`6942854600`: ADR-0139 D1 (one more leaf; the read-verbs sentence
revisited for that leaf alone, ③ A), ADR-0139 O4 (answered), ADR-0139 D3
(that leaf's driver declaration under ② R2; R1 is the bullet's own
envelope), ADR-0111 D7 (R2's inert-grant arm, `SHARING_NOT_ENABLED` /
422, effective at the plugin-sharing switch and not before), and a
cross-reference from ADR-0147 D-a (the shared seam's recipient rule on
that record's anchor). ADR-0155 O7 records that they landed. No decision
in those three records moves beyond the note each names, and no Status
line outside ADR-0155 is edited. Against `main` the three records take
additions only (ADR-0139 +28, ADR-0147 +12, ADR-0111 +2, no deletions).
- **Decided, not built.** ADR-0139 is Accepted and implemented, so each
of its three notes (D1, D3, O4) says it records a decision that
ADR-0155's execution cards will implement; O4 adds that the capped grant
read stands until the plugin-sharing switch under #33787 lands, and not
before, matching the ADR-0111 note's wording (review record 6944283386,
S1). The D3 note names the refusal envelope it means (status 500,
`INTERNAL_ERROR`) and marks ADR-0147 as Proposed (N2), and ADR-0155 O7
keeps the authoring diff's history apart from the landing of the notes
(N1).
- **Overlap with open PR #34565** (head `779d1aa3`, Tier H), which adds
an `Amended` Status line and a #33876 amendment note under ADR-0139 D3.
The new D3 note sits after D3's last bullet: it neither restates nor
contradicts that amendment, and says it moves nothing D3 says about
`ReadableIds`. A three-way `git merge-file` of ADR-0139 (base
`62d9d0d9`, the merge base; ours `ee8b666a`) exits 0 with no conflict
markers, and the merged text carries both amendments. ADR-0139 is the
only file both PRs touch (it has no merge driver). The repository is
shallow, so a whole-tree `merge-tree` in a driver-free bare clone could
not fetch the refs; GitHub's mergeability check is the authority.
- The README Date column for ADR-0155 stays 2026-11-15: the index reads
the record's `Date` bullet, which is the authoring date, and the
acceptance date lives in the Status line.
## Verification
Gates run on head `ee8b666a`, the final commit (the derived set of 21 is
identical to the one on every earlier head).
<details><summary>Derived gate families — 21 of 21, all exit 0</summary>
`node scripts/pm/dispatch-gates.mjs --commands --repo
objectstack-ai/objectstack` derived 21 commands for the five paths; each
was run with its exit code captured before any pipe:
```text
node scripts/check-adr-links.mjs :: exit 0
node scripts/check-adr-links.mjs --self-test :: exit 0
node scripts/check-closing-keyword-parity.mjs :: exit 0
node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0
node scripts/check-comment-mask-corpus.mjs :: exit 0
node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0
pnpm --filter @objectstack/lint run check:doc-formula-expressions :: exit 0
pnpm check:adr-anchors :: exit 0
pnpm check:adr-index :: exit 0
pnpm check:adr-symbol-anchors :: exit 0
pnpm check:ci-filter-parity :: exit 0
pnpm check:closed-ceremony-text :: exit 0
pnpm check:cross-package-test-inputs :: exit 0
pnpm check:doc-authoring :: exit 0
pnpm check:driver-memory-census :: exit 0
pnpm check:gitlink-declared :: exit 0
pnpm check:pm-governed-merges :: exit 0
pnpm check:nul-bytes :: exit 0
pnpm check:pm-prior-rulings :: exit 0
pnpm check:refd-timer-probe :: exit 0
pnpm check:watch-hint-literal :: exit 0
```
Reconciliation: `dispatch-gates --ran` — "21 derived famil(ies)
accounted for — 21 run, 0 NOT-MEASURED (a DERIVED zero — all 21 recorded
an exit code and none of them is 3)".
Selected verdict lines: `check-adr-links: 1150 relative link
destination(s) under docs/adr/ resolve`; `check-adr-symbol-anchors: 3728
anchors across 158 records resolve`; `adr-index --report: OK —
docs/adr/README.md is current, every record parsed, self-test 60
assertions green`.
The first run of `check:doc-formula-expressions` exited 3 (PREREQUISITE
NOT MET, `@objectstack/formula` and `@objectstack/lint` unbuilt in a
fresh worktree); after `pnpm exec turbo run build
--filter=@objectstack/formula --filter=@objectstack/lint` under the
verify lock (VERDICT command-exit 0) it exited 0.
</details>
<details><summary>Not measured locally</summary>
The families dispatch-gates places outside the derived set (artifact
rosters, whole-tree populations, the type-check lanes and the
path-scheduled Plan Test Core shards job) are CI's; their verdicts are
this PR's check-runs.
</details>
---
_Generated by [Claude
Code](https://claude.ai/code/session_01ADHkmSLi1reMd27fT62jJ3)_
<!-- signed: repo:objectstack#2 · os-steve ·
session_01ADHkmSLi1reMd27fT62jJ3 -->
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 9c70c16 commit 64ccf6b
5 files changed
Lines changed: 220 additions & 104 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| 142 | + | |
| 143 | + | |
142 | 144 | | |
143 | 145 | | |
144 | 146 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
167 | 177 | | |
168 | 178 | | |
169 | 179 | | |
| |||
227 | 237 | | |
228 | 238 | | |
229 | 239 | | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
230 | 251 | | |
231 | 252 | | |
232 | 253 | | |
| |||
400 | 421 | | |
401 | 422 | | |
402 | 423 | | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
403 | 431 | | |
404 | 432 | | |
405 | 433 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
170 | 182 | | |
171 | 183 | | |
172 | 184 | | |
| |||
0 commit comments