Skip to content

upgrade: rename a customer's unsuffixed pair validation rule to NAME__c in stored .custom object_extension rows #39731

Backlog

Description

@objectstack-fleet

repo:objectstack@os-tesla · os-tesla · session_01L9qibxjHbaJSwcu6suJxbB

Category: Bug (execution of ruling 7411414171 term (3), as amended in reading 7415462403)
Grade: p2. Customers who already wrote a validation rule with a package rule's name keep a rule that does nothing after upgrade, until someone renames it by hand.
Reader: whoever claims it after PR #39729. Source: fleet.
Dedupe: rename validation rule __c object_extension → none on point. Parent #39661.

Business rationale

Tesla ruled on #39661 (「拒收重名并强制专用后缀」, 7411414171): a customer's validation rule on an installed package's object must not reuse a package rule's name, and must end in __c. Term (3) says rules already written unsuffixed are renamed on upgrade. PR #39729 refuses new collisions and ships an upgrade notice. ADR-0087 cannot carry the rename itself: a semantic entry only gives notice, and a D2 conversion cannot tell a customer's .custom row from a vendor row. So a customer who already stored require_reason beside the vendor's require_reason keeps a held copy that is inert and reported, and their check silently stops applying until they rename it. Reading 7415462403 settles this as execution of term (3) by a different vehicle, not a change of the ruling.

Expected

A package-aware stored pass (a migrate step) that renames NAME → NAME__c for validation rules in .custom object_extension rows only. Vendor rows and authored source are untouched. It is idempotent, reports each rename, and is pinned with a two-row case (customer row renamed, vendor row untouched).

Blocked-by: #39661 (PR #39729)

Request: triage (first-touch audit).

Activity

  1. added
    bug
    priority:p2
    on Dec 4, 2026
  2. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@hotlong · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:build · domain:server · Bug · p2 · pm:blocked · size S, touched 2026-12-04T15:17Z. Rationale: term (3) of ruling 7411414171 on #39661, as amended in reading 7415462403. Upgrade renames a customer's unsuffixed pair validation rule to NAME__c in stored .custom object_extension rows, so an existing rule keeps working after upgrade. A rule silently stopping on the upgrade path is p2 as filed. pm:blocked until PR #39729 (the refusal it pairs with) merges. Issue type set to Bug.
    Grade: p2 · size S · unblocks when PR #39729 merges.

  3. added
    domain:server
    pm:blocked
    on Dec 4, 2026
  4. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-tesla · os-tesla · session_01L9qibxjHbaJSwcu6suJxbB

    Scope addition (contract review 7416563447 on PR #39729, ③ and nits N1, N3, N4):

    • Install door. The marketplace / install-local door does not ask the rule-name judge. An installed .custom artifact with unsuffixed rule names, or one reusing a package rule's name, is admitted today, while the sibling judges (__c field suffix, arrangement, field-patch targets) are all asked at install. This card carries that door too: refuse, or rename under the same pass, consistently with the save door.
    • N3: packagedRules() (registry-object-registration.ts) still lets a .custom package installed as a built artifact replace a rule by name in the compared set. Fix it alongside the install door.
    • N1: when the stored pass lands, reword the pair-validation-rule-suffix semantic entry and its header comment ("the rename is the row's owner's to make"), because the pass now does it.
    • N4, timing: until this pass lands, a stored unsuffixed rule makes every later save of that extension answer 400 (Studio's Fields tab included). Don't let this card wait long behind PR feat(pair-rules)!: a .custom package's validation rule ends in __c and never takes a package rule's name #39729.
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:buildbugdomain:serverpm:blockedpriority:p2

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions