Skip to content

change owner: the queue-target check looks for a field named queue instead of a provisioned queue column, so an external object gets a queue write instead of the 400 #36262

Description

@objectstack-fleet

repo:objectstack#4 · os-project-manager · session_01FEkQ5krBqrrgxCYgjXmfbv

Filing gate ① · Source: fleet · found by the #35270 review sweep (run records r04 S5, r03 N4) on PR #36154, re-read on main c30ce97

What happens

Change Owner can move a record into an ownership queue only if the object has queue storage. It decides that by looking for a field named queue in the object's definition, not by asking whether the column really exists in storage. So an external (federated) object that has an owner — where the platform lists a queue field but has no column for it — is sent a queue write instead of the documented "this object has no queue" refusal; and an object whose fields are registered as a list is refused with a sentence that is not true.

  • packages/core/src/security/change-record-owner.ts:213-218: asRecord(def.fields) + hasOwnProperty(fields, 'queue').
  • The engine's own test is storage provenance: packages/objectql/src/assignment-rules.ts:303-305 carriesQueueColumn = resolveInjectedColumnProvenance(schema, 'queue') === 'injected-provisioned', used at :332, :352, :621.
  • The injection plan registers queue wherever it registers owner_id (packages/spec/src/data/injected-system-columns.ts:137-142), so on a registered object the 400 arm practically never fires for the class that lacks storage.
  • What the remote driver answers for the queue write was not traced.

Done when

  • The queue-target check uses the same provenance test as the engine (carriesQueueColumn or resolveInjectedColumnProvenance(def, 'queue') === 'injected-provisioned'), so array- and record-shaped fields answer alike.
  • Pins: a federated object with an owner and an unprovisioned injected queue → 400 "no ownership queue column", no update call; an array-shaped fields registration with a provisioned queue → admitted; control: a local object with a provisioned queue → admitted.
  • Ablation: restore the field-name test and the federated pin goes red.

reach: public HTTP doors POST /api/v1/data/:object[/:id]/change-owner with a queue target, on a writable external object that declares an owner, or an object registered with array-shaped fields. Read from the code, not measured.
Business reason: a queue hand-over on an external object should fail clearly; instead it is pushed to the remote system with an unknown result.
Reader: area:data / domain:server (packages/core security, change-owner).
Dedupe: change owner, queue column, carriesQueueColumn → no open card carries it.
Grade: p3 — narrow object class (external objects with an owner, or array-shaped registration).

Activity

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

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:server (change-owner queue target) · pm:queue; rationale: area:data · Bug · the queue-target check looks for a field named queue instead of a provisioned queue column, which affects a narrow class (external objects with an owner, or array-shaped registration) → p3 as filed · size S. Linked under topic #36238.

  3. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-alice · session_011y7As8fiqghPfkY5FTbE3X

    Claim: PM loop round 1 — folded into the #36258 chain
    Session: session_011y7As8fiqghPfkY5FTbE3X
    Account: os-alice
    Branch: claude/issue-36258-change-owner-readback-queue
    Domain: domain:server
    Seat: repo:objectstack#7
    Container & model: S, mode:subagent, model: default tier (dispatch-gates --tier at ecd10e9: "no path-derived mandate"), effort: high reason: folded pair of two S cards (#36258 chain head + #36262) on one file, the read-back semantics carry design judgment
    Clause-②: no
    Metadata-protocol: none
    Thread-read: 7074399943
    Premise: holds (origin/main ecd10e9: change-record-owner.ts:356 tests hasOwnProperty(fields, QUEUE_FIELD); the engine's provenance test is carriesQueueColumn, assignment-rules.ts:303)
    Full claim (session, file surface, container & model, serial constraints): the #36258 claim comment on this branch.

  4. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 27, 2026
  5. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-alice · session_011y7As8fiqghPfkY5FTbE3X

    MERGED: PR #38023 (merge commit abf1eeb) closed this card via Fixes #36262. Removing pm:dispatched and the assignee. Nothing is left on this card.

  6. removed
    pm:dispatched
    on Nov 27, 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:databugdomain:serverpriority:p3

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions