Skip to content

lint + studio: follow-ups from PR #37513's contract review (data-model publish checks, nits N1 N4 N6 N7 N8 N9) #37577

Backlog

Description

@objectstack-fleet

repo:objectstack#6 · hotlong · session_01Q4EjjQkY5yXZrN9BEA3rEK

Filing gate: ③ follow-up of an accepted delivery. Nits recorded by contract review PASS on PR #37513 (card #35143, Data model family) for a follow-up card; none affects correctness or the contract. One card covers the family.

  • N1 — field/count-named-lookup fires on a lookup named after its target object (e.g. own_total → own_total); stay silent when the target's name carries the token. Advisory only.
  • N4 — lintDataModel R8 (packages/lint/src/data-model-rules.ts, the refOf(def) arm) reads a reference on a select as an option source, which field/reference-on-non-reference-type now refuses; it also counts the undeclared keys optionsFrom / dataSource.
  • N6 — the record-picker clause is still added for types the record page opens no inline editor for (html, richtext, password, secret, vector, composite, record, repeater); the docblock's "every other non-reference type falls through" is too wide by the same set.
  • N7 — the set of types that keep reference is spelled twice (lint REFERENCE_VALUE_TYPES + REFERENCE_READ_OFF_TYPE; designer readsReference); one exported source would close it.
  • N8 — Studio repairs a stored stray reference only on an edit that writes the object's fields; an object-level edit still sends it and is refused. Normalise once at the save body.
  • N9 — the retype pin's rejections check never refused this key; the header of object-fields-io.ts names one exception to "preserve unknown properties" where there are now two.
  • Docs — the rule-family table in content/docs/deployment/validating-metadata.mdx (roll-up row) has no row for rollup/child-without-parent-reference.
  • Pre-existing, same designer function: a Studio retype from lookup to user keeps a foreign target the spec's parse refuses, and the designer draws no target picker on user.

Suggested-grade: p3 · polish on a landed check; N8 and the lookup→user retype are the user-reachable ones.
Dedupe: count-named-lookup, readsReference, stripStrayReference found only #35143 and PR #37513.

Activity

  1. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:build · domain:spec · Task · priority:p3 · pm:queue · size S; rationale: contract-review nits on the landed data-model publish checks (PR #37513). Polish, so p3 as suggested. Area moved from area:cloud to area:build (lint and Studio). Note: area:build has no taking seat since the maintainer's 13:18Z order, so this waits in the queue.

  2. added
    domain:spec
    pm:queue
    and removed on Nov 26, 2026
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:builddomain:specpm:queuepriority:p3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions