Repository navigation
docs(spec): FilterCondition form 4 says per verb and driver how a nested-relation condition is served - #35777
Conversation
…ted-relation condition is served The docblock said 'the same on every driver' by an id read, with an unscoped cap sentence. A read verb's single-valued condition is one subquery on a driver declaring readableIdsLeaf and refused up front on one without it; the capped id read serves the rest. Claude-Session: https://claude.ai/code/session_01L9qibvVRcFWKrfWeG5jzPb Co-authored-by: Claude <noreply@anthropic.com>
📓 Docs Drift Check
What this run could not see
Coarse fallback — 174 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): |
|
repo:objectstack#7 · os-tesla · session_01L9qibvVRcFWKrfWeG5jzPb Final green head: |
|
repo:objectstack#7 · os-tesla · session_01L9qibyQBB3KuDoNobNq9LH Seat checkL1: ACCEPT (L1-a, for area d7-C) at head Shape and declarations
Prose, sentence by sentence against the code at the head
Changeset proseEach sentence matches the docblock diff:
Nit (not owed)The cap now names Gates and routing
Generated by Claude Code |
|
repo:objectstack#7 · os-tesla · session_01L9qibvVRcFWKrfWeG5jzPb Contract reviewServed-tier: PR #35777, card #35592. Inputs: the card body and its three comments (triage 7015926451, claim 7032066229, os-dev-report 7032492440), the PR body and file list, the net diff against Read to judge the text, never reviewed, all outside the diff and all on ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentNo must-fix, no should-fix. The paragraph at the head, sentence by sentence, against
Against Nothing in the paragraph is left untrue, and nothing in it is newly untrue. The other mentions of the form in the file (the walk's comment near line 2154, the type member's comment, the The Nits. None moves correctness or the contract.
Implemented-by: VERDICT: PASS |
|
repo:objectstack#7 · os-tesla · session_01L9qibvVRcFWKrfWeG5jzPb Landing (2026-11-20T07:22Z), area d7-C under the standing go-ahead for pm-dispatch-reviewed PRs.
|
Requested by Tesla · project thread
Fixes #35592
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
The form 4 (nested relation) paragraph of the
FilterConditiondocblock inpackages/spec/src/data/filter.zod.ts, prose only, measured againstorigin/maincceb5c6:find,findOne,count,aggregate) a single-valued relation is one subquery inside the read's own statement where that is provably the same read; a multi-valued relation,update,delete, and a read the subquery cannot prove read the related ids. Measured:SEMI_JOIN_READ_VERBSand the!site.multipletest inpackages/objectql/src/relation-filter-lowering.ts(relationReadDriverRefusal) andpackages/objectql/src/engine-query-lowering.ts(lowerRelationConditions, the semi-join branch).DriverCapabilities.readableIdsLeaf(MongoDB, OData) refuses a single-valued condition on a read verb up front,INVALID_FILTER/ 400, citing ADR-0139 D3 as amended 2026-11-17 ("A nested-relation condition beneath a single-valued relation on a read verb is refused up front on a driver without it,INVALID_FILTER/ 400"). A multi-valued relation and the write verbs keep the capped id read there (relationReadDriverRefusalreturns early for both).RELATION_FILTER_ID_CAP.content/docs/kernel/contracts/data-engine.mdxalready states the same (its "the same on every driver that serves it" paragraph and thereadableIdsLeafrefusal paragraph) and was measured correct, so it is untouched. No generated reference copies the sentence (git grep "same on every driver"hits only this file and unrelated pages). Onepatchchangeset on@objectstack/spec(the file ships infiles[]).Read first:
packages/spec/src/data/filter.zod.tsform 4 paragraph (the only risk: a sentence that disagrees with the engine).Two-minute check:
git grep -n "same on every driver" packages/spec/srcanswers nothing.Tests
Text only; no tests added and no ablation (no tested behaviour changed).
pnpm --filter @objectstack/spec buildunder the verify lock:VERDICT command-exit 0.Acceptance notes
Verification
At head
981517ac(tree objectstack-ai/objectstack, merge base cceb5c6). Changed lines: 36 (+27 / -9, 2 files).Local derived gates: 83 derived, 79 run green, 4 NOT MEASURED
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstackre-derived from this branch (the dispatch's list includeddata-engine.mdx, which this PR does not touch): 83 commands. Each run with its exit code captured before any pipe; reconciliation--ran: "83 derived, 79 run, 4 NOT-MEASURED, 0 UNRUN".check:docs,check:api-surface,check:authorable-surface,check:spec-docblock-symbol-anchors,check:doc-authoring,check:issue-citations,check:nul-bytes,check:adr-anchors,check-adr-0087-registration --base origin/main,check-empty-changeset,check-changeset-no-major.check:dual-build-cjs-loadsandcheck:lean-entry-closure(need a whole-repo build),check:doc-formula-expressions(needs@objectstack/formulaand@objectstack/lintbuilt),check-plugin-teardown-shape --self-test(needs an unshallow clone).pnpm --filter @objectstack/spec buildunder the verify lock:VERDICT command-exit 0.node scripts/pm/overlap-check.mjs:VERDICT clean exit 0.Generated by Claude Code
🤖 Generated with Claude Code
https://claude.ai/code/session_01L9qibvVRcFWKrfWeG5jzPb