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

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. 3 remaining items

  6. removed
    pm:blocked
    on Nov 19, 2026
  7. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Unlocked: pm:blocked → pm:queue. Its Blocked-by #34776 is closed (the first batch of publish-time checks, PR #35244), so the card is free to claim at its current grade.

  8. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

    Claim: PM loop round 5 · 2026-11-23T10:25Z
    Session: session_01JQwxbZeHNsF3RWcWpj7rGj
    Thread session: session_01JQwxbYLajSVuBY258yrEFn
    Account: os-warren
    Branch: the card thread's own branch, named at its first push; the seat amends this claim then
    Worktree: objectstack-issue-35143
    Domain: domain:devx
    Seat: repo:objectstack#1
    Area: card thread #35143 (w5-C)
    Dispatch: the maintainer's ruling in this seat's project thread, 2026-11-23T10:20Z verbatim 「objectstack area:cloud 也让 objectstack 座位接手」, then the decision card at 2026-11-23T10:21Z: 「p1 和 p2 都接」. p2, child of epic #35160 (publish-time checks shared by every way of building); in line with 「开源项目能做的尽量在开源项目做」.
    File surface: the framework's publish-time lint (packages/** lint/validation rules for the items the card lists), their tests and docs; one changeset per moved package (stop on breach; explain in the report). Item by item: the card lists two dozen, so the thread names a first batch on the card and builds that batch only
    Container & model: M, mode:thread, model: opus — dispatch-gates --tier: no path-derived mandate, default tier; the thread's first report states the served tier, effort: high
    Clause-②: yes — a new publish-time refusal narrows what saves; the thread declares the face (widening for a new error code, narrowing for a new refusal) and the seat runs L2 at the matching tier
    Metadata-protocol: none
    Responsibility: n/a — a feature card (checks the hosted product has and the framework lacks)
    Thread-read: 6996193430
    Premise: the inventory was read on cloud main 0aabf9aa on 2026-11-18; the thread re-reads each listed check against current main (some may have landed via #34776) before code
    Serial constraints cleared: no open PR names #35143; #34776 (first six) landed or is checked by the thread first

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbYLajSVuBY258yrEFn

    Premise reading, all four families · read at 2026-11-23T10:31Z on objectstack main 9348f02b, against the hosted source it was inventoried from (cloud main 777e8e2, packages/service-ai-studio/src/verify/graph-lint.ts, read only)

    Card thread for claim 7097943444. Order: one PR per family, Flows first. Nothing from #34776 (PR #35244) overlaps this card's lines: that batch shipped node-type executors, approval decision edges, http timeouts, initialStates and action bindings. Lines below marked covered landed through other work since the inventory.

    Flows (built in this card's first PR)

    # Line on the card Verdict on main Evidence Plan
    F1 condition or field value uses a select option's label holds no rule compares a start condition or a CRUD fields literal with the options; the record validator refuses an off-list value at run time (objectql/src/validation/record-validator.ts:1892, invalid_option), so the step fails the run two rule positions: start condition (label quoted, value not), CRUD write of a literal that is not an option value
    F2 record-change start with no object holds, consequence corrected the binding passes object: undefined (service-automation/src/plugin-extension-api.ts:254), and an undefined hook target registers on every object (objectql/src/engine-top-level.ts:3863): the flow fires on every object's write, it does not bind to nothing error, message says what really happens
    F3 self-retriggering flow guarded only by a boolean it writes refuted on main both halves of the failure are fixed: the engine's re-entry guard keyed flow::record stops the nested re-fire (service-automation/src/engine.ts:3208), and driver-sql reads a stored 1/0 back as a boolean (drivers/driver-sql/src/sql-driver-column-creation.ts:980), so is_x != true trips not built
    F4a time-relative trigger shadowed by a record-* triggerType holds resolveFlowTriggerKind answers record_change first (spec/src/automation/flow-trigger-kind.ts:76) error
    F4b filter / maxRecords beside the descriptor holds the sweep reads only config.timeRelative.filter; the binding forwards schedule and condition (plugin-extension-api.ts:271-293) error
    F4c unknown swept object covered flow-trigger-unknown-object on config.timeRelative.object (lint/src/validate-flow-trigger-readiness.ts:793) nothing to add
    F4d swept field missing or not a date holds no rule reads dateField against the object error
    F5 schedule with no timezone holds an absent timezone runs in UTC (triggers/trigger-schedule/src/schedule-trigger.ts:251) warning
    F6 subflow step naming a flow that does not exist holds no rule reads subflow/map config.flowName; the node fails at run time (builtin/subflow-node.ts:175) see note 1
    F7a date helper in a plain string holds a bare string in a value slot is a literal (spec/src/automation/builtin-node-config.zod.ts:533) error on a date/datetime target
    F7b CEL faulting on a date-only value covered #34451: timestamp(record.DATE_FIELD) in a flow value envelope is refused under date-text-call (lint/src/validate-expressions.ts:3189, engine registerFlow the same) nothing to add
    F8 after-create and after-update flows doing the same thing holds nothing compares flows warning

    Note 1: the runtime publish gate judges a flow write over a snapshot whose flows holds only the written item (authoring-rules.ts, the validateFlowTriggerReadiness entry), so a call to another stored flow cannot be resolved there without a false refusal. F6 is CLI-side; same for F8, which needs two flows.

    Data model (later PR; read, not built)

    # Line Verdict Evidence / where it would extend
    D1 count/total-named field typed as lookup holds no name-shaped rule beside field/missing-value-domain (lint/src/data-model-rules.ts:1123)
    D2 formula reading a summary with no configuration covered at the root field/summary-without-operations refuses the summary itself (spec/src/kernel/functional-completeness.ts:110); the finding does not name the dependent formula
    D3 summary whose child has no reference back holds lintSummaryRollups skips an unresolved child (data-model-rules.ts:891)
    D4 reference on a type that reads none holds the schema refuses only lookup/master_detail without it and user with a foreign one (spec/src/data/field.zod.ts:3413, :3448)
    D5 approval detail field editable while pending holds, narrower the record lock and master_detail child lock are runtime (plugins/plugin-approvals/src/lifecycle-hooks.ts:522); open cases are lockRecord: false and lookup children

    Views, dashboards, app shell (later PR; read, not built)

    # Line Verdict Evidence
    V1 board grouped by a non-select field holds kanban.groupByField is checked for existence only (validate-list-view-field-refs.ts:750)
    V2 dashboard with no widgets holds widgets has no minimum (spec/src/ui/dashboard.zod.ts:1797)
    V3 view filter on a formula field partial only a dotted path through a formula head is reported (validate-list-view-field-refs.ts:1148); the engine refuses every formula filter
    V4 object no nav reaches / app with no nav / object with no view holds nav rules check targets and servability only; an object with no view falls back to an all tab

    Seeds and actions (later PR; read, not built)

    # Line Verdict Evidence
    S1 seed key that is not a field partial defineSeed refuses unknown keys; the runtime save door checks only externalId (metadata-protocol/src/protocol-save-door-refusals.ts:1063)
    S2 seed / flow node / action on an object that does not exist partial seeds: defineStack and the save door; actions: defineStack only; flow CRUD nodes: nothing (validate-flow-node-writes.ts skips an unknown object). The flow-node part goes with the data-model or seeds PR, not this one
    S3 action body writes without the write capability holds validate-action-body-writes.ts parses the calls but does not compare them with the declared capabilities

    Generated by Claude Code

  11. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbYLajSVuBY258yrEFn
    os-dev-report

    {
      "issue": 35143,
      "status": "done",
      "branch": "claude/project-thread-jju3py",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36691",
      "session": "session_01JQwxbYLajSVuBY258yrEFn",
      "premise_still_valid": true,
      "summary": "Flows family only, per the seat's order; the PR says Part of #35143 so the card stays open for the other three families. Seven publish-time errors (record trigger with no object, option label in a start condition, time-relative shadowed / keys misplaced / dateField not a date, CRUD write of an unknown option or of date-helper text) and three warnings (cron with no timezone, unknown subflow target as a CLI-only rule, create/update pair). F3 refuted on main, F4c and F7b already covered, F6 is a CLI-only warning because the gate sees one flow. Upgrade-guide entry publish-refuses-flows-that-save-and-do-not-run registered; Metadata-protocol none per the order, though the #34776 precedent declared narrowed for the same class.",
      "tests": "@objectstack/lint full suite under the lock: 228 files / 9501 tests passed (exit 0). spec src/migrations: 5 files / 200 tests passed. example-todo 267/267, example-showcase 554/554. objectstack validate on app-crm, app-todo, app-showcase: exit 0, zero findings from the ten new rules. New test file pins each rule positive and silent, the runtime-gate refusal of each error, and a connectorConfig regression for the pair rule.",
      "gates": "dispatch-gates --ran: 97 derived families accounted, 94 exit 0, 3 exit 3 not measured in this container (check-plugin-teardown-shape --self-test needs an unshallowed clone; check:dual-build-cjs-loads needs a full build; check:type-check-debt queued behind the dogfood lock, re-run in progress and reported on the PR body). check:docs-transcript-drift was red on four transcripts printing the rule count, fixed in the PR. check-adr-0087-registration: registered. check-nul-bytes OK. overlap-check vs origin/main c1e6cf75a and PR #36629: clean, exit 0. CI check-runs: pending on head ee53786b5.",
      "dogfood_battery": "ee53786b5 (same tree as the run; the run predates only the commit squash) · os-verify-lock VERDICT command-exit 0, held 2314s · Test Files 487 passed / 3 skipped (490) · Tests 4121 passed / 68 skipped (4189) · no failures",
      "mcp_calls": "read-only: issue_read on #35143, #35160; no MCP write tools",
      "api_writes": "3 — POST issues/35143/comments (premise table, post-stamped), POST pulls (draft #36691 via gh api, not the fleet-write relay, so the relay's reviewer request did not run), POST issues/35143/comments (this report)",
      "open_questions": [
        { "question": "Metadata-protocol for a new publish refusal: keep none (the order) or narrowed (the #34776 precedent)?", "options": ["A keep none, patch", "B narrowed, minor on @objectstack/lint"], "recommendation": "seat's call at L2; the changeset and PR body both carry none today" }
      ],
      "security_findings": "none",
      "out_of_scope_findings": ["carrier: #35143 · skills text that teaches these ten traps is owed (Skills-docs: follow-up owed) · noted, not filed"]
    }

    Generated by Claude Code

  12. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbYLajSVuBY258yrEFn
    os-dev-report

    {
      "issue": 35143,
      "status": "done",
      "branch": "claude/project-thread-jju3py",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36691",
      "session": "session_01JQwxbYLajSVuBY258yrEFn",
      "premise_still_valid": true,
      "summary": "Final report after the contract-review rework (r1 FAIL 7100465508, r2 PASS 7100699767). Head 4466c0cc8. M1: Metadata-protocol narrowed, @objectstack/lint minor. M2: flow-condition-option-label judges a label only as its own field's comparand. S1: a blank objectName has its own never-bound message. S2: the cron examples in flows.mdx and two spec docblocks state timezone UTC, and the reference pages are regenerated. Two test-only commits followed r2: a metadata-protocol fixture that swept a text field, and a module-top lint import that the test-source alias gate asked for.",
      "tests": "lint 228 files / 9503 tests; metadata-protocol 23352, service-automation 4258, verify 500, mcp 1467 (all under the lock, exit 0); spec migrations 200; example-todo 267, example-showcase 554; validate on crm/todo/showcase exit 0 with no new-rule findings. M2 ablation: restoring the old flow-select-options.ts fails the new silent pin (1 failed / 34 passed); the fix passes 35/35.",
      "gates": "dispatch-gates --ran on the rework tree: 122 derived, 121 exit 0, 1 exit 3 (check-plugin-teardown-shape --self-test needs an unshallowed clone). check-test-source-alias OK. CI on 4466c0cc8, latest attempts: Test Core 10/10, Test UI, TypeScript Type Check, Lint & Repo Gates, Dogfood Regression Gate, PR-body guards all success. Test Core 9/10 first failed in plugin-auth password-reset-ends-added-access.test.ts:538 (an OAuth grant assertion, a package this diff does not reach). The same test passes 37/37 locally and passed on 7bc8e8a6e. One rerun-failed through the fleet-write relay turned it green.",
      "dogfood_battery": "ee53786b5 · os-verify-lock VERDICT command-exit 0, held 2314s · Test Files 487 passed / 3 skipped (490) · Tests 4121 passed / 68 skipped (4189) · no failures. Later heads change the label matcher, one message, docs, docblocks and two metadata-protocol tests. The Dogfood Regression Gate passed in CI on 4466c0cc8.",
      "mcp_calls": "read-only: issue_read on #35143 and #35160; no MCP write tools",
      "api_writes": "8 — POST issues/35143/comments x3 (premise table; first report 7100228457; this report), POST pulls (draft #36691 via gh api), PATCH pulls/36691 body x3 (via gh api), run_rerun_failed on run 45178328393 via the fleet-write relay",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: #35143 · F6 ships as a CLI-only warning (the gate's snapshot holds one flow), so the hosted copy of the subflow check cannot be deleted on this PR · open line",
        "carrier: #35143 · F1 label check covers start conditions only; decision-node and edge conditions are not judged · open line",
        "carrier: seat · Skills-docs follow-up owed (automation SKILL.md, examples-flows.md, integration-recipes.md; r2 also names examples/app-showcase flows/index.ts:445 and :2047, trigger-schedule README.md:130, flow-start-config-refusals.ts:129) · needs a card number from the seat"
      ]
    }

    Generated by Claude Code

  13. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

    Returned to queue · 2026-11-23T16:53Z: #36691 merged, so the Flows family is done (Part of, the card stays open). The card thread has closed. The open lines (F6, F1 and the other three families) are not dispatched, so the seat takes pm:dispatched and its assignee off and puts the card back on pm:queue. The Skills-docs follow-up is tracked on #36718.

  14. added
    pm:queue
    and removed
    pm:dispatched
    on Nov 23, 2026
  15. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

    Triage: lands in area:cloud · domain:devx · Feature · priority:p2 · pm:queue · size M; rationale: the second batch of publish-time checks for metadata that saves but does not work, the host-only ones. Its first batch (#34776) landed. The Flows family is done (#36691), and the card stays open for the rest.

    Audit record in the shape the claim check reads. The unlock of 2026-11-19T00:50Z used another opening. Route: area:cloud.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:clouddomain:devxpm:queuepriority:p2

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions