Skip to content

lint: a second batch of publish-time checks for metadata that saves and does not work — the ones only the hosted build check makes today #35143

In progress

Description

@objectstack-fleet

epic:#34659#1 · hotlong · session_01Q4EjjMnXJdSZifpEN5i7aU

Filing gate: ④ a child of the cross-lane parent #34659 (the 「MCP 二期与问数」 epic), filed on the maintainer's word in this session's chat, 2026-11-18, verbatim: 「你要评估,云端哪些要迁移到开源项目,相关卡片要么关闭要么等待」, after 「开源项目能做的尽量在开源项目做,云端等开源项目完全优化好再开工」. Source of the inventory: a reading of the hosted tree at cloud main 0aabf9aa against this repository's main b1eb500d, 2026-11-18. The open repository's agents cannot read the hosted tree, so what each item does is written here.

Why

The hosted product checks a build for some two dozen mistakes that the open framework lets through to publish. An author on the open side, human or AI, ships them and finds out at run time. E1 on #34659 rules that such a mistake is caught by a check in the framework first. #34776 carries the first six; this card is the rest of what the reading found with no open rule of the same meaning.

Who acts: the spec lane (packages/lint, packages/spec/src/kernel). Reader: every author at publish time; the hosted side then deletes its copies.

The checks, by family (each: what is wrong · why it does not work)

Flows

  • A condition or a field value compares or writes a select option's label instead of its value · the condition matches no row and the flow never fires; the write fails.
  • A record-change start node with no object · it binds to nothing.
  • A flow that re-triggers itself and is guarded only by a boolean it writes · it loops or never runs.
  • A time-relative trigger that is shadowed by another, has its filter in the wrong place, names an unknown object, or names a field that is not a date · the sweep is discarded or matches nothing.
  • A schedule with no timezone · it fires at a time nobody chose (advisory).
  • A subflow step naming a flow that does not exist.
  • A date helper written inside a plain string, and a CEL expression that faults on a date-only value · the run fails on every row.
  • Two flows, one after create and one after update, doing the same thing · one rule written twice (advisory).

Data model

  • A field named like a count or a total and typed as a lookup (advisory).
  • A formula that reads a summary field that has no configuration · it is stuck at zero.
  • A summary whose child object has no reference back to the parent.
  • reference set on a field type that reads none.
  • A field of an approval detail that stays editable while the approval is pending (advisory).

Views, dashboards, app shell

  • A board grouped by a field that is not a select (advisory). A dashboard with no widgets.
  • A view filter on a formula field the store cannot filter by.
  • An object no app's navigation reaches; an app with no navigation; an object with no view (advisory).

Seeds and actions

  • A seed key that is not a field of its object, caught before load, not at it.
  • A seed, a flow node or an action bound to an object that does not exist (the open rule covers datasets, views and flow triggers only).
  • An action body that calls a write API without declaring the write capability.

Scope

  • One PR per family. Each rule: runtime publish gate and CLI, a positive and a negative pin, a finding that names the fix. Severity as marked; the lane may raise an advisory after reading the engine.
  • Where an open rule already covers part of a case, extend it; do not add a second rule beside it.
  • When a family lands, the matching trap leaves the published skills where it is taught as prose.

Done when

  • Each line above is either a rule with its pins, or a line on this card saying which existing rule already covers it.

Relations

Activity

  1. added
    area:ai
    on Nov 18, 2026
  2. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    First touch: p2 · domain:devx · pm:blocked. It is a new capability inside epic #34659, filed on the maintainer's 「开源项目能做的尽量在开源项目做,云端等开源项目完全优化好再开工」 (cloud#4842 comment 6971980045). Grading principle of 2026-11-18, item 5: new capability, p2, the grade its in-flight siblings carry; the grade of the epic's children is with the maintainer.

    Blocked-by: #34776. The first batch of publish-time checks lands first; this second batch reuses its rule shape, one PR per family. It unlocks when #34776 closes.

  3. added
    domain:devx
    pm:blocked
    priority:p2
    on Nov 18, 2026
  4. added and removed
    area:ai
    on Nov 18, 2026
  5. 44 remaining items

  6. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#6 · hotlong · session_01Q4EjjQkY5yXZrN9BEA3rEK
    os-dev-report

    {
      "issue": 35143,
      "status": "done",
      "branch": "claude/issue-35143-views-checks",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/38107",
      "session": "session_01Q4EjjQkY5yXZrN9BEA3rEK",
      "premise_still_valid": true,
      "summary": "Views, dashboards and app-shell family of #35143 (Part of; Flows F1/F6 untouched). Premise held on origin/main 27ee9843: none of the six shapes produced a finding at any CLI command or runtime door. Extended validateListViewFieldRefs with list-view-kanban-group-field-uncategorical (warning) and list-view-filter-field-virtual (error: objectql refuses virtual-field filters with 400 INVALID_FIELD), extended validateWidgetBindings with dashboard-without-widgets (CLI error, publish-door warning because Studio creates widgets: []), and added validate-app-shell-reach.ts: app-navigation-empty (advisory, CLI + runtime app door) and object-unreachable-from-navigation / object-without-view (advisory, CLI only, needs the full snapshot). Six os explain entries, ADR-0087 semantic entry 19, changeset, docs rule-family rows, rule counts 86 to 88.",
      "tests": "at f23263ca: pnpm --filter @objectstack/lint test -> Test Files 244 passed (244), Tests 9865 passed; lint typecheck OK incl. test typecheck. metadata-protocol 372 files passed + 9 skipped, 23605 tests passed + 45 skipped (pre-merge head). objectql 643/643 files, 14540 tests; runtime 659 files, 13831 passed + 25 skipped; both VERDICT command-exit 0. Ablation, each rebuilt and restored: kanban check removed -> 7 failed; filter check removed -> 7 failed; dashboard publish-door split removed -> 1 failed; master-detail exemption removed -> 1 failed. Corpus os validate: app-crm and app-multi-package exit 0 with object-without-view advisories; app-todo, app-starter clean; app-showcase NOT MEASURED (service-print unbuilt).",
      "gates": "local: dispatch-gates --commands derived 117 families, 112 exit 0 (docs-transcript-drift, adr-0087-registration, empty-changeset, doc-authoring, nul-bytes, query-options-erasure on re-run EXIT=0); --ran reconciliation run. NOT MEASURED: plugin-teardown-shape --self-test (shallow clone, exit 3), dual-build-cjs-loads (unbuilt, exit 3), spec check:skill-examples (client-react no dts, exit 3), check:dts-closure (exit 1, local no-dts build, environment), check:type-check-debt (timeout). overlap-check exit 1: conflicts with #38038, #37986, #37971 only on four docs count lines. CI check-runs: in_progress at report time, not awaited.",
      "dogfood_battery": "f23263ca · VERDICT command-exit 0 · Test Files 490 passed + 3 skipped (493) · Tests 4144 passed + 68 skipped (4212) · no failures",
      "mcp_calls": "0",
      "api_writes": "3 — git push (branch, several pushes); fleet-write pr_create (POST /repos/objectstack-ai/objectstack/pulls + POST issues/38107/assignees, relay run 46098106251); post-stamped os-dev-report comment on issue 35143",
      "open_questions": [
        { "question": "Clause-② line reads `no (narrowing)` where the claim said `no`, because the changeset gate requires the narrowing arm with Metadata-protocol: narrowed (as #37513).", "options": ["A keep `no (narrowing)`", "B change the claim/gate reading"], "recommendation": "A, the gate refuses the bare `no` with narrowed" },
        { "question": "dashboard-without-widgets: CLI error but publish-door warning, so Studio's own empty create still saves.", "options": ["A keep the split", "B warning everywhere", "C error everywhere and change Studio's create"], "recommendation": "A, B loses the shipped-source signal and C needs an objectui change" }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · userFilters.fields may offer formula fields as quick filters; inferred from reading, not reproduced; noted in PR Acceptance notes, not filed",
        "carrier: none · examples/app-crm account and contact objects have no list view (now an object-without-view advisory); noted, not filed"
      ]
    }
  7. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#6 · hotlong · session_01Q4EjjQkY5yXZrN9BEA3rEK

    Claim note against claim 7230739921, after the contract review FAIL on PR #38107 (head 56bd194a):

    • Declaration: Clause-②: yes (narrowing) (review S1; the diff adds exports on @objectstack/lint's . entry and a parameter type on exported validateWidgetBindings). Metadata-protocol: narrowed unchanged.
    • Severity ruling by the seat on the dev's open question: dashboard-without-widgets is a warning at both doors (review M1, option B). The narrowing is then the virtual-field list filter.
    • File surface widened to close M1/M2: packages/cli/src/commands/generate.ts and packages/cli/test/** (scaffold pins), examples/app-showcase/** (its author-time advisory list or its nav), plus a cli patch changeset if the generator changes.
  8. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#6 · hotlong · session_01Q4EjjQkY5yXZrN9BEA3rEK
    os-dev-report

    {
      "issue": 35143,
      "status": "done",
      "branch": "claude/issue-35143-views-checks",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/38107",
      "session": "session_01Q4EjjQkY5yXZrN9BEA3rEK",
      "premise_still_valid": true,
      "summary": "Rework round on the contract-review FAIL, head 2399eab8 (main merged; rule counts 90). Fixes by item. M1: dashboard-without-widgets is now a warning at both doors, and validateWidgetBindings has its main signature back (no options argument). The scaffold pins are settled per pin; none is loosened to a rule filter. Fresh objects meet object-unreachable-from-navigation. Silencing that would need os g to edit the author's app, which #32153 rules out, so each e2e leg pins that the finding fires only on objects it generated. The leg then answers it the way the starter app's header tells the author to (a nav entry, plus os g view where needed), and the gates stay at zero. The dashboard scaffold's own advisory is carried in a SCAFFOLD_ADVISORIES ledger, with its reason, in both the e2e and the in-process pins. generate.ts is unchanged, so there is no cli changeset. M2: the showcase's 16 new advisories are listed, each with a reason. Three CLI integration fixtures that CI found red now open their objects from navigation, on declared lists. S1: Clause-②: yes (narrowing) in the changeset (the PR body line is in the prepared file). S2: the rule reads listViews, and the dead obj.list read is gone. S3: objects named in relatedLists, or by a page that navigation opens, are exempt, and the message claims only what the rule read. N1: an entry with recordId owes no view. N2: the holder indirection is gone. N3 is left.",
      "tests": "lint at 1d79fae7 (lint source unchanged since): Test Files 246/246, Tests 9921 passed; typecheck OK. Scaffold e2e (OS_TEST_TIERS=nightly) gates + reach-stack at 17f62e75: 2 files, 77 tests passed; before the rework, 2 failed / 74 passed. cli unit: 445/446 files; the red generate-scaffold-validates.test.ts was fixed, then 26/26 at d95f7a4e. cli integration fixtures at 2399eab8: lint-per-package-authoring-parity, package-union-readers, stack-conversion-record-door: 3 files, 34 passed. Showcase: whole suite 49 files, 546 tests passed. Ablation, each case rebuilt and then restored: relatedLists/page exemption removed gave 1 failed; recordId list gate removed gave 1 failed. Corpus: app-crm and app-multi-package exit 0 with object-without-view; app-todo clean. hotcrm at 99a4279: static reading only, no unreachable object expected.",
      "gates": "local, derived at d95f7a4e: 119 families. --ran with exit codes: 115 exit 0, 4 NOT MEASURED (exit 3 prerequisite): plugin-teardown-shape --self-test, spec check:skill-examples, check:dual-build-cjs-loads, and check:type-check-debt (lock queue-timeout behind this PR's own dogfood). At 2399eab8: check:docs-transcript-drift exit 0, check-nul-bytes exit 0. CI on d95f7a4e: 58 success, 10 skipped, failures only Test Core (5/10) plus its rollup (the three cli integration fixtures, fixed in 2399eab8). Test UI red on 1d79fae7 was all 16 shards cancelled by the next push. CI on 2399eab8 was in_progress at report time.",
      "dogfood_battery": "d95f7a4e · VERDICT command-exit 0 · Test Files 490 passed + 3 skipped (493) · Tests 4144 passed + 68 skipped (4212) · no failures; 2399eab8 adds only three packages/cli/test fixtures, which are not on the dogfood path",
      "mcp_calls": "0",
      "api_writes": "this round: git push x5 to the branch (cc6ab62a, 1d79fae7, 17f62e75, d95f7a4e, 2399eab8); post-stamped os-dev-report comment on issue 35143. PR body not PATCHed (seat-owned): the new body is prepared at /tmp/claude-0/-home-claude/a69e7948-a7d2-5583-b0d5-cce5d39af456/scratchpad/issue-35143/body.md",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · the showcase keeps 8 objects on the console's derived All-records list; designing their lists would move browser checklist items. Noted in the showcase allow-list, not filed",
        "carrier: none · viewBinds duplicates the list-view walk in validate-list-view-field-refs.ts (review N2); noted, not filed",
        "carrier: none · kanban grouped by rating or formula gets the generic message (review N3); noted, not filed"
      ]
    }
  9. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#6 · hotlong · session_01Q4EjjQkY5yXZrN9BEA3rEK

    Release: PR #38107 merged (Views, dashboards and app-shell family, Part of #35143). Back to pm:queue for the remaining Flows leftovers F1 / F6.

    Resume-from: seat record 7234453178 and contract review 7234474177 on #38107. Follow-ups filed from the landed slice: #38153 (skills prose). Noted, not filed (review nits): viewBinds duplicates the list-view walk; a board grouped by rating / formula gets the generic lanes message; the index.ts:39-40 comment still calls the dashboard finding a CLI error.

  10. added
    pm:queue
    and removed
    pm:dispatched
    on Nov 28, 2026
  11. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#6 · hotlong · session_01Q4EjjQkY5yXZrN9BEA3rEK

    Picked by card-pick.mjs --order area:cloud --seat repo:objectstack#6 at 08:12Z: rank 2, order 1. Rank 1 (#38184) has PR #38180 as its prerequisite (same seam, open, awaiting an approver), so it waits. This seat landed the Data model (#37513), Seeds and actions (#37807) and Views/dashboards/app shell (#38107) families and released the card in 7235531952. The maintainer in this seat's project, verbatim: 「继续处理 area:cloud p1 p2」.

    Claim: PM loop round 13
    Session: session_01Q4EjjQkY5yXZrN9BEA3rEK
    Account: hotlong
    Branch: claude/issue-35143-flows-leftovers
    Worktree: objectstack-issue-35143d
    Domain: domain:devx
    Seat: repo:objectstack#6
    File surface: packages/lint/** (the Flows rules of #36691 only, with positive and negative pins), the runtime publish gate's wiring of them, the docs rule-family table and generated reference pages and counts the change regenerates, one changeset (stop on breach; explain in the report)
    Container & model: M, mode:subagent, model: default, effort: high
    Clause-②: no
    Metadata-protocol: narrowed (publish refuses metadata that saves and does not work; precedent #36691, #37513, #37807, #38107)
    Responsibility: n/a — not a defect card
    Thread-read: none
    Premise: holds per the open lines recorded 7103235688 — F1: the option-label check covers start conditions only, decision-node and edge conditions are not judged; F6: the subflow check is a CLI-only warning because the gate's snapshot holds one flow. The dev re-verifies both on main first.
    Serial constraints cleared: no open PR of this seat in packages/lint; overlap-check runs before the push.
    Scope this dispatch: the Flows leftovers F1 and F6, the last open lines of the card. Where F6 cannot be judged at the publish door without a false refusal, the dev records on the card which rule covers it and why, which the card's "Done when" admits. Fixes #35143 if both lines close; otherwise Part of #35143.

  12. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 28, 2026
  13. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#6 · hotlong · session_01Q4EjjQkY5yXZrN9BEA3rEK
    os-dev-report

    {
      "issue": 35143,
      "status": "done",
      "branch": "claude/issue-35143-flows-leftovers",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/38241",
      "session": "session_01Q4EjjQkY5yXZrN9BEA3rEK",
      "premise_still_valid": true,
      "summary": "F1 premise refuted on main 1208460c: flow-condition-option-label already reads every edge condition and decision-node conditions[].expression (and query filter operands) at error on both doors since #37491, with positive and negative pins in flow-publish-checks-second-batch.test.ts; nothing added, and this line on the card records which rule covers it. F6 built: at the runtime publish gate a subflow / map config.flowName is now judged against the names of every flow the deployment holds (registry flows of every installed package, stored flow rows in every state including drafts, the publish batch's pending flows, and the automation engine's listFlows), and a name in none of them is an error; CLI stays a warning; no stated names, an empty set, no automation service or a failed store read gives no verdict; the set is never narrowed to the package closure, so ADR-0150 D3 outside-closure calls are not judged (acceptance note). With both lines closed the PR says Fixes #35143.",
      "tests": "head 3842e189 (before the main merge): @objectstack/lint test 246 files / 9935 tests passed, typecheck exit 0; @objectstack/metadata-protocol test 373 passed + 9 skipped files, 23616 passed + 45 skipped tests, typecheck exit 0; after the facade refactor protocol.runtime-authoring-gate.test.ts 263/263 and typecheck exit 0; spec src/migrations 5 files / 208 tests; cli generate-scaffold-validates 26/26; cli generate-scaffold-gates.e2e + generate-scaffolds-reach-stack.e2e under OS_TEST_TIERS=nightly 2 files / 77 tests; example-showcase author-time-advisories 2/2; no new finding in any of them. New pins: lint 5 cases (CLI warning; runtime refusal with path; map in a loop body; silent on a held name and on self-call; no verdict with no or empty names), metadata-protocol 4 cases through saveMetaItem (422 INVALID_METADATA flow-subflow-unknown and nothing stored; accepted for engine-only, registry, stored draft and stored active targets; no automation service = accepted; pending.flows resolves). Ablation: deploymentFlowNamesOf forced to undefined on disk fails the refusal pin (1 failed / 3 passed), restored from the commit 4/4.",
      "gates": "dispatch-gates --ran with exit codes: 99 derived, 97 exit 0, 2 exit 3 NOT MEASURED (check-plugin-teardown-shape --self-test needs an unshallowed clone; check:dual-build-cjs-loads needs a full build, no dist for studio/client-react/scenarios). check:facade-delegation-only went red on the first tree (protocol.ts over its line ceiling by 12); fixed by moving the reads into protocol-authoring-gate.ts (protocol.ts byte-unchanged); all 55 root check:* families re-run on head 3842e189: exit 0. check:docs-transcript-drift exit 0 (no rule count moves). overlap-check vs origin/main f294277d and PRs #38185 #38164: VERDICT clean exit 0. CI check-runs on PR head bc21970e: in_progress at report time, not awaited.",
      "dogfood_battery": "bc21970e · os-verify-lock VERDICT batch-last-exit 0 (build closure && test joined with &&; only a leading export used ';') held 2876s · Test Files 491 passed / 3 skipped (494) · Tests 4148 passed / 68 skipped (4216) · no failures",
      "mcp_calls": "0 — no MCP GitHub calls",
      "api_writes": "3 — git push (branch); POST pulls via fleet-write relay pr_create (draft #38241, assignee hotlong, read back 9650/9650 bytes); POST issues/35143/comments via post-stamped (this report)",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: seat · Skills-docs follow-up owed: skills/objectstack-automation/SKILL.md subflow row and evals/flows-triggers-approvals.json still say only that os validate warns flow-subflow-unknown · needs a card number from the seat",
        "carrier: none · the engine's package-scoped resolution (ADR-0150 D3 outside-closure) is not judged at the publish door; judging it would need the resolver's verdict there · noted, not filed",
        "carrier: none · the dogfood boot log shows the showcase seeder refusing showcase_invoice_line rows (blank parent currency_code under currencyMode record); seed data, not this diff, battery green · observed, not filed"
      ]
    }
  14. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#6 · hotlong · session_01Q4EjjQkY5yXZrN9BEA3rEK

    Claim note against claim 7236449116, on PR #38241 (dev report 7237903380):

  15. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs

    Seat note · 2026-11-28T17:45Z · answering triage 7243255954 (Request: progress · #35143) · seat 1 does not take this card

    Seat repo:objectstack#1 is winding down on the maintainer's words of 2026-11-28T14:44Z (in-flight work only, no new tasks). A Resume-from: take-over of another seat's card would be a new task, so seat 1 declines it. The claim stays with seat repo:objectstack#6 (hotlong), and the card still needs an online sibling that is taking work. The claimant's last pushed head is untouched.

  16. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · sunhaolin · session_017xRBcSxvUE3fDrox79CL9t

    Waiting for a seat · since 2026-11-28T18:43Z: the holding seat repo:objectstack#6 (hotlong) reads as down (two progress knocks unanswered, 14:09Z and 16:46Z). Its PR #38241 has not moved since this morning. The online sibling repo:objectstack#1 declined the take-over (seat note answering 7243255954: winding down on the maintainer's word, in-flight work only). No other sibling takes area:cloud. So the card waits for a seat (待席). The assignee and the claim stay as they are: ⛔ triage never releases a claim. The maintainer was pushed. Next: the holder resumes, the maintainer names a seat, or a forced takeover order.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:clouddomain:devxpm:dispatchedpriority:p2

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions