Repository navigation
fix(lint)!: publish-time checks for views, dashboards and the app shell that save and do not work - #38107
Conversation
…ll that save and do not work Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Q4EjjQkY5yXZrN9BEA3rEK
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
📓 Docs Drift CheckThis PR changes 2 package(s): 2 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
⛔ 2 release-owned page(s) also name something this change touched. These are read-only:
What this run could not see
Coarse fallback — 177 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # 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
|
|
repo:objectstack#6 · hotlong · session_01Q4EjjQkY5yXZrN9BEA3rEK Contract reviewServed-tier: 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 ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentM1 (must-fix) —
M2 (must-fix) — the three app-shell advisories were not measured against the suites that pin the CLI's finding set.
S1 (should-fix) — the declaration line reads
S2 (should-fix) —
S3 (should-fix) — "no user can reach its list" is judged on
Nits, none with an effect on correctness or the contract:
Open at this head: M1, M2, S1, S2, S3. The next head owes a round by this reviewer. Implemented-by: 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
|
repo:objectstack#6 · hotlong · session_01Q4EjjQkY5yXZrN9BEA3rEK Contract reviewServed-tier: Delta round by the reviewer of the FAIL at ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentFindings of the first record, at this head: M1 (must-fix): closed.
M2 (must-fix): closed in the diff; its CI half is still running.
S1 (should-fix): closed. Both lines read Nits, none with an effect on correctness or the contract:
No must-fix and no should-fix open. Landing still waits on the check-runs of this head. Implemented-by: VERDICT: PASS |
|
repo:objectstack#6 · hotlong · session_01Q4EjjQkY5yXZrN9BEA3rEK 维护者速读
席位核对 — ACCEPT · repo:objectstack#6 · head
|
|
repo:objectstack#6 · hotlong · session_01Q4EjjQkY5yXZrN9BEA3rEK Contract reviewServed-tier: 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 ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentFindings of the earlier records, at this head: M1 (must-fix): closed.
S1 (should-fix): closed. Nits, none with an effect on correctness or the contract, unchanged from 7234143283:
No must-fix, no should-fix. Implemented-by: VERDICT: PASS |
|
repo:objectstack#6 · hotlong · session_01Q4EjjQkY5yXZrN9BEA3rEK Review requested: this narrowing PR ( Records at head
|
|
repo:objectstack#6 · hotlong · session_01Q4EjjQkY5yXZrN9BEA3rEK Merged; clearing |
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 onos validate/build/lintnor at the runtimeview/dashboard/appdoors. Two lines extend an existing rule; the app shell is one new module.list-view-kanban-group-field-uncategoricalvalidateListViewFieldRefsdashboard-without-widgetsvalidateWidgetBindingslist-view-filter-field-virtualvalidateListViewFieldRefs(own filter anduserFilters.tabsfilters)app-navigation-emptyvalidateAppNavigationPresentobject-unreachable-from-navigationvalidateObjectShellReachobject-without-viewvalidateObjectShellReachSeverity reasoning (engine read, consistent across the publish door and the CLI):
assertFilterIsMaterializablerefuses a filter on a virtual field (isVirtualSearchField) with400 INVALID_FIELD, so the saved view opens on that error. This is the narrowing.os generate dashboard. Both doors see the same dashboard, so the severity is the same.app-navigation-emptycounts 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-navigationsays only that no navigation entry opens the object's list. Not judged: a stack with no app and no contributions; an object with amaster_detailfield or named in another object'srelatedLists; an object a page names when atype: 'page'entry opens that page; an object withenable.apiEnabled: false.object-without-viewreadsObjectSchema.listViewsand boundviews[]items, and is judged only where an entry opens a list (norecordId).Also: six
os explainentries, 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
2399eab8unless marked; the commits afterd95f7a4etouch only threepackages/cli/testfixtures.Lint package
pnpm --filter @objectstack/lint test(at 1d79fae, lint source unchanged since): Test Files 246 passed (246), Tests 9921 passed.typecheckOK.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.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 filegenerate-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.ts2/2.VERDICT command-exit 0, Test Files 490 passed + 3 skipped (493), Tests 4144 passed + 68 skipped (4212).Test Core (5/10)):lint-per-package-authoring-parity,package-union-readers,stack-conversion-record-doornow 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.VERDICT command-exit 0.Acceptance notes
Clause-②: yes (narrowing)(six rule-id exports enlarge the.entry);dashboard-without-widgetsis a warning at both doors, andvalidateWidgetBindingsno longer takes an options argument, so its signature is unchanged from main.os g object(and every leg that generates an object) now meetsobject-unreachable-from-navigation. Making the scaffold silent would needos gto 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 gnever edits an app). The finding is true and the author's to answer, asnav-object-ungrantedalready 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, thenos g viewfor an object that reportsobject-without-view) before the three gates run, which stay at zero findings.os g dashboardwriteswidgets: []under a comment naming the widget shape; a widget needs a dataset and measures only the author can choose.dashboard-without-widgetsis carried in aSCAFFOLD_ADVISORIESledger 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 appopens the object it binds, which has no list view; the in-process pin answers it withos g viewand pins thatappis the only scaffold that needs it.generate.tsis unchanged, so no@objectstack/clichangeset.author-time-advisories.test.ts: 8object-without-view(objects on the console's derived list; designing those lists would change what browser checklist items observe) and 8object-unreachable-from-navigation(objects kept off navigation on purpose: OWD siblings, share-link, public-form inbox, semantic-roles fixtures, federated externals).showcase_private_noteis linked by URL from the Capability Map page, which the rule does not read.relatedLists, or that a page opened by atype: 'page'entry names (anobject/objectNamevalue), is not judged; the message claims only that no navigation entry opens the list, and the hint no longer prescribes amaster_detailfield.object-without-viewreadsObjectSchema.listViews, names it in the hint, explanation and changeset; the deadobj.listread is gone. N1: an entry withrecordIdowes no list view. N2: the one-element holder indirection is gone;viewBindsstill duplicates the list-view walk invalidate-list-view-field-refs.ts(left, noted). N3: board messages forrating/formulagrouping left generic (noted).object-without-viewfor objects with no list view; app-todo clean. hotcrm at 99a4279, a static reading (not a run): every object file is named by someobjectName, has amaster_detailfield, or is in arelatedLists, so no unreachable finding is expected; kanbans group by select or lookup; no empty dashboards.userFilters.fieldsfor formula fields; boolean grouping counts as categorical.check:docs-transcript-drift. The "Test UI" red on 1d79fae was all 16 shards cancelled by the next push, not a test failure.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. Oros validateinexamples/app-crm: exit 0 withobject-without-viewwarnings forcrm_accountandcrm_contact.Read first (by risk):
packages/lint/src/validate-list-view-field-refs.ts:checkFilterVirtual, the only new error, at every door.packages/lint/src/validate-app-shell-reach.ts: what counts as reach (collectNav,shownElsewhere) and the list-entry gate.packages/cli/test/generate-scaffold-gates.e2e.test.ts:answerAppShellandSCAFFOLD_ADVISORIES.Local gates
119 derived families (
dispatch-gates.mjs --commandsat d95f7a4);--ranreconciliation with exit codes: 115 exit 0, 4 NOT MEASURED, each exit 3 PREREQUISITE NOT MET:check-plugin-teardown-shape --self-test(shallow clone), speccheck: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-driftandcheck-nul-bytesre-run at 2399eab, exit 0. CI owns the farm.Human Minimum
packages/specholds no runtime logic.pnpm lintis the CI-owned repo scan, not run locally.main, one pull request.packages/spectouched: its generated artifacts are regenerated and committed.content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.🤖 Generated with Claude Code
https://claude.ai/code/session_01Q4EjjQkY5yXZrN9BEA3rEK