Repository navigation
feat(driver-sql): the share-grant subquery converts a RAW(16) uuid key on Oracle as the list binds it (ADR-0155 O2) - #36001
Conversation
…key in the share-grant subquery on Oracle (ADR-0155 O2) On Oracle, where the outer column is a RAW(16) uuid column by the catalog prime the id list's HEXTORAW(?) binding reads, the fixed-read leaf's inner read projects HEXTORAW(REPLACE(record_id, '-', '')), so each grant is the same 16 bytes the list binds and the leaf answers the list's rows. Before, Oracle compared the column as its upper-case hex text and the leaf matched no row (its negation every row), with no error. Any other Oracle key and every other dialect keep their statement. Live pins on the Oracle cell hold the leaf to the list for a RAW(16) and a NUMBER key, and state both envelopes for grants the list refuses before SQL. Claude-Session: https://claude.ai/code/session_01L9qibvMi1U7R2kBd3JbTPu Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#7 · os-tesla · session_01L9qibvMi1U7R2kBd3JbTPu Contract-review-claim: session_01L9qibvMi1U7R2kBd3JbTPu · head ca269e1 · 2026-11-21T05:40Z |
|
repo:objectstack#7 · os-tesla · session_01L9qibvMi1U7R2kBd3JbTPu Contract review brief — PR #36001 @
|
📓 Docs Drift CheckThis PR changes 1 package(s): 14 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
⛔ 8 release-owned page(s) also name something this change touched. These are read-only:
What this run could not see
Coarse fallback — 15 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 59bdef62c2046ecbe9c7a236e5a3edd16ea1d0e0 && git checkout 59bdef62c2046ecbe9c7a236e5a3edd16ea1d0e0
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin ec243639786f16f78f0dc83b72ccf64ad2309f5b 869573acbdc023bd64e70dbaa3db7a0761683711 && git checkout -B drift-repro ec243639786f16f78f0dc83b72ccf64ad2309f5b && git merge --no-ff 869573acbdc023bd64e70dbaa3db7a0761683711
node scripts/docs-audit/affected-docs.mjs --json ec243639786f16f78f0dc83b72ccf64ad2309f5b
|
|
repo:objectstack#7 · os-tesla · session_01L9qibyQBB3KuDoNobNq9LH L1 · PR #36001 · head
|
|
repo:objectstack#7 · os-tesla · session_01L9qibvMi1U7R2kBd3JbTPu Contract reviewServed-tier: Read: card #35952 (body, claim 7052737435, triage 7053472286; no ruling and no earlier record on it), #35906 body and ruling 7051669729, PR #36001 body and its 8 files, the net diff Check-runs on the head when read (2026-11-21, shortly after the push): success on Check Changeset (both), Check PR Size, Governed Surface Queue Guard, PR-body guards, Lint · PM dispatch-gates, Plan Test Core shards, Flag docs, Dogfood Regression Gate, Test UI, filter. STILL RUNNING, so no verdict yet: Build Core, Test Core 1/10 to 10/10, all four Type Check jobs, Lint · ESLint, the five other Lint jobs, Live E2E UI. Skipped: Temporal Conformance (live PG + MySQL), so no live cell ran on this head in CI; the live Oracle cell never runs in PR CI. No failure was present. The seat reads the final conclusions before it adopts anything. ① Derived judgments
② Semver level
③ Boundary flagsRuling on the D-0 envelope difference (asked explicitly). Split by class, because the two rows of the PR's table are not the same question.
Measured, not read (asked explicitly). For every case the list admits, yes, the projection converts exactly as the list binds: see ④, first paragraph. The live Oracle figures in the PR body are the dev's and are not re-derivable from CI; I judged the compile pins and the code. PostgreSQL arm and the no-reading refusal (asked explicitly). Untouched: the PostgreSQL block in Dev flags. #35960 (the prime never walks a composed ReadableIds scope's parent) is pre-existing, outside this diff, and the leaf there compiles as the list does, so D-0's same rows hold between the two forms; answered, with N1 below. The two-changeset note and the unrun MySQL / SQL Server cells: accepted as stated, no cell exists for the latter. SQL push-down. No id materialisation and no in-app join is added; the change is one projection inside the same single statement (no ④ Design judgmentThe admitted domain: holds. M1 (must-fix) — the projection is not as strict as the list, so a stored grant the list refuses can answer rows, match a row, or silently empty a negation; and the contract text says otherwise.
N1 (nit) — the docblock's "an unprimed key compiles as the list's text binds do" is true and is #35960's defect, not a property worth keeping: on a RAW(16) parent reached only through a composed ReadableIds scope both forms miss silently, and the leaf's negation there answers every row. Outside this diff. Follow-up only: #33787 (step 6, the first producer) should carry Implementing files, sentence by sentence. Implemented-by: VERDICT: FAIL |
…e list's own uuid-text check (ADR-0155 O2, D2) The projection HEXTORAW(REPLACE(record_id, '-', '')) was laxer than the list's UUID_TEXT gate. Measured on Oracle Free 23ai: 32 hex digits with misplaced dashes matched a row the list refuses, a 31-digit grant was left-padded to 16 bytes and matched another row, a dash-only grant projected NULL so the negation answered no row, and short hex answered the sibling grant's rows. The projection now converts only text the list's gate admits (REGEXP_LIKE over ORACLE_UUID_TEXT_PATTERN, derived from UUID_TEXT) and projects 'not-a-uuid' for anything else, so every grant the list refuses before SQL fails the statement with ORA-01465 on the read and its negation. Every admitted form answers the list's rows unchanged. Docblock, anchor and changeset now state that partition. Claude-Session: https://claude.ai/code/session_01L9qibvMi1U7R2kBd3JbTPu Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#7 · os-tesla · session_01L9qibvMi1U7R2kBd3JbTPu Contract-review-claim: session_01L9qibvMi1U7R2kBd3JbTPu · head 869573a · 2026-11-21T06:26Z |
|
repo:objectstack#7 · os-tesla · session_01L9qibyQBB3KuDoNobNq9LH Delta L1 · PR #36001 · head
|
|
repo:objectstack#7 · os-tesla · session_01L9qibvMi1U7R2kBd3JbTPu Contract reviewServed-tier: Delta round on record 7058145514 (FAIL at Check-runs on this head when read: success on Check Changeset (one of two; the other still running), Check PR Size, Governed Surface Queue Guard, PR-body guards (both), Lint · PM dispatch-gates, Plan Test Core shards, Flag docs, Dogfood Regression Gate, Test UI, filter. STILL RUNNING, no verdict yet: Build Core, Test Core 1/10 to 10/10, the four Type Check jobs, Lint · ESLint and the five other Lint jobs, Live E2E UI. No failure was present. No CI lane runs the live Oracle cell, so the Oracle pins are the dev's local measurement and stay so after merge. The seat reads the final conclusions before it adopts this record. M1: closed ① Derived judgments
② Semver levelUnchanged: ③ Boundary flags
④ Design judgmentNo must-fix, no should-fix. Does the gate admit exactly what the list admits? Yes.
Does every class the list refuses fail the statement? Yes. A refused grant projects the constant No admitted-form row change. For an admitted text the THEN arm is round 1's expression unchanged, The pins. The live block now holds 11 refused forms and 5 admitted forms, each beside a valid sibling grant, each on find and on the negation, each against the list's own answer. The compile pin writes the Oracle statement out in full rather than rebuilding it from the constant, so a drift in Prose against code. N1 (nit) — carried from round 1, unchanged and outside this diff: the unprimed-parent case is #35960. Follow-up only: #33787 (step 6) should carry N2 (nit) — prose only. The PR body's warning line still says "the 14 live Oracle pins never run in CI"; the count at this head is 27, and two later Verification bullets still say "at this head" of N3 (nit) — the gate relies on the inner read's predicates being applied before its projection, so one recipient's malformed grant fails only that recipient's statement. The fixture shows it holds (the admitted recipients answer rows while eleven other recipients' malformed grants sit in the same table), and the same property already carried #35906's PostgreSQL cast. No pin names it. Follow-up only: one named pin, "another recipient's malformed grant does not fail this read", would say so on purpose. Implemented-by: VERDICT: PASS |
|
repo:objectstack#7 · os-tesla · session_01L9qibvMi1U7R2kBd3JbTPu Landing #36001 at
No CI lane runs the live Oracle cell: the 27 Oracle pins are the dev's local measurement on Oracle Free 23ai (logs named in the PR body), and stay so after merge. The 500 ORA-01465 on a grant the list refuses is the D-0 class-1 difference seat 7 accepted. State change: ready for review, then auto-merge. |
…rry the share-grant leaf instead of a list capped at 5,000 (ADR-0155 step 6) (objectstack-ai#36116) repo:objectstack#7 · os-tesla · session_01L9qibyXo4gSy8DJPNz4ANz <!-- claude-projects-attribution: {"github_login":"os-tesla"} --> _Requested by **Tesla** · [project thread](https://claude.ai/code/project/chan_01AXsQkLFKRdQCqQ3RTr6Jao?thread=cmsg_01AXsQkLFKRdQCqQ3RTr6Jao8mXHQniWvfYM2uHoosm2Da)_ Fixes objectstack-ai#33787 Clause-②: yes (narrowing) Metadata-protocol: none Skills-docs: updated here ## 维护者速读 - 用户能看到什么变化:开了按记录共享的对象上,成员此前最多只算五千条共享给他的记录,合并后每一条都算;放在另一个数据源、或存储不能在库内核对共享的对象(内存、MongoDB、OData 三类)上,共享不再生效,新建共享和共享规则会被明确拒绝,启动时点名;为共享表按名挂了读取拦截的部署会拒绝启动;PostgreSQL 上一条共享都没有的成员,列表总数会变慢(十万行约 1.5 毫秒到 7.3 毫秒,百万行约 7.9 毫秒到 42 毫秒,翻页本身不变,SQLite 不受影响),后续卡 objectstack-ai#36034 去实测一种可能让总数重新走索引的写法。 - 为什么做:这是「共享范围改走库内子查询」这组改动的收尾一步,替在同一对象上持有大量共享的成员解决静默少看:持有六千条共享的成员今天只看得到其中五千条,打开没算进去的那条显示不存在。 - 出错会怎样:若这一步出错,受影响的是开了共享的对象的列表、计数和详情(可能多看或少看);本次不改任何存储数据,撤回这次合并即可恢复。 - 要你做的:这次改动修订了共享那篇架构决策记录,并收紧了上面说的两类部署的行为,需要你本人批准后才能合并。 ## What changes ADR-0155 plan step 6, the switch. Steps 1, 2, 3 and 5 are merged, as are objectstack-ai#35906, objectstack-ai#35946 and objectstack-ai#35952 (Oracle `RAW(16)`, PR objectstack-ai#36001). This branch is the local build replayed by cherry-pick onto main 78437e2, with patch-ids identical commit for commit (`git range-diff`: 6 of 6 `=`). The readings below name the local commits, built on c00be39: 6f658cd302→6b71a89a1d, a246e87044→8c94ebc0e6, 57e0485c08→60865ad7d6, 9e7a65585e→56a0828d3e, 28dbd3fdf1→76a4bc74f2, f789fb96e2→53f788e776. Between the two bases, main changed plugin-security (objectstack-ai#36085, viewAllFields); overlap-check against 78437e2 is clean, and this head's CI is the reading of record. Round 4, which answers contract review 7064569198, adds one commit built on this branch, 4f11b21. Its readings are taken at that head. It lands last. - **The two scopes carry the share-grant leaf** (`packages/plugins/plugin-sharing/src/sharing-service.ts`). `buildReadFilter` writes `{ $or: [ownerMatch, queueMatch?, { id: { $in: SharedRecordIds.read(object, user) } }, { id: { $in: pendingApprovalIds } }?] }`; `buildWriteFilter` writes the update form with `SharedRecordIds.write(object, user, ['edit', 'full'])` and no approval arm; `delete` stays the owner match alone. The capped grant read (`grantedRecordIds`, `limit 5000`) is gone: no grant is read into memory, nothing binds one parameter per grant, and the pending-approval ids are a disjunct of their own (ruling 6942854600: Q1 A, Q2 the recommended column, Q3 A; ruling 6895275749, root fix only). - **The AST `filter` mirror is removed** (`sharing-plugin.ts`, the read and bulk-write paths, and, in round 4, the `sys_record_share` self-scope branch): every scope is composed into `where` only, the key the engine's executor seam judges. Pinned: `ctx.ast.filter` is undefined on both paths and on the self-scope's plain-user and principal-less cases (`sharing-service.test.ts`). - **ADR-0155 ② R2, the storage rows.** `SharingService.shareGrantsInertReason(object)` answers why share grants cannot count on an object: the engine's recognition says `other-datasource`, or the object's driver does not list `SharedRecordIds` in `supports.fixedReadLeaves` (today: driver-memory, driver-mongodb, driver-odata). An engine that cannot say answers null, and the leaf is written. In ADR-0111 D7's inert-grant verdict this arm is asked last, so every refusal that shipped keeps its attribution (a public or phantom-anchored federated object still refuses for that reason); it also stops the public arm's external floor (objectstack-ai#25549) from lifting there. Where it answers a reason: neither scope carries the share arm (owner, queue and approval arms unchanged), the edit gate reads no grant, the grant door refuses `SHARING_NOT_ENABLED` with the reason (`grantAccess` / `createGrant`, as SYSTEM and as a direct caller), the sharing-rule save door refuses `SHARING_NOT_ENABLED` / 422 with the remedy, the boot names at `warn`, once, every such object holding `sys_record_share` rows (`inertShareGrantHolders`, `share-arm-boot.ts#reportInertShareGrantHolders`), and `security/explain` reports each share on such a record as evaluated and `neutral` and says why (`plugin-security/src/explain-engine.ts`). - **ADR-0155 ② R1 at boot, the host row.** A `kernel:bootstrapped` hook in `SharingServicePlugin` asks the engine's own recognition of D4's class, `engine.fixedReadLeafClassOf(SharedRecordIds.read('sys_record_share', probe))`. Class `registration-by-name` (an object-scoped middleware, or a `beforeFind` / `afterFind` hook, for `sys_record_share`) throws the seam's own `fixedReadLeafRefusal`, `INTERNAL_ERROR` / 500, naming the registration, before `kernel:listening`. No exemption for a handler that skips system reads. A registration made after boot meets the engine's refusal at read, with the same envelope. A registration naming no object, or `'*'`, is outside the class and is told in the changeset. No new package edge: `@objectstack/spec` and `@objectstack/core` were already dependencies. - **Test doubles that resolve the leaf.** `plugin-security/src/shared-record-ids-in-memory.testkit.ts` resolves a fixed-read leaf over a double's own `sys_record_share` rows under the leaf's own `fixedInnerReadOf`, once per statement (a faulted share table fails the statement), and throws on a leaf outside an `$in` comparand. `readable-ids-in-memory.testkit.ts` uses it. `plugin-sharing/src/shared-record-ids.testkit.ts` does the same for plugin-sharing's doubles. - **The texts the switch makes due** (claim amendment 7060526112, seat 7's call 2026-11-21): - `docs/adr/0155-...md`: a dated, append-only note (2026-11-21) says `grantedRecordIds` is gone and its filter is now the leaf's blank-id guard, anchored `packages/spec/src/data/fixed-read-leaf.ts#FixedInnerRead`. The grant-read bullet at line 160 named the removed symbol as an anchor; it now names it bare, as D2 does, and the note carries the live anchor. Nothing else in the ADR moves. - `packages/spec/src/contracts/sharing-service.ts`, prose only, no type change. The section on the share arm now states the leaf in the present tense ("The read scope's share arm is an engine-internal leaf"), says what the list was before the switch, and says that share grants count only where the leaf can be evaluated: elsewhere no share arm, no grant row read, and the grant and rule doors refuse `SHARING_NOT_ENABLED` / 422 (R2). The host bullet compares with what the engine read returned before the switch, and `buildReadFilter`'s and `grant`'s jsdoc say the same. - `packages/spec/src/data/fixed-read-leaf-conformance.test.ts`: the D-0 comment that named `grantedRecordIds` now describes the read before the switch and points at the blank-id guard. Comment only. - `skills/objectstack-data/rules/datasources.md`: one sentence, made exact in round 4 (N2): "Share grants count only on `sys_record_share`'s datasource under a SQL driver; elsewhere a grant or rule save is refused `SHARING_NOT_ENABLED` (422), and a `sharingRules` reconcile aborts on it." The 422 is what the grant door and the rule-save door answer. A rule declared in a stack's `sharingRules` meets no door: its reconcile pass aborts on the same code, in the log. Paid for in the same file by cutting restatement (readings under Verification). - **Round 4, ADR-0155's second note (S1).** A second dated, append-only note follows D5. It says the switch landed before plan step 4 (objectstack-ai#35873, on hold), which ruling 7045701086 made no prerequisite, and that seat 7's call in claim amendment 7060526112 confirmed the consequence. `driver-memory` declares no `fixedReadLeaves`, so it answers as R2: its grants go inert, stop counting and fail closed, and the grant and rule doors refuse `SHARING_NOT_ENABLED` / 422. Step 4, once it lands, makes those grants count again with no change to plugin-sharing. The D5 row, Q2's closing sentence and plan step 6's "lands last" stand as written, and the note says why. - **Changeset** `.changeset/33787-shared-record-ids-switch.md`: the three BREAKING tightenings with each host remedy, the no-object telling (plan step 1's `ISharingService` prose), the three preconditions, the cost quoted no wider than the ADR, and the PostgreSQL 16 total for a caller with no grant, measured, with follow-up objectstack-ai#36034. ### Read first (by risk) 1. `packages/plugins/plugin-sharing/src/sharing-service.ts`, the `shareGrantsInertReason` hunk and its two callers in `buildReadFilter` / `buildWriteFilter`. It decides whether the leaf is written at all: a wrong null writes a leaf the driver refuses with 500, a wrong reason hides every share on the object. 2. `packages/plugins/plugin-sharing/src/sharing-plugin.ts`, the first new `kernel:bootstrapped` hook, with `share-arm-boot.ts#shareGrantRegistrationRefusal`. It refuses a boot. 3. `packages/plugins/plugin-security/src/explain-engine.ts`, the sharing-layer hunk (`sharesInertReason`). It changes what the explainer says admits a record. ### Two-minute check `pnpm --filter @objectstack/plugin-sharing exec vitest run --maxWorkers=2 src/shared-record-ids-switch.test.ts`. Expect `Tests 11 passed | 11 skipped (22)`: the SQLite cell runs, and the PostgreSQL cell runs too when `OS_TEST_POSTGRES_URL` is set (then `22 passed`). The 6,000-grant pin reads 7,000 visible rows where the capped list reads 6,000. ## Tests **D6 pins**, `packages/plugins/plugin-sharing/src/shared-record-ids-switch.test.ts`. Real ObjectQL, the real `SqlDriver` and the real `sys_record_share`. Two cells: SQLite, and PostgreSQL 16 when `OS_TEST_POSTGRES_URL` is set (a schema of its own, dropped after). Fixture: 1,000 owned rows, up to 6,000 granted rows (every thousandth grant read-level, the rest edit-level), a queued row, a pending-approval row, and 50 rows never admitted. Noise grants go to another user, another object, a team recipient and the agent. "Today's list" is the pre-switch read rebuilt: a system read of `sys_record_share` at `limit: 5000`, plus the approval id. - PREMISE: the driver evaluates the leaf, and the queue arm is a real column. - 5,000 grants, parity, every arm: leaf and today's list both count 6,002 and admit the same ids; GET by id agrees per arm (owner, queue, approval, share, plus three rows refused). - 5,000 grants, write form: a predicate update touches the same rows through the leaf as through today's list (1,000 owned + 1 queued + 4,995 edit-level grants), never the approval row, never a read-level grant. - 5,000 grants, nested (round 4, N4). A line item is scoped by a composed `ReadableIds` of the deal. With the leaf as the parent scope, it admits the same 6,002 lines, and the same count, as the same composition handed today's list: the `security` service gives the composition the rebuilt list instead of the sharing scope. - 5,000 grants, delegated (round 4, N4). The agent's and the delegator's leaves, AND-ed, admit the same 150 rows as the two rebuilt lists AND-ed, and the update form touches the same 50. - 5,001 grants: the leaf counts 6,001; today's list 6,000. - 6,000 grants: 7,000 visible, the 6,000th granted record read by id; today's list 6,000. - 6,000 grants, write form: 1,000 + 5,994 edit-level grants reached; today's list stops at 1,000 + 5,000. - Nested: a line item scoped by `ReadableIds` of the deal counts 7,000, and the 6,000th grant's line is read by id. - Delegated: the agent's and the delegator's leaves, AND-ed, admit 150; the update form touches exactly the agent's 50 edit grants. - 6,000 grants with the queue and approval arms: 7,002, each arm its own disjunct. **R2 and R1 pins**, `packages/plugins/plugin-sharing/src/share-arm-boot.test.ts` (18 tests). R2 runs on a real ObjectQL with `SqlDriver` as the default datasource and a second datasource whose driver declares nothing. The pins cover: - the reason, naming both datasources; - neither scope carrying the share arm there, while the control keeps it; - the edit gate consulting no grant; - the grant door, as SYSTEM and as a direct caller; - the sharing-rule save door, `SHARING_NOT_ENABLED` / 422 with the remedy; - the boot report, which names only the object holding rows, once, at `warn`, and stays silent when there are none; - a driver beside `sys_record_share` that does not declare the leaf, named by its driver; - an engine that cannot say, which answers null; - the order: the storage arm is asked last, so a shipped refusal keeps its own reason. R1: - a clean host; - an object-scoped middleware; - `beforeFind` and `afterFind` hooks (one whose handler skips system reads included), each refused `INTERNAL_ERROR` / 500; - `'*'` and no-object registrations, not refused; - a missing or throwing recognition, which warns and refuses nothing; - a read after boot, refused `INTERNAL_ERROR` / 500 by the engine; - and at the plugin: `SharingServicePlugin` through `kernel:bootstrapped` refuses a host with an `afterFind` hook for `sys_record_share`, `INTERNAL_ERROR` / 500 naming it, and boots a clean one. **Explainer**, `packages/plugins/plugin-security/src/explain-fixed-read-leaf.test.ts`, now on the real producer. On an object stored by a driver that does not evaluate share grants: the shares are `neutral`, the record is excluded, and the detail carries the sentence and the driver's name. On the control, the same shares admit. **Updated for the new shape:** the plugin-sharing scope tests (`sharing-service.test.ts`, including `ctx.ast.filter` undefined on both paths) and the plugin-security tests whose doubles read the scope. Those doubles resolve the leaf through `shared-record-ids-in-memory.testkit.ts` under its own `fixedInnerReadOf`, never restating the predicate. The resolution happens where the scoped `where` reaches the double, not inside its `find` or matcher. `check:objectql-double-limit` and `check:where-matcher` lift those functions out of the file to drive them, and an imported call or a closure over the double's tables leaves them undrivable (UNJUDGED). Both gates' baselines never grow, so two doubles and one matcher were returned to their base text. The SQL-compiling tests count the semi-join: `controlled-by-parent-leaf-switch.test.ts`, and `readable-ids-nested-compose.test.ts`, which asserts no statement reads `sys_record_share` on its own. **Ablations**, each through `scripts/ablation-replace.mjs` after committing, each restored to the HEAD blob with `git diff HEAD` empty: | # | Mutation | Predicted | Observed | |:--|:--|:--|:--| | 1 | the read leaf's disjunct removed from `buildReadFilter` (both cells) | read pins red; write-form and premise pins green | 12 failed, 6 passed (18) | | 2 | the write leaf's disjunct removed from `buildWriteFilter` (SQLite) | the two write-form pins and the delegated pin red | 3 failed, 6 passed, 9 skipped (18) | | 3 | `shareGrantsInertReason` returns null first | every R2 pin red; R1, the null answer and the silent report green | 7 failed, 10 passed (17) | | 4 | the `kernel:bootstrapped` refusal's `throw` deleted | only the plugin-level boot pin red | 1 failed, 16 passed (17) | | 5 | the explainer's R2 arm forced to admit | the R2 explainer pin red, its control green | 1 failed, 11 passed (12) | | 3′ | as 3, rerun after the arm moved last | the 7 R2 pins and the order pin red | 8 failed, 10 passed (18) | | 6 | the storage arm put back above the public check | only the order pin red | 1 failed, 17 passed (18) | | A | round 4: the rebuilt list read at `limit: 4999` (SQLite) | read and write parity, nested parity, and the 5,001 and 6,000 list counts red; delegated parity green | 5 failed, 6 passed, 11 skipped (22): read parity, nested parity, 5,001, and both 6,000 pins. The prediction missed one pin: the 5,000 write-form pin stays green, because its list reads 4,995 edit grants, under either cap. | | B | round 4: the rebuilt list ignores its user and reads the delegator's grants (SQLite) | only the delegated parity pin red | 1 failed, 10 passed, 11 skipped (22) | A and B mutate the control, not the code, and show that the two new parity pins read the rebuilt list they claim to. Both ran at 4f11b21 and were restored to the HEAD blob (`git hash-object` equal to `HEAD:` for the file). Ablations 1 to 5 ran before the arm moved and before both rebases; 3′ and 6 ran after the arm moved, before the second rebase. The lines they mutate are unchanged since. Ablation 3's first attempt was refused before anything ran: its replacement contained the anchor, so the anchor count could not drop. It was restored, re-anchored, and the run above is the second. The round-2 commit (28dbd3fdf1) changes prose, comments, an ADR and a skill line only, so it carries no ablation. **Round 4, at 4f11b21** (this branch, the dogfood closure rebuilt first: `VERDICT command-exit 0`). PostgreSQL 16.15 ran in a private cluster for these runs and was removed after. - `pnpm --filter @objectstack/plugin-sharing typecheck`: exit 0, `check:test-typecheck: OK`. - `pnpm --filter @objectstack/plugin-sharing test`, PostgreSQL on: Test Files 77 passed (77), Tests 1637 passed (1637). - D6 on PostgreSQL (S2): `shared-record-ids-switch.test.ts` gave 22 passed (22), 11 per cell, none skipped. Posted as comment 7064863601. - `pnpm --filter @objectstack/plugin-security typecheck`: exit 0, `check:test-typecheck: OK`. - `pnpm --filter @objectstack/plugin-security test`: 281 files passed. The five PostgreSQL-gated files failed with `ECONNREFUSED`, because the server had stopped mid-run. Its checkpointer reopens `pg_control` by absolute path, and the session re-locks its scratchpad's parent directories, so the reopen was refused and the server shut down. Rerun with the server up, in one window, those five files gave 171 passed (171): `controlled-by-parent-leaf-switch`, `explain-cross-class-refusal`, `explain-json-column-refusal`, `rls-boolean-comparand-door` and `rls-check-cross-class-field-refused`. - No spec file changed in round 4. The spec readings below are the local build's. **Suites and typecheck at the local head, 28dbd3fdf1** (rebased onto c00be39, the dogfood closure rebuilt first: `VERDICT command-exit 0`): - `pnpm --filter @objectstack/spec typecheck`: exit 0, `check:test-typecheck: OK`. The spec tests that read the edited files, `src/contracts/sharing-service.test.ts`, `src/data/fixed-read-leaf-conformance.test.ts` and `src/data/shared-record-ids.test.ts`: Test Files 3 passed (3), Tests 109 passed (109). - `pnpm --filter @objectstack/plugin-sharing typecheck`: exit 0, `check:test-typecheck: OK`. `pnpm --filter @objectstack/plugin-sharing test`: Test Files 77 passed (77), Tests 1624 passed, 9 skipped (1633). The 9 are the PostgreSQL cells. - `pnpm --filter @objectstack/plugin-security typecheck`: exit 0, `check:test-typecheck: OK`. `pnpm --filter @objectstack/plugin-security test`: Test Files 286 passed (286), Tests 7113 passed, 45 skipped (7158). The skips are the PostgreSQL cells. - PostgreSQL: `OS_TEST_POSTGRES_URL` was unset for these runs. The PostgreSQL cells last ran before the second rebase, with no failure (plugin-sharing 1633 passed, plugin-security 7181 passed). Between the two bases main changed no file under `packages/drivers`, `packages/objectql` or `packages/plugins`. The final head, f789fb96e2, adds one commit on top of 28dbd3fdf1: the dogfood pin (Acceptance notes). No package source changed, so the suites above stand for it. <details><summary>Dogfood battery at 4f11b21, this branch's head</summary> Owed by the `(narrowing)` arm. Command: `pnpm --filter @objectstack/dogfood test` under the verify lock, no shard and no path, on the closure rebuilt at this head. Result: `VERDICT command-exit 0`. Test Files 483 passed, 3 skipped (486). Tests 4101 passed, 68 skipped (4169). </details> <details><summary>Dogfood battery at f789fb96e2, the local head before the cherry-pick</summary> Owed by the `(narrowing)` arm. Command: `pnpm --filter @objectstack/dogfood test` under the verify lock, no shard and no path, on the closure built at 28dbd3fdf1; the final commit changes only a dogfood test file, which no `dist` carries. Result: `VERDICT command-exit 0`. Test Files 482 passed, 3 skipped (485). Tests 4098 passed, 68 skipped (4166). The run at 28dbd3fdf1, before the pin commit, read `VERDICT command-exit 1`: Test Files 1 failed, 481 passed, 3 skipped (485). Its one failure was the `[integrity]` pin. </details> ## Acceptance notes **The dogfood `[integrity]` pin, updated.** `packages/qa/dogfood/test/authored-row-write-scope.dogfood.test.ts:284-287` pinned the bare owner match: `buildReadFilter(CLOSED, bobCtx)` toMatchObject `{ owner_id: bobId }`. Under this PR the scope is `$or` of the owner match and the leaf, so the pin went red. The next assertion (Bob reads only his own row on the private object) held throughout. The pin now asserts the owner disjunct, a one-line change and nothing else in the file (f789fb96e2): ```ts ).toMatchObject({ $or: expect.arrayContaining([{ owner_id: bobId }]) }); ``` The file was outside this claim's file surface. Seat 7 asked the maintainer at 2026-11-21T09:22Z to authorize changing lines 284-287, and the maintainer (Tesla) answered verbatim at 2026-11-21T11:09:38Z: 「同意」. The file alone passes: Test Files 1 passed (1), Tests 12 passed (12). **driver-memory: share grants become inert there.** driver-memory does not declare that it evaluates the share-grant leaf, so it gets R2's answer, as driver-mongodb and driver-odata do. On an object it stores, share grants stop counting: the read and update scopes fail closed to the owner, queue and approval arms, and the edit gate reads no grant. Nothing is silent about it. The grant door and the sharing-rule save door refuse a new grant or rule loudly, `SHARING_NOT_ENABLED` / 422 with the reason, and the boot names, at `warn`, each such object that holds share rows. No read is refused with a 500. This is the ruled behaviour: ruling 6942854600 on objectstack-ai#33787 (② ruled R2, the storage rows), and ADR-0111 D7's amendment note of 2026-11-17, which gives D7 this arm and says it takes effect with this switch. Seat 7 confirmed the reading on 2026-11-21. Plan step 4 (an in-process evaluation of the leaf on driver-memory) would make these grants count again with no change here. Since round 4 the record says so too: ADR-0155's second dated note, after D5 (S1). The dogfood stacks boot on sqlite-wasm, which extends `SqlDriver` and inherits its declaration, so they are not affected. **Preconditions inherited from objectstack-ai#35906** (close-out 7057616561), each carried into the changeset: 1. On PostgreSQL, a statement holding the leaf whose catalog read fails, or finds no such relation, answers `INTERNAL_ERROR` / 500, where step 3 ran it uncast. 2. Each transaction pays one savepoint and one catalog read per table it compares a leaf against, when the table has no pooled reading. 3. A failed catalog read inside that savepoint rolls back the caller's concurrent statements on the same transaction. Read for this PR: plugin-sharing issues no statement of its own that carries the leaf (the leaf is written into the caller's `where`, and the caller's statement carries it); `sharing-service.ts` and `sharing-plugin.ts` hold 0 references to `transaction`; the plugin's own reads are sequential system reads, and its one `Promise.all` over reads (`ownership-queue-service.ts:441`) runs under the system context outside any transaction. So no producer here issues concurrent statements on one transaction while a leaf statement is primed. A caller that runs its own statements concurrently on one transaction is the precondition's case and is told in the changeset. **The speed figure, quoted no wider than ADR-0155 "What it costs":** for the scope statements alone (the account page, its total and the two grant reads), at 1M rows and 5,000 grants, the id-list scope against the semi-join scope read PostgreSQL 21.6 → 7.0 ms and SQLite 18.3 → 12.1 ms. It is not a whole-request figure. **The caller with no grant (D6), measured on this tree.** Before the switch the statement was the bare owner match; now it is `$or` of the owner match and the leaf. Medians of 25 runs, a page of 50 and its total, 50,000 grants held by other users, the caller holding none: | Dialect · rows | page before → after | total before → after | Plan | |:--|:--|:--|:--| | SQLite · 100k | 1.01 → 1.09 ms | 0.08 → 0.13 ms | MULTI-INDEX OR: `idx_..._owner_id` kept on page and total | | SQLite · 1M | 5.85 → 7.36 ms | 0.28 → 0.60 ms | same | | PostgreSQL 16 · 100k | 1.59 → 1.72 ms | 1.46 → 7.29 ms | page: pkey index scan both; total: Bitmap on `idx_..._owner_id` → Seq Scan with a hashed SubPlan | | PostgreSQL 16 · 1M | 1.65 → 1.58 ms | 7.88 → 42.21 ms | total: Parallel Seq Scan | SQLite still serves both from the owner index. PostgreSQL serves the page as before but plans the total as a sequential scan, which grows with the table; this agrees with step 3's reading (close-out 7048322381), whose L2 named `id = ANY(ARRAY(SELECT ...))` as an alternative. The cost ships stated in the changeset and the 速读 (seat 7's call, 2026-11-21); follow-up objectstack-ai#36034 measures that form against the semi-join for this caller on PostgreSQL. It is named here as a cost, not changed. **O8 census, this repository at 8c8ff0f.** No site changes a system read of `sys_record_share`; no registration names it by name; no default opts it into record-view auditing. No D-0 finding. The registrations that name no object (organizations, approvals, audit, auth, security, sharing, runtime app-plugin, mailbox, messaging) were each read: none changes that read. `objectstack-ai/hotcrm` (e7fe77f0) was read by the card thread: nothing. **O8 census: the platform half is measured** (this repository and hotcrm, recorded in objectstack-ai#33787's body). **The cloud half has moved to objectstack-ai#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. **Mirror.** The AST `filter` mirror stopped carrying the scope at all, rather than being pinned as unread (plan step 6 allows either). In round 4 (N1) the `sys_record_share` self-scope branch stopped mirroring too, so no branch of the sharing middleware writes `filter` now. That branch never carried the leaf. Nothing in the repository reads `ast.filter`: `git grep` finds only a test double that falls back to it, `write-denial-user-copy.test.ts`, on an object this branch never scopes. **Left as written.** In `fixed-read-leaf-conformance.test.ts` the D-0 `describe` and `it` titles still say "today's list" and "reads it today"; the amendment names the comment, and test titles are not prose a reader takes as the contract. The ADR-0155 bullet at line 160 keeps its wording as a reading of `b8ac0e24`; only its anchor became a bare name. **Docs drift (advisory comment 7064411467), read in round 4.** I re-derived the list on 4f11b21 against 78437e2 with `node scripts/docs-audit/affected-docs.mjs --json 78437e2`. It gives 45 pages: 28 hand-written and 17 release-owned, the same counts the bot gave. I re-read only the pages that name `SHARING_NOT_ENABLED`, and two of them list its causes without the one this PR adds: the share table's datasource is not under a SQL driver, so grants and rule saves are refused on every object. - `content/docs/kernel/runtime-services/sharing-service.mdx`, Typical Errors. - `content/docs/permissions/sharing-rules.mdx`, the paragraph on refusals at save. Neither page is edited in this round. A docs edit would move the head past the one S2 was read at. Both pages are prose faces, so this is the seat's call: edit them in this PR or in a docs-only follow-up. I did not re-read the other 26 hand-written pages this round. **Seen in the dogfood log, not from this change.** The showcase stack logs `Schema sync FAILED for object 'showcase_invoice'` on sqlite-wasm (`alter table ... add column invoice_date date default (strftime('%Y-%m-%d', 'now'))`: "Cannot add a column with non-constant default"), followed by a SeedLoader stale roll-up error. It appears 20 times in each battery: at 4f11b21, at the local heads, and in the pre-rebase run. Nothing here touches schema sync, the showcase app or sqlite-wasm. Noted, not filed. **Oracle, after objectstack-ai#36001.** For a key the `RAW(16)` prime names, the leaf projects the list's `HEXTORAW` conversion. A grant the list admits gives the list's rows. A grant the list would refuse (`INVALID_FILTER` / 400, before SQL) now fails the statement with ORA-01465, 500. An unprimed key, such as the parent scope inside a composed `ReadableIds` subquery (objectstack-ai#35960), compiles as the list's text binds do, so the switch leaves that path exactly as it is. ## Verification This head's CI check-runs are the reading of record. The families below are this tree's derivation, run locally. **Round 4, at 4f11b21:** - **Gate union.** `dispatch-gates --commands --repo objectstack-ai/objectstack` derives 121 families against merge base 78437e2 and 32 paths. Round 4's paths add none. All 121 ran, each exit code captured before any pipe, and all 121 exit 0. `check:type-check-debt` first answered exit 3: its build queued behind the dogfood battery on the verify lock. Rerun under the lock, it re-measured clean. `--ran`: "121 derived famil(ies) accounted for — 121 run, 0 NOT-MEASURED". - **Readings that bear on round 4.** - `check:adr-symbol-anchors`: 3865 anchors resolve. The new note adds no anchor. - `check-adr-links`: 1165 links resolve. - `check-skills-token-ratchet`: datasources.md is 911 of 911. - `check:skill-identifier-liveness`: 548 citations, up from 547, with `sharingRules` live. - `check:objectql-double-limit`, `check:where-matcher` and `check:query-options-erasure`: each "baseline key set verified against 78437e2: no files added". - `check:nul-bytes`: OK. - **Overlap.** `node scripts/pm/overlap-check.mjs --branch=claude/project-thread-thptm0`: `VERDICT clean exit 0` against origin/main 3c06fc5, five commits past this branch's base, one of them in driver-sql (objectstack-ai#36101). - `node scripts/check-platform-checklist.mjs --changed-from 78437e2`: OK, 2 anchors judged, 0 lost. **The local build, before the cherry-pick:** - **Gate union.** `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` derives 121 families, against merge base c00be39 and 32 paths. The dogfood pin's path added no family to the 121 derived at 28dbd3fdf1. The 38 families that are new since the first round come from the spec, ADR and skills paths. At f789fb96e2 all 121 ran, each exit code captured before any pipe, and all 121 exit 0. `check:type-check-debt` waited its turn on the verify lock and re-measured clean: `OK — 0 ledger entr(ies) re-measured … none above its recorded number`. `--ran` over the record: "121 derived famil(ies) accounted for — 121 run, 0 NOT-MEASURED (a DERIVED zero — all 121 recorded an exit code and none of them is 3)". At 28dbd3fdf1 the same 121 were also all green; there, `check:type-check-debt` first hit a lock queue-timeout and passed when rerun under the lock. - **The anchor, now green.** `check:adr-symbol-anchors`: "3865 anchors across 160 records resolve … 0 line anchors survive". - **Named by the dispatch.** `pnpm check:query-options-erasure`: exit 0. `pnpm check:nul-bytes`: exit 0. `node scripts/pm/overlap-check.mjs --branch=local-33787`: `VERDICT clean exit 0` at f789fb96e2, against origin/main 8145424. That is nine commits past this branch's base (ui/, platform-objects, plugin-approvals, service-messaging, client, cli tests, one spec source), and none of them shares a file with this branch. - `node scripts/check-platform-checklist.mjs --changed-from c00be39`: OK, 2 anchors judged, 0 lost. - **Local-only families.** - `pnpm check:skill-frame-freshness`: exit 0. The frame is byte-identical to the ref. - `pnpm check:dev-prereqs`: exit 1. 35 `ui/` workspace packages have no `dist` in this checkout, because they are outside the dogfood closure built here. This reading is about the box, not the change. **Skills readings** (`skills/**` diff, the PR's whole skills change, round 4 included): | Measure | Before (78437e2) | After (4f11b21) | |:--|:--|:--| | `skills/objectstack-data/rules/datasources.md`, lines | 81 | 82 | | the same file, bytes and ratchet tokens | 3629 bytes, 908 tokens | 3643 bytes, 911 tokens | | its ceiling | 911 | 911, unchanged, headroom 0 | | the package, all `SKILL.md` summed | 4945 lines | 4945 lines | | every published `skills/**/*.md` | 18653 lines | 18654 lines | The sentence, and N2's longer wording of it in round 4, are paid for in the same file by deleting restatement. Round 2's cuts: - " (object name may differ)": the example's two names show it. - " everywhere": it restates "on ANY object". - "is connected **automatically at boot**" becomes "connects at boot": the heading says Auto-connect. - "An object on an external datasource" becomes "Each": it restates the heading. - "Federation is read-only by default." and "**both** gates must be on:" go: the heading says double opt-in, and the line says **and**. Round 4's cuts, for N2's wording: - The `validate-only` row's "instead of failing boot": the `external` row above it says a mismatch fails the boot, and "but … **warns**" is the contrast. - "optional" in the commented-out `remoteSchema` line: the line is commented out, which is what marks it optional, as the `columnMap` line beside it shows with no such word. **"Federation is read-only by default." stays cut (N2).** It restates the section it sat in: "Writes — double opt-in" names the default (nothing is on until opted in), and "To write, set `datasource.external.allowWrites: true` **and** the object's `external.writable: true`" names the only way on. Eval case 3 expects the write gate left closed (no `allowWrites`, no `writable`). That is an absence, which the remaining text teaches. No eval case grades on the sentence, and no published skill or doc reads it from this file. `content/docs/data-modeling/external-datasources.mdx` carries its own copy of the sentence, unchanged. No ceiling moved. `check-skills-token-ratchet`: "datasources.md is 911 tokens (ceiling 911; headroom 0)". Also green: `check:skill-identifier-liveness`, `check:skill-links`, `check:skill-frame-sync`, `check:skill-compatibility`, and `spec check:skill-refs` / `check:skill-served-sections`. The objectstack-data eval cases: `pnpm --filter @objectstack/scenarios skill-evals --skills objectstack-data --dry-run` exits 0 and plans 66 cases, so the catalog loads. The eval round itself is NOT MEASURED. It drives a model through a login for 125 turns and is not a CI gate or a merge gate. The datasource cases (3 and 11) grade on `defineDatasource`, `datasource`, `remoteName`, `columnMap`, `schemaMode`, `OS_DATASOURCE_ENV_CREDENTIALS`, `_PASSWORD`, `ObjectSchema.create` and `sharingModel: 'public_read'`. The file still teaches every one of them, and none of the deleted text carried one. --- _Generated by [Claude Code](https://claude.ai/code/session_01L9qibyXo4gSy8DJPNz4ANz)_ <!-- signed: repo:objectstack#7 · os-tesla · session_01L9qibyXo4gSy8DJPNz4ANz --> <!-- signed: repo:objectstack#4 · os-project-manager · session_01FEkQ5krBqrrgxCYgjXmfbv --> --------- Co-authored-by: Claude <noreply@anthropic.com>
repo:objectstack#7 · os-tesla · session_01L9qibvMi1U7R2kBd3JbTPu
Fixes #35952
维护者速读
[],计数 0,取反时反而答出全部行。What changes
packages/drivers/driver-sql/src/sql-driver-oracle-dialect.ts:oracleUuidRawProjection, besideoracleUuidRawBinding:HEXTORAW(CASE WHEN REGEXP_LIKE(record_id, UUID_TEXT, 'i') THEN REPLACE(record_id, '-', '') ELSE 'not-a-uuid' END). The Oracle pattern (ORACLE_UUID_TEXT_PATTERN) is derived in one place from the list's ownUUID_TEXT, with a load-time guard so the two cannot drift. A grant the list admits converts exactly as the list binds it; a grant the list refuses fails the statement.packages/drivers/driver-sql/src/sql-driver-filter-helpers.ts: the leaf's$inarm reads the existing RAW(16) prime (oracleRawUuidFieldsByObject, primed at every Oracle door) and passesoracleRawUuiddown. Nothing about the prime is restated.packages/drivers/driver-sql/src/sql-driver-internal-helpers.ts:fixedReadLeafSubqueryprojects the conversion on Oracle for a RAW(16) uuid key only. The outer argument is now a named type,FixedReadLeafOuter. [Decision] ADR-0155 O2: the share-grant subquery on PostgreSQL for an object whose id is not text (integer, uuid) #35906's PostgreSQL arm is untouched, and Oracle never reaches its no-reading refusal (pinned).sql-driver.ts(stub signature, 10067 lines, unchanged count), one ADR anchor file, changeset.changeset/35952-oracle-raw-share-grant-key.md(driver-sql patch).Why
Ruling A on #35906 (7051669729): compare by the key's type, same rows as today's list (ADR-0155 D-0). Seat 7 carried it to every dialect
driver-sqlships. Part of the ADR-0155 chain; it unblocks step 6 (#33787).Measured on live Oracle Free 23ai (testkit
ORACLE_CELL)Fixture: a RAW(16)-keyed table, grants upper-case dashed, lower-case dashed and undashed, plus a blank grant.
[U2, U1][][U2, U1][U1][][U1][U3][U3][c1, c2][][c1, c2]NUMBER(10)key ('42','07',' 7')[42, 7][42, 7][42, 7](unchanged SQL)A stored grant the list would refuse
The list judges each comparand before any SQL; the leaf now applies the same
UUID_TEXTcheck inside the statement. Measured on live Oracle Free 23ai, each malformed grant stored beside a valid one, find and negation:record_id0123,abc-, all dashesurn:uuid:The contract review (7058145514) ruled the loud class (list 400, leaf 500) no change to D-0: ADR-0155's Consequences and ruling A both say a malformed grant fails the statement. The gate closes the classes it ruled a change (M1), so nothing goes to the maintainer.
Verification
869573acbdc023bd64e70dbaa3db7a0761683711:ca269e1fa4(the conversion) plus869573acbd(the M1 gate), on main after [Decision] ADR-0155 O2: the share-grant subquery on PostgreSQL for an object whose id is not text (integer, uuid) #35906 merged as 850bcec.869573acbd: conformance + key-type files live on Oracle + SQLite, 90 passed / 2 skipped, 27 live Oracle pins green. Full driver-sql suite with Oracle, PG 16.15 and SQLite live: 5945 passed / 132 skipped, exit 0. Typecheck and eslint exit 0.dispatch-gates --ran80 of 80 exit 0. Ablation of the gate (the bareHEXTORAW(REPLACE(…))): exactly the 9 predicted pins go red; restored blob-equal.ca269e1fa4, live Oracle Free 23ai (ORACLE_CELL): the conformance file at that head, 64 passed / 2 skipped (PG and MySQL not provisioned), with its 14 live Oracle pins green; the full driver-sql suite at that head (SQLite, Oracle env set) 4652 passed, exit 0. On [Decision] ADR-0155 O2: the share-grant subquery on PostgreSQL for an object whose id is not text (integer, uuid) #35906's head with PG 16.15 also live: full driver-sql 5926 passed / 132 skipped.Temporal Conformancelane runs the live PG and MySQL cells only.pnpm --filter @objectstack/driver-sql typecheckexit 0; eslint on the changed files exit 0; driver-turso leaf conformance 54/54 (on [Decision] ADR-0155 O2: the share-grant subquery on PostgreSQL for an object whose id is not text (integer, uuid) #35906's head).dispatch-gates --ranatca269e1fa4after a full packages build: 80 derived, 80 run, 0 NOT-MEASURED, all exit 0.check-changeset-no-majorexit 0 (patch,Clause-②: yes,Metadata-protocol: none).scripts/ablation-replace.mjs, restored blob-equal): the Oracle projection switched off → 10 failed live (the RAW find/count, negation/$or, predicate update, statement, nested, aggregate, the three refused-grant pins and the RAW compile pin); NUMBER, never-primed and other-dialect pins stay green.Clause-②: yes
The compiled share-grant subquery changes its SQL on Oracle for a RAW(16) uuid key, keeping D-0's same rows (ruled A).
Metadata-protocol: none
Acceptance notes
controlled_by_parentchild read of a RAW-keyed parent misses silently, even in today's list form, until something has read the parent. This PR's nested pin primes the parent explicitly and says so..changeset/35906-pg-share-grant-key-type.mdsays Oracle RAW(16) keys are not measured. That was true for [Decision] ADR-0155 O2: the share-grant subquery on PostgreSQL for an object whose id is not text (integer, uuid) #35906; this PR's changeset states the Oracle change. If both ship in one release, the CHANGELOG carries both sentences.record_idfor a RAW(16)-keyed object. Recorded on 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; with the gate, a non-canonical grant now fails loudly instead. L1's N1 is done in869573acbd.Human Minimum
packages/specholds no runtime logic.pnpm lintpasses.main, one pull request.packages/spectouched: n/a, not touched.content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.🤖 Generated with Claude Code
https://claude.ai/code/session_01L9qibvMi1U7R2kBd3JbTPu