Skip to content

Change Owner (2/3 server): single and bulk Change Owner endpoint gated by the object switch, with per-row report #35402

Description

@objectstack-fleet

repo:objectstack#5 · os-bill · session_01Utp6CZrgaiMgTJCnswR6jQ

Blocked-by: #35401

Filing gate: split of #35315 (p1) on seat 5's word, phase 1 part 2 of 3. Direction and scope ruled by the maintainer on #35315: comments 7000556646 and 7000907189 (points 1–3, Bulk, Acceptance additions). Nested under #35315; grade inherited.
Reader: domain:server · area:data (data-1).

维护者速读

  • 用户能看到什么变化:本卡用户无感;它提供改负责人(单条和批量)的服务端操作,界面在第 3 张卡。
  • 为什么做:经理每天要把线索、客户、工单转给别人,默认表单目前改不了负责人。
  • 出错会怎样:权限判断错会让无转移权限的人改走记录,或该能转的转不了;回滚即撤销。
  • 要你做什么:无。

Ask

Done when

Pins: ineligible / switched-off object refused even for a modifyAllRecords holder; edit without transfer refused; bulk per-row report with a mixed batch; queue target. Measure: after a transfer the new owner can edit and the previous owner's access follows the sharing rules (the owner_only_writes floor is keyed on created_by, not owner_id; read it, do not assume).

⛔ Not a claim.

Activity

  1. added
    priority:p1
    pm:blocked
    domain:server
    on Nov 19, 2026
  2. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Claim: PM loop · seat repo:objectstack#4 · card thread · 2026-11-21T15:50Z · intake 「除了交接的工作,后续处理全仓非专题的 p1 任务,包括阻塞 p1 的任务」 (maintainer, os-project-manager's fleet project thread). Blocked-by: #35401 is cleared: #35401 is closed by PR #35583 (merged), so the card leaves pm:blocked in this stroke.
    Session: session_01FEkQ5krBqrrgxCYgjXmfbv
    Thread session: session_01FEkQ5pJZvcko4CsCLefrvi
    Account: os-project-manager
    Branch: claude/issue-35402-change-owner-endpoint
    Worktree: objectstack-issue-35402
    Domain: domain:server
    Seat: repo:objectstack#4
    File surface: the Change Owner server endpoint (single and bulk) in packages/objectql / packages/rest / packages/runtime and the owner of the #30205 transfer report, with tests; one changeset. No ui/**; packages/spec/src/** only if the #35315 ruling requires it (stop and ask the seat first)
    Container & model: L, mode:thread, model: default tier (dispatch-gates --tier: no path-derived mandate), effort: high
    Clause-②: yes — widening: a new Change Owner endpoint (single and bulk), gated by the object switch userActions.transfer from #35401 and the existing transfer verdict
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: none
    Premise: holds (#35401 closed; the maintainer's direction on #35315, comments 7000556646 and 7000907189, binds scope)
    Serial constraints cleared: #35401 merged (PR #35583); #35403 (console, 3/3) and #35315 follow this card and are not claimed by this seat

  3. added
    pm:dispatched
    and removed
    pm:blocked
    on Nov 21, 2026
  4. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Claim: re-declaration of claim 7065185331 (same seat, same session, same thread session) · 2026-11-21T15:51Z · branch corrected to the platform-assigned card-thread branch (the thread session may push only that branch; os-dev.md rule 1)
    Session: session_01FEkQ5krBqrrgxCYgjXmfbv
    Thread session: session_01FEkQ5pJZvcko4CsCLefrvi
    Account: os-project-manager
    Branch: claude/project-thread-l6qorl
    Worktree: objectstack-issue-35402
    Domain: domain:server
    Seat: repo:objectstack#4
    File surface: the Change Owner server endpoint (single and bulk) in packages/objectql / packages/rest / packages/runtime and the owner of the #30205 transfer report, with tests; one changeset. No ui/**; packages/spec/src/** only if the #35315 ruling requires it (stop and ask the seat first)
    Container & model: L, mode:thread, model: default tier (dispatch-gates --tier: no path-derived mandate), effort: high
    Clause-②: yes — widening: a new Change Owner endpoint (single and bulk), gated by the object switch userActions.transfer from #35401 and the existing transfer verdict
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: 7065185331
    Premise: holds (#35401 closed; the maintainer's direction on #35315, comments 7000556646 and 7000907189, binds scope)
    Serial constraints cleared: #35401 merged (PR #35583); #35403 (console, 3/3) and #35315 follow this card and are not claimed by this seat

  5. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Seat routing note · 2026-11-21T15:53Z · file surface of claim 7065200223 widened by one line: a new refusal code CHANGE_OWNER_DISABLED (403) registered in packages/spec/src/api/error-code-ledger.zod.ts under @objectstack/rest, for an object that is structurally ineligible or has userActions.transfer off. Precedent named under SKILL.md 升级与决策 (new value with a same-concept precedent ⇒ seat names the precedent, maintainer veto window): the CLONE_DISABLED / FEEDS_DISABLED family. A new code is Clause-②: yes (already the claim's line); the PR body enumerates the new code, the two routes and the client SDK method, and the contract record reads them.

  6. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-project-manager · session_01FEkQ5pJZvcko4CsCLefrvi
    os-dev-report

    {
      "issue": 35402,
      "status": "done",
      "branch": "claude/project-thread-l6qorl",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36154",
      "session": "session_01FEkQ5pJZvcko4CsCLefrvi",
      "premise_still_valid": true,
      "summary": "Two Change Owner doors under /data: POST :object/:id/change-owner (one record) and POST :object/change-owner (up to 500 ids, per-row report in the #30205 shape). The object switch from #35401 refuses an ineligible or switched-off object as a whole with 403 CHANGE_OWNER_DISABLED, a modifyAllRecords holder included; each record then moves through the ordinary by-id update under the caller, so the owner guard decides edit + transfer and the ADR-0142 queue target. Optional notify under the new record.owner_changed topic; client data.changeOwner / changeOwnerMany.",
      "tests": "core change-record-owner + user-assigned-work 40/40; core full 164 files / 3810 tests passed; rest change-owner-routes + user-work-routes 21/21; rest full first run 8 census failures naming the new module, fixed, the 7 files re-run 960 passed; spec error-code ledger 36/36; rest ledger conformance 23/23; client ledger/URL 12/12; service-messaging full 1060/1060; typecheck core/rest/client/service-messaging clean.",
      "gates": "dispatch-gates --commands derived 127; run locally one by one with exit captured before any pipe. Found and fixed: check:docs (regenerated references), check:liveness (count shard), check:dispatcher-error-vocabulary (sink param renamed), check:engine-double-contract (ledger written, double opened with assertEngineUpdateDispatch); each exit 0 on re-run, plus check:route-envelope, check:entry-nameability, check:exported-any, check:skill-examples exit 0. Not measurable here: check-plugin-teardown-shape --self-test (shallow clone), check:dual-build-cjs-loads and check:i18n (whole-repo build). CI on the PR is the authority; in_progress at report time.",
      "dogfood_battery": "06b053c2 · os-verify-lock VERDICT command-exit 0 · Test Files 1/1 · Tests 6/6 (change-owner-endpoint.dogfood.test.ts only; the full battery is CI's)",
      "mcp_calls": "1 — mcp__github__issue_read (read only)",
      "api_writes": "1 — fleet-write pr_create (#36154); this comment via post-stamped",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": []
    }

    Generated by Claude Code

  7. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Landed · 2026-11-21T22:34Z: PR #36154 merged and its Fixes #35402 closed this card as completed.

    Reading Value
    PR #36154 MERGED; L1 ACCEPT 7068986973 (L1-a), contract PASS 7069002442, landing record 7069013645
    Delivered single and bulk Change Owner endpoints gated by the object switch (CHANGE_OWNER_DISABLED) and per-record edit + transfer rights; nits carried by #35403, #35315, #35399.

    State change: pm:dispatched removed in the same write; the area, domain and grade stay. Nothing is left on this card.

  8. removed
    pm:dispatched
    on Nov 21, 2026
  9. added a commit that references this issue on Nov 22, 2026
    16a96ac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area:datadomain:serverpriority:p1

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions