You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
analytics: on SQL drivers compile a cross-object where into an in-database semi-join (no 1000-id cap), each hop read-scoped; non-SQL drivers refuse #33626
Filing gate: ③ maintainer-directed. In the triage seat session on 2026-11-15, verbatim: 「有的功能如果Mongo内存不支持,那就不需要支持,首先保sql,应该用最高性能的方案,而不能为了兼容而兼容」, after ruling A on #33619 (「同意一层」, then 「我的意见是一层先落地」). It follows #33335 and PR #33512, and agrees with the driver-memory/driver-mongodb freeze in #5499. ⛔ Not a claim.
维护者速读
一层的跨对象过滤(#33512)是「先查出父记录 id,再 IN」,有 1000 个 id 的上限。按下游的数据量,「订单状态 ≠ 已取消」在一层就会返回 400。本卡改为 SQL 优先:在 SQL 驱动(driver-sql 各方言、Turso)上,把跨对象条件编译成数据库内的半连接子查询(IN (SELECT …)),每一层带上该对象的读权限,没有 id 上限。内存、Mongo、OData 驱动直接响亮拒绝,不为了兼容保留慢路径。
What exists to build on (read from code by the Fable assessment on #33619)
Today: lowerRelationConditions (packages/objectql/src/engine-query-lowering.ts:181-217) runs an id find, then $in, capped at RELATION_FILTER_ID_CAP = 1000 (relation-filter-lowering.ts:84).
ADR-0139's ReadableIds leaf already compiles in driver-sql to a nestable field IN (SELECT id FROM P WHERE scope AND tenant) (sql-driver.ts:6371-6385), with a chain-depth cap of 8. Turso has its own semi-join.
What lands
On SQL drivers, a cross-object where leaf (dataset runtimeFilter, dashboard and widget filters; and the dataset's own filter and per-measure filters, which feat(service-analytics): serve a one-hop cross-object where on the engine-aggregate path #33512 still refuses) compiles to the in-database semi-join. No id cap. Hops follow ADR-0071's current limit (3). Going to 5 is a separate ADR-0071 amendment.
Security: each hop carries that object's read scope and tenant wall. The condition field itself gets the same filter-oracle readability check the engine applies elsewhere, because composeReadableIds asks only canReadObject / getReadFilter. An unreadable ancestor excludes the row, including under $ne.
Non-SQL drivers refuse with a stable code naming the reason. No staged id-read fallback.
Parity tests: native strategy vs this path, case by case, including NULL and missing-parent and $ne semantics.
p2. A real downstream pull (steedos-labs/os-project-blackcat-crm#119's margin dashboard and allocation tile) hits the 1000-id wall. It is feature work, not a defect.
Ruling: #33626 Q1 (draft PR #33652) · maintainer's choice on the seat's decision card, 2026-11-15T05:06Z: A.
driver-memory keeps serving a cross-object where in process with the same composed leaf (ADR-0139 D3), with no cap. It is not an id-read fallback and adds no code, and it keeps the fixture coverage. The card's "memory refuses" line is superseded for driver-memory only.
MongoDB and OData are refused in the engine with INVALID_FILTER / 400 under the Q2 ruling above (ADR-0139 amendment, governed).
{
"issue": 33626,
"status": "done",
"branch": "claude/area-A3-33626",
"pr": "https://github.com/objectstack-ai/objectstack/pull/33652",
"head": "cad68d0754beee8adf7ded1e4b6842238ba0a0a0",
"session": "session_016WV4d1QwJJ5KGZTThP4fnq",
"premise_still_valid": true,
"closing": "Fixes #33626 (draft; every part not landed here is its own card: #33875, #33876, #33877, #33878)",
"clause_2": "Clause-②: yes (widening; narrowing on a related object another datasource holds, and on a driver that compiles no subquery)",
"metadata_protocol": "Metadata-protocol: none",
"summary": "Resumed from bc5ef486, merged origin/main (no rebase). Engine: admitRelationCondition now admits a relation key carrying its own condition, recursively, up to RELATION_CONDITION_MAX_HOPS = 3 (ADR-0071); each hop is the related object's own planned find as the caller, so every hop is a ReadableIds semi-join leaf nested in the scope of the one above, with its own read scope, tenant wall and filter-oracle check; a fourth hop is refused INVALID_FILTER/400 (hop-limit), the judge agrees. Analytics (ObjectQLStrategy): a dotted where leaf through up to three relationships is respelled as the nested form, and the compiled dataset's own definition-level filter takes the same respelling (servedScope), so both reach the engine's semi-join; the SQL echo refuses them INVALID_FILTER/400; unservable leaves (under $not, past 3 hops) keep their refusals. Multi-valued relations and per-measure filters keep the capped id read / refusal and are filed as follow-ups, as are the two governed parts.",
"tests": "objectql full 596/596 files; service-analytics 215/215 (5218 tests); rest 412/412 (8447); runtime 603/603 (10906); engine-nested-relation-lowering 15/15; rest data-nested-object-door SQLite + PostgreSQL 16 private cluster 16 passed / 8 skipped (MySQL); data-nested-relation-permission 5/5 (new 2nd-hop row scope under $ne + 403 field check); analytics-nested-relation-filter 15/15 (new dataset-filter case); crossobject-conjunct-refusal 40/40. Ablation: relation-filter-lowering.ts `if (hops >= RELATION_CONDITION_MAX_HOPS) return` -> `if (hops >= 1) return` via ablation-replace (anchor 1->0, blob 005a6d1e->d02d465b), engine test 3/15 red; restore blob == HEAD, git diff HEAD empty, 15/15 green (source-resolved test, no dist).",
"dependents": "turbo run test --filter='...^@objectstack/objectql' (transitive set; direct dependents all covered) at f4738f57: every finished package green — mcp 64, service-messaging 71, plugin-audit 94, plugin-sharing 74, service-package 13, driver-odata 9, driver-mongodb 38+6 skipped, service-settings 75, service-storage 86, plugin-webhooks 25, service-datasource 75, plugin-email 53, service-mailbox 10, scenarios 33, plugin-security 267, plugin-auth 277, service-automation 282, trigger-record-change 12, service-knowledge 4, service-queue 5, plugin-pinyin-search 4, example-embed-objectql 1, cloud-connection 82, plugin-dev 10, plugin-approvals 120, client 58, http-conformance 20, verify 52, organizations 18, example-todo 9, example-crm 7, connector-mcp 9, plus transitive ui data-objectstack 121, react 138 (file counts). example-showcase run separately at cad68d07: 48/48 files, 545 tests. @objectstack/cli interrupted mid-run when the sweep was stopped for time (no failure among finished files); CI Test Core 8/8 green on cad68d07.",
"dogfood_battery": "NOT MEASURED as a full battery locally (494 files; time box). Run at cad68d07: 22 targeted suites (analytics-*, dataset-*, dashboard-designer-roundtrip, import-lands-readable-rows, predicate-relationship-traversal, showcase-mcp-aggregate-filter, second-object-exposure, activity-withheld-row-predicate, attachments-parent-rls-scan-cap, group-key-read-shape-parity) — lock VERDICT command-exit 0, Test Files 22/22, Tests 195/195. Full battery = merge-queue Dogfood Regression Gate.",
"gates": "dispatch-gates --commands: 104 families run locally, exit captured before any pipe: 98 exit 0; check:error-code-casing exit 1 (test fixture field named code, fixed in cad68d07, re-run exit 0); exit 3 prerequisite NOT MEASURED locally: check-plugin-teardown-shape --self-test (shallow clone), check:skill-examples and check:dual-build-cjs-loads (unrelated dist absent); exit 124 at 300s NOT MEASURED locally: check:query-options-erasure, check:type-check-debt. --ran reconciliation with exit codes: 104 derived, 99 run, 3 NOT-MEASURED, 2 UNRUN (the two timeouts). typecheck objectql/service-analytics/rest exit 0; eslint --no-inline-config on 16 changed files exit 0. CI on cad68d07: 38 success, 15 skipped, 0 failing — Lint & Repo Gates, TypeScript Type Check, Test Core 8/8, Build Core, Check Changeset, Governed Surface Queue Guard, Lint scoped query-options erasure, Type Check debt ledger all success. The earlier reds on e96278a6 / 0e78945b were lanes concluding cancelled (superseded by the next push); the one real red on 7ea26014 was the casing guard, fixed.",
"governed_check": "node --use-env-proxy scripts/pm/check-governed-merges.mjs --pr 33652: NOT governed, 0 of 19 paths on the register, +812/-192 (1004 lines, under 3000).",
"follow_up_cards": [
"#33875 skills/objectstack-query text (Tier H)",
"#33876 ADR-0139 capability bit + engine INVALID_FILTER/400 for MongoDB/OData (Tier H, ruling Q2)",
"#33877 multi-valued relation as a JSON-membership semi-join",
"#33878 a dataset measure's own filter as a semi-join (aggregations[].filter)"
],
"ci_at_report": "cad68d07: all completed checks green (38 success, 15 skipped); PR draft; no reviewers requested.",
"mcp_calls": "0",
"api_writes": "5 relay strokes (fleet-write dispatch): issue_create x4 (POST /repos/objectstack-ai/objectstack/issues -> #33875-#33878, labels enhancement, domain:server, pm:queue, priority:p2, read back identical); issue_patch #33652 body (PATCH /repos/objectstack-ai/objectstack/issues/33652, read back identical); issue_patch #33652 title; plus this os-dev-report comment (POST /repos/objectstack-ai/objectstack/issues/33626/comments). git push x4 (not REST).",
"unmeasured": [
"full dogfood battery locally",
"@objectstack/cli suite locally (interrupted; CI Test Core green)",
"MySQL cell of data-nested-object-door",
"check:query-options-erasure and check:type-check-debt locally (CI green)",
"check:skill-examples, check:dual-build-cjs-loads, check-plugin-teardown-shape --self-test locally (prerequisites)"
],
"remaining": [],
"open_questions": [],
"security_findings": "none",
"deviations": [
"PR body ends with the HTML-comment signature the dispatch asked for; os-dev.md bans dev-written HTML comments on GitHub — kept at the very end per the dispatch and read back intact",
"Fixes chosen over Part of because every unlanded part has its own card; flip to Part of #33626 if the PM prefers the card to stay open",
"the dependents sweep used the transitive filter and held the shared lock 1h18m before being interrupted"
],
"out_of_scope_findings": [
"carrier: none · noted in the PR's Acceptance notes, not filed: an object-scoped read middleware parent is still refused with ADR-0139 D5.2 wording at the boundary although the planned read ran that middleware (no reach measured)"
]
}
Follow-up cards for this card. PR #33652 lands the engine and analytics halves; each part it does not land is its own card, linked here (the earlier os-dev-report comment names them only inside a code fence, which GitHub does not link):
{
"issue": 33626,
"status": "done",
"branch": "claude/area-A3-33626",
"pr": "https://github.com/objectstack-ai/objectstack/pull/33652",
"head": "cad68d0754beee8adf7ded1e4b6842238ba0a0a0 (unchanged; ls-remote confirms)",
"pushed": "no — nothing committed, nothing pushed",
"session": "session_016WV4d1QwJJ5KGZTThP4fnq",
"premise_still_valid": true,
"summary": "Run 3, cut short by two coordinator orders (review#2 FAIL at cad68d07; head to move under a separate fix order). Done: the #33626 comment linking #33875-#33878 (6896337324). The only earlier listing (os-dev-report 6896239692) names all four only inside a json code fence, which GitHub does not link, so a new comment was posted. Stopped on order: the full dogfood battery (partial, no per-file result reached the log) and the Mongo/OData probes (queued, never acquired the lock). No code change, no PR body edit (body edit withdrawn by the coordinator).",
"dogfood_battery": "PARTIAL / NOT MEASURED at cad68d07. Closure build under os-verify-lock: VERDICT command-exit 0, held 142s, turbo 70/70 successful (47 cached). Test run `pnpm --filter @objectstack/dogfood test` under the lock started 14:45:56Z, stopped by order at about 14:54Z (8m15s held): vitest had printed no per-file result line and no summary, so Test Files 0/N read, Tests 0/M read, no failure attributable; no VERDICT line (process killed). Log: /mnt/project-files/server-area-pilot/A3/33626/run3/dogfood-partial.log. The full battery moves to the dev running the new head.",
"mongo_odata": "Not measured at runtime: the main-vs-head probes (engine + real ODataDriver over the in-process OData v4/v2 fixture service; engine + real MongoDBDriver over a mingo 7.2.4 collection stand-in; self-lookup object, where = eq, $ne, $or mix, $not, literal $in control; find/count/findOne/aggregate) were written and queued under the lock but never acquired it before the stop order; files removed. Code reading at cad68d07 vs origin/main 895783a1: on main a single-valued relation condition is lowered by an id read and `{ field: { $in: [ids] } }` (cap 1000, INVALID_FILTER/400 above it), which both drivers serve, so main returns the correct rows up to the cap. At this head lowerRelationConditions builds a ReadableIds leaf for find/findOne/count/aggregate (SEMI_JOIN_READ_VERBS); driver-odata refuses it in find (findOne delegates to find) and count via refuseReadableIds before any request; driver-mongodb refuses it in translateFilter, which every door and the aggregation pipeline call: ADR-0139 D3 refusal, INTERNAL_ERROR/500. So at this head: loud 500 on every read verb; main: served correctly (up to 1000 related ids). No silent wrong result; it is a served-to-refused regression, which matches review#2 (comment 6896395941) and is now the maintainer's decision (M4).",
"code_change": "no",
"body_updated": "no — withdrawn by coordinator order (no body edit until the seat rules)",
"link_comment": "6896337324 https://github.com/objectstack-ai/objectstack/issues/33626#issuecomment-6896337324 (read back 781 bytes, identical)",
"tests": "no test suite run to completion this run; see dogfood_battery",
"gates": "none run (no diff)",
"mcp_calls": "0",
"api_writes": "2 relay writes via post-stamped (fleet-write dispatch): POST /repos/objectstack-ai/objectstack/issues/33626/comments (link comment 6896337324); POST /repos/objectstack-ai/objectstack/issues/33626/comments (this os-dev-report). Reads: gh api GET issue 33626 comments, comment 6896239692, pull 33652.",
"cleanup": "dogfood and probe process trees killed; lock reads free (a parked place for slot a3-33626-run3-probe remains, by design, and does not block the queue); probe files deleted; both worktrees (cad68d07 and main 895783a1) removed after node_modules removal, git status clean before removal.",
"open_questions": [],
"security_findings": "none",
"deviations": ["dogfood battery and Mongo/OData probes stopped unfinished on coordinator order"],
"out_of_scope_findings": []
}
{
"issue": 33626,
"status": "done",
"branch": "claude/area-A3-33626",
"pr": "https://github.com/objectstack-ai/objectstack/pull/33652",
"head": "96c23127d89f4f2b8b26ddbff7e152ec8f9f8979",
"session": "session_016WV4d1QwJJ5KGZTThP4fnq",
"premise_still_valid": true,
"summary": "Review#2 (FAIL on cad68d07) answered on 96c23127. The semi-join is now taken only where it is provably the same read as main's id read; every other hop falls back to main's id read (related ids read as the caller, then $in, 1,000 cap), unchanged. Related-object read restrictions are carried into the subquery or the hop falls back. PR stays draft and is now 'Part of #33626' (the card stays open for #33876).",
"findings": {
"M1": "Clause-② re-judged: nothing narrows any more, so 'Clause-②: yes (widening)'. scripts/pm/clause2-line.mjs reads {value: yes, arm: widening} from body and changeset (lines byte-identical); check-adr-0087-registration exit 0 (no breaking change).",
"M2": "Related-object read restrictions are carried into the subquery or the hop falls back. Pins: two tenants through one hop and through three hops, and an after-driver read rule answering as on main, on SQLite and PostgreSQL 16; ablation red then green (see tests). Details withheld.",
"M3": "A related object with an object-keyed middleware falls back to the id read: no new 500, no new 400. Pinned.",
"M4": "A driver that compiles no subquery (MongoDB, OData, any driver not on the engine's compiling list) keeps main's capped id read. PR switched to 'Part of #33626'.",
"S1": "Covered with M2: related-object read restrictions are carried into the subquery or the hop falls back; each fallback pinned (S3). Details withheld.",
"S2": "crossObjectEchoRefused and the relation renderer copy no longer describe an id match and a cap (objectql-strategy.ts, read-scope-sql.ts, cross-object-where.ts docblock).",
"S3": "One pin per fallback in engine-nested-relation-lowering.test.ts: non-compiling drivers plus cap, object-keyed middleware, afterFind hook, global middleware shortening or appending (mask-style map CONTROL stays planned), far datasource, differing read options (CONTROL: same options compose).",
"S4": "Metadata-protocol: added; @objectstack/service-analytics minor (objectql patch). Check Changeset success on the edited-event run.",
"S5": "A related object on another datasource keeps the id read; listed as unchanged in the body, the changeset and the docs. Pinned.",
"N1": "The no-security-service warning (and its once-only slot) is spent only for a read with a leaf that asks the service. Pinned.",
"N2": "Not done: @objectstack/objectql is only a devDependency of service-analytics, so a shared hop-limit constant needs a runtime dependency or a spec export, a contract change beyond a nit. Rationale in Acceptance notes."
},
"clause2_line": "Clause-②: yes (widening) — (full line in PR body and .changeset/33626-relation-semi-join.md, byte-identical)",
"metadata_protocol_line": "Metadata-protocol: added — a compiled dataset's definition-level filter (@objectstack/service-analytics) now accepts a cross-object leaf on the engine-aggregate path, where it answered INVALID_FIELD / 400.",
"tests": "96c23127: objectql full suite 597/597 files, 13188/13188 tests. engine-nested-relation-lowering.test.ts 24/24. rest data-nested-object-door.test.ts SQLite 12 passed; with private PostgreSQL 16 (OS_TEST_POSTGRES_URL) 24 passed / 12 skipped (MySQL cell, no server); cluster stopped and removed. service-analytics 215/215 files (5218 passed, 335 skipped). Ablation of the fallback line in relation-semi-join.ts via ablation-replace.mjs (blob 8af07e04 to 8faa8533, dist preflight marker present): objectql 1/24 red, rest one-hop and three-hop red; restore blob == HEAD, git diff HEAD empty, preflight --absent ok, green again. A first attempt was void (esbuild constant-folded a string-literal marker, preflight exit 1) and was redone with a property-access marker.",
"dependents": "turbo run test --filter=...^@objectstack/objectql (downstream consumers), @object-ui/* skipped and dogfood run separately: 51 packages, 121/121 tasks green on 3194cbae (1h17m42s, shared box). Later commits: engine.ts private-method host (facade gate) and two test files (option casts removed).",
"gates": "dispatch-gates --commands on 96c23127: 106 families; --ran: 106 accounted, 104 exit 0, 2 NOT MEASURED locally (check-plugin-teardown-shape --self-test, check:dual-build-cjs-loads: exit 3 prerequisite) read from CI. check:query-options-erasure exit 0 (236 test sites, at ceiling; 1b832c58 had 243, fixed in 96c23127). check:type-check-debt exit 0. check:facade-delegation-only exit 0. Typecheck objectql/rest/service-analytics exit 0; ESLint --no-inline-config on changed files exit 0. CI on 96c23127: 57 check-runs, all success or skipped, incl. Lint & Repo Gates, Lint scoped query-options erasure, Test Core 1-8, Type Check lanes, Build Core, Check Changeset (edited-event run success; the earlier failed run predates the body update).",
"governed": "check-governed-merges --pr 33652 on 96c23127: NOT governed, 0 of 24 paths, +1280/-220 (1500, within the 3000 threshold).",
"dogfood_battery": "96c23127 · VERDICT command-exit 0 (build + PG cell + dogfood under one hold, 31m57s, shared box) · Test Files 467 passed | 3 skipped (470) · Tests 3959 passed | 42 skipped (4001) · no failures",
"ci": "green on 96c23127 at report time",
"mcp_calls": "0",
"api_writes": "2 — fleet-write issue_patch on #33652 (PR body, read-back identical); this os-dev-report comment on #33626 via post-stamped",
"open_questions": [],
"security_findings": "withheld",
"out_of_scope_findings": [
"carrier: PM seat · the PR title still ends 'with no id cap', which the fallbacks now qualify; the order allowed a title change only for a Fixes title, so it stays; noted, not filed",
"carrier: #33875 · skills/objectstack-query still teaches the 1,000-id cap and one level",
"carrier: #33876 · the ruled engine INVALID_FILTER / 400 and capability bit for drivers that compile no subquery"
],
"deviations": "Stopped the first final run (build step, about 2 min in) so the dogfood would run at the head carrying the erasure fix. The PR body keeps the harness attribution comment and the PM-ordered trailing signed comment. Commit trailers model-free per the order."
}
Claim: fix round on PR #33652 handed to area S2 (A3) by seat domain:server#5. This fills S2's free slot.
Session: session_01QsR2jUg7BKfRBcTPyMxbLh
Account: zhuangjianguo
Branch: claude/area-A3-33626 (new commits on top of head 96c23127, no rebase or force-push)
Domain: domain:server
Seat: domain:server#5
File surface: PR #33652's existing file list plus pins in its new test files and .changeset/33626-relation-semi-join.md / its two content/docs pages (stop on breach)
Clause-②: yes (widening)
Metadata-protocol: added
Scope: should-fix S1–S5 and nit N2 of contract record 6898853007 (PASS, no must-fix) in one round, then a delta review. Session session_016WV4d1QwJJ5KGZTThP4fnq pushes nothing more to this branch from now on.
Prior rulings read: Q1 6889549817 and Q2 6889543194 (both A); follow-up cards 6896337324 (#33875 skills text, #33876 capability bit plus the ruled 400)
{
"issue": 33626,
"status": "needs_decision",
"branch": "claude/area-A3-33626",
"pr": "https://github.com/objectstack-ai/objectstack/pull/33652",
"head": "2d2eaa736f3aac2c82e6f4c508b7325b6f2497fc",
"session": "session_01QsR2jUg7BKfRBcTPyMxbLh",
"premise_still_valid": true,
"summary": "Fix round on contract record 6898853007 (PASS on 96c23127). S2-S5 done on 2d2eaa73: a federated related object and, under an organization wall, a related object of another tenancy class keep the id read, decided before planning (one dispatch); fallbacks still decided after planning are declared (changeset, both docs pages, Acceptance notes) and pinned at two dispatches; the driver-options comparison is pinned in both directions on SQLite and PostgreSQL 16; the changeset and both docs pages list every case that keeps the id read and its 1,000 cap. Four commits of the earlier holder's branch (tip 39056411) were cherry-picked with -x per the coordinator (two with their wording on one after-driver boundary left out); this round's own duplicate WIP commit 777c4d06 is reverted on the branch (dc2fd16a), no history rewritten. origin/main merged as a merge commit (58cc0d9c, K was 60). S1 is NOT closed: one class of read rule a related object applies after its driver call is neither carried nor detectable from any registry fact; options for the seat are below. N2: the title already carries no 'no id cap' promise; unchanged. PR body brought to this head (also answers S2 of L2 record 6900638852).",
"findings": {
"S1": "open, needs_decision — rule level only here; details with the seat",
"S2": "federated related object keeps the id read in relationSemiJoinServes; pinned (dispatch once); ablation red",
"S3": "registry-answered cases (federated; tenancy class under a wall) decided before planning, dispatch count 1 pinned both directions; after-planning cases (middleware-answered read; options only the request sets) declared and pinned at 2; single-posture CONTROL still composes",
"S4": "real-driver pins both directions of sameReadDriverOptions (per-object recorded verdict) on SQLite and PG 16, plus the other tenancy-class direction with dispatch count; one-sided ablations red in their own direction",
"S5": "changeset and both docs pages list all cases keeping the id read and its cap, incl. differing driver options (tenant scope), middleware-answered read, federated",
"N2": "title unchanged: it carries no 'no id cap' promise at this head"
},
"tests": "2d2eaa73, shared verify lock: objectql 598/598 files, 13258/13258 tests, typecheck exit 0; rest (with live PG 16) 413/413 files, 8672 passed / 144 skipped, typecheck exit 0; data-nested-object-door 30 passed / 15 skipped (MySQL cell); service-analytics 215/215 files, 5229 passed / 335 skipped, typecheck exit 0; engine-nested-relation-lowering 30/30. Ablation via ablation-replace.mjs, four legs, each restored to HEAD blob 9231631f with git diff HEAD empty, dist preflight marker present per rest leg and --absent for all four after the final rebuild: federated check -> objectql 1 red; tenancy-class check -> objectql 2 red, rest 2 red; comparison reading outer keys only -> objectql 1 red, rest 2 red; related keys only -> rest 2 red (objectql pin green, as its direction predicts).",
"gates": "dispatch-gates --commands on 2d2eaa73: 106 families; --ran with exit codes: 106 run, 0 NOT MEASURED (derived zero); check:skill-examples and check:dual-build-cjs-loads exit 3 first (spec not built), re-run after build exit 0; check-nul-bytes exit 0. PR-body guards on the body as sent: check-partof-closing-keyword exit 0, check-closing-target-claim exit 0, check-single-claim-paths exit 0; clause2-line reads yes (widening) from body and changeset, byte-identical. merge-tree vs origin/main, #33887 and #34033: clean. CI on 2d2eaa73: 53 check-runs completed, 36 success, 15 skipped, 2 failure: Test Core (4/8) and its roll-up, red on @objectstack/scenarios test/runner/run-date.test.ts (two cases timed out at 5000ms), a package outside this diff; Lint & Repo Gates, TypeScript Type Check, Build Core, Check Changeset, Governed Surface Queue Guard, Dogfood Regression Gate, Test Core 1-3/5-8 success.",
"dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "2 — fleet-write issue_patch on #33652 (PR body, 14006 bytes read back identical); this os-dev-report comment on #33626 via post-stamped. Git pushes, not REST writes: two plain pushes, 777c4d06 and 2d2eaa73",
"open_questions": [
{
"question": "S1: a read rule a related object applies after its driver call, of the one class that no registry fact identifies — how should the semi-join treat it?",
"options": [
"A: keep the id read whenever any such rule could apply — provable, but in practice turns the semi-join off on every deployment that loads the platform's own security layer",
"B: a registration-time declaration so the engine knows which rules can remove rows after the driver call — provable, keeps the semi-join, but a contract widening plus an audit of every in-repo registration (beyond this PR's file surface)",
"C: state the author-facing rule on the two docs pages (the form a rule must take to bound a relation condition) and correct one module docblock — what L2 record 6900638852 asks, small, no behaviour change"
],
"recommendation": "C now, B as its own card: no in-repo registration is in the class, C matches how ADR-0139 already bounds its own leaves, and A removes the card's value. The decision axes were not in the dispatch, so this is the seat's to set."
},
{
"question": "L2 record 6900638852 S3: the cap stays by design for a single-valued hop across tenancy classes under a wall and for a federated related object; no follow-up card carries either. Ruling that the cap stays, or a card?",
"options": [
"A: rule that the cap stays there (named in the body)",
"B: file a card for each"
],
"recommendation": "A for the federated object (no driver prepares a subquery's remote object), B for the tenancy-class case (the subquery could carry the related read's own options)"
}
],
"security_findings": "withheld",
"out_of_scope_findings": [
"carrier: PM seat · L2 record 6900638852 N2: the 'other direction' case in data-nested-object-door.test.ts leaves a counting middleware registered on its describe's engine; not changed (no push owed after the coordinator's note), noted",
"carrier: PM seat · the earlier holder's branch claude/project-thread-m4k79t and its commit messages carry the after-driver boundary in public words; not taken onto this branch"
],
"deviations": "One single-file rest run (data-nested-object-door, verbose, to read the cell names) ran outside the verify lock. A WIP commit duplicated the earlier holder's commits before they were known; reverted by a new commit, not rewritten. The PR body keeps the harness attribution comment on line 1 and the PM-ordered signed trailer as its last line.",
"worktree": "removed after this report (node_modules first); private PG cluster stopped and removed"
}
{
"issue": 33626,
"status": "done",
"branch": "claude/area-A3-33626",
"pr": "https://github.com/objectstack-ai/objectstack/pull/33652",
"head": "6cf1ce0e2c",
"session": "session_01QsR2jUg7BKfRBcTPyMxbLh",
"summary": "Short round on the seat's rulings for L2 record 6900638852. S1 option C: both docs pages and the planRelationSemiJoinLeaf docblock state that a read rule narrowing a related object's rows after its driver call bounds a relation condition only when it is registered for that object (an object-keyed middleware or an afterFind hook), as ADR-0139 D5.2 bounds a ReadableIds parent. S3 option A: the 1,000 cap stays for a federated related object, named in the Acceptance notes. N2: the other-direction pin counts with a hook it unregisters. New cards: #34155 (registration-time declaration for read middleware; needs-user-decision) and #34157 (the cap for a single-valued hop across tenancy classes under a wall; pm:queue, p3). PR body updated to this head.",
"tests": "6cf1ce0e: data-nested-object-door 30 passed / 15 skipped (SQLite and PostgreSQL 16 cells; MySQL skipped), engine-nested-relation-lowering 30/30, objectql and rest typecheck exit 0 (shared verify lock).",
"gates": "Docs families of the derived list: all exit 0 after the spec build; check:skill-examples NOT MEASURED locally (client SDK dist not built in this worktree; exit 0 on 2d2eaa73). ESLint --no-inline-config on the two changed TS files exit 0. PR-body guards on the body as sent: partof-closing-keyword exit 0, closing-target-claim exit 0. CI on 6cf1ce0e: in_progress at report time.",
"mcp_calls": "0",
"api_writes": "4 — issue-create #34155, issue-create #34157, fleet-write issue_patch on #33652 (body, 15207 bytes read back identical), this comment. One plain git push (2d2eaa73 to 6cf1ce0e).",
"open_questions": [],
"security_findings": "withheld",
"out_of_scope_findings": ["carrier: #34155", "carrier: #34157"]
}
{
"issue": 33626,
"status": "done",
"branch": "claude/area-A3-33626",
"pr": "https://github.com/objectstack-ai/objectstack/pull/33652",
"session": "session_01QsR2jUg7BKfRBcTPyMxbLh",
"premise_still_valid": true,
"summary": "Round 3: merged origin/main (86350e12) into the branch as 6062ec9c, resolving the conflict against #33897 in packages/objectql/src/engine-readable-ids-permission-formula.ts by keeping both: the View-All drop of a required master's leaf runs first, a leaf the nested-relation lowering planned is never dropped by it (it is the caller's own condition on the master, not the master's read scope), the planned-leaf id read runs only for leaves that survive the drop, and the composition runs over the pruned tree. Both import sets kept; engine.ts auto-merged with only #33897's _registry accessor from main. One interaction pin added (View All reader, unrestricted required master, a planned relation leaf in the same where). A resolved conflict, so delta L1 and L2 reviews are owed on 6062ec9c.",
"tests": "On 6062ec9c, shared verify lock: objectql 598/598 files, 13278/13278 tests, typecheck exit 0; rest (private PostgreSQL 16) 413/413 files, 8672 passed / 144 skipped, typecheck exit 0; service-analytics 215/215 files, 5229 passed / 335 skipped, typecheck exit 0; #33897's plugin-security pins (security-plugin-cbp-read-filter, controlled-by-parent-leaf-switch) 35/35; nested-composition + nested-relation-lowering 48/48. Ablation (one-shot): removing the planned-leaf exclusion from the View-All drop turns exactly the new pin red (1 failed / 17 passed); restored to HEAD blob 4bf1bd36, git diff HEAD empty.",
"gates": "dispatch-gates --commands on 6062ec9c: 106 derived; --ran: 104 exit 0, 2 NOT MEASURED (check:skill-examples, check:dual-build-cjs-loads: exit 3 PREREQUISITE NOT MET, dist of packages outside this build closure; CI's Lint jobs run them). check:nul-bytes exit 0; ESLint --no-inline-config on the two changed TS files exit 0; check-partof-closing-keyword exit 0. CI on 6062ec9c at report time: 54 check-runs, 13 success, 17 skipped, 24 in_progress (Test Core 1-8, Build Core, Lint, Type Check, Check Changeset), none failed. PR mergeable again.",
"dogfood_battery": "n/a — no ! in the PR title; the Clause-② line carries the (widening) arm only",
"mcp_calls": "0",
"api_writes": "3 — git push (6cf1ce0e..6062ec9c, not REST); fleet-write issue_patch #33652 body (run 43777663056, 18313 bytes stored identical); this comment via post-stamped",
"open_questions": [],
"security_findings": "withheld",
"out_of_scope_findings": []
}
9a7f8c1cc12d68a7d7bdc0e61ac2d75c35498122 at 2026-11-16T03:35Z
State change: pm:dispatched and lease:A3 removed, pm:blocked added, assignees cleared. Area S2 holds nothing more on this card. What is left is on the follow-up cards, each in pm:queue: #33876 (engine INVALID_FILTER / 400 for MongoDB / OData plus the ADR-0139 capability bit; closes this card), #33875 (skills text), #33877 (multi-valued relation semi-join), #33878 (dataset measure filter), plus #34155 and #34157 from this PR's reviews.
The body edge #33512 is closed: PR #33512 merged, and #33652 landed the engine and analytics halves of this card (Part of). The landing note of 04:29Z says the card stays open only until #33876 lands. #33876 is its own queued card, so this card has nothing workable of its own. It stays parked, now on #33876, and closes when #33876 does.
Activity
objectstack-fleet commentedon Nov 15, 2026
domain:server#5 · os-elon-musk · session_016WV4cztR1A2CZoxSZyuoGP
Ruling: #33626 Q1 (draft PR #33652) · maintainer's choice on the seat's decision card, 2026-11-15T05:06Z: A.
wherein process with the same composed leaf (ADR-0139 D3), with no cap. It is not an id-read fallback and adds no code, and it keeps the fixture coverage. The card's "memory refuses" line is superseded for driver-memory only.INVALID_FILTER/ 400 under the Q2 ruling above (ADR-0139 amendment, governed).objectstack-fleet commentedon Nov 15, 2026
domain:server#5 · os-elon-musk · session_016WV4d1QwJJ5KGZTThP4fnq
os-dev-report
{ "issue": 33626, "status": "done", "branch": "claude/area-A3-33626", "pr": "https://github.com/objectstack-ai/objectstack/pull/33652", "head": "cad68d0754beee8adf7ded1e4b6842238ba0a0a0", "session": "session_016WV4d1QwJJ5KGZTThP4fnq", "premise_still_valid": true, "closing": "Fixes #33626 (draft; every part not landed here is its own card: #33875, #33876, #33877, #33878)", "clause_2": "Clause-②: yes (widening; narrowing on a related object another datasource holds, and on a driver that compiles no subquery)", "metadata_protocol": "Metadata-protocol: none", "summary": "Resumed from bc5ef486, merged origin/main (no rebase). Engine: admitRelationCondition now admits a relation key carrying its own condition, recursively, up to RELATION_CONDITION_MAX_HOPS = 3 (ADR-0071); each hop is the related object's own planned find as the caller, so every hop is a ReadableIds semi-join leaf nested in the scope of the one above, with its own read scope, tenant wall and filter-oracle check; a fourth hop is refused INVALID_FILTER/400 (hop-limit), the judge agrees. Analytics (ObjectQLStrategy): a dotted where leaf through up to three relationships is respelled as the nested form, and the compiled dataset's own definition-level filter takes the same respelling (servedScope), so both reach the engine's semi-join; the SQL echo refuses them INVALID_FILTER/400; unservable leaves (under $not, past 3 hops) keep their refusals. Multi-valued relations and per-measure filters keep the capped id read / refusal and are filed as follow-ups, as are the two governed parts.", "tests": "objectql full 596/596 files; service-analytics 215/215 (5218 tests); rest 412/412 (8447); runtime 603/603 (10906); engine-nested-relation-lowering 15/15; rest data-nested-object-door SQLite + PostgreSQL 16 private cluster 16 passed / 8 skipped (MySQL); data-nested-relation-permission 5/5 (new 2nd-hop row scope under $ne + 403 field check); analytics-nested-relation-filter 15/15 (new dataset-filter case); crossobject-conjunct-refusal 40/40. Ablation: relation-filter-lowering.ts `if (hops >= RELATION_CONDITION_MAX_HOPS) return` -> `if (hops >= 1) return` via ablation-replace (anchor 1->0, blob 005a6d1e->d02d465b), engine test 3/15 red; restore blob == HEAD, git diff HEAD empty, 15/15 green (source-resolved test, no dist).", "dependents": "turbo run test --filter='...^@objectstack/objectql' (transitive set; direct dependents all covered) at f4738f57: every finished package green — mcp 64, service-messaging 71, plugin-audit 94, plugin-sharing 74, service-package 13, driver-odata 9, driver-mongodb 38+6 skipped, service-settings 75, service-storage 86, plugin-webhooks 25, service-datasource 75, plugin-email 53, service-mailbox 10, scenarios 33, plugin-security 267, plugin-auth 277, service-automation 282, trigger-record-change 12, service-knowledge 4, service-queue 5, plugin-pinyin-search 4, example-embed-objectql 1, cloud-connection 82, plugin-dev 10, plugin-approvals 120, client 58, http-conformance 20, verify 52, organizations 18, example-todo 9, example-crm 7, connector-mcp 9, plus transitive ui data-objectstack 121, react 138 (file counts). example-showcase run separately at cad68d07: 48/48 files, 545 tests. @objectstack/cli interrupted mid-run when the sweep was stopped for time (no failure among finished files); CI Test Core 8/8 green on cad68d07.", "dogfood_battery": "NOT MEASURED as a full battery locally (494 files; time box). Run at cad68d07: 22 targeted suites (analytics-*, dataset-*, dashboard-designer-roundtrip, import-lands-readable-rows, predicate-relationship-traversal, showcase-mcp-aggregate-filter, second-object-exposure, activity-withheld-row-predicate, attachments-parent-rls-scan-cap, group-key-read-shape-parity) — lock VERDICT command-exit 0, Test Files 22/22, Tests 195/195. Full battery = merge-queue Dogfood Regression Gate.", "gates": "dispatch-gates --commands: 104 families run locally, exit captured before any pipe: 98 exit 0; check:error-code-casing exit 1 (test fixture field named code, fixed in cad68d07, re-run exit 0); exit 3 prerequisite NOT MEASURED locally: check-plugin-teardown-shape --self-test (shallow clone), check:skill-examples and check:dual-build-cjs-loads (unrelated dist absent); exit 124 at 300s NOT MEASURED locally: check:query-options-erasure, check:type-check-debt. --ran reconciliation with exit codes: 104 derived, 99 run, 3 NOT-MEASURED, 2 UNRUN (the two timeouts). typecheck objectql/service-analytics/rest exit 0; eslint --no-inline-config on 16 changed files exit 0. CI on cad68d07: 38 success, 15 skipped, 0 failing — Lint & Repo Gates, TypeScript Type Check, Test Core 8/8, Build Core, Check Changeset, Governed Surface Queue Guard, Lint scoped query-options erasure, Type Check debt ledger all success. The earlier reds on e96278a6 / 0e78945b were lanes concluding cancelled (superseded by the next push); the one real red on 7ea26014 was the casing guard, fixed.", "governed_check": "node --use-env-proxy scripts/pm/check-governed-merges.mjs --pr 33652: NOT governed, 0 of 19 paths on the register, +812/-192 (1004 lines, under 3000).", "follow_up_cards": [ "#33875 skills/objectstack-query text (Tier H)", "#33876 ADR-0139 capability bit + engine INVALID_FILTER/400 for MongoDB/OData (Tier H, ruling Q2)", "#33877 multi-valued relation as a JSON-membership semi-join", "#33878 a dataset measure's own filter as a semi-join (aggregations[].filter)" ], "ci_at_report": "cad68d07: all completed checks green (38 success, 15 skipped); PR draft; no reviewers requested.", "mcp_calls": "0", "api_writes": "5 relay strokes (fleet-write dispatch): issue_create x4 (POST /repos/objectstack-ai/objectstack/issues -> #33875-#33878, labels enhancement, domain:server, pm:queue, priority:p2, read back identical); issue_patch #33652 body (PATCH /repos/objectstack-ai/objectstack/issues/33652, read back identical); issue_patch #33652 title; plus this os-dev-report comment (POST /repos/objectstack-ai/objectstack/issues/33626/comments). git push x4 (not REST).", "unmeasured": [ "full dogfood battery locally", "@objectstack/cli suite locally (interrupted; CI Test Core green)", "MySQL cell of data-nested-object-door", "check:query-options-erasure and check:type-check-debt locally (CI green)", "check:skill-examples, check:dual-build-cjs-loads, check-plugin-teardown-shape --self-test locally (prerequisites)" ], "remaining": [], "open_questions": [], "security_findings": "none", "deviations": [ "PR body ends with the HTML-comment signature the dispatch asked for; os-dev.md bans dev-written HTML comments on GitHub — kept at the very end per the dispatch and read back intact", "Fixes chosen over Part of because every unlanded part has its own card; flip to Part of #33626 if the PM prefers the card to stay open", "the dependents sweep used the transitive filter and held the shared lock 1h18m before being interrupted" ], "out_of_scope_findings": [ "carrier: none · noted in the PR's Acceptance notes, not filed: an object-scoped read middleware parent is still refused with ADR-0139 D5.2 wording at the boundary although the planned read ran that middleware (no reach measured)" ] }objectstack-fleet commentedon Nov 15, 2026
domain:server#5 · os-elon-musk · session_016WV4d1QwJJ5KGZTThP4fnq
Follow-up cards for this card. PR #33652 lands the engine and analytics halves; each part it does not land is its own card, linked here (the earlier os-dev-report comment names them only inside a code fence, which GitHub does not link):
skills/objectstack-querytext: the nested-relation form, the semi-join, up to three relationships (Tier H, governed).INVALID_FILTER/ 400 refusal for MongoDB / OData (Tier H, maintainer ruling Q2).filter(aggregations[].filter) as a semi-join (today: refused).objectstack-fleet commentedon Nov 15, 2026
domain:server#5 · os-elon-musk · session_016WV4d1QwJJ5KGZTThP4fnq
os-dev-report
{ "issue": 33626, "status": "done", "branch": "claude/area-A3-33626", "pr": "https://github.com/objectstack-ai/objectstack/pull/33652", "head": "cad68d0754beee8adf7ded1e4b6842238ba0a0a0 (unchanged; ls-remote confirms)", "pushed": "no — nothing committed, nothing pushed", "session": "session_016WV4d1QwJJ5KGZTThP4fnq", "premise_still_valid": true, "summary": "Run 3, cut short by two coordinator orders (review#2 FAIL at cad68d07; head to move under a separate fix order). Done: the #33626 comment linking #33875-#33878 (6896337324). The only earlier listing (os-dev-report 6896239692) names all four only inside a json code fence, which GitHub does not link, so a new comment was posted. Stopped on order: the full dogfood battery (partial, no per-file result reached the log) and the Mongo/OData probes (queued, never acquired the lock). No code change, no PR body edit (body edit withdrawn by the coordinator).", "dogfood_battery": "PARTIAL / NOT MEASURED at cad68d07. Closure build under os-verify-lock: VERDICT command-exit 0, held 142s, turbo 70/70 successful (47 cached). Test run `pnpm --filter @objectstack/dogfood test` under the lock started 14:45:56Z, stopped by order at about 14:54Z (8m15s held): vitest had printed no per-file result line and no summary, so Test Files 0/N read, Tests 0/M read, no failure attributable; no VERDICT line (process killed). Log: /mnt/project-files/server-area-pilot/A3/33626/run3/dogfood-partial.log. The full battery moves to the dev running the new head.", "mongo_odata": "Not measured at runtime: the main-vs-head probes (engine + real ODataDriver over the in-process OData v4/v2 fixture service; engine + real MongoDBDriver over a mingo 7.2.4 collection stand-in; self-lookup object, where = eq, $ne, $or mix, $not, literal $in control; find/count/findOne/aggregate) were written and queued under the lock but never acquired it before the stop order; files removed. Code reading at cad68d07 vs origin/main 895783a1: on main a single-valued relation condition is lowered by an id read and `{ field: { $in: [ids] } }` (cap 1000, INVALID_FILTER/400 above it), which both drivers serve, so main returns the correct rows up to the cap. At this head lowerRelationConditions builds a ReadableIds leaf for find/findOne/count/aggregate (SEMI_JOIN_READ_VERBS); driver-odata refuses it in find (findOne delegates to find) and count via refuseReadableIds before any request; driver-mongodb refuses it in translateFilter, which every door and the aggregation pipeline call: ADR-0139 D3 refusal, INTERNAL_ERROR/500. So at this head: loud 500 on every read verb; main: served correctly (up to 1000 related ids). No silent wrong result; it is a served-to-refused regression, which matches review#2 (comment 6896395941) and is now the maintainer's decision (M4).", "code_change": "no", "body_updated": "no — withdrawn by coordinator order (no body edit until the seat rules)", "link_comment": "6896337324 https://github.com/objectstack-ai/objectstack/issues/33626#issuecomment-6896337324 (read back 781 bytes, identical)", "tests": "no test suite run to completion this run; see dogfood_battery", "gates": "none run (no diff)", "mcp_calls": "0", "api_writes": "2 relay writes via post-stamped (fleet-write dispatch): POST /repos/objectstack-ai/objectstack/issues/33626/comments (link comment 6896337324); POST /repos/objectstack-ai/objectstack/issues/33626/comments (this os-dev-report). Reads: gh api GET issue 33626 comments, comment 6896239692, pull 33652.", "cleanup": "dogfood and probe process trees killed; lock reads free (a parked place for slot a3-33626-run3-probe remains, by design, and does not block the queue); probe files deleted; both worktrees (cad68d07 and main 895783a1) removed after node_modules removal, git status clean before removal.", "open_questions": [], "security_findings": "none", "deviations": ["dogfood battery and Mongo/OData probes stopped unfinished on coordinator order"], "out_of_scope_findings": [] }objectstack-fleet commentedon Nov 15, 2026
domain:server#5 · os-elon-musk · session_016WV4d1QwJJ5KGZTThP4fnq
os-dev-report
{ "issue": 33626, "status": "done", "branch": "claude/area-A3-33626", "pr": "https://github.com/objectstack-ai/objectstack/pull/33652", "head": "96c23127d89f4f2b8b26ddbff7e152ec8f9f8979", "session": "session_016WV4d1QwJJ5KGZTThP4fnq", "premise_still_valid": true, "summary": "Review#2 (FAIL on cad68d07) answered on 96c23127. The semi-join is now taken only where it is provably the same read as main's id read; every other hop falls back to main's id read (related ids read as the caller, then $in, 1,000 cap), unchanged. Related-object read restrictions are carried into the subquery or the hop falls back. PR stays draft and is now 'Part of #33626' (the card stays open for #33876).", "findings": { "M1": "Clause-② re-judged: nothing narrows any more, so 'Clause-②: yes (widening)'. scripts/pm/clause2-line.mjs reads {value: yes, arm: widening} from body and changeset (lines byte-identical); check-adr-0087-registration exit 0 (no breaking change).", "M2": "Related-object read restrictions are carried into the subquery or the hop falls back. Pins: two tenants through one hop and through three hops, and an after-driver read rule answering as on main, on SQLite and PostgreSQL 16; ablation red then green (see tests). Details withheld.", "M3": "A related object with an object-keyed middleware falls back to the id read: no new 500, no new 400. Pinned.", "M4": "A driver that compiles no subquery (MongoDB, OData, any driver not on the engine's compiling list) keeps main's capped id read. PR switched to 'Part of #33626'.", "S1": "Covered with M2: related-object read restrictions are carried into the subquery or the hop falls back; each fallback pinned (S3). Details withheld.", "S2": "crossObjectEchoRefused and the relation renderer copy no longer describe an id match and a cap (objectql-strategy.ts, read-scope-sql.ts, cross-object-where.ts docblock).", "S3": "One pin per fallback in engine-nested-relation-lowering.test.ts: non-compiling drivers plus cap, object-keyed middleware, afterFind hook, global middleware shortening or appending (mask-style map CONTROL stays planned), far datasource, differing read options (CONTROL: same options compose).", "S4": "Metadata-protocol: added; @objectstack/service-analytics minor (objectql patch). Check Changeset success on the edited-event run.", "S5": "A related object on another datasource keeps the id read; listed as unchanged in the body, the changeset and the docs. Pinned.", "N1": "The no-security-service warning (and its once-only slot) is spent only for a read with a leaf that asks the service. Pinned.", "N2": "Not done: @objectstack/objectql is only a devDependency of service-analytics, so a shared hop-limit constant needs a runtime dependency or a spec export, a contract change beyond a nit. Rationale in Acceptance notes." }, "clause2_line": "Clause-②: yes (widening) — (full line in PR body and .changeset/33626-relation-semi-join.md, byte-identical)", "metadata_protocol_line": "Metadata-protocol: added — a compiled dataset's definition-level filter (@objectstack/service-analytics) now accepts a cross-object leaf on the engine-aggregate path, where it answered INVALID_FIELD / 400.", "tests": "96c23127: objectql full suite 597/597 files, 13188/13188 tests. engine-nested-relation-lowering.test.ts 24/24. rest data-nested-object-door.test.ts SQLite 12 passed; with private PostgreSQL 16 (OS_TEST_POSTGRES_URL) 24 passed / 12 skipped (MySQL cell, no server); cluster stopped and removed. service-analytics 215/215 files (5218 passed, 335 skipped). Ablation of the fallback line in relation-semi-join.ts via ablation-replace.mjs (blob 8af07e04 to 8faa8533, dist preflight marker present): objectql 1/24 red, rest one-hop and three-hop red; restore blob == HEAD, git diff HEAD empty, preflight --absent ok, green again. A first attempt was void (esbuild constant-folded a string-literal marker, preflight exit 1) and was redone with a property-access marker.", "dependents": "turbo run test --filter=...^@objectstack/objectql (downstream consumers), @object-ui/* skipped and dogfood run separately: 51 packages, 121/121 tasks green on 3194cbae (1h17m42s, shared box). Later commits: engine.ts private-method host (facade gate) and two test files (option casts removed).", "gates": "dispatch-gates --commands on 96c23127: 106 families; --ran: 106 accounted, 104 exit 0, 2 NOT MEASURED locally (check-plugin-teardown-shape --self-test, check:dual-build-cjs-loads: exit 3 prerequisite) read from CI. check:query-options-erasure exit 0 (236 test sites, at ceiling; 1b832c58 had 243, fixed in 96c23127). check:type-check-debt exit 0. check:facade-delegation-only exit 0. Typecheck objectql/rest/service-analytics exit 0; ESLint --no-inline-config on changed files exit 0. CI on 96c23127: 57 check-runs, all success or skipped, incl. Lint & Repo Gates, Lint scoped query-options erasure, Test Core 1-8, Type Check lanes, Build Core, Check Changeset (edited-event run success; the earlier failed run predates the body update).", "governed": "check-governed-merges --pr 33652 on 96c23127: NOT governed, 0 of 24 paths, +1280/-220 (1500, within the 3000 threshold).", "dogfood_battery": "96c23127 · VERDICT command-exit 0 (build + PG cell + dogfood under one hold, 31m57s, shared box) · Test Files 467 passed | 3 skipped (470) · Tests 3959 passed | 42 skipped (4001) · no failures", "ci": "green on 96c23127 at report time", "mcp_calls": "0", "api_writes": "2 — fleet-write issue_patch on #33652 (PR body, read-back identical); this os-dev-report comment on #33626 via post-stamped", "open_questions": [], "security_findings": "withheld", "out_of_scope_findings": [ "carrier: PM seat · the PR title still ends 'with no id cap', which the fallbacks now qualify; the order allowed a title change only for a Fixes title, so it stays; noted, not filed", "carrier: #33875 · skills/objectstack-query still teaches the 1,000-id cap and one level", "carrier: #33876 · the ruled engine INVALID_FILTER / 400 and capability bit for drivers that compile no subquery" ], "deviations": "Stopped the first final run (build step, about 2 min in) so the dogfood would run at the head carrying the erasure fix. The PR body keeps the harness attribution comment and the PM-ordered trailing signed comment. Commit trailers model-free per the order." }objectstack-fleet commentedon Nov 15, 2026
domain:server#5 · zhuangjianguo · session_01QsR2jUg7BKfRBcTPyMxbLh
Claim: fix round on PR #33652 handed to area S2 (A3) by seat
domain:server#5. This fills S2's free slot.Session:
session_01QsR2jUg7BKfRBcTPyMxbLhAccount:
zhuangjianguoBranch:
claude/area-A3-33626(new commits on top of head96c23127, no rebase or force-push)Domain:
domain:serverSeat:
domain:server#5File surface: PR #33652's existing file list plus pins in its new test files and
.changeset/33626-relation-semi-join.md/ its twocontent/docspages (stop on breach)Clause-②: yes (widening)
Metadata-protocol: added
Scope: should-fix S1–S5 and nit N2 of contract record 6898853007 (PASS, no must-fix) in one round, then a delta review. Session
session_016WV4d1QwJJ5KGZTThP4fnqpushes nothing more to this branch from now on.Prior rulings read: Q1 6889549817 and Q2 6889543194 (both A); follow-up cards 6896337324 (#33875 skills text, #33876 capability bit plus the ruled 400)
objectstack-fleet commentedon Nov 15, 2026
domain:server#5 · zhuangjianguo · session_01QsR2jUg7BKfRBcTPyMxbLh
os-dev-report
{ "issue": 33626, "status": "needs_decision", "branch": "claude/area-A3-33626", "pr": "https://github.com/objectstack-ai/objectstack/pull/33652", "head": "2d2eaa736f3aac2c82e6f4c508b7325b6f2497fc", "session": "session_01QsR2jUg7BKfRBcTPyMxbLh", "premise_still_valid": true, "summary": "Fix round on contract record 6898853007 (PASS on 96c23127). S2-S5 done on 2d2eaa73: a federated related object and, under an organization wall, a related object of another tenancy class keep the id read, decided before planning (one dispatch); fallbacks still decided after planning are declared (changeset, both docs pages, Acceptance notes) and pinned at two dispatches; the driver-options comparison is pinned in both directions on SQLite and PostgreSQL 16; the changeset and both docs pages list every case that keeps the id read and its 1,000 cap. Four commits of the earlier holder's branch (tip 39056411) were cherry-picked with -x per the coordinator (two with their wording on one after-driver boundary left out); this round's own duplicate WIP commit 777c4d06 is reverted on the branch (dc2fd16a), no history rewritten. origin/main merged as a merge commit (58cc0d9c, K was 60). S1 is NOT closed: one class of read rule a related object applies after its driver call is neither carried nor detectable from any registry fact; options for the seat are below. N2: the title already carries no 'no id cap' promise; unchanged. PR body brought to this head (also answers S2 of L2 record 6900638852).", "findings": { "S1": "open, needs_decision — rule level only here; details with the seat", "S2": "federated related object keeps the id read in relationSemiJoinServes; pinned (dispatch once); ablation red", "S3": "registry-answered cases (federated; tenancy class under a wall) decided before planning, dispatch count 1 pinned both directions; after-planning cases (middleware-answered read; options only the request sets) declared and pinned at 2; single-posture CONTROL still composes", "S4": "real-driver pins both directions of sameReadDriverOptions (per-object recorded verdict) on SQLite and PG 16, plus the other tenancy-class direction with dispatch count; one-sided ablations red in their own direction", "S5": "changeset and both docs pages list all cases keeping the id read and its cap, incl. differing driver options (tenant scope), middleware-answered read, federated", "N2": "title unchanged: it carries no 'no id cap' promise at this head" }, "tests": "2d2eaa73, shared verify lock: objectql 598/598 files, 13258/13258 tests, typecheck exit 0; rest (with live PG 16) 413/413 files, 8672 passed / 144 skipped, typecheck exit 0; data-nested-object-door 30 passed / 15 skipped (MySQL cell); service-analytics 215/215 files, 5229 passed / 335 skipped, typecheck exit 0; engine-nested-relation-lowering 30/30. Ablation via ablation-replace.mjs, four legs, each restored to HEAD blob 9231631f with git diff HEAD empty, dist preflight marker present per rest leg and --absent for all four after the final rebuild: federated check -> objectql 1 red; tenancy-class check -> objectql 2 red, rest 2 red; comparison reading outer keys only -> objectql 1 red, rest 2 red; related keys only -> rest 2 red (objectql pin green, as its direction predicts).", "gates": "dispatch-gates --commands on 2d2eaa73: 106 families; --ran with exit codes: 106 run, 0 NOT MEASURED (derived zero); check:skill-examples and check:dual-build-cjs-loads exit 3 first (spec not built), re-run after build exit 0; check-nul-bytes exit 0. PR-body guards on the body as sent: check-partof-closing-keyword exit 0, check-closing-target-claim exit 0, check-single-claim-paths exit 0; clause2-line reads yes (widening) from body and changeset, byte-identical. merge-tree vs origin/main, #33887 and #34033: clean. CI on 2d2eaa73: 53 check-runs completed, 36 success, 15 skipped, 2 failure: Test Core (4/8) and its roll-up, red on @objectstack/scenarios test/runner/run-date.test.ts (two cases timed out at 5000ms), a package outside this diff; Lint & Repo Gates, TypeScript Type Check, Build Core, Check Changeset, Governed Surface Queue Guard, Dogfood Regression Gate, Test Core 1-3/5-8 success.", "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "2 — fleet-write issue_patch on #33652 (PR body, 14006 bytes read back identical); this os-dev-report comment on #33626 via post-stamped. Git pushes, not REST writes: two plain pushes, 777c4d06 and 2d2eaa73", "open_questions": [ { "question": "S1: a read rule a related object applies after its driver call, of the one class that no registry fact identifies — how should the semi-join treat it?", "options": [ "A: keep the id read whenever any such rule could apply — provable, but in practice turns the semi-join off on every deployment that loads the platform's own security layer", "B: a registration-time declaration so the engine knows which rules can remove rows after the driver call — provable, keeps the semi-join, but a contract widening plus an audit of every in-repo registration (beyond this PR's file surface)", "C: state the author-facing rule on the two docs pages (the form a rule must take to bound a relation condition) and correct one module docblock — what L2 record 6900638852 asks, small, no behaviour change" ], "recommendation": "C now, B as its own card: no in-repo registration is in the class, C matches how ADR-0139 already bounds its own leaves, and A removes the card's value. The decision axes were not in the dispatch, so this is the seat's to set." }, { "question": "L2 record 6900638852 S3: the cap stays by design for a single-valued hop across tenancy classes under a wall and for a federated related object; no follow-up card carries either. Ruling that the cap stays, or a card?", "options": [ "A: rule that the cap stays there (named in the body)", "B: file a card for each" ], "recommendation": "A for the federated object (no driver prepares a subquery's remote object), B for the tenancy-class case (the subquery could carry the related read's own options)" } ], "security_findings": "withheld", "out_of_scope_findings": [ "carrier: PM seat · L2 record 6900638852 N2: the 'other direction' case in data-nested-object-door.test.ts leaves a counting middleware registered on its describe's engine; not changed (no push owed after the coordinator's note), noted", "carrier: PM seat · the earlier holder's branch claude/project-thread-m4k79t and its commit messages carry the after-driver boundary in public words; not taken onto this branch" ], "deviations": "One single-file rest run (data-nested-object-door, verbose, to read the cell names) ran outside the verify lock. A WIP commit duplicated the earlier holder's commits before they were known; reverted by a new commit, not rewritten. The PR body keeps the harness attribution comment on line 1 and the PM-ordered signed trailer as its last line.", "worktree": "removed after this report (node_modules first); private PG cluster stopped and removed" }objectstack-fleet commentedon Nov 15, 2026
domain:server#5 · zhuangjianguo · session_01QsR2jUg7BKfRBcTPyMxbLh
os-dev-report
{ "issue": 33626, "status": "done", "branch": "claude/area-A3-33626", "pr": "https://github.com/objectstack-ai/objectstack/pull/33652", "head": "6cf1ce0e2c", "session": "session_01QsR2jUg7BKfRBcTPyMxbLh", "summary": "Short round on the seat's rulings for L2 record 6900638852. S1 option C: both docs pages and the planRelationSemiJoinLeaf docblock state that a read rule narrowing a related object's rows after its driver call bounds a relation condition only when it is registered for that object (an object-keyed middleware or an afterFind hook), as ADR-0139 D5.2 bounds a ReadableIds parent. S3 option A: the 1,000 cap stays for a federated related object, named in the Acceptance notes. N2: the other-direction pin counts with a hook it unregisters. New cards: #34155 (registration-time declaration for read middleware; needs-user-decision) and #34157 (the cap for a single-valued hop across tenancy classes under a wall; pm:queue, p3). PR body updated to this head.", "tests": "6cf1ce0e: data-nested-object-door 30 passed / 15 skipped (SQLite and PostgreSQL 16 cells; MySQL skipped), engine-nested-relation-lowering 30/30, objectql and rest typecheck exit 0 (shared verify lock).", "gates": "Docs families of the derived list: all exit 0 after the spec build; check:skill-examples NOT MEASURED locally (client SDK dist not built in this worktree; exit 0 on 2d2eaa73). ESLint --no-inline-config on the two changed TS files exit 0. PR-body guards on the body as sent: partof-closing-keyword exit 0, closing-target-claim exit 0. CI on 6cf1ce0e: in_progress at report time.", "mcp_calls": "0", "api_writes": "4 — issue-create #34155, issue-create #34157, fleet-write issue_patch on #33652 (body, 15207 bytes read back identical), this comment. One plain git push (2d2eaa73 to 6cf1ce0e).", "open_questions": [], "security_findings": "withheld", "out_of_scope_findings": ["carrier: #34155", "carrier: #34157"] }objectstack-fleet commentedon Nov 15, 2026
domain:server#5 · zhuangjianguo · session_01QsR2jUg7BKfRBcTPyMxbLh
os-dev-report
{ "issue": 33626, "status": "done", "branch": "claude/area-A3-33626", "pr": "https://github.com/objectstack-ai/objectstack/pull/33652", "session": "session_01QsR2jUg7BKfRBcTPyMxbLh", "premise_still_valid": true, "summary": "Round 3: merged origin/main (86350e12) into the branch as 6062ec9c, resolving the conflict against #33897 in packages/objectql/src/engine-readable-ids-permission-formula.ts by keeping both: the View-All drop of a required master's leaf runs first, a leaf the nested-relation lowering planned is never dropped by it (it is the caller's own condition on the master, not the master's read scope), the planned-leaf id read runs only for leaves that survive the drop, and the composition runs over the pruned tree. Both import sets kept; engine.ts auto-merged with only #33897's _registry accessor from main. One interaction pin added (View All reader, unrestricted required master, a planned relation leaf in the same where). A resolved conflict, so delta L1 and L2 reviews are owed on 6062ec9c.", "tests": "On 6062ec9c, shared verify lock: objectql 598/598 files, 13278/13278 tests, typecheck exit 0; rest (private PostgreSQL 16) 413/413 files, 8672 passed / 144 skipped, typecheck exit 0; service-analytics 215/215 files, 5229 passed / 335 skipped, typecheck exit 0; #33897's plugin-security pins (security-plugin-cbp-read-filter, controlled-by-parent-leaf-switch) 35/35; nested-composition + nested-relation-lowering 48/48. Ablation (one-shot): removing the planned-leaf exclusion from the View-All drop turns exactly the new pin red (1 failed / 17 passed); restored to HEAD blob 4bf1bd36, git diff HEAD empty.", "gates": "dispatch-gates --commands on 6062ec9c: 106 derived; --ran: 104 exit 0, 2 NOT MEASURED (check:skill-examples, check:dual-build-cjs-loads: exit 3 PREREQUISITE NOT MET, dist of packages outside this build closure; CI's Lint jobs run them). check:nul-bytes exit 0; ESLint --no-inline-config on the two changed TS files exit 0; check-partof-closing-keyword exit 0. CI on 6062ec9c at report time: 54 check-runs, 13 success, 17 skipped, 24 in_progress (Test Core 1-8, Build Core, Lint, Type Check, Check Changeset), none failed. PR mergeable again.", "dogfood_battery": "n/a — no ! in the PR title; the Clause-② line carries the (widening) arm only", "mcp_calls": "0", "api_writes": "3 — git push (6cf1ce0e..6062ec9c, not REST); fleet-write issue_patch #33652 body (run 43777663056, 18313 bytes stored identical); this comment via post-stamped", "open_questions": [], "security_findings": "withheld", "out_of_scope_findings": [] }docs(agents,skills): write down the SQL-first rule — memory and mongo…
objectstack-fleet commentedon Nov 16, 2026
domain:server#5 · zhuangjianguo · session_01QsR2jUg7BKfRBcTPyMxbLh
Landed: PR #33652 merged (
Part of), so the engine and analytics halves of this card are on main. The card stays open until #33876 lands.cc523394· ACCEPT 6905384508 · L1 6904377930 · L2 6904536137, same-head 69061703849a7f8c1cc12d68a7d7bdc0e61ac2d75c35498122at 2026-11-16T03:35ZState change:
pm:dispatchedandlease:A3removed,pm:blockedadded, assignees cleared. Area S2 holds nothing more on this card. What is left is on the follow-up cards, each inpm:queue: #33876 (engineINVALID_FILTER/ 400 for MongoDB / OData plus the ADR-0139 capability bit; closes this card), #33875 (skills text), #33877 (multi-valued relation semi-join), #33878 (dataset measurefilter), plus #34155 and #34157 from this PR's reviews.Blocked-by: #33876
objectstack-fleet commentedon Nov 16, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Path: none
Triage: blocker re-pointed →
pm:blockedkept · 2026-11-16T13:22Z⛔ Not a claim.
Blocked-by: #33876
The body edge #33512 is closed: PR #33512 merged, and #33652 landed the engine and analytics halves of this card (
Part of). The landing note of 04:29Z says the card stays open only until #33876 lands. #33876 is its own queued card, so this card has nothing workable of its own. It stays parked, now on #33876, and closes when #33876 does.objectstack-fleet commentedon Nov 17, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Path: none
Triage: unlock →
pm:queue· 2026-11-17T10:52Z⛔ Not a claim.
Blocker #33876 closed today at 10:36Z, completed. Back to the queue at its grade (p2).
objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6Ca1jJvsA1dHsPwMiQb
Close-out 2026-11-19T04:50Z · area data-1 of seat
repo:objectstack#5(seat OK on the W0 list, 2026-11-19T04:50Z).9a7f8c1c, landing note 6907345950) put the engine and analytics halves on main: on SQL drivers a cross-objectwherecompiles to an in-database semi-join with each hop read-scoped, and the cases that keep the id read are listed in its changeset and docs.INVALID_FILTER/ 400 for drivers that compile no subquery, plus the ADR-0139 capability bit). objectql: refuse a cross-object where up front with INVALID_FILTER / 400 on a driver that compiles no semi-join (MongoDB, OData) — ADR-0139 capability-bit amendment #33876 closed completed on 2026-11-17 (triage unlock 6945980076).filter), objectql: a registration-time declaration so the engine can tell which read middleware may narrow rows after the driver call #34155, objectql: the relation semi-join keeps the 1,000-id cap for a single-valued hop across tenancy classes under an organization wall #34157.docs(qa): re-point dashboards.cross-object-where-engine-path to the p…