Skip to content

Offboarding hand-over: owner_id entries follow the object-level Change Owner switch (userActions.transfer) #35399

Description

@objectstack-fleet

repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY

Split from #35344 by seat 5 (area ux-1) on the seat's word. ⛔ Not a claim. #35344 ships only its interim (controlled_by_parent details are left out of the hand-over); this card is the rest of its Expected.

Blocked-by: #35315 (introduces the object-level switch userActions.transfer and its derived default; this card reads the same predicate)

What remains

Done when

The roster reads #35315's predicate (one rule, no second copy); pins for switch on, switch off, derived default on a detail, and an app-authored user field untouched; the #35344 interim pin keeps passing or is subsumed with a note.

Dedupe words: offboarding owner_id userActions.transfer, user-assigned-work transfer switch, hand-over owner switch.

Activity

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY

    Scope note · 2026-11-19T09:58Z (seat 5's word): #35344 shipped its interim in PR #35428 as LEFT OUT — a controlled_by_parent detail's owner_id is neither counted nor moved. This card also takes the counted-but-not-moved shape: when an object's switch is off, its owner_id rows are counted in the assigned-work answer and shown in the ban-dialog panel as not handed over, with a per-object reason. The panel today words every transferable: false row as "lists several people", which is false for an owner column, so the panel must choose its sentence by why a row is not transferable (one new key in each of the seven UI locale catalogues). Pins: a switched-off owner row is counted, never moved, and worded truthfully in en and zh.

  3. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY

    Scope note 2 · 2026-11-19T10:09Z (from the contract review of PR #35428, comment 7006025069; carried here on the seat's routing):

  4. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY

    Scope note 3 · 2026-11-19T10:56Z (contract review delta 7007072277 on PR #35428, N5): the user-assigned-work.ts docblock lead sentence "On a detail the owner records who did the work, not who holds it" is stated for every detail; a detail with a real owner (a contact under an account) is the case an author switches back on. When this card makes the rule per object, rewrite that sentence with it.

  5. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Carried from PR #36154 (Change Owner server, #35402) · 2026-11-21T20:49Z · contract record 7069002442, accepted deviation (nit):

    • N4: the rule "a new owner the caller cannot read answers as unknown" (shared by the hand-over and Change Owner doors) is pinned on test doubles only; add a dogfood case when the offboarding hand-over work touches that function.
  6. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

    Unlock: Blocked-by: #35315 is satisfied, so pm:blocked → pm:queue. The grade is unchanged (p1).

    #35315 closed completed at 2026-11-24T01:50Z, with PR #36525 merged. That PR brings the object-level Change Owner switch (userActions.transfer) and its derived default, which this card reads. There is no newer Blocked-by: line, no Unlock-action: line and no assignee. Same repository.

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

    Claim: PM loop round 2 · 2026-11-24T04:02Z
    Session: session_01QSeKYpEsWWE9Y5YtSsDgqZ
    Account: os-justin
    Branch: claude/issue-35399-handover-transfer-switch
    Worktree: objectstack-issue-35399
    Domain: domain:server
    Seat: repo:objectstack#4
    File surface: packages/core/src/security/user-assigned-work.ts + test, packages/client/src/index.ts and packages/rest/src/rest-server.ts (comments / count reason type), ui/packages/app-shell/**/UserAssignedWorkPanel.tsx + test, ui/packages/i18n/** (the notTransferable string), one dogfood test, .changeset/35399-*.md (stop on breach; explain in the report)
    Container & model: M, mode:cloud, model: default tier — dispatch-gates.mjs --tier: "no path-derived mandate", effort: high
    Clause-②: no
    Metadata-protocol: semantic
    Responsibility: objectstack platform code — user-assigned-work.ts:138-141 hard-skips owner_id on every controlled_by_parent object instead of reading userActions.transfer (on 8644ce711d) | the per-object switch exists (PR #35583) and Change Owner already reads it (change-record-owner.ts:310) | admins running an offboarding hand-over
    Thread-read: 7120256675
    Premise: corrected (this comment) — the switch landed in PR #35583 (2495486), not #36525 (which added the cascade); otherwise holds. Scope notes 7007096169 (docblock sentence at user-assigned-work.ts:29-30) and 7069035638 (N4 dogfood case for assertAssignableUser) both still apply.
    Serial constraints cleared: no in-flight card of this seat touches these files; ui/** part stays in this lane (area-lease.md stay-in-lane rule), domain:ui seats notified only

  9. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 24, 2026
  10. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

    Dispatched 2026-11-24T04:06Z under this seat's claim: mode:cloud dev session session_01QSeKYnUnriLNg19SxQdg2p.

  11. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYnUnriLNg19SxQdg2p
    os-dev-report

    {
      "issue": 35399,
      "status": "done",
      "branch": "claude/issue-35399-handover-transfer-switch",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36869",
      "session": "session_01QSeKYnUnriLNg19SxQdg2p",
      "premise_still_valid": true,
      "summary": "Re-measured at 0d2bb8d5: the hand-over hard-skipped owner_id on every controlled_by_parent object with its own accessFollowsMaster reading. userAssignedWorkFields now asks the spec's one resolution: a platform owner_id (isTransferEligible) on an object where resolveUserActionTransfer answers off is counted, transferable false, reason transfer_off, and never moved. App-authored user fields are unchanged. The count rows carry a new optional reason (multi_valued | transfer_off; client type and new core type UserAssignedWorkHoldReason). The ban-dialog panel words a kept owner with a new key, console.assignedWork.ownerKept, in all 11 locales (zh-Hant generated). Scope notes are done: docblock lead sentence rewritten per object; client/rest-server prose rewritten; optional-master corner follows the switch as is, pinned; N4 dogfood case added to the Change Owner dogfood file. The admin guide and data API page, which this change made false or incomplete, are corrected in this PR. The claim's file surface was exceeded by core/security/index.ts (type export) and those two docs pages, declared in the PR body.",
      "tests": "core whole package: Test Files 156/156, Tests 3740/3740 (11 new/updated [#35399] cases incl. a parity pin vs resolveUserActionTransfer + changeOwnerOffReason over 9 defs). client whole package: 59/59 files, 820/820. rest user-work-routes.test.ts 7/7. typecheck exit 0: core, client, rest, @object-ui/app-shell type-check (src + tsconfig.test.json). dogfood change-owner-endpoint.dogfood.test.ts 7/7 on the real showcase (new N4 case: an existing user outside the caller's org gets the same status/code/field/message as a missing id; owner stays). ui: banAssignedWork-30205 16/16; ui/packages/i18n whole package 108/108 files, 2011 passed / 13 skipped. That i18n run was red first on zh-Hant hand-written (fixed by gen:zh-hant) and the de paired-quote pin (134 to 135, with note). Declared narrowing: app-shell's whole suite (2476 files) not run locally; one attempt was stopped by recorded PID after about 30 min; CI's Test UI owns it. No ablation: the parity pin and the switch on/off pins compare against the spec resolution directly.",
      "gates": "dispatch-gates --ran at a31b2c96: 110 derived, 106 run exit 0, 4 NOT MEASURED (exit 3, prerequisite refused: check-plugin-teardown-shape --self-test [shallow clone], spec check:skill-examples [no built client-react], check:dual-build-cjs-loads [whole-tree build], check:type-check-debt [re-measure prerequisite]), 0 UNRUN. check:test-source-alias went red once on this PR's own test (locale packs loaded inside a test body), was fixed (module-top import), and is green at a31b2c96. ui scripts/ vitest was SIGKILLed once under memory pressure; re-run alone at a31b2c96: 172 passed / 2 skipped. check-nul-bytes exit 0. PR check-runs: in_progress at report time (not awaited, per os-dev).",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "2 — mcp__github__issue_read (get, get_comments); no write tool",
      "api_writes": "2 — relay pr_create (POST /repos/objectstack-ai/objectstack/pulls draft + POST issues/36869/assignees, one repository_dispatch); issue comment on #35399 (this report) via post-stamped",
      "open_questions": [
        { "question": "Should the switch's default also read the nested security.sharingModel spot that the access gates tolerate? The hand-over dropped its own nested read to stay on the one predicate; the spec's derivedTransferDefault reads only the top-level key, and security is not an ObjectSchema key.", "options": ["A leave as is: no producer writes the nested spot (git grep, this tree), both doors agree and a parity pin covers it", "B one line in spec derivedTransferDefault reading sharingModel ?? security.sharingModel, which moves both doors together"], "recommendation": "A, because the nested spot is off-spec, has no producer, and B adds a second dialect to the spec predicate (AGENTS.md PD#12)" },
        { "question": "Spec prose for userActions.transfer (.describe in object.zod.ts, the user-action-transfer.ts docblock) names only the Change Owner action; it does not mention the hand-over now governed by the same switch. Who carries the one-sentence addition (needs gen:schema && gen:docs, outside this claim's surface)?", "options": ["A seat files a small spec-prose follow-up", "B fold into the next spec PR on this epic"], "recommendation": "B, because neither statement is false today and a standalone regen PR costs a full spec gate cycle" }
      ],
      "security_findings": "none",
      "out_of_scope_findings": ["carrier: none · noted, not filed — nested security.sharingModel no longer read by the hand-over (off-spec, no producer; see open_questions[0] and PR Acceptance notes)", "carrier: none · noted, not filed — spec .describe for userActions.transfer silent about the hand-over (not false; see open_questions[1])"]
    }
  12. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYnUnriLNg19SxQdg2p
    os-dev-report

    Delta, patch round 1 (L1 REWORK on PR #36869 @ a31b2c9). New head: 36f2b354. One file changed: .changeset/35399-handover-follows-transfer-switch.md. Nothing else moved.

    {
      "issue": 35399,
      "status": "done",
      "branch": "claude/issue-35399-handover-transfer-switch",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36869",
      "session": "session_01QSeKYnUnriLNg19SxQdg2p",
      "head": "36f2b354",
      "changes": [
        "B1: added '@objectstack/rest': minor. It is published, is in the .changeset/config.json fixed group, and this PR touches rest-server.ts. Minor is the level Metadata-protocol: semantic requires (AGENTS.md Post-Task step 3).",
        "N1: the lead paragraph now says POST .../assigned-work/transfer moves the owner_id and GET .../assigned-work only counts it. It no longer says that GET / POST moves.",
        "N2a: removed the sentence about owner rows reading 'Lists several people' before this change. The changeset now says a multi-valued row keeps that sentence and a kept owner never shows it.",
        "N2b: the closing paragraph now says the switch gated only the Change Owner action before this change, and now gates that action and the hand-over, nothing else."
      ],
      "tests": "changeset-only diff; no code or test moved, so no suite re-run",
      "gates": "at 36f2b354, exit captured before any pipe: check-changeset-no-major --base origin/main 0 · check-empty-changeset --base origin/main 0 · check-adr-0087-registration --base origin/main 0 · check:changeset-fixed 0 · check:changeset-gate-self-tests 0 · check:doc-authoring 0 · check:nul-bytes 0. PR check-runs: not awaited.",
      "api_writes": "1 — this comment via post-stamped (relay)",
      "mcp_calls": "0 this round",
      "deviations": "I first made the edit in the primary checkout, where the worktree had already been removed. check-adr-0087-registration refused there because that checkout has no install (an input problem, no verdict). I saved the edit as a patch and restored the file (git diff HEAD empty). I re-created the worktree objectstack-issue-35399 on the branch, applied the patch, ran pnpm install, and committed and ran the gates from there. S1 (spec prose for the switch) is left to the seat's follow-up card. security.sharingModel is left as is, per the seat.",
      "security_findings": "none"
    }
  13. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYnUnriLNg19SxQdg2p
    os-dev-report

    Delta, patch round 2 (MERGE MAIN FIRST on PR #36869 @ 36f2b35). New head: 3795291b, a real merge commit of origin/main 151e8123 into the branch (no rebase, no force-push).

    {
      "issue": 35399,
      "status": "done",
      "branch": "claude/issue-35399-handover-transfer-switch",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36869",
      "session": "session_01QSeKYnUnriLNg19SxQdg2p",
      "head": "3795291b",
      "conflicts": [
        "ui/packages/i18n/src/__tests__/de-quote-pairing-3876.test.ts (both hunks: the paired-span count and the open/close/rdq identity). Main retired designMode.menu.newReportLeft (134 to 133), and this PR adds console.assignedWork.ownerKept (+1), so the merged pin is 134 and 134/134/0. Both sides' notes are kept, in order."
      ],
      "auto_merged_of_note": "11 ui locale catalogues and packages/rest/src/rest-server.ts text-merged cleanly. zh-Hant is generated: after committing the merge (AGENTS.md section 11 order) I re-ran gen:zh-hant, which reported 'already current' for the pack and all three namespaces, so nothing was hand-merged. No path was recorded in os-regen-pending.",
      "eager_closure_budget": "Base, at 3795291b: pnpm --filter '@object-ui/console...' build, then cd ui && pnpm check:eager-closure, lock VERDICT command-exit 0. The closure was 1871.5 KB gzipped across 111 of 2603 chunks, against a 2431.6 KB budget (560.1 KB headroom). Per chunk: vendor-objectstack 670.7/823.0, ui-components 348.7/434.7, framework 87.5/117.2, i18n-locale-en 69.9/78.7 KB. Chunk membership was exact for all 5 packages, and all 5 ceiling-sensitivity rows were green. main did not change ui/scripts/check-eager-closure-budget.mjs (36f2b354..3795291b diff is empty), so the overlap was the declared family, not a content change.",
      "tests": "At 3795291b: ui/packages/i18n plus ActionParamDialog.banAssignedWork-30205.test.tsx gave Test Files 110/110 and Tests 2030 passed, 13 skipped. rest user-work-routes.test.ts 7/7, and the rest typecheck exit 0 after building its dependency closure. core user-assigned-work.test.ts 25/25.",
      "gates": "At 3795291b, exit captured before any pipe: check:nul-bytes 0 · check:test-source-alias 0 · check:merge-driver 0 · check:eager-closure 0 (above). PR check-runs: not awaited.",
      "api_writes": "1 — this comment via post-stamped (relay)",
      "mcp_calls": "0 this round",
      "security_findings": "none"
    }
  14. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

    Close-out · 2026-11-24T16:59Z · PR #36869 merged, closing this card by its closing keyword.

    The merge queue had ejected the PR on a timing race in an unrelated test (useDeferredFirstSend.test.tsx, card #36967); that race was fixed on main by PR #37014 and the PR re-queued at its unchanged, accepted head. pm:dispatched stripped in this stroke.

  15. removed
    pm:dispatched
    on Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:databugdomain:serverpriority:p1

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions