Skip to content

dashboard: a compare widget over a related-record date field has no date key a dataset can declare #34350

Description

@objectstack-fleet

domain:server#5 · zhuangjianguo · session_01QsR2jUg7BKfRBcTPyMxbLh

Filing gate ③: area-directed (area S2 of seat domain:server#5). Seat ruling 6911721875 on #34005 (option A) on M1 of L2 contract review 6911685604 on PR #34198.

Today

extractDateWindows (ui/packages/plugin-dashboard/src/DatasetWidget.tsx) lowers each closed date window in a compare widget's filter into the dataset query's timeDimensions, keyed by the filter key, which is an object field. The dashboards page documents a dotted relationship.field as a global filter's field and as a widget filter key, and the widget lint resolves it hop by hop. With PR #34198, a dataset query refuses a timeDimensions key that is not a declared dimension. DatasetDimensionSchema.name is a snake_case identifier with no dot, so no declaration can carry account.founded_at. A compare widget whose date key is a related record's field was served on main and is refused after #34198, and no change to the dataset alone can bring it back. PR #34198 states this as a break with no in-dataset remedy.

Ask

Give that dashboard a way back without reopening the closed member set. For example, the renderer maps a dotted (or any non-identifier) date key to the declared date dimension whose source field is that path, and sends the declared name. Alternatively, the protocol settles another addressing, chosen by the reader's lane. Pin the dotted compare window served through a declared dimension, and the refusal when no declared dimension covers the path. Coordinate with #34308, the save gate for a compare widget's date key: the gate should accept exactly what this mapping can serve.

Blocked-by: #34198.

Reader: domain:ui (dashboard renderer); domain:server if the ruling picks a server-side addressing. Size S–M.

Activity

  1. added
    enhancement
    pm:blocked
    domain:ui
    on Nov 16, 2026
  2. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: unlock → pm:queue · 2026-11-16T15:49Z

    ⛔ Not a claim.

    Card #34350 was parked on PR #34198, which merged at 14:49Z. Back to the queue for its lane, with the grade unchanged.

  3. added
    pm:queue
    and removed
    pm:blocked
    on Nov 16, 2026
  4. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-tesla · session_01L9qibxWPiQYXSf1jxGbN3W

    Claim: PM loop · 2026-11-21T12:49Z
    Session: session_01L9qibxWPiQYXSf1jxGbN3W
    Account: os-tesla
    Branch: claude/issue-34350-compare-window-dotted-date-key
    Worktree: objectstack-issue-34350
    Domain: domain:ui
    Seat: repo:objectstack#7
    Area: d7-E
    File surface:

    • ui/packages/plugin-dashboard/src/DatasetWidget.tsx: the compare-window lowering (extractDateWindows and its caller) maps a dotted (non-identifier) date key to the declared date dimension whose field is that path, and sends the declared name.
    • One pin file named for 34350 under ui/packages/plugin-dashboard/src/.
    • One patch changeset for @object-ui/plugin-dashboard.
    • Server, spec and executor files are OUT (see Prior rulings read). Stop on any breach and explain it in the report.
      Container & model: M, mode:subagent, model: default (dispatch-gates.mjs --tier: no path-derived mandate), effort: high
      Clause-②: no
      Metadata-protocol: none
      Responsibility: objectstack platform: the dashboard renderer keys a compare window by the filter's dotted field, which the dataset door refuses since PR #34198 | none for a dotted key (the ruling calls it a break with no in-dataset remedy) | dashboards whose compare widget dates a related record's field; the ruling's census found 0 authored hits
      Thread-read: 6921344358
      Premise: holds as read. At origin/main, extractDateWindows (ui/packages/plugin-dashboard/src/DatasetWidget.tsx:316) keys each window by the filter key; a dataset dimension declares a field PATH (packages/spec/src/ui/dataset.zod.ts, about l.265), so a declared dimension can name account.founded_at while its name stays an identifier.
      Serial constraints cleared: none. fix(service-analytics)!: the dataset query door refuses measures and dimensions the dataset does not declare #34198 (Blocked-by) is merged. dashboard: no save or publish gate judges a compare widget's date key against the dataset's declared dimensions #34308 (the compare-widget date-key save gate, open, unclaimed, domain:server) is a coordination point, not a predecessor: the dev states in the PR which keys the mapping serves so dashboard: no save or publish gate judges a compare widget's date key against the dataset's declared dimensions #34308 can accept exactly those. No open PR touches DatasetWidget.tsx (pre-claim probe). overlap-check runs again before each push.
      Pre-claim lane: seat 7, area d7-E (dashboards; routed to this area by the seat 2026-11-21T12:48Z). No governed or packages/spec/src/** path.
      Pre-claim deps: Blocked-by: #34198 merged.
      Prior rulings read: seat ruling 6911721875 (on analytics: the REST dataset door still answers measures and dimensions the dataset does not declare (query_dataset refuses them since #33745) — close it, or say the closed set binds the AI tools only #34005) binds the route: "The refusal stays." and "What stays open goes on a card: the renderer mapping a dotted date key to a declared dimension over that path." and "Rejected: resolving the key to a dimension by source field (executor addressing change, a new contract round), and exempting compare-window keys (reopens the ruled narrowing)." So the mapping lives in the renderer only; the dataset door's refusal of an undeclared or dotted key is unchanged (maintainer ruling 6902027136 「REST 也拒绝(收紧)」). 165 ADR hits on the title terms, none on this; surface grep on DatasetWidget.tsx: 9 hit lines, none on the compare window.
  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 21, 2026
  6. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-tesla · session_01L9qibxWPiQYXSf1jxGbN3W
    os-dev-report

    {
    "issue": 34350,
    "status": "done",
    "branch": "claude/issue-34350-compare-window-dotted-date-key",
    "pr": "#36103",
    "head_sha": "ffebb0ed80867172150ed4b33d4ccae801bb47bc",
    "session": "session_01L9qibxWPiQYXSf1jxGbN3W",
    "premise_still_valid": true,
    "summary": "Renderer-only mapping per seat ruling 6911721875: DatasetWidget, for a compareTo widget whose closed date window is keyed on a field that cannot be a dimension name (spec SnakeCaseIdentifierSchema, i.e. a dotted relationship.field), reads the dataset definition (GET /api/v1/meta/dataset/NAME via host apiFetch, callerPackage when served) and sends that window under the ONE declared dimension with type 'date' and field equal to the path; compareTo.dimension written as the path or the declared name goes out as the declared name. Zero covering dimensions, two or more, a non-date/untyped dimension, a name collision or a failed read leave the key as authored so the door's existing 400 INVALID_FIELD answers; identifier keys are never renamed and widgets without a path key read nothing (query byte-identical). No spec, door or executor file touched. The PR body states exactly which keys the mapping serves, for the #34308 save gate. The docs paragraph in content/docs/ui/dashboards.mdx that said a dimension over the path does not help became false and was corrected in the same PR.",
    "tests": "head ffebb0e. (1) vitest run new pin DatasetWidget.compareWindowPathKey-34350.test.tsx + DatasetWidget.compareTo.test.tsx + DashboardRenderer.compareToAllTime-25970.test.tsx: Test Files 3 passed (3), Tests 52 passed (52), lock VERDICT command-exit 0. (2) vitest run packages/plugin-dashboard/ (whole package): Test Files 207 passed (207), Tests 2023 passed | 6 skipped (2029), VERDICT command-exit 0. (3) pnpm --filter @object-ui/plugin-dashboard run type-check (tsc --noEmit && tsc -p tsconfig.test.json): exit 0; tsconfig.test.json --listFilesOnly includes the new pin (1 hit). (4) Ablation A via scripts/ablation-replace.mjs on DatasetWidget.tsx, anchor 'if (over.length === 1) ...' -> '=== -1' (anchor 1->0, blob c40bc3e3->986c24cc): 3 failed / 10 passed (unit map case, served window, compareTo.dimension rename); restored blob == HEAD, git diff HEAD empty. Ablation B '>= 1' (guess on ambiguity): 2 failed / 11 passed (both two-declarations cases); restored blob == HEAD. Pin imports the widget from source (relative ../DatasetWidget), no dist leg. Build closure: pnpm --workspace-concurrency=2 --filter '@object-ui/plugin-dashboard^...' build, VERDICT command-exit 0. test:repo not run locally (diff touches no repo-project test): declared to CI.",
    "gates": "Local derived subset: node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack derived 71 families on tree ffebb0e (4 paths vs merge base fddb9cb); all 71 run, exit captured before any pipe: 70 exit 0 first run; pnpm --filter @objectstack/spec run check:skill-examples exit 3 PREREQUISITE NOT MET (client-react dist absent) -> built '@objectstack/client-react...' (VERDICT command-exit 0) -> re-run exit 0. --ran reconciliation (with exit codes): '71 derived famil(ies) accounted for, 71 run, 0 NOT-MEASURED (a DERIVED zero)'. Extra: node scripts/check-nul-bytes.mjs exit 0; ui/scripts/check-new-cross-file-line-citations.mjs 'VERDICT new-cross-file-line-citations: 0 new citation(s)' exit 0; eslint on the two touched ui files 0 errors (warnings only, same classes as existing exports); overlap-check VERDICT clean exit 0 before each push. CI on PR head ffebb0e at report time: Check Changeset, Check Documentation Links, Check PR Size, Governed Surface Queue Guard, Lint (CI/release/engine, ESLint, PM dispatch-gates, docs & code guards, repo & tooling, scoped x3), PR-body guards, Spec property liveness, Type Check (consumer, debt ledger, source, workspace), filter: in_progress; opt-in/queue jobs skipped. Test UI / Type Check UI / Lint UI not yet listed: in_progress (not awaited, per os-dev).",
    "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm (Clause-②: no)",
    "line_budget": "n/a — no skills/** path touched; changed lines 433 (+416 / -17) vs human-merge threshold 3000: under",
    "files_changed": [
    "ui/packages/plugin-dashboard/src/DatasetWidget.tsx",
    "ui/packages/plugin-dashboard/src/tests/DatasetWidget.compareWindowPathKey-34350.test.tsx",
    ".changeset/34350-compare-window-path-key.md",
    "content/docs/ui/dashboards.mdx"
    ],
    "deviations": [
    "File surface: content/docs/ui/dashboards.mdx added beyond the claim; its paragraph became false with this change (os-dev: a published defect the change makes false must be fixed), declared in the PR body.",
    "Pin file placed at src/tests/ (claim: under src/), beside the existing DatasetWidget compareTo pins.",
    "PR body ends with the os-dev session-URL footer block instead of the harness attribution lines (os-dev precedence over the harness reminder); commits carry the dispatch's model-free trailer pair, not the harness model-named Co-Authored-By.",
    "check:skill-examples needed a client-react build before it could measure (exit 3 then 0); not a finding."
    ],
    "mcp_calls": "0",
    "api_writes": "2 — relay pr_create (POST /repos/objectstack-ai/objectstack/dispatches -> fleet-write run 44910884860 opened PR #36103 draft with assignee os-tesla; read-back identical 7198/7198 bytes); os-dev-report comment on #34350 via scripts/pm/post-stamped.mjs. Plus git push x3 (not REST).",
    "open_questions": [],
    "security_findings": "none",
    "out_of_scope_findings": [
    "class: a (misleading refusal copy) · reach: NOT MEASURED through a public door (the sentence is the dataset door 400 INVALID_FIELD text a dashboard tile shows; pinned verbatim by service-analytics tests) · producer: compareWindowRemedy in packages/services/service-analytics/src/dataset-declared-members.ts:146-150 · evidence: for a key no dimension can be named it says 'this comparison cannot run on a dataset query unless the dashboard's date field is a field of the dataset's own object that a declared date dimension names.' With PR #36103 the renderer also serves such a key when the dataset declares exactly one type 'date' dimension over that path, so the sentence omits the remedy that now works and is shown exactly when that remedy is missing (zero or 2+ covering dimensions). Pinned verbatim in service-analytics tests/dataset-query-declared-members.test.ts:318 and :355 and tests/dotted-path-preview-parity.test.ts:264; the docblock above it (~l.116-122, identifier keys) stays true. Server text is outside this claim, not edited. · dedupe words: compareWindowRemedy, dotted compare window remedy, declared date dimension over path, INVALID_FIELD compare refusal wording"
    ]
    }

  7. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-tesla · session_01L9qibxWPiQYXSf1jxGbN3W

    Claim amendment · 2026-11-21T13:55Z (claim 7062832119): the file surface adds content/docs/ui/dashboards.mdx, section "The Date Key of a Compare Widget". Its paragraph said a dimension over the path does not help; PR #36103 makes that false, so the published text is corrected in the same PR. The pin sits at ui/packages/plugin-dashboard/src/__tests__/DatasetWidget.compareWindowPathKey-34350.test.tsx, beside the existing DatasetWidget compareTo pins. No server, spec or executor file is touched; no other claim on either added path. See os-dev-report 7063647903.

  8. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-tesla · session_01L9qibxWPiQYXSf1jxGbN3W

    Claim amendment 2 · 2026-11-21T14:19Z (claim 7062832119), for L1 REWORK R1 (7063990940): the file surface adds packages/services/service-analytics/src/dataset-declared-members.ts, the unnameable-key sentence of compareWindowRemedy only (it names no in-dataset remedy, which PR #36103 makes false), the pins that quote that sentence in packages/services/service-analytics/src/__tests__/dataset-query-declared-members.test.ts and dotted-path-preview-parity.test.ts, and an @objectstack/service-analytics patch entry in the PR's changeset. Message text only: no schema, no door behaviour change, no other claim on these files. ADR-0087 markers and shipped changesets are history and stay untouched.

  9. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-tesla · session_01L9qibxWPiQYXSf1jxGbN3W
    os-dev-report

    {
    "issue": 34350,
    "status": "done",
    "round": "L1 REWORK R1 (L1 comment 7063990940; claim amendment 2, comment 7063998996)",
    "branch": "claude/issue-34350-compare-window-dotted-date-key",
    "pr": "#36103",
    "head_sha": "3f41ce42520f7dc6e4c4916f987005f08382b6df",
    "session": "session_01L9qibxWPiQYXSf1jxGbN3W",
    "premise_still_valid": true,
    "summary": "R1 fixed in one commit on top of ffebb0e, message text only, no change to door behaviour or schema. In compareWindowRemedy (packages/services/service-analytics/src/dataset-declared-members.ts), the unnameable-key sentence keeps 'cannot be a dimension name (a dimension name is a snake_case identifier, with no dot, ...), so no date dimension can be declared under it/them'. In place of 'this comparison cannot run on a dataset query unless ... a field of the dataset's own object ...' it now names the remedy. Singular: 'Declare one date dimension over it instead, with type 'date' and field set to that field, under any snake_case name (a related record's field needs its relationship in the dataset's include), and name that dimension in timeDimensions (and in compareTo.dimension, if set): a dashboard compare widget sends its window under that declared name itself.' The plural reads 'over each' / 'those dimensions' / 'each window under its declared name'. It holds for a REST caller and for both forms, and has no 'declare a date dimension named' wording, so the existing negative pins still hold. Changed lines (new numbering): the sentence (l.149-154); the compareWindowRemedy docblock paragraph on unnameable keys (l.122-126), which described the old sentence; and the undeclaredMembersRefusal docblock tail (l.199), which said 'a date field of the dataset's own object'. Unchanged, still true: the intro sentence (when this refusal fires the widget did send the window under the filtered field's name); the identifier-key sentence ('declare a date dimension named X on the dataset (over that field)'; identifier keys are never renamed by the renderer); the docblock line that compareTo.dimension pointing at a declared dimension is no remedy for an identifier key; and the select-or-declare exclusion and its docblock ('the widget sends the window under that very name, which no declaration can carry' is still true when the refusal fires). The coordinator's l.318 pin is not the identifier-key sentence: it is the unnameable sentence in its mixed-case 'that date field' variant, so it was updated. Pins updated (new numbering): dataset-query-declared-members.test.ts l.319-321 (mixed), l.358-360 (only member), l.492-504 (table: constants overIt/overEach replace ownObject in all five unnameable rows); dotted-path-preview-parity.test.ts l.243-249 and l.265-267. The '... cannot be a dimension name' assertions are kept. Two titles became false and were retitled: 'gets the own-object requirement' is now 'gets the declare-over-it remedy', and 'the refusal tells the author to declare nothing' is now 'names no member to declare under the key, only a date dimension over it'. The preview-parity CONTROL 'naming no declare-it remedy' is now 'naming a date dimension over it, never one named after it'. The changeset gains '@objectstack/service-analytics': patch and one paragraph on the new remedy. No ADR-0087 marker, shipped changeset or CHANGELOG line was touched (CHANGELOG.md still carries the old text as history).",
    "tests": "head 3f41ce4. (1) pnpm --filter @objectstack/service-analytics exec vitest run on dataset-query-declared-members.test.ts and dotted-path-preview-parity.test.ts: Test Files 2 passed (2), Tests 49 passed (49), VERDICT command-exit 0. (2) pnpm --filter @objectstack/service-analytics test (whole package): Test Files 221 passed (221), Tests 5651 passed | 345 skipped (5996). (3) pnpm --filter @objectstack/service-analytics typecheck (tsc --noEmit): exit 0; its file list includes both pin files (2 hits). (4) plugin-dashboard compare pins again (34350 pin, compareTo, compareToAllTime-25970): Test Files 3 passed, Tests 52 passed; (2)-(4) ran in one locked chain, VERDICT command-exit 0. (5) Ablation, committed first, via scripts/ablation-replace.mjs: the new sentence block was replaced by the old one (anchor 1->0, blob f49134bb->8f1b94d5). Result: 8 failed / 41 passed, namely the mixed and only-member refusal pins, the five table rows with an unnameable key, and the preview-parity CONTROL. Restored: blob after restore == HEAD f49134bb, git diff HEAD empty. The pins import the source module (relative ../dataset-declared-members.js), so no dist leg applies. Build closure: --filter '@objectstack/service-analytics^...' --filter '@object-ui/plugin-dashboard^...' build, VERDICT command-exit 0. The rendered sentence was also probed through tsx for the singular, plural and mixed forms.",
    "gates": "Derived subset for tree 3f41ce4 (7 paths vs merge base fddb9cb): 98 families. Every one was run, exit captured before any pipe. 95 exited 0 on the first run. Three exited 3 on a prerequisite. (a) node scripts/check-plugin-teardown-shape.mjs --self-test: its pinned fixture commit was absent from the shallow clone; after git fetch origin 621a487 it re-ran with exit 0 ('48 cases pass'). (b) pnpm --filter @objectstack/spec run check:skill-examples: client-react dist was absent; after building '@objectstack/client-react...' (VERDICT command-exit 0) it re-ran with exit 0 ('347 prose examples type-check'). (c) pnpm check:dual-build-cjs-loads: needs a full pnpm build (35+ packages with no dist), so it is NOT MEASURED locally. That is a declared narrowing: CI runs it in ci.yml's Build Core. --ran reconciliation with exit codes: '98 derived famil(ies) accounted for — 97 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3)'. overlap-check 'VERDICT clean exit 0' before the push. CI on 3f41ce4 was not awaited, per os-dev.",
    "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm (Clause-②: no)",
    "line_budget": "n/a — no skills/** path; PR now 7 files, 502 changed lines (+459 / -43), under 3000",
    "files_changed": [
    "packages/services/service-analytics/src/dataset-declared-members.ts",
    "packages/services/service-analytics/src/tests/dataset-query-declared-members.test.ts",
    "packages/services/service-analytics/src/tests/dotted-path-preview-parity.test.ts",
    ".changeset/34350-compare-window-path-key.md"
    ],
    "deviations": [
    "PR body NOT patched by me. os-dev.md rule 3 says a subagent writes the PR body only at pr_create and never PATCHes it; the seat writes later edits. That outranks the dispatch's 'update the PR body through the relay'. The full replacement body is ready, edited from the live stored body (identical to what pr_create sent), at /tmp/claude-0/-home-user/81cc5176-11fd-5887-8484-dfc7e6be1f2e/scratchpad/issue-34350/pr-body-r1.md. Changes: the maintainer quick-read line 3 now says the refusal names the remedy; What changes adds the service-analytics bullet and drops 'renderer only'; Acceptance notes replace the 'reported to the seat' bullet; Read-first item 3 is now the service sentence; and an 'R1 readings (head 3f41ce4)' details block is added.",
    "Beyond the sentence, two docblock passages in the same file that described the old sentence were corrected, because each became false: the compareWindowRemedy unnameable paragraph and the undeclaredMembersRefusal docblock tail. Same file, no other file.",
    "check:dual-build-cjs-loads NOT MEASURED locally (needs a full repo build); declared narrowing, CI Build Core runs it."
    ],
    "mcp_calls": "0",
    "api_writes": "1 this round — the os-dev-report delta comment on #34350 via scripts/pm/post-stamped.mjs (relay). Plus 1 git push. Round 1: 2 (pr_create, report comment).",
    "open_questions": [
    {
    "question": "Who writes the PR body edit for R1?",
    "options": [
    "A: the seat sends issue_patch with the prepared body file (os-dev rule: a subagent never PATCHes a PR body)",
    "B: the seat re-dispatches me with an explicit exemption to PATCH via the relay"
    ],
    "recommendation": "A, because the body is ready byte for byte and os-dev reserves PR-body edits to the seat."
    }
    ],
    "security_findings": "none",
    "out_of_scope_findings": []
    }

  10. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-tesla · session_01L9qibxWPiQYXSf1jxGbN3W

    Close-out · 2026-11-21T15:50Z: delivered by PR #36103, merged as 7f4970a273 (L1-b REWORK R1 7063990940, delta ACCEPT 7064781686). A dashboard compare widget whose closed date window is keyed on a field that cannot be a dimension name now sends that window under the one declared type: 'date' dimension whose field is that path; zero, two or more, a collision or a failed read keep the key as authored, so the dataset door's 400 INVALID_FIELD still answers, and that refusal now names the declare-over-the-path remedy (@objectstack/service-analytics). Renderer-only per seat ruling 6911721875; no spec, door behaviour or executor change. Nothing remains on this card; pm:dispatched removed.

  11. removed
    pm:dispatched
    on Nov 21, 2026
  12. added a commit that references this issue on Nov 22, 2026
    7f4970a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:datadomain:uienhancementpriority:p3

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions