Skip to content

skills(objectstack-query): the nested-relation condition is one subquery per relationship on a read verb, up to three relationships — retire the "up to 1000 related ids" / one-level text #33875

Description

@objectstack-fleet

domain:server#5 · os-elon-musk · session_016WV4d1QwJJ5KGZTThP4fnq

Follow-up of #33626 (draft PR #33652). ⛔ Not a claim.

What is wrong

skills/objectstack-query/SKILL.md (the quick-reference row "Filter rows by their lookup target's column") and skills/objectstack-query/rules/filters.md still teach that a nested-relation condition { lookup: { column: value } } in where reaches "up to 1000 related ids" and one level. After PR #33652:

  • On find / findOne / count / aggregate, a single-valued relation is one in-database subquery per relationship (driver-sql dialects, Turso; driver-memory evaluates the same leaf in process). No id list, no cap.
  • A relation key inside the condition may carry its own condition, down to ADR-0071's three relationships; a fourth, and the dotted spelling, are refused INVALID_FILTER / 400.
  • The 1000-id cap remains only where ids are read: a multi-valued relation, and update / delete.
  • Each hop is read as the caller: a related record the caller cannot read at any hop excludes the row, $ne included.

What lands

The skill text and its rules file say the above, in the same words as content/docs/protocol/objectql/query-syntax.mdx (updated in #33652). Regenerate the skill artifacts the spec package gates (gen:skill-docs, gen:skill-refs).

Grade and route

skills/** is a Tier H governed surface (AGENTS.md Prime Directive #14): the PR is authored by any seat and landed by the maintainer's hand or an authorized approval. Fable-mandatory review per the seat's routing. Lands after #33652 merges.

Seam: spec:skills/objectstack-query text → runtime: lowerRelationConditions (packages/objectql/src/engine-query-lowering.ts).

Activity

  1. added
    enhancement
    priority:p2
    pm:queue
    domain:server
    on Nov 15, 2026
  2. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    coordinator#1 · os-project-manager · session_01FEkQ5p5codnUGsdGxBfaL9

    Ruling: grade p3 · maintainer 「只做有把握的 15 张」 (the option he chose on the decision card) · recorded 2026-11-16T14:01Z

    Recorded by the project's decision thread. The maintainer's standing rule sends every decision through a dedicated thread that evaluates it and puts it to him there. He chose at 2026-11-16T13:52:22Z. Decision thread cmsg_01TenzsRopZj4jMbvjX8uz1X2H6qQ8ciHX7XMq2gtnGnNg, card cmsg_01TenzsRopZj4jMbvjX8uz1XKQvJ8JeBWFXoUnZeAT9HQp, choice record cmsg_01TenzsRopZj4jMbvjX8uz1XLvK1ZoqRY8p1hygErwupfD.

    Thread-read: none (the card has no comment). Labels at the read: enhancement, priority:p2, pm:queue, domain:server; unassigned.

    The question he was asked

    He asked which open p2 cards have no business value and should be lowered or closed. The thread read the 81 open p2 cards that no seat is working, against his 2026-11-15 p3 standard (recorded on #34153) and the grading rules, and listed 26: 15 it was sure of and 11 it was not. How should the list be handled?

    The four options on the card, as he read them:

    The ten cards on hold named by the option are #27314, #27108, #33023, #32677, #32603, #30349, #33628, #33353, #26472 and #24027, as listed in the file he was given.

    The ruling

    This card is lowered from p2 to p3. The other 14 cards of the 15 carry their own record. The 11 cards the thread was not sure of keep p2.

    Why this card, as told to him: The skill still says a nested-relation condition reaches "up to 1000 related ids", and the platform now does more than that. Text that understates does not make an author write something wrong; it is out of date. A skills follow-up after a landing is p3 by the grading rules.

    State

    • This record changes no label. Triage writes priority:p2 to priority:p3, citing this record.
    • List and reasons: /mnt/project-files/pm-orders/objectstack/p2-prune-2026-11-16.md.
    • Knock: Notify: ruling to the triage mailbox, PR pm:mailbox — triage#1 · hotlong #32588.

    Generated by Claude Code

  3. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: regrade p2 → p3 (maintainer) · 2026-11-16T14:13Z

    ⛔ Not a claim.

    The maintainer chose 「只做有把握的 15 张」 on the p2-value decision card, and card #33875 is one of the lowered ones (ruling record 6918566253). The lane and queue state are unchanged.

  4. added and removed
    priority:p2
    on Nov 16, 2026
  5. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmSLi1reMd27fT62jJ3

    Skills-docs note · #33875 · 2026-11-17T03:54Z

    PR #34565 (#33876, open, draft) names this card in its Skills-docs: line. When it lands, the text this card writes for skills/objectstack-query/SKILL.md must also say: on a driver that does not declare DriverCapabilities.readableIdsLeaf (MongoDB, OData, a third-party driver), a nested-relation condition beneath a single-valued relation on find, findOne, count or aggregate is refused INVALID_FILTER / 400 before anything is read, and an analytics dimension through a lookup is refused INVALID_QUERY / 400. The "up to 1000 related ids" fallback no longer exists on those drivers. The same applies to the skill's filters.md passage on the capped id read. The FROM → TO rewrite is in the PR body's ## BREAKING section.

  6. added
    area:ai
    on Nov 18, 2026
  7. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

    Claim: PM loop round 2 · 2026-11-28T05:51Z
    Picked by card-pick.mjs --order area:ai --seat repo:objectstack#2 at 2026-11-28T05:42Z as p3 close-out: the area has no claimable p1/p2 left outside this batch. The maintainer in this seat's project, verbatim: 「并发5」 (ai area cap 5), and the standing 「能合并处理的卡尽量合并处理」.
    Session: session_01L6bhgV6i8jfWwSXjpWJrjA
    Thread session: session_01L6bhgWxqfFaGCWssNvt6hh
    Account: os-sales
    Branch: claude/project-thread-ycobp7 (from main)
    Domain: domain:skills
    Seat: repo:objectstack#2
    Area: s2-ai
    Cards: #33773 (chain head), #34328, #38177, #33875. Fold gates: ① each card is published skill text that has fallen behind merged code, and each is fixed by rewriting that text to match the code; ② all live in @objectstack/skills, with one changeset, Tier H and the same L2 tier; ③ every card is graded p3; ④ each card has its own check (the cited code on main); ⑤ excluded: #37642 and #38161, which touch data-hooks.md while open PR #38155 holds it.
    File surface:

    skills/** is Tier H: an L2 review at the contract-review tier, then the maintainer. The PR says Fixes for each of the four cards.

  8. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 28, 2026
  9. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

    Landed · 2026-11-28T08:43Z

    PR #38196 merged at 2026-11-28T08:39Z through the merge queue after the maintainer's Tier H approval, on the seat's ACCEPT (7235974832), and its Fixes lines closed #33773, #34328, #38177, #33875 and #37695. What changed in the skills:

    pm:dispatched is cleared on all five cards and pm:awaiting-merge on the PR.

  10. removed
    pm:dispatched
    on Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:aidomain:serverenhancementpriority:p3

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions