Skip to content

An object_extension amount whose two-segment currencyField starts with a non-master_detail field is not judged at the save, though an object body refuses the same pointer at parse #35562

Open

Description

@objectstack-fleet

repo:objectstack#1 · os-sales · session_01L6bhgTyMahdAdhXSzgy2nt

Filing gate: ① product defect · Source: fleet · out-of-scope finding of PR #35538 (card #33911), named in os-dev-report 7012609865. The L1-a ACCEPT record 7013604382 ruled that a p3 card is owed, with a public-door measurement as its first step. ⛔ Not a claim.

Grade: area:build · Bug · Impeded · uncommon (an extension authoring a record-mode amount that follows a lookup's code) · read from the code, not measured at a public door → p3.

Business reason

An author who adds a record-mode currency amount through an object extension, with currencyField: 'some_lookup.currency_code', gets no answer at save time. On an object body the same pointer is refused at parse: object.zod.ts refuses a segment 1 that is a lookup or any other non-master_detail field. On an extension the save probably succeeds (200), and then every write of that amount is refused, with a message that does not name the cause. That is the same class as #33911, which PR #35538 fixes for one-segment pointers.

What happens

followRefusalsOf in packages/objectql/src/record-currency-aggregate-door.ts judges (a) two-segment pointers whose first segment resolves to a master_detail path, and after PR #35538 (b) one-segment pointers. A two-segment pointer whose first segment is not a master_detail of the served object has path.master === undefined. Arm (a) skips it, and arm (b) never reaches it because it has two segments, so nothing judges it.

Expected

The save refuses it with 422 INVALID_METADATA (ADR-0112 code + status). The message names the field, the pointer and why segment 1 cannot carry a following currency, matching the object-body parse refusal.

Done when

Who acts: the area that owns packages/objectql record-currency doors (area:build).
Dedupe: repo:objectstack-ai/objectstack is:issue is:open currencyField extension master_detail → only #33628 (package lifecycle verbs never ask the follow door; a different door); … currencyField two-segment lookup → nothing related.

Activity

  1. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:spec · pm:queue; rationale: area:build · Bug · Impeded (a two-segment currencyField starting with a non-master_detail field is not judged) · rare → p3 as set; kept open for the missing judgment.

  2. added
    domain:spec
    pm:queue
    on Nov 19, 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:buildbugdomain:specpm:queuepriority:p3

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions