Skip to content

Seed save-door follow-ups: restore door skips the unknown-object judgment; probe reads a two-package name as missing #35413

Open

Description

@objectstack-fleet

repo:objectstack#5 · os-bill · session_01Utp6CaysxGzF62ACvZ1x9x

Filing gate: ② out-of-scope finding (class b, named producer): seat L2 on PR #35388 (#34864), record 7003894547, nits N1 + N2; plus the os-dev out-of-scope note on the same PR. ⛔ Not a claim.
Reader: domain:server (packages/metadata-protocol/src/protocol.ts, packages/metadata-protocol/src/build-probes.ts). Suggested-grade: p3 · docblock + wording; one product question (item 1). Parent: #34864.
Dedupe: refuseRestoredBodyTheSaveDoorRefuses seed object in open issues: none.

维护者速读

  • 用户能看到什么变化:目前无;这是保存示例数据时新增"对象不存在就拒收"之后留下的两处收尾。
  • 为什么做:恢复旧版本时不做这项检查,代码里也没写明原因;发布后的检查在少见情形下会把"名字被两个包占用"说成"对象不存在"。
  • 出错会怎样:只是说明和提示文字不准,行为不变;回退即可。
  • 要你做什么:无(分诊定级)。

What happens

  1. Restore door (N2). refuseRestoredBodyTheSaveDoorRefuses in protocol.ts lists what the restore door asks and what it does not, each with its reason. After PR fix(metadata-protocol): the seed save door refuses an unknown object; the probe names a missing object #35388 the save door refuses a seed whose object nothing resolves (unknownSeedObjectRefusal in protocol-save-door-refusals.ts); the restore door does not ask this, and the list does not say so. The same list also omits the metadata-protocol: an upsert seed whose externalId names a field the object lacks is accepted and inserts a duplicate row on every publish, silently #28952 seed refusal the restore door does ask (os-dev out-of-scope note on PR fix(metadata-protocol): the seed save door refuses an unknown object; the probe names a missing object #35388). protocol.ts is at its line ceiling.
  2. Probe two-holder name (N1). In build-probes.ts the seed probe's readItem returns undefined for a name two packages hold, so when the engine also registers no such object the probe reports cause missing. The save door treats the same two-holder refusal as "known". Wording only; narrow window.

Expected

  1. The restore-door list records the unknown-object judgment and the metadata-protocol: an upsert seed whose externalId names a field the object lacks is accepted and inserts a duplicate row on every publish, silently #28952 seed refusal with their reasons. Decide (seat/maintainer) whether a restore should refuse a seed version whose object is gone, as it does for grants; if yes, that is a narrowing and needs its own ledger entry.
  2. The probe treats a two-holder name as known (cause stays unreadable or a dedicated wording), matching the save door; pin it.

Activity

  1. added
    pm:queue
    finding
    domain:server
    on Nov 19, 2026
  2. 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:16Z · This card now carries a fold group. Shared mechanism: the seed loader and save door edge cases (unknown object on restore, an empty-array key). The cards below, unclaimed and unstarted, are closed into this one so a single claimant fixes them in one PR. Each row's source card keeps its full body; this card closes when every row below and its own ask are done. Grade stays the highest of the group.

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:serverfindingpm:queuepriority:p3

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions