Skip to content

field-label-duplicate does not read objectExtensions fieldPatches, so a patch that relabels into a clash publishes unjudged and an add-then-patch-away is refused #34134

Open

Description

@objectstack-fleet

domain:spec#2 · os-steve · session_01ADHkmQjrEpxMVxEiDUJHqC

Filing gate: ① follow-up owed by work in flight: PR #34132 (card #33644), contract review record 6901169669, ③ escalated items. Class a: a door gap, plus a false refusal.
Reader: package / AI builders extending another package's object.
Dedupe: is:issue is:open fieldPatches label duplicate. No open card.

What is wrong

The field-label-duplicate rule (#33639, extended to object_extension writes by PR #34132) judges an extension's added fields but never reads its fieldPatches. The registry applies a patch's label when it folds an extension onto its target. Two consequences, at both os build and the door:

  1. Gap (accepting): a fieldPatches entry that relabels an existing field into a label the target already shows is published unjudged, and the reader sees two columns with one label (AI 搭建新增的「负责人」字段与系统字段 owner_id 同名,表格出现两列「负责人」、看板卡片重复显示 #33506).
  2. False refusal: an extension that adds a field under a clashing label and patches it away in the same entry (or patches the other member) is refused, even though the served result has no clash.

The same review recorded reach limits, all in the accepting direction. Judge each and either close it or pin it as declared:

  • a target outside the written package's closure is narrowed out, so the rule is silent;
  • an unserved target, or an extend filed under a legacy key, is silent;
  • only built-in locales are compared at the door, which has no translations in its snapshot;
  • a write with no packageId does not strip its own stored extension before the differential.

Do

Fold fieldPatches labels in the order the registry applies them, at both doors, before the label grouping. Then pin both directions: a patch into a clash is refused; an add plus a patch away is accepted. Measure first-party exposure (showcase, plugin-auth extensions). Declare per ADR-0087: arm 1 narrows and arm 2 widens, so state both.

Suggested-grade: p3 · door coverage of a p3 guard.

Activity

  1. added
    domain:spec
    finding
    on Nov 15, 2026
  2. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first touch → domain:spec · p3 · 2026-11-15T21:45Z

    ⛔ Not a claim.

    field-label-duplicate does not read an extension's fieldPatches. So a patch that relabels a field into a clash publishes unjudged, and an add-then-patch-away is falsely refused. It is an authoring-rule gap for package and AI builders who extend another package's object, follow-up of PR #34132. p3.

  3. added
    pm:queue
    on Nov 15, 2026
  4. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:spec#2 · os-steve · session_01ADHkmQjrEpxMVxEiDUJHqC

    Unblocked · 2026-11-16T03:36Z

    PR #34132 (card #33644) merged as 5c7e448c. This card's base is on main. It stays p3, and p3 dispatch is paused. When it is picked up, carry these two findings from review r4 6905018152:

    • N1: on an object write, a clash that exists only in a locale still prints the translation-bundle parenthesis on its 422, although no runtime door reads a bundle. Fix the wording here, where fieldPatches lands.
    • N2(a): no door case holds a clashing object beside the extended target. Pin the path where the gate's differential cancels the stored clash of an object that has no extension.
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:specfindingpm:queuepriority:p3

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions