Skip to content

fix(lint)!: refuse a list-view chart bound to a dataset over another object - #26842

Merged
objectstack-fleet[bot] merged 6 commits into
mainfrom
claude/project-thread-xqvx1a
Oct 27, 2026
Merged

objectstack-fleet[bot] merged 6 commits into
mainfrom
claude/project-thread-xqvx1a

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Yibo Wang · project thread

Fixes #26719

Clause-②: no (narrowing)
Metadata-protocol: narrowed
Skills-docs: updated here — content/docs/data-modeling/analytics.mdx gains the rule and its remedy; no skills/** file teaches list-view chart bindings, so no skill changes.

维护者速读

  • 改了什么:列表视图的图表如果绑定的数据集建在别的对象上(比如项目列表下画任务数据),发布时直接拒绝(422),os validate / os build 也报错;草稿保存不拦,与其他作者期规则一致。
  • 为什么改:这种图表画的是别的对象的数据,却挂在本对象列表下,用户会把任务统计当成项目统计看,而以前保存和发布都返回 200、没有任何提示。
  • 风险与回滚:只新增一条 lint 规则,不改任何 schema;仓内 examples 与 platform-objects 没有视图被它拒绝。回滚即 revert 本 PR。
  • 先看:packages/lint/src/validate-list-view-field-refs.ts(checkChartDataset 与新增文档段)、packages/lint/src/validate-list-view-field-refs.test.ts 末尾的 [#26719] 段、.changeset/26719-list-view-chart-foreign-dataset.md。
  • 两分钟验证:pnpm --filter @objectstack/lint exec vitest run src/validate-list-view-field-refs.test.ts -t 26719,应见 16 条全绿(拒绝、同对象对照、关系可达也拒绝、四种视图形态、运行时保存门)。
  • 需要你做的:无,席位落地(窄化需先过契约档复核)。

What changes

A list view's chart binds an ADR-0021 dataset, and the chart draws the rows of that dataset's base object: the list hands queryDataset the dataset name, dimensions and measures and nothing else, so neither the list's object nor its filter reaches the query. A chart under one object's list bound to a dataset over another object plotted the other object's records under the first object's name, and saved and published 200.

  • New rule list-view-chart-dataset-foreign-object (error) in validateListViewFieldRefs, the list-view lint family that already judges columns and the A list view bound to an object outside the writing package's dependency closure skips the field-reference check: unknown columns fields are accepted (200 active, draft → publish) where the same body is refused 422 list-view-field-unknown #24563 closure binding. One finding per list view, at chart.dataset; where names the view, the message names the dataset and both objects, the fix line names the remedy.
  • Why this family and not validateChartBindings. The claim and the issue name packages/spec, but the list-view lint family lives in packages/lint (the spec holds no business logic). validateListViewFieldRefs already resolves the list view's bound object on every shape the save door carries (a view item record, a flattened list overlay, a container's list / listViews, an object's built-in listViews, with a list view's own data.object winning) and already runs at the view and object doors. validateChartBindings runs at the flow and report doors only, and does not walk the view-item or flattened shapes, so landing the check there would not have reached the door the QA measured.
  • A dataset that reaches the view's object through a declared relation is refused, not accepted. include lists to-one relationships FROM the dataset's base object, so a dataset over crm_opportunity that includes account still counts and sums opportunities: the relation adds columns to group by, never a second row set. Nothing maps the list's object onto the dataset either (that mapping was refused as option B of ruling 5825582592). Equality of the two object names is the one test that says the chart plots the rows the list lists. Pinned both ways (an owner-including task dataset is refused under the person list and admitted under the task list).
  • Not judged here, each with an owner: a dataset that resolves to nothing (chart-dataset-unknown), a dataset with no object, a list view whose binding does not resolve (list-view-object-outside-closure / list-view-object-unknown / skip 1). The dataset's own package is not judged: when its object is the view's own, that object is already inside the written package's closure.
  • os explain list-view-chart-dataset-foreign-object carries the reasoning; LIST_VIEW_CHART_DATASET_FOREIGN_OBJECT is exported from @objectstack/lint; content/docs/data-modeling/analytics.mdx states the rule.
  • Changeset: @objectstack/lint minor, BREAKING accept-set narrowing, ADR-0087 not-required (no-migration-prescription); the body states the remedy and carries no FROM → TO rewrite, since that disposition refuses a prescription.

Why

Studio QA S5 (studio-qa-2026-10-27): authors got a chart of unrelated data under an object's list without any warning.

Tests

  • New [#26719] block at the end of packages/lint/src/validate-list-view-field-refs.test.ts, 16 cases: the refusal (rule, error, path views[0].list.chart.dataset, where names the view, message names the dataset and both objects, one-line fix ≤ 200 chars); the same-object control (silent); the relation case both ways; the four other list-view shapes (objects[].listViews, views[].listViews, a flattened overlay, a ViewItem record) each at its own path; a list view's own data.object winning over its container's; silence where another verdict owns the case (unknown dataset, dataset with no object, unresolved binding); an object with no readable field map still judged; validate and build both fail; at the runtime save door (runRuntimeAuthoringRules, type view, under a package closure) a view item bound to another package's object's dataset is refused and the same view on its own object's dataset is admitted; os explain carries the relationship answer.
  • pnpm --filter @objectstack/lint test on the merged tree (merge commit 3ccc765c; the later commits touch only the changeset and one docs page): Test Files 168/168, Tests 7446/7446. pnpm --filter @objectstack/lint typecheck exit 0 (same lock, VERDICT command-exit 0).
  • Ablation (source, scripts/ablation-replace.mjs, anchor hit 1 → 0, blob eeb9791a → d078fc8e): removing the checkChartDataset(...) call turns 11 of the block's cases red; the 5 controls stay green, as expected. Restored: anchor back to 1, git diff HEAD empty.

Acceptance notes

  • Landing site. The claim's file surface says packages/spec; the list-view lint family it names (cf. A list view bound to an object outside the writing package's dependency closure skips the field-reference check: unknown columns fields are accepted (200 active, draft → publish) where the same body is refused 422 list-view-field-unknown #24563) lives in packages/lint, and the change is there. packages/spec is untouched.
  • Draft saves are not gated, as for every author-time rule: the QA's ?mode=draft PUT still answers 200, and its promotion (POST /api/v1/meta/view/NAME/publish) now answers 422.
  • Security reading (asked by the card): the dataset read enforces the caller's permissions on the foreign object. Not a finding. Measured live on this branch's base (c8583f80, showcase boot, a non-builder member): a dataset over chartgap_item (member has no read) → member POST /api/v1/analytics/dataset/query 403 PERMISSION_DENIED ("reading chartgap_item is not permitted"), the same with an inline dataset body; a dataset over showcase_contact (member GET /data 403) → dataset query 403; a dataset over showcase_inquiry (member reads 0 of 3 rows by GET /data) → dataset row_count 0 for the member, 3 for admin. Object-level admission and the row scope both hold at the dataset door.
  • Out of scope, reported to the seat (class a, not fixed here): validateChartBindings runs at the flow and report doors only and does not walk the view-item or flattened list shapes, so at PUT /api/v1/meta/view a chart list view whose dataset resolves to nothing, or whose values names no measure of its dataset, publishes 200 (measured on c8583f80: no_such_dataset and ghost_measure, both as a view item and as a container's listViews). Crossing that member onto view is its own refusal widening with its own corpus measurement.
  • Corpus. examples/**, apps/**, packages/platform-objects, packages/plugins and packages/services declare two chart list views (showcase task.view.ts → showcase_task_metrics over showcase_task, project.view.ts → showcase_project_metrics over showcase_project); both are their own object's. Nothing to fix. packages/rest/src/meta-view-chart-binding.test.ts binds lead_metrics, which its harness does not register, so the rule is silent there.

Verification

  • Live, on this branch (lint rebuilt, showcase pnpm dev -- --fresh, package com.qa.chartgap with object chartgap_item): a chart list view bound to showcase_task_metrics (over showcase_task) → publish 422 INVALID_METADATA with list-view-chart-dataset-foreign-object at views[0].config.chart.dataset (view item) and views[0].listViews.lv_foreign2_publish.chart.dataset (container); draft 200; the draft's promotion 422. Bound to chartgap_item_metrics (over chartgap_item) → 200 on every path, promotion 200.
  • Before, on c8583f80: the same four writes bound to showcase_task_metrics all answered 200.
  • Derived gates at 9634b5a3: dispatch-gates --commands → 87 families, 87 run, all exit 0 (check-adr-0087-registration first exit 1 on a FROM/TO label in the changeset, fixed in 9634b5a3, re-run exit 0); dispatch-gates --ran → 87 derived, 87 run, 0 NOT-MEASURED, 0 UNRUN.
  • Full dogfood (owed for a narrowing): at 9634b5a3, pnpm --filter @objectstack/dogfood test under the verify lock (VERDICT command-exit 0, 16m43s): Test Files 314 passed, 3 skipped (317); Tests 2609 passed, 20 skipped (2629); no failure.

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic. (No spec change.)
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; pnpm lint is CI's run.
  • 4. One issue, one branch off an up-to-date main, one pull request.
  • 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset.
  • 6. packages/spec touched: not touched.
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English (the maintainer brief is Chinese by rule).

Generated by Claude Code

…bject

A list view's chart plots the rows of its dataset's base object; the list's
object and filter never reach the dataset query. A chart under one object's
list bound to a dataset over another object plotted that other object's
records and saved 200. validateListViewFieldRefs now reports it as
list-view-chart-dataset-foreign-object (error) at chart.dataset, on every
list-view shape the rule walks, so the publish door refuses it and os
validate / os build fail. A dataset that reaches the list's object only
through an include relationship is refused too: include adds columns, not
rows.

Claude-Session: https://claude.ai/code/session_01WGufzhALodSKE3ejCJ1EXk
Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Oct 27, 2026
@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

4 anchor(s) derived from 1 changed package(s); no hand-written page names any of them. ⚠️ 1 changed file(s) yielded no anchor (packages/lint/src/index.ts), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

What this run could not see
  • 1 changed file(s) yielded no anchor (packages/lint/src/index.ts) — pages documenting those are invisible to this run
  • 3 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 55 of 207 client-bound route-ledger rows — the other 152 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 152: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 55 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 97 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 4 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json 8eef9a8db402b6d46b15cc2375f8acddbb0d7b7e → packageMentionDocs.

Which tree this was computed on

This run read content/docs from becfa4ac2a42ebe7ad961235cd40ebe1ca8c318f — the merge of head 3adedc914cebee085f7774754c3182a39d38dc34 into base 8eef9a8db402b6d46b15cc2375f8acddbb0d7b7e, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin becfa4ac2a42ebe7ad961235cd40ebe1ca8c318f && git checkout becfa4ac2a42ebe7ad961235cd40ebe1ca8c318f
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 8eef9a8db402b6d46b15cc2375f8acddbb0d7b7e 3adedc914cebee085f7774754c3182a39d38dc34 && git checkout -B drift-repro 8eef9a8db402b6d46b15cc2375f8acddbb0d7b7e && git merge --no-ff 3adedc914cebee085f7774754c3182a39d38dc34

node scripts/docs-audit/affected-docs.mjs --json 8eef9a8db402b6d46b15cc2375f8acddbb0d7b7e

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 9634b5a3388d2fdd5229e0643a63da21543c7040
Local-runs: none
Scope: packages/lint/src/validate-list-view-field-refs.ts, packages/lint/src/validate-list-view-field-refs.test.ts, packages/lint/src/rule-explanations.ts, packages/lint/src/index.ts, .changeset/26719-list-view-chart-foreign-dataset.md, content/docs/data-modeling/analytics.mdx + packages/lint/src/reference-integrity-suite.ts, packages/lint/src/runtime-gate.ts, packages/metadata-protocol/src/runtime-authoring-gate.ts, packages/metadata-protocol/src/protocol-authoring-gate.ts, packages/spec/src/ui/dataset.zod.ts, packages/spec/src/ui/view.zod.ts, ui/packages/plugin-charts/src/ObjectChart.tsx, ui/packages/app-shell/src/views/objectViewListRenderer.tsx, examples/app-showcase/src/ui/views/task.view.ts, examples/app-showcase/src/ui/views/project.view.ts, examples/app-showcase/src/ui/datasets/chart-gallery.dataset.ts

Read-only review of card #26719 (body, triage 6446947560, claim 6448354345, os-dev-report 6450182672, claim amendment 6450303047), PR #26842 (body, file list, net diff of the six files against main at the merge base 0ea90c7), and the check-runs on the head. Nothing was built, run or re-run.

① Derived judgments

Accept-set changes the diff implies, each judged:

  1. One new refusal, list-view-chart-dataset-foreign-object (error), fired once per list view at chart.dataset when the view's resolved bound object differs from the object of the declared dataset its chart.dataset names. Right. checkChartDataset reads datasetObjects built from recordsOf(stack.datasets) and compares object names only; the message names the dataset and both objects, where names the view, the hint is one line with no tracker number (check:doc-authoring is green).
  2. Width against the card's defect. The card's symptom is "nothing checks that the dataset belongs to the view's object"; the triage ruling (6446947560) states the refusal as "a dataset whose object is not the view's object", and the claim and its amendment repeat that. The diff refuses exactly that set and nothing more: it runs only when the binding resolves (graph.has(object)), only when the dataset resolves and declares an object, and never on a draft (evaluateRuntimeAuthoringGate returns before any rule when state !== 'active'). Right, and no wider.
  3. The include-reachable case is refused on purpose. Judged against the cited code and accepted. DatasetSchema.object is the FROM ("Base object — the FROM"), and include lists to-one relationships from that base object whose joins are compiled by the engine (packages/spec/src/ui/dataset.zod.ts lines 584 to 595); a dataset over B that includes A still produces B's rows, grouped by A's columns. On the render side objectViewListRenderer.tsx hands ObjectChart only dataset, dimensions, values and chartType, and ObjectChart.tsx calls queryDataset(schema.dataset, { dimensions, measures, runtimeFilter? }) with no list object and no list filter, so nothing scopes a foreign dataset to the list's records. Equality of the two object names is the one test that says the chart plots what the list lists; the dev's reasoning holds, and the test pins it both ways (duly_task_by_owner refused under the person list, admitted under the task list).
  4. Not judged: an unknown dataset, a dataset without object, an unresolved binding, the dataset's own package. Right. Each has an owner (chart-dataset-unknown, the parse, list-view-object-outside-closure / list-view-object-unknown / skip 1), and a same-object dataset's object is inside the written package's closure by construction. The unknown-dataset gap at the view door is spec(lint): the view publish door accepts a chart list view whose dataset does not exist or whose values names no measure of its dataset #26847, not this PR.
  5. The rule fires at the view publish door and at object writes, with the snapshot those doors carry. Right. validateListViewFieldRefs is registered with runtimeTypes: ['flow', 'view', 'object'] (reference-integrity-suite.ts line 337); protocol-authoring-gate.ts gathers datasets through listCollection('dataset', 'datasets') for every gated write (line 335 to 345) and hands them to evaluateRuntimeAuthoringGate, which folds the batch's pending datasets in (runtime-authoring-gate.ts line 1156) and passes context.datasets to runRuntimeAuthoringRules, whose CONTEXT_STACK_KEYS carries datasets. Only objects is narrowed to the package closure; the rule compares names, so the narrowing cannot hide a foreign dataset. checkListView walks all five shapes (objects[].listViews, views[].list, views[].listViews, the flattened overlay, the ViewItem config), with a list view's own data.object winning over its container's, and the check is placed after graph.has(object) and before graph.get(object) so an external object with no field map is still judged. The runtime-door test runs runRuntimeAuthoringRules at type: 'view' under a package closure with the datasets in context and asserts both the refusal and its control.
  6. Shipped corpus. Zero findings. examples/** carries two chart list views: task.view.ts binds showcase_task_metrics (over showcase_task) under the task list, project.view.ts binds showcase_project_metrics (over showcase_project) under the project list. packages/platform-objects declares no chart list view (its charts are dashboard widgets). Lint · scoped · slot lookup & corpus and Dogfood Regression Gate are green on the head.
  7. Tests are non-vacuous. The [#26719] block asserts the rule id and the exact path on every shape, the where, the three names in the message, the one-line hint under 200 characters, the silence of the three not-judged cases, the external-object case, validate and build failing, the runtime door refusing and admitting, and the os explain entry. Five controls sit beside eleven refusals; the dev's ablation of the single checkChartDataset(...) call reports 11 red and 5 green, which matches the block's shape. The block counts 16 cases as the body says.

② Semver level

  • Changeset .changeset/26719-list-view-chart-foreign-dataset.md: '@objectstack/lint': minor, Clause-②: no (narrowing), Metadata-protocol: narrowed, a BREAKING banner, and one ADR-0087 marker not-required (no-migration-prescription). The PR body carries the same two declaration lines at line start. narrowed on a moved package takes at least minor: correct. The disposition is right: no schema key is added, removed, renamed or re-shaped, and only the author can say which of the three remedies applies, so no rewrite is prescribable; after 9634b5a the body carries the remedy and no FROM/TO block, which is what that disposition requires (Check Changeset green).
  • An error-level narrowing that no conversion carries ships in 18.x as its own BREAKING minor under the amended standing ruling 「甲」 (record 6303865025), as the sibling list-view narrowings did; the card's triage ruled a located refusal at save. Consistent.
  • @objectstack/spec is owed nothing. The diff touches no spec file, the rule lives in packages/lint where the list-view lint family lives, no spec surface registers lint rule ids (the sibling list-view-group-order-unorderable appears in view.zod.ts only inside a doc comment), and the chart.dataset description ("Dataset name to bind (ADR-0021)") makes no promise this refusal contradicts. The runtime door takes the rule through its dependency on @objectstack/lint, so one changeset is the right count.
  • CHANGELOG.md, content/docs/references/ and content/docs/releases/ are untouched. The hand-written docs line in content/docs/data-modeling/analytics.mdx states the rule and the remedy.

③ Boundary flags

  • Landing site. The claim named packages/spec; the amendment 6450303047 corrected it to packages/lint (validateListViewFieldRefs) and states this corrects the claim, not the dev's scope. The diff is entirely inside that corrected surface plus its tests, docs and one changeset. Answered.
  • Security question from the claim. The dev measured on the branch's base that the dataset read enforces the caller's object-level and row-level read on the foreign object (403 and 0-of-3 rows for a member); the amendment accepted it as no finding. Not re-measured here (read-only); recorded as the dev's measurement, accepted by the seat.
  • Out-of-scope finding (class a). The view door never runs validateChartBindings, so an unknown dataset or a ghost measure still publishes 200. Filed as spec(lint): the view publish door accepts a chart list view whose dataset does not exist or whose values names no measure of its dataset #26847 by the seat; the PR body names it as out of scope and the rule explanation defers chart-dataset-unknown to its owner. Escalated correctly, nothing left open.
  • open_questions. The report lists none.
  • Branch name. claude/project-thread-xqvx1a instead of an issue-slug branch; the claim records why (the platform assigns the thread's branch). Implemented-by below uses the measured branch.
  • Serial constraint with spec: the view save door silently strips unknown top-level keys from the view envelope (200, not stored) while object, page and dashboard bodies refuse them 422 unrecognized_keys #26711. This PR does not touch view.zod.ts; the branch merged main at 3ccc765. Clear.
  • Check-runs on 9634b5a, read at 2026-10-27T18:32Z. Green: Lint & Repo Gates, Lint · PM dispatch-gates, Lint · ESLint, Lint · docs & code guards, Lint · repo & tooling gates, Lint · CI release & engine gates, Lint · scoped (slot lookup & corpus, query-options erasure, tooling self-tests), Type Check · source gates, Type Check · consumer gates, Type Check · debt ledger, Check Changeset, Check PR Size, PR-body guards, Governed Surface Queue Guard, Spec property liveness, Build Core, Build Docs, Build UI Deps, Build & E2E UI, Test UI, Test Core 7/8, Dogfood Regression Gate, Check Documentation Links, Flag docs affected by code changes, Auto Label. Skipped by filter: Lint UI, Test UI shards, Temporal Conformance, Dogfood shards, Dogfood Verify CLI, 18.x upgrade harness, Packed-tarball smoke. Still in progress at that time: Type Check UI, Type Check · workspace, Test Core 1, 2, 3, 4, 5, 6 and 8 of 8. No check has failed. The landing waits for those to finish green; this record does not stand in for them.

PR body against the diff. One sentence is stale. Under "What changes", the line
"Changeset: @objectstack/lint minor, BREAKING accept-set narrowing, ADR-0087 not-required (no-migration-prescription), FROM → TO and the one-line fix in the body."
describes the changeset as it stood before 9634b5a; that commit removed the FROM → TO block because the ADR-0087 gate refuses a rewrite prescription under that disposition. Replacement:
"Changeset: @objectstack/lint minor, BREAKING accept-set narrowing, ADR-0087 not-required (no-migration-prescription); the body states the remedy and carries no FROM → TO rewrite, since that disposition refuses a prescription."
Every other sentence checked holds: the family choice over validateChartBindings (runtimeTypes: ['flow', 'report'] at reference-integrity-suite.ts line 441), the five shapes walked, the draft-not-gated behaviour, the corpus census, the 16-case count, and the "no skills/** file teaches list-view chart bindings" claim (skills/objectstack-ui/rules/list-views.md mentions neither chart nor dataset).

Should-fix (not blocking). The runtime door is pinned at type: 'view' only; a sibling case at type: 'object' with a foreign chart under objects[].listViews would pin the object door's snapshot too. The suite row and the pure-function shape test cover it today, so this is a follow-up, not a condition of landing.

Implemented-by: claude/project-thread-xqvx1a
Reviewed-by: session_01WGufzfhobWEgUUrjz4rrbh

VERDICT: PASS

… with an own-object control

Claude-Session: https://claude.ai/code/session_01WGufzhALodSKE3ejCJ1EXk
Co-Authored-By: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

席位核对 · ACCEPT · domain:spec seat 1 (#6017) · session session_01WGufzfhobWEgUUrjz4rrbh · 2026-10-27T19:10Z

Head 3adedc914cebee085f7774754c3182a39d38dc34. Card #26719 (triage 6446947560), claim 6448354345 with amendment 6450303047 (the file surface is packages/lint, not packages/spec), dev report 6450182672.

  • Contract review: owed at CONTRACT_REVIEW_TIER because the PR is a narrowing. The full review (6450478244) at 9634b5a3 was a PASS with no must-fix. It judged that:
    • the refusal is exactly as wide as the triage ruling: the dataset's object must equal the list view's object;
    • the include-reachable case is refused on purpose and correctly, because include adds to-one columns and never a second row set, and the console hands queryDataset no list object or filter;
    • the rule fires at both the view and object doors with the snapshot they carry;
    • the shipped corpus has zero findings.
  • Should-fixes, both closed:
    1. The stale changeset sentence in the PR body. The seat rewrote it.
    2. Nothing pinned the object door. 3adedc91 adds two runtime-door tests at type: 'object': a foreign-dataset chart under listViews is refused at listViews.by_status.chart.dataset, and an own-object control passes clean. The dev's ablation (the checkChartDataset call removed) reds the refusal and leaves the control green.
  • Security: the dataset read enforces object and row read on the foreign object, so there is no finding.
  • Out of scope: the view door never runs validateChartBindings, so an unknown dataset or measure on a chart list view publishes 200. Filed as spec(lint): the view publish door accepts a chart list view whose dataset does not exist or whose values names no measure of its dataset #26847.
  • Shape: Fixes #26719, 6 files, +323/−0. @objectstack/lint minor. Clause-②: no (narrowing) and Metadata-protocol: narrowed. ADR-0087 not-required (no-migration-prescription). check-governed-merges --pr 26842: NOT governed.
  • Gates: check-runs on this head are 40 success, 7 skipped and 0 red. mergeable_state is clean.
  • Landing: Tier S. pr_ready + automerge_enable in this act.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review October 27, 2026 19:11
@objectstack-fleet
objectstack-fleet Bot enabled auto-merge October 27, 2026 19:11
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Oct 27, 2026
Merged via the queue into main with commit 20457f6 Oct 27, 2026
48 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-xqvx1a branch October 27, 2026 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/m tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

spec: a chart list view on object A accepts a dataset bound to another object or another package without refusal

2 participants