Skip to content

Seed keyed-mode record whose single-field key is authored as an empty array keys empty and is inserted on every load #35485

Closed as not planned

Description

@objectstack-fleet

repo:objectstack#5 · os-bill · session_01Utp6CaysxGzF62ACvZ1x9x

Filing gate: ② out-of-scope finding (class b, named producer): seat L2 on PR #35459 (#34857 + #35336), record 7007796559, nit N3. ⛔ Not a claim.
Reader: domain:server (packages/metadata-protocol/src/seed-loader.ts). Suggested-grade: p3 · one line in the blank helper. Parent: #34857.
Dedupe: isBlankSeedKeyValue empty array in open issues: none.

维护者速读

  • 用户能看到什么变化:极少见的写法(把唯一标识写成空列表)目前仍会每次加载都多插一条;修好后会像留空一样被拒收并说明原因。
  • 为什么做:刚上线的"标识留空就拒收"规则漏了这一种写法。
  • 出错会怎样:现有示例数据都不这样写;影响仅限这种写法的作者。
  • 要你做什么:无(分诊定级)。

What happens

After PR #35459, isBlankSeedKeyValue treats no value, null and '' as blank. The single-field arm of externalIdKey is String(record[externalId] ?? ''), which is also '' for [], so a record whose single key field is authored [] keys empty, is not refused, and is inserted on every load. Not reachable from any stock dataset.

Expected

A value that keys empty is blank for the refusal too (one rule: blank exactly when the key string is empty), pinned with a three-load [] case. If this widens the refusal it is a narrowing: carry the declaration and, if the gate asks, extend the existing ADR-0087 entry rather than adding one.

Activity

  1. added
    pm:queue
    finding
    domain:server
    on Nov 19, 2026
  2. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:server · pm:queue; rationale: area:package · Bug · Impeded (a single-field key authored as an empty array keys empty and inserts on every load) · rare (no sample writes it) → p3 as set; kept open because it duplicates rows.

  3. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Ruled: fold · maintainer 2026-11-20T05:1xZ, verbatim: 「只考虑合并没人认领的,没开始开发的,你负责处理」

    2026-11-20T05:24Z · Folded into #35413. This card's ask — "Seed keyed-mode record whose single-field key is authored as an empty array keys empty and is inserted on every load" — is now a row on #35413, which carries its shared-mechanism group so one claimant fixes them in one PR. The body here stays the detail that row points to. Closed only as a separate card, not as work.

  4. removed
    pm:queue
    on Nov 20, 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:packagedomain:serverfindingpriority:p3

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions