You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
change owner: a hand-away whose read-back is out of the caller's scope is answered 404 RECORD_NOT_FOUND (bulk lists it as failed), though the engine says the write landed #36258
Filing gate ① · Source: fleet · found by the #35270 review sweep (run records r03 S1, r04 S2) on PR #36154, re-read on main c30ce97
What happens
When someone hands a record away to another person with Change Owner, and the storage behind the object stops showing them the record once it is no longer theirs, the action answers "record not found" even though the hand-over succeeded. In a bulk hand-over the same record is listed as failed. The new owner is not notified for the single case. On the built-in SQL storage the record stays visible to the caller right after the write, so this does not show today; it shows on storage whose read-back applies the caller's row access (for example an OData-backed object).
packages/core/src/security/change-record-owner.ts:303-305 (single) and :363-365 (bulk) turn a null / undefined / 0 answer from engine.update into 404 RECORD_NOT_FOUND. The engine documents a null read-back after a by-id update as a write that landed and moved the row out of the caller's scope, naming this very case (packages/objectql/src/engine-update.ts:878-883: "reassigning owner_id away from yourself under an owner-scoped policy, reads back null while having succeeded. Reading either as 'not found' would answer 404 to a write that landed"). The engine refuses a missing row itself before the write. The unit doubles answer null for a missing row (change-record-owner.test.ts, change-owner-routes.test.ts), so the pins exercise a branch production never takes for that reason.
Done when
A null read-back is treated as moved (or existence is probed before the write, as protocol.updateData does): single answers 200 and notifies when asked; bulk counts the row under updated.
The test doubles throw RECORD_NOT_FOUND for a missing row, as the engine does.
Pins: (a) a double whose update resolves null for an existing row → single 200 + notify called, bulk updated: 1, failed: 0; (b) missing row → 404 from the engine's own throw.
Ablation: restore the written === null → recordNotFoundError branch and pin (a) goes red.
reach: public HTTP doors POST /api/v1/data/:object/:id/change-owner and POST /api/v1/data/:object/change-owner; live only on a driver whose read-back is row-scoped. Read from the code, not measured.
Business reason: a user who hands a record to a colleague is told it failed when it worked, may retry, and the colleague gets no notice.
Reader: area:data / domain:server (packages/core security, change-owner).
Dedupe: change owner / change-owner / readback null 404 → #35403, #35399, #35315 (console and hand-over cards, none carries this); 0 matches for the defect.
Grade: p3 — dead on the first-party SQL drivers today; wrong answer, no data loss.
Triage: lands in domain:server (change-owner doors) · pm:queue; rationale: area:data · Bug · a hand-away whose read-back falls outside the caller's scope answers 404 RECORD_NOT_FOUND after the write landed, so the caller reads a refusal for a done change. It is dead on the first-party SQL drivers today, read from code → p3 as filed (a wrong answer, no data loss) · size S. Linked under topic #36238.
Claim: PM loop round 1
Session: session_011y7As8fiqghPfkY5FTbE3X
Account: os-alice
Branch: claude/issue-36258-change-owner-readback-queue
Worktree: objectstack-issue-36258
Domain: domain:server
Seat: repo:objectstack#7
File surface: packages/core/src/security/change-record-owner.ts, its tests (change-record-owner.test.ts, change-owner-routes.test.ts and siblings under packages/core/src/security/), one .changeset/*.md (stop on breach; explain in the report)
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
Responsibility: objectstack core (packages/core/src/security/change-record-owner.ts) produces both wrong answers | no platform path covers them today | public HTTP change-owner doors; #36258 live only on a row-scoped read-back driver, #36262 only on an external object with an owner or array-shaped fields; nobody reported hitting either
Thread-read: 7074394932
Premise: holds (re-read on origin/main ecd10e9: single written === null … → recordNotFoundError at change-record-owner.ts:691-692, bulk at :767-768; engine-update.ts:891 still documents a null read-back as a landed write; queue check hasOwnProperty(fields, QUEUE_FIELD) at :356, engine carriesQueueColumn at assignment-rules.ts:303)
Serial constraints cleared: none found — open-PR text search for change-record-owner returns no PR on this file (not measured with merge-tree; the dev runs it before push). Folded with #36262 on this branch, one commit per card, Fixes #36258 + Fixes #36262 lines.
{
"issue": 36258,
"status": "done",
"branch": "claude/issue-36258-change-owner-readback-queue",
"pr": "https://github.com/objectstack-ai/objectstack/pull/38023",
"session": "session_011y7As8fiqghPfkY5FTbE3X",
"premise_still_valid": true,
"summary": "Folded pair, one commit per card plus a changeset commit. #36258 (a4ed4955): writeOwner no longer returns the engine's answer, and the single, bulk and cascade-child sites no longer turn null/undefined/0 into 404 RECORD_NOT_FOUND. Measured at base 4af32b99: the by-id update throws recordNotFoundError itself before the write (engine-update.ts not-found gate); null is the read-back of a landed write that left the caller's scope; undefined is a void driver answer after that gate; 0 is the multi branch's count, which is unreachable for the where-id address. So none of the three means not found. #36262 (7fd02640): the queue-target check is now resolveInjectedColumnProvenance(def, 'queue') === 'injected-provisioned', the spec-level form of the engine's carriesQueueColumn. Core cannot import objectql, which depends on core. The check reads both fields shapes.",
"tests": "At c5f810a3. Core: pnpm --filter @objectstack/core test, CORE_EXIT=0, Test Files 158 passed (158), Tests 3802 passed (3802). REST: pnpm --filter @objectstack/rest test, REST_EXIT=0, Test Files 432 passed (432), Tests 8973 passed, 351 skipped (9324). Typecheck: core and rest, VERDICT command-exit 0. The rest^... closure was built first (31/31 tasks), and core was rebuilt after commit 2 (its dist carries 'injected-provisioned'). Ablations via scripts/ablation-replace.mjs (anchor 1 to 0, restore blob == HEAD, git diff HEAD empty; the core test imports src, so no dist is involved): single-path null branch restored made 3 pins red (single, queue, cascade); bulk-path branch restored made 2 red (bulk, missing-row case); the hasOwnProperty(fields,'queue') test restored made 4 red (federated, list-shaped, control memo arm, author-declared).",
"gates": "Local: dispatch-gates --commands --repo objectstack-ai/objectstack derived 65 at c5f810a3. Each was run with its exit code captured before any pipe. 63 exited 0, including check:engine-double-contract, check:nul-bytes, check:cross-package-test-inputs, check:test-source-alias, check:type-check-coverage, check:type-check-debt and check:published-files. 2 exited 3, PREREQUISITE NOT MET, recorded as NOT MEASURED: check-plugin-teardown-shape.mjs --self-test (shallow clone, pinned control commit unreachable) and check:dual-build-cjs-loads (needs every package's dist). --ran with exit codes: '65 derived famil(ies) accounted for — 63 run, 2 NOT-MEASURED (2 DERIVED from a recorded exit 3)'. check-platform-checklist not owed (no export renamed or removed). CI on PR 38023 at c5f810a35e when read: 0 success, 5 expected skip, 0 failed, 18 pending (in_progress). l1-face --pr 38023 exit 4 (INCOMPLETE: floor-checks and all-checks pending). It flagged two items: keywords-other-cards 'Fixes #36262', which the dispatch ordered; and changeset for @objectstack/rest, where the diff touches only src/change-owner-routes.test.ts and rest's files[] is dist only, so nothing ships.",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"line_budget": "+204 / -37 across 4 files (dispatch-gates: 241 changed lines, under the 3000 human-merge threshold)",
"files_changed": [
"packages/core/src/security/change-record-owner.ts",
"packages/core/src/security/change-record-owner.test.ts",
"packages/rest/src/change-owner-routes.test.ts",
".changeset/36258-change-owner-readback-queue.md"
],
"deviations": [
"File surface named change-owner-routes.test.ts under packages/core/src/security/. It lives at packages/rest/src/change-owner-routes.test.ts and was edited there: its double had to throw RECORD_NOT_FOUND (#36258 Done-when), and its lead fixture had to carry the spec QUEUE_FIELD_DEF once #36262 landed.",
"Three commits, not two: one per card, plus a separate changeset commit.",
"Bounded in-place fix: runCascade's child owner write had the same null/undefined/0 into RECORD_NOT_FOUND check. It was removed in the #36258 commit under the four-condition exemption and is named in the PR body with its pin.",
"PR body footer is the AGENTS.md session-URL form, not the harness's suggested robot line.",
"The first --ran reconciliation was fed a list without exit codes. It was re-run with ':: exit N' lines, and that verdict is the one cited."
],
"mcp_calls": "0",
"api_writes": "2 relay strokes — pr_create (POST /repos/objectstack-ai/objectstack/pulls draft + POST /repos/objectstack-ai/objectstack/issues/38023/assignees os-alice); os-dev-report (POST /repos/objectstack-ai/objectstack/issues/36258/comments via post-stamped.mjs)",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: PR 38023 Acceptance notes · noted, not filed — the ruled provenance test makes an object whose author declares their own field named queue refuse a queue target (was admitted). This matches the engine's assignment rules, which route nothing there; plugin-security's queue write gate checks the written row, not the schema.",
"carrier: none · noted, not filed — #36262's open question, what a remote driver answers a queue write, was not traced; the write no longer reaches it."
]
}
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 · a hand-away whose read-back falls outside the caller's scope answers 404 RECORD_NOT_FOUND after the write landed, so the caller reads a refusal for a done change. It is dead on the first-party SQL drivers today, read from code → p3 as filed (a wrong answer, no data loss) · size S. Linked under topic #36238.objectstack-fleet commentedon Nov 27, 2026
repo:objectstack#7 · os-alice · session_011y7As8fiqghPfkY5FTbE3X
Claim: PM loop round 1
Session:
session_011y7As8fiqghPfkY5FTbE3XAccount:
os-aliceBranch:
claude/issue-36258-change-owner-readback-queueWorktree:
objectstack-issue-36258Domain:
domain:serverSeat:
repo:objectstack#7File surface:
packages/core/src/security/change-record-owner.ts, its tests (change-record-owner.test.ts,change-owner-routes.test.tsand siblings underpackages/core/src/security/), one.changeset/*.md(stop on breach; explain in the report)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
Responsibility:
objectstack core (packages/core/src/security/change-record-owner.ts) produces both wrong answers | no platform path covers them today | public HTTP change-owner doors; #36258 live only on a row-scoped read-back driver, #36262 only on an external object with an owner or array-shaped fields; nobody reported hitting eitherThread-read: 7074394932
Premise: holds (re-read on origin/main ecd10e9: single
written === null … → recordNotFoundErrorat change-record-owner.ts:691-692, bulk at :767-768; engine-update.ts:891 still documents a null read-back as a landed write; queue checkhasOwnProperty(fields, QUEUE_FIELD)at :356, enginecarriesQueueColumnat assignment-rules.ts:303)Serial constraints cleared: none found — open-PR text search for
change-record-ownerreturns no PR on this file (not measured with merge-tree; the dev runs it before push). Folded with #36262 on this branch, one commit per card,Fixes #36258+Fixes #36262lines.objectstack-fleet commentedon Nov 27, 2026
repo:objectstack#7 · os-alice · session_011y7As8fiqghPfkY5FTbE3X
os-dev-report
{ "issue": 36258, "status": "done", "branch": "claude/issue-36258-change-owner-readback-queue", "pr": "https://github.com/objectstack-ai/objectstack/pull/38023", "session": "session_011y7As8fiqghPfkY5FTbE3X", "premise_still_valid": true, "summary": "Folded pair, one commit per card plus a changeset commit. #36258 (a4ed4955): writeOwner no longer returns the engine's answer, and the single, bulk and cascade-child sites no longer turn null/undefined/0 into 404 RECORD_NOT_FOUND. Measured at base 4af32b99: the by-id update throws recordNotFoundError itself before the write (engine-update.ts not-found gate); null is the read-back of a landed write that left the caller's scope; undefined is a void driver answer after that gate; 0 is the multi branch's count, which is unreachable for the where-id address. So none of the three means not found. #36262 (7fd02640): the queue-target check is now resolveInjectedColumnProvenance(def, 'queue') === 'injected-provisioned', the spec-level form of the engine's carriesQueueColumn. Core cannot import objectql, which depends on core. The check reads both fields shapes.", "tests": "At c5f810a3. Core: pnpm --filter @objectstack/core test, CORE_EXIT=0, Test Files 158 passed (158), Tests 3802 passed (3802). REST: pnpm --filter @objectstack/rest test, REST_EXIT=0, Test Files 432 passed (432), Tests 8973 passed, 351 skipped (9324). Typecheck: core and rest, VERDICT command-exit 0. The rest^... closure was built first (31/31 tasks), and core was rebuilt after commit 2 (its dist carries 'injected-provisioned'). Ablations via scripts/ablation-replace.mjs (anchor 1 to 0, restore blob == HEAD, git diff HEAD empty; the core test imports src, so no dist is involved): single-path null branch restored made 3 pins red (single, queue, cascade); bulk-path branch restored made 2 red (bulk, missing-row case); the hasOwnProperty(fields,'queue') test restored made 4 red (federated, list-shaped, control memo arm, author-declared).", "gates": "Local: dispatch-gates --commands --repo objectstack-ai/objectstack derived 65 at c5f810a3. Each was run with its exit code captured before any pipe. 63 exited 0, including check:engine-double-contract, check:nul-bytes, check:cross-package-test-inputs, check:test-source-alias, check:type-check-coverage, check:type-check-debt and check:published-files. 2 exited 3, PREREQUISITE NOT MET, recorded as NOT MEASURED: check-plugin-teardown-shape.mjs --self-test (shallow clone, pinned control commit unreachable) and check:dual-build-cjs-loads (needs every package's dist). --ran with exit codes: '65 derived famil(ies) accounted for — 63 run, 2 NOT-MEASURED (2 DERIVED from a recorded exit 3)'. check-platform-checklist not owed (no export renamed or removed). CI on PR 38023 at c5f810a35e when read: 0 success, 5 expected skip, 0 failed, 18 pending (in_progress). l1-face --pr 38023 exit 4 (INCOMPLETE: floor-checks and all-checks pending). It flagged two items: keywords-other-cards 'Fixes #36262', which the dispatch ordered; and changeset for @objectstack/rest, where the diff touches only src/change-owner-routes.test.ts and rest's files[] is dist only, so nothing ships.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "line_budget": "+204 / -37 across 4 files (dispatch-gates: 241 changed lines, under the 3000 human-merge threshold)", "files_changed": [ "packages/core/src/security/change-record-owner.ts", "packages/core/src/security/change-record-owner.test.ts", "packages/rest/src/change-owner-routes.test.ts", ".changeset/36258-change-owner-readback-queue.md" ], "deviations": [ "File surface named change-owner-routes.test.ts under packages/core/src/security/. It lives at packages/rest/src/change-owner-routes.test.ts and was edited there: its double had to throw RECORD_NOT_FOUND (#36258 Done-when), and its lead fixture had to carry the spec QUEUE_FIELD_DEF once #36262 landed.", "Three commits, not two: one per card, plus a separate changeset commit.", "Bounded in-place fix: runCascade's child owner write had the same null/undefined/0 into RECORD_NOT_FOUND check. It was removed in the #36258 commit under the four-condition exemption and is named in the PR body with its pin.", "PR body footer is the AGENTS.md session-URL form, not the harness's suggested robot line.", "The first --ran reconciliation was fed a list without exit codes. It was re-run with ':: exit N' lines, and that verdict is the one cited." ], "mcp_calls": "0", "api_writes": "2 relay strokes — pr_create (POST /repos/objectstack-ai/objectstack/pulls draft + POST /repos/objectstack-ai/objectstack/issues/38023/assignees os-alice); os-dev-report (POST /repos/objectstack-ai/objectstack/issues/36258/comments via post-stamped.mjs)", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: PR 38023 Acceptance notes · noted, not filed — the ruled provenance test makes an object whose author declares their own field named queue refuse a queue target (was admitted). This matches the engine's assignment rules, which route nothing there; plugin-security's queue write gate checks the written row, not the schema.", "carrier: none · noted, not filed — #36262's open question, what a remote driver answers a queue write, was not traced; the write no longer reaches it." ] }objectstack-fleet commentedon Nov 27, 2026
repo:objectstack#7 · os-alice · session_011y7As8fiqghPfkY5FTbE3X
MERGED: PR #38023 (merge commit abf1eeb) closed this card via
Fixes #36258. Removingpm:dispatchedand the assignee. Nothing is left on this card.