Skip to content

Change Owner (1/3 spec): object switch userActions.transfer and structural eligibility for the Change Owner action #35401

Closed
1 of 1 issue completed

Description

@objectstack-fleet

repo:objectstack#5 · os-bill · session_01Utp6CZrgaiMgTJCnswR6jQ

Filing gate: split of #35315 (p1) on seat 5's word, phase 1 part 1 of 3. Direction and scope ruled by the maintainer on #35315: comments 7000556646 (dedicated Change Owner action) and 7000907189 (points 1–6). Nested under #35315; grade inherited.
Reader: domain:spec · area:data (data-2). Clause-② yes (widening: a new authorable key) → contract review.

维护者速读

  • 用户能看到什么变化:本卡用户无感;它让对象作者能声明「这个对象是否提供改负责人操作」。
  • 为什么做:改负责人操作已定为平台标准能力,但不该出现在所有对象上(你 05:44 的裁定)。
  • 出错会怎样:开关读错会让管理员在明细、系统对象上看到无意义的按钮,或该有的对象没有;回滚即撤销。
  • 要你做什么:无。

Ask (ruling 7000907189 point 1)

  • Structural eligibility (derived, not overridable): resolveInjectedSystemColumns(def).owner === true and owner_id not declared readonly. So ownership: 'business_unit' | 'org' | 'none', managedBy objects and sys_* objects are never eligible. Export one helper both server and console call.
  • Object switch: new userActions.transfer, same shape as the existing entries (boolean | { enabled, visibleWhen, disabledWhen }). Derived default when omitted: on for sharingModel private / public_read / public_read_write; off for controlled_by_parent.
  • enabled: true on a structurally ineligible object is refused at parse or lint (ADR-0049).
  • Generated baselines, forms, docs and liveness ledger per the repo's spec-key rules.

Done when

Pins: eligibility true/false per ownership, managedBy, sys_*, readonly owner_id; derived default per sharingModel; explicit on/off overrides; refusal of enabled: true on an ineligible object. Consumers: #35315 server and console cards (Blocked-by this one).

⛔ Not a claim.

Sub-issues

Sub-issues

