Skip to content

docs(adr): ADR-0155 accepted with the maintainer's answers to Q1–Q3 - #34735

Merged
os-zhuang merged 4 commits into
mainfrom
claude/issue-33787-adr-0155-accepted
Nov 17, 2026
Merged

os-zhuang merged 4 commits into
mainfrom
claude/issue-33787-adr-0155-accepted

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

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)各追加一条带日期的指针注记。不改任何代码。
  • 为什么改:你已在 plugin-sharing: a member with more than 5000 share grants on one object silently loses access to the grants past 5000 (list misses rows, GET answers 404) #33787 的决策卡上选了「三问都按 ADR 推荐」(裁决记录 6942854600),ADR 规定裁决写进记录、合入之后才能切执行卡;本 PR 就是这一步。
  • 风险与回滚:纯文档,零运行时影响;回滚即还原这五个文件(ADR-0155、索引 README,以及 ADR-0139、ADR-0111、ADR-0147 上新增的注记)。唯一风险是措辞把裁决写偏,请对照下面"先看"核对。ADR-0139 的 D3 注记与在途 PR feat(objectql): refuse a nested-relation condition and a lookup dimension up front on a driver without the readableIdsLeaf capability #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 (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 plugin-sharing: a member with more than 5000 share grants on one object silently loses access to the grants past 5000 (list misses rows, GET answers 404) #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 feat(objectql): refuse a nested-relation condition and a lookup dimension up front on a driver without the readableIdsLeaf capability #34565 (head 779d1aa3, Tier H), which adds an Amended Status line and a objectql: refuse a cross-object where up front with INVALID_FILTER / 400 on a driver that compiles no semi-join (MongoDB, OData) — ADR-0139 capability-bit amendment #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).

Derived gate families — 21 of 21, all exit 0

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:

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.

Not measured locally

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.


Generated by Claude Code

Records ruling record 6942854600 in ADR-0155: Q1 A (no tenant scope on
the subquery), Q2 the recommended column row by row (no capped id list;
storage rows R2 with R1 behind it; host class R1 at boot, class kept
whole, no skip-system-reads exemption; a registration naming no object
stays outside the class, host told), Q3 A (write form admitted on a
predicate update only). Status line moves to Accepted, every Decision
sentence that depended on a question now states the answer, each
question section ends with its ruling, and Consequences and the
Execution plan state what the answers fix. The index is regenerated.

Claude-Session: https://claude.ai/code/session_01ADHkmSLi1reMd27fT62jJ3
Co-authored-by: Claude <noreply@anthropic.com>
ADR-0155 Acceptance criterion 2 has O7's dated, append-only pointer
notes land in the edit that records the rulings. Under ruling record
6942854600 all five are owed: ADR-0139 D1 (one more leaf, and its
read-verbs sentence for that leaf alone), ADR-0139 O4 (answered),
ADR-0139 D3 (that leaf's driver declaration under R2), ADR-0111 D7
(R2's inert-grant arm, effective at the switch) and a cross-reference
from ADR-0147 D-a (the shared seam's recipient rule on its anchor).
ADR-0155 O7 records that they landed. No decision in those records
moves beyond the note each names.

Claude-Session: https://claude.ai/code/session_01ADHkmSLi1reMd27fT62jJ3
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmSLi1reMd27fT62jJ3

Final head · PR #34735 · 2026-11-17T09:29Z

Final head for L1 and L2: daf666a846f20739cd1998703bfc54da22cc4344. Check-runs on this head: 48, of which 26 success and 22 skipped, none pending, none red.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

l2-review#4 · os-steve · session_01ADHkmP44onN8RMzsPMqjRq

Contract-review-claim: session_01ADHkmP44onN8RMzsPMqjRq · head daf666a · 2026-11-17T09:30Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmTHGRTjPqZAcBuo9WH

席位核对

L1 first review · ACCEPT · head daf666a846f20739cd1998703bfc54da22cc4344 (final head 6944117945) · card #33787 · read 2026-11-17T09:31Z

Checklist (read on GitHub at this head, not from the report)

  • Shape: draft, base main, mergeable_state: clean. Labels are documentation, size/m and skip-changeset. The body has Part of #33787 and no closing keyword. Clause-②: no and Metadata-protocol: none are right for a docs-only diff that changes no package. The session-URL footer and the signed note are there.

  • File surface: 5 files, +213/−103: ADR-0155, its regenerated index row and counts in docs/adr/README.md (Accepted 134→135, Proposed 9→8), and one append-only note each in ADR-0139 (×3), ADR-0111 and ADR-0147. Amendment 6943768381 covers the three extra records.

  • The ruling is written as ruled. I read it against ruling record 6942854600 and against main's own Q1–Q3 text. The record names the card option 「三问都按 ADR 推荐」 with its full text.

    • Q1 → A: on main, Option A is "no tenant scope (parity). Recommended", and the head says exactly that. D2's tenant bullet and the fixed-inner-read row of D4's table now read "none (① ruled A)".

    • Q2 → the recommended column, row by row: the head matches main's Recommended column on every row.

      • The four storage rows take R2 with R1 behind it.
      • The host class takes R1 at boot with the seam's refusal behind it, the class kept whole.
      • The analytics native compiler compiles the leaf, and the engine strategy admits the brand.
      • The explainer resolves the leaf at the record.

      The two "the maintainer rules which" items in the cost list are filled with what the recommended cells already said, so they are not new choices:

      • No exemption for skips-system-reads registrations. The host row's Recommended cell on main reads "R1, at boot … and the class kept whole (D4)".
      • A registration naming no object stays outside the class and the host is told. That cell's "recommended line" says the same.

      driver-memory is left as D5 states it, which the ruling did not move.

    • Q3 → A: on main, Option A is "admit the write form on update. Recommended". The head admits it in the where of a predicate update only, and keeps ADR-0139 D1's read-verbs sentence for ReadableIds, ADR-0147's leaf and delete.

  • No undecided decision moved. A grep of the head's Decision part (lines 248–545) for conditional phrasing tied to ①–③ finds none left open. The remaining "may move" and "may rule row by row" are inside Questions, which keep their options and costs as history, each now ending in a Ruled paragraph. No Open item or Execution-plan card was removed. D5's memory row stands, now with the sentence that the ruling did not move it.

  • The five pointer notes, against O7 on main: each is dated 2026-11-17, append-only, and cites ADR-0155 and 6942854600.

    • ADR-0139 D1: one more leaf, its own brand. The read-verbs sentence is revisited for this leaf alone (③ A).
    • ADR-0139 D3: the DriverCapabilities sentence is revisited for this leaf under ② R2, with R1 as the envelope. It moves nothing about ReadableIds.
    • ADR-0139 O4: answered.
    • ADR-0111 D7: R2's inert arm, SHARING_NOT_ENABLED / 422. It takes effect at the switch, with D10's report and changelog entry.
    • ADR-0147 D-a: carries the shared seam's recipient rule. It restates ADR-0155 D4 on main (lines 405–414, 476–478): anchor, caller and organization compared together, a system context exempt, a context with no anchor matching none, and D-a/D-c unmoved.

    No note adds a decision ADR-0155 does not state, and no Status line outside ADR-0155 is edited.

  • Gates at this head:

Nit (optional, no head move asked)

  • D5 line 500 still reads "whatever ② rules". The rule it introduces holds for every answer, so the sentence is not wrong; "whatever ② answers" would match the tense of the rest.

Owed after this

  • L2: owed, CONTRACT_REVIEW_TIER. The face is governed rule text: four ADRs' decision text.
  • Landing tier: governed, Tier H. It stays a draft until a GOVERNED_APPROVERS approval; then the seat lands it.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

l2-review#4 · os-steve · session_01ADHkmP44onN8RMzsPMqjRq

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: daf666a846f20739cd1998703bfc54da22cc4344
Local-runs: probe — one git merge-file -p on scratch copies of ADR-0139 (this head, merge base 62d9d0d9, PR #34565 head 779d1aa3) to answer the textual-conflict question the brief puts; no checkout, build, test or gate run
Scope: docs/adr/0111-record-share-management-authority-and-verb-boundary.md, docs/adr/0139-engine-internal-semi-join-leaf-readable-parent-ids.md, docs/adr/0147-membership-scoped-rls-lowers-to-an-engine-internal-org-member-semi-join-leaf.md, docs/adr/0155-sharing-scope-share-grants-lower-to-an-engine-internal-semi-join-leaf.md, docs/adr/README.md + none
Security-touching: yes

Inputs read: card #33787 body and all 13 comments (ruling records 6895275749 and 6942854600, routing analysis 6938582405, claim 6943198134, claim amendment 6943768381, dev reports 6943728907 and 6944013337); PR #34735 body and file list; the net diff against merge base dc66d330 (5 files, all under docs/adr/, 213 insertions, 103 deletions; docs/adr/ on main has not moved since that base); the 48 check-runs on the head.

① Derived judgments

  • Accept-sets: none changes. The diff is prose under docs/adr/ only; no schema, validator, gate, skill or package file is in it. Right.
  • Public surface: none published. The decisions the prose records (a new engine-internal leaf, a driver declaration, an added SHARING_NOT_ENABLED / 422 arm, a boot refusal for the host class) are declared, not built; each execution card declares its own Clause-② when it is cut (ADR-0155, Execution plan). Right.
  • Index: docs/adr/README.md moves Accepted 134 to 135, Proposed 9 to 8, and the ADR-0155 row's status cell to Accepted — 2026-11-17, recording the maintainer's answers to questions ①–③…. The Date cell stays 2026-11-15, the record's Date bullet. Right, and the head's Lint · docs & code guards and Lint · repo & tooling gates check-runs concluded success.
  • Gate verdicts: every check-run on the head is completed; none failed and none is pending. Success on the Lint jobs (eight), the four Type Check jobs, Governed Surface Queue Guard, PR-body guards, Check Documentation Links, Check PR Size, Plan Test Core shards, Test Core (1/8), Test Core, Test UI, Dogfood Regression Gate; the UI, build, docs-build and dogfood shard lanes and Check Changeset are skipped by path selection or label.
  • Security: the changed hunks teach sharing and permission behaviour (grants stop counting on four storage rows, grant and sharing-rule save refused 422, a host class refused at boot, a write-scope leaf on predicate update). The Security-touching: line reads yes on purpose; the seat adopting this record adds the security label.

② Semver level

Clause-②: no — matches the PR body's line. The diff publishes nothing from any package; no changeset and the skip-changeset label are the right level, and Check Changeset is skipped on the head accordingly.

③ Boundary flags

④ Design judgment

ADR-0155 against ruling record 6942854600.

  • Q1 A: Status line, TL;DR, D-0, D2 ("Tenant scope: none (① ruled A)"), D4's table, the Q1 Ruled paragraph and plan step 3 all say the subquery carries no tenant scope. Nothing softened, nothing added.
  • Q2, the recommended column row by row: the Ruled paragraph lists the four storage rows as R2 with R1 behind it, the host class as R1 at boot from the switch on with the seam's refusal behind it, the class kept whole, no exemption for a registration that declares it skips system reads, and a registration naming no object outside the class with the host told. The analytics rows (native compiler compiles, engine merge admits the brand, echo prints the subquery) and the explainer row (resolved at the record) match the table's recommended cells. driver-memory is left where D5 states it, which the ruling did not move. The same host-class boundary reads identically in the TL;DR, D4 (second class, and the boundary paragraph), the host row's cell, the two cost bullets, Consequences, O8 and plan steps 1, 2 and 6. I found no place where the exemption survives as an open choice, and no place where a no-object registration is put inside the class.
  • Q3 A: D1 Verbs, D3, the Q3 Ruled paragraph, Consequences and plan steps 2 to 4 admit the write form in the where of a predicate update and nowhere else; delete keeps the refusal.
  • The verbatim option text and its timestamp match the ruling record character for character. The options, costs and recommendations are kept as history, each section ends with its ruling, and no decision the ruling left open was changed. Status reads Accepted with "This record declares; it implements nothing", so the record claims nothing about code on main; SharedRecordIds does not exist on main, and the record calls the name provisional.

ADR-0111 D7 note. It adds R2's inert-grant arm with the same 422 SHARING_NOT_ENABLED, names the same four storage rows as ADR-0155's census (including "a driver this repository does not ship that does not declare it evaluates the leaf", which is the census row's own qualifier), keeps owner, queue and approval access, and says the arm takes effect with the plugin-sharing switch "and not before". Form matches the dated italic amendment already under the same item. Holds.

ADR-0147 D-a note. It restates ADR-0155 D4's recipient rule for the anchor sentence by sentence (caller and organization compared together, system context exempt, mismatch or missing anchor refused in ADR-0139 D3's envelope, nothing re-derived from userId or tenantId, the delegator's rebuilt context of D-c admitted), and says it changes neither what the anchor carries nor where it is captured. Form matches the blockquote notes ADR-0139 already carries. Holds.

ADR-0139 notes (D1, D3, O4). Each matches the ruling in substance: one more leaf under its own brand and the read-verbs sentence revisited for that leaf alone (③ A); a driver declaration read up front under R2 with R1 as the envelope behind it; O4 answered. Decided text is untouched and each note is dated and cites the ruling record. Not adding an Amended entry to ADR-0139's Status paragraph follows the precedent of the 2026-11-02 ADR-0147 notes, which also left it alone.

S1 (should-fix) — ADR-0139 is Accepted and built, and its three new notes state ADR-0155's decisions in the present tense with nothing saying they are not yet on main. D1: "the leaf's write form is legal in the where of a predicate update". D3: "a driver declares whether it evaluates such leaves, and the declaration is read up front". O4: ADR-0155 "lowers the share arm to its own engine-internal semi-join leaf ... with no cap, so every grant counts". On main the engine admits no such leaf, no such declaration exists for it, and sharing-service.ts still reads grants at limit: 5000; ruling 6895275749 records that the drop stays until the switch lands. O4 is the sharpest: its original sentence about the cap remains true, and the appended one reads as if it were fixed. The existing ADR-0147 notes carry "(Proposed)" as their marker, the 2026-11-15 Status amendment says "This amendment declares; #33696's change lands only after it merges", and this PR's own ADR-0111 note says "takes effect with ... the plugin-sharing switch ... and not before"; the three ADR-0139 notes carry no equivalent. Fix: one clause in each, saying the note records a decision that ADR-0155's execution cards build, and in O4 that the capped read stands until the plugin-sharing switch on #33787 lands.

N1 (nit) — ADR-0155 O7 keeps "None is in this record's diff, which adds this record and its index row and edits no other record" directly before "Landed (2026-11-17): all five". The first sentence describes the authoring diff, not this one; a reader meets two statements that look opposed.

N2 (nit) — the ADR-0139 D3 note sits at section level after the conformance bullet, yet speaks of "this bullet's envelope", and it writes "as ADR-0147 revisits it for its own" without the "(Proposed)" its sibling note two paragraphs above carries. The placement is what keeps the merge with #34565 clean, so only the wording is at issue.

S1 is the only graded finding above nit level and none is graded higher; it is open on this head and owes a delta review of its fix. N1 and N2 may ride the same edit or be left.

Implemented-by: claude/issue-33787-adr-0155-accepted
Reviewed-by: session_01ADHkmP44onN8RMzsPMqjRq

VERDICT: PASS

Review record 6944283386 on #34735. S1: the ADR-0139 D1, D3 and O4
notes now say each records a decision ADR-0155's execution cards will
implement, and O4 says the capped grant read stands until the
plugin-sharing switch under #33787 lands, and not before. N2: the D3
note names the refusal envelope it means and marks ADR-0147 Proposed.
N1: ADR-0155 O7 separates the authoring diff's history from the
landing of the notes.

Claude-Session: https://claude.ai/code/session_01ADHkmSLi1reMd27fT62jJ3
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmSLi1reMd27fT62jJ3

Final head · PR #34735 · 2026-11-17T09:54Z

Final head for the L1 and L2 deltas: ee8b666aba70b7687ccbaf5d3012d0ba8b10a07b, over daf666a8 (L1 6944178474, L2 6944283386). Check-runs on this head: 48, of which 26 success and 22 skipped, none pending, none red.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

l2-review#4 · os-steve · session_01ADHkmP44onN8RMzsPMqjRq

Contract-review-claim: session_01ADHkmP44onN8RMzsPMqjRq · head ee8b666 · 2026-11-17T09:55Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmTHGRTjPqZAcBuo9WH

席位核对

L1 delta · ACCEPT · head ee8b666aba70b7687ccbaf5d3012d0ba8b10a07b over daf666a8 (my L1 6944178474; final head 6944661846) · card #33787 · read 2026-11-17T09:55Z

Delta (2 files, +17/−11, read in full)

  • ADR-0139 D1, D3 and O4 notes (L2 S1): each now says it records a decision that ADR-0155's execution cards will implement. Until they land, main admits no such leaf and has no such declaration.
  • ADR-0139 D3 note (N2):
    • The envelope is now spelled out. I checked it against that section's refusal bullet at this head: "status 500, INTERNAL_ERROR, … logged at error once per driver". It matches.
    • ADR-0147 is now marked "(Proposed)", which matches its Status line (Proposed — 2026-11-02).
  • ADR-0155 O7 (N1): the stale sentence "None is in this record's diff" now dates itself to the 2026-11-15 authoring. The Landed line says the notes came in the later edit. That is a factual fix and no decision moves.

Re-read at this head

Owed after this

  • L2: the delta goes back to L2 at this head, CONTRACT_REVIEW_TIER, governed rule text.
  • Landing tier: governed (docs/adr/**), Tier H. It stays a draft until GOVERNED_APPROVERS approve.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

l2-review#4 · os-steve · session_01ADHkmP44onN8RMzsPMqjRq

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: ee8b666aba70b7687ccbaf5d3012d0ba8b10a07b
Local-runs: probe — one git merge-file -p pair on scratch copies of ADR-0139 (this head, merge base 62d9d0d9, PR #34565 head 779d1aa3), run in both argument orders, to answer the textual-conflict question the brief puts; no checkout, build, test or gate run
Scope: docs/adr/0111-record-share-management-authority-and-verb-boundary.md, docs/adr/0139-engine-internal-semi-join-leaf-readable-parent-ids.md, docs/adr/0147-membership-scoped-rls-lowers-to-an-engine-internal-org-member-semi-join-leaf.md, docs/adr/0155-sharing-scope-share-grants-lower-to-an-engine-internal-semi-join-leaf.md, docs/adr/README.md + none
Security-touching: yes

Delta review over record 6944283386 (this seat, PASS on daf666a8, S1 open, nits N1 and N2). Inputs read: that record and the other six comments on PR #34735; the PR body and labels at this head; the diff between the two heads; the net diff against merge base dc66d330; ADR-0139 D1, D3 and O4, ADR-0155 D4, D6, Q2 (R1, R2), O7 and plan step 6, ADR-0111 D7 and ADR-0147 D-a at this head; origin/main for the code the notes speak of; the 48 check-runs on this head.

① Derived judgments

  • The delta: one commit, ee8b666a, whose only parent is daf666a8. It is not a merge and main was not merged in; the merge base with main is still dc66d330, and docs/adr/ on main has not moved since it. Two files move, both under docs/adr/: ADR-0139 (the three notes this PR added, 14 lines in, 8 out) and ADR-0155 (O7, 3 lines in, 3 out). ADR-0111, ADR-0147 and the index are byte-identical to the reviewed head.
  • Append-only against main still holds: ADR-0139 takes 28 added lines and no removed line, ADR-0147 12 and none, ADR-0111 2 and none. The delta rewrote only text this PR itself introduced; no decided sentence of any Accepted record is edited.
  • Accept-sets and public surface: unchanged from the prior record. Prose only; nothing published, no schema, gate, skill or package file.
  • Index: docs/adr/README.md did not move in the delta and needed not to; no Status line, title or date bullet changed. Lint · docs & code guards and Lint · repo & tooling gates concluded success on this head.
  • Gate verdicts on this head: 48 check-runs, all completed, 26 success, 22 skipped, none failed, none pending. Success: the eight Lint jobs and Lint & Repo Gates, the four Type Check · jobs and TypeScript Type Check, Governed Surface Queue Guard, both PR-body guards runs, Check Documentation Links, Check PR Size, Plan Test Core shards, Test Core (1/8), Test Core, Test UI, Dogfood Regression Gate, Auto Label, filter. The UI, build, docs-build, dogfood shard, conformance and opt-in lanes, the two queue-verdict jobs and Check Changeset are skipped by path selection or label.
  • Security: unchanged. The hunks teach sharing and permission behaviour; the security line above reads yes on purpose, and the PR now carries the security label.

② Semver level

Clause-②: no — matches the PR body's line. Nothing moved: the delta is wording inside ADR notes, publishes nothing from any package, and skip-changeset with Check Changeset skipped remains the right level.

③ Boundary flags

④ Design judgment

ADR-0139 D1 note. The added sentence says the note records a decision ADR-0155's execution cards will implement, that until they land main admits no such leaf, and that D1 holds as written for every verb. Read on main: packages/ carries no SharedRecordIds brand (the only spelling near it is a local helper in a plugin-sharing test), and no OrgMemberIds either, so ReadableIds is the one leaf and D1's read-verbs sentence is what the engine does. True at this head. The sentence "the leaf's write form is legal in the where of a predicate update" is now read under that closing clause, as the content of the decision, not as a claim about main.

ADR-0139 D3 note. The closing sentence says main has neither the declaration nor the leaf. True: no driver declaration for a share-grant leaf exists on main, and the engine reads none. The envelope is now named: "the refusal bullet's envelope (status 500, INTERNAL_ERROR, logged at error once per driver; ADR-0155's R1)". Against ADR-0139 D3's refusal bullet as written ("status 500, INTERNAL_ERROR, a message naming the driver, the leaf and the remedy, logged at error once per driver"): the same three terms, nothing added. Against ADR-0155: R1 reads "an evaluator that cannot run it refuses with D4's envelope. This is ADR-0139 D3 as written", D4's refusal bullet repeats status 500 and INTERNAL_ERROR, and R2 reads "A leaf that still reaches such an evaluator is refused as in R1". The note's sentence is that last one, restated; it holds. "ADR-0147 (Proposed)" matches that record's Status line at this head and the sibling notes under D1 and D3.

ADR-0139 O4 answer. It now reads that ADR-0155 "decides that the share arm will lower" to its own leaf, and that the capped read "stands until the plugin-sharing switch under #33787 lands, and not before". On main, packages/plugins/plugin-sharing/src/sharing-service.ts still reads at limit: 5000 (two reads), so O4's original sentence and the appended one now agree. The switch is named as ADR-0155 names it: plan step 6, "plugin-sharing: the switch", and D6, "The plugin-sharing switch is where #33787 ends". True at this head.

ADR-0111 D7 and ADR-0147 D-a notes (unchanged in the delta, re-read for tense). The ADR-0111 note states the added arm and closes "The arm takes effect with ADR-0155's plugin-sharing switch ... and not before"; no claim about main is left unqualified. The ADR-0147 note sits in a record whose Status line reads Proposed, describes the seam in ADR-0155 D4's own terms ("Built once" is that record's build rule, not a statement that the seam exists), and ends by placing its cases on the card of ADR-0155 plan step 2. A reader cannot take it as built behaviour without ignoring both the Status line and that sentence. Neither note carries a present-tense claim of unbuilt behaviour that needs a marker.

ADR-0155 O7. The sentence that looked opposed to "Landed" now dates itself to the record's first writing and says that diff added only the record and its index row; the Landed sentence places the five notes "in the later edit that records the rulings in the Status line". Consistent with the tree: none of the five notes is on main, where the three other records are untouched by anything but this PR, and all five are in this PR's net diff. The two statements no longer read as opposed.

Outside the delta. ADR-0155's ruled text (Q1 A, Q2 the recommended column row by row, Q3 A), the index and the two unchanged notes are byte-identical to daf666a8; the prior record's reading of them stands and is not repeated.

S1: closed
N1: closed
N2: closed

No must-fix, no should-fix.

Implemented-by: claude/issue-33787-adr-0155-accepted
Reviewed-by: session_01ADHkmP44onN8RMzsPMqjRq

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmQ2SN4K183oqAvUajA

Seat record · 2026-11-17T10:02Z · Head-sha: ee8b666

维护者速读

  • 改了什么:ADR-0155(共享授权改走引擎内半连接子查询,去掉 5000 条上限)从 Proposed 改为 Accepted,把你对三问的裁决(Q1 A · Q2 推荐列逐行 · Q3 A)写进状态行、决策、三问各节、后果与执行计划;ADR 索引重新生成;按 ADR-0155 验收第 2 条,在 ADR-0139(D1、D3、O4)、ADR-0111(D7)、ADR-0147(D-a)各追加一条带日期的指针注记。不改代码。
  • 为什么改:你在 plugin-sharing: a member with more than 5000 share grants on one object silently loses access to the grants past 5000 (list misses rows, GET answers 404) #33787 选了「三问都按 ADR 推荐」(裁决记录 6942854600);ADR 规定裁决写进记录、合入后才能切执行卡。
  • 风险与回滚:纯文档,零运行时影响;回滚即撤回本 PR。ADR-0139 的 D3 注记与在途 PR feat(objectql): refuse a nested-relation condition and a lookup dimension up front on a driver without the readableIdsLeaf capability #34565 的 D3 修订并存,双向三方合并干净、互不重述。
  • 先看:ADR-0155 的 Status 行;同文件 Q2 末尾 "Ruled: the recommended column, row by row" 一段;ADR-0139 的 D1、D3、O4 三条注记。
  • 两分钟验证:读 ADR-0155 的 Status 行与 Questions 开头 "Ruled, all three" 段,应与裁决 6942854600 一致。
  • 需要你做的:用 os-zhuang 审读并批准(docs/adr 受管面,Tier H)。契约复审 PASS 6944766248,钉在 Head-sha ee8b666aba70b7687ccbaf5d3012d0ba8b10a07b。批准在案后由席位翻 ready,经合并队列落地。

席位意见:同意合并。逐条对照裁决记录,三问答案与 ADR 文字一致;执行卡在本 PR 合入后按 ADR-0155 执行计划切(收工期间不切,卡退回队列)。

席位核对

  1. 形态:5 个文件,+220/−104,全在 docs/adr/**;Part of #33787,Clause-②: no,Metadata-protocol: none。ADR ⇒ Tier H。
  2. 前提实测:main 上 ADR-0155 仍为 Proposed;三问裁决 6942854600 在卡上,鲜度门已过。
  3. 门禁 check-runs:head ee8b666a 上 48 条,26 绿、22 跳、0 红;区报门禁 21/21。
  4. 接受的偏差:L1-b2 首审 6944178474、delta ACCEPT 6944687393;契约复审首审 6944283386 的 S1/N1/N2 已全关,delta PASS 6944766248,无开项。触及安全语义(共享授权),已挂 security 标签;正文只写规则层措辞。
  5. 范围外去向:ADR-0155 执行卡(从第 1 步 spec 卡起,排在 feat(objectql): refuse a nested-relation condition and a lookup dimension up front on a driver without the readableIdsLeaf capability #34565 之后)本 PR 合入后再切;收工期间 plugin-sharing: a member with more than 5000 share grants on one object silently loses access to the grants past 5000 (list misses rows, GET answers 404) #33787 写释放评论退回 pm:queue。Skills-docs: 不欠。
  6. 落地条款:os-zhuang 授权批准在案后,席位翻 ready,经合并队列落地;与 feat(objectql): refuse a nested-relation condition and a lookup dimension up front on a driver without the readableIdsLeaf capability #34565 无先后约束(合并干净)。

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 17, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 17, 2026 10:11
@os-zhuang
os-zhuang enabled auto-merge November 17, 2026 10:11
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 17, 2026
Merged via the queue into main with commit 64ccf6b Nov 17, 2026
54 checks passed
@os-zhuang
os-zhuang deleted the claude/issue-33787-adr-0155-accepted branch November 17, 2026 11:05
@objectstack-fleet objectstack-fleet Bot removed the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation security size/m skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants