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
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
Filing gate ③: seat-directed (seat domain:server#5, after review-b PASS 6897184709 on PR #33958, item 2). Follow-up of #33745.
Today
PR #33958 makes the AI tool query_dataset refuse a measure or dimension the dataset does not declare (400 INVALID_FIELD). The REST door POST /api/v1/analytics/dataset/query with a saved datasetName was left open on purpose: it still mints ad-hoc members (count, a raw field, an amount_sum suffix spelling, a dataset-qualified spelling) through mintCallerMeasures / inferMeasure in packages/services/service-analytics/src/analytics-service.ts. Dashboards and reports call that door, and it has no provenance block.
The spec already says the selection takes "Measure names from the dataset" (packages/spec/src/api/analytics.zod.ts, DatasetSelectionSchema), and ADR-0021 calls the dataset "a declarative, closed surface". So the REST door does not do what the spec sentence says, and ADR-0149 D2 has no line for the closed-member rule the tool now enforces.
Decision needed (maintainer)
A. Close the REST door too (recommended).POST /analytics/dataset/query with a saved dataset refuses undeclared members with the same 400 INVALID_FIELD, so every face reads the dataset the same way. Step 0 is a census: authored dashboards, reports and examples that select an undeclared member through this door. Each one found is fixed by declaring the member on its dataset, in the same PR. BREAKING (narrowing) declaration, with a contract-tier review. Governed-text half: one ADR-0149 D2 line naming the closed-member rule for both faces (skills lane, Tier H).
B. Keep the REST door open. Ad-hoc members stay allowed for dashboards and reports. The spec docblock is reworded to say the closed set binds the AI tools only, and ADR-0149 D2 gains a line saying so (governed text, skills lane). No runtime change.
Why A: one definition per dataset is what ADR-0021 and ADR-0149 set out. Today a dashboard tile can show a number labelled as a dataset metric that the dataset does not define, and the AI and the dashboard can then disagree. A's cost is the census and any declarations it finds. B leaves two rules for one schema.
Prior rulings read: ADR-0021 ("a declarative, closed surface … declared dimensions and measures"); ADR-0149 D2 (the tools answer with the door's existing codes, INVALID_FIELD listed) and D4 (provenance composed only by the tool); DatasetSelectionSchema docblock "Measure names from the dataset". No ⛔ line allows undeclared members. Tests: PR #33958's parity test lists the tool/REST difference as by-contract; no other test pins the REST door minting undeclared members, but measures: ['count'] calls exist on the cube door /analytics/query, which is out of this card (not a saved dataset).
Reader
domain:server area S2 (A3, service-analytics) for the code; domain:skills for the ADR-0149 D2 line. Size S–M (census-dependent).
This is breaking and narrowing, and it touches ADR-0149 D2's governed text: Clause-②: no (narrowing), BREAKING banner, CONTRACT_REVIEW_TIER review.
Before the narrowing: run a census of the authored and runtime-saved dashboards and reports that select undeclared members. Declare every member it finds on its dataset in the same change, so no shipped dashboard or report breaks.
A direct API caller that names an undeclared member gets the 400.
needs-user-decision is removed in this write. The card is claimable.
Claim: PM loop (area S2, #33751 §2; maintainer ruling 「REST 也拒绝(收紧)」 recorded 6902027136; seat 22:06Z "claiming #34005 now is fine")
Session: session_01QsR2jUg7BKfRBcTPyMxbLh
Account: zhuangjianguo
Branch: claude/area-A3-34005
Worktree: /home/claude/wt/area-A3-34005
Domain: domain:server
Seat: domain:server#5
File surface: packages/services/service-analytics/src/** (the saved-dataset REST door path in analytics-service.ts and the shared declared-member judgment from dataset-tools.ts) · packages/spec/src/api/analytics.zod.ts (DatasetSelectionSchema docblock only, if it must name the refusal) · authored dataset/dashboard/report metadata under examples/** and packages/**/src/** that the census finds selecting an undeclared member (declare the member) · content/docs/** pages that describe the dataset query door · new test files named for this card · .changeset/** (stop on breach; explain in the report). The ADR-0149 D2 line is governed text: skills lane, not this PR.
Container & model: M, mode:subagent, model: TIER_DEFAULT, effort: high
Clause-②: no (narrowing)
Metadata-protocol: none
Responsibility: objectstack (analytics REST door POST /analytics/dataset/query with a saved dataset): mints ad-hoc measures and dimensions the dataset does not declare · every dashboard, report and direct API caller that selects one
Premise: holds per card (the dev re-measures it red-first)
Serial constraints cleared: open PRs touching service-analytics are #34025 (plugin.ts) and #33652 (read-scope-sql.ts, strategies/*); analytics-service.ts and dataset-tools.ts are free. The dev runs git merge-tree before push.
Pre-claim lane: domain:server (service-analytics)
Pre-claim deps: PR #33958 merged (the tool-side refusal this card reuses)
Prior rulings read: maintainer 21:54Z (census of authored and runtime-saved dashboards and reports first, declare what it finds; direct API callers get 400); ADR-0021; ADR-0149 D2/D4; DatasetSelectionSchema docblock "Measure names from the dataset"
{
"issue": 34005,
"status": "done",
"branch": "claude/area-A3-34005",
"pr": "https://github.com/objectstack-ai/objectstack/pull/34198",
"session": "session_01QsR2jUg7BKfRBcTPyMxbLh",
"premise_still_valid": true,
"summary": "The dataset query door now refuses any selection member its dataset does not declare. This covers REST single and batch, and AnalyticsService.queryDataset in process. The answer is 400 INVALID_FIELD (member, param, cube) and the message names the caller-usable measures and dimensions plus the remedy. The judgment was lifted out of PR #33958's query_dataset into a shared dataset-declared-members.ts, which the service and the AI tool both call, so it is not forked. The order of answers is kept: 404 for a missing dataset, the read 403 (never a member list), and the field-gate 403 for a declared but forbidden member. The cube door is unchanged. Hypotheses: H1 HELD — before this change the dataset path minted count, raw fields, FIELD_sum, DATASET.-qualified spellings, and raw dimensions and time dimensions, and existing pins asserted those as served. H2: N=0 — a census with a 6-hit positive control resolved every selection: app-crm 6 sites, showcase UI 49, platform system dashboards 9, hotcrm@e7490b6 83, so nothing needed declaring. H3: the disposition is not-required (no-migration-prescription) rather than a migration prescription, because no key, value or stored row changes shape and stored items are already save-gated by the widget, chart and report lint rules. A registered entry would need a spec-registry edit outside the file surface, so this is raised in open_questions. H4: the cube door is out of scope and pinned unchanged; an inline dataset is judged against its own declaration (raised in open_questions).",
"tests": "Head b263c8df14 (merge of origin/main). One lock hold, VERDICT command-exit 0. INSTALL=0; BUILD (@objectstack/dogfood^...)=0; service-analytics suite exit 0, Test Files 216 passed (216), Tests 5247 passed, 335 skipped (5582); service-analytics tsc --noEmit (tsconfig includes the src tests)=0; runtime-facing 7 files exit 0, 45 passed, 18 skipped; metadata-protocol build-probes exit 0, 4 files, 21 tests. New pins: dataset-query-declared-members.test.ts (7 refusal rows asserting code, status, member, param, cube, message, usable list and that no reads happen; caller-usable naming; inline; controls for 403 read, 403 field, served, and cube door) and the dogfood test analytics-dataset-declared-members (6 refusal rows, the batch door, and controls for 200 and 404). Triaged 9 existing pin files: re-spelled, declared, or replaced per case; see the PR Tests section. Ablation used scripts/ablation-replace.mjs with a HEAD-restore trap. Leg 1 deleted the service call (anchor 1 to 0, blob 386a29b96ee3 to 156d9334211e): 17 failed, 6 passed. Leg 2 deleted the tool's assertDeclaredMembers call (blob cc4635da3126 to 0069eb75e100): 7 failed, 36 passed. Both were restored with blob == HEAD and git diff HEAD empty (DIFF_HEAD_EMPTY=yes). The service-analytics tests import src, so no dist rebuild was involved. The dogfood refusal pins were not ablated (they resolve built dist, so that would have needed a rebuild per leg): NOT MEASURED, reason given; leg 1 covers the same service call.",
"gates": "dispatch-gates --repo objectstack-ai/objectstack --ran (exit codes recorded): 101 derived, 98 run, 3 NOT-MEASURED, 0 UNRUN. 98 were exit 0, including check-adr-0087-registration --base origin/main (exemption notice), check-changeset-no-major, check-closing-keyword-parity, check-nul-bytes, check:doc-authoring, check:issue-citations, check:docs-transcript-drift and check:dts-closure. NOT MEASURED, each exit 3 PREREQUISITE NOT MET (unbuilt dist in the local tree): spec check:skill-examples (client-react dist absent), check:dual-build-cjs-loads, and check:type-check-debt (its closure build was queued behind the shared lock and stopped). CI carries these three. pnpm lint and test:repo are left to CI. Merge-tree: origin/main is clean; #34025 is merged (exit 0); #33652 exits 1 on objectql conflicts it already has against main, with no file overlap. PR #34198 check-runs at report time: Check Changeset, Lint (ESLint, PM dispatch-gates, docs & code guards, repo & tooling, CI release & engine, three scoped lanes), Type Check (workspace, source, consumer, debt ledger), Spec property liveness, PR-body guards, Governed Surface Queue Guard, Check Documentation Links, Check PR Size and Flag docs were in_progress. 18.x harness, Packed-tarball smoke, Queue verdict, Borrowed queue verdict and Schedule gate were skipped.",
"dogfood_battery": "b263c8df14 · os-verify-lock VERDICT command-exit 0 · Test Files 470 passed | 3 skipped (473) · Tests 3983 passed | 42 skipped (4025) · no failures",
"mcp_calls": "0",
"api_writes": "3 relay requests: pr_create via fleet-write (POST /repos/objectstack-ai/objectstack/pulls draft:true; POST /repos/objectstack-ai/objectstack/issues/34198/assignees [zhuangjianguo]) and this report comment (POST /repos/objectstack-ai/objectstack/issues/34005/comments via post-stamped.mjs). git push is not counted.",
"open_questions": [
{ "question": "Should an inline `dataset` body on POST /analytics/dataset/query be judged against its own measures and dimensions (as now), or be refused or limited to saved datasets?", "options": ["A keep: judged against its own declaration; UI inline callers (DashboardFilterBar, DatasetPreview) are self-consistent; zero work", "B refuse members not in a saved dataset of the same name; breaks draft preview; medium work"], "recommendation": "A, because an inline body IS its own declaration and the draft-preview and filter-bar callers depend on it" },
{ "question": "ADR-0087: keep the not-required (no-migration-prescription) disposition, or register an upgrade-guide entry for direct API callers?", "options": ["A keep not-required: no stored shape changes, stored items are save-gated, census 0; zero work", "B register an entry in the spec ADR-0087 registry (outside this card's file surface); small follow-up card"], "recommendation": "A, because there is nothing to migrate and the refusal message itself names the remedy and the usable members" },
{ "question": "Do runtime-saved dashboards and reports that predate the save-gate lint rules need a boot-time or publish-time report of undeclared selections?", "options": ["A none: build-probes already report widget_query_failed with this refusal's message at publish, for widget values", "B add a stored-item report or codemod covering reports and compare windows too; medium card"], "recommendation": "A for now, because the census found 0 and publish probes already surface the refusal for widgets. File B only if a tenant hit appears" },
{ "question": "A dashboard compare window lowers its date filter key into timeDimensions. Should a compareTo widget whose date filter key is a raw field (not a declared dimension) be refused, as now?", "options": ["A keep: refused like any undeclared time dimension; census found none (CRM uses the declared close_date)", "B have the widget map a field-named filter key to the declared dimension over that field before querying; small UI card"], "recommendation": "A, because the lint rule report-date-range-dimension-unknown already requires declared names at save" }
],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: PM seat (skills lane) · the ADR-0149 D2 line (governed text stating the closed-member rule for dataset selections) is owed by the skills lane, not this PR · noted, not filed",
"class: none (dead code, observation only) · answerDataset's preview-service member-minting branch is now unreachable for selection members · recorded in PR Acceptance notes · carrier: none"
],
"deviations": "Conflicts between the dispatch and os-dev.md, resolved for os-dev.md. (1) Repo-wide pnpm lint is left to CI rather than run locally. (2) The PR body has no HTML comments: the attribution and the signed line are plain text ('signed: domain:server#5 · …'), and the os-dev session-URL footer is used. The single adr-0087 marker lives in the changeset file. (3) The dispatch named scripts/dispatch-gates.mjs; the real path is scripts/pm/dispatch-gates.mjs. (4) The harness reminder asked for a model-named Co-Authored-By trailer; the commits use the model-free 'Co-Authored-By: Claude' form as the dispatch and AGENTS.md require. No environment value was printed."
}
Area S2 rules on the four open questions in report 6904199392. Each picks option A, the dev's own recommendation, because each stays inside the maintainer's ruling 6902027136. The L2 contract review may overturn any of them.
An inline dataset body is judged against its own declaration (A). The body is the declaration. Draft preview and the filter bar depend on it, and nothing outside it is minted.
ADR-0087: not-required (no-migration-prescription) (A). No key, value or stored row changes shape. The census found 0 authored hits. The refusal message names the remedy and the members the caller may use. Whether this disposition is right is the L2 reviewer's call.
No stored-item report or codemod for now (A). Build probes already report widget_query_failed with this refusal at publish. A card follows only if a tenant hits it.
A compare window whose date filter key is a raw field stays refused (A). The lint rule report-date-range-dimension-unknown already requires declared names at save, and the census found none.
Owed elsewhere: the ADR-0149 D2 line (the closed-member rule, governed text) belongs to the skills lane. The seat routes it.
This supersedes item 4 of seat ruling 6904231154, following contract-review FAIL 6909901648 M1 on PR #34198.
The refusal names one remedy only: declare a date dimension named after the dashboard's date-range field.
The second remedy (set compareTo.dimension to a declared dimension) is dropped from the message, the page, the changeset bullet and the ADR-0087 marker. As the reviewer measured, it does not make a dashboard comparison work. With the dashboard still filtering on the undeclared field, the comparison is either dropped or refused with the same 400.
Seat ruling · dotted compare-window date key · 2026-11-16T08:47Z
This answers review#1's must-fix M1 in record 6911685604 on PR #34198 at 75e3e06. It adds to re-ruling 6909938292, which did not consider a dotted key.
The refusal stays. A compare window keyed on a related record's field (a dotted key such as account.founded_at) is an undeclared member. The maintainer ruled 「REST 也拒绝(收紧)」 (6902027136), so the dataset REST door refuses it.
The message must be true for that class. A dotted key cannot be a dimension name. For such a key, the refusal does not tell the author to declare a dimension with that name. 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 and a declared dimension names it.
The dashboards page, the changeset and the ADR-0087 marker state this class as a break with no in-dataset remedy. The census behind the ruling found 0 authored hits.
Pin: a dotted compare-window key is refused with that message. The removed dotted-path-preview-parity control is replaced by this refusal pin, not just deleted.
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).
Release: session session_01QsR2jUg7BKfRBcTPyMxbLh (claim 6902377406, account zhuangjianguo, seat domain:server#5) · reason: the seat signed off and the maintainer ordered its unfinished work taken over · destination: repo:objectstack#1 area o1-B (this claim). Last pushed head: claude/area-A3-34005@d782833df35dca258250609d42f377ee71330439.
Provenance: who: Leehom (maintainer); words: 「接手 前任。#28677 (comment) 的未完成任务」; where: the maintainer project's repo:objectstack#1 seat thread. The predecessor signed off in brief 6912561028 on #28677.
Claim: PM loop · takeover · 2026-11-16T09:47Z
Session: session_01FEkQ5pHNFS9mn8hS13iGyL
Account: os-project-manager
Branch: claude/area-A3-34005
Worktree: objectstack-issue-34005
Domain: domain:server
Seat: repo:objectstack#1
File surface: claim 6902377406 surface, unchanged (packages/services/service-analytics/src/**, the moved rest and dogfood pins, the dataset-door docs pages, .changeset/**); stop on breach and explain in the report
Container & model: M, mode:subagent, model: TIER_DEFAULT, effort: high
Clause-②: no (narrowing)
Metadata-protocol: none
Responsibility: objectstack (analytics REST door POST /analytics/dataset/query): mints measures and dimensions the dataset does not declare | none (query_dataset refuses since PR #33958; the door does not) | every dashboard, report and direct API caller that selects one
Thread-read: 6911721875
Premise: holds
Serial constraints cleared: PR #34335 (same area, native-sql-strategy.ts; both edit content/docs/ui/dashboards.mdx): git merge-tree of the two heads is clean; the second to land merges main first
Resume-from: claude/area-A3-34005@d782833df35dca258250609d42f377ee71330439
Pre-claim lane: domain:server (service-analytics)
Pre-claim deps: PR #33958 merged
Prior rulings read: maintainer ruling 6902027136 (「REST 也拒绝(收紧)」); seat rulings 6904231154, re-ruling 6909938292 (question 4), ruling 6911721875 (dotted compare-window key, option A); ADR-0021; ADR-0149 D2/D4
{
"issue": 34005,
"status": "done",
"branch": "claude/area-A3-34005",
"pr": "https://github.com/objectstack-ai/objectstack/pull/34198",
"session": "session_01FEkQ5pHNFS9mn8hS13iGyL",
"premise_still_valid": true,
"final_head": "29a15c032bd4f35dc98d24b7d10030657187b181",
"summary": "Takeover of fix round 4 (hand-off 6912068262), completed under seat ruling 6911721875. Measured the open point on d782833d: when a dotted compare-window key was the only undeclared member, the refusal still said 'Use one of these, or declare the member on the dataset ... and query it by that name' before the ruling's sentence. That told the author to declare the one dotted member, which the ruling forbids. With an undeclared measure beside it, 'declare the member' covered both members alike. Fix (7a6aa7d0, dataset-declared-members.ts): undeclaredMembersRefusal builds that select-or-declare sentence only for members it can fix. It is left out when every undeclared member is an unnameable compare-window key, and reads 'For the measure \"amount_sum\", use one of these, ...' when only some are. It is byte-identical otherwise. Refused members, INVALID_FIELD/400, member/param/cube and the compareWindowRemedy text (nameable keys included) are unchanged. Pins: dotted-only and dotted-plus-measure through queryDataset, the scoped sentence on the existing nameable-plus-dotted case, and absence of the generic sentence on every face in dotted-path-preview-parity. The changeset bullet and dashboards.mdx now say no declaration is offered for that key. On the coordinator's order (sibling PR #34335 landed), origin/main d01f399e was merged in (29a15c03). It applied without conflicts, kept both dashboards.mdx edits, and left the PR diff at the same 23 files. The PR body has a new '## Fix round 4 (completion)' section, the stale 'Not done' / 'NOT MEASURED ... Stopped on a maintainer order' lines are replaced, and the trailer is re-signed.",
"tests": "On 7a6aa7d0: the two touched files gave VERDICT command-exit 0, Tests 49 passed (49). pnpm --filter @objectstack/service-analytics test exit 0, Test Files 216 passed (216), Tests 5271 passed, 335 skipped; typecheck exit 0. On the final head 29a15c03, one lock hold, VERDICT command-exit 0: the closure build plus the package exit 0, service-analytics test exit 0 with Test Files 217 passed (217), Tests 5295 passed, 335 skipped (5630), and typecheck exit 0. Ablation A (owed by the hand-off) ran through scripts/ablation-replace.mjs with canBeDimensionName returning true, so a dotted key got the old 'declare a date dimension named' remedy. Anchor 1->0, blob 17f2d8f24422->9a8f74f32e22. Result: 9 failed, 40 passed, every unnameable-key pin red (dotted pin on every face, 3 service pins, 5 grammar rows). Restored: blob == HEAD, git diff HEAD empty. Ablation B (this round) set const fixable = undeclared; (blob ->f712c77fe6e6). Result: 4 failed, 45 passed (dotted parity pin and the 3 select-or-declare pins), grammar table green as expected; restored blob == HEAD, git diff HEAD empty. No dist build was needed for either: both test files import the subject relatively from src.",
"gates": "Final head 29a15c03: dispatch-gates --repo objectstack-ai/objectstack --commands derived 101 families. All 101 were run, each with its exit code captured before any pipe, and all 101 exited 0 on the first run. --ran gave exit 0: '101 run, 0 NOT-MEASURED (a DERIVED zero)'. That covers check:test-source-alias exit 0 and check:type-check-debt with 0 raw tsc errors. On 7a6aa7d0, 4 families first exited 3 (PREREQUISITE NOT MET) and passed on rerun: check-plugin-teardown-shape --self-test after git fetch --unshallow, and check:type-check-debt, check:skill-examples and check:dual-build-cjs-loads after the workspace build. check-governed-merges.mjs --pr 34198 on the final file list: NOT governed, 0 of 23 paths, 1867 changed lines. CI on d782833d: 53 checks, 36 success, 17 skipped. CI on 7a6aa7d0: 53, 38 success, 15 skipped. CI on 29a15c03: 53 checks (latest run per check), 38 success, 15 skipped, 0 failed, 0 pending; Test Core, Lint & Repo Gates, TypeScript Type Check, Dogfood Regression Gate and Check Changeset are among the successes. @objectstack/rest tests were not re-run locally: no rest file changed this round, and CI Test Core carries them.",
"dogfood_battery": "29a15c03 · os-verify-lock VERDICT command-exit 0 (after its @objectstack/dogfood^... closure build, exit 0) · Test Files 475 passed, 3 skipped (478) · Tests 4018 passed, 42 skipped (4060) · no failures. It was also run on 7a6aa7d0: VERDICT command-exit 0, Test Files 474 passed, 3 skipped (477), Tests 4012 passed, 42 skipped (4054).",
"files_changed": "This round's own edits (7a6aa7d0): packages/services/service-analytics/src/dataset-declared-members.ts, src/__tests__/dataset-query-declared-members.test.ts, src/__tests__/dotted-path-preview-parity.test.ts, .changeset/34005-dataset-door-declared-members.md, content/docs/ui/dashboards.mdx. Then merge commit 29a15c03 (origin/main d01f399e, no conflicts). The PR diff against main is still 23 files, +1517/-350.",
"line_budget": "n/a, no skills/** file touched",
"deviations": [
"Beyond the dotted-only case the brief named, the mixed case (a dotted key beside another undeclared member) was also changed, by the same single rule: the select-or-declare sentence now names the members it is for. Reason: 'declare the member' covered the dotted key too. The nameable-only text is byte-identical.",
"For 7a6aa7d0, the 4 exit-3 records in the --ran list were overwritten with their rerun exit codes. The first readings are disclosed in gates and in the PR body. The final-head gate run needed no rerun.",
"git fetch --unshallow origin main was run in the shared .git, which the teardown self-test fixture needs.",
"The commit trailer is model-free (Co-Authored-By: Claude) per common.md, which overrides the harness reminder asking for a model name and a Claude-Session line."
],
"mcp_calls": "0",
"api_writes": "2 — fleet-write relay issue_patch on #34198 (PR body: 34718 bytes sent, 34718 stored, identical; run 43883136589 success); post-stamped comment on #34005 (this os-dev-report). git push x2 (7a6aa7d0, 29a15c03) is not a REST write.",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: #34350 (renderer mapping a dotted compare-window date key onto a declared dimension), #34308 (compare-widget save gate), #34328 (skills teaching), #34307 and #34309 (governed text), all filed earlier, nothing new filed or found this round"
],
"owed_reviews": "L1 delta from review-b (last PASS 6911215121 at 75e3e061) and L2 delta at CONTRACT_REVIEW_TIER from review#1 (FAIL 6911685604 at 75e3e061) are both owed on 29a15c03 before the seat ACCEPT / land."
}
Landed · 2026-11-16T15:06Z: PR #34198 merged through the merge queue as 898655a9, and Fixes #34005 closed this card. The dataset query door refuses measures and dimensions the dataset does not declare (400 INVALID_FIELD), on every face, and a dotted compare-window key gets no declare remedy (seat ruling 6911721875). pm:dispatched and lease:o1-B are removed in this stroke. Follow-ups stay on their carriers: #34350, #34308, #34328, #34307, #34309.
Activity
objectstack-fleet commentedon Nov 15, 2026
domain:server#5 · zhuangjianguo · session_01QsR2jUg7BKfRBcTPyMxbLh
Maintainer ruling, recorded by area S2.
The maintainer tapped the decision card at 2026-11-15T21:54Z. 「决定数据集 REST 查询是否也拒绝未声明的指标和维度」 → 「REST 也拒绝(收紧)」.
What it binds:
POST /analytics/dataset/queryrefuses a measure or dimension the dataset does not declare. It answers 400INVALID_FIELD, the same refusalquery_datasetgives since PR fix(service-analytics)!: query_dataset refuses measures and dimensions the dataset does not declare #33958.Clause-②: no (narrowing), BREAKING banner, CONTRACT_REVIEW_TIER review.needs-user-decisionis removed in this write. The card is claimable.objectstack-fleet commentedon Nov 15, 2026
domain:server#5 · zhuangjianguo · session_01QsR2jUg7BKfRBcTPyMxbLh
Claim: PM loop (area S2, #33751 §2; maintainer ruling 「REST 也拒绝(收紧)」 recorded 6902027136; seat 22:06Z "claiming #34005 now is fine")
Session:
session_01QsR2jUg7BKfRBcTPyMxbLhAccount:
zhuangjianguoBranch:
claude/area-A3-34005Worktree:
/home/claude/wt/area-A3-34005Domain:
domain:serverSeat:
domain:server#5File surface:
packages/services/service-analytics/src/** (the saved-dataset REST door path in analytics-service.ts and the shared declared-member judgment from dataset-tools.ts) · packages/spec/src/api/analytics.zod.ts (DatasetSelectionSchema docblock only, if it must name the refusal) · authored dataset/dashboard/report metadata under examples/** and packages/**/src/** that the census finds selecting an undeclared member (declare the member) · content/docs/** pages that describe the dataset query door · new test files named for this card · .changeset/**(stop on breach; explain in the report). The ADR-0149 D2 line is governed text: skills lane, not this PR.Container & model:
M,mode:subagent,model: TIER_DEFAULT,effort: highClause-②: no (narrowing)
Metadata-protocol: none
Responsibility: objectstack (analytics REST door
POST /analytics/dataset/querywith a saved dataset): mints ad-hoc measures and dimensions the dataset does not declare · every dashboard, report and direct API caller that selects onePremise: holds per card (the dev re-measures it red-first)
Serial constraints cleared: open PRs touching service-analytics are #34025 (plugin.ts) and #33652 (read-scope-sql.ts, strategies/*); analytics-service.ts and dataset-tools.ts are free. The dev runs git merge-tree before push.
Pre-claim lane: domain:server (service-analytics)
Pre-claim deps: PR #33958 merged (the tool-side refusal this card reuses)
Prior rulings read: maintainer 21:54Z (census of authored and runtime-saved dashboards and reports first, declare what it finds; direct API callers get 400); ADR-0021; ADR-0149 D2/D4;
DatasetSelectionSchemadocblock "Measure names from the dataset"objectstack-fleet commentedon Nov 16, 2026
domain:server#5 · zhuangjianguo · session_01QsR2jUg7BKfRBcTPyMxbLh
os-dev-report
{ "issue": 34005, "status": "done", "branch": "claude/area-A3-34005", "pr": "https://github.com/objectstack-ai/objectstack/pull/34198", "session": "session_01QsR2jUg7BKfRBcTPyMxbLh", "premise_still_valid": true, "summary": "The dataset query door now refuses any selection member its dataset does not declare. This covers REST single and batch, and AnalyticsService.queryDataset in process. The answer is 400 INVALID_FIELD (member, param, cube) and the message names the caller-usable measures and dimensions plus the remedy. The judgment was lifted out of PR #33958's query_dataset into a shared dataset-declared-members.ts, which the service and the AI tool both call, so it is not forked. The order of answers is kept: 404 for a missing dataset, the read 403 (never a member list), and the field-gate 403 for a declared but forbidden member. The cube door is unchanged. Hypotheses: H1 HELD — before this change the dataset path minted count, raw fields, FIELD_sum, DATASET.-qualified spellings, and raw dimensions and time dimensions, and existing pins asserted those as served. H2: N=0 — a census with a 6-hit positive control resolved every selection: app-crm 6 sites, showcase UI 49, platform system dashboards 9, hotcrm@e7490b6 83, so nothing needed declaring. H3: the disposition is not-required (no-migration-prescription) rather than a migration prescription, because no key, value or stored row changes shape and stored items are already save-gated by the widget, chart and report lint rules. A registered entry would need a spec-registry edit outside the file surface, so this is raised in open_questions. H4: the cube door is out of scope and pinned unchanged; an inline dataset is judged against its own declaration (raised in open_questions).", "tests": "Head b263c8df14 (merge of origin/main). One lock hold, VERDICT command-exit 0. INSTALL=0; BUILD (@objectstack/dogfood^...)=0; service-analytics suite exit 0, Test Files 216 passed (216), Tests 5247 passed, 335 skipped (5582); service-analytics tsc --noEmit (tsconfig includes the src tests)=0; runtime-facing 7 files exit 0, 45 passed, 18 skipped; metadata-protocol build-probes exit 0, 4 files, 21 tests. New pins: dataset-query-declared-members.test.ts (7 refusal rows asserting code, status, member, param, cube, message, usable list and that no reads happen; caller-usable naming; inline; controls for 403 read, 403 field, served, and cube door) and the dogfood test analytics-dataset-declared-members (6 refusal rows, the batch door, and controls for 200 and 404). Triaged 9 existing pin files: re-spelled, declared, or replaced per case; see the PR Tests section. Ablation used scripts/ablation-replace.mjs with a HEAD-restore trap. Leg 1 deleted the service call (anchor 1 to 0, blob 386a29b96ee3 to 156d9334211e): 17 failed, 6 passed. Leg 2 deleted the tool's assertDeclaredMembers call (blob cc4635da3126 to 0069eb75e100): 7 failed, 36 passed. Both were restored with blob == HEAD and git diff HEAD empty (DIFF_HEAD_EMPTY=yes). The service-analytics tests import src, so no dist rebuild was involved. The dogfood refusal pins were not ablated (they resolve built dist, so that would have needed a rebuild per leg): NOT MEASURED, reason given; leg 1 covers the same service call.", "gates": "dispatch-gates --repo objectstack-ai/objectstack --ran (exit codes recorded): 101 derived, 98 run, 3 NOT-MEASURED, 0 UNRUN. 98 were exit 0, including check-adr-0087-registration --base origin/main (exemption notice), check-changeset-no-major, check-closing-keyword-parity, check-nul-bytes, check:doc-authoring, check:issue-citations, check:docs-transcript-drift and check:dts-closure. NOT MEASURED, each exit 3 PREREQUISITE NOT MET (unbuilt dist in the local tree): spec check:skill-examples (client-react dist absent), check:dual-build-cjs-loads, and check:type-check-debt (its closure build was queued behind the shared lock and stopped). CI carries these three. pnpm lint and test:repo are left to CI. Merge-tree: origin/main is clean; #34025 is merged (exit 0); #33652 exits 1 on objectql conflicts it already has against main, with no file overlap. PR #34198 check-runs at report time: Check Changeset, Lint (ESLint, PM dispatch-gates, docs & code guards, repo & tooling, CI release & engine, three scoped lanes), Type Check (workspace, source, consumer, debt ledger), Spec property liveness, PR-body guards, Governed Surface Queue Guard, Check Documentation Links, Check PR Size and Flag docs were in_progress. 18.x harness, Packed-tarball smoke, Queue verdict, Borrowed queue verdict and Schedule gate were skipped.", "dogfood_battery": "b263c8df14 · os-verify-lock VERDICT command-exit 0 · Test Files 470 passed | 3 skipped (473) · Tests 3983 passed | 42 skipped (4025) · no failures", "mcp_calls": "0", "api_writes": "3 relay requests: pr_create via fleet-write (POST /repos/objectstack-ai/objectstack/pulls draft:true; POST /repos/objectstack-ai/objectstack/issues/34198/assignees [zhuangjianguo]) and this report comment (POST /repos/objectstack-ai/objectstack/issues/34005/comments via post-stamped.mjs). git push is not counted.", "open_questions": [ { "question": "Should an inline `dataset` body on POST /analytics/dataset/query be judged against its own measures and dimensions (as now), or be refused or limited to saved datasets?", "options": ["A keep: judged against its own declaration; UI inline callers (DashboardFilterBar, DatasetPreview) are self-consistent; zero work", "B refuse members not in a saved dataset of the same name; breaks draft preview; medium work"], "recommendation": "A, because an inline body IS its own declaration and the draft-preview and filter-bar callers depend on it" }, { "question": "ADR-0087: keep the not-required (no-migration-prescription) disposition, or register an upgrade-guide entry for direct API callers?", "options": ["A keep not-required: no stored shape changes, stored items are save-gated, census 0; zero work", "B register an entry in the spec ADR-0087 registry (outside this card's file surface); small follow-up card"], "recommendation": "A, because there is nothing to migrate and the refusal message itself names the remedy and the usable members" }, { "question": "Do runtime-saved dashboards and reports that predate the save-gate lint rules need a boot-time or publish-time report of undeclared selections?", "options": ["A none: build-probes already report widget_query_failed with this refusal's message at publish, for widget values", "B add a stored-item report or codemod covering reports and compare windows too; medium card"], "recommendation": "A for now, because the census found 0 and publish probes already surface the refusal for widgets. File B only if a tenant hit appears" }, { "question": "A dashboard compare window lowers its date filter key into timeDimensions. Should a compareTo widget whose date filter key is a raw field (not a declared dimension) be refused, as now?", "options": ["A keep: refused like any undeclared time dimension; census found none (CRM uses the declared close_date)", "B have the widget map a field-named filter key to the declared dimension over that field before querying; small UI card"], "recommendation": "A, because the lint rule report-date-range-dimension-unknown already requires declared names at save" } ], "security_findings": "none", "out_of_scope_findings": [ "carrier: PM seat (skills lane) · the ADR-0149 D2 line (governed text stating the closed-member rule for dataset selections) is owed by the skills lane, not this PR · noted, not filed", "class: none (dead code, observation only) · answerDataset's preview-service member-minting branch is now unreachable for selection members · recorded in PR Acceptance notes · carrier: none" ], "deviations": "Conflicts between the dispatch and os-dev.md, resolved for os-dev.md. (1) Repo-wide pnpm lint is left to CI rather than run locally. (2) The PR body has no HTML comments: the attribution and the signed line are plain text ('signed: domain:server#5 · …'), and the os-dev session-URL footer is used. The single adr-0087 marker lives in the changeset file. (3) The dispatch named scripts/dispatch-gates.mjs; the real path is scripts/pm/dispatch-gates.mjs. (4) The harness reminder asked for a model-named Co-Authored-By trailer; the commits use the model-free 'Co-Authored-By: Claude' form as the dispatch and AGENTS.md require. No environment value was printed." }objectstack-fleet commentedon Nov 16, 2026
domain:server#5 · zhuangjianguo · session_01QsR2jUg7BKfRBcTPyMxbLh
Area S2 rules on the four open questions in report 6904199392. Each picks option A, the dev's own recommendation, because each stays inside the maintainer's ruling 6902027136. The L2 contract review may overturn any of them.
datasetbody is judged against its own declaration (A). The body is the declaration. Draft preview and the filter bar depend on it, and nothing outside it is minted.not-required (no-migration-prescription)(A). No key, value or stored row changes shape. The census found 0 authored hits. The refusal message names the remedy and the members the caller may use. Whether this disposition is right is the L2 reviewer's call.widget_query_failedwith this refusal at publish. A card follows only if a tenant hits it.report-date-range-dimension-unknownalready requires declared names at save, and the census found none.Owed elsewhere: the ADR-0149 D2 line (the closed-member rule, governed text) belongs to the skills lane. The seat routes it.
fix(service-analytics)!: query_dataset refuses measures and dimension…
objectstack-fleet commentedon Nov 16, 2026
domain:server#5 · zhuangjianguo · session_01QsR2jRsWwTRkuRCyQwvpAG
Seat re-ruling · question 4 · 2026-11-16T07:11Z
This supersedes item 4 of seat ruling 6904231154, following contract-review FAIL 6909901648 M1 on PR #34198.
compareTo.dimensionto a declared dimension) is dropped from the message, the page, the changeset bullet and the ADR-0087 marker. As the reviewer measured, it does not make a dashboard comparison work. With the dashboard still filtering on the undeclared field, the comparison is either dropped or refused with the same 400.objectstack-fleet commentedon Nov 16, 2026
domain:server#5 · zhuangjianguo · session_01QsR2jRsWwTRkuRCyQwvpAG
Seat ruling · dotted compare-window date key · 2026-11-16T08:47Z
This answers review#1's must-fix M1 in record 6911685604 on PR #34198 at 75e3e06. It adds to re-ruling 6909938292, which did not consider a dotted key.
account.founded_at) is an undeclared member. The maintainer ruled 「REST 也拒绝(收紧)」 (6902027136), so the dataset REST door refuses it.dotted-path-preview-paritycontrol is replaced by this refusal pin, not just deleted.objectstack-fleet commentedon Nov 16, 2026
repo:objectstack#1 · os-project-manager · session_01FEkQ5pHNFS9mn8hS13iGyL
Release: session
session_01QsR2jUg7BKfRBcTPyMxbLh(claim 6902377406, accountzhuangjianguo, seat domain:server#5) · reason: the seat signed off and the maintainer ordered its unfinished work taken over · destination: repo:objectstack#1 area o1-B (this claim). Last pushed head:claude/area-A3-34005@d782833df35dca258250609d42f377ee71330439.Provenance: who: Leehom (maintainer); words: 「接手 前任。#28677 (comment) 的未完成任务」; where: the maintainer project's repo:objectstack#1 seat thread. The predecessor signed off in brief 6912561028 on #28677.
Claim: PM loop · takeover · 2026-11-16T09:47Z
Session:
session_01FEkQ5pHNFS9mn8hS13iGyLAccount:
os-project-managerBranch:
claude/area-A3-34005Worktree:
objectstack-issue-34005Domain:
domain:serverSeat:
repo:objectstack#1File surface: claim 6902377406 surface, unchanged (
packages/services/service-analytics/src/**, the moved rest and dogfood pins, the dataset-door docs pages,.changeset/**); stop on breach and explain in the reportContainer & model:
M,mode:subagent,model: TIER_DEFAULT,effort: highClause-②: no (narrowing)
Metadata-protocol: none
Responsibility:
objectstack (analytics REST door POST /analytics/dataset/query): mints measures and dimensions the dataset does not declare | none (query_dataset refuses since PR #33958; the door does not) | every dashboard, report and direct API caller that selects oneThread-read: 6911721875
Premise: holds
Serial constraints cleared:
PR #34335 (same area, native-sql-strategy.ts; both edit content/docs/ui/dashboards.mdx): git merge-tree of the two heads is clean; the second to land merges main firstResume-from:
claude/area-A3-34005@d782833df35dca258250609d42f377ee71330439Pre-claim lane: domain:server (service-analytics)
Pre-claim deps: PR #33958 merged
Prior rulings read: maintainer ruling 6902027136 (「REST 也拒绝(收紧)」); seat rulings 6904231154, re-ruling 6909938292 (question 4), ruling 6911721875 (dotted compare-window key, option A); ADR-0021; ADR-0149 D2/D4
objectstack-fleet commentedon Nov 16, 2026
repo:objectstack#1 · os-project-manager · session_01FEkQ5pHNFS9mn8hS13iGyL
os-dev-report
{ "issue": 34005, "status": "done", "branch": "claude/area-A3-34005", "pr": "https://github.com/objectstack-ai/objectstack/pull/34198", "session": "session_01FEkQ5pHNFS9mn8hS13iGyL", "premise_still_valid": true, "final_head": "29a15c032bd4f35dc98d24b7d10030657187b181", "summary": "Takeover of fix round 4 (hand-off 6912068262), completed under seat ruling 6911721875. Measured the open point on d782833d: when a dotted compare-window key was the only undeclared member, the refusal still said 'Use one of these, or declare the member on the dataset ... and query it by that name' before the ruling's sentence. That told the author to declare the one dotted member, which the ruling forbids. With an undeclared measure beside it, 'declare the member' covered both members alike. Fix (7a6aa7d0, dataset-declared-members.ts): undeclaredMembersRefusal builds that select-or-declare sentence only for members it can fix. It is left out when every undeclared member is an unnameable compare-window key, and reads 'For the measure \"amount_sum\", use one of these, ...' when only some are. It is byte-identical otherwise. Refused members, INVALID_FIELD/400, member/param/cube and the compareWindowRemedy text (nameable keys included) are unchanged. Pins: dotted-only and dotted-plus-measure through queryDataset, the scoped sentence on the existing nameable-plus-dotted case, and absence of the generic sentence on every face in dotted-path-preview-parity. The changeset bullet and dashboards.mdx now say no declaration is offered for that key. On the coordinator's order (sibling PR #34335 landed), origin/main d01f399e was merged in (29a15c03). It applied without conflicts, kept both dashboards.mdx edits, and left the PR diff at the same 23 files. The PR body has a new '## Fix round 4 (completion)' section, the stale 'Not done' / 'NOT MEASURED ... Stopped on a maintainer order' lines are replaced, and the trailer is re-signed.", "tests": "On 7a6aa7d0: the two touched files gave VERDICT command-exit 0, Tests 49 passed (49). pnpm --filter @objectstack/service-analytics test exit 0, Test Files 216 passed (216), Tests 5271 passed, 335 skipped; typecheck exit 0. On the final head 29a15c03, one lock hold, VERDICT command-exit 0: the closure build plus the package exit 0, service-analytics test exit 0 with Test Files 217 passed (217), Tests 5295 passed, 335 skipped (5630), and typecheck exit 0. Ablation A (owed by the hand-off) ran through scripts/ablation-replace.mjs with canBeDimensionName returning true, so a dotted key got the old 'declare a date dimension named' remedy. Anchor 1->0, blob 17f2d8f24422->9a8f74f32e22. Result: 9 failed, 40 passed, every unnameable-key pin red (dotted pin on every face, 3 service pins, 5 grammar rows). Restored: blob == HEAD, git diff HEAD empty. Ablation B (this round) set const fixable = undeclared; (blob ->f712c77fe6e6). Result: 4 failed, 45 passed (dotted parity pin and the 3 select-or-declare pins), grammar table green as expected; restored blob == HEAD, git diff HEAD empty. No dist build was needed for either: both test files import the subject relatively from src.", "gates": "Final head 29a15c03: dispatch-gates --repo objectstack-ai/objectstack --commands derived 101 families. All 101 were run, each with its exit code captured before any pipe, and all 101 exited 0 on the first run. --ran gave exit 0: '101 run, 0 NOT-MEASURED (a DERIVED zero)'. That covers check:test-source-alias exit 0 and check:type-check-debt with 0 raw tsc errors. On 7a6aa7d0, 4 families first exited 3 (PREREQUISITE NOT MET) and passed on rerun: check-plugin-teardown-shape --self-test after git fetch --unshallow, and check:type-check-debt, check:skill-examples and check:dual-build-cjs-loads after the workspace build. check-governed-merges.mjs --pr 34198 on the final file list: NOT governed, 0 of 23 paths, 1867 changed lines. CI on d782833d: 53 checks, 36 success, 17 skipped. CI on 7a6aa7d0: 53, 38 success, 15 skipped. CI on 29a15c03: 53 checks (latest run per check), 38 success, 15 skipped, 0 failed, 0 pending; Test Core, Lint & Repo Gates, TypeScript Type Check, Dogfood Regression Gate and Check Changeset are among the successes. @objectstack/rest tests were not re-run locally: no rest file changed this round, and CI Test Core carries them.", "dogfood_battery": "29a15c03 · os-verify-lock VERDICT command-exit 0 (after its @objectstack/dogfood^... closure build, exit 0) · Test Files 475 passed, 3 skipped (478) · Tests 4018 passed, 42 skipped (4060) · no failures. It was also run on 7a6aa7d0: VERDICT command-exit 0, Test Files 474 passed, 3 skipped (477), Tests 4012 passed, 42 skipped (4054).", "files_changed": "This round's own edits (7a6aa7d0): packages/services/service-analytics/src/dataset-declared-members.ts, src/__tests__/dataset-query-declared-members.test.ts, src/__tests__/dotted-path-preview-parity.test.ts, .changeset/34005-dataset-door-declared-members.md, content/docs/ui/dashboards.mdx. Then merge commit 29a15c03 (origin/main d01f399e, no conflicts). The PR diff against main is still 23 files, +1517/-350.", "line_budget": "n/a, no skills/** file touched", "deviations": [ "Beyond the dotted-only case the brief named, the mixed case (a dotted key beside another undeclared member) was also changed, by the same single rule: the select-or-declare sentence now names the members it is for. Reason: 'declare the member' covered the dotted key too. The nameable-only text is byte-identical.", "For 7a6aa7d0, the 4 exit-3 records in the --ran list were overwritten with their rerun exit codes. The first readings are disclosed in gates and in the PR body. The final-head gate run needed no rerun.", "git fetch --unshallow origin main was run in the shared .git, which the teardown self-test fixture needs.", "The commit trailer is model-free (Co-Authored-By: Claude) per common.md, which overrides the harness reminder asking for a model name and a Claude-Session line." ], "mcp_calls": "0", "api_writes": "2 — fleet-write relay issue_patch on #34198 (PR body: 34718 bytes sent, 34718 stored, identical; run 43883136589 success); post-stamped comment on #34005 (this os-dev-report). git push x2 (7a6aa7d0, 29a15c03) is not a REST write.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: #34350 (renderer mapping a dotted compare-window date key onto a declared dimension), #34308 (compare-widget save gate), #34328 (skills teaching), #34307 and #34309 (governed text), all filed earlier, nothing new filed or found this round" ], "owed_reviews": "L1 delta from review-b (last PASS 6911215121 at 75e3e061) and L2 delta at CONTRACT_REVIEW_TIER from review#1 (FAIL 6911685604 at 75e3e061) are both owed on 29a15c03 before the seat ACCEPT / land." }objectstack-fleet commentedon Nov 16, 2026
repo:objectstack#1 · os-project-manager · session_01FEkQ5pHNFS9mn8hS13iGyL
Landed · 2026-11-16T15:06Z: PR #34198 merged through the merge queue as
898655a9, andFixes #34005closed this card. The dataset query door refuses measures and dimensions the dataset does not declare (400INVALID_FIELD), on every face, and a dotted compare-window key gets no declare remedy (seat ruling 6911721875).pm:dispatchedandlease:o1-Bare removed in this stroke. Follow-ups stay on their carriers: #34350, #34308, #34328, #34307, #34309.fix(plugin-dashboard): a compare widget dated on a related record's f…