Skip to content

fix(lint)!: publish-time checks for views, dashboards and the app shell that save and do not work - #38107

Merged
os-zhuang merged 11 commits into
mainfrom
claude/issue-35143-views-checks
Nov 28, 2026
Merged

os-zhuang merged 11 commits into
mainfrom
claude/issue-35143-views-checks

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Part of #35143
Clause-②: yes (narrowing)
Metadata-protocol: narrowed
Skills-docs: follow-up owed — skills/objectstack-ui/rules/list-views.md, skills/objectstack-ui/SKILL.md (#38153)

维护者速读

  • 作者在命令行校验或在设计器保存应用时,会多看到六条提示:看板按非选项字段分组、空白仪表盘、列表筛选用了公式字段、应用没有导航、对象没有入口、打开的对象没有设计过列表;运行中的用户无感。
  • 属于「发布时拦下保存成功却用不了的元数据」这一组检查的第二批,替作者在发布前发现页面打不开或显示空白的问题。
  • 只有列表筛选用公式字段一条会拒绝保存(这样的视图本来一打开就报错);其余五条都只是提醒,撤回本合并即可恢复原状。
  • 无

What changes

The "Views, dashboards, app shell" lines of #35143, each re-verified on origin/main (27ee984) first: a probe of all six shapes produced no finding on os validate / build / lint nor at the runtime view / dashboard / app doors. Two lines extend an existing rule; the app shell is one new module.

Line Rule id Where Severity Doors
V1a board grouped by a field with no lanes list-view-kanban-group-field-uncategorical extends validateListViewFieldRefs warning CLI + runtime (view, object)
V1b dashboard with no widgets dashboard-without-widgets extends validateWidgetBindings warning CLI + runtime (dashboard)
V2 list filter on a formula field list-view-filter-field-virtual extends validateListViewFieldRefs (own filter and userFilters.tabs filters) error CLI + runtime (view, object)
V3 app with no navigation entry app-navigation-empty new validateAppNavigationPresent warning CLI + runtime (app)
V3 object no app opens object-unreachable-from-navigation new validateObjectShellReach warning CLI only (needs the full snapshot)
V3 navigated object with no list view object-without-view new validateObjectShellReach warning CLI only

Severity reasoning (engine read, consistent across the publish door and the CLI):

  • V2 is an error everywhere: objectql's assertFilterIsMaterializable refuses a filter on a virtual field (isVirtualSearchField) with 400 INVALID_FIELD, so the saved view opens on that error. This is the narrowing.
  • V1a is a warning: the kanban renderer falls back to lanes from loaded records, so a text-grouped board still draws, only with lanes nobody designed; reference and boolean fields are categorical (reference lanes are supported), multi-value fields are flagged because they stringify into combined lanes.
  • V1b is a warning at every door (seat ruling M1 option B): the shape breaks no request (the dashboard opens on its header), and the platform's own create steps write it and fill it afterwards: Studio, the spec's dashboard create seed, and os generate dashboard. Both doors see the same dashboard, so the severity is the same.
  • V3 is a warning: each shape is a legitimate step of building an app; nothing breaks a request. app-navigation-empty counts navigation contributed into the app (navigationContributions); a contribution from a package the stack cannot see is why it is not an error. object-unreachable-from-navigation says only that no navigation entry opens the object's list. Not judged: a stack with no app and no contributions; an object with a master_detail field or named in another object's relatedLists; an object a page names when a type: 'page' entry opens that page; an object with enable.apiEnabled: false. object-without-view reads ObjectSchema.listViews and bound views[] items, and is judged only where an entry opens a list (no recordId).

Also: six os explain entries, an ADR-0087 semantic migration notice (19.publish-refuses-views-and-dashboards-that-save-and-do-not-work), the docs rule-family table rows, and the "author-time rules (N)" counts (main 88 → 90).

Why

Each of these saves cleanly and then shows the user less than was built: a page that opens on an error, a blank dashboard, an app that opens on the "no access" empty state, an object nobody can reach, or an "All records" list nobody designed.

Tests

Readings at head 2399eab8 unless marked; the commits after d95f7a4e touch only three packages/cli/test fixtures.

Lint package
  • pnpm --filter @objectstack/lint test (at 1d79fae, lint source unchanged since): Test Files 246 passed (246), Tests 9921 passed. typecheck OK.
  • Suites: validate-app-shell-reach.test.ts (new), validate-list-view-field-refs.test.ts, validate-list-view-kanban-lanes.test.ts, validate-widget-bindings.test.ts, validate-security-posture.runtime-surface.test.ts. Every rule pinned lit and dark, through the registry, on each command, and at the runtime door it rides.
  • Ablation (each restored, verified): kanban check removed → 7 failed; filter check removed → 7 failed; master-detail exemption removed → 1 failed (first round); relatedLists/page exemption removed → 1 failed; list-entry (recordId) gate removed → 1 failed (this round).
CLI scaffold pins, showcase, dogfood
  • generate-scaffold-gates.e2e.test.ts + generate-scaffolds-reach-stack.e2e.test.ts (OS_TEST_TIERS=nightly, at 17f62e7; the two files unchanged since): Test Files 2 passed, Tests 77 passed. Before the test rework they measured 2 failed / 74 passed, which is how the pins below were found.
  • pnpm --filter @objectstack/cli exec vitest run --project unit: 445/446 files passed, the one red file generate-scaffold-validates.test.ts (3 tests) fixed and re-run at d95f7a4: 26/26 passed.
  • examples/app-showcase: whole suite 49 files, 546 tests passed; author-time-advisories.test.ts 2/2.
  • Dogfood battery at d95f7a4 (the later commit is three CLI test fixtures, off the dogfood path): VERDICT command-exit 0, Test Files 490 passed + 3 skipped (493), Tests 4144 passed + 68 skipped (4212).
  • CLI integration fixtures CI found red on d95f7a4 (Test Core (5/10)): lint-per-package-authoring-parity, package-union-readers, stack-conversion-record-door now open their objects from navigation, each on a declared list (the parity fixture's orders package contributes its entry into core's app). Re-run locally at 2399eab: 3 files, 34 tests passed.
  • First round, unchanged code paths: metadata-protocol 372 files + 9 skipped; objectql 643/643; runtime 659 files, all VERDICT command-exit 0.

Acceptance notes

  • Seat rulings applied: Clause-②: yes (narrowing) (six rule-id exports enlarge the . entry); dashboard-without-widgets is a warning at both doors, and validateWidgetBindings no longer takes an options argument, so its signature is unchanged from main.
  • Scaffold pins (M1/M2), settled per pin, none loosened to a filter by rule:
    • os g object (and every leg that generates an object) now meets object-unreachable-from-navigation. Making the scaffold silent would need os g to edit the author's app, which os generate: generated metadata uses a different authoring style from the scaffold and docs, and four generators trap newcomers #32153 rules out (os g never edits an app). The finding is true and the author's to answer, as nav-object-ungranted already is in the same file, so each leg pins that it fires only on objects the leg generated, then answers it as the starter app's own header tells the author to (the entry the hint names, then os g view for an object that reports object-without-view) before the three gates run, which stay at zero findings.
    • os g dashboard writes widgets: [] under a comment naming the widget shape; a widget needs a dataset and measures only the author can choose. dashboard-without-widgets is carried in a SCAFFOLD_ADVISORIES ledger with that reason, pinned to fire at every gate in the dashboard leg and in no other leg. Same ledger in the in-process pin.
    • os g app opens the object it binds, which has no list view; the in-process pin answers it with os g view and pins that app is the only scaffold that needs it. generate.ts is unchanged, so no @objectstack/cli changeset.
  • Showcase (M2): 16 new advisories, each listed with its reason in author-time-advisories.test.ts: 8 object-without-view (objects on the console's derived list; designing those lists would change what browser checklist items observe) and 8 object-unreachable-from-navigation (objects kept off navigation on purpose: OWD siblings, share-link, public-form inbox, semantic-roles fixtures, federated externals). showcase_private_note is linked by URL from the Capability Map page, which the rule does not read.
  • S3: an object another object names in relatedLists, or that a page opened by a type: 'page' entry names (an object / objectName value), is not judged; the message claims only that no navigation entry opens the list, and the hint no longer prescribes a master_detail field.
  • S2: object-without-view reads ObjectSchema.listViews, names it in the hint, explanation and changeset; the dead obj.list read is gone. N1: an entry with recordId owes no list view. N2: the one-element holder indirection is gone; viewBinds still duplicates the list-view walk in validate-list-view-field-refs.ts (left, noted). N3: board messages for rating / formula grouping left generic (noted).
  • Corpus: app-crm and app-multi-package exit 0 with object-without-view for objects with no list view; app-todo clean. hotcrm at 99a4279, a static reading (not a run): every object file is named by some objectName, has a master_detail field, or is in a relatedLists, so no unreachable finding is expected; kanbans group by select or lookup; no empty dashboards.
  • Not judged: userFilters.fields for formula fields; boolean grouping counts as categorical.
  • Merge: main merged twice; the rule counts read 90 (main 88 + two), confirmed by check:docs-transcript-drift. The "Test UI" red on 1d79fae was all 16 shards cancelled by the next push, not a test failure.
  • Surface outside packages/lint/** (admitted by the seat's claim note): docs rows and counts, the changeset, the spec semantic entry, packages/cli/test/**, examples/app-showcase/test/**.

Verification

Two-minute check: pnpm --filter @objectstack/lint exec vitest run --maxWorkers=2 src/validate-app-shell-reach.test.ts. Expected: all tests pass. Or os validate in examples/app-crm: exit 0 with object-without-view warnings for crm_account and crm_contact.

Read first (by risk):

  1. packages/lint/src/validate-list-view-field-refs.ts: checkFilterVirtual, the only new error, at every door.
  2. packages/lint/src/validate-app-shell-reach.ts: what counts as reach (collectNav, shownElsewhere) and the list-entry gate.
  3. packages/cli/test/generate-scaffold-gates.e2e.test.ts: answerAppShell and SCAFFOLD_ADVISORIES.
Local gates

119 derived families (dispatch-gates.mjs --commands at d95f7a4); --ran reconciliation with exit codes: 115 exit 0, 4 NOT MEASURED, each exit 3 PREREQUISITE NOT MET: check-plugin-teardown-shape --self-test (shallow clone), spec check:skill-examples (client-react dts), check:dual-build-cjs-loads (unbuilt), check:type-check-debt (lock queue-timeout behind this PR's own dogfood run). check:docs-transcript-drift and check-nul-bytes re-run at 2399eab, exit 0. CI owns the farm.

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic.
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; pnpm lint is the CI-owned repo scan, not run locally.
  • 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: its generated artifacts are regenerated and committed.
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English.
  • The Before Submitting list in CONTRIBUTING.md is done.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Q4EjjQkY5yXZrN9BEA3rEK

…ll that save and do not work

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q4EjjQkY5yXZrN9BEA3rEK
…e changeset and the upgrade-guide entry

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q4EjjQkY5yXZrN9BEA3rEK
…ery package of an artifact contributes

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q4EjjQkY5yXZrN9BEA3rEK
…ews-checks

# Conflicts:
#	content/docs/deployment/cli.mdx
#	content/docs/deployment/validating-metadata.mdx
#	content/docs/getting-started/build-with-claude-code.mdx
#	content/docs/ui/react-pages.mdx
@github-actions github-actions Bot added size/xl 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 Nov 28, 2026
@github-actions

github-actions Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 2 package(s): @objectstack/lint, @objectstack/spec, touching 41 documentable anchor(s). ⚠️ 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.

2 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:

  • content/docs/deployment/validating-metadata.mdx (via AUTHORING_RULES (symbol, a top-level const object), runtimeTypes (symbol, a field of const object AUTHORING_RULES))
  • content/docs/ui/apps.mdx (via nav_home (literal, a string literal in validateAppNavigationPresent))

⛔ 2 release-owned page(s) also name something this change touched. These are read-only:

  • content/docs/releases/v16.mdx (via validateWidgetBindings (symbol, a top-level function))
  • content/docs/releases/v17/17-1.mdx (via validateWidgetBindings (symbol, a top-level function))

content/docs/releases/ is RELEASE-OWNED (AGENTS.md "Documentation Guardrails"): release
notes are written centrally at release time, and a code PR that edits them is the exact PR
that guardrail exists to stop. They are still audited — read-only. If one of them is actually
wrong, file an issue or open a dedicated docs-only PR; do not edit it here.

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
  • 2 anchor(s) matched too much of the corpus to be a work list: master_detail (literal, 49 pages), objectName (literal, 60 pages)
  • 18 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 69 of 252 client-bound route-ledger rows — the other 183 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 183: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 124 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 — 177 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 581ae76a23c6b3ba8e2b69e7d8a920838bc51194 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 324c21475f5a8b58f675642d08d9ed28735fb03b — the merge of head 2399eab8c8d4def0a51a605fe5d08fa920893bee into base 581ae76a23c6b3ba8e2b69e7d8a920838bc51194, 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 324c21475f5a8b58f675642d08d9ed28735fb03b && git checkout 324c21475f5a8b58f675642d08d9ed28735fb03b
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 581ae76a23c6b3ba8e2b69e7d8a920838bc51194 2399eab8c8d4def0a51a605fe5d08fa920893bee && git checkout -B drift-repro 581ae76a23c6b3ba8e2b69e7d8a920838bc51194 && git merge --no-ff 2399eab8c8d4def0a51a605fe5d08fa920893bee

node scripts/docs-audit/affected-docs.mjs --json 581ae76a23c6b3ba8e2b69e7d8a920838bc51194

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

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs 581ae76a23c6b3ba8e2b69e7d8a920838bc51194 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#6 · hotlong · session_01Q4EjjQkY5yXZrN9BEA3rEK

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 56bd194a2239c7ea358402975f8ddd022471e54b
Local-runs: none
Scope: packages/spec/src/migrations/entries/semantic/19.publish-refuses-views-and-dashboards-that-save-and-do-not-work.ts, packages/lint/src/authoring-rules.ts, packages/lint/src/index.ts, packages/lint/src/rule-explanations.ts, packages/lint/src/validate-app-shell-reach.ts, packages/lint/src/validate-list-view-field-refs.ts, packages/lint/src/validate-widget-bindings.ts, packages/lint/src/validate-app-shell-reach.test.ts, packages/lint/src/validate-list-view-field-refs.test.ts, packages/lint/src/validate-list-view-kanban-lanes.test.ts, packages/lint/src/validate-security-posture.runtime-surface.test.ts, packages/lint/src/validate-widget-bindings.test.ts + read, not reviewed: packages/spec/src/data/search-fields.ts, packages/spec/src/data/field-value.zod.ts, packages/spec/src/data/object.zod.ts, packages/spec/src/ui/app.zod.ts, packages/spec/src/ui/dashboard.zod.ts, packages/spec/src/kernel/metadata-create-seeds.ts, packages/spec/src/migrations/entries/semantic/17.engine-find-formula-filter-refused.ts, packages/objectql/src/filter-comparand-shape.ts, packages/objectql/src/engine-top-level.ts, packages/cli/src/commands/generate.ts, packages/cli/src/utils/artifact-packages.ts, packages/cli/test/generate-scaffolds-reach-stack.e2e.test.ts, packages/cli/test/generate-scaffold-gates.e2e.test.ts, examples/app-showcase/test/author-time-advisories.test.ts, examples/app-showcase/src/ui/apps/index.ts, .changeset/35143-views-dashboards-checks.md, AGENTS.md
Security-touching: no
Rule-change-verified: none

First round on this PR. Face: the file list (17 paths) holds one published-schema path (the ADR-0087 entry, first on the Scope line), and the PR body and the changeset both declare Clause-②: no (narrowing). The floor is every path of the diff outside the prose faces, twelve files. Inputs: card #35143, the claim 7230739921, the report 7232386063, the PR body, the net diff against main at 93fa9118a3dc61473890eafc6bb170a6fc1c3042 (the head's second parent), the contract reviews on #37513 and #37807 of the same card, and the check-runs on this head. Nothing was built or run; every statement about a test below is a reading of the test and of the code it drives.

① Derived judgments

  • list-view-filter-field-virtual (error; CLI, the view and object doors): RIGHT.
    • The engine refuses every where that names a formula field with 400 INVALID_FIELD, at the REST ingress and at the engine seam (assertFilterIsMaterializable, filter-comparand-shape.ts:462, called from engine-top-level.ts:937 and :1069; the ledger entry engine-find-formula-filter-refused of protocol 17 states both doors).
    • The rule asks the predicate the engine asks (isVirtualSearchField, whose set is formula and nothing else), so summary and autonumber, which have columns, are not refused.
    • A list view with no resolvable object, a dotted key and an unreadable type are not judged. A filter that reaches no store is not reached by the rule.
    • Publish now refuses a view main accepted. That view already opened on the engine's error for every reader, so the refusal takes away nothing that worked.
  • list-view-kanban-group-field-uncategorical (warning; CLI, view and object doors): RIGHT as an advisory. Select, radio, boolean and single-valued reference fields are silent; nothing is refused.
  • dashboard-without-widgets (error on the CLI, warning at the dashboard door): WRONG on the CLI. See M1.
    • At the door a warning is right: the spec's own create seed (metadata-create-seeds.ts:41-45) and two Studio paths save widgets: [].
    • The signal for the split (ctx.runtimeWriteType !== undefined) is the one the reference-integrity suite already reads. That part is sound.
  • app-navigation-empty (warning; CLI and the app door): RIGHT as an advisory. A separator and an empty group count as nothing; areas and the stack's own contributions count.
  • object-unreachable-from-navigation and object-without-view (warnings, CLI only): the registration is right (CLI_ONLY, full snapshot). What they report is S2, S3 and M2.
    • The per-package pass hands sibling packages along (packageBodyAsStack(pkg.body, artifactPackageEntries)), so navigation one package contributes into another's app does count there.
  • Public surface: WIDENED. packages/lint/src/index.ts adds six rule-id constants on ., and the exported validateWidgetBindings gains a second parameter whose type (WidgetBindingOptions) is reachable through it.
  • Clause-②: no (narrowing): WRONG at this head. See S1.
  • Metadata-protocol: narrowed: RIGHT. A value an author could publish (a list filter keyed on a formula) is refused.

② Semver level

  • @objectstack/lint minor, @objectstack/spec patch: right for this diff. Minor covers the narrowing and the added exports; the spec adds only the upgrade-guide entry. No major.
  • The title carries !. The changeset carries the BREAKING banner, two FROM and TO pairs, both declaration lines and one marker, adr-0087: registered publish-refuses-views-and-dashboards-that-save-and-do-not-work. The entry's id and file name match the marker.
  • The entry and the changeset describe the head as built. Both name the dashboard as a CLI error and move with M1.
  • A fix of M1 that edits packages/cli/src/commands/generate.ts adds @objectstack/cli at patch.
  • The dogfood battery is reported at f23263ca (VERDICT command-exit 0, 490 files passed, 3 skipped), one merge of main behind this head. It is owed on the head that closes M1.
  • Docs counts, a prose face, read because asked: main holds 87 registry rules (fix(lint)!: a knowledge source is checked for its object, its fields and the search gates that need no caller, also at publish #37971 landed), this head holds 89, and the four count lines say 89.

③ Boundary flags

  • The head is a merge of main (93fa9118) into f23263ca, the head this review was read at. The merge is confirmed to carry nothing of its own beyond the count lines:
    • the hand resolution (git show --remerge-diff) is four lines, "author-time rules (88)" against main's 87 resolved to 89, one in each of cli.mdx, validating-metadata.mdx, build-with-claude-code.mdx and react-pages.mdx;
    • the PR's own change under packages/lint and packages/spec has the same patch id before and after the merge, and the head differs from main in the same seventeen files;
    • what moved under packages/lint, packages/spec, packages/cli and examples between the two heads has the patch id of what main brought.
  • Main brought edits to generate.ts and the showcase. Neither touches a finding below: generate.ts:720 still writes widgets: [], the showcase list holds no entry for the new rules, and its app navigation still names none of the five objects of M2.
  • Check-runs on this head, read at 2026-11-28T02:35Z: 37 runs, 7 success, 9 skipped, 21 in progress, none failed. "All green" is not established. The previous head had no run at all (it did not merge), so no CI result exists for this diff yet.
    • The report lists the lint, metadata-protocol, objectql, runtime and dogfood suites. It lists no @objectstack/cli suite and marks app-showcase NOT MEASURED. M1 and M2 sit in exactly those two.
  • Open question 1 (the Clause-② spelling): neither A nor B. The gate does refuse a bare no beside narrowed, and the line it wants here is yes (narrowing), as fix(lint)!: three publish-time checks for seeds, flow nodes and actions that save and do not work #37807 landed. S1.
  • Open question 2 (the dashboard split): B, a warning at both doors. M1 gives the reasons.
  • File surface: the claim names packages/lint/**, the docs table, generated pages and one changeset. The diff also adds packages/spec/src/migrations/entries/semantic/19.…ts. The PR body admits it; the seat's scope line is still to write, as on fix(lint)!: four publish-time checks for data-model metadata that saves and does not work #37513 and fix(lint)!: three publish-time checks for seeds, flow nodes and actions that save and do not work #37807. Closing M1 or M2 reaches packages/cli/** and examples/app-showcase/**, which the seat has to admit first.
  • Skills-docs: reads "follow-up owed" and names two skill files but no card. fix(lint)!: four publish-time checks for data-model metadata that saves and does not work #37513 and fix(lint)!: three publish-time checks for seeds, flow nodes and actions that save and do not work #37807 named a card number on that line.
  • Security-touching: no. The one security-named file in the diff is a test whose rule roster for an app write gains the new advisory; no hunk changes or teaches a permission, sharing or credential behaviour.
  • SQL push-down: the diff reads metadata only and issues no query. Nothing to report.
  • PR author is objectstack-fleet[bot].

④ Design judgment

M1 (must-fix) — dashboard-without-widgets as a CLI error refuses what the CLI itself writes, and reds two suites main pins.

M2 (must-fix) — the three app-shell advisories were not measured against the suites that pin the CLI's finding set.

  • examples/app-showcase/test/author-time-advisories.test.ts (QA ledger fixes from the 2026-11-10 full run: eight stale steps or baselines, the smoke config's reused-server trap, four recurring fixtures, and 76 showcase author-time warnings #32168) fails on any finding not on its list. The report marks the showcase NOT MEASURED.
    • By reading, object-unreachable-from-navigation fires there. src/ui/apps/index.ts names thirteen objects in type: 'object' entries. showcase_announcement, showcase_client_brief, showcase_inquiry, showcase_private_note and showcase_semantic_zoo are not among them, and none has a master_detail field or apiEnabled: false.
  • generate-scaffold-gates.e2e.test.ts: os g object ticket writes an object and adds no navigation entry (only the dashboard generator carries navEntry). The project has a starter app, so the new object is reported, against a pin of no finding at any severity.
  • Closing condition: every check-run on the head is green, and the PR names these two suites as run. Each new finding on the showcase is either fixed in its metadata or listed with its reason, as that test requires.

S1 (should-fix) — the declaration line reads Clause-②: no (narrowing) while the diff enlarges a published surface.

S2 (should-fix) — object-without-view names a fix the schema refuses.

  • The hint, the explanation and the changeset say to declare "list: { type: 'grid', columns: [...] } on" the object. ObjectSchema has no list key; its list views are listViews (object.zod.ts:4953). The only list keys in that file are relatedLists entries.
  • declaresOwnView reads obj.list for the same reason, a branch no parsed object reaches.
  • The card asks for "a finding that names the fix". The second half of the hint (defineView) is right.
  • Closing condition: the hint, the explanation and the changeset name listViews, and the dead read goes.

S3 (should-fix) — "no user can reach its list" is judged on type: 'object' entries alone.

  • Not counted: an object a page entry's page lists, and a lookup child its parent shows through relatedLists (a related list is not master_detail only).
  • The hint prescribes a master_detail field, which changes delete and sharing behaviour, to an object that may already be shown.
  • The showcase reading under M2 is the measure: five objects of the reference app are told they are unreachable.
  • It is advisory and CLI only, which is why it is not a must-fix.
  • Closing condition: an object another object lists in relatedLists is not judged (the reason the master_detail exemption gives), the message claims only what was read (no navigation entry opens its list), and the corpus reading covers the showcase and hotcrm.

Nits, none with an effect on correctness or the contract:

  • N1. object-without-view is also reported for an object whose only entry carries recordId, which opens a record and shows no list.
  • N2. judgedHolders returns a one-element list through a Holder indirection; viewBinds is a second spelling of the view walk in validate-list-view-field-refs.ts:1862-1910.
  • N3. A board grouped by rating or by a formula gets the generic "one lane per distinct value" message.
  • N4. The PR body still gives its test and battery readings at f23263ca and says the counts go 86 to 88; the head is now a later merge and the count is 89.

Open at this head: M1, M2, S1, S2, S3. The next head owes a round by this reviewer.

Implemented-by: claude/issue-35143-views-checks
Reviewed-by: session_01Q4EjjQkY5yXZrN9BEA3rEK

VERDICT: FAIL

…rd is advisory at every door

- dashboard-without-widgets is a warning on the CLI as at the publish door;
  validateWidgetBindings takes no options argument again.
- object-unreachable-from-navigation does not judge an object another object
  names in relatedLists, nor one a page that navigation opens names; its
  message says only that no navigation entry opens the list.
- object-without-view reads ObjectSchema.listViews (the dead `list` read is
  gone), names listViews in its hint, and is judged only for an entry that
  opens a list (no recordId).
- The scaffold gates e2e answers the app shell as the starter app's header
  tells the author to, and carries the dashboard scaffold's own advisory.

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q4EjjQkY5yXZrN9BEA3rEK
…ews-checks

# Conflicts:
#	content/docs/deployment/cli.mdx
#	content/docs/deployment/validating-metadata.mdx
#	content/docs/getting-started/build-with-claude-code.mdx
#	content/docs/ui/react-pages.mdx
…, each with its reason

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q4EjjQkY5yXZrN9BEA3rEK
…ies the dashboard scaffold's advisory

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q4EjjQkY5yXZrN9BEA3rEK
…ion, each on a declared list

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q4EjjQkY5yXZrN9BEA3rEK
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#6 · hotlong · session_01Q4EjjQkY5yXZrN9BEA3rEK

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 2399eab8c8d4def0a51a605fe5d08fa920893bee
Local-runs: none
Scope: packages/spec/src/migrations/entries/semantic/19.publish-refuses-views-and-dashboards-that-save-and-do-not-work.ts, packages/lint/src/authoring-rules.ts, packages/lint/src/index.ts, packages/lint/src/rule-explanations.ts, packages/lint/src/validate-app-shell-reach.ts, packages/lint/src/validate-list-view-field-refs.ts, packages/lint/src/validate-widget-bindings.ts, packages/lint/src/validate-app-shell-reach.test.ts, packages/lint/src/validate-list-view-field-refs.test.ts, packages/lint/src/validate-list-view-kanban-lanes.test.ts, packages/lint/src/validate-security-posture.runtime-surface.test.ts, packages/lint/src/validate-widget-bindings.test.ts, packages/cli/test/generate-scaffold-gates.e2e.test.ts, packages/cli/test/generate-scaffold-validates.test.ts, packages/cli/test/lint-per-package-authoring-parity.test.ts, packages/cli/test/package-union-readers.test.ts, packages/cli/test/stack-conversion-record-door.test.ts, examples/app-showcase/test/author-time-advisories.test.ts + read, not reviewed: packages/cli/src/commands/generate.ts, packages/cli/test/generate-scaffolds-reach-stack.e2e.test.ts, packages/spec/src/data/object.zod.ts, .changeset/35143-views-dashboards-checks.md, AGENTS.md
Security-touching: no
Rule-change-verified: none

Delta round by the reviewer of the FAIL at 56bd194a (read at f23263ca, M1, M2, S1 to S3 open). Inputs: git diff 56bd194a 2399eab8, the net diff against main at 447757d051446c3826158153f48b52b5a24d1e55 (the merge base), the rework report 7234103660, the seat's claim note 7232499792, the PR body as re-patched, and the check-runs on this head. Nothing was built or run; the test readings below are the dev's, and CI has not finished.

① Derived judgments

  • What moved since 56bd194a: one lint commit (cc6ab62a), a merge of main (1d79fae7), one showcase list commit, and two commits of packages/cli/test only. packages/cli/src/commands/generate.ts is unchanged against main.
  • dashboard-without-widgets: RIGHT now. A warning at every door. validateWidgetBindings has no diff against main beyond the added check and the id, so the options argument and its type are gone.
  • list-view-filter-field-virtual, list-view-kanban-group-field-uncategorical, app-navigation-empty: unchanged since the first record, and its judgments stand.
  • object-unreachable-from-navigation: RIGHT now as an advisory. An object another object names in relatedLists, and an object a page names when a type: 'page' entry opens that page, are not judged. The message says what was read.
  • object-without-view: RIGHT now. Judged only for an entry that opens a list (no recordId), against listViews and bound views items.
  • Public surface: six rule-id constants on the . entry of @objectstack/lint, and nothing else. The two rule functions stay unexported.
  • Clause-②: yes (narrowing): RIGHT. Metadata-protocol: narrowed: RIGHT; the narrowing is the list filter alone.

② Semver level

  • @objectstack/lint minor, @objectstack/spec patch: right. No @objectstack/cli line is owed, since only its tests moved.
  • The changeset keeps the BREAKING banner (now the list filter only), one FROM and TO pair, both declaration lines and the marker adr-0087: registered publish-refuses-views-and-dashboards-that-save-and-do-not-work. The entry now reads one error and five warnings, and its acceptance criterion names the one error.
  • The PR body and the changeset carry the same two declaration lines.
  • Docs counts, a prose face: main holds 88 registry rules, this head 90, and the four count lines say 90.

③ Boundary flags

  • Check-runs on this head, read at 2026-11-28T04:34Z: 51 runs, 15 success, 11 skipped, 25 in progress, none failed.
    • Still running: all ten Test Core shards, Check Changeset, Build Core, Build Docs, Build UI Deps, Live E2E UI, and the Lint and Type Check families. No Test UI shard had been created.
    • "All green" is not established. The report gives the previous head d95f7a4e as 58 success with Test Core (5/10) red on the three CLI fixtures this head edits. That red is the reason for the last commit, so the shard has to be read again here.
  • The head merges with main at 581ae76a without conflict (merge-tree, no checkout).
  • Dogfood battery: reported at d95f7a4e (VERDICT command-exit 0, 490 files passed, 3 skipped), one commit behind this head. git diff d95f7a4e 2399eab8 is three files, all under packages/cli/test, 19 lines added and 6 removed. Nothing on the battery's path moved. By the letter the battery is not at the landing head; the seat accepts or re-runs.
  • The seat's claim note 7232499792 records the Clause-② change, the severity ruling and the widened file surface (packages/cli/test/**, the generator, examples/app-showcase/**). The diff stays inside it.
  • The report's open questions are empty. Its three out-of-scope notes carry no card: the eight showcase objects on the derived list, the second view walk (N2), and the board message (N3).
  • Skills-docs: still reads "follow-up owed" with two file names and no card number.
  • Security-touching: no, as before. SQL push-down: nothing in the delta.
  • PR author is objectstack-fleet[bot].

④ Design judgment

Findings of the first record, at this head:

M1 (must-fix): closed.

  • The finding is a warning on the CLI as at the door (option (a), the seat's ruling). The changeset, the entry, the explanation and the docs row say so.
  • The scaffold pins are settled on purpose, not filtered by rule:
  • generate-scaffolds-reach-stack.e2e.test.ts asserts the exit code and the counts, which a warning does not move.

M2 (must-fix): closed in the diff; its CI half is still running.

  • The showcase list gains sixteen entries, each with a reason: eight object-without-view on objects kept on the derived list, eight object-unreachable-from-navigation on objects kept off navigation. The test's second direction fails any entry that stops firing, so the list cannot go stale.
  • A generated object is pinned as the one no entry opens, and no starter object ever is. The leg then answers it the way the starter app's header tells the author to (a navigation entry, then os g view) before the gates run.
  • Three CLI fixtures gained a navigation entry or a listViews entry so they stay clean. No assertion in them was removed.
  • The dev reports the scaffold e2e, the showcase suite and the three fixtures green locally. The closing condition also asked for every check-run green, and that is not yet answered (③).

S1 (should-fix): closed. Both lines read yes (narrowing) and the seat's note is on the card.
S2 (should-fix): closed. The hint, the explanation and the changeset name listViews; the obj.list read is gone.
S3 (should-fix): closed. The two exemptions are in and pinned. The corpus reading now covers the showcase; hotcrm is a static reading only, which the report says.

Nits, none with an effect on correctness or the contract:

  • N1: closed.
  • N2 (open, accepted). The holder indirection is gone; viewBinds remains a second spelling of the view walk.
  • N3 (open, accepted). A board grouped by rating or formula gets the generic message.
  • N4: closed. The body gives readings at this head.
  • N5 (new). The comment at packages/lint/src/index.ts:39-40 still says "an error on the CLI, a warning at the runtime door".
  • N6 (new). os g app output opens its object with no list view, so the platform's own scaffold raises object-without-view until os g view runs. Pinned and answered in the test; nothing tells the author at generate time.
  • N7 (new). The page exemption counts any object or objectName key anywhere in the page, and a url entry is not read (the showcase's private-note link). Both err toward silence or toward a listed reason.

No must-fix and no should-fix open. Landing still waits on the check-runs of this head.

Implemented-by: claude/issue-35143-views-checks
Reviewed-by: session_01Q4EjjQkY5yXZrN9BEA3rEK

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#6 · hotlong · session_01Q4EjjQkY5yXZrN9BEA3rEK

维护者速读

  • 发布时新增一组「保存得了但用不了」的检查:列表视图按公式字段过滤(运行时必报错)直接拒绝发布;看板按非选项字段分组、仪表盘没有组件、应用没有导航、对象从导航进不去、对象没有列表视图,只给提醒不拦截。
  • 唯一会让以前能发布的东西发布失败的,是「列表视图按公式字段过滤」,这种视图本来打开就报错。
  • 要你做什么:这是收窄类改动,需要 os-zhuang 批准或入队。

席位核对 — ACCEPT · repo:objectstack#6 · head 2399eab8c8d4def0a51a605fe5d08fa920893bee

  • Shape: draft → main, Part of #35143 (Views, dashboards and app-shell family; Flows F1/F6 stay open on the card). Title carries !.
  • Premise: none of the six shapes produced a finding on main (dev report 7232386063, re-measured in rework 7234103660).
  • Contract review: FAIL 7232487072 at 56bd194a (M1 scaffold dashboard refused, M2 unmeasured showcase/scaffold pins, S1 declaration, S2 wrong key, S3 reach false positives) → delta PASS 7234143283 at this head, every must-fix and should-fix closed; N2/N3/N5–N7 accepted as nits.
  • Seat rulings (claim note 7232499792): Clause-②: yes (narrowing), Metadata-protocol: narrowed; dashboard-without-widgets a warning at both doors; file surface widened to packages/cli/test/** and examples/app-showcase/** (generate.ts unchanged). The narrowing is list-view-filter-field-virtual alone, which refuses only a view that already failed with 400 INVALID_FIELD on every read.
  • Tests: lint 246 files / 9921 passed; scaffold e2e 77 passed (2 failed before rework); cli integration fixtures fixed; app-showcase 49 files / 546 passed with 16 new advisories listed with reasons.
  • Dogfood battery: passed at d95f7a4e (490 files, 4144 tests, 0 failed). git diff d95f7a4e 2399eab8c8d4def0a51a605fe5d08fa920893bee is three packages/cli/test fixture files only, off the battery path; the seat accepts the battery for this head (confirmed by the reviewer).
  • Gates: check-runs at head 64 success, 14 skipped, 0 failed; mergeable clean. Docs rule count 90 matches the registry.
  • Follow-ups: skills: objectstack-ui list-view and app-shell prose teaches traps the Views, dashboards and app-shell checks now catch (after #38107) #38153 (skills prose, the PR's Skills-docs: line).
  • Landing: --handoff (narrowing).

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#6 · hotlong · session_01Q4EjjQkY5yXZrN9BEA3rEK

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 2399eab8c8d4def0a51a605fe5d08fa920893bee
Local-runs: none
Scope: packages/spec/src/migrations/entries/semantic/19.publish-refuses-views-and-dashboards-that-save-and-do-not-work.ts, packages/lint/src/authoring-rules.ts, packages/lint/src/index.ts, packages/lint/src/rule-explanations.ts, packages/lint/src/validate-app-shell-reach.ts, packages/lint/src/validate-list-view-field-refs.ts, packages/lint/src/validate-widget-bindings.ts, packages/lint/src/validate-app-shell-reach.test.ts, packages/lint/src/validate-list-view-field-refs.test.ts, packages/lint/src/validate-list-view-kanban-lanes.test.ts, packages/lint/src/validate-security-posture.runtime-surface.test.ts, packages/lint/src/validate-widget-bindings.test.ts, packages/cli/test/generate-scaffold-gates.e2e.test.ts, packages/cli/test/generate-scaffold-validates.test.ts, packages/cli/test/lint-per-package-authoring-parity.test.ts, packages/cli/test/package-union-readers.test.ts, packages/cli/test/stack-conversion-record-door.test.ts, examples/app-showcase/test/author-time-advisories.test.ts + read, not reviewed: packages/cli/src/commands/generate.ts, packages/cli/test/generate-scaffolds-reach-stack.e2e.test.ts, packages/spec/src/data/object.zod.ts, .changeset/35143-views-dashboards-checks.md, AGENTS.md
Security-touching: no
Rule-change-verified: none

Same-head closing record by the reviewer of the delta record 7234143283 (PASS at this head, read while CI was running) and of the FAIL at 56bd194a. The head has not moved, so no path on the Scope line changed and that record's judgments are carried here unchanged. The one new input is the finished check-runs. Nothing was built or run.

① Derived judgments

  • Unchanged from 7234143283. Clause-②: yes (narrowing): RIGHT. Metadata-protocol: narrowed: RIGHT; the narrowing is the list filter keyed on a formula field.

② Semver level

  • Unchanged from 7234143283. @objectstack/lint minor, @objectstack/spec patch; the BREAKING banner, the FROM and TO pair and the marker adr-0087: registered publish-refuses-views-and-dashboards-that-save-and-do-not-work are in place.

③ Boundary flags

  • Check-runs on this head, read at 2026-11-28T05:06Z: 78 runs, 64 success, 14 skipped, none failed, none still running.
    • Success includes all ten Test Core shards, seventeen Test UI runs, Check Changeset, Dogfood Regression Gate and Governed Surface Queue Guard.
    • Test Core (5/10), red on the previous head d95f7a4e on the three CLI fixtures, is green here.
  • The PR reads mergeable: true, clean. It is still a draft.
  • Dogfood battery: reported at d95f7a4e, one commit behind; the later commit is three packages/cli/test files. The Dogfood Regression Gate check on this head is green. The seat accepts or re-runs the local battery.
  • Skills-docs: still names two skill files and no follow-up card.
  • Security-touching: no. SQL push-down: nothing to report.

④ Design judgment

Findings of the earlier records, at this head:

M1 (must-fix): closed.
M2 (must-fix): closed.

  • Its diff half was closed in 7234143283. Its CI half, every check-run green on the head, is closed by the reading in ③.

S1 (should-fix): closed.
S2 (should-fix): closed.
S3 (should-fix): closed.

Nits, none with an effect on correctness or the contract, unchanged from 7234143283:

  • N1: closed.
  • N2 (open, accepted). viewBinds is a second spelling of the view walk.
  • N3 (open, accepted). A board grouped by rating or formula gets the generic message.
  • N4: closed.
  • N5 (open). The comment at packages/lint/src/index.ts:39-40 still says the dashboard finding is an error on the CLI.
  • N6 (open). os g app output raises object-without-view until os g view runs.
  • N7 (open). The page exemption reads any object or objectName key in the page, and url entries are not read.

No must-fix, no should-fix.

Implemented-by: claude/issue-35143-views-checks
Reviewed-by: session_01Q4EjjQkY5yXZrN9BEA3rEK

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#6 · hotlong · session_01Q4EjjQkY5yXZrN9BEA3rEK

Review requested: this narrowing PR (Clause-②: yes (narrowing)) lands by an authorized APPROVED review or an enqueue by an approver.

Records at head 2399eab8c8d4def0a51a605fe5d08fa920893bee:

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 28, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 28, 2026 05:29
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 28, 2026
Merged via the queue into main with commit d578952 Nov 28, 2026
84 checks passed
@os-zhuang
os-zhuang deleted the claude/issue-35143-views-checks branch November 28, 2026 06:46
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#6 · hotlong · session_01Q4EjjQkY5yXZrN9BEA3rEK

Merged; clearing pm:awaiting-merge.

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/xl 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.

3 participants