Repository navigation
Description
repo:objectstack#4 · os-project-manager · session_01FEkQ5krBqrrgxCYgjXmfbv
Filing gate ① · Source: fleet · found by the #35270 review sweep (run records r03 M1, r04 S4) on PR #36154, re-read on main c30ce97
What happens
Change Owner can tell the user a record moved, and tell the named person "a record was assigned to you", when the record did not move. This happens when the object locks the owner field under a condition (for example "owner is read-only once the case is closed"): the platform quietly skips the locked field and the action still reports success. The answer is built from what was asked, not from what was saved. The same pattern reports notified: true whenever the messaging call returns, even when nothing was delivered (topic muted, channel unavailable).
packages/core/src/security/change-record-owner.ts:302/:362:engine.update(object, changeSet, { where: { id }, context })with neitherstrictReadonlyWritesnoronFieldsDropped.:306-310(single) and:348-357(bulk):ownerId/queuecopied from the request; any non-throwing update counts as moved.- The engine strips a caller key that a TRUE
readonlyWhenlocks and answers the stored row (engine-update.ts,everyCallerKeyDropped:480;strictReadonlyWritesdocumented:345-372, read:437). Only a staticreadonly: truemakes an object ineligible for Change Owner, so a conditional lock is reachable from metadata alone. - Queue target: only
queuelands, the owner stays, the receipt saysownerId: null. notified::259-279returnstrueafterawait messaging.emit(...)without reading its result;service-messaging/src/messaging-service.ts:244-251documents the delivered / enqueued counts that say whether anything went out.
Done when
- Each owner write passes
strictReadonlyWrites: true(a strippedowner_id/queuebecomes that row's refusal with its own code), or the written row is compared with the target and a mismatch is a failure. notifiedis true only when the emit result reports a delivered or enqueued row.- Pins: an object with
owner_id.readonlyWhentrue for the record → single answers a refusal (not 200), bulk lists the row underfailures, no notification sent; a queue-target case whereowner_idis stripped; an emit that resolves with zero delivered/enqueued →notified: false. - Ablation: drop
strictReadonlyWritesfrom the update options and the readonlyWhen pin goes red.
reach: public HTTP doors POST /api/v1/data/:object/:id/change-owner and POST /api/v1/data/:object/change-owner plus the client's data.changeOwner / changeOwnerMany; reachable from ordinary field metadata. Read from the code, not measured.
Business reason: users and admins are told ownership changed when it did not, and a colleague is told a record is theirs that is not — work falls through the cracks with no error to notice.
Reader: area:data / domain:server (packages/core security, change-owner).
Dedupe: change owner, owner readonlyWhen, notified emit → #35403, #35399, #35315, #35802 (none carries this); 0 matches for the defect.
Grade: p2 — false success and a false notification on a shipped door, reachable from metadata; no privilege gained.
Activity
objectstack-fleet commentedon Nov 22, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in
domain:server(change-owner doors) ·pm:queue; rationale: area:data · Bug · when areadonlyWhenlock keepsowner_idunchanged, the door still answers 「moved」 and notifies the new owner: a false success and a false notification on a shipped door, reachable from metadata. No privilege is gained → p2 as filed · size S. Linked under topic #36238.objectstack-fleet commentedon Nov 23, 2026
repo:objectstack#7 · os-alice · session_011y7As6FyXmJyGyHNKXUkV7
Claim: PM loop round 1
Session:
session_011y7As6FyXmJyGyHNKXUkV7Account:
os-aliceBranch:
claude/issue-36259-change-owner-readonly-whenWorktree:
objectstack-issue-36259Domain:
domain:serverSeat:
repo:objectstack#7Area:
o7-dataFile surface:
packages/core/src/security/change-record-owner.ts and its tests, packages/rest/src/change-owner-routes.ts tests, one .changeset file(stop on breach; explain in the report)Container & model:
S,mode:subagent,model: default (dispatch-gates --tier: "no path-derived mandate"),effort: highClause-②: no
Metadata-protocol: none
Responsibility:
objectstack (packages/core/src/security/change-record-owner.ts builds the answer from the request, not the stored row) | the engine's strictReadonlyWrites option already covers it, unused here | any Change Owner caller on an object with a conditional owner_id lock; reachable from metadataThread-read: 7074396763
Premise: holds (origin/main 3cf6a44: the two engine.update calls carry neither strictReadonlyWrites nor onFieldsDropped; notifyNewOwner returns true after await messaging.emit without reading its result)
Pre-claim lane: repo:objectstack#7 · o7-data — packages/core/src/security/** is an o7-data path root on #35557
Pre-claim deps: no Blocked-by and no "after #N" on the card; open PR #36525 (#35315 cascade, draft) edits the same file, judged by overlap-check before each push
Prior rulings read: check-prior-rulings --card 36259: 5 hit lines in change-record-owner.ts, all the #35315 rulings 7000556646 / 7000907189 (object eligibility, the transfer grant, bulk per-row reporting); none rules on readonlyWhen or the notified flag; the fix keeps per-row reporting
Serial constraints cleared: open PR #36525 (claude/issue-35315-change-owner-cascade) shares packages/core/src/security/change-record-owner.ts — overlap-check before each push, the later lander merges; os-verify-lock depth 1 · go
Fold-or-serial: not folded — no other o7-data card shares this defect or file
objectstack-fleet commentedon Nov 23, 2026
repo:objectstack#7 · os-alice · session_011y7As6FyXmJyGyHNKXUkV7
os-dev-report
objectstack-fleet commentedon Nov 23, 2026
repo:objectstack#7 · os-alice · session_011y7As6FyXmJyGyHNKXUkV7
Serial note · 2026-11-23T11:24Z · PR #36683 (this card) stays draft.
overlap-checkanswers exit 1 against open draft PR feat: Change Owner cascade, transferBehavior on a relationship, ticked in the dialog #36525 (claude/issue-35315-change-owner-cascade, console: the default record form never renders owner_id, and the console has no Change Owner action, so an object without an authored form cannot be reassigned #35315): one textual conflict on the single-recordengine.updateline ofpackages/core/src/security/change-record-owner.ts. fix(core)!: change owner answers what was saved when the owner or queue is locked, and notified reads the emit answer #36683 queues behind feat: Change Owner cascade, transferBehavior on a relationship, ticked in the dialog #36525. Seat 7 has knocked seat 2 (Notify: serial). Whichever lands second carries the conflict, plus the cascade child update'sOWNER_WRITE_OPTIONS(PR fix(core)!: change owner answers what was saved when the owner or queue is locked, and notified reads the emit answer #36683 Acceptance notes 3).needs_decisionon theFIELD_NOT_ACCESSIBLErow ofscripts/error-status-unpinned-baseline.json(os-dev-report 7099512890), with the maintainer through the seat.--updateis not run and route B is not taken until it is answered.chore(error-status): drop FIELD_NOT_ACCESSIBLE from the unpinned base…
objectstack-fleet commentedon Nov 23, 2026
repo:objectstack#7 · os-alice · session_011y7As5bdhV5T4N9vpjmZzH
Ruling · 2026-11-23T14:17Z · on the dev report 7099512890 open question (the unpinned-baseline row). The maintainer (Alice) chose option A on the seat's decision card in the fleet project at 2026-11-23T14:14Z, card text verbatim: 「允许座位删掉错误状态基线里 FIELD_NOT_ACCESSIBLE 这一行吗?」 → 「允许,座位执行 --update」.
node scripts/check-error-status-conformance.mjs --updateonclaude/issue-36259-change-owner-readonly-when, one row removed (FIELD_NOT_ACCESSIBLE), shrink only, commit00ca61b93468c4d2a5c77e0330489e82171a3b33; the gate reads green locally at that commit.objectstack-fleet commentedon Nov 23, 2026
repo:objectstack#7 · os-alice · session_011y7As6FyXmJyGyHNKXUkV7
os-dev-report
objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#7 · os-alice · session_011y7As6FyXmJyGyHNKXUkV7
Delivered · 2026-11-24T00:14Z · PR #36683 merged 2026-11-23T21:48Z (L1-a ACCEPT 7112481068, contract review PASS 7112452212, approved and enqueued by os-zhuang for the declared narrowing). Change Owner now refuses a locked
owner_id/queuewith403 FIELD_NOT_ACCESSIBLE(single door) or afailuresrow (bulk door) instead of answering success, andnotifiedis true only when a notice was delivered or enqueued. The classifier follow-up is #36731. #36525 and #36674 rebase on this merge.pm:dispatchedis removed with this note.sweep-closed-cards --pr 36683: this card is the only one the merge closed.fix(core)!: change owner answers what was saved when the owner or que…