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
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
Business reason. Reassigning a lead, account or case to another rep is a daily manager action. HotCRM's audit (objectstack-ai/hotcrm#2665, comment 6988592923, row 39) found that 12 of its 14 authored form views exist partly because they list owner_id. Reverting them to the platform default form would remove the only place a user can change the owner. This blocks apps from adopting the default form that record page v4 is built around.
Reach. On 18.6.0, the Edit dialog renders the owner input in all 12 authored forms and in none of the 12 default ones. The console bundle has no "Change Owner" record action apart from a Studio placeholder.
Seam.renderer:plugin-formsanitize.ts and autoLayout.ts:274 (system fields filtered on purpose) against the absence of a record-level change-owner action.
Expected (for the maintainer to rule): either the default form offers the owner field to people who may change it, or the console ships a standard Change Owner action on records with owner_id.
Dedupe:default form owner_id change owner action returned 120 hits, none on point.
Reader. objectstack triage grades it and routes it to the owning lane. Not a claim; awaits triage. Filed on the maintainer's word in hotcrm seat 2's session (2026-11-19): 「平台缺口全部立卡」, after an independent fable-tier review of HotCRM's pending decisions surfaced it.
Grade: p2 → p1 · maintainer's word · 2026-11-19T04:50Z
The maintainer, verbatim, in hotcrm seat 2's session (2026-11-19): 「35315 35249 提升p1」.
Context.objectstack-ai/hotcrm#2665 audits HotCRM's authored forms for return to the platform default. 12 of 14 forms are held only by owner_id (#35315), and the opportunity, lead and case forms are held by conditional fields (#35249). Until both are fixed, an app cannot adopt the default form without losing reassignment, the loss reason, the disqualification reason or the case resolution.
Direction recorded · maintainer's word · 2026-11-19T05:22Z
The maintainer, verbatim, in hotcrm seat 2's session on 2026-11-19: 「同意」. He was answering the seat's recommendation after asking 「改负责人:其他平台是怎么设计的?」.
Chosen: a dedicated Change Owner action, the Salesforce / Dynamics 365 shape. Not a plain editable owner field.
The action. A standard Change Owner action on a record that has owner_id, plus a bulk form of it on list views (for example, reassigning a leaver's records).
Options in its dialog.
Choose the new owner (a person; a team or queue if the platform supports one).
Optionally notify the new owner.
Optionally transfer related open records along with it, such as an account's open opportunities and cases. Which relations cascade is declared per relationship.
Its own permission. "May transfer" is separate from "may edit".
Sharing. Sharing is recomputed on transfer. The previous owner's access follows the sharing rules, not the old ownership.
On the default form.owner_id shows read-only, with the action beside it. The default form stays free of system fields (plugin-formsanitize.ts).
The two-step alternative (first let the default form edit owner_id) was offered and not chosen.
Measured comparisons, from memory and not re-verified on vendor sites:
Salesforce has "Change Owner" with notify and transfer options, plus Mass Transfer Records, and transfer is its own permission.
Dynamics 365 has "Assign", with cascade rules set per relationship.
HubSpot, Zoho and Odoo use an editable owner field. Zoho also has a bulk Change Owner.
What the platform already has, read on main · 2026-11-19T05:23Z
The maintainer asked 「专门的改负责人操作,我记得平台有吧」 and 「这种应该是平台的能力吗」. Read on objectstack main, the platform already has most of the parts:
The field.owner_id is a platform-injected system field, system: true, readonly: false, "because ownership is transferable" (packages/core/src/security/user-assigned-work.ts header; OWNER_FIELD_DEF).
There is no record-level or list-level Change Owner action for ordinary use. Measured on the 18.6.0 console bundle by hotcrm#2665: no such action, apart from a Studio placeholder.
The default form filters owner_id out.
So the work is the UI door onto rules that already exist: the action with notify, the cascade option and bulk, gated by allowTransfer. It reuses the transfer write path and the #30205 hand-over machinery. This belongs to the platform, not to each app: the field, the permission and the sharing recompute are all the platform's, and an app-authored per-object action would restate a platform rule (hotcrm AGENTS.md Scope 2).
Scope addition, ruled by the maintainer: which objects offer Change Owner · 2026-11-19T05:44Z
The maintainer: 「但是不应该对所有对象开放吧」 (it should not be on every object), then 「都同意」 on the seven points below. An independent fable-tier review read origin/main81c0947 and hotcrm origin/main f06f94c7.
Why "a record that has owner_id" is too wide. The owner column is injected on every user-authored object whose ownership is user or omitted (resolveInjectedSystemColumns, packages/spec/src/data/injected-system-columns.ts), controlled_by_parent details included. All 38 HotCRM objects carry it, line items, invoices and time entries among them. A permission bit cannot fix this alone. modifyAllRecords implies transfer (permission.zod.ts ~292) and the built-in admin sets hold it on '*' (default-permission-sets.ts ~329–401), so an admin would see the action everywhere. And whether an object's ownership is meaningful is a property of the object, not of the role.
Ruled points
Visibility = structural eligibility ∧ object switch ∧ permission.
Structural (derived, not overridable).resolveInjectedSystemColumns(def).owner === true, and owner_id is not declared readonly. So ownership: 'business_unit' | 'org' | 'none', managedBy objects and sys_* objects never offer the action.
Object switch. A new userActions.transfer entry, the same shape as the existing entries (boolean | { enabled, visibleWhen, disabledWhen }, object.zod.ts ~1565–1640). Derived default when omitted: on for sharingModelprivate / public_read / public_read_write; off for controlled_by_parent. Authors override both ways: on for a detail with a real owner (contact, quote, contract), off where the owner is the actor by rule (timesheet, expense report, forecast snapshot). visibleWhen narrows by record state (a converted lead, a completed event). enabled: true on an object that fails the structural test is refused at parse or lint (ADR-0049).
Permission. The existing transfer verdict: edit ∧ allowTransfer (or modifyAllRecords), per record. Read it from the explain engine's transfer operation (explain-engine.ts ~288–307, ~3171–3213), not recomputed in the client. No new permission bit.
The switch gates the dedicated action, not the raw write. The Change Owner endpoint (single, bulk and cascade) refuses an object whose switch is off. A plain owner_id update stays governed by allowTransfer alone, so import mappings and hooks are unaffected. An author who wants a hard block declares owner_idreadonly.
modifyAllRecords keeps implying transfer for the action's visibility (安全:owner_id(属主锚点)客户端可写、服务端无守卫 → 非属主可伪造/转移记录属主 #3004 semantics unchanged). The object switch is what keeps the admin's button off meaningless objects.
Cascade is declared per relationship, on the child's reference field (beside deleteBehavior), and ticked in the dialog. It is phase 2; phase 1 ships single + bulk.
The dialog offers only declared candidates whose child object passes point 1.
Default semantics: move only the child records owned by the previous owner.
Every cascaded row passes the caller's own transfer verdict on the child object. Failures are reported per row, never skipped silently. Rows are capped.
controlled_by_parent details are not cascaded for access; their access already follows the master.
The platform has no general notion of "open", so a declaration carries a filter, or phase 2 offers only "all" / "owned by the previous owner".
Action title is fixed: "Change Owner" (i18n'd). The dialog's field uses the object's own owner label ("Assigned To", "Person", …).
The seventh point (which HotCRM objects opt in or out) is the app's, and is filed on the hotcrm side.
Bulk
The bulk form issues per-row by-id updates under the caller's context and reports per-row failures. A predicate update carrying owner_id has no pre-image and is refused by the owner guard (security-plugin-authz-middleware.ts ~1778–1783). Reuse the #30205 report shape and row cap (UserWorkTransferReport, USER_WORK_TRANSFER_ROW_CAP).
Acceptance additions
An object with ownership: 'none', a managedBy object and a sys_* object show no action, even for a platform admin.
A controlled_by_parent detail shows no action by default, and shows it with userActions.transfer: true.
A private object with userActions.transfer: false shows no action for a holder of modifyAllRecords, and the Change Owner endpoint refuses it.
A caller with edit but no transfer grant sees owner_id read-only and no action.
After a transfer, the new owner can edit the record and the previous owner's access follows the sharing rules. Measure this: the owner_only_writes floor (default-permission-sets.ts ~922) is keyed on created_by, not owner_id, and the reviewer only read the comment that says it yields to the sharing service.
The target may be a queue where the object carries the queue column (ADR-0142). A move to a queue needs the transfer grant.
Not verified by the reviewer: the prior art (Salesforce: Change Owner only on owner-bearing objects, a "Transfer Record" permission, account transfer moving the previous owner's contacts and optionally open opportunities and cases; Dynamics 365: user/team- vs organization-owned tables, Assign cascade per relationship) is from memory, not checked online. The UI mount point for the action was not read.
Triage: lands in domain:ui; rationale: area:data · Bug · Broken (default forms never render owner_id, and there is no Change Owner action) · end users, daily (reassigning a record is a daily manager action) · measured on 18.6.0 → p1, as filed.
Phase 2 (cascade per relationship) gets its own card after these. #35344 (offboarding hand-over) follows the same switch. This card stays the parent and closes when the three sub-cards are closed.
This parent is not dispatched itself. It closes when its three phase-1 sub-cards close. The phase-2 card (cascade per relationship) is filed when phase 1 lands.
{
"issue": 35315,
"status": "rework",
"branch": "claude/issue-35315-change-owner-cascade",
"pr": "https://github.com/objectstack-ai/objectstack/pull/36525",
"session": "session_01ADHkmRY38EZf38Yy3zthbY",
"premise_still_valid": true,
"summary": "Phase 2 of ruling 7000907189 point 4 is implemented on the branch, final head 498bef43e. (1) Spec: field transferBehavior none|cascade beside deleteBehavior. It is refused at parse off lookup/master_detail, on a sys_ reference, and on a child that does not offer Change Owner itself (structurally ineligible, controlled_by_parent, or userActions.transfer off). (2) Server: an optional cascade leg [{object, field}] on the two #35402 POSTs, plus GET /data/:object/change-owner/cascades for the candidates. Only rows owned by the previous owner move, each one by id as the caller. Refused rows are reported, the cap is 500 with remaining, and an undeclared relation gets 400 before any write. (3) Console: the dialog ticks only the explain-allowed candidates and sends them. This round fixed every CI red this diff caused at 364cb1148. The cascade child is now asked its own update exposure (canServeApiOperation), and change-record-owner.ts is classified in the #22661 reference-target pin. The field form and the object form's field rows offer transferBehavior, translated in all 11 metadata-form packs. zh-Hant was regenerated. cascadeOption is allowlisted as a format string and cascadeRemaining is a tally. origin/main was merged and the artifacts regenerated. The census pins moved: metadata-protocol 86 to 87, lint 93 to 95 and 18 to 19, platform-objects 130 to 132 and 759 to 761. Status is rework for one reason only. The hand-written liveness row field.transferBehavior in packages/spec/liveness/field.json is still missing, because this session's tool classifier refused every edit to that file, including after the seat's ruling. Exact row: after deleteBehavior, \"transferBehavior\": {\"status\":\"live\",\"verifiedAt\":\"2026-11-22\",\"evidenceScope\":\"in-repo\",\"evidence\":\"packages/core/src/security/change-record-owner.ts#transferCascadeRelations; packages/spec/src/data/field.zod.ts#transferBehavior; packages/spec/src/data/object.zod.ts#refuseIneligibleTransferCascades; packages/spec/src/data/field-transfer-behavior.test.ts\"}. Until it lands, check:liveness, check:generated (liveness counts), Spec property liveness, Type Check source gates (liveness citations), Lint UI (its check:liveness step) and the spec liveness tests in Test Core stay red. The PR body is stale on two points, which the seat should update because a subagent does not PATCH bodies: the Acceptance note saying the Studio form does not offer transferBehavior, and the Tests readings (see tests below).",
"tests": "Final lock run for the code (VERDICT command-exit 0, held 11m55s on a shared box) on the merged tree daa50a33a plus the regen and pin that were then committed as 8d2f54947. spec: 7 files exit 0, Test Files 7 passed (7), Tests 688 passed (688) (field-transfer-behavior, user-action-transfer, field, object, metadata-form-zod-reconciliation, form-delete-behavior-options, metadata-form-declared-rows.pin). core: change-record-owner.test.ts plus second-object-read-exposure.pin.test.ts exit 0, Tests 35 passed (35). metadata-protocol: protocol.meta-types-degenerate-derivation.test.ts exit 0, Tests 18 passed (18). rest: change-owner-routes.test.ts exit 0, Tests 17 passed (17). ui (pnpm --dir ui exec vitest run): changeOwner-35403.test.tsx plus the i18n count-families-11445, untranslated-identity-4376 and zh-hant-generated tests exit 0, Test Files 4 passed (4), Tests 55 passed (55). Typecheck: core exit 0, spec exit 0 (rest and client were exit 0 at 67b9f61d6; this round's changes to them are none). Second lock run at 1574aaf1c (VERDICT command-exit 0): platform-objects src/apps/translations/ exit 0, Test Files 26 passed (26), Tests 610 passed (610); lint validate-predicate-path-refs.test.ts exit 0, Tests 62 passed (62). Ablation of the new exposure guard via scripts/ablation-replace.mjs: anchor 'if (!canServeApiOperation(asRecord(child.enable)' hit 1 to 0, blob 95a068aff2de to 8ccd1eafda27. Core suite went red, Tests 1 failed | 30 passed (31), on 'offers no cascade to a child whose declared API exposure does not serve update'. It was restored with blob == HEAD 95a068aff2de and git diff HEAD empty. The core test imports the module from source, so no build sits between the mutation and the run. The earlier ablation (the declared-only guard in cascadeRelationsOf) went red at 67b9f61d6 and was restored the same way.",
"gates": "Derived with node scripts/pm/dispatch-gates.mjs --commands at 56f805456. The derivation is identical at 498bef43e (diff empty). 126 of 127 were run locally at 56f805456 with each exit code captured before any pipe; 121 exit 0. The non-zero ones: (1) pnpm --filter @objectstack/spec run check:generated exit 1, stale only on liveness/state-counts (the missing ledger row). (2) check:liveness exit 1, 1 UNCLASSIFIED field/transferBehavior. (3) check:skill-examples exit 3, PREREQUISITE NOT MET (client-react dist not built). (4) check:dual-build-cjs-loads exit 3, prerequisite (unbuilt dists). (5) check:type-check-debt exit 3, lock queue-timeout 99. Items 3 to 5 are NOT MEASURED; CI covers them. Re-run at 498bef43e after the translation commits: check:i18n 0, check:i18n-stale-fill 0, check:i18n-walk-parity 0, check-nul-bytes 0, check:i18n-coverage 3 (COULD NOT MEASURE: service-print dist missing in the worktree). Reconciliation with --ran: 1 of 127 UNRUN, pnpm --dir ui exec vitest run scripts/. That run is declared narrowed to CI: at 364cb1148 it failed for environment reasons (spec dist missing mid-build) and CI's Test UI runs it. CI at 56f805456: green on Build Core, Build & E2E UI, Live E2E UI, Lint & Repo Gates, Lint ESLint plus every scoped lint, Check Changeset, Type Check workspace/consumer/debt ledger, Type Check UI, Dogfood Regression Gate, Test Core 1,3,4,7,8,9,10 of 10, and Test UI 1 to 16 plus the aggregate. Red: Spec property liveness, Type Check source gates (liveness citations step), Lint UI (check:liveness UNCLASSIFIED), and Test Core 2/10 (spec liveness tests). Test Core 5/10 (lint predicate census) and 6/10 (platform-objects translated-leaf census) were fixed in 5e79bda20 and 1574aaf1c. CI at 498bef43e: in_progress (27 running), with Spec property liveness already failure for the same missing row.",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm (Clause-②: yes (widening))",
"mcp_calls": "0",
"api_writes": "2 — POST via fleet-write relay pr_create (PR #36525, draft, assignee os-steve, run 45050355219, read-back identical); POST /repos/objectstack-ai/objectstack/issues/35315/comments via post-stamped.mjs (this os-dev-report)",
"open_questions": [
{
"question": "Who adds the hand-written liveness row field.transferBehavior to packages/spec/liveness/field.json on this branch? This session's tool classifier refuses every edit to that file.",
"options": [
"A the seat, or a fresh dispatch on the same branch, adds the row given in summary",
"B the maintainer adds it in the PR"
],
"recommendation": "A, because the row content is fixed by the seat's ruling and it is the only red left that this diff causes"
}
],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · the PR body's Acceptance note on the Studio form and its Tests readings are stale after this round; the seat updates the body (noted, not filed)"
]
}
Progress (2026-11-23T10:51Z), in answer to triage's request 7098558281. The claim is live and is not released.
Waiting-on: the maintainer, since 2026-11-22T19:40Z, asked again at 2026-11-23T06:30Z today. PR feat: Change Owner cascade, transferBehavior on a relationship, ticked in the dialog #36525 (draft, branch claude/issue-35315-change-owner-cascade) is code-complete (os-dev-report 7084454294). It lacks only the transferBehavior row in packages/spec/liveness/field.json. The seat's tooling refuses that edit, and it will not be worked around, so the maintainer either adds the row or authorises the seat to.
Once the row is in: merge main (the branch is about 70 commits behind), re-run the gates, L1, then land.
Ruled (2026-11-23T11:57Z): the maintainer authorises the liveness-ledger row. Quote, from this project's chat at 2026-11-23T11:57Z: 「35315 同意」, relayed to seat 2 by the coordinator. It answers the seat's ask to add field.transferBehavior to packages/spec/liveness/field.json on PR #36525.
Next, under the existing claim 7081809395: one dev pass on the PR branch to
merge main (the PR is currently in conflict),
add the row: status live, evidence change-record-owner.ts#transferCascadeRelations, field.zod.ts#transferBehavior, object.zod.ts#refuseIneligibleTransferCascades, field-transfer-behavior.test.ts,
regenerate the liveness counts and re-run the gates.
Then L1 and seat landing. Serial: seat 7's #36683 (#36259) lands first on the shared change-record-owner.ts line (agreed on 7099633279), and this PR rebases over it.
{
"issue": 35315,
"status": "done",
"branch": "claude/issue-35315-change-owner-cascade",
"pr": "https://github.com/objectstack-ai/objectstack/pull/36525",
"session": "session_01ADHkmRY38EZf38Yy3zthbY",
"premise_still_valid": true,
"summary": "Merged origin/main (c1e6cf75a, 94 commits) into the PR branch as merge commit 48d6a79fd. One hand conflict: the platform-objects translated-row positive control. Both intents were kept and stacked to 762 (main's showOnCreate row plus this PR's two transferBehavior rows). The generated artifacts went through scripts/pm/os-regen-merge.sh: main's side was taken, then everything was regenerated from the merged tree. Added the field.transferBehavior liveness row to packages/spec/liveness/field.json right after deleteBehavior, exactly as ordered. The edit was accepted with no permission refusal, and all four evidence anchors resolve after the merge. Regenerated the counts (field 117 classified, live 111) and committed as a39661e4a. Pushed with no force-push, and the PR is still draft. Its generated delta against main is exactly the transferBehavior lines. Seat 7's #36683 is NOT on origin/main at c1e6cf75a: change-record-owner.ts has no main-side change since #36154, so this branch has nothing of it to take yet. The PR body was NOT edited. os-dev.md says a subagent writes a PR body only at pr_create and never PATCHes it (the seat writes it instead), and that file wins over the order's step 5. The revised body is ready for the seat at /tmp/claude-0/-home-user/cecd37c9-b01d-5752-88a3-287c732fd509/scratchpad/issue-35315/body-after.md. In it, the Acceptance notes drop the known-red liveness note, cite 「35315 同意」 (project chat 2026-11-23T11:57Z, card comment 7100319120), fix the stale Studio-form note, add the #36683 serial note, and the Tests readings are refreshed at a39661e4a.",
"tests": "All runs on tree a39661e4a, each under os-verify-lock with VERDICT command-exit 0. spec: field-transfer-behavior, user-action-transfer, field, object: Test Files 4 passed (4), Tests 579 passed (579). spec form suites (metadata-form-zod-reconciliation, form-delete-behavior-options, metadata-form-declared-rows): Tests 110 passed (110). core change-record-owner.test.ts: Tests 31 passed (31). core second-object-read-exposure.pin: Tests 4 passed (4). rest change-owner-routes.test.ts: Tests 17 passed (17). lint validate-predicate-path-refs: Tests 62 passed (62). metadata-protocol protocol.meta-types-degenerate-derivation: Tests 18 passed (18). platform-objects object-lifecycle-panel and object-collapsed-sections echo-decisions: Tests 78 passed (78). ui changeOwner-35403, count-families-11445, untranslated-identity-4376: Test Files 3 passed (3), Tests 44 passed (44). The first ui attempt failed only to resolve @objectstack/client, because its dist was unbuilt; it was rebuilt and rerun green. Typecheck of spec, core, rest, client and platform-objects: each Done, exit 0. No new ablation: this round changed no tested behaviour (only a merge, a ledger row and regenerated artifacts), and change-record-owner.ts is byte-identical to 498bef43e.",
"gates": "pnpm --filter @objectstack/spec check:generated --fix: exit 0. It regenerated api-surface, export-origins, reference docs and liveness counts, and its re-check passed on all of them. pnpm --filter @objectstack/spec check:liveness: exit 0. The pre-commit os-regen hook reported the deferred regeneration discharged. node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack: 58 paths against merge base c1e6cf75a, 128 families, every one run with its exit code recorded. --ran verdict: 128 derived, 127 run, 1 NOT MEASURED. check:dual-build-cjs-loads exited 3 (PREREQUISITE NOT MET, it needs a full workspace build); CI ran it green inside Lint & Repo Gates. check:i18n and check:skill-examples first exited 3 (unbuilt CLI closure and client-react). Their named closure was built and both reran at exit 0: i18n all bundles in sync, skill-examples 349 examples type-check. Every other family exited 0. CI on head a39661e4a: 70 check-runs, 61 success, 9 skipped (opt-in or matrix placeholders), 0 failure, 0 in progress. Required contexts all success: Lint & Repo Gates, TypeScript Type Check, Test Core (10/10 shards), Build Core, Governed Surface Queue Guard, Lint UI, Type Check UI, Test UI (16/16), Build & E2E UI, Live E2E UI, Dogfood Regression Gate. Spec property liveness: success. Check Changeset: success. PR mergeable_state: clean.",
"dogfood_battery": "n/a: the PR title has no `!`, and Clause-② is yes (widening), with no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "1: POST repos/objectstack-ai/objectstack/issues/35315/comments (os-dev-report via scripts/pm/post-stamped.mjs). Plus one git push, which is not REST. Reads were GET pulls/36525, GET commits/a39661e4a/check-runs and GET issues/35315/comments.",
"open_questions": [
{ "question": "The order's step 5 asks the dev to update the PR body, but os-dev.md says the seat writes PR bodies after pr_create and a subagent never PATCHes them. Who writes it?", "options": ["A: the seat PATCHes the body from body-after.md in this session's scratchpad", "B: amend os-dev.md to let a dev PATCH an existing PR body on order"], "recommendation": "A, because os-dev.md binds and the text is already drafted and checked" },
{ "question": "The harness attribution reminder gives a commit trailer that carries a model name. The pre-push check:commit-card-trailers hook refused it, and AGENTS.md requires the model-free pair. Should the reminder be corrected?", "options": ["A: no action; AGENTS.md wins and the hook enforces it", "B: a seat notes it for the harness owner"], "recommendation": "A, because the hook already holds the line" }
],
"security_findings": "none",
"out_of_scope_findings": []
}
Accepted deviation (2026-11-23T13:11Z), from the contract review of PR #36525 (7102103286, S1). A controlled_by_parent detail is never a cascade candidate, whatever its own userActions.transfer says. This is the claim's call (7081809395) on ruling 7000907189 point 4 ("not cascaded for access"). It is the safe side: opening it later is additive. If the maintainer wants such details (for example contacts whose switch is on) to follow their account, that is a new card.
{
"issue": 35315,
"status": "done",
"branch": "claude/issue-35315-change-owner-cascade",
"pr": "https://github.com/objectstack-ai/objectstack/pull/36525",
"session": "session_01ADHkmRY38EZf38Yy3zthbY",
"premise_still_valid": true,
"summary": "Patch round on PR #36525, head a39661e4a -> b17d3b639 (2 commits: ff4a69996 code and pins, b17d3b639 changeset/doc/liveness). Contract M1: FieldSchema refuses transferBehavior 'cascade' with multiple: true at ['transferBehavior'] (lookupAutofill precedent; 'none' still accepted), and transferCascadeRelations skips a multiple: true reference for definitions that bypass parse, both pinned. Contract S3: runCascade groups the probe by previous owner, one find per (previous owner, relationship) with { field: { $in: parentIds }, owner_id } (bare equality for one parent), keeping the 500 cap, per-row by-id writes and the remaining semantics; the docblock states why grouping changes no verdict. L1 #1: driver-sql and metadata-core patch entries added. L1 #3/#4: readFailure and queued-parent pins added, each shown red under a one-line ablation. L1 #5: data-api.mdx and the changeset now say refused rows are listed, capped rows counted in remaining, readFailure on an unread relationship, and name the two candidate filters. L1 #7: the security.sharingModel fallback is dropped (its pin line removed). N2: the test anchor moved from evidence to the liveness row's note. Changeset Skills-docs line is now 'follow-up #36713'. Not taken: L1 #2 (writeOwner, waits on #36683) and optional L1 #8 (marking remaining unknown changes the outcome shape in core, rest and client). Revised PR body, not PATCHed: /tmp/claude-0/-home-user/cecd37c9-b01d-5752-88a3-287c732fd509/scratchpad/issue-35315/body-after-2.md. Commits carry the AGENTS.md model-free trailer pair rather than the harness reminder's model-named Co-Authored-By (AGENTS.md outranks it; pre-push check:commit-card-trailers passed).",
"tests": "All under os-verify-lock, VERDICT command-exit 0. spec field-transfer-behavior + user-action-transfer + field + object: Test Files 4 passed (4), Tests 580 passed (580). core change-record-owner.test.ts: Tests 36 passed (36) (5 new cases); whole core suite Test Files 164 passed (164), Tests 3829 passed (3829). rest change-owner-routes.test.ts: Tests 17 passed (17). Ablations via scripts/ablation-replace.mjs, source-imported tests (no dist in path), each anchor 1->0 with blob moved, then restored blob == HEAD and git diff HEAD empty: delete readFailure assignment -> core 1 failed/35 passed (readFailure case); drop !previousOwner guard -> core 1 failed (queued-parent case); drop f.multiple !== true -> core 1 failed (multi-value case); FieldSchema multi branch to else if (false) -> spec 1 failed | 20 passed (21). Source/test files are byte-identical between ff4a69996 (where tests ran) and head b17d3b639.",
"gates": "Typecheck spec/core/rest/client: each Done, REST_EXIT=0 TYPECHECK_EXIT=0. spec check:generated --fix: 14 of 14 up to date, nothing regenerated. check:liveness exit 0. dispatch-gates --repo objectstack-ai/objectstack at b17d3b639 (58 paths vs merge base c1e6cf75a; stderr warned the tree is 9 commits behind origin/main, stale files scripts/pm/fleet-write/*, branch not merged per order): 128 derived, --ran 128 of 128. 124 exit 0 first pass; check:skill-examples (exit 3) and pnpm --dir ui exec vitest run scripts/ (1 file failed resolving unbuilt @objectstack/client) both exit 0 after building client + client-react (re-run file Tests 15 passed (15)). NOT MEASURED locally, exit 3 PREREQUISITE NOT MET: check:i18n (needs CLI + plugin closure), check:dual-build-cjs-loads (needs full build). CI at b17d3b639: 70 check-runs, all completed, none failed; Lint & Repo Gates success, TypeScript Type Check success, Test Core success, Build Core success, Governed Surface Queue Guard success, Lint UI success, Type Check UI success, Test UI success, Build & E2E UI success, Live E2E UI success, Dogfood Regression Gate success, Spec property liveness success, Check Changeset success.",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "1 — POST issues/35315/comments (this report, via scripts/pm/post-stamped.mjs); git push x2 to the branch are not REST writes",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": []
}
{
"issue": 35315,
"status": "done",
"branch": "claude/issue-35315-change-owner-cascade",
"pr": "https://github.com/objectstack-ai/objectstack/pull/36525",
"session": "session_01ADHkmRY38EZf38Yy3zthbY",
"premise_still_valid": true,
"summary": "Merge round on PR #36525, head b17d3b639 → cdb1e3976 (2 commits, no rebase, no force-push, PR kept draft, body not PATCHed). Pre-check: origin/main e343ab7c2 does not contain #36683 (git log grep 0 hits; REST reads PR 36683 open, merged false), so the merge went ahead; nothing routed through writeOwner. 9ef57d479 = git merge origin/main (via scripts/pm/os-regen-merge.sh step 1) with TWO hand conflicts, both count pins where each side added one authorable property, resolved by stacking both intents: (1) packages/metadata-protocol/src/protocol.meta-types-degenerate-derivation.test.ts CARD_PROPERTY_COUNTS: kept main's #36366 comment line (object 51 → 52, actionLayout) and this branch's #35315 line (field 86 → 87, transferBehavior); counts now field 87 and object 52. (2) packages/platform-objects/src/apps/translations/object-lifecycle-panel-echo-decisions.test.ts positive control: kept main's '763 since #36366' comment, re-based this branch's line to '765 since #35315' (760 + 3 actionLayout rows + 2 transferBehavior rows), assertion toBe(765), measured green. Five os-regen artifacts both sides moved were taken from main's side by the script's rerun (step 2, against the recorded pre-merge base c1e6cf75a) and regenerated in cdb1e3976 with pnpm --filter @objectstack/spec check:generated --fix: packages/spec/api-surface/data.json, packages/spec/authorable-surface/data.json, packages/spec/export-origins/data.json, content/docs/references/data/object.mdx, content/docs/references/system/migration.mdx; branch-only artifacts kept (references/data/field.mdx, authorable-defaults/data.json, liveness/state-counts/field.md). The regen commit is pure insertions (+32/-0 vs the merge commit), and the branch's delta vs main on every generated path equals its pre-merge delta vs c1e6cf75a (same 9 files, +17/-1); liveness: one row, field 116 → 117, main's counts otherwise unchanged. Text auto-merged without conflict: field.zod.ts, object.zod.ts, object.form.ts, object-schema-fls-references.ts, the 11 metadata-forms.generated.ts bundles, object-collapsed-sections-echo-decisions.test.ts, 11 ui i18n locales. Deviation: the script's step-3 commit on the rerun was refused by the pre-commit deferral (its own message says the fallback is to regenerate), so main's side (staged tree 51f482702) and the regeneration landed as ONE commit cdb1e3976 rather than two; the staged diff was read before committing. The merge did not touch packages/core, packages/rest or packages/client (git diff --stat b17d3b639 HEAD on those paths is empty), so the whole core suite was not re-run.",
"tests": "All under os-verify-lock at cdb1e3976 (source identical to what ran), each VERDICT command-exit 0. spec src/data/field-transfer-behavior + user-action-transfer + field + object: Test Files 4 passed (4), Tests 582 passed (582). core src/security/change-record-owner.test.ts: Tests 36 passed (36). rest src/change-owner-routes.test.ts: Tests 17 passed (17). Conflicted files: metadata-protocol protocol.meta-types-degenerate-derivation.test.ts Tests 18 passed (18); platform-objects object-lifecycle-panel-echo-decisions + object-collapsed-sections-echo-decisions Test Files 2 passed (2), Tests 78 passed (78). No ablation: the round changed no tested behaviour.",
"gates": "Typecheck spec/core/rest/client under lock: all four Done, VERDICT command-exit 0. spec check:generated: first run 3 of 14 stale (api-surface, export-origins, docs), --fix regenerated those 3, re-run 'All 14 generated artifacts are up to date' exit 0; pre-commit on cdb1e3976 printed 'deferred regeneration discharged — all artifacts current, marker cleared'. Narrowed local subset (declared narrowing, scoped to the conflicted and regenerated files per the order), exit captured before any pipe, all 0: spec check:liveness, spec check:generated, spec check:strictness-ledger, check:nul-bytes, check:i18n (first exit 3 PREREQUISITE NOT MET; after the CLI + plugin closure build, exit 0 'all bundles in sync'), check:i18n-stale-fill, check:cross-package-test-inputs, check:test-source-alias, check:issue-citations, check:doc-anchors, check:docs-single-h1, check:doc-frontmatter, check:docs-spec-enumerations, check:merge-driver, check:tier-file-adoption, docs-audit/check-affected-docs.mjs, docs-audit/check-drift-comment.mjs. dispatch-gates --repo objectstack-ai/objectstack --ran at cdb1e3976 (58 paths vs merge base e343ab7c2): 111 of 128 derived families UNRUN locally, declared narrowing, CI runs the farm. CI at cdb1e3976 read once, not polled: 56 completed none failed, 12 in_progress; required: Lint & Repo Gates success, TypeScript Type Check success, Build Core success, Governed Surface Queue Guard success, Lint UI success, Build & E2E UI success, Live E2E UI success, Dogfood Regression Gate success, Type Check UI in_progress, Test Core and Test UI not yet reported. PR mergeable true, mergeable_state blocked (was dirty).",
"dogfood_battery": "n/a — no ! in the PR title and Clause-② is yes (widening), no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "1 — POST issues/35315/comments (this os-dev-report, via scripts/pm/post-stamped.mjs); plus git push of the branch (not a REST write)",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": ["carrier: none · noted, not filed: scripts/pm/os-regen-merge.sh, on the RERUN path (merge already committed by hand after a conflict) step 3's 'commit main's side before regenerating' is refused by the pre-commit deferral the merge commit left, so main's side and the regeneration necessarily land in one commit; no wrong bytes result (staged diff read), only the two-commit separation the script promises is unavailable on that path"]
}
{
"issue": 35315,
"status": "done",
"branch": "claude/issue-35315-change-owner-cascade",
"pr": "https://github.com/objectstack-ai/objectstack/pull/36525",
"session": "session_01ADHkmRY38EZf38Yy3zthbY",
"premise_still_valid": true,
"summary": "Follow-up round on PR #36525. Merged origin/main (which includes #36683 at ec545def5d) into the branch with a merge commit, no force-push: 3fd28f0926. The cascade's child owner write in runCascade now goes through #36683's writeOwner(engine, rel.object, String(childId), { owner_id: newOwner }, context) (9394e8f46f). writeOwner's signature on main already takes object, id, changeSet and context, so its public shape is unchanged and nothing was re-implemented. A child whose owner_id is locked (read-only, or a readonlyWhen that holds) is now refused under strictReadonlyWrites and listed in that relationship's cascade failures as FIELD_NOT_ACCESSIBLE. It is not counted as updated and is never named in the notice, which only ever lists parent ids. The parent's move stands, and the failure-report shape is unchanged. Changeset and data-api.mdx now say this (8eed0dffa8). Final head 8eed0dffa8bb83cf7cc725eb960495e3717f98c9; CI on it is complete and green. Conflict resolutions: (1) packages/core/src/security/change-record-owner.ts, the single-record line: kept this branch's previousOwners read above it and took main's writeOwner call in place of the bare engine.update. (2) change-record-owner.test.ts, packages/rest/src/change-owner-routes.test.ts and content/docs/api/data-api.mdx auto-merged with no textual conflict, so both sides' pins are kept (main's fake engine with locked/strictWrites now serves the cascade pins). (3) The i18n locales and metadata-forms translations auto-merged. No generator-owned artifact was deferred (os-regen-pending absent); spec check:generated is green on the merged tree. No behaviour either PR pinned changed: all 45 core and 22 rest tests in the touched files pass, the pre-existing pins of both PRs included.",
"tests": "All at head 8eed0dffa8. Touched files: core change-record-owner.test.ts 45/45, rest change-owner-routes.test.ts 22/22, both run under os-verify-lock with VERDICT command-exit 0. New pins: core, single (a locked child t3 is listed FIELD_NOT_ACCESSIBLE, keeps u_a, updated 1 failed 1, strictWrites [true,true,true], notice recordIds ['l1']) and bulk (locked t1 listed, t3/t4 moved). Rest, on ObjectQL + SQLite :memory: in the existing readonlyWhen describe: child object case_owner_lock_task with owner_id.readonlyWhen \"record.status == 'closed'\" and three children of k_open. Result: 200, cascade {updated 2, failed 1}, failures [[ct_closed, FIELD_NOT_ACCESSIBLE]], stored child owners {ct_open: u_next, ct_closed: u_a, ct_open2: u_next}, all 3 child engine.update calls carry strictReadonlyWrites: true, one notice naming ['k_open']. Package suites (lock VERDICT command-exit 0): @objectstack/core 156 files / 3735 tests passed; @objectstack/rest 428 files / 8804 passed, 351 skipped. Ablation of the child write: with scripts/ablation-replace.mjs --hold, reverted the writeOwner line to the bare engine.update (no strict option). Anchor went 1 -> 0, replacement 0 -> 1, blob 5915ea68 -> 4bf87475. Rebuilt @objectstack/core; ablation-dist-preflight found 'id: childId' in dist. Result: core 2 failed / 43 passed (both new cascade lock pins red), rest 1 failed / 21 passed (the new real-engine pin red). Restore: --restore gave blob 5915ea689380 == HEAD and an empty git diff HEAD. Rebuilt core; preflight --absent passed. Result: core 45/45, rest 22/22.",
"gates": "Local, at 8eed0dffa8: pnpm --filter @objectstack/core typecheck and @objectstack/rest typecheck both exit 0 (lock VERDICT command-exit 0; test-typecheck OK). dispatch-gates --commands --repo objectstack-ai/objectstack derived 128 families for the 58-path PR surface. --ran with exit codes reconciled them as 128 derived, 125 run, 3 NOT-MEASURED, 0 UNRUN. Exit 0 on all but five, including check-adr-0087-registration --base origin/main, spec check:generated, check:nul-bytes, check:engine-double-contract and check:durability-log-level. NOT MEASURED (exit 3, built output missing locally): spec check:skill-examples, check:dual-build-cjs-loads, check:i18n. Also not measured: pnpm --dir ui exec vitest run scripts/ exited 1 only because the @objectstack/client entry did not resolve (client dist not built locally) in unit-registry-absence-collision; 5126 other tests passed. check:platform-checklist exited 1: ABSENT SYMBOL metadata-core anonymous-form-intake.ts#anonymousFormExplicitWithdrawals in areas/access-security.json. This diff does not touch either file, and the same anchor line is on origin/main 844218f5. CI's Lint & Repo Gates is green on this head, so this is a local reading only. CI on head 8eed0dffa8bb83cf7cc725eb960495e3717f98c9: all 70 check-runs completed, 61 success and 9 skipped, none failed or pending. Includes Lint & Repo Gates, TypeScript Type Check, Test Core 1-10/10, Build Core, Governed Surface Queue Guard, Lint UI, Type Check UI, Test UI 1-16/16, Build & E2E UI, Live E2E UI, Dogfood Regression Gate, Check Changeset, Spec property liveness and PR-body guards, all success. No rerun was needed.",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm (Clause-②: yes (widening)); CI Dogfood Regression Gate success on 8eed0dffa8",
"mcp_calls": "0",
"api_writes": "1 — POST issue comment on #35315 (this os-dev-report) via scripts/pm/post-stamped.mjs; git push x3 to claude/issue-35315-change-owner-cascade (not REST); PR body untouched",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": ["carrier: none · noted, not filed — check:platform-checklist exits 1 locally on this tree and on origin/main 844218f5: ABSENT SYMBOL anonymousFormExplicitWithdrawals anchored from docs/qa/platform-checklist/areas/access-security.json. CI's Lint & Repo Gates is green on this head, so it is not reproduced by a public door; for the seat to triage if it wants. Dedupe words: anonymousFormExplicitWithdrawals, access-security.json, ABSENT SYMBOL, platform-checklist"]
}
Landed: 2026-11-24T01:50Z · PR #36525 merged and closed this card. pm:dispatched is cleared in the same stroke; domain:*, area:* and the priority stay. Follow-ups: #36713 (skills docs), #36714 (lint), #36736 (regen script).
Activity
objectstack-fleet commentedon Nov 19, 2026
repo:hotcrm#2 · os-mickey · session_01ASNY8XiE8ZJYbrmzFDtS9g
Grade: p2 → p1 · maintainer's word · 2026-11-19T04:50Z
The maintainer, verbatim, in hotcrm seat 2's session (2026-11-19): 「35315 35249 提升p1」.
Context. objectstack-ai/hotcrm#2665 audits HotCRM's authored forms for return to the platform default. 12 of 14 forms are held only by
owner_id(#35315), and the opportunity, lead and case forms are held by conditional fields (#35249). Until both are fixed, an app cannot adopt the default form without losing reassignment, the loss reason, the disqualification reason or the case resolution.Generated by Claude Code
objectstack-fleet commentedon Nov 19, 2026
repo:hotcrm#2 · os-mickey · session_01ASNY8XiE8ZJYbrmzFDtS9g
Direction recorded · maintainer's word · 2026-11-19T05:22Z
The maintainer, verbatim, in hotcrm seat 2's session on 2026-11-19: 「同意」. He was answering the seat's recommendation after asking 「改负责人:其他平台是怎么设计的?」.
Chosen: a dedicated Change Owner action, the Salesforce / Dynamics 365 shape. Not a plain editable owner field.
owner_id, plus a bulk form of it on list views (for example, reassigning a leaver's records).owner_idshows read-only, with the action beside it. The default form stays free of system fields (plugin-formsanitize.ts).The two-step alternative (first let the default form edit
owner_id) was offered and not chosen.Measured comparisons, from memory and not re-verified on vendor sites:
Generated by Claude Code
objectstack-fleet commentedon Nov 19, 2026
repo:hotcrm#2 · os-mickey · session_01ASNY8XiE8ZJYbrmzFDtS9g
What the platform already has, read on
main· 2026-11-19T05:23ZThe maintainer asked 「专门的改负责人操作,我记得平台有吧」 and 「这种应该是平台的能力吗」. Read on objectstack
main, the platform already has most of the parts:owner_idis a platform-injected system field,system: true,readonly: false, "because ownership is transferable" (packages/core/src/security/user-assigned-work.tsheader;OWNER_FIELD_DEF).allowTransferis a separate permission bit,transferinpackages/spec/src/security/permission.zod.ts:111,145, from The managed-deny floor still misses anallowTransfer-only wildcard — the evaluator's FIRST grant route, and the third size of the same hiding shape #14137. The authz middleware lets anowner_idchange through only with the transfer grant, and edit is still needed beside it (plugin-security/src/security-plugin-authz-middleware.ts~731;explain-engine.ts~3246).UserAssignedWorkPanel(Offboarding: banning a user says nothing about their open work, and there is no way to hand it over #30205,ui/packages/app-shell/src/views/UserAssignedWorkPanel.tsx) counts that person's open work and hands it to someone else in one go.What is missing, which is this card:
owner_idout.So the work is the UI door onto rules that already exist: the action with notify, the cascade option and bulk, gated by
allowTransfer. It reuses the transfer write path and the #30205 hand-over machinery. This belongs to the platform, not to each app: the field, the permission and the sharing recompute are all the platform's, and an app-authored per-object action would restate a platform rule (hotcrm AGENTS.md Scope 2).Generated by Claude Code
objectstack-fleet commentedon Nov 19, 2026
repo:hotcrm#2 · os-mickey · session_01ASNY8XiE8ZJYbrmzFDtS9g
Scope addition, ruled by the maintainer: which objects offer Change Owner · 2026-11-19T05:44Z
The maintainer: 「但是不应该对所有对象开放吧」 (it should not be on every object), then 「都同意」 on the seven points below. An independent fable-tier review read
origin/main81c0947 and hotcrmorigin/mainf06f94c7.Why "a record that has
owner_id" is too wide. The owner column is injected on every user-authored object whoseownershipisuseror omitted (resolveInjectedSystemColumns,packages/spec/src/data/injected-system-columns.ts),controlled_by_parentdetails included. All 38 HotCRM objects carry it, line items, invoices and time entries among them. A permission bit cannot fix this alone.modifyAllRecordsimplies transfer (permission.zod.ts~292) and the built-in admin sets hold it on'*'(default-permission-sets.ts~329–401), so an admin would see the action everywhere. And whether an object's ownership is meaningful is a property of the object, not of the role.Ruled points
resolveInjectedSystemColumns(def).owner === true, andowner_idis not declaredreadonly. Soownership: 'business_unit' | 'org' | 'none',managedByobjects andsys_*objects never offer the action.userActions.transferentry, the same shape as the existing entries (boolean | { enabled, visibleWhen, disabledWhen },object.zod.ts~1565–1640). Derived default when omitted: on forsharingModelprivate/public_read/public_read_write; off forcontrolled_by_parent. Authors override both ways: on for a detail with a real owner (contact, quote, contract), off where the owner is the actor by rule (timesheet, expense report, forecast snapshot).visibleWhennarrows by record state (a converted lead, a completed event).enabled: trueon an object that fails the structural test is refused at parse or lint (ADR-0049).allowTransfer(ormodifyAllRecords), per record. Read it from the explain engine'stransferoperation (explain-engine.ts~288–307, ~3171–3213), not recomputed in the client. No new permission bit.owner_idupdate stays governed byallowTransferalone, so import mappings and hooks are unaffected. An author who wants a hard block declaresowner_idreadonly.modifyAllRecordskeeps implying transfer for the action's visibility (安全:owner_id(属主锚点)客户端可写、服务端无守卫 → 非属主可伪造/转移记录属主 #3004 semantics unchanged). The object switch is what keeps the admin's button off meaningless objects.deleteBehavior), and ticked in the dialog. It is phase 2; phase 1 ships single + bulk.controlled_by_parentdetails are not cascaded for access; their access already follows the master.The seventh point (which HotCRM objects opt in or out) is the app's, and is filed on the hotcrm side.
Bulk
The bulk form issues per-row by-id updates under the caller's context and reports per-row failures. A predicate update carrying
owner_idhas no pre-image and is refused by the owner guard (security-plugin-authz-middleware.ts~1778–1783). Reuse the #30205 report shape and row cap (UserWorkTransferReport,USER_WORK_TRANSFER_ROW_CAP).Acceptance additions
ownership: 'none', amanagedByobject and asys_*object show no action, even for a platform admin.controlled_by_parentdetail shows no action by default, and shows it withuserActions.transfer: true.privateobject withuserActions.transfer: falseshows no action for a holder ofmodifyAllRecords, and the Change Owner endpoint refuses it.owner_idread-only and no action.owner_only_writesfloor (default-permission-sets.ts~922) is keyed oncreated_by, notowner_id, and the reviewer only read the comment that says it yields to the sharing service.Not verified by the reviewer: the prior art (Salesforce: Change Owner only on owner-bearing objects, a "Transfer Record" permission, account transfer moving the previous owner's contacts and optionally open opportunities and cases; Dynamics 365: user/team- vs organization-owned tables, Assign cascade per relationship) is from memory, not checked online. The UI mount point for the action was not read.
Generated by Claude Code
objectstack-fleet commentedon Nov 19, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in
domain:ui; rationale: area:data · Bug · Broken (default forms never renderowner_id, and there is no Change Owner action) · end users, daily (reassigning a record is a daily manager action) · measured on 18.6.0 → p1, as filed.userActions.transferand structural eligibility for the Change Owner action #35401objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6CZrgaiMgTJCnswR6jQ
Split · area ux-2 on seat 5's word · 2026-11-19T08:08Z
Phase 1 of the ruled direction (7000556646, 7000907189) is filed as three p1 sub-cards, nested here:
userActions.transferand structural eligibility for the Change Owner action #35401 spec:userActions.transfer+ structural eligibility (area:data, Clause-② yes)userActions.transferand structural eligibility for the Change Owner action #35401userActions.transferand structural eligibility for the Change Owner action #35401 and Change Owner (2/3 server): single and bulk Change Owner endpoint gated by the object switch, with per-row report #35402Phase 2 (cascade per relationship) gets its own card after these. #35344 (offboarding hand-over) follows the same switch. This card stays the parent and closes when the three sub-cards are closed.
objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6CZrgaiMgTJCnswR6jQ
Parent held · area ux-2 on seat 5's word · 2026-11-19T08:09Z
Blocked-by: #35401 #35402 #35403
This parent is not dispatched itself. It closes when its three phase-1 sub-cards close. The phase-2 card (cascade per relationship) is filed when phase 1 lands.
9 remaining items
objectstack-fleet commentedon Nov 22, 2026
repo:objectstack#2 · os-steve · session_01ADHkmRY38EZf38Yy3zthbY
os-dev-report
{ "issue": 35315, "status": "rework", "branch": "claude/issue-35315-change-owner-cascade", "pr": "https://github.com/objectstack-ai/objectstack/pull/36525", "session": "session_01ADHkmRY38EZf38Yy3zthbY", "premise_still_valid": true, "summary": "Phase 2 of ruling 7000907189 point 4 is implemented on the branch, final head 498bef43e. (1) Spec: field transferBehavior none|cascade beside deleteBehavior. It is refused at parse off lookup/master_detail, on a sys_ reference, and on a child that does not offer Change Owner itself (structurally ineligible, controlled_by_parent, or userActions.transfer off). (2) Server: an optional cascade leg [{object, field}] on the two #35402 POSTs, plus GET /data/:object/change-owner/cascades for the candidates. Only rows owned by the previous owner move, each one by id as the caller. Refused rows are reported, the cap is 500 with remaining, and an undeclared relation gets 400 before any write. (3) Console: the dialog ticks only the explain-allowed candidates and sends them. This round fixed every CI red this diff caused at 364cb1148. The cascade child is now asked its own update exposure (canServeApiOperation), and change-record-owner.ts is classified in the #22661 reference-target pin. The field form and the object form's field rows offer transferBehavior, translated in all 11 metadata-form packs. zh-Hant was regenerated. cascadeOption is allowlisted as a format string and cascadeRemaining is a tally. origin/main was merged and the artifacts regenerated. The census pins moved: metadata-protocol 86 to 87, lint 93 to 95 and 18 to 19, platform-objects 130 to 132 and 759 to 761. Status is rework for one reason only. The hand-written liveness row field.transferBehavior in packages/spec/liveness/field.json is still missing, because this session's tool classifier refused every edit to that file, including after the seat's ruling. Exact row: after deleteBehavior, \"transferBehavior\": {\"status\":\"live\",\"verifiedAt\":\"2026-11-22\",\"evidenceScope\":\"in-repo\",\"evidence\":\"packages/core/src/security/change-record-owner.ts#transferCascadeRelations; packages/spec/src/data/field.zod.ts#transferBehavior; packages/spec/src/data/object.zod.ts#refuseIneligibleTransferCascades; packages/spec/src/data/field-transfer-behavior.test.ts\"}. Until it lands, check:liveness, check:generated (liveness counts), Spec property liveness, Type Check source gates (liveness citations), Lint UI (its check:liveness step) and the spec liveness tests in Test Core stay red. The PR body is stale on two points, which the seat should update because a subagent does not PATCH bodies: the Acceptance note saying the Studio form does not offer transferBehavior, and the Tests readings (see tests below).", "tests": "Final lock run for the code (VERDICT command-exit 0, held 11m55s on a shared box) on the merged tree daa50a33a plus the regen and pin that were then committed as 8d2f54947. spec: 7 files exit 0, Test Files 7 passed (7), Tests 688 passed (688) (field-transfer-behavior, user-action-transfer, field, object, metadata-form-zod-reconciliation, form-delete-behavior-options, metadata-form-declared-rows.pin). core: change-record-owner.test.ts plus second-object-read-exposure.pin.test.ts exit 0, Tests 35 passed (35). metadata-protocol: protocol.meta-types-degenerate-derivation.test.ts exit 0, Tests 18 passed (18). rest: change-owner-routes.test.ts exit 0, Tests 17 passed (17). ui (pnpm --dir ui exec vitest run): changeOwner-35403.test.tsx plus the i18n count-families-11445, untranslated-identity-4376 and zh-hant-generated tests exit 0, Test Files 4 passed (4), Tests 55 passed (55). Typecheck: core exit 0, spec exit 0 (rest and client were exit 0 at 67b9f61d6; this round's changes to them are none). Second lock run at 1574aaf1c (VERDICT command-exit 0): platform-objects src/apps/translations/ exit 0, Test Files 26 passed (26), Tests 610 passed (610); lint validate-predicate-path-refs.test.ts exit 0, Tests 62 passed (62). Ablation of the new exposure guard via scripts/ablation-replace.mjs: anchor 'if (!canServeApiOperation(asRecord(child.enable)' hit 1 to 0, blob 95a068aff2de to 8ccd1eafda27. Core suite went red, Tests 1 failed | 30 passed (31), on 'offers no cascade to a child whose declared API exposure does not serve update'. It was restored with blob == HEAD 95a068aff2de and git diff HEAD empty. The core test imports the module from source, so no build sits between the mutation and the run. The earlier ablation (the declared-only guard in cascadeRelationsOf) went red at 67b9f61d6 and was restored the same way.", "gates": "Derived with node scripts/pm/dispatch-gates.mjs --commands at 56f805456. The derivation is identical at 498bef43e (diff empty). 126 of 127 were run locally at 56f805456 with each exit code captured before any pipe; 121 exit 0. The non-zero ones: (1) pnpm --filter @objectstack/spec run check:generated exit 1, stale only on liveness/state-counts (the missing ledger row). (2) check:liveness exit 1, 1 UNCLASSIFIED field/transferBehavior. (3) check:skill-examples exit 3, PREREQUISITE NOT MET (client-react dist not built). (4) check:dual-build-cjs-loads exit 3, prerequisite (unbuilt dists). (5) check:type-check-debt exit 3, lock queue-timeout 99. Items 3 to 5 are NOT MEASURED; CI covers them. Re-run at 498bef43e after the translation commits: check:i18n 0, check:i18n-stale-fill 0, check:i18n-walk-parity 0, check-nul-bytes 0, check:i18n-coverage 3 (COULD NOT MEASURE: service-print dist missing in the worktree). Reconciliation with --ran: 1 of 127 UNRUN, pnpm --dir ui exec vitest run scripts/. That run is declared narrowed to CI: at 364cb1148 it failed for environment reasons (spec dist missing mid-build) and CI's Test UI runs it. CI at 56f805456: green on Build Core, Build & E2E UI, Live E2E UI, Lint & Repo Gates, Lint ESLint plus every scoped lint, Check Changeset, Type Check workspace/consumer/debt ledger, Type Check UI, Dogfood Regression Gate, Test Core 1,3,4,7,8,9,10 of 10, and Test UI 1 to 16 plus the aggregate. Red: Spec property liveness, Type Check source gates (liveness citations step), Lint UI (check:liveness UNCLASSIFIED), and Test Core 2/10 (spec liveness tests). Test Core 5/10 (lint predicate census) and 6/10 (platform-objects translated-leaf census) were fixed in 5e79bda20 and 1574aaf1c. CI at 498bef43e: in_progress (27 running), with Spec property liveness already failure for the same missing row.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm (Clause-②: yes (widening))", "mcp_calls": "0", "api_writes": "2 — POST via fleet-write relay pr_create (PR #36525, draft, assignee os-steve, run 45050355219, read-back identical); POST /repos/objectstack-ai/objectstack/issues/35315/comments via post-stamped.mjs (this os-dev-report)", "open_questions": [ { "question": "Who adds the hand-written liveness row field.transferBehavior to packages/spec/liveness/field.json on this branch? This session's tool classifier refuses every edit to that file.", "options": [ "A the seat, or a fresh dispatch on the same branch, adds the row given in summary", "B the maintainer adds it in the PR" ], "recommendation": "A, because the row content is fixed by the seat's ruling and it is the only red left that this diff causes" } ], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · the PR body's Acceptance note on the Studio form and its Tests readings are stale after this round; the seat updates the body (noted, not filed)" ] }Generated by Claude Code
objectstack-fleet commentedon Nov 23, 2026
repo:objectstack#2 · os-steve · session_01ADHkmRY38EZf38Yy3zthbY
Progress (2026-11-23T10:51Z), in answer to triage's request 7098558281. The claim is live and is not released.
claude/issue-35315-change-owner-cascade) is code-complete (os-dev-report 7084454294). It lacks only thetransferBehaviorrow inpackages/spec/liveness/field.json. The seat's tooling refuses that edit, and it will not be worked around, so the maintainer either adds the row or authorises the seat to.objectstack-fleet commentedon Nov 23, 2026
repo:objectstack#2 · os-steve · session_01ADHkmRY38EZf38Yy3zthbY
Ruled (2026-11-23T11:57Z): the maintainer authorises the liveness-ledger row. Quote, from this project's chat at 2026-11-23T11:57Z: 「35315 同意」, relayed to seat 2 by the coordinator. It answers the seat's ask to add
field.transferBehaviortopackages/spec/liveness/field.jsonon PR #36525.Next, under the existing claim 7081809395: one dev pass on the PR branch to
live, evidencechange-record-owner.ts#transferCascadeRelations,field.zod.ts#transferBehavior,object.zod.ts#refuseIneligibleTransferCascades,field-transfer-behavior.test.ts,Then L1 and seat landing. Serial: seat 7's #36683 (#36259) lands first on the shared
change-record-owner.tsline (agreed on 7099633279), and this PR rebases over it.objectstack-fleet commentedon Nov 23, 2026
repo:objectstack#2 · os-steve · session_01ADHkmRY38EZf38Yy3zthbY
os-dev-report
{ "issue": 35315, "status": "done", "branch": "claude/issue-35315-change-owner-cascade", "pr": "https://github.com/objectstack-ai/objectstack/pull/36525", "session": "session_01ADHkmRY38EZf38Yy3zthbY", "premise_still_valid": true, "summary": "Merged origin/main (c1e6cf75a, 94 commits) into the PR branch as merge commit 48d6a79fd. One hand conflict: the platform-objects translated-row positive control. Both intents were kept and stacked to 762 (main's showOnCreate row plus this PR's two transferBehavior rows). The generated artifacts went through scripts/pm/os-regen-merge.sh: main's side was taken, then everything was regenerated from the merged tree. Added the field.transferBehavior liveness row to packages/spec/liveness/field.json right after deleteBehavior, exactly as ordered. The edit was accepted with no permission refusal, and all four evidence anchors resolve after the merge. Regenerated the counts (field 117 classified, live 111) and committed as a39661e4a. Pushed with no force-push, and the PR is still draft. Its generated delta against main is exactly the transferBehavior lines. Seat 7's #36683 is NOT on origin/main at c1e6cf75a: change-record-owner.ts has no main-side change since #36154, so this branch has nothing of it to take yet. The PR body was NOT edited. os-dev.md says a subagent writes a PR body only at pr_create and never PATCHes it (the seat writes it instead), and that file wins over the order's step 5. The revised body is ready for the seat at /tmp/claude-0/-home-user/cecd37c9-b01d-5752-88a3-287c732fd509/scratchpad/issue-35315/body-after.md. In it, the Acceptance notes drop the known-red liveness note, cite 「35315 同意」 (project chat 2026-11-23T11:57Z, card comment 7100319120), fix the stale Studio-form note, add the #36683 serial note, and the Tests readings are refreshed at a39661e4a.", "tests": "All runs on tree a39661e4a, each under os-verify-lock with VERDICT command-exit 0. spec: field-transfer-behavior, user-action-transfer, field, object: Test Files 4 passed (4), Tests 579 passed (579). spec form suites (metadata-form-zod-reconciliation, form-delete-behavior-options, metadata-form-declared-rows): Tests 110 passed (110). core change-record-owner.test.ts: Tests 31 passed (31). core second-object-read-exposure.pin: Tests 4 passed (4). rest change-owner-routes.test.ts: Tests 17 passed (17). lint validate-predicate-path-refs: Tests 62 passed (62). metadata-protocol protocol.meta-types-degenerate-derivation: Tests 18 passed (18). platform-objects object-lifecycle-panel and object-collapsed-sections echo-decisions: Tests 78 passed (78). ui changeOwner-35403, count-families-11445, untranslated-identity-4376: Test Files 3 passed (3), Tests 44 passed (44). The first ui attempt failed only to resolve @objectstack/client, because its dist was unbuilt; it was rebuilt and rerun green. Typecheck of spec, core, rest, client and platform-objects: each Done, exit 0. No new ablation: this round changed no tested behaviour (only a merge, a ledger row and regenerated artifacts), and change-record-owner.ts is byte-identical to 498bef43e.", "gates": "pnpm --filter @objectstack/spec check:generated --fix: exit 0. It regenerated api-surface, export-origins, reference docs and liveness counts, and its re-check passed on all of them. pnpm --filter @objectstack/spec check:liveness: exit 0. The pre-commit os-regen hook reported the deferred regeneration discharged. node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack: 58 paths against merge base c1e6cf75a, 128 families, every one run with its exit code recorded. --ran verdict: 128 derived, 127 run, 1 NOT MEASURED. check:dual-build-cjs-loads exited 3 (PREREQUISITE NOT MET, it needs a full workspace build); CI ran it green inside Lint & Repo Gates. check:i18n and check:skill-examples first exited 3 (unbuilt CLI closure and client-react). Their named closure was built and both reran at exit 0: i18n all bundles in sync, skill-examples 349 examples type-check. Every other family exited 0. CI on head a39661e4a: 70 check-runs, 61 success, 9 skipped (opt-in or matrix placeholders), 0 failure, 0 in progress. Required contexts all success: Lint & Repo Gates, TypeScript Type Check, Test Core (10/10 shards), Build Core, Governed Surface Queue Guard, Lint UI, Type Check UI, Test UI (16/16), Build & E2E UI, Live E2E UI, Dogfood Regression Gate. Spec property liveness: success. Check Changeset: success. PR mergeable_state: clean.", "dogfood_battery": "n/a: the PR title has no `!`, and Clause-② is yes (widening), with no (narrowing) arm", "mcp_calls": "0", "api_writes": "1: POST repos/objectstack-ai/objectstack/issues/35315/comments (os-dev-report via scripts/pm/post-stamped.mjs). Plus one git push, which is not REST. Reads were GET pulls/36525, GET commits/a39661e4a/check-runs and GET issues/35315/comments.", "open_questions": [ { "question": "The order's step 5 asks the dev to update the PR body, but os-dev.md says the seat writes PR bodies after pr_create and a subagent never PATCHes them. Who writes it?", "options": ["A: the seat PATCHes the body from body-after.md in this session's scratchpad", "B: amend os-dev.md to let a dev PATCH an existing PR body on order"], "recommendation": "A, because os-dev.md binds and the text is already drafted and checked" }, { "question": "The harness attribution reminder gives a commit trailer that carries a model name. The pre-push check:commit-card-trailers hook refused it, and AGENTS.md requires the model-free pair. Should the reminder be corrected?", "options": ["A: no action; AGENTS.md wins and the hook enforces it", "B: a seat notes it for the harness owner"], "recommendation": "A, because the hook already holds the line" } ], "security_findings": "none", "out_of_scope_findings": [] }objectstack-fleet commentedon Nov 23, 2026
repo:objectstack#2 · os-steve · session_01ADHkmRY38EZf38Yy3zthbY
Accepted deviation (2026-11-23T13:11Z), from the contract review of PR #36525 (7102103286, S1). A
controlled_by_parentdetail is never a cascade candidate, whatever its ownuserActions.transfersays. This is the claim's call (7081809395) on ruling 7000907189 point 4 ("not cascaded for access"). It is the safe side: opening it later is additive. If the maintainer wants such details (for example contacts whose switch is on) to follow their account, that is a new card.objectstack-fleet commentedon Nov 23, 2026
repo:objectstack#2 · os-steve · session_01ADHkmRY38EZf38Yy3zthbY
os-dev-report
{ "issue": 35315, "status": "done", "branch": "claude/issue-35315-change-owner-cascade", "pr": "https://github.com/objectstack-ai/objectstack/pull/36525", "session": "session_01ADHkmRY38EZf38Yy3zthbY", "premise_still_valid": true, "summary": "Patch round on PR #36525, head a39661e4a -> b17d3b639 (2 commits: ff4a69996 code and pins, b17d3b639 changeset/doc/liveness). Contract M1: FieldSchema refuses transferBehavior 'cascade' with multiple: true at ['transferBehavior'] (lookupAutofill precedent; 'none' still accepted), and transferCascadeRelations skips a multiple: true reference for definitions that bypass parse, both pinned. Contract S3: runCascade groups the probe by previous owner, one find per (previous owner, relationship) with { field: { $in: parentIds }, owner_id } (bare equality for one parent), keeping the 500 cap, per-row by-id writes and the remaining semantics; the docblock states why grouping changes no verdict. L1 #1: driver-sql and metadata-core patch entries added. L1 #3/#4: readFailure and queued-parent pins added, each shown red under a one-line ablation. L1 #5: data-api.mdx and the changeset now say refused rows are listed, capped rows counted in remaining, readFailure on an unread relationship, and name the two candidate filters. L1 #7: the security.sharingModel fallback is dropped (its pin line removed). N2: the test anchor moved from evidence to the liveness row's note. Changeset Skills-docs line is now 'follow-up #36713'. Not taken: L1 #2 (writeOwner, waits on #36683) and optional L1 #8 (marking remaining unknown changes the outcome shape in core, rest and client). Revised PR body, not PATCHed: /tmp/claude-0/-home-user/cecd37c9-b01d-5752-88a3-287c732fd509/scratchpad/issue-35315/body-after-2.md. Commits carry the AGENTS.md model-free trailer pair rather than the harness reminder's model-named Co-Authored-By (AGENTS.md outranks it; pre-push check:commit-card-trailers passed).", "tests": "All under os-verify-lock, VERDICT command-exit 0. spec field-transfer-behavior + user-action-transfer + field + object: Test Files 4 passed (4), Tests 580 passed (580). core change-record-owner.test.ts: Tests 36 passed (36) (5 new cases); whole core suite Test Files 164 passed (164), Tests 3829 passed (3829). rest change-owner-routes.test.ts: Tests 17 passed (17). Ablations via scripts/ablation-replace.mjs, source-imported tests (no dist in path), each anchor 1->0 with blob moved, then restored blob == HEAD and git diff HEAD empty: delete readFailure assignment -> core 1 failed/35 passed (readFailure case); drop !previousOwner guard -> core 1 failed (queued-parent case); drop f.multiple !== true -> core 1 failed (multi-value case); FieldSchema multi branch to else if (false) -> spec 1 failed | 20 passed (21). Source/test files are byte-identical between ff4a69996 (where tests ran) and head b17d3b639.", "gates": "Typecheck spec/core/rest/client: each Done, REST_EXIT=0 TYPECHECK_EXIT=0. spec check:generated --fix: 14 of 14 up to date, nothing regenerated. check:liveness exit 0. dispatch-gates --repo objectstack-ai/objectstack at b17d3b639 (58 paths vs merge base c1e6cf75a; stderr warned the tree is 9 commits behind origin/main, stale files scripts/pm/fleet-write/*, branch not merged per order): 128 derived, --ran 128 of 128. 124 exit 0 first pass; check:skill-examples (exit 3) and pnpm --dir ui exec vitest run scripts/ (1 file failed resolving unbuilt @objectstack/client) both exit 0 after building client + client-react (re-run file Tests 15 passed (15)). NOT MEASURED locally, exit 3 PREREQUISITE NOT MET: check:i18n (needs CLI + plugin closure), check:dual-build-cjs-loads (needs full build). CI at b17d3b639: 70 check-runs, all completed, none failed; Lint & Repo Gates success, TypeScript Type Check success, Test Core success, Build Core success, Governed Surface Queue Guard success, Lint UI success, Type Check UI success, Test UI success, Build & E2E UI success, Live E2E UI success, Dogfood Regression Gate success, Spec property liveness success, Check Changeset success.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "1 — POST issues/35315/comments (this report, via scripts/pm/post-stamped.mjs); git push x2 to the branch are not REST writes", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [] }objectstack-fleet commentedon Nov 23, 2026
repo:objectstack#2 · os-steve · session_01ADHkmRY38EZf38Yy3zthbY
os-dev-report
{ "issue": 35315, "status": "done", "branch": "claude/issue-35315-change-owner-cascade", "pr": "https://github.com/objectstack-ai/objectstack/pull/36525", "session": "session_01ADHkmRY38EZf38Yy3zthbY", "premise_still_valid": true, "summary": "Merge round on PR #36525, head b17d3b639 → cdb1e3976 (2 commits, no rebase, no force-push, PR kept draft, body not PATCHed). Pre-check: origin/main e343ab7c2 does not contain #36683 (git log grep 0 hits; REST reads PR 36683 open, merged false), so the merge went ahead; nothing routed through writeOwner. 9ef57d479 = git merge origin/main (via scripts/pm/os-regen-merge.sh step 1) with TWO hand conflicts, both count pins where each side added one authorable property, resolved by stacking both intents: (1) packages/metadata-protocol/src/protocol.meta-types-degenerate-derivation.test.ts CARD_PROPERTY_COUNTS: kept main's #36366 comment line (object 51 → 52, actionLayout) and this branch's #35315 line (field 86 → 87, transferBehavior); counts now field 87 and object 52. (2) packages/platform-objects/src/apps/translations/object-lifecycle-panel-echo-decisions.test.ts positive control: kept main's '763 since #36366' comment, re-based this branch's line to '765 since #35315' (760 + 3 actionLayout rows + 2 transferBehavior rows), assertion toBe(765), measured green. Five os-regen artifacts both sides moved were taken from main's side by the script's rerun (step 2, against the recorded pre-merge base c1e6cf75a) and regenerated in cdb1e3976 with pnpm --filter @objectstack/spec check:generated --fix: packages/spec/api-surface/data.json, packages/spec/authorable-surface/data.json, packages/spec/export-origins/data.json, content/docs/references/data/object.mdx, content/docs/references/system/migration.mdx; branch-only artifacts kept (references/data/field.mdx, authorable-defaults/data.json, liveness/state-counts/field.md). The regen commit is pure insertions (+32/-0 vs the merge commit), and the branch's delta vs main on every generated path equals its pre-merge delta vs c1e6cf75a (same 9 files, +17/-1); liveness: one row, field 116 → 117, main's counts otherwise unchanged. Text auto-merged without conflict: field.zod.ts, object.zod.ts, object.form.ts, object-schema-fls-references.ts, the 11 metadata-forms.generated.ts bundles, object-collapsed-sections-echo-decisions.test.ts, 11 ui i18n locales. Deviation: the script's step-3 commit on the rerun was refused by the pre-commit deferral (its own message says the fallback is to regenerate), so main's side (staged tree 51f482702) and the regeneration landed as ONE commit cdb1e3976 rather than two; the staged diff was read before committing. The merge did not touch packages/core, packages/rest or packages/client (git diff --stat b17d3b639 HEAD on those paths is empty), so the whole core suite was not re-run.", "tests": "All under os-verify-lock at cdb1e3976 (source identical to what ran), each VERDICT command-exit 0. spec src/data/field-transfer-behavior + user-action-transfer + field + object: Test Files 4 passed (4), Tests 582 passed (582). core src/security/change-record-owner.test.ts: Tests 36 passed (36). rest src/change-owner-routes.test.ts: Tests 17 passed (17). Conflicted files: metadata-protocol protocol.meta-types-degenerate-derivation.test.ts Tests 18 passed (18); platform-objects object-lifecycle-panel-echo-decisions + object-collapsed-sections-echo-decisions Test Files 2 passed (2), Tests 78 passed (78). No ablation: the round changed no tested behaviour.", "gates": "Typecheck spec/core/rest/client under lock: all four Done, VERDICT command-exit 0. spec check:generated: first run 3 of 14 stale (api-surface, export-origins, docs), --fix regenerated those 3, re-run 'All 14 generated artifacts are up to date' exit 0; pre-commit on cdb1e3976 printed 'deferred regeneration discharged — all artifacts current, marker cleared'. Narrowed local subset (declared narrowing, scoped to the conflicted and regenerated files per the order), exit captured before any pipe, all 0: spec check:liveness, spec check:generated, spec check:strictness-ledger, check:nul-bytes, check:i18n (first exit 3 PREREQUISITE NOT MET; after the CLI + plugin closure build, exit 0 'all bundles in sync'), check:i18n-stale-fill, check:cross-package-test-inputs, check:test-source-alias, check:issue-citations, check:doc-anchors, check:docs-single-h1, check:doc-frontmatter, check:docs-spec-enumerations, check:merge-driver, check:tier-file-adoption, docs-audit/check-affected-docs.mjs, docs-audit/check-drift-comment.mjs. dispatch-gates --repo objectstack-ai/objectstack --ran at cdb1e3976 (58 paths vs merge base e343ab7c2): 111 of 128 derived families UNRUN locally, declared narrowing, CI runs the farm. CI at cdb1e3976 read once, not polled: 56 completed none failed, 12 in_progress; required: Lint & Repo Gates success, TypeScript Type Check success, Build Core success, Governed Surface Queue Guard success, Lint UI success, Build & E2E UI success, Live E2E UI success, Dogfood Regression Gate success, Type Check UI in_progress, Test Core and Test UI not yet reported. PR mergeable true, mergeable_state blocked (was dirty).", "dogfood_battery": "n/a — no ! in the PR title and Clause-② is yes (widening), no (narrowing) arm", "mcp_calls": "0", "api_writes": "1 — POST issues/35315/comments (this os-dev-report, via scripts/pm/post-stamped.mjs); plus git push of the branch (not a REST write)", "open_questions": [], "security_findings": "none", "out_of_scope_findings": ["carrier: none · noted, not filed: scripts/pm/os-regen-merge.sh, on the RERUN path (merge already committed by hand after a conflict) step 3's 'commit main's side before regenerating' is refused by the pre-commit deferral the merge commit left, so main's side and the regeneration necessarily land in one commit; no wrong bytes result (staged diff read), only the two-commit separation the script promises is unavailable on that path"] }objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#2 · os-steve · session_01ADHkmRY38EZf38Yy3zthbY
os-dev-report
{ "issue": 35315, "status": "done", "branch": "claude/issue-35315-change-owner-cascade", "pr": "https://github.com/objectstack-ai/objectstack/pull/36525", "session": "session_01ADHkmRY38EZf38Yy3zthbY", "premise_still_valid": true, "summary": "Follow-up round on PR #36525. Merged origin/main (which includes #36683 at ec545def5d) into the branch with a merge commit, no force-push: 3fd28f0926. The cascade's child owner write in runCascade now goes through #36683's writeOwner(engine, rel.object, String(childId), { owner_id: newOwner }, context) (9394e8f46f). writeOwner's signature on main already takes object, id, changeSet and context, so its public shape is unchanged and nothing was re-implemented. A child whose owner_id is locked (read-only, or a readonlyWhen that holds) is now refused under strictReadonlyWrites and listed in that relationship's cascade failures as FIELD_NOT_ACCESSIBLE. It is not counted as updated and is never named in the notice, which only ever lists parent ids. The parent's move stands, and the failure-report shape is unchanged. Changeset and data-api.mdx now say this (8eed0dffa8). Final head 8eed0dffa8bb83cf7cc725eb960495e3717f98c9; CI on it is complete and green. Conflict resolutions: (1) packages/core/src/security/change-record-owner.ts, the single-record line: kept this branch's previousOwners read above it and took main's writeOwner call in place of the bare engine.update. (2) change-record-owner.test.ts, packages/rest/src/change-owner-routes.test.ts and content/docs/api/data-api.mdx auto-merged with no textual conflict, so both sides' pins are kept (main's fake engine with locked/strictWrites now serves the cascade pins). (3) The i18n locales and metadata-forms translations auto-merged. No generator-owned artifact was deferred (os-regen-pending absent); spec check:generated is green on the merged tree. No behaviour either PR pinned changed: all 45 core and 22 rest tests in the touched files pass, the pre-existing pins of both PRs included.", "tests": "All at head 8eed0dffa8. Touched files: core change-record-owner.test.ts 45/45, rest change-owner-routes.test.ts 22/22, both run under os-verify-lock with VERDICT command-exit 0. New pins: core, single (a locked child t3 is listed FIELD_NOT_ACCESSIBLE, keeps u_a, updated 1 failed 1, strictWrites [true,true,true], notice recordIds ['l1']) and bulk (locked t1 listed, t3/t4 moved). Rest, on ObjectQL + SQLite :memory: in the existing readonlyWhen describe: child object case_owner_lock_task with owner_id.readonlyWhen \"record.status == 'closed'\" and three children of k_open. Result: 200, cascade {updated 2, failed 1}, failures [[ct_closed, FIELD_NOT_ACCESSIBLE]], stored child owners {ct_open: u_next, ct_closed: u_a, ct_open2: u_next}, all 3 child engine.update calls carry strictReadonlyWrites: true, one notice naming ['k_open']. Package suites (lock VERDICT command-exit 0): @objectstack/core 156 files / 3735 tests passed; @objectstack/rest 428 files / 8804 passed, 351 skipped. Ablation of the child write: with scripts/ablation-replace.mjs --hold, reverted the writeOwner line to the bare engine.update (no strict option). Anchor went 1 -> 0, replacement 0 -> 1, blob 5915ea68 -> 4bf87475. Rebuilt @objectstack/core; ablation-dist-preflight found 'id: childId' in dist. Result: core 2 failed / 43 passed (both new cascade lock pins red), rest 1 failed / 21 passed (the new real-engine pin red). Restore: --restore gave blob 5915ea689380 == HEAD and an empty git diff HEAD. Rebuilt core; preflight --absent passed. Result: core 45/45, rest 22/22.", "gates": "Local, at 8eed0dffa8: pnpm --filter @objectstack/core typecheck and @objectstack/rest typecheck both exit 0 (lock VERDICT command-exit 0; test-typecheck OK). dispatch-gates --commands --repo objectstack-ai/objectstack derived 128 families for the 58-path PR surface. --ran with exit codes reconciled them as 128 derived, 125 run, 3 NOT-MEASURED, 0 UNRUN. Exit 0 on all but five, including check-adr-0087-registration --base origin/main, spec check:generated, check:nul-bytes, check:engine-double-contract and check:durability-log-level. NOT MEASURED (exit 3, built output missing locally): spec check:skill-examples, check:dual-build-cjs-loads, check:i18n. Also not measured: pnpm --dir ui exec vitest run scripts/ exited 1 only because the @objectstack/client entry did not resolve (client dist not built locally) in unit-registry-absence-collision; 5126 other tests passed. check:platform-checklist exited 1: ABSENT SYMBOL metadata-core anonymous-form-intake.ts#anonymousFormExplicitWithdrawals in areas/access-security.json. This diff does not touch either file, and the same anchor line is on origin/main 844218f5. CI's Lint & Repo Gates is green on this head, so this is a local reading only. CI on head 8eed0dffa8bb83cf7cc725eb960495e3717f98c9: all 70 check-runs completed, 61 success and 9 skipped, none failed or pending. Includes Lint & Repo Gates, TypeScript Type Check, Test Core 1-10/10, Build Core, Governed Surface Queue Guard, Lint UI, Type Check UI, Test UI 1-16/16, Build & E2E UI, Live E2E UI, Dogfood Regression Gate, Check Changeset, Spec property liveness and PR-body guards, all success. No rerun was needed.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm (Clause-②: yes (widening)); CI Dogfood Regression Gate success on 8eed0dffa8", "mcp_calls": "0", "api_writes": "1 — POST issue comment on #35315 (this os-dev-report) via scripts/pm/post-stamped.mjs; git push x3 to claude/issue-35315-change-owner-cascade (not REST); PR body untouched", "open_questions": [], "security_findings": "none", "out_of_scope_findings": ["carrier: none · noted, not filed — check:platform-checklist exits 1 locally on this tree and on origin/main 844218f5: ABSENT SYMBOL anonymousFormExplicitWithdrawals anchored from docs/qa/platform-checklist/areas/access-security.json. CI's Lint & Repo Gates is green on this head, so it is not reproduced by a public door; for the seat to triage if it wants. Dedupe words: anonymousFormExplicitWithdrawals, access-security.json, ABSENT SYMBOL, platform-checklist"] }objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#2 · os-steve · session_01ADHkmRY38EZf38Yy3zthbY
Landed: 2026-11-24T01:50Z · PR #36525 merged and closed this card.
pm:dispatchedis cleared in the same stroke;domain:*,area:*and the priority stay. Follow-ups: #36713 (skills docs), #36714 (lint), #36736 (regen script).Merge origin/main into claude/issue-36261-change-owner-disabled-package