1 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. added
    priority:p1
    pm:queue
    domain:spec
    on Nov 19, 2026
  2. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CajiB6BSQKWowy6YLB

    Claim: PM loop round 7 · area data-2 (p1, routed by seat 5; split of #35315) · 2026-11-19T08:09Z
    Area: data-2
    Session: session_01Utp6CajiB6BSQKWowy6YLB
    Account: os-bill
    Branch: claude/issue-35401-user-actions-transfer
    Worktree: objectstack-issue-35401
    Domain: domain:spec
    Seat: repo:objectstack#5
    File surface: packages/spec/src/data/object.zod.ts (userActions.transfer entry, its derived default, the ADR-0049 refusal of enabled: true on an ineligible object), one exported eligibility helper beside packages/spec/src/data/injected-system-columns.ts, the object form / Studio form rows the spec-key rules require, generated baselines (api-surface, export-origins, authorable-surface, liveness ledger), reference pages, tests, root .changeset/. ⛔ No server endpoint, no console action (#35402, #35403), no docs/adr/**, no skills/** (follow-up owed if a skill lists userActions keys). Stop on breach and report.
    Container & model: M, mode:subagent, model: default — no path-derived mandate, effort: high
    Clause-②: yes (widening)
    Metadata-protocol: added
    Responsibility: packages/spec in objectstack has no per-object switch for the Change Owner action, so it would show on every owner-bearing object including details; no platform path covers it; every admin and object author once Change Owner ships (#35315)
    Thread-read: none
    Premise: holds — on origin/main: userActions (object.zod.ts ~1565–1640) has no transfer entry; resolveInjectedSystemColumns exists in injected-system-columns.ts
    Serial constraints cleared: PR #35387 (#35045, same area) edits object.zod.ts refusal text in another function; overlap-check decides at push
    Pre-claim lane: domain:spec (packages/spec/**)
    Pre-claim deps: none; #35402 and #35403 are Blocked-by this card
    Prior rulings read: Change Owner, transfer, userActions, ownership, owner_id → maintainer ruling 7000907189 points 1–3 bind verbatim (structural eligibility not overridable; switch default by sharingModel; enabled: true on ineligible refused, ADR-0049; switch gates the action, not the raw write); 7000556646 (dedicated action); ADR-0049 enforce-or-remove; none conflicts

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CajiB6BSQKWowy6YLB

    Claim released · area data-2 · 2026-11-19T15:25Z

    The maintainer handed the data area to a new seat; area data-2 releases this card unstarted on the platform (no commit, no PR). Back to pm:queue, unassigned, for the new seat.

    Handover: the dev finished the work, but its commit was refused by the session's command classifier before any push. The branch claude/issue-35401-user-actions-transfer exists on the remote at a main commit with no commits of its own. The finished diff is saved as the project file objectstack-seat5/area-ux/data-2/wip-35401.patch (applies to the main of its day; re-read against the current main before reuse). The dev's report and the claim above on this thread carry the design; nothing in the patch has been reviewed.

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CajiB6BSQKWowy6YLB

    Release withdrawn · area data-2 · 2026-11-19T15:27Z

    The release above is withdrawn: the maintainer asked in the area thread to re-claim this card and to commit it to its card branch and open a draft PR. The original claim on this thread stands unchanged (Area, Branch, File surface, declarations). Area data-2 finishes it: commit, draft PR, review, landing and close-out.

  7. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 19, 2026
  8. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CajiB6BSQKWowy6YLB
    os-dev-report

    {
      "issue": 35401,
      "status": "done",
      "branch": "claude/issue-35401-user-actions-transfer",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/35583",
      "session": "session_01Utp6CajiB6BSQKWowy6YLB",
      "premise_still_valid": true,
      "summary": "Round 2 finished the round-1 work: the PM's round-1 commit message carried a card relation (Refs), so it was re-recorded via git commit-tree with the identical tree and parent 7ece0204a (new effac35ec), and the merge of origin/main cf6bb70e2 re-recorded on top with the identical tree (38350f793); both were unpublished, nothing published was rewritten. The four deferred artifacts (api-surface, export-origins, object.mdx, migration.mdx) were regenerated from the merged tree in one plain commit 5c5036bf02, restoring main's entries the merge driver had deferred; the delta against origin/main is exactly the four new exports and the transfer reference row. Pushed 7ece0204a..5c5036bf02 (pre-push trailer check green) and opened draft PR #35583 via relay pr_create, assigned os-bill, body read back byte-identical. A1: transfer reuses RowCrudActionOverrideSchema beside the CRUD entries; it does not join the managedBy write-locked buckets because the structural test already makes every managedBy object ineligible. A2: the userActions container stays recorded in the undrilled-containers baseline, so the planned-reader verdict lives in the container's liveness note; the refusal is live at parse, resolveUserActionTransfer is the reader the follow-up cards will call. A3: sharingModel omitted resolves the transfer default to on (a custom object resolves to private), pinned in user-action-transfer.test.ts.",
      "tests": "At 5c5036bf02, under os-verify-lock: pnpm --filter @objectstack/spec test -> Test Files 857 passed (857), Tests 27424 passed | 1 todo (27425), VERDICT command-exit 0. pnpm --filter '@objectstack/platform-objects^...' build && pnpm --filter @objectstack/platform-objects test -> Test Files 124 passed (124), Tests 2061 passed (2061); then platform-objects typecheck and spec typecheck in the same run (script names echoed in the log), VERDICT command-exit 0. No ablation: round 2 changed no tested behaviour (regenerated artifacts only).",
      "gates": "Local, at 5c5036bf02: pnpm --filter @objectstack/spec check:generated -> exit 1 before regen (3 stale: api-surface, export-origins, references), exit 0 after (All 14 generated artifacts are up to date). node scripts/check-i18n-bundles.mjs exit 0. node scripts/check-commit-card-trailers.mjs --range origin/main..HEAD exit 0, and again in pre-push (3 messages clean). node scripts/pm/overlap-check.mjs exit 1: conflicts only with draft PR #35510 in object-lifecycle-panel-echo-decisions.test.ts (same positive-control count, 742 here vs 744 there; whoever lands second takes 745); clean vs origin/main and #35565. dispatch-gates --commands derived 118 families; all 118 run with exit captured before any pipe: 117 exit 0, 1 exit 1 = pnpm check:platform-checklist (platform-core.seed-mode-matrix VARIANTS STALE, SeedMode has 0 members); inputs byte-identical to origin/main cf6bb70e2 (git diff --quiet exit 0 on seed.zod.ts, docs/qa/platform-checklist, the checker), so not from this diff. dispatch-gates --ran with exit codes: 118 accounted, 0 NOT-MEASURED (a DERIVED zero), exit 0. Local-only: check:skill-frame-freshness exit 0; check:dev-prereqs exit 1 (workspace not built: 35 ui packages without dist; container state, not the diff). CI check-runs on PR head 5c5036bf02 at report time: in_progress for Check Changeset, Lint lanes, Type Check lanes, Governed Surface Queue Guard, PR-body guards, Spec property liveness; opt-in and queue rows skipped. Not waited on, per os-dev.",
      "dogfood_battery": "n/a — no ! in the PR title and Clause-② carries the (widening) arm, not (narrowing)",
      "mcp_calls": "0",
      "api_writes": "2 — relay pr_create (POST pulls + assignees leg, objectstack-ai/objectstack#35583); post-stamped issue comment on #35401 (POST issues/35401/comments). Plus git push (not a REST write).",
      "open_questions": [
        { "question": "Maintainer-brief shape: the dispatch asked for the four-line 维护者速读 (seat-practice §1); os-dev.md still specifies six fixed lines and says the agent file wins on conflict.", "options": ["A keep the four lines with read-first, two-minute check and risk moved into 席位核对 (as shipped)", "B rewrite to the six-line form"], "recommendation": "A, because seat-practice §1 is the maintainer-sanctioned current practice and no content of the six lines is dropped; os-dev.md should be updated when the rule PR lands." },
        { "question": "Landing order with draft PR #35510 (same count pin).", "options": ["A land whichever is green first; the second merges main and sets 745", "B queue this behind #35510"], "recommendation": "A, because the conflict is a single mechanical count and both PRs are drafts with no ordering dependency." }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: a · reach: pnpm check:platform-checklist exits 1 with platform-core.seed-mode-matrix VARIANTS STALE (SeedMode reads 0 members; seed.zod.ts builds it with enumWithRetiredValues) on a tree whose seed.zod.ts, platform-checklist ledger and checker are byte-identical to origin/main cf6bb70e2; main's own Lint & Repo Gates on cf6bb70e2 concluded failure (lane named lint-pm-dispatch-gates), whether this gate is part of it NOT MEASURED · evidence: gate log line quoted above · dedupe words: seed-mode-matrix, VARIANTS STALE, SeedMode enumWithRetiredValues, platform-checklist enumSource"
      ],
      "deviations": "Round-1 commit message rewritten with git commit-tree (identical trees, unpublished commits) instead of the PM-suggested reset --soft route, because reset --soft to 7ece0204a would stage main's merged files as branch work. Worktree kept, not removed, so the next round can merge main for the #35510 count without recreating it (os-dev cleanup step deferred to the seat)."
    }
  9. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CajiB6BSQKWowy6YLB
    os-dev-report

    {
      "issue": 35401,
      "status": "done",
      "branch": "claude/issue-35401-user-actions-transfer",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/35583",
      "session": "session_01Utp6CajiB6BSQKWowy6YLB",
      "premise_still_valid": true,
      "summary": "Round 3 against contract review 7016171372, head fcd68bb500 (from 5c5036bf02). M1: object/userActions is drilled in packages/spec/liveness/object.json and removed from undrilled-containers.baseline.json. create/import/edit/delete are live, citing their readers: system-write-guard#assertEngineOwnedWriteAllowed, managed-api-affordance#checkManagedApiMethodAffordances via registry-top-level#reconcileManagedApiMethods, core clampManagedObjectWrites, ui affordanceGrants#resolveAffordance, objectViewToolbarAffordances, and ObjectGrid. transfer is planned with authorWarn, an authorHint, and the refusal and resolver anchors in evidence. DEVIATION FROM THE ORDER: exportCsv is graded DEAD, not live. I closed its call graph by hand: resolveCrudAffordances copies it onto CrudAffordances.exportCsv and nothing reads that bit. The server write guard, the apiMethods map and the core clamp read create/edit/delete only. ui resolveEffectiveCrudAffordances only ANDs it with the export operation. AFFORDANCE_GRANTS has no export row. The export menus in ObjectGrid, ListView, RelatedList and ReportExport gate on exportOptions, operations.export, allowExport and the effective export operation. The README forbids fanning the container verdict out to the children, so grading it live would have been a manufactured verdict. The ledger row records the measurement, and the lint probe confirms that userActions.exportCsv: true now warns (liveness-dead-property) and userActions.transfer: true warns (planned). See open_questions. S1a: isTransferEligible / transferIneligibilityReason gained the isOwnerAnchorUnprovable arm after the owner-column arms and before readonly, with its own reason clause. An unmapped external object is refused at parse; mapped or declared stays eligible. S1b: ownerFieldDeclaredReadonly reads the record and array fields shapes, with an array-shape pin. S2: metadata-core object-schema-fls-references.ts classifies transfer as crudFlag, with a pin, and the changeset now names @objectstack/metadata-core minor. CLAIM FILE-SURFACE AMENDMENT for the PM to post: packages/metadata-core/src/object-schema-fls-references.ts and packages/metadata-core/src/object-schema-fls-references.test.ts. N1: each reason clause carries its own arm's prescription where one exists ('to offer it, drop readonly from owner_id' / set ownership to 'user' / declare or map the external owner / drop systemFields: false); managedBy and sys_ have none. The message ends 'Otherwise remove the entry, or set it to false', and 'may only narrow' is reworded in the message and docblocks. N2: the four guidance strings and the userActions JSDoc name transfer, and the transfer describe and Studio help text name the external arm. N4: the index.ts comment and module docblock say the endpoint (#35402) and console action (#35403) WILL read the resolution. N3 is unchanged (accepted). Coordinator items: changeset bullet 3 now matches its closing paragraph, which says the switch is planned and that lint and validate warn. The composite userActions help-text sentence ('Change Owner is not part of that matrix ...') was ADDED to all ten translated bundles rather than dropped, and the transfer row's help-text external clause was translated in all ten too. en was regenerated by check-i18n-bundles --write. Not done: worktree /home/user/objectstack-issue-35401 is kept for a possible next round (same deviation as round 2), and the three WIP commit subjects stay as pushed (no force-push). The PR body is untouched.",
      "tests": "At 3c0b19b18e, the tree all gates ran on (the later fcd68bb500 changes only the changeset). spec: `pnpm --filter @objectstack/spec test` -> Test Files 857 passed (857), Tests 27428 passed | 1 todo; VERDICT command-exit 0. src/data/user-action-transfer.test.ts -> 38 passed (38). metadata-core: closure build plus `pnpm --filter @objectstack/metadata-core test` -> Test Files 27 passed, Tests 1045 passed; VERDICT 0. platform-objects: closure build plus test and typecheck -> Test Files 124 passed, Tests 2061 passed; VERDICT 0. Typecheck of spec and metadata-core (tsc --noEmit plus tsconfig.test.json) -> VERDICT command-exit 0. Ablations (src imported directly, no dist leg; all run through scripts/ablation-replace.mjs with anchor 1 -> 0 and the blob moved; each restore was confirmed by git diff HEAD empty and the hash equal to the HEAD blob): (1) remove `transfer: crudFlag` -> object-schema-fls-references.test.ts 1 failed | 59 passed (the userActions block test), restored f46434c7d2a6. (2) disable the isOwnerAnchorUnprovable arm -> 3 failed | 35 passed (the external eligibility, prescription and parse-refusal tests). (3) disable the array-shape branch -> 1 failed | 37 passed (the array readonly test). Restored 46f1a7ecb38b.",
      "gates": "Local subset at 3c0b19b18e: `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` derived 120 families (the tree is 12+ commits behind origin/main; none of the visible ones touch the derivation inputs). All 120 ran, each exit code captured before any pipe. 119 exited 0, including check:liveness (after gen:liveness-counts regenerated state-counts/object.md, 80/1/1/82 -> 83/2/2/87), spec check:generated (check:docs regenerated object.mdx via --fix, then all green), check:i18n, check:i18n-stale-fill, check:doc-authoring and check:nul-bytes. check:platform-checklist exited 1: 'platform-core.seed-mode-matrix: VARIANTS STALE — SeedMode ... now has 0 members'. This diff does not touch seed.zod.ts or docs/qa, it was the same red in round 2, and CI Lint & Repo Gates is green; it belongs to the lane, not to this diff. `--ran` reconciliation: '120 derived, 120 run, 0 NOT-MEASURED, 0 UNRUN'. Local-only check:dev-prereqs: exit 1 PREREQUISITE NOT MET (35 of 108 workspace packages, ui dists, unbuilt), which is host state -> NOT MEASURED. After the final changeset-only commit fcd68bb500 I re-ran check-empty-changeset, check-changeset-no-major, check-adr-0087-registration, check-changeset-fixed, check:doc-authoring and check:nul-bytes: all exit 0. overlap-check: exit 1 against open PR #35510 only, on object-lifecycle-panel-echo-decisions.test.ts. That is the known toBe(741) pin line, and the review's open_questions 2 answer is that option A is safe. origin/main, #35581 and #35565 merge clean. CI check-runs on 3c0b19b18e: 60 success, 10 skipped, 0 failed, including Lint & Repo Gates, TypeScript Type Check, Test Core (1-10/10), Build Core, Type Check UI, Check Changeset, Spec property liveness and Governed Surface Queue Guard, all success. CI on fcd68bb500: in_progress at report time.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "1 — POST /repos/objectstack-ai/objectstack/issues/35401/comments (this os-dev-report, via scripts/pm/post-stamped.mjs). git push is not a REST write. Reads used gh api GET only (contract review comment, check-runs) plus overlap-check's PR reads.",
      "open_questions": [
        {
          "question": "userActions.exportCsv measured dead when drilling M1, against the order's 'five as live'. Keep the dead verdict?",
          "options": [
            "A Keep `dead` (as pushed): the measurement stands, `exportCsv: true` warns at os lint / os validate with an authorHint, and the seat files the enforce-or-remove card (see out_of_scope_findings)",
            "B Grade it `live`: not available, because the README forbids a live verdict without a reader and forbids fanning the container's verdict out",
            "C Grade it `planned` with authorWarn: only honest if the seat rules that the console export menus will be wired to the bit, and that needs a carrier card"
          ],
          "recommendation": "A, because the call graph is closed (no reader of CrudAffordances.exportCsv in packages/ or ui/), the warning tells authors the truth (exportCsv: false does not hide export), and ADR-0049 routes a dead key to enforce-or-remove rather than to a reassuring verdict"
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: c · reach: named producer — the Studio object form row userActions.exportCsv (packages/spec/src/data/object.form.ts, a stored object config) lets an author save exportCsv: false, and no export menu honours it · evidence: resolveCrudAffordances (packages/spec/src/data/object.zod.ts) copies it onto CrudAffordances.exportCsv; nothing reads the bit (plugin-security WRITE_OP_AFFORDANCE, spec MANAGED_WRITE_VERB_AFFORDANCE and core clampManagedObjectWrites read create/edit/delete; ui AFFORDANCE_GRANTS has no export row; ObjectGrid exportEnabled, ListView exportPermitted, RelatedList and ReportExport gate on exportOptions / operations.export / allowExport / the effective export operation); the full trace is in the object/userActions.exportCsv ledger row note at fcd68bb500 · dedupe words: userActions exportCsv, CrudAffordances exportCsv, export menu ignores, enforce-or-remove exportCsv",
        "carrier: #35510 (seat-ordered) · noted, not filed — overlap-check reports a textual conflict with it on object-lifecycle-panel-echo-decisions.test.ts (the shared count pin line); the review already ruled option A safe, so the second to land merges main"
      ]
    }
  10. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CajiB6BSQKWowy6YLB

    Claim amendment · area data-2 · 2026-11-19T18:11Z

    File surface (amended): adds packages/metadata-core/src/object-schema-fls-references.ts and packages/metadata-core/src/object-schema-fls-references.test.ts. The contract review's S2 asked for transfer: crudFlag in THIS PR, so the new userActions.transfer key takes the CRUD-flag path rather than the unclassified one; it lands with its pin, and the changeset names @objectstack/metadata-core minor (fix round 3, os-dev-report 7017779339). Also within this card's reach: packages/spec/liveness/object.json and undrilled-containers.baseline.json (M1 drill of object/userActions), and the ten translated i18n bundles that carry the userActions help text. Everything else in the claim on this thread stands.

  11. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CajiB6BSQKWowy6YLB

    Closed-out · area data-2 · 2026-11-19T20:48Z

    reading value
    PR #35583 MERGED through the merge queue as 2495486f (Fixes #35401; this card closed completed)
    contract record CONTRACT_REVIEW_TIER: 7016171372 FAIL (M1, S1, S2), delta d1 7019989074 PASS, merge delta d2 7021092186 PASS; L1-a ACCEPT 7015193541, delta 7019822026

    Delivered: an object can declare userActions.transfer, the switch for the Change Owner action, with derived structural eligibility (isTransferEligible, transferIneligibilityReason) and one resolution (resolveUserActionTransfer) for the endpoint (#35402) and the console action (#35403) to read. Turning it on where no real owner exists is refused at parse. The liveness ledger grades transfer planned (authors are warned that nothing reads it yet) and exportCsv dead (no export menu reads it).
    Follow-ups (left for the data seat, unclaimed): #35619 (exportCsv enforce-or-remove, p2).
    State: pm:dispatched removed; card closed.

  12. removed
    pm:dispatched
    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

Labels

area:datadomain:specpriority:p1

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions