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 |
…ts refused at publish, ai_context accepts id, search refusal names list (objectstack-ai#38038) repo:objectstack#1 · os-elon-musk · session_016WV4cwPhGV4g9p1BGQaZbP Fixes objectstack-ai#38019 Clause-②: no (narrowing) Metadata-protocol: narrowed Skills-docs: follow-up objectstack-ai#37310 ## 维护者速读 - 用户能看到什么变化:写知识源的作者在保存被拒时,看到的原因和修法改为「开放 list、不要关掉 searchable」;发布一个指向平台不存在的系统对象的知识源会直接被拒;AI 上下文里写 `id` 不再被提示字段不存在;升级指南只对用到知识源的应用列出相关条目。 - 为什么做:知识库检索这条线(PR 37971 知识源校验)评审留下的四个收尾问题。 - 出错会怎样:最坏是某个发布被多拒或提示文字不准,作者按提示改对象名即可;本改动可直接回退。 - 要你做什么:无。 **Was stacked on PR objectstack-ai#37971**, which merged as 3550665. `main` (f72f335) is merged here (2634eef, no rebase); the diff against `main` is now this card's 11 files, +150/−24. The add/add conflicts the squash left were resolved to this branch's side for `validate-knowledge-source.ts`, its test and the step-19 entry (main's blob equals the stack base 8301509 for each), and `rule-explanations.ts` merged three-way clean against that base. ## What changes 1. **N4, the save-door wording** (`service-knowledge`). The `object-api-not-served` refusal of `admitAuthoredSource` now uses the wording PR objectstack-ai#37971 settled for its S2 fix: the cause is `enable.apiEnabled` false, an `enable.apiMethods` list that does not grant `list` (from which search derives), or `list` beside `enable.searchable: false`; the fix is to keep `apiEnabled` true and include `list` with `searchable` not false, or index another object. It no longer tells the author to grant `search`, a retired list value the parse strips. The admission module's gate-2 header says the same. 2. **`ai_context` and `id`** (`validate-ai-context.ts`). Field existence (`fields`, a related list's `fields`, `where`, `orderBy`, `body.field`) is now asked through `injectedColumnsFor`, as `system-fields.ts` prescribes for an existence check, beside the effective field map. `id` (driver-provisioned, absent from `injectedColumnDefsFor` by contract) is no longer `ai-context-field-unknown`; a `body.field` of `id` is reported as not long text. The type questions (body type, sortability, links) still read the definition map. 3. **N3, a platform name at the door** (`validate-knowledge-source.ts`). Against the whole collection the host serves (no package scope at publish), an absent platform-prefixed name and an absent known platform name (`sys_user`) are now `knowledge-source-object-unknown` errors, as an unprefixed name already was. The CLI arms stay: a prefixed name no known package registers warns, a known platform name the stack does not carry is not judged. Under a stated closure nothing changes. The `os explain` entry and the upgrade entry's `surface` say which arm is the CLI's. 4. **N6, `relevantWhen`** (spec). `knowledge-source-publish-refuses-missing-references-and-gated-objects` carries `relevantWhen: { kind: 'stack-declares', keys: ['knowledgeSources'] }`; `semantic-relevance.test.ts`'s reviewed table gains the row (30 entries, 3 of protocol 19: `main` had meanwhile added `19:action-locations-page-parts-retired`, so the merge corrected the counts). The four sibling `19.knowledge-source-*` entries are deliberately left without one: each names a surface outside the stack (a source registered in code through `KnowledgeServicePlugin({ sources })` / `registerSource`, or host calls to `indexDocument`), and `SemanticMigration.relevantWhen`'s contract says to omit the question unless the surface lives ONLY under the keys it names, so a stack with no `knowledgeSources` is not proven clear of them. Declaration: item 3 narrows the publish accept set (a source over an absent platform object was published with a warning or unjudged, and is now refused 422), hence `no (narrowing)` and `Metadata-protocol: narrowed` (a value refused). Item 2 widens no published accept set. Under `--strict`, where a warning fails the run, a pack naming `id` is now accepted; the refusal it removes is one the published contract already denies, since `id` exists on every object: `packages/spec/src/data/injected-system-columns.ts` names it the primary key the driver provisions on every physical table (`PRIMARY_KEY_COLUMN = 'id'`, around lines 74-79), and `packages/lint/src/system-fields.ts` reports it from `injectedColumnsFor`, the existence helper (its note near line 100 says `injectedColumnDefsFor` leaves it out by design). Removing a refusal the contract already denies, with that text cited, reads as `no`; so the PR stays `Clause-②: no (narrowing)`, the narrowing being item 3 alone. The claim carried `Metadata-protocol: none`; the dispatch left the kind to the diff, and AGENTS.md's definition ("a value refused ... is `narrowed`") fits item 3. ## Tests - `packages/services/service-knowledge/src/__tests__/knowledge-source-admission.test.ts`: a `list` + `searchable: false` row in the refusal table; a pin that the not-served refusal names `does not grant \`list\`` and `include \`list\` with \`enable.searchable\` not false`, and never prescribes a `search` grant, for all three not-served shapes. - `packages/lint/src/validate-ai-context.test.ts`: `id` in `fields`, related `fields`, `where` and `orderBy` is clean, through the rule and through `runAuthoringRules('validate', …)`; a control misspelling is still reported; `body.field: 'id'` is not long text, never unknown. - `packages/lint/src/validate-knowledge-source.test.ts`: at the door with no scope, `sys_kb_article` (prefixed, unregistered) and `sys_user` (known platform) absent from the served collection are refused as errors; the CLI arms stay (warning, not judged); a control with the platform object served publishes clean. - `packages/spec/src/migrations/semantic-relevance.test.ts`: the enumeration table and its counts. Local runs at head `4cdbceedc2`, each under `scripts/pm/os-verify-lock.sh` (verdict `command-exit 0`): - `@objectstack/lint`: 244 test files, 9859 tests passed. - `@objectstack/service-knowledge`: 19 files, 648 tests passed. - `@objectstack/spec` `src/migrations`: 5 files, 207 tests passed. - Typecheck of lint, service-knowledge and spec: clean. - Ablation (at 80a26df, the same blobs): with the four fixed files restored from 8301509, lint 3 failed (the two `id` pins and the whole-collection platform pin), service-knowledge 1 failed (the wording pin), spec 2 failed (the enumeration table and CHAIN `absentTodos`); restored, all green. - Dogfood battery (the `(narrowing)` arm): 490 files passed, 3 skipped; 4144 tests passed, 68 skipped; no failures. <details><summary>Gates at head 4cdbcee</summary> - `dispatch-gates --commands`: 98 commands derived over the 11 paths, all 98 run, each exit 0 (two first answered "not built yet" inside the lock job, `migrate-meta-engine-guidance` vitest and `check:dual-build-cjs-loads`, and exit 0 once the dogfood closure build had built their packages). - `node scripts/check-adr-0087-registration.mjs --base origin/main`: exit 0, reading the marker as `not-required (already-registered)`. - `node scripts/pm/overlap-check.mjs`: VERDICT clean exit 0 against origin/main 5b8ca36, objectstack-ai#38107 and objectstack-ai#38060. </details> ## Acceptance notes - The ADR-0087 marker is now `not-required (already-registered knowledge-source-publish-refuses-missing-references-and-gated-objects)`: objectstack-ai#37971 registered the entry and this PR only edits it (commit 4cdbcee). - Full dogfood ran on the final head `4cdbceedc2` and is green (above). - Follow-up objectstack-ai#38041 carries N1 (a known platform name absent under a stated closure, including the question of `cloud_` and `ai_` names), N2 (the rule header and explain text on which platform arm applies where) and N6 (the stack/manifest wording at a write that names no package). ## Verification Read first: `packages/lint/src/validate-knowledge-source.ts` (the `whole` condition on the two platform rungs, the one behavioural narrowing), `packages/lint/src/validate-ai-context.ts` (`fieldExists` and the `body.field` branch), `packages/services/service-knowledge/src/knowledge-service.ts` (the `object-api-not-served` text). Two minutes: `pnpm --filter @objectstack/lint exec vitest run --maxWorkers=2 src/validate-knowledge-source.test.ts src/validate-ai-context.test.ts` after building lint's closure: all green, including "against the whole collection, an absent platform name, prefixed or known, is refused as an unprefixed one is". 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_016WV4cwPhGV4g9p1BGQaZbP --------- Co-authored-by: Claude <noreply@anthropic.com>
…udges a board's group field (objectstack-ai#38430) <!-- claude-projects-attribution: {"github_login":"os-project-manager"} --> _Requested by **Leehom** · [project thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XAqkG8y9atnquyRXBY4zVGV)_ Fixes objectstack-ai#38153 Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户无感:只改对外发布的技能包里教 AI 做看板的一处文字,把“分组字段要用选项字段”的口头提示换成指向已上线的那条检查和它给的首选改法。 - 属于「发布时拦下保存成功却用不了的元数据」这组检查的技能包收尾:检查上线后,技能包里口头教的同一个坑让位给检查本身。 - 只是一句教 AI 的话,写错最多让 AI 学到一句不准的说法,可以直接撤回这次修改。 - 无 ## What changes One published skill page, `skills/objectstack-ui/rules/list-views.md`, in its kanban section. `skills/objectstack-ui/SKILL.md` is not changed (measured below: it teaches none of the six traps). - The kanban example no longer carries the comment "a select field" beside `groupByField`. - A two-line note under the example takes its place: "Group by a single-valued `select`, boolean or lookup: a text, number or date field or a multi-valued one warns `list-view-kanban-group-field-uncategorical`." The first half follows the rule's own hint in `packages/lint/src/validate-list-view-field-refs.ts` (`checkKanbanGroupField`); the fields that warn are named in the rule explanation's terms. The hint's second remedy, a grid grouping, is not taught: the engine refuses that grouping for a multi-value, structured-JSON or formula field (contract review S1, record 7248601916; follow-up objectstack-ai#38433). **Each of the six rule ids of PR objectstack-ai#38107, measured against both files at `f42bcc18`:** | Rule id | `rules/list-views.md` | `SKILL.md` | |:--|:--|:--| | `list-view-filter-field-virtual` (error) | not taught, no change. Filtering (lines 94-119) and the quick-filter rules (lines 140-154) name no formula field. The two `formula` mentions (lines 184 and 202) are the search axis, already named by `searchable-field-unsearchable`. | not taught, no change | | `list-view-kanban-group-field-uncategorical` | taught as prose at line 267 (the example comment "a select field"): changed | not taught as this trap, no change. Line 89 describes the kind ("a board by status"); lines 99-100 are another trap (a board over a field added in the same change opens empty), which none of the six rules judges. | | `dashboard-without-widgets` | not taught, no change | not taught, no change | | `app-navigation-empty` | not taught, no change | not taught, no change. App Navigation (lines 103-108) says one app per package and that hiding is not gating. | | `object-unreachable-from-navigation` | not taught, no change | not taught, no change | | `object-without-view` | not taught, no change | not taught, no change | None of the six ids appeared anywhere under `skills/` before this change (`grep -rn` over the tree, zero hits; control: `searchable-field-unsearchable` hits). **Paid for in the same file (token ratchet; no ceiling row moves).** | Cut | Bytes | Where it still lives | |:--|--:|:--| | the comment "a select field" and its padding | 33 | replaced by the note | | alignment padding before the two "optional, default true" comments of the kanban example | 28 | the comments stay | | the sentence "`summary`, `showFieldLabels` and `hideEmptyFields` are optional." and the line break it left | 67 | the example marks the two card keys "optional, default true"; the note still says "Omit `summary` to keep the older `summarizeField`'s sum" | | alignment padding before the comment "open, OR urgent" in the Filtering example | 33 | the comment stays | 161 bytes cut, 162 added. Skill size readings, base `f42bcc18`, head `6395a44f`: | | lines before | lines after | bytes before | bytes after | tokens before | tokens after | |:--|--:|--:|--:|--:|--:|--:| | `skills/objectstack-ui/rules/list-views.md` | 412 | 414 | 18038 | 18039 | 4510 | 4510 (ceiling 4510) | | `skills/objectstack-ui/SKILL.md` (untouched) | 164 | 164 | 8937 | 8937 | 2228 | 2228 (ceiling 2228) | | every published `SKILL.md`, summed | 4386 | 4386 | | | | | | whole shipped bundle | | | | | 304822 | 304822 | Net over `skills/**`: 8 lines added, 6 removed. ## Why PR objectstack-ai#38107 made `os validate`, `os lint`, `os build` and the publish door warn on a board grouped by a field with no fixed lanes. Card objectstack-ai#35143's Scope says: "When a family lands, the matching trap leaves the published skills where it is taught as prose." The kanban example taught it as a three-word comment, and incompletely: a boolean or a lookup draws fixed lanes too. The page now names the rule, its first fix and the fields that warn. ## Tests Prose and comments only: no unit test changes, no ablation, no eval case edited and no eval round run. Local gates, run on head `6395a44f` (the final commit, clean tree) after `turbo run build` over the workspace (verify lock: `VERDICT command-exit 0`): ```text ✓ dispatch-gates --ran: 48 derived famil(ies) accounted for — 48 run, 0 NOT-MEASURED (a DERIVED zero — all 48 recorded an exit code and none of them is 3). ``` <details><summary>verdict lines of the gates that read the page</summary> ```text ✓ check-skills-token-ratchet: skills/objectstack-ui/rules/list-views.md is 4510 tokens (ceiling 4510; headroom 0). ✓ check-skills-token-ratchet: 61 authored bundle file(s) within their ceilings; 11 generator-owned file(s) and 42 eval fixture(s) measured, not ratcheted. ✓ check-skill-served-sections: 24 served section(s), each heading exactly once in its file (6 json, 2 json+ts, 16 neutral); 10 JSON fence(s) parse and pass their spec validators. ✓ check-skill-links: 281 relative link(s) in 76 published skill file(s) resolve; 149 fragment(s) name a real heading under GitHub's slug rule. check-nul-bytes: OK (scanned 28762 text file(s) -- 28762 tracked, 0 untracked-not-ignored; skipped 101 binary; no raw ASCII control bytes). ``` Outside the derived list, run on `85c42af4` because the kanban block is a checked example (the block is unchanged since): `pnpm --filter @objectstack/spec run check:skill-examples` under the verify lock, `VERDICT command-exit 0`, "352 prose examples type-check across 3 surface(s)". `node scripts/pm/overlap-check.mjs` before each push: `VERDICT clean exit 0`. </details> Everything else is CI's run: the check-runs on this pull request are the record. ## Acceptance notes - **Premise, re-read on `main` at `f42bcc18`:** it holds for one id of the six. The six ids are live in `packages/lint/src` and none was named in `skills/`. Only the board's group field was taught as prose, and only in `list-views.md`. - **No other file of this skill teaches one of the six traps as prose.** `rules/navigation.md` was read in full; `rules/dashboards.md`, `rules/pages.md`, `rules/record-page.md` and `rules/actions.md` were searched by keyword (empty dashboard, navigation reach, list view, board, formula filter). `rules/dashboards.md` lines 106-108 say a `formula` is refused as a dataset dimension or `groupBy`: that is the dataset contract, not a list view filter. - **Noted, not filed:** `skills/objectstack-formula/SKILL.md` lines 430-435 say a `where` on a `formula` field answers `400 INVALID_FIELD`. That is the engine's refusal for every query; the new list-view rule covers one producer of such a query, so the sentence stays true and is left alone. - **`radio`:** the rule also passes a `radio` field (`KANBAN_CATEGORICAL_TYPES`), though its hint names `select` only. The note follows the hint for what to group by and names only the fields that do warn, so it does not claim a `radio` field warns. - **Budget:** two lines net on one file; `SKILL.md` unchanged at 8,937 bytes. - `skills/**` is a governed path: this pull request stays a draft, and its contract review is the seat's to arrange. ## Verification Read first: the note under the kanban example in `skills/objectstack-ui/rules/list-views.md`. The risk hunk is the removed "optional" sentence in the note below it. Two-minute check: `node scripts/check-skills-token-ratchet.mjs` prints `skills/objectstack-ui/rules/list-views.md` at 4510 / 4510. ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. - [x] 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. - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. - [x] 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. - [x] 6. `packages/spec` not touched. - [x] 7. No hand edits to `content/docs/references/`, `packages/*/CHANGELOG.md` or `content/docs/releases/`. - [x] 8. Title, body and comments are in English. - [x] The *Before Submitting* list in CONTRIBUTING.md is done. --- _Generated by [Claude Code](https://claude.ai/code/session_01FEkQ5nvFivDeQyYgTFkZhi)_ <!-- signed: repo:objectstack#5 · os-project-manager · session_01FEkQ5nvFivDeQyYgTFkZhi --> --------- Co-authored-by: Claude <noreply@anthropic.com>
…objectstack-ai#38534) <!-- claude-projects-attribution: {"github_login":"os-project-manager"} --> _Requested by **Leehom** · [project thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XHogQ9ogKPxHhiFfT2UQgJi)_ Fixes objectstack-ai#38493 Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户无感:只改了三个夜间测试里的示例配置,产品行为没有任何变化。 - 为什么做:夜间测试自昨天起一直报红,原因是新加的「应用导航」发布检查让这些本该干净的示例配置多出了警告。 - 出错会怎样:只影响测试,不影响用户;若有问题,直接撤回此改动即可。 - 要你做什么:无。 ## What changes Test fixtures only, in the three nightly-tier CLI suites the card names. Each fixture that is meant to raise no advisory now declares an app whose `navigation` opens its object (`{ id: 'nav_ticket', type: 'object', label: 'Tickets', objectName: ... }`) and gives that object a list view (`listViews: { all: { type: 'grid', columns: ['title'] } }`). No rule, assertion, test name or skip changed. - `packages/cli/src/commands/validate-json-strict-exit.e2e.test.ts`: the clean control, the conversions minimal pair and the severity minimal pair (all three copy one object and app). - `packages/cli/test/validate-json-warning-parity.e2e.test.ts`: the clean control. - `packages/cli/test/jsx-gate-manifest-notice.e2e.test.ts`: the `stack()` and `packageCarried()` builders. The html-page members already had a navigation entry, but it opened only the page, and an html page names no object, so the object was unreachable. Every member now carries the object entry, with the page entry beside it where there is a page. ## Why The publish-time app-shell rules that d578952 (objectstack-ai#38107) added in `packages/lint/src/validate-app-shell-reach.ts` warn on an app with no navigation entry (`app-navigation-empty`), on an object no entry opens (`object-unreachable-from-navigation`), and on an object opened as a list with no list view (`object-without-view`). The rules are intended behaviour. The fixtures predate them, and these suites are `*.e2e.test.*` files, which run only in the nightly tier (`OS_TEST_TIERS=nightly`), so objectstack-ai#38107's own PR checks never ran them. So the "nothing to warn about" controls, `--strict` exit 0 and `lint` `passed: true / failing: 0` went red. The before log shows all three rules: 6 lines naming `app-navigation-empty`, 14 naming `object-unreachable-from-navigation` and 2 naming `object-without-view`. The third rule hit the `jsx-gate` member with no pages, whose navigation already opened the object but with no list view. That rule comes from the same commit and the same validator file. No failure had any other cause. Per test, nothing was out of scope: no failing test counts findings that these rules add on purpose. Every failing test asserts a zero-advisory baseline (exit 0 under `--strict`, an empty warning set, `failing: 0`, or exactly one finding of a named kind). In each one, the right fix was to make the baseline clean again, not to widen the count. ## Tests <details><summary>Before / after, nightly tier, the three files (head 1af5b3e, origin/main merged)</summary> Command (run under `scripts/pm/os-verify-lock.sh`, after `pnpm turbo run build --filter='@objectstack/cli^...'`): ``` OS_TEST_TIERS=nightly pnpm --filter @objectstack/cli exec vitest run --maxWorkers=2 src/commands/validate-json-strict-exit.e2e.test.ts test/jsx-gate-manifest-notice.e2e.test.ts test/validate-json-warning-parity.e2e.test.ts ``` - Before (the three files restored to merge base 545a4fa, everything else at the head): `Test Files 3 failed (3)`, `Tests 15 failed | 41 passed (56)`. That matches the 15 failures in run 46229659209. - After: `Test Files 3 passed (3)`, `Tests 56 passed (56)`. - `pnpm --filter @objectstack/cli typecheck`: exit 0. Both legs compile these files (`src/**` through `tsconfig.json`, `test/**` through `tsconfig.test.json`). </details> ## Acceptance notes - Other `*.e2e.test.*` / `*.live.test.*` files that declare apps with no navigation (8 under `packages/cli/test/`: `artifact-pinned-boot`, three `i18n-extract-*`, `serve-app-anchored-optional-import`, `serve-cluster-driver-diagnosis`, `serve-runtime-assets-branding-warning`, `start-signal-forwarding`) run `serve`, `start` or `i18n`, never `validate`, `lint` or `build`. The rules do not run there, and none of these files is in the nightly's failing list. No finding. ## Verification <details><summary>Gates</summary> - `node scripts/pm/dispatch-gates.mjs --commands` on head 1af5b3e: 55 commands. 51 exit 0. 4 exit 3 (PREREQUISITE NOT MET, the workspace `dist/` is not built): `check:dual-build-cjs-loads`, `check:i18n`, `check:i18n-coverage`, `check:i18n-walk-parity`. These are NOT MEASURED locally and left to CI: they read built output, which no file in this diff feeds. - `dispatch-gates --ran`: `55 derived famil(ies) accounted for — 51 run, 4 NOT-MEASURED (4 DERIVED from a recorded exit 3)`. - `check-governed-merges --test` on the three-dot file list: NOT governed. - `overlap-check`: `VERDICT clean exit 0`. - No changeset. Test files only, and neither package build ships them (`tsconfig.build.json` excludes `src/**/*.test.ts`, and `test/` is outside `files[]`), so this takes `skip-changeset`. </details> Two-minute check: run the command above. Expected: `Tests 56 passed (56)`. Read first: `packages/cli/test/jsx-gate-manifest-notice.e2e.test.ts` `stack()` (the one fixture whose navigation shape changed rather than grew). <!-- signed: repo:objectstack#5 · os-project-manager · session_01FEkQ5oPfjnm2yWHEwkiYrn --> --- _Generated by [Claude Code](https://claude.ai/code/session_01FEkQ5oPfjnm2yWHEwkiYrn)_ Co-authored-by: Claude <noreply@anthropic.com>
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