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
Spec docblock: FilterCondition form 4 (nested relation) says "one level" but the engine serves up to three hops #35494
From the narrowing contract review of PR #35423 (seat 5, at a5945f2a; ungraded finding, for a card). Parent: #34990.
What is false
packages/spec/src/data/filter.zod.ts describes the nested-relation form (form 4 on FilterCondition) as "one level" (around lines 2222, 2235 and 2372). The engine serves a nested relation condition up to three hops, and since #35423 the dashboard drill sends relationship paths of up to three hops as nested conditions ({ a: { b: { c: v } } }). An author or agent reading the spec's own docs is told the deeper form is not served.
Done when
The three docblock sentences state the engine's hop limit (and where it is enforced), and the generated reference docs that copy them are regenerated.
Grade
p3 · area:data · domain:spec. Docs only; no behaviour changes.
Triage: lands in domain:spec · pm:queue; rationale: area:data · Bug (the published FilterCondition docblock says nested relations go "one level"; the engine serves three hops) · builders, often (the docblock reaches the generated schema descriptions agents read) → p2: a wrong sentence in shipped text is a Bug at that reach, not p3.
Claim: PM loop round 1
Session: session_01L9qibvVRcFWKrfWeG5jzPb
Account: os-tesla
Branch: claude/issue-35494-nested-relation-hop-docblock
Worktree: objectstack-issue-35494
Domain: domain:spec
Seat: repo:objectstack#7
Area: d7-C
File surface: packages/spec/src/data/filter.zod.ts (docblock prose only) and the generated reference docs that copy those sentences (stop on breach; explain in the report)
Container & model: S (not mechanical: the hop limit is measured from the engine), mode:subagent, model: opus (default tier; dispatch-gates --tier at cf6bb70e: no path-derived mandate, clause-② suspect surface only), effort: medium
Clause-②: no
Metadata-protocol: none
Responsibility: packages/spec docblock in objectstack | none | authors and agents reading the generated schema descriptions, today
Thread-read: 7009555753
Premise: holds (origin/main cf6bb70: "one level" at filter.zod.ts:2235, :2373, :2464; the card's line numbers have drifted)
Serial constraints cleared: overlap-check probe over this file at origin/main cf6bb70: VERDICT clean, 0 open PR heads share it
Pre-claim lane: packages/spec/src/data/filter.zod.ts is packages/spec/** (domain:spec); stays in this lane under area-lease 留道 (docs-only, fix is clear), seat 7 L1/L2.
Pre-claim deps: no Blocked-by:; parent #34990 closed, #35423 merged.
Prior rulings read: spec,docblock,filtercondition,form,nested,relation,says,level,engine,serves,three,hops → 279 hits; ADR-0139 D3, ADR-0155 D1, ADR-0027 Decision §12, ADR-0061 D2, ADR-0071 Decision §1, ADR-0076 D10, ADR-0106 D6, ADR-0131 D3; thread: none; repo: objectstack-ai/objectstack. ADR-0071 Decision §1 is the hop limit the sentence must state (dev reads it and the enforcing code).
Owed review: diff touches packages/spec/src/** ⇒ one CONTRACT_REVIEW_TIER review; L1 self-review if ≤50 lines text-only.
{
"issue": 35494,
"status": "done",
"branch": "claude/issue-35494-nested-relation-hop-docblock",
"pr": "https://github.com/objectstack-ai/objectstack/pull/35574",
"session": "session_01L9qibvVRcFWKrfWeG5jzPb",
"premise_still_valid": true,
"summary": "Four nested-relation sentences in packages/spec/src/data/filter.zod.ts (form 4 docblock :2222, FilterCondition member :2235, QueryFilter example :2373, typed Filter member :2464 at b65488a8; the card named three) said the engine serves one level; each now states up to three relationships. The form 4 sentence names the enforcing place: RELATION_CONDITION_MAX_HOPS = 3 at packages/objectql/src/relation-filter-lowering.ts:104, checked in admitRelationCondition at :221 (refuse hop-limit), thrown as invalidFilterError = INVALID_FILTER / 400 (packages/objectql/src/filter-comparand-shape.ts:84); one engine seam, not per driver. ADR-0071 Decision as read: 'A depth cap (default **3 hops** -> 4 objects, Salesforce-report-type parity) bounds join count/perf'; the constant's docblock names it as that hop limit. The sentences are TS comments, not .describe() text, so no committed generated reference doc copies them: check:generated and check:docs green with nothing regenerated. Changed lines: 15 (9 insertions, 6 deletions), 1 file. Changeset: none, skip-changeset sent with pr_create (comment-only prose, the os-dev fast lane). Owed: one CONTRACT_REVIEW_TIER review (diff touches packages/spec/src/**); nobody requested.",
"tests": "No behaviour change, so no test and no ablation. Census grep at b65488a8: git grep -n -i -E \"one (level|hop)|single (level|hop)|nested relation|nested-relation\" -- packages/spec/src -> 4 nested-relation one-level sentences, all in filter.zod.ts; the other filter.zod.ts one-level hit (2616, now 2619) is key nesting; spec one-hop hits elsewhere are the formula one-hop contract. Copy grep for each old sentence repo-wide: only filter.zod.ts plus a released packages/spec/CHANGELOG.md entry (release-owned, untouched). Measured at HEAD 3253eff9.",
"gates": "Local at 3253eff9, exit captured after redirect: spec build + check:generated under os-verify-lock -> VERDICT command-exit 0, 'All 14 generated artifacts are up to date'; spec check:docs 0 ('249 generated files in sync'); spec check:api-surface 0 ('unchanged'); check:spec-docblock-symbol-anchors 0; check:adr-symbol-anchors 0; check:nul-bytes 0; check:doc-authoring 0; check:issue-citations 0; node scripts/check-issue-citations.mjs 0; node scripts/docs-audit/check-drift-comment.mjs 0. dispatch-gates --ran: 75 derived, 9 run, 0 NOT-MEASURED, 66 UNRUN (declared narrowing, left to CI). CI check-runs on PR 35574: in_progress at report time, not awaited. overlap-check before push: VERDICT clean exit 0.",
"dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "4 REST requests in 2 relay strokes — pr_create: POST /repos/objectstack-ai/objectstack/pulls, POST /repos/objectstack-ai/objectstack/issues/35574/assignees, POST /repos/objectstack-ai/objectstack/issues/35574/labels; post-stamped: POST /repos/objectstack-ai/objectstack/issues/35494/comments (git push is not counted as a REST write)",
"open_questions": [],
"security_findings": "withheld",
"out_of_scope_findings": [
"carrier: none · noted, not filed · the same form 4 docblock says the engine serves the form 'the same on every driver', while packages/spec/src/data/driver.zod.ts:454/:477 says a driver without readableIdsLeaf (MongoDB, OData) has the form refused up front on read verbs (relationSemiJoinDriverRefusal in packages/objectql/src/relation-filter-lowering.ts); no public-door reach measured, so not a filable class; dedupe words: FilterCondition form 4, same on every driver, readableIdsLeaf, nested relation mongo"
],
"files_changed": [
"packages/spec/src/data/filter.zod.ts"
],
"line_budget": "15 changed lines (9+/6-)",
"deviations": [
"Card named three sentences; four found and all four corrected (the typed Filter member at :2464 is the fourth, already named in the dispatch).",
"No generated reference doc carries these sentences, so the regenerate half of Done-when is satisfied by a green check:generated/check:docs with zero regeneration."
]
}
{
"issue": 35494,
"status": "done",
"branch": "claude/issue-35494-nested-relation-hop-docblock",
"pr": "https://github.com/objectstack-ai/objectstack/pull/35574",
"session": "session_01L9qibvVRcFWKrfWeG5jzPb",
"premise_still_valid": true,
"summary": "REWORK round 1 (L2 FAIL M1, record 7015837933) done at head ce513cad. Added .changeset/35494-nested-relation-hop-docblock.md ('@objectstack/spec': patch, Clause-②: no, Metadata-protocol: none, prose that the form 4 docblock states the three-relationship limit). Removed skip-changeset through label-write.mjs: the read-back shows size/s, needs:contract-review, protocol:data; assignee os-tesla. Folded nit N1 into the already-touched sentence: admitted keys now name id, created_at and updated_at (no-operator-object-door.ts PLATFORM_PROVISIONED_COLUMN_TYPES, checked at relation-filter-lowering.ts:216). The next clause was re-wrapped only. PR body NOT patched: os-dev rule 3 says a subagent writes the PR body only at pr_create and the seat writes any later body. A replacement body is ready at /tmp/claude-0/-home-user/cba0d951-fa67-548d-aa06-d20bae640045/scratchpad/issue-35494/body-r2.md. It keeps the two attribution lines first, adds the changeset line to Tests and the round-2 gate block, and corrects the throw-path note to refuse() at number-comparand-declared-type-door.ts:647.",
"tests": "No behaviour change; no test, no ablation. Census unchanged from round 1.",
"gates": "Local at ce513cad, exit codes captured after redirecting output: check-empty-changeset --self-test 0 and --base merge-base 0; check-adr-0087-registration --self-test 0 and --base merge-base 0 ('adds no declared-breaking changeset (1 non-breaking changeset(s) seen)'). The first adr-0087 attempts exited 3 and 1 with PREREQUISITE NOT MET (no node_modules in the recreated worktree); they were re-run after pnpm install and read as the 0s above. check-changeset-no-major --base 0; check:changeset-fixed 0; check:spec-docblock-symbol-anchors 0; check:nul-bytes 0; check:issue-citations 0. overlap-check before push: VERDICT clean exit 0. Check Changeset and the rest of CI on ce513cad: not awaited.",
"dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "Round 2: label-write relay stroke (DELETE label skip-changeset on issues/35574) plus this post-stamped comment (POST issues/35494/comments). Round 1: pr_create (3 requests) and 1 comment.",
"open_questions": [],
"security_findings": "withheld",
"out_of_scope_findings": [
"carrier: none · noted, not filed · the same form 4 docblock says the engine serves the form 'the same on every driver', while packages/spec/src/data/driver.zod.ts:454/:477 says a driver without readableIdsLeaf (MongoDB, OData) has the form refused up front on read verbs (relationSemiJoinDriverRefusal in packages/objectql/src/relation-filter-lowering.ts); no public-door reach measured, so not a filable class; dedupe words: FilterCondition form 4, same on every driver, readableIdsLeaf, nested relation mongo"
],
"files_changed": [
"packages/spec/src/data/filter.zod.ts",
".changeset/35494-nested-relation-hop-docblock.md"
],
"line_budget": "28 changed lines vs origin/main (21+/7-): filter.zod.ts 10+/7-, changeset 11+",
"deviations": [
"Card named three sentences; four found and all four corrected (the typed Filter member at :2464 is the fourth, already named in the dispatch).",
"No generated reference doc carries these sentences, so the regenerate half of Done-when is satisfied by a green check:generated/check:docs with zero regeneration.",
"Coordinator step (4), PATCH the PR body, was not done: os-dev rule 3 says a subagent writes the PR body only at pr_create and the seat writes any later body, and os-dev wins over the dispatch. Replacement body for the seat: /tmp/claude-0/-home-user/cba0d951-fa67-548d-aa06-d20bae640045/scratchpad/issue-35494/body-r2.md"
],
"head": "ce513cad517d8abb7e23f0b800e39980f4fff06a"
}
Progress (2026-11-20T04:04Z): PR #35574 round 2 at ce513cad is CI-green (58 success, 14 skipped) and answers the L2 must-fix (spec patch changeset); delta L1 (L1-a) and delta L2 are running. Landing follows a same-head PASS. The dev and reviewers were paused 17:08Z–04:00Z by a usage limit.
Activity
objectstack-fleet commentedon Nov 19, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in
domain:spec·pm:queue; rationale: area:data · Bug (the publishedFilterConditiondocblock says nested relations go "one level"; the engine serves three hops) · builders, often (the docblock reaches the generated schema descriptions agents read) → p2: a wrong sentence in shipped text is a Bug at that reach, not p3.objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#7 · os-tesla · session_01L9qibvVRcFWKrfWeG5jzPb
Claim: PM loop round 1
Session:
session_01L9qibvVRcFWKrfWeG5jzPbAccount:
os-teslaBranch:
claude/issue-35494-nested-relation-hop-docblockWorktree:
objectstack-issue-35494Domain:
domain:specSeat:
repo:objectstack#7Area:
d7-CFile surface:
packages/spec/src/data/filter.zod.ts(docblock prose only) and the generated reference docs that copy those sentences (stop on breach; explain in the report)Container & model:
S (not mechanical: the hop limit is measured from the engine),mode:subagent,model: opus (default tier; dispatch-gates --tier at cf6bb70e: no path-derived mandate, clause-② suspect surface only),effort: mediumClause-②: no
Metadata-protocol: none
Responsibility:
packages/spec docblock in objectstack | none | authors and agents reading the generated schema descriptions, todayThread-read: 7009555753
Premise: holds (origin/main cf6bb70: "one level" at filter.zod.ts:2235, :2373, :2464; the card's line numbers have drifted)
Serial constraints cleared: overlap-check probe over this file at origin/main cf6bb70: VERDICT clean, 0 open PR heads share it
Pre-claim lane:
packages/spec/src/data/filter.zod.tsispackages/spec/**(domain:spec); stays in this lane under area-lease 留道 (docs-only, fix is clear), seat 7 L1/L2.Pre-claim deps: no
Blocked-by:; parent #34990 closed, #35423 merged.Prior rulings read: spec,docblock,filtercondition,form,nested,relation,says,level,engine,serves,three,hops → 279 hits; ADR-0139 D3, ADR-0155 D1, ADR-0027 Decision §12, ADR-0061 D2, ADR-0071 Decision §1, ADR-0076 D10, ADR-0106 D6, ADR-0131 D3; thread: none; repo: objectstack-ai/objectstack. ADR-0071 Decision §1 is the hop limit the sentence must state (dev reads it and the enforcing code).
Owed review: diff touches
packages/spec/src/**⇒ one CONTRACT_REVIEW_TIER review; L1 self-review if ≤50 lines text-only.objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#7 · os-tesla · session_01L9qibvVRcFWKrfWeG5jzPb
os-dev-report
{ "issue": 35494, "status": "done", "branch": "claude/issue-35494-nested-relation-hop-docblock", "pr": "https://github.com/objectstack-ai/objectstack/pull/35574", "session": "session_01L9qibvVRcFWKrfWeG5jzPb", "premise_still_valid": true, "summary": "Four nested-relation sentences in packages/spec/src/data/filter.zod.ts (form 4 docblock :2222, FilterCondition member :2235, QueryFilter example :2373, typed Filter member :2464 at b65488a8; the card named three) said the engine serves one level; each now states up to three relationships. The form 4 sentence names the enforcing place: RELATION_CONDITION_MAX_HOPS = 3 at packages/objectql/src/relation-filter-lowering.ts:104, checked in admitRelationCondition at :221 (refuse hop-limit), thrown as invalidFilterError = INVALID_FILTER / 400 (packages/objectql/src/filter-comparand-shape.ts:84); one engine seam, not per driver. ADR-0071 Decision as read: 'A depth cap (default **3 hops** -> 4 objects, Salesforce-report-type parity) bounds join count/perf'; the constant's docblock names it as that hop limit. The sentences are TS comments, not .describe() text, so no committed generated reference doc copies them: check:generated and check:docs green with nothing regenerated. Changed lines: 15 (9 insertions, 6 deletions), 1 file. Changeset: none, skip-changeset sent with pr_create (comment-only prose, the os-dev fast lane). Owed: one CONTRACT_REVIEW_TIER review (diff touches packages/spec/src/**); nobody requested.", "tests": "No behaviour change, so no test and no ablation. Census grep at b65488a8: git grep -n -i -E \"one (level|hop)|single (level|hop)|nested relation|nested-relation\" -- packages/spec/src -> 4 nested-relation one-level sentences, all in filter.zod.ts; the other filter.zod.ts one-level hit (2616, now 2619) is key nesting; spec one-hop hits elsewhere are the formula one-hop contract. Copy grep for each old sentence repo-wide: only filter.zod.ts plus a released packages/spec/CHANGELOG.md entry (release-owned, untouched). Measured at HEAD 3253eff9.", "gates": "Local at 3253eff9, exit captured after redirect: spec build + check:generated under os-verify-lock -> VERDICT command-exit 0, 'All 14 generated artifacts are up to date'; spec check:docs 0 ('249 generated files in sync'); spec check:api-surface 0 ('unchanged'); check:spec-docblock-symbol-anchors 0; check:adr-symbol-anchors 0; check:nul-bytes 0; check:doc-authoring 0; check:issue-citations 0; node scripts/check-issue-citations.mjs 0; node scripts/docs-audit/check-drift-comment.mjs 0. dispatch-gates --ran: 75 derived, 9 run, 0 NOT-MEASURED, 66 UNRUN (declared narrowing, left to CI). CI check-runs on PR 35574: in_progress at report time, not awaited. overlap-check before push: VERDICT clean exit 0.", "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "4 REST requests in 2 relay strokes — pr_create: POST /repos/objectstack-ai/objectstack/pulls, POST /repos/objectstack-ai/objectstack/issues/35574/assignees, POST /repos/objectstack-ai/objectstack/issues/35574/labels; post-stamped: POST /repos/objectstack-ai/objectstack/issues/35494/comments (git push is not counted as a REST write)", "open_questions": [], "security_findings": "withheld", "out_of_scope_findings": [ "carrier: none · noted, not filed · the same form 4 docblock says the engine serves the form 'the same on every driver', while packages/spec/src/data/driver.zod.ts:454/:477 says a driver without readableIdsLeaf (MongoDB, OData) has the form refused up front on read verbs (relationSemiJoinDriverRefusal in packages/objectql/src/relation-filter-lowering.ts); no public-door reach measured, so not a filable class; dedupe words: FilterCondition form 4, same on every driver, readableIdsLeaf, nested relation mongo" ], "files_changed": [ "packages/spec/src/data/filter.zod.ts" ], "line_budget": "15 changed lines (9+/6-)", "deviations": [ "Card named three sentences; four found and all four corrected (the typed Filter member at :2464 is the fourth, already named in the dispatch).", "No generated reference doc carries these sentences, so the regenerate half of Done-when is satisfied by a green check:generated/check:docs with zero regeneration." ] }objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#7 · os-tesla · session_01L9qibvVRcFWKrfWeG5jzPb
os-dev-report
{ "issue": 35494, "status": "done", "branch": "claude/issue-35494-nested-relation-hop-docblock", "pr": "https://github.com/objectstack-ai/objectstack/pull/35574", "session": "session_01L9qibvVRcFWKrfWeG5jzPb", "premise_still_valid": true, "summary": "REWORK round 1 (L2 FAIL M1, record 7015837933) done at head ce513cad. Added .changeset/35494-nested-relation-hop-docblock.md ('@objectstack/spec': patch, Clause-②: no, Metadata-protocol: none, prose that the form 4 docblock states the three-relationship limit). Removed skip-changeset through label-write.mjs: the read-back shows size/s, needs:contract-review, protocol:data; assignee os-tesla. Folded nit N1 into the already-touched sentence: admitted keys now name id, created_at and updated_at (no-operator-object-door.ts PLATFORM_PROVISIONED_COLUMN_TYPES, checked at relation-filter-lowering.ts:216). The next clause was re-wrapped only. PR body NOT patched: os-dev rule 3 says a subagent writes the PR body only at pr_create and the seat writes any later body. A replacement body is ready at /tmp/claude-0/-home-user/cba0d951-fa67-548d-aa06-d20bae640045/scratchpad/issue-35494/body-r2.md. It keeps the two attribution lines first, adds the changeset line to Tests and the round-2 gate block, and corrects the throw-path note to refuse() at number-comparand-declared-type-door.ts:647.", "tests": "No behaviour change; no test, no ablation. Census unchanged from round 1.", "gates": "Local at ce513cad, exit codes captured after redirecting output: check-empty-changeset --self-test 0 and --base merge-base 0; check-adr-0087-registration --self-test 0 and --base merge-base 0 ('adds no declared-breaking changeset (1 non-breaking changeset(s) seen)'). The first adr-0087 attempts exited 3 and 1 with PREREQUISITE NOT MET (no node_modules in the recreated worktree); they were re-run after pnpm install and read as the 0s above. check-changeset-no-major --base 0; check:changeset-fixed 0; check:spec-docblock-symbol-anchors 0; check:nul-bytes 0; check:issue-citations 0. overlap-check before push: VERDICT clean exit 0. Check Changeset and the rest of CI on ce513cad: not awaited.", "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "Round 2: label-write relay stroke (DELETE label skip-changeset on issues/35574) plus this post-stamped comment (POST issues/35494/comments). Round 1: pr_create (3 requests) and 1 comment.", "open_questions": [], "security_findings": "withheld", "out_of_scope_findings": [ "carrier: none · noted, not filed · the same form 4 docblock says the engine serves the form 'the same on every driver', while packages/spec/src/data/driver.zod.ts:454/:477 says a driver without readableIdsLeaf (MongoDB, OData) has the form refused up front on read verbs (relationSemiJoinDriverRefusal in packages/objectql/src/relation-filter-lowering.ts); no public-door reach measured, so not a filable class; dedupe words: FilterCondition form 4, same on every driver, readableIdsLeaf, nested relation mongo" ], "files_changed": [ "packages/spec/src/data/filter.zod.ts", ".changeset/35494-nested-relation-hop-docblock.md" ], "line_budget": "28 changed lines vs origin/main (21+/7-): filter.zod.ts 10+/7-, changeset 11+", "deviations": [ "Card named three sentences; four found and all four corrected (the typed Filter member at :2464 is the fourth, already named in the dispatch).", "No generated reference doc carries these sentences, so the regenerate half of Done-when is satisfied by a green check:generated/check:docs with zero regeneration.", "Coordinator step (4), PATCH the PR body, was not done: os-dev rule 3 says a subagent writes the PR body only at pr_create and the seat writes any later body, and os-dev wins over the dispatch. Replacement body for the seat: /tmp/claude-0/-home-user/cba0d951-fa67-548d-aa06-d20bae640045/scratchpad/issue-35494/body-r2.md" ], "head": "ce513cad517d8abb7e23f0b800e39980f4fff06a" }objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#7 · os-tesla · session_01L9qibvVRcFWKrfWeG5jzPb
Progress (2026-11-20T04:04Z): PR #35574 round 2 at
ce513cadis CI-green (58 success, 14 skipped) and answers the L2 must-fix (specpatchchangeset); delta L1 (L1-a) and delta L2 are running. Landing follows a same-head PASS. The dev and reviewers were paused 17:08Z–04:00Z by a usage limit.