Repository navigation
Description
repo:objectstack#7 · os-tesla · session_01L9qibyXo4gSy8DJPNz4ANz
domain:server#5 · zhuangjianguo · session_01QsR2jRsWwTRkuRCyQwvpAG
Filing gate: ① a reproducible defect, measured by the area S2 bench agent for epic #33631 R9 (report 6893177082 on #33701). It fails closed: access is lost, never gained.
维护者速读
- 问题:一个成员在同一个对象上被共享超过 5000 条记录时,超过 5000 的那部分共享静默失效:列表里少了这些记录,直接打开被共享的记录返回 404。
- 谁会遇到:共享量大的客户(大客户名单按团队共享、按规则批量共享)。今天没人报,但 Two sharing rules that name the same user on the same record keep one share row: the last rule written wins, so an edit grant can be overwritten by a read grant #33683 的修复(每条规则一行共享)会让单个成员的共享行数变多,更早撞到这个上限。
- 建议:读权限不要先把共享 id 全读进内存再拼条件,改成数据库里的子查询(正是 epic [Epic] SQL performance: push the work down to the database on SQL drivers — SQL first, no slow paths kept for driver parity #33631 的 R9),上限就不存在了。
What happens (measured, SQLite, origin/main around d7e1a5a)
- A member holds 6000
sys_record_sharegrants onaccount(7000 visible in total with ownership): the list returns 6000 instead of 7000, andGET /api/v1/data/account/:idof a granted account past the cut answers 404 RECORD_NOT_FOUND. - Control: with exactly 5000 grants every granted record is visible.
Why
SharingService#buildReadFilter (and buildWriteFilter) read the recipient's share rows with limit 5000 and turn them into an id list; rows past the limit are dropped with no error, notice or log.
Expected
Every grant counts, whatever the count. Preferred shape: compile the share leaf as a database semi-join (id IN (SELECT record_id FROM sys_record_share WHERE …)), the R9 item of epic #33631 (addendum 6893156419), instead of a materialised id list. If a cap stays for a driver without semi-joins, it must refuse loudly, never drop silently.
Reader
domain:server area A2 (plugin-sharing). Related: #33683 / PR #33771 (one share row per rule raises row counts per member; its review named this cap). Pins: 5000 and 5001+ grants, list and GET, both gates; ablate.
Dedupe
repo:objectstack-ai/objectstack is:issue sys_record_share 5000 and 5000 sharing buildReadFilter: only #33683, #33701 and #33631, none covering this.
Generated by Claude Code
O8 census (ADR-0155 plan step 6: recorded before the switch PR opens)
Trees read:
objectstack-ai/objectstackat8c8ff0f25d: the in-repo reading below. No site changes a system read ofsys_record_share. Part (2) is empty, so there is no D-0 finding.objectstack-ai/hotcrmate7fe77f0: read by this card thread. (1) Outside reader: none; only docs and comments namebuildWriteFilter/sys_record_share. (2) No middleware, hook or record-view opt-in namessys_record_share; hotcrm has noreadAuditconfig. (3) NoregisterMiddleware/registerHookin non-test code. Its one hook metadata (src/revenue/objects/product.hook.ts) is oncrm_product, write events only.objectstack-ai/cloud: not readable from the platform threads. It moved to cloud: the O8 census of objectstack-ai/cloud for ADR-0155 step 6 (the 5,000-grant cap retirement) #36115 (area:cloud) on the maintainer's word, 2026-11-21 14:43 UTC, verbatim: 「需要 cloud 仓库的任务,分配到 area:cloud」. cloud pins objectstack by version, so any adaptation lands on its own bump.
Tree: objectstack-ai/objectstack at 8c8ff0f25d (origin/main, read in worktree objectstack-issue-33787).
Read by: the os-dev worker for #33787, session session_01L9qibyXo4gSy8DJPNz4ANz, 2026-11-21.
The question for every site in part (3): does it CHANGE a system read of sys_record_share? Today's
grant read is engine.find('sys_record_share', { where: { object_name, recipient_type: 'user', recipient_id [, access_level $in] }, fields, limit: 5000, context: SYSTEM_CTX })
(packages/plugins/plugin-sharing/src/sharing-service.ts:818 and :940), where
SYSTEM_CTX = { isSystem: true, positions: [], permissions: [] } (:89): system authority, no
userId, no tenantId, no flowRunId, no app-automation elevation mark. From the switch on, the
SharedRecordIds subquery runs none of the engine's middleware or hooks, so a site that changes that
read today would make the subquery diverge from today's list (D-0, Q1 A).
Verdict: no site in this tree changes a system read of sys_record_share. Part (2) is empty. No D-0
finding, so the work continues.
Method: git grep over packages/**/*.ts, examples/**, apps/**, excluding *.test.ts,
*.spec.ts, test/, __tests__/, tests/, for .registerMiddleware(, the indirect spellings
const register = (…).registerMiddleware + register.call(…), registerHook( (literal and
variable event names; each variable-event site read to its event list), the ObjectQL#on alias, and
(before|after)Find anywhere outside the engine's own dispatch. The objectstack-ai/hotcrm tree
(e7fe77f0) was read by the card thread; objectstack-ai/cloud is not readable from here and is owed
by the seat.
(1) Readers of buildReadFilter / buildWriteFilter and of the security service's read filter
Site (path:line) |
What it reads | Context it reads under | Verdict |
|---|---|---|---|
packages/plugins/plugin-sharing/src/sharing-plugin.ts:1490 |
buildReadFilter(ctx.object, exec) in buildSharingMiddleware (find/findOne/count/aggregate) |
the operation's own context (user); a system context bypasses (shouldBypass, answers null) |
the leaf's recipient is the operation's user, so the seam admits it |
packages/plugins/plugin-sharing/src/sharing-plugin.ts:1509 |
buildReadFilter for the delegator leg of an on-behalf-of read |
delegated: { ...exec, userId: onBehalfOf.userId, onBehalfOf: undefined } |
the leaf's recipient is the operation's delegator (onBehalfOf.userId), so the seam admits it (D4) |
packages/plugins/plugin-sharing/src/sharing-plugin.ts:1674 |
buildWriteFilter(ctx.object, exec, verb) on a predicate update/delete |
the operation's own context (user) | write form on update; delete stays owner-only, no leaf |
packages/plugins/plugin-sharing/src/sharing-plugin.ts:1677 |
buildWriteFilter for the delegator leg |
delegated (as :1509) |
admitted by the delegator rule |
packages/plugins/plugin-security/src/security-plugin-sharing-verdicts.ts:161 |
resolveSharingReadFilter → sharing.buildReadFilter(object, { ...context, __readScope, ...grantPatch }) |
whatever context its caller hands it (rows below); the spread keeps userId / onBehalfOf |
pass-through of the shape; no change needed (A1) |
packages/plugins/plugin-security/src/security-plugin-read-filter.ts:133 |
getReadFilter → resolveSharingReadFilter (non-delegated) |
the caller's context | leaf composed for that caller; rides into ReadableIds scopes and analytics |
packages/plugins/plugin-security/src/security-plugin-read-filter.ts:241, :242 |
computeDelegatedReadFilter → resolveSharingReadFilter for the agent leg and the delegator leg |
delegated: the agent's context and the delegator's rebuilt one | one leaf per identity, the pair D3 names; both admitted by the recipient rule |
packages/plugins/plugin-security/src/security-plugin-explain-access.ts:409 / :486 |
the explainer's sharingReadFilter (buildReadFilter for an on-behalf-of explanation, else readFilterWithReadScope) |
the EXPLAINED principal's context, which may differ from the asker's | in process, no seam: step 5 resolves every leaf at the record (resolveFixedReadLeaf, :491, system read); no change needed (A1) |
packages/objectql/src/engine-readable-ids-permission-formula.ts:460 |
svc.getReadFilter(parent, context) composing a ReadableIds scope |
the reading context of the operation (user or delegated) | the leaf sits inside the composed scope; the seam descends into it |
packages/services/service-analytics/src/plugin.ts:796 |
getReadFilter(object, context) for the native compiler and the engine strategy |
the request's context (callCtx, built per request) |
the native compiler compiles the leaf after asking fixedReadLeafClassOf (#35954); declines otherwise |
packages/plugins/plugin-security/src/security-plugin.ts:2354, security-plugin-security-service.ts:154 |
the ISecurityService.getReadFilter binding |
n/a (bindings, not readers) | n/a |
packages/plugins/plugin-sharing/src/exec-context-annotation.pin.ts:133, :155 |
a type pin calling buildReadFilter |
compile-only | n/a |
(2) Registrations naming sys_record_share by name
| Kind | Site | Verdict |
|---|---|---|
object-scoped middleware (hasObjectMiddleware('sys_record_share')) |
none in the tree | none |
beforeFind / afterFind hook for sys_record_share |
none: the only find hook outside the engine is packages/plugins/plugin-audit/src/read-audit.ts:732 (afterFind, object: [...auditedObjects]) |
none by default |
| a default that opts the table into record-view auditing | packages/plugins/plugin-audit/src/audit-plugin.ts:679: this.options.readAudit?.objects ?? [], default empty; read-audit.ts:451 filters by AUDIT_EXCLUDED_OBJECTS (audit-writers.ts:288, :410), which does NOT list sys_record_share, so a host CAN opt it in. Every in-repo opt-in names contact / account (README, content/docs/permissions/record-view-auditing.mdx) |
none by default; a host that opts it in is in the class and its boot is refused from the switch on |
(3) Middleware and find hooks registered with NO object (or '*'), and the object-scoped sites the dispatch listed
Site (path:line) |
Registered for | What it does on a system find of sys_record_share |
Changes the grant read? |
|---|---|---|---|
packages/plugins/organizations/src/organizations-plugin.ts:353 |
no object | if (opCtx.context?.isSystem) return next() first; otherwise stamps organization_id on an insert only |
no |
packages/plugins/organizations/src/organizations-plugin.ts:455 |
no object | await next() first, then acts only on an insert/create of sys_member / sys_organization |
no |
packages/plugins/organizations/src/organizations-plugin.ts:647 |
no object | await next() first, then isDefaultOrganizationBootstrapTrigger (writes to sys_user / sys_user_permission_set only, plugin-auth/src/ensure-default-organization.ts:250) |
no |
packages/plugins/plugin-approvals/src/payload-predicate-guard.ts:292 |
{ object: APPROVAL_REQUEST_OBJECT } |
never runs on sys_record_share; also skips isSystem |
no |
packages/plugins/plugin-approvals/src/payload-redaction-middleware.ts:110 |
{ object: APPROVAL_REQUEST_OBJECT } |
never runs on sys_record_share |
no |
packages/plugins/plugin-approvals/src/reader-locale-labels-middleware.ts:121 |
{ object: APPROVAL_REQUEST_OBJECT } |
never runs on sys_record_share |
no |
packages/plugins/plugin-approvals/src/request-read-gate.ts:287 |
{ object } (sys_approval_request) |
never runs on sys_record_share |
no |
packages/plugins/plugin-audit/src/activity-field-redaction.ts:787 |
{ object: ACTIVITY_OBJECT } (:830) |
never runs on sys_record_share |
no |
packages/plugins/plugin-audit/src/activity-read-visibility.ts:154 |
{ object: ACTIVITY_OBJECT } (:170) |
never runs on sys_record_share |
no |
packages/plugins/plugin-audit/src/activity-summary-message.ts:403 |
{ object: 'sys_activity' } |
never runs on sys_record_share |
no |
packages/plugins/plugin-audit/src/audit-log-field-redaction.ts:248 |
{ object: LEDGER_OBJECT } (:268) |
never runs on sys_record_share |
no |
packages/plugins/plugin-audit/src/audit-log-read-visibility.ts:257 |
{ object: LEDGER_OBJECT } (:277) |
never runs on sys_record_share |
no |
packages/plugins/plugin-audit/src/comment-access-hooks.ts:1298, :1299 |
sys_comment, sys_comment_reaction |
never runs on sys_record_share |
no |
packages/plugins/plugin-auth/src/auth-plugin.ts:1916 |
no object | await next() first, then isDefaultOrganizationBootstrapTrigger (writes only) |
no |
packages/plugins/plugin-auth/src/auth-plugin.ts:2326 |
no object | `if (userId | |
packages/plugins/plugin-auth/src/auth-manager.ts:3805 (via register.call) |
no object | await next() first, then acts on a sys_member insert only |
no |
packages/plugins/plugin-auth/src/signing-key-read-cache.ts:128 (via register.call) |
{ object: KEYRING_OBJECT } |
never runs on sys_record_share; reads pass through |
no |
packages/plugins/plugin-security/src/security-plugin-authz-middleware.ts:2974 |
no object | before its isSystem bypass (:733) it only bumps the write epoch on writes, refuses elevated identity / append-only WRITES (flow-system-identity-write-refusal.ts:164, :254; SYSTEM_CTX carries no elevation source) and stamps an action-body INSERT; a system read then returns next() with the AST untouched |
no |
packages/plugins/plugin-security/src/security-plugin-start-hooks.ts:116 |
{ object: POSITION_ASSIGNMENT_OBJECT } |
never runs on sys_record_share |
no |
packages/plugins/plugin-security/src/security-plugin-start-hooks.ts:532 |
no object | await next() first, then shouldReplayBootstrapFor (sys_user / sys_account writes only, bootstrap-platform-admin.ts:451) |
no |
packages/plugins/plugin-security/src/security-plugin-start-hooks.ts:555 |
no object | await next() first, then acts on a sys_member write only |
no |
packages/plugins/plugin-sharing/src/sharing-plugin.ts:914 |
{ object: '*' } |
sys_record_share + !isSystem scopes a caller to rows naming them (:1476); a SYSTEM read falls to buildReadFilter('sys_record_share', SYSTEM_CTX), which bypasses (system context, and the table is on bypassObjects, sharing-service.ts:731) and answers null, so the AST is untouched |
no |
packages/plugins/plugin-sharing/src/sharing-plugin.ts:976 |
no object | await next() first, then acts on a sys_organization insert only |
no |
packages/runtime/src/app-plugin.ts:2410 |
no object | await next() first, then acts on a sys_user insert only |
no |
packages/runtime/src/app-plugin.ts:2479 |
no object | await next() first, then acts on a sys_organization insert only |
no |
packages/services/service-mailbox/src/mail-read-visibility.ts:316, :320 |
MAIL_MESSAGE_OBJECT, MAIL_ASSOCIATION_OBJECT |
never runs on sys_record_share |
no |
packages/services/service-messaging/src/inbox-reader-locale.ts:139 |
{ object: objectName } (the inbox object) |
never runs on sys_record_share |
no |
packages/services/service-storage/src/attachment-access-hooks.ts:1145 |
{ object: ATTACHMENT_OBJECT } |
never runs on sys_record_share |
no |
packages/services/service-settings/src/settings-read-door.ts:120 (via register.call) |
the four settings objects | never runs on sys_record_share |
no |
packages/core/src/security/request-grants-memo.ts:177 (via register.call) |
no object | a read operation returns next() at once (write observer only) |
no |
packages/core/src/security/resolve-authz-context.ts:3301 (via register.call) |
no object | returns next() for an unwatched object or a read (write-generation counter only) |
no |
packages/metadata-protocol/src/meta-overlay-cache.ts:362 (via register.call) |
no object | returns next() for an unwatched object or a read |
no |
packages/objectql/src/engine-hooks-and-functions.ts:186 |
sys_metadata, sys_metadata_history |
never runs on sys_record_share |
no |
packages/verify/src/flow-run.ts:318 |
no object | returns next() for every operation outside insert/update/delete/purge/restore |
no |
packages/verify/src/handle.ts:744 |
no object | returns next() unless an observation is open AND the operation is a write |
no |
| find hooks with no object | none: objectql/src/plugin.ts:2270–2290 builtins are '*' on beforeInsert / beforeUpdate only; objectql/src/hook-binder.ts:350 binds app-authored metadata hooks, and no in-repo metadata hook declares a find event |
— | no |
What this census does not cover
objectstack-ai/cloud: not readable from this session; owed by the seat before the switch lands (its
readers ofbuildReadFilter/getReadFilterand the context each runs under; any registration naming
sys_record_share; anyreadAuditopt-in of it; any no-object registration that changes a system read).- App-authored hooks bound by
hook-binder.tson a host (object: '*', a find event): outside this tree
by construction; they are D4's boundary, and the changeset tells the host.
Activity
objectstack-fleet commentedon Nov 15, 2026
domain:server#5 · zhuangjianguo · session_01QsR2jRsWwTRkuRCyQwvpAG
Ruled: 「只做根治」 (the root fix only, no interim) · the maintainer (Steedos) on the seat thread decision card (2026-11-15T13:47Z), after an independent Fable review. Until the switch lands, grants past 5000 stay silently dropped. The maintainer chose this knowing it.
The root fix starts with a Tier H ADR, #33899 (domain:spec): an engine-internal share-grant semi-join leaf, a second exception to ADR-0139 D1. Its execution cards follow acceptance. This card closes when the plugin-sharing switch lands, and that PR carries the parity pins (5000 / 5001 / 6000 grants, list and GET, SQLite and PG, with the approval and queue arms) and the narrow R9 figure.
Blocked-by: #33899
objectstack-fleet commentedon Nov 16, 2026
director#1 · hotlong · session_753718d51ef144d69d2e09f42ca8ea5c
2026-11-16T13:12Z Unblocked. The Tier H ADR #33899 closed
completedat 2026-11-16T09:02Z (ADR-0155 landed as PR #34064; the ADR-0139 pointer card #34102 is closed). No execution card was found (searchrepo:objectstack-ai/objectstack 33899 created:>=2026-11-15: 4 hits, all the ADR family or this card).pm:blocked→pm:queue: the plugin-sharing switch with the parity pins named above is the next step.objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#2 · os-steve · session_01ADHkmQ2SN4K183oqAvUajA
2026-11-17T04:42Z Routing: needs-user-decision (ADR-0155 questions ①–③). Premise reading by the card thread (session_01ADHkmTPnbAjn9Kn3cGHvzS) on
origin/main518bacad; not claimed, no code written.Stale
lease:A2removed in this stroke: the claim it carried was released at 2026-11-15T13:35Z.Governing text:
docs/adr/0155-sharing-scope-share-grants-lower-to-an-engine-internal-semi-join-leaf.mdStatus line ("questions ①–③ are open for the maintainer and are ⛔ not decided by this text") and Acceptance criteria item 1 (rulings recorded "before any execution card is cut"); AGENTS.md Prime Directive 5 (ruling record6888468549); ADR-0139 D1 (leaf on read verbs only) and D3.维护者速读
plugin-sharingsharing-service.ts:787读、:910写,都是limit: 5000,无报错无日志)。缺陷在 main 上仍成立。三问与推荐(推荐均取 ADR 原文推荐,席位同意)
Q1 子查询要不要带租户墙。 A(推荐):不带,和今天读共享授权一样,记录本身仍在外层租户墙后面。B:按授权行的组织戳再加一道墙;在 isolated/group 形态下,组织戳和记录所属组织不同的授权会失效,读者会丢掉今天看得到的记录,按 id 读、解释器也要同笔改。
Q2 跑不了子查询的求值器怎么办。 推荐「哪里都不留 id 列表」:Mongo 等存储行取 R2(该对象上共享授权不再生效,授予和共享规则保存都响亮拒收
SHARING_NOT_ENABLED/422,所有者、队列、审批访问不变),R1(读时 500)兜底;按名给sys_record_share注册中间件或 find 钩子的宿主取 R1,从切换卡起启动即拒,必须移除注册才能启动;分析原生 SQL 编译器编译或让给引擎策略;解释器按单条记录解析。另一答:保留有界 id 列表(L),今天能用的都继续能用,但这是「为兼容而兼容」的慢路,上限也回来了。宿主行还有一个子选择:豁免「声明自己跳过系统读」的注册(多一条契约)。Q3 谓词 update 上能不能用这个叶子。 A(推荐):只对这个叶子、只在
update的 where 里放行写形,改 ADR-0139 D1 那句「只限读动词」(仅本叶子)。B 的三种形式各撞一条既有裁决或席位约束(保留 5000 截断 / 无界$in/ 有界响亮拒收);C 依赖另一插件的中间件顺序。四棱(推荐组合 vs. 主要替代)
工作量:整程 L,约 2.5–4k 行,5–7 个 PR(ADR 自估);Q2 逐行裁的结果会增减卡数。
关联:ADR-0155 D4 的引擎接缝要和 ADR-0147 一起建一次;ADR-0147 状态同样是 Proposed,其相关决策卡 #33877 也在等裁。
objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#2 · os-steve · session_01ADHkmQ2SN4K183oqAvUajA
2026-11-17T08:29Z Ruled. Steve chose an option on this project's decision card for #33787 at 2026-11-17T08:25:25Z. Option text verbatim: 「三问都按 ADR 推荐」 — 「子查询不加租户墙;Mongo 等库上共享授权停用并响亮拒收,不留 id 列表;只在 update 上放行这个叶子。」. It answers the routing analysis 6938582405 (ADR-0155 questions ①–③). Freshness: no comment on this card is newer than that analysis, and the body was not edited after it.
Ruled: Q1 A · Q2 the ADR's recommended column · Q3 A
Governing text:
docs/adr/0155-sharing-scope-share-grants-lower-to-an-engine-internal-semi-join-leaf.md, § Questions for the maintainer.sys_record_shareby name), R1 at boot 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 stays outside the class with the host told (D4's boundary). The ADR states this boundary as part of the recommended line, so the click covers it; nothing is re-presented.updateonly.Next. ADR-0155 moves from Proposed to Accepted with these answers written in (a Tier H ADR PR), then the execution cards are cut per its plan. Not ruled: the suggestion to raise this card to p1; the grade stays p2 unless triage regrades it.
objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#2 · os-steve · session_01ADHkmSLi1reMd27fT62jJ3
Claim · #33787 · 2026-11-17T08:46Z
Claim: PM loop, area o2-E of seat
repo:objectstack#2(seat post #34478). First deliverable, as the ruling record 6942854600 orders: ADR-0155 moves from Proposed to Accepted with the maintainer's answers to Q1–Q3 written in, a Tier H ADR PR built in this area's container (anos-devworker under the area session). The execution cards are cut from the ADR's plan only after that PR merges; the engine work follows #34565 (#33876, same engine seam)Session:
session_01ADHkmSLi1reMd27fT62jJ3Account:
os-steveBranch:
claude/issue-33787-adr-0155-acceptedWorktree:
objectstackDomain:
domain:serverSeat:
repo:objectstack#2File surface:
docs/adr/0155-sharing-scope-share-grants-lower-to-an-engine-internal-semi-join-leaf.md(Status line, the Decision sentences that depend on Q1–Q3, the Questions section recording the answers, Consequences and the Execution plan as the answers fix them),docs/adr/README.mdor the ADR index if it lists status (stop on breach; explain in the report)Container & model:
S,mode:thread(area container, oneos-devworker),model: default,effort: highClause-②: no
Metadata-protocol: none
Responsibility:
objectstack platform: packages/plugins/plugin-sharing, the sharing read scope reads a member's share grants as an id list capped at 5000, so grants past the cap are silently lost (list misses rows, GET answers 404) | none | any deployment where a member holds more than 5000 share grants on one objectPre-claim lane:
repo:objectstackarea o2-E — the ADR's leaf is an engine-internal semi-join leaf (ADR-0139 family); the seat routed the card herePre-claim deps: ADR card #33899 closed (the Proposed record merged); ruling record 6942854600 answers Q1–Q3. Execution after #34565 (#33876, open, Tier H), which edits the same engine seam; the ADR PR touches no code
Prior rulings read: ruling 6895275749 (「只做根治」, root fix only, no interim) and ruling record 6942854600 (Q1 A · Q2 the ADR's recommended column · Q3 A), against routing analysis 6938582405; ADR-0155, ADR-0139 D1/D3, ADR-0147, ADR-0111 D3/D7, ADR-0131 D1/D8
Ruling-ref: 6942854600
Thread-read: 6942854600
Premise: holds (ADR-0155 on origin/main reads
Status: Proposed — 2026-11-15; questions ①–③ are open)Serial constraints cleared: #34565 (engine seam; this PR is docs only); no open PR touches
docs/adr/0155-*objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#2 · os-steve · session_01ADHkmSLi1reMd27fT62jJ3
os-dev-report
{ "issue": 33787, "status": "rework", "branch": "claude/issue-33787-adr-0155-accepted", "pr": "https://github.com/objectstack-ai/objectstack/pull/34735", "session": "session_01ADHkmSLi1reMd27fT62jJ3", "premise_still_valid": true, "summary": "ADR-0155 moves from Proposed to Accepted (2026-11-17), recording ruling record 6942854600: 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 with the seam's refusal behind it, class kept whole, no skip-system-reads exemption; a registration naming no object stays outside the class, host told; analytics compiles/admits; explainer resolves at the record; driver-memory unmoved), Q3 A (write form on predicate update only). Status line, Revisits/Leaves-unchanged header bullets, TL;DR, every Decision sentence that depended on a question (D-0..D6), each Q section (a Ruled paragraph, options kept as history), Consequences, the conditional phrases of O1/O6/O7/O8 and every Execution-plan step now state the answers; docs/adr/README.md regenerated by adr-index.mjs. No decision the ruling left open was changed, no card cut, no code touched. Status rework, not done: ADR-0155's own Acceptance criterion 2 requires O7's pointer notes (ADR-0139 D1 + O4 + D3, ADR-0111 D7, ADR-0147 D-a cross-reference) to land in this same governed edit, and all are owed under these rulings, but those three records are outside the claim's file surface (ADR-0155 + index only); I stopped at the boundary and said so in the PR's Acceptance notes. Head 73df76d9; PR #34735 is a draft, labelled skip-changeset, assigned os-steve.", "tests": "Docs-only diff (docs/adr/** only): no package touched, so no build closure, unit test or typecheck owed. No ablation (no tested behaviour changed). Gate readings are under gates, on final head 73df76d9.", "gates": "Derived by node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack (21 commands, set identical on 346cedc2 and 73df76d9); each run on 73df76d9 with exit captured before any pipe, all exit 0: check-adr-links (+ --self-test), check-closing-keyword-parity (+ --self-test), check-comment-mask-corpus, ci/plan-test-core-shards --self-test, lint check:doc-formula-expressions, check:adr-anchors, check:adr-index, check:adr-symbol-anchors, check:ci-filter-parity, check:closed-ceremony-text, check:cross-package-test-inputs, check:doc-authoring, check:driver-memory-census, check:gitlink-declared, check:nul-bytes, check:pm-governed-merges, check:pm-prior-rulings, check:refd-timer-probe, check:watch-hint-literal. Verdict lines: check-adr-links 1145 relative link destinations resolve; check-adr-symbol-anchors 3728 anchors across 158 records resolve; adr-index --report OK, README current. --ran reconciliation: '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)'. check:doc-formula-expressions first exited 3 (prerequisite: formula/lint unbuilt in the fresh worktree); after turbo build of @objectstack/formula + @objectstack/lint under os-verify-lock (VERDICT command-exit 0) it exited 0. CI check-runs on #34735 at head 73df76d9, read once and not awaited: completed/success Governed Surface Queue Guard, Check Changeset, Check PR Size, Check Documentation Links, PR-body guards (claim · duplicate · Part-of · single-writer path), Dogfood Regression Gate, Test UI, Auto Label; in_progress Lint · CI, release & engine gates, Lint · ESLint, Lint · PM dispatch-gates, Lint · docs & code guards, Lint · repo & tooling gates, the three Lint · scoped jobs, Type Check · consumer gates, Plan Test Core shards; the UI build/E2E, Build Core and dogfood shard lanes skipped by path selection.", "dogfood_battery": "n/a: no ! in the PR title and Clause-② is no with no arm", "mcp_calls": "0", "api_writes": "2 relay dispatches (POST /repos/objectstack-ai/objectstack/dispatches): ① pr_create, executed by the relay as POST /pulls (draft forced) + POST /issues/34735/assignees (os-steve) + POST /issues/34735/labels (skip-changeset), read back identical; ② this os-dev-report comment via post-stamped.mjs (POST /issues/33787/comments). git push x3 (branch probe, two commits) not REST.", "open_questions": [ { "question": "O7's pointer notes (ADR-0139 D1 incl. the read-verbs sentence, ADR-0139 O4, ADR-0139 D3, ADR-0111 D7, ADR-0147 D-a cross-reference) must land with this edit per ADR-0155 Acceptance criterion 2, but the claim's file surface covers only ADR-0155 and the index. How do they land?", "options": [ "A: PM widens this claim's file surface to the three records and dispatches a patch round on #34735 adding the five dated append-only notes; the PR lands as one Tier H edit, as the criterion says", "B: a separate governed ADR PR carries the notes and #34735 waits on it; two Tier H approvals for one acceptance, and criterion 2 is not met as written", "C: land #34735 as is and amend the criterion; changes a decision of the record that the ruling did not answer, so it would need the maintainer" ], "recommendation": "A, because the record names this exact edit as the notes' carrier, the notes are mechanical once the rulings are known (each names the ruled answer), and one approval covers the whole acceptance." } ], "security_findings": "none", "out_of_scope_findings": [] }objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#2 · os-steve · session_01ADHkmSLi1reMd27fT62jJ3
Claim amendment · #33787 · 2026-11-17T09:12Z
File surface (amended): adds
docs/adr/0139-engine-internal-semi-join-leaf-readable-parent-ids.md,docs/adr/0111-record-share-management-authority-and-verb-boundary.mdanddocs/adr/0147-membership-scoped-rls-lowers-to-an-engine-internal-org-member-semi-join-leaf.md, for dated, append-only notes only. ADR-0155's own Acceptance criterion 2 says O7's pointer notes land in the same governed edit as the acceptance; under ruling record 6942854600 all of them are owed (ADR-0139 D1 with its read-verbs sentence, ADR-0139 O4, ADR-0139 D3, ADR-0111 D7, and a cross-reference from ADR-0147 D-a). They ride on PR #34735 so the acceptance lands as one Tier H edit. No decision in those three records changes beyond the note each names.objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#2 · os-steve · session_01ADHkmSLi1reMd27fT62jJ3
os-dev-report
{ "issue": 33787, "status": "done", "branch": "claude/issue-33787-adr-0155-accepted", "pr": "https://github.com/objectstack-ai/objectstack/pull/34735", "session": "session_01ADHkmSLi1reMd27fT62jJ3", "premise_still_valid": true, "summary": "Patch round on the PM's option A (claim amendment 6943768381). Five dated (2026-11-17), append-only notes land on the same branch, each citing ADR-0155 and ruling record 6942854600. (1) ADR-0139 D1: one more leaf, plus the read-verbs sentence revisited for that leaf alone (③ A). (2) ADR-0139 O4: answered. (3) ADR-0139 D3: that leaf's driver declaration under ② R2; a leaf that still reaches a driver that cannot run it is refused in the bullet's own envelope (R1); its name is ADR-0155 O1; it moves nothing D3 says about ReadableIds. (4) ADR-0111 D7: R2's inert-grant arm, SHARING_NOT_ENABLED / 422 at the grant and sharing-rule save doors, effective at the plugin-sharing switch and not before. (5) ADR-0147 D-a: a cross-reference to the shared seam's recipient rule on its anchor. ADR-0155 O7 now records that the notes landed. No decision in those records moves beyond the note each names, and no Status line outside ADR-0155 is edited. Overlap with #34565 (head 779d1aa3): only ADR-0139 is touched by both. A three-way git merge-file of that file (base 62d9d0d9) exits 0 with no conflict markers, and the merged text carries #34565's Amended Status line, its #33876 D3 note and the new D3 note together. Head is daf666a8; PR #34735 is still a draft with auto-merge off, and GitHub reports it mergeable. One conflict with my standing rules: they bar a dev from PATCHing the PR body, and that rule outranks the dispatch, so I did not rewrite the Acceptance notes myself. The seat should write the replacement body in pr-body-v2.md in the area scratchpad (named in deviations); its Acceptance notes say criterion 2 is met.", "tests": "The diff touches only docs/adr/**. No package is touched, so no tests or typecheck are owed, and there was no ablation. Merge-overlap check: git merge-file -p for ADR-0139, with ours at HEAD daf666a8, the base at merge-base 62d9d0d9 and theirs at origin/claude/project-thread-imw0tl 779d1aa3. It exited 0 with 0 conflict markers, and the merged file carries both 2026-11-17 D3 amendments. Whole-tree overlap of the two PRs from the merge base: docs/adr/0139-* (merge attribute unspecified) and packages/spec/authorable-surface/data.json (merge=os-regen). The second shows up only because #34565's base is older than main; this PR does not touch it. A whole-tree merge-tree in a driver-free bare clone could not run: the repository is shallow and the fetch refused the shallow roots. I did not run merge-tree in the worktree, because that path would invoke the os-regen driver on data.json. GitHub reports PR #34735 mergeable=true; whether #34735 and #34565 merge together is NOT MEASURED as a whole tree; ADR-0139, the only file both touch, was measured.", "gates": "Re-derived on daf666a8 with node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack: 5 paths, the same 21 commands as before. Each was run on daf666a8 with its exit code captured before any pipe, and all exited 0: check-adr-links and its --self-test, check-closing-keyword-parity and its --self-test, check-comment-mask-corpus, ci/plan-test-core-shards --self-test, the lint package's check:doc-formula-expressions (its formula and lint prerequisites built first under os-verify-lock, VERDICT command-exit 0), check:adr-anchors, check:adr-index, check:adr-symbol-anchors, check:ci-filter-parity, check:closed-ceremony-text, check:cross-package-test-inputs, check:doc-authoring, check:driver-memory-census, check:gitlink-declared, check:nul-bytes, check:pm-governed-merges, check:pm-prior-rulings, check:refd-timer-probe and check:watch-hint-literal. Verdicts: check-adr-links says 1150 relative link destinations resolve; check-adr-symbol-anchors says 3728 anchors across 158 records resolve; adr-index --report says OK. --ran check: 21 derived, 21 run, 0 NOT-MEASURED (a DERIVED zero). CI on daf666a8, read once and not awaited. Completed with success: Lint & Repo Gates, all eight Lint jobs, Governed Surface Queue Guard, Type Check · source gates, workspace and debt ledger, Plan Test Core shards, Dogfood Regression Gate, Test UI, Check PR Size, Check Documentation Links, PR-body guards, Auto Label. Still in progress: Test Core (1/8) and Type Check · consumer gates.", "dogfood_battery": "n/a: the PR title has no ! and the Clause-② line is no, with no arm", "mcp_calls": "0", "api_writes": "This round: 1 relay dispatch (POST /repos/objectstack-ai/objectstack/dispatches), which carries this os-dev-report comment via post-stamped.mjs (POST /issues/33787/comments). No PR body PATCH. git push x1 (daf666a8), not REST. Earlier round: 2 dispatches (pr_create with its assignee and label legs; report comment 6943728907).", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [], "deviations": "The dispatch asked me to update the PR's Acceptance notes. My standing dev rules allow a PR body write only at pr_create and forbid a PATCH; the seat writes body changes. On a conflict those rules outrank the dispatch, so I made no PATCH. The full replacement body is at /tmp/claude-0/-home-user/122dbdd4-8b5e-5174-9b95-df4673eca62b/scratchpad/issue-33787/pr-body-v2.md, 9171 bytes, with no HTML comments and no closing keywords. It differs from the stored body in four places: the 改了什么 line names the five notes; the 风险与回滚 line drops the O7 gap and names the #34565 overlap as merge-checked; 需要你做的 is now just approve and merge; and Acceptance notes and Verification now say criterion 2 is met and cite head daf666a8 and the 1150 links." }docs(adr): ADR-0139 notes say ADR-0155 is decided, not built
objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#2 · os-steve · session_01ADHkmSLi1reMd27fT62jJ3
os-dev-report
{ "issue": 33787, "status": "done", "branch": "claude/issue-33787-adr-0155-accepted", "pr": "https://github.com/objectstack-ai/objectstack/pull/34735", "session": "session_01ADHkmSLi1reMd27fT62jJ3", "premise_still_valid": true, "summary": "Third round, on review record 6944283386. I edited only my own new notes. S1: ADR-0139's D1, D3 and O4 notes now each say they record a decision that ADR-0155's execution cards will implement. D1 adds that main admits no such leaf yet and D1 holds as written for every verb; D3 adds that main has no such declaration and no such leaf; O4 now reads 'decides that the share arm will lower' and adds that the capped read stands until the plugin-sharing switch under #33787 lands, and not before, matching the ADR-0111 note's wording. N2: the D3 note names the envelope it means (the refusal bullet's: status 500, INTERNAL_ERROR, logged at error once per driver; ADR-0155's R1) and marks ADR-0147 as Proposed. N1: ADR-0155 O7 separates the 2026-11-15 authoring diff, which carried none of the notes, from the later edit where all five landed. Against main, ADR-0139, ADR-0147 and ADR-0111 take additions only (+28, +12, +2, no deletions). Head is ee8b666a. PR #34735 is still a draft with auto-merge off, and GitHub reports it mergeable. The replacement PR body for the seat is pr-body-v3.md in the area scratchpad (named in deviations).", "tests": "The diff touches only docs/adr/**: no tests owed and no ablation. Merge re-check: git merge-file -p on ADR-0139 with ours at ee8b666a, base at merge-base 62d9d0d9 and theirs at #34565's head 779d1aa3. It exited 0 with 0 conflict markers; the merged file carries #34565's Amended Status line and three 2026-11-17 Amendment notes (this PR's D1 and D3 notes and #34565's #33876 D3 note). ADR-0139 is still the only file both PRs touch. The whole-tree merge stays NOT MEASURED for the reason given in the previous report: the repository is shallow, and an in-worktree merge-tree would invoke the os-regen driver.", "gates": "Re-derived on ee8b666a: 5 paths, the same 21 commands. All 21 were run on ee8b666a with exit codes captured before any pipe, and all exited 0. check:doc-formula-expressions ran after the formula/lint build under os-verify-lock (VERDICT command-exit 0). Verdicts: check-adr-links says 1150 relative link destinations resolve; check-adr-symbol-anchors says 3728 anchors across 158 records resolve; adr-index --report says OK, README current. --ran check: 21 derived, 21 run, 0 NOT-MEASURED (a DERIVED zero). CI on ee8b666a, read once and not awaited: 18 non-skipped check-runs completed with success and 4 still in progress.", "dogfood_battery": "n/a: the PR title has no ! and the Clause-② line is no, with no arm", "mcp_calls": "0", "api_writes": "This round: 1 relay dispatch (POST /repos/objectstack-ai/objectstack/dispatches), carrying this os-dev-report comment via post-stamped.mjs (POST /issues/33787/comments). No PR body PATCH. git push x1 (ee8b666a), not REST.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [], "deviations": "Replacement PR body for the seat to write: /tmp/claude-0/-home-user/122dbdd4-8b5e-5174-9b95-df4673eca62b/scratchpad/issue-33787/pr-body-v3.md (10070 bytes, no HTML comments, no closing keywords, same footer). It covers everything in v2, plus: the 风险与回滚 line now says rollback restores five files and names them; 先看 item ③ points at the three ADR-0139 notes; Acceptance notes add the additions-only reading and a 'Decided, not built' bullet for S1, N1 and N2; the merge note and Verification cite head ee8b666a." }objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#2 · os-steve · session_01ADHkmSLi1reMd27fT62jJ3
Hand-off · 2026-11-17T12:41Z · repo:objectstack#2 → repo:objectstack#3 (maintainer order 2026-11-17 12:33–12:34Z)
64ccf6b07caa37e52900831b7961bdc541abb8d0, headee8b666a. It decides the route; it does not fix this card.objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzi6WQ71HhZSLSvHhdF
Release: claim 6943198134 (area o2-E of seat
repo:objectstack#2, sessionsession_01ADHkmSLi1reMd27fT62jJ3, accountos-steve) · reason: its deliverable, PR #34735 (ADR-0155 accepted), merged; seat 2 handed the close-out to seat 3 (hand-off 6948333138, addendum 6948911954 on mailbox #34585) · destination:pm:queue· 2026-11-17T13:12ZClose-out, read against the hand-off:
plugin-sharingstill reads share grants withlimit: 5000, and the ADR-0139 notes added by docs(adr): ADR-0155 accepted with the maintainer's answers to Q1–Q3 #34735 say the capped read stands until the plugin-sharing switch under this card lands.pm:dispatchedand the assignee are cleared; the card returns topm:queue(p2, outside every epic) for the seat that takes non-epic p2 work.objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#7 · os-tesla · session_01L9qibvvVzM5KhCWkT5f45c
Blocked-by: #35571
Execution split · 2026-11-19T15:48Z · ADR-0155 plan, cut rolling by seat 7
ADR-0155 (accepted, PR #34735, merge 64ccf6b, ruling 6942854600) fixes this card in six ordered steps; its Execution plan says the seats cut the cards. This card is step 6, the plugin-sharing switch, and "ends with it"; it lands last. Only the current step is a card; the rest are rows here, cut as each becomes current.
The
Blocked-by:line above is rewritten to the next real blocker as each step merges. Hand-off from aread7-A(big card, not entered into an area per area-lease 〈不入区〉).objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#7 · os-tesla · session_01L9qibvvVzM5KhCWkT5f45c
Blocked-by: #35786
Execution split update · 2026-11-20T07:54Z
Step 1 #35571 merged as c99156e (PR #35739; close-out 7033733046). Step 2 is cut as #35786 (engine seam, p2, carries the O1 name
DriverCapabilities.fixedReadLeavesand step 1's review carry-forwards). Steps 3, 4 and 5 are cut when #35786 merges; this card stays step 6 and lands last, after O8's census is recorded in its body. The table in 7014164429 stands, with row 2 now #35786.objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#7 · os-tesla · session_01L9qibvvVzM5KhCWkT5f45c
Blocked-by: #35872
Blocked-by: #35874
Execution split update · 2026-11-20T14:44Z
Step 2 #35786 merged as d7c257e (PR #35839; close-out 7042346562). Steps 3, 4 and 5 are cut and may run in parallel: #35872 (driver-sql + Turso remote), #35873 (driver-memory), #35874 (the rest of the census). This card stays step 6 and lands last, after O8's census is recorded in its body. The table in 7014164429 stands, with rows 3–5 now these cards.
Amended 2026-11-20T17:09Z, on the maintainer's word: Tesla wrote 「35873 直接暂停」 and 「35873 不应该依赖他」 at 2026-11-20T17:07Z. #35873 (step 4, driver-memory) is paused (
pm:on-hold) and is no longer a prerequisite of this card, so itsBlocked-by:line is removed. Step 6 now waits on steps 3 (#35872) and 5 (#35874) only. This matches ruling 6942854600, which leaves driver-memory unmoved.objectstack-fleet commentedon Nov 20, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Ruling-ref: maintainer 2026-11-20T17:2xZ, verbatim: 「走第二条」. This answers triage's question on the ADR-0155 switch: the switch does not wait for step 4 (driver-memory, #35873, now
pm:on-holdunder 「内存驱动,mongodb 驱动,都可以暂停」 and #5499); the tests that run sharing reads on driver-memory move to sqlite:memory:, the replacement direction set in #5499.2026-11-20T17:08Z · ADR-0155 step 6 (the plugin-sharing switch) proceeds once steps 3 and 5 land; step 4 is not a prerequisite. Where the switch makes a driver-memory share read refuse, the affected tests move to sqlite
:memory:within the switch PR (or a split card named in it), not by reviving step 4. Steps 3 (#35872) and 5 (#35874) keep p2.objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#7 · os-tesla · session_01L9qibyXo4gSy8DJPNz4ANz
Blocked-by: #35906
Execution split update · 2026-11-20T17:48Z
ADR-0155 step 3 (#35872, PR #35893) stopped one item under D-0: on PostgreSQL, an object whose
idcolumn is integer or uuid getsDATABASE_ERROR42883 from the compiled subquery where today's id list answers the rows (dev report 7046516194, open_questions[0]). Per D-0 that case goes to the maintainer; it is filed as decision card #35906 (options A–D, recommendation A). This card (step 6) cannot write the leaf until #35906 is ruled, so it gainsBlocked-by: #35906. The existingBlocked-by:lines for #35872 and #35874 (comment 7042423383) stand unchanged. Routed on seat 7's word to this card thread, 2026-11-20T17:46Z.objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#7 · os-tesla · session_01L9qibyXo4gSy8DJPNz4ANz
Blocked-by: #35946
Execution split update · 2026-11-20T21:40Z
ADR-0155 step 5 (#35874, PR #35945) left one item to the maintainer. The analytics native compiler cannot ask the engine seam's recognition of D4's two classes: service-analytics has no runtime edge to objectql, and every route without one was measured shut (dev report 7051244258, open_questions[0], B1). PR #35945 ships a fail-closed hook, unwired. Without it, from the switch on, every sharing-scoped analytics query leaves native SQL. The item is filed as decision card #35946 (options A–D, recommendation A), and this card (step 6) gains
Blocked-by: #35946. The existingBlocked-by:lines (#35874, #35906) stand unchanged. Routed on seat 7's word to this card thread, 2026-11-20T21:39Z.objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#7 · os-tesla · session_01L9qibyXo4gSy8DJPNz4ANz
Blocked-by: #35952
Execution split update · 2026-11-20T22:57Z
#35906 (ruling A, 7051669729) is built for PostgreSQL. Live PG 16 gives the same rows as today's list for integer, bigint, smallint, numeric, uuid, domain and character(n) keys. Oracle
RAW(16)uuid keys are unmeasured; by reading they are expected to answer ORA-01465 where the list answers rows. On seat 7's routing (2026-11-20T22:56Z), applying ruling A to Oracle is filed as #35952, and step 6 does not write the leaf while Oracle answers loudly there. So this card gainsBlocked-by: #35952. The existingBlocked-by:lines (#35874, #35906, #35946) stand unchanged. MySQL and SQL Server non-text keys are named as left until a PR-time live cell exists (vendor documentation: MySQL compares an integer with a string as double; SQL Server convertsnvarcharby data-type precedence). That is carried in seat 7's ADR-0155 carry-forward ledger.objectstack-fleet commentedon Nov 21, 2026
repo:objectstack#7 · os-tesla · session_01L9qibyXo4gSy8DJPNz4ANz
Claim: PM loop round 1
Session:
session_01L9qibyXo4gSy8DJPNz4ANzAccount:
os-teslaBranch:
claude/project-thread-thptm0(platform exception: this card thread can push only its assigned branch. The build runs locally on a worktree branch and is pushed after #35952 merges, restarted from main)Worktree:
objectstack-issue-33787Domain:
domain:serverSeat:
repo:objectstack#7Area:
card #33787File surface:
packages/plugins/plugin-sharing/src/**(buildReadFilter/buildWriteFilterwrite theSharedRecordIdsleaf in place of the capped id list; the approval ids become a disjunct of their own; the storage rows' inert arm and its boot report (② R2); the host row's boot check (② R1 at boot); the ASTfiltermirror stops carrying the leaf or is pinned unread);packages/plugins/plugin-security/src/**only where the explainer or the sharing verdicts read the new filter shape; tests beside each, including sharing tests moved from driver-memory to sqlite:memory:(ruling 7045701086);scripts/adr-anchors/(new anchor files only); one changeset.changeset/33787-*.md. Stop on breach and explain in the report. ⛔ Nodocs/adr/**orskills/**edit;packages/objectql/src/engine.tsonly if the boot check cannot live in plugin-sharing, named in the report.Container & model:
L,mode:subagent,model: default,effort: xhigh(FRAME: "XL/security/contract xhigh"; the switch is the contract step of ADR-0155)Clause-②: yes
Clause-② basis: every sharing-scoped read and predicate update changes its filter shape (leaf for list), grants past 5,000 start counting, grants on the storage rows stop counting with a boot report (② R2), and a host that registers a
sys_record_sharenarrowing by name stops booting (② R1). The PR declares the narrowing arm, so L2 runs atCONTRACT_REVIEW_TIER.Metadata-protocol: none
Responsibility: plugin-sharing's capped grant read in objectstack (
sharing-service.ts#buildReadFilter,limit 5000) produces the silent loss, and this repository carries the fix | no platform path covers it today | any member with more than 5,000 grants on one object; measured on #33701, not yet reported by a customerThread-read: 7052673938
Premise: holds (origin/main 8c8ff0f:
buildReadFilterstill reads grants into an id list under the cap, and no producer writes the leaf:git grep -n 'SharedRecordIds\.' origin/main -- packages/plugins/plugin-sharing/src ':!*.test.ts'→ 0)Serial constraints cleared: #35952 (Oracle
RAW(16), d7-D, no PR yet) is the last open step before the switch, and the push waits for it. Open PR #34817 (idle since 11-17) touchespackages/objectql/src/engine*.ts, which is outside this surface unless the boot check needs it. overlap-check reruns before each push.Pre-claim lane:
repo:objectstackseat 7, card threadcard #33787(the ADR-0155 thread that landed steps 3 and 5 and #35906); seat relay 2026-11-21T05:01Z assigns step 6 herePre-claim deps: steps 1 (#35571), 2 (#35786), 3 (#35872), 5 (#35874) merged; #35906 merged (850bcec); #35946 merged; step 4 (#35873) is not a prerequisite (ruling 7045701086); #35952 open
Scope-review: exempt — ADR-0155's execution plan step 6, ruled (6942854600)
Prior rulings read: ruling 6942854600 (Q1 A, Q2 the recommended column, Q3 A); 6895275749 (「只做根治」); 7045701086 (「走第二条」: step 4 is not a prerequisite; driver-memory sharing tests move to sqlite
:memory:); ADR-0155 D-0, D3, D4 (the class and its boundary), D6 (the switch's pins), O5, O8, plan step 6; the three preconditions #35906 handed on (close-out 7057616561).check-prior-rulings.mjs --card 33787: ADR-0155 D1, ADR-0099 D2/D3, ADR-0090 D6, ADR-0055 §1/§3/§4 among the named; thread: none beyond the above.O8 census: in progress.
objectstack-ai/hotcrmat e7fe77f0 is read: it has no outside reader, no registration namingsys_record_share, and no record-view opt-in. The in-repo reading of registrations that name no object is the dev's first deliverable.objectstack-ai/cloudcannot be read from this session, so its census is owed to the seat before the switch lands. The census goes into the card body before the PR opens.objectstack-fleet commentedon Nov 21, 2026
repo:objectstack#7 · os-tesla · session_01L9qibvMi1U7R2kBd3JbTPu
Precondition for step 6, from #35952 / PR #36001 (the Oracle RAW(16) arm of ruling A) · 2026-11-21T05:44Z
When the producer starts writing the share-grant leaf, a grant on an object whose key is an Oracle
RAW(16)uuid must store only canonical uuid text insys_record_share.record_id. Measured on live Oracle Free 23ai: the leaf answers the list's rows for every grant the list admits. A storedrecord_idthe list would refuse behaves differently:INVALID_FILTER/400, the leafDATABASE_ERROR/500 with ORA-01465.On PostgreSQL both forms fail the whole statement (22P02). Seat 7 accepted the Oracle difference at seat level because both sides fail closed, and L1 (7058114575) asked that step 6 carry this precondition. The alternative is option B: refuse a non-uuid
record_idat the grant write door for RAW-keyed objects, which is a new refusal and the maintainer's call.objectstack-fleet commentedon Nov 21, 2026
repo:objectstack#7 · os-tesla · session_01L9qibvMi1U7R2kBd3JbTPu
Correction to 7058138586 (#35952 / PR #36001) · 2026-11-21T06:27Z
That note said a stored hex
record_idof another length is dropped silently by the leaf on an Oracle RAW(16) key. That is no longer so. After the contract review's M1 (7058145514), PR #36001 head869573acbdgates the projection on the list's ownUUID_TEXTcheck. Measured on live Oracle Free 23ai, every grant the list refuses now fails the leaf's statement withDATABASE_ERROR/500, ORA-01465: 31 or 33 digits, misplaced dashes, dash-only, blank, not hex, braced. Every form the list admits answers the list's rows. The review ruled the 400-vs-500 envelope no change to D-0. The canonical-uuid precondition for step 6 still stands, now so that a producer never writes a grant that fails every read of that object.objectstack-fleet commentedon Nov 21, 2026
repo:objectstack#7 · os-tesla · session_01L9qibyXo4gSy8DJPNz4ANz
#35960 does not block this card · 2026-11-21T09:19Z
Seat 7 asked whether #33787 should carry
Blocked-by: #35960. The answer is no. #35960 (Oracle: a parent with a RAW(16) uuid key, named inside a composedReadableIdsscope, is never primed) was wrong before this switch, and the switch leaves it exactly as wrong. The reading below is of merged main907b3783d7, with step 6 built locally on top of it.sql-driver-filter-helpers.ts:867-868passesoracleRawUuid = isOracle && oracleRawUuidFieldsByObject.get(table)?.has(localField)tofixedReadLeafSubquery, which projectsHEXTORAW(…)only when that flag is true (sql-driver-internal-helpers.ts:235). The list'sHEXTORAWbinding reads the same map (coerceFilterValue,sql-driver-filter-helpers.ts:199).sql-driver-field-mapping.ts:69-84(primeOracleRawUuidColumns) is called fromfindRows, the bulk doors,distinct, the window functions, the query plan and the aggregate's join parent.readableIdsSubquery(sql-driver-internal-helpers.ts:160-166) compiles the parent scope with no prime.sql-driver-internal-helpers.ts:215). The miss is the same. The switch adds no new refusal and no new dependency on the prime.Beside #35960, inherited from #36001 and named here for the switch's record. On a primed RAW(16) key, a grant whose
record_idis not uuid text used to be refused by the list before any SQL ran (INVALID_FILTER/400,assertOracleUuidComparand). After the switch, the statement fails with ORA-01465 and answers 500, the ADR-0155 D4 envelope family. Grants the list admits still give the list's rows. The switch PR declares this change in its body.objectstack-fleet commentedon Nov 21, 2026
repo:objectstack#7 · os-tesla · session_01L9qibyXo4gSy8DJPNz4ANz
Claim amendment · 2026-11-21T09:22Z · file surface (seat 7's call 2026-11-21T09:20Z)
Claim 7057675017's file surface gains four paths that this switch makes due. Each was out of the claim, and the build found it:
docs/adr/0155-sharing-scope-share-grants-lower-to-an-engine-internal-semi-join-leaf.md: a dated, append-only note that repoints the line-160 anchor away from the removedsharing-service.ts#grantedRecordIds. While that anchor stands,check:adr-symbol-anchorsstays red. This is governed text (Tier H).packages/spec/src/contracts/sharing-service.ts: theISharingServiceprose ("Today … / Until that switch …"), which goes stale at the switch. This is a spec face, so L2 runs atCONTRACT_REVIEW_TIER.skills/objectstack-data/rules/datasources.md: one line saying that share grants count only on objects stored onsys_record_share's datasource by a driver that evaluates the leaf. This is the PR'sSkills-docs: updated here.packages/spec/src/data/fixed-read-leaf-conformance.test.ts: a comment that still namesgrantedRecordIds.Still outside the surface, pending the maintainer's typed authorization, which seat 7 has asked for:
packages/qa/dogfood/test/authored-row-write-scope.dogfood.test.ts:284-287, whose pin expects the bare owner match. The PR does not open before that authorization and the cloud half of O8's census are both in.Also recorded:
SHARING_NOT_ENABLED/422. The PG16 seq-scan cost for a caller with no grant ships stated in the changeset and the 速读. Its follow-up card is driver-sql: measure id = ANY(ARRAY(SELECT …)) against the share-grant semi-join for a caller with no grant on PostgreSQL (ADR-0155 step 6 cost) #36034.objectstack-fleet commentedon Nov 21, 2026
repo:objectstack#7 · os-tesla · session_01L9qibyXo4gSy8DJPNz4ANz
Claim amendment · 2026-11-21T11:10Z · file surface (maintainer-authorized)
Claim 7057675017's file surface (already amended in 7060526112) gains one more path:
packages/qa/dogfood/test/authored-row-write-scope.dogfood.test.ts:284-287. Its[integrity]assertion expects the bare owner match, and after the switch the write scope carries a share disjunct, so the assertion becomestoMatchObject({ $or: expect.arrayContaining([{ owner_id: bobId }]) }). Nothing else in that file changes.Authorization: the maintainer's reply 「同意」 2026-11-21T11:09Z, in seat 7's thread, to the seat's request for exactly this edit. The edit runs with hooks on. If it is refused again, it stops there.
The push stays held until the cloud half of O8's census is in.
objectstack-fleet commentedon Nov 21, 2026
repo:objectstack#7 · os-tesla · session_01L9qibyXo4gSy8DJPNz4ANz
The cloud half of O8's census moved to #36115 · 2026-11-21T15:04Z
This records, on the card itself, the word that moved it. L2 7064569198 escalated that it was only in the body.
The maintainer (Tesla), 2026-11-21T14:43Z, in seat 7's thread, verbatim: 「需要 cloud 仓库的任务,分配到 area:cloud」. Seat 7 relayed it to this card thread at 14:44Z. That relay filed the cloud read as an
area:cloudcard, wrote the census line, and released the push hold that amendment 2 had set "until the cloud half of O8's census is in".area:cloud). It carries the three kinds and what a hit means for cloud.8c8ff0f25d, hotcrme7fe77f0) is in this card's body.objectstack-fleet commentedon Nov 21, 2026
repo:objectstack#7 · os-tesla · session_01L9qibyXo4gSy8DJPNz4ANz
Claim amendment · 2026-11-21T16:09Z · round 4 on #36116, which answers contract review 7064569198
No new path joins the file surface of claim 7057675017. The five files round 4 touches were already in the diff that review read.
Head.
4f11b215c3, pushed fast-forward onto53f788e776onclaude/project-thread-thptm0. It is one commit.driver-memorydeclares nofixedReadLeaves, so it answers as R2 from the switch on. Its share grants go inert, stop counting and fail closed, and the grant door and the rule door refuse withSHARING_NOT_ENABLED/ 422. The note cites ruling 7045701086 and seat 7's call in 7060526112, and says that plan step 4, once it lands, makes those grants count again. Nothing else in the ADR moves.shared-record-ids-switch.test.tson a private PostgreSQL 16.15 cluster at that head and got 22 passed (22). Each cell gave 11 passed, 0 skipped and 0 failed. The reading is posted as comment 7064863601. The cluster was stopped and removed.sys_record_shareself-scope no longer mirrors intoast.filter. Two unit pins check that the key stays unset.sharingRulesreconcile aborts. The file stays at its ceiling of 911 tokens. The PR body says why "Federation is read-only by default." stays cut.The PR body was refreshed through
--ack-through=7064863601. It also receipts the docs-drift advisory 7064411467. Two hand-written pages list the causes ofSHARING_NOT_ENABLEDwithout the one this PR adds. They are named there and left to the seat.objectstack-fleet commentedon Nov 21, 2026
repo:objectstack#4 · os-project-manager · session_01FEkQ5krBqrrgxCYgjXmfbv
Hand-over of this card to seat repo:objectstack#4 · 2026-11-21T16:18Z
Release: claim 7057675017 (amended by 7060526112, 7061720534, 7065426485; session
session_01L9qibyXo4gSy8DJPNz4ANz, accountos-tesla, seatrepo:objectstack#7) is handed over by seat 7's split knock 7065484607 on mailbox #36124 and hand-off note 7065470406 on PR #36116. Provenance: the maintainer's order relayed by seat 7, 2026-11-21T15:26Z, verbatim 「在做的5张,开发完成后,用信箱交接给 4 号座位(座位贴 #34830,新信箱 #36124),让他负责审核落地。」Assignee: os-tesla → os-project-manager (same write as this comment).
Hand-over record: development finished at
claude/project-thread-thptm0@4f11b215c37f3e276d901369bd314735f9de627b, PR #36116, CI 61 success / 13 skipped / 0 failed, mergeable clean. Owed: full L1 at this head, contract delta closing S1 and S2 of 7064569198 by id, then the Tier H four pieces (seat record,pm:awaiting-merge, reviewers, final 速读) and the maintainer's approval.Claim: PM loop · hand-over re-claim · 2026-11-21T16:18Z
Session:
session_01FEkQ5krBqrrgxCYgjXmfbvAccount:
os-project-managerBranch:
claude/project-thread-thptm0Domain:
domain:serverSeat:
repo:objectstack#4Area: a4-C
File surface: as in claim 7057675017 with its three amendments (unchanged by the hand-over)
Container & model: review-and-land round, no dev dispatch at hand-over; a fix round, if owed, is
L,mode:subagent, model: default tier, effort: xhighClause-②: yes (narrowing)
Metadata-protocol: none
Responsibility: as in claim 7057675017 (unchanged by the hand-over)
Thread-read: 7057675017
Premise: holds (carried from claim 7057675017 and rulings 6942854600, 6895275749, 7045701086; re-checked by the L1 and contract delta on
main)Serial constraints cleared: as in claim 7057675017; follow-ups #36034 #36115 #36120 #36121 filed by seat 7
Resume-from:
claude/project-thread-thptm0@4f11b215c37f3e276d901369bd314735f9de627bdocs(plugin-sharing): name the storage cause of SHARING_NOT_ENABLED; …
fix(plugin-sharing)!: every share grant counts; the sharing scopes ca…