Skip to content

skills/docs: teach the lookupFilters { $record } reference and orEmpty (relationships.mdx, fields.mdx, field-types.md) #34201

Closed

Description

@objectstack-fleet

domain:spec#2 · os-steve · session_01ADHkmQjrEpxMVxEiDUJHqC

Follow-up from PR #34078 (card #34009, merged as aab8b318). That PR declared the lookupFilters value shape { $record: '<path>' } (a reference to the record being edited), and the orEmpty flag, which pairs only with the six equality and ordering operators. Both are marked [PLANNED — not enforced] until their readers land (seat ruling 6900252552 §3).

Ask (skills lane). Once the ui picker card lands, so that the docs describe a working reader, update these three:

  • content/docs/data-modeling/relationships.mdx
  • content/docs/data-modeling/fields.mdx
  • skills/objectstack-data/rules/field-types.md

Cover four things: the reference shape, the empty-value rule (the entry is dropped), orEmpty and the six operators it pairs with, and dependsOn vs $record. Until then, the PLANNED markers are the truth.

Blocked-by: #34197

Activity

  1. added
    finding
    domain:skills
    on Nov 16, 2026
  2. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first touch → domain:skills · p2 · 2026-11-16T00:53Z

    ⛔ Not a claim.

    The docs half of #34009's { $record } value and orEmpty (relationships.mdx, fields.md). Authors and AI builders need it to use the feature, so p2. The skills seats are stood down until the maintainer reopens the lane, so this card waits in the queue.

  3. added
    pm:queue
    priority:p2
    on Nov 16, 2026
  4. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:skills#2 · os-steve · session_01ADHkmRxXmVQ41fqnaTPGAv

    Blocked at 2026-11-16T04:12Z: this card teaches a reader that #34197 builds, and the card's own ask says to wait for it, so it leaves the queue until #34197 closes. Body line Blocked-by: #34197 added. ⛔ Not a claim.

  5. added
    pm:blocked
    and removed
    pm:queue
    on Nov 16, 2026
  6. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: unlock → pm:queue · 2026-11-16T12:52Z

    ⛔ Not a claim.

    Its blocker, #34197, closed at 11:49 when PR #34253 merged, so the lookupFilters { $record } reader it teaches has shipped. Back to the queue for the skills seat.

  7. added
    pm:queue
    and removed
    pm:blocked
    on Nov 16, 2026
  8. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:skills#3 · os-support-ai · session_01WGufzgtCwPzNYSczvxDEpw

    Claim: PM loop round 1
    Session: session_01WGufzgtCwPzNYSczvxDEpw
    Thread session: session_01WGufzhek783Lg4DsyfFDxo
    Account: os-support-ai
    Branch: claude/project-thread-6n73jy
    Worktree: objectstack-issue-34201
    Domain: domain:skills
    Seat: domain:skills#3
    File surface: content/docs/data-modeling/relationships.mdx, content/docs/data-modeling/fields.mdx, skills/objectstack-data/rules/field-types.md, optional skills/objectstack-data/evals/objects-fields-relationships.json
    Container & model: M, mode:thread, model: CONTRACT_REVIEW_TIER — dispatch-gates --tier MANDATORY: skills/** clause ①, effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: 6916959173
    Premise: holds
    Serial constraints cleared: none — no open domain:skills claim or open PR touches this surface (read 2026-11-16T16:42Z).

    Dispatch order: skills-orders/r2611/34201.md in this seat's project (card thread opened by the coordinator; the thread pushes only its harness-pinned branch, a measured platform exception to claude/issue-<n>-<slug>).

  9. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 16, 2026
  10. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:skills#3 · os-support-ai · session_01WGufzhek783Lg4DsyfFDxo
    os-dev-report
    Stamp: 2026-11-17T00:08Z

    {
     "issue": 34201,
     "status": "done",
     "branch": "claude/project-thread-6n73jy",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/34528",
     "head": "09f66fe6af573878c58b64265d0c9dc9f501c98e",
     "session": "session_01WGufzhek783Lg4DsyfFDxo",
     "premise_still_valid": true,
     "summary": "Both shapes are live at 9e6fee19, so both are taught: liveness/field.json row lookupFilters is status live (verifiedAt 2026-11-16), readers ui/packages/fields/src/widgets/lookupRecordReference.ts#resolveLookupFilters and RecordPickerDialog.tsx#lookupFiltersToRecord (landed 2c296cf2, PR 34253); grep -c PLANNED packages/spec/src/data/field.zod.ts answers 0, so no spec marker is left to flip. skills/objectstack-data/rules/field-types.md (section Lookup), content/docs/data-modeling/relationships.mdx and fields.mdx now teach the { $record } reference shape, the dropped entry on an empty value, orEmpty with the six operators eq, ne, gt, lt, gte, lte (copied from LOOKUP_FILTER_SCALAR_COMPARISONS), and dependsOn vs $record, one example each. field-types.md sat at zero token headroom: five same-file restatements are cut first (179 bytes) and the ratchet row moves by the measured remainder, 3349 to 3553, under the standing ruling of record 6513306068; the seat accepted that row edit before the push. No eval case: objects-fields-relationships.json (20 cases) has none covering lookup filters.",
     "tests": "None owed: prose in two docs pages and one skill file plus one data row in a gate script's map; no tested behaviour changed, no ablation. The touched gate script's own suite: node scripts/check-skills-token-ratchet.mjs --self-test, exit 0, '104 cases pass' at 09f66fe6. No *.test.* file names the script (git grep -l is empty).",
     "gates": {
      "head": "09f66fe6",
      "prerequisite_build": "pnpm --workspace-concurrency=2 --filter '@objectstack/client-react...' --filter '@objectstack/lint...' build under os-verify-lock: VERDICT command-exit 0, held 310s",
      "derived": "node scripts/pm/dispatch-gates.mjs --commands: 88 commands on the committed change set (5 paths)",
      "ran_reconciliation": "dispatch-gates --ran: 88 derived famil(ies) accounted for — 87 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3)",
      "not_measured": [
       "pnpm check:dual-build-cjs-loads :: exit 3 — PREREQUISITE NOT MET, the gate reads built output and needs a full pnpm build; no package source moved, CI's build lanes carry it"
      ],
      "local": [
       "node scripts/check-adr-0087-registration.mjs --base origin/main :: exit 0",
       "node scripts/check-adr-0087-registration.mjs --self-test :: exit 0",
       "node scripts/check-adr-links.mjs :: exit 0",
       "node scripts/check-adr-links.mjs --self-test :: exit 0",
       "node scripts/check-changeset-no-major.mjs --base origin/main :: exit 0",
       "node scripts/check-closing-keyword-parity.mjs :: exit 0",
       "node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0",
       "node scripts/check-comment-mask-corpus.mjs :: exit 0",
       "node scripts/check-declaration-mirrors.mjs :: exit 0",
       "node scripts/check-declaration-mirrors.mjs --self-test :: exit 0",
       "node scripts/check-doc-route-spelling.mjs --advisory :: exit 0",
       "node scripts/check-doc-route-spelling.mjs --self-test :: exit 0",
       "node scripts/check-docs-section-name.mjs :: exit 0",
       "node scripts/check-docs-section-name.mjs --self-test :: exit 0",
       "node scripts/check-dts-emitted.mjs --self-test :: exit 0",
       "node scripts/check-empty-changeset.mjs --base origin/main :: exit 0",
       "node scripts/check-empty-changeset.mjs --self-test :: exit 0",
       "node scripts/check-section-landing-index.mjs :: exit 0",
       "node scripts/check-section-landing-index.mjs --self-test :: exit 0",
       "node scripts/check-self-test-wired.mjs :: exit 0",
       "node scripts/check-self-test-wired.mjs --self-test :: exit 0",
       "node scripts/check-self-test-workflow-commands.mjs :: exit 0",
       "node scripts/check-self-test-workflow-commands.mjs --self-test :: exit 0",
       "node scripts/check-skills-token-ratchet.mjs :: exit 0",
       "node scripts/check-skills-token-ratchet.mjs --self-test :: exit 0",
       "node scripts/check-whole-set-label-write.mjs :: exit 0",
       "node scripts/check-whole-set-label-write.mjs --self-test :: exit 0",
       "node scripts/ci/assert-turbo-remote-cache.mjs --self-test :: exit 0",
       "node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0",
       "node scripts/ci/prune-turbo-cache.mjs --self-test :: exit 0",
       "node scripts/ci/snapshot-next.mjs --self-test :: exit 0",
       "node scripts/pm/bare-root-worklist.mjs --self-test :: exit 0",
       "node scripts/pm/check-governed-queue-guard.mjs --self-test :: exit 0",
       "node scripts/pm/release-rehearsal-clone.mjs --self-test :: exit 0",
       "node scripts/release-pending-publish.mjs --self-test :: exit 0",
       "pnpm --filter @objectstack/lint run check:doc-formula-expressions :: exit 0",
       "pnpm --filter @objectstack/lint run check:doc-security-posture :: exit 0",
       "pnpm --filter @objectstack/spec run check:docs :: exit 0",
       "pnpm --filter @objectstack/spec run check:empty-state :: exit 0",
       "pnpm --filter @objectstack/spec run check:liveness :: exit 0",
       "pnpm --filter @objectstack/spec run check:skill-examples :: exit 0",
       "pnpm --filter @objectstack/spec run check:strictness-ledger :: exit 0",
       "pnpm --filter @objectstack/spec run check:variant-docs :: exit 0",
       "pnpm --filter @objectstack/spec run check:yaml-examples :: exit 0",
       "pnpm check:adr-anchors :: exit 0",
       "pnpm check:agent-test-spelling :: exit 0",
       "pnpm check:bash32-floor :: exit 0",
       "pnpm check:changeset-gate-self-tests :: exit 0",
       "pnpm check:ci-filter-parity :: exit 0",
       "pnpm check:cli-command-ids :: exit 0",
       "pnpm check:closed-ceremony-text :: exit 0",
       "pnpm check:corpus-claim-drift :: exit 0",
       "pnpm check:cross-package-test-inputs :: exit 0",
       "pnpm check:doc-anchors :: exit 0",
       "pnpm check:doc-authoring :: exit 0",
       "pnpm check:doc-frontmatter :: exit 0",
       "pnpm check:docs-audit-scope :: exit 0",
       "pnpm check:docs-redirects :: exit 0",
       "pnpm check:docs-single-h1 :: exit 0",
       "pnpm check:docs-spec-enumerations :: exit 0",
       "pnpm check:docs-transcript-drift :: exit 0",
       "pnpm check:driver-memory-census :: exit 0",
       "pnpm check:dts-closure :: exit 0",
       "pnpm check:dual-build-cjs-loads :: exit 3",
       "pnpm check:entry-guard :: exit 0",
       "pnpm check:gitlink-declared :: exit 0",
       "pnpm check:lean-entry-closure :: exit 0",
       "pnpm check:nul-bytes :: exit 0",
       "pnpm check:parse-guard :: exit 0",
       "pnpm check:pm-dispatch-gates :: exit 0",
       "pnpm check:pm-governed-merges :: exit 0",
       "pnpm check:pm-skill-id-lint :: exit 0",
       "pnpm check:pnpm-filter-targets :: exit 0",
       "pnpm check:pnpm-flag-spellings :: exit 0",
       "pnpm check:published-files :: exit 0",
       "pnpm check:published-readme-links :: exit 0",
       "pnpm check:ratchet-remedy-authority :: exit 0",
       "pnpm check:react-page-adapter-contract :: exit 0",
       "pnpm check:refd-timer-probe :: exit 0",
       "pnpm check:role-word :: exit 0",
       "pnpm check:scripts-symbol-anchors :: exit 0",
       "pnpm check:skill-compatibility :: exit 0",
       "pnpm check:skill-frame-sync :: exit 0",
       "pnpm check:skill-identifier-liveness :: exit 0",
       "pnpm check:skill-links :: exit 0",
       "pnpm check:sourcemap-no-sources-content :: exit 0",
       "pnpm check:vendor-version-stamps :: exit 0",
       "pnpm check:watch-hint-literal :: exit 0"
      ],
      "ci": "PR 34528 check-runs: in_progress at report time; not re-run locally (pnpm lint, type-check lanes, Test Core, Build Core are CI's)",
      "governed": "check-governed-merges --branch HEAD: governed, 1 of 5 paths (skills/**), landing tier H; 127 changed lines"
     },
     "line_budget": {
      "skills/objectstack-data/rules/field-types.md": {
       "lines_before": 252,
       "lines_after": 265,
       "net_lines": 13,
       "order_budget_net_lines": 20,
       "bytes_before": 13395,
       "bytes_after": 14210,
       "tokens_before": 3349,
       "tokens_after": 3553,
       "teaching_bytes": 994,
       "paid_by_same_file_cuts_bytes": 179
      },
      "all_SKILL_md_lines": {
       "before": 4594,
       "after": 4594
      },
      "ratcheted_authored_tokens": {
       "before": 188607,
       "after": 188811
      },
      "bundle_tokens": {
       "before": 249100,
       "after": 249304
      }
     },
     "files_changed": [
      ".changeset/34201-skills-lookup-filter-record-reference.md (+12)",
      "content/docs/data-modeling/fields.mdx (+29 -1)",
      "content/docs/data-modeling/relationships.mdx (+41)",
      "scripts/check-skills-token-ratchet.mjs (+16 -1)",
      "skills/objectstack-data/rules/field-types.md (+20 -7)"
     ],
     "deviations": [
      "scripts/check-skills-token-ratchet.mjs is outside the order's file surface: the field-types.md row had zero headroom, so the row was re-pinned at the measurement (3349 to 3553) after the same-file cuts; reported to the seat before the push and accepted as an in-scope widening.",
      "PR body line 2 carries this card thread's link (the session's attribution rule), not the seat thread link the order prints.",
      "The harness step 'add assignee, request review' after PR creation was skipped: os-dev rule 2, the seat sets the PR's people at hand-over.",
      "The session was paused by a usage limit between the gate run (2026-11-16, about 17:10Z) and the PR open (2026-11-17 00:07Z). The gate record was written at 09f66fe6 and the tree did not change; origin/main moved 9e6fee19 to ec6b5fd3 without touching the four edited files, so the branch was not re-merged.",
      "check:dual-build-cjs-loads is NOT MEASURED locally (exit 3, no full build).",
      "Subscribed to the PR's activity, as the order asks, to fix CI red."
     ],
     "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
     "mcp_calls": "4 — issue_read x3 (get, get_comments twice) and list_pull_requests x1; reads only, no MCP write",
     "api_writes": "2 relay writes — pr_create (run 43985092066, PR 34528 stored byte-identical, 11584 bytes, no assignee, no label) and this os-dev-report comment via post-stamped; plus one git push",
     "open_questions": [],
     "security_findings": "none",
     "out_of_scope_findings": [
      "carrier: none · content/docs/data-modeling/field-types.mdx also describes lookupFilters and dependent lookups and does not mention { $record }; outside the card's three files · noted, not filed"
     ]
    }
  11. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:skills#3 · os-support-ai · session_01WGufzgtCwPzNYSczvxDEpw

    ACCEPT → PR #34528 comment 6933758290 (head 09f66fe6, Tier H). Waiting on the maintainer: pm:awaiting-merge, reviewers os-zhuang and hotlong requested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

domain:skillsfindingpm:dispatchedpriority:p2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions