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
An unchanged owner object re-save may answer 409 DESTRUCTIVE_CHANGE while an extension adds a column, reading the extension column as dropped #35589
Filing gate: ① product defect, measure first. Source: fleet. This was escalated in section ③ of the contract-review delta record 7015428256 on PR #35538 (card #33911), from the os-dev-report 7015317770. The seat ruled that a card is filed and that triage's first touch sets the grade. ⛔ Not a claim. Read off the code, not measured, and it predates #35538.
Grade: area:build · Bug · reach not measured → grade left to triage.
Business reason
An admin installs a package that extends an object with a new field (an object_extension). Later the admin saves the owner object again without changing it, for example from Studio. That save appears to be refused with 409 DESTRUCTIVE_CHANGE, as if the admin were dropping the extension's column. If so, every owner save is blocked while any extension adds a column, and the message points at a drop the author never asked for.
What happens (read, not measured)
While pinning #35538, the dev found that a protocol re-save of the owner, while an extension adds a column, first meets the destructive-change door. In packages/objectql/src/protocol-save.ts (about lines 1140 to 1246, before the registration door at about line 1621), that door diffs the incoming body against the item read at the save's own address. It reads the extension's column as one the owner's body would drop, so it answers 409 before any later door is asked. A save with force: true passes that door. L1-a read the same order in the source (7015477528).
Expected
The destructive-change door compares the owner's body with the owner's own stored layer, or with the served object minus the enabled extensions' fields. A column that an enabled extension contributes is not counted as one the owner's save drops.
Done when
First step: measure at the public door. Install a package whose object_extension adds a field to an owned object. Then PUT /api/v1/meta/object/NAME with the owner's stored body unchanged, without force. Record whether it answers 409 DESTRUCTIVE_CHANGE and which column it names.
If it reproduces: an unchanged owner save answers 200. A pin covers it, with a control that a real owner-side field drop still answers 409, and an ablation.
Who acts: the owner of the objectql protocol save path (protocol-save.ts destructive-change door).
Dedupe: repo:objectstack-ai/objectstack is:issue is:open destructive change extension column owner re-save. Neither the hits listed when this was filed nor the related #35562 and #35566 cover this door.
Triage: lands in domain:server · pm:queue; rationale: area:build · Bug · Broken if confirmed (an unchanged owner-object re-save may answer 409 DESTRUCTIVE_CHANGE while an extension adds a column, reading the extension's column as a drop) · builders with object extensions, rare · read off the code → p2. Measure first, as the review asked; if the path is shown safe, close it.
Regrade · 2026-11-20T09:41Z · priority:p2 → priority:p1. Seat 1 dispatches it next under the maintainer's 2026-11-20 09:22:50Z p1 flow (the card thread builds itself; L1 and the isolated L2 run in parallel at hand-back).
Ruling-ref: priority:p1 · maintainer 2026-11-20T09:39Z, verbatim: 「同意」, answering the seat's proposal in the seat thread (09:3xZ) to raise #35108 and #35589 to p1 and dispatch them first.
Claim: PM loop · 2026-11-20T09:45Z
Area: area:build
Session: session_01L6bhgW9d2BwLCxbQ2GXPZE (the card thread, which builds itself)
Account: os-sales
Branch: claude/project-thread-kcfy6z (this card thread can push only this branch, a measured platform exception to the issue-numbered branch name; base origin/main65fddc84)
Seat: repo:objectstack#1
Domain: domain:server
File surface: the owner-object save path that computes the destructive-change diff and its tests. The destructive-change guard itself is not weakened: a real drop is still refused, with a test for each side.
Container & model: M, mode:thread, model: default (opus) — no path-derived mandate, effort: high (M by difficulty: reproduce first, then one diff-path fix with paired tests)
Flow: dev-thread rule (maintainer 2026-11-20 09:22Z 「所有 p1 都按照新规则执行」): the card thread builds itself; L1 and the isolated L2 (if owed) run in parallel at hand-back.
Clause-②: no (expected; the thread re-reads it at PR time)
Metadata-protocol: none (expected)
Premise: read from code, not measured. The thread reproduces it with a failing test at the public save door first; if it does not reproduce on main, it reports the evidence and stops.
Resume-from: none
Fold-or-serial: alone. No other open card claims this diff path.
{
"issue": 35589,
"status": "done",
"branch": "claude/project-thread-kcfy6z",
"pr": "https://github.com/objectstack-ai/objectstack/pull/35830",
"session": "session_01L6bhgW9d2BwLCxbQ2GXPZE",
"premise_still_valid": true,
"summary": "Reproduced on main at the public door: with com.acme.leadext extending the pair's stored object crm_custom_lead with leadext_region, PUT /meta/object/crm_custom_lead?package=com.acme.crm.custom with the owner's stored body unchanged answered 409 DESTRUCTIVE_CHANGE, field_removed leadext_region. Cause: the destructive-change door diffs the incoming owner layer against readMetaItem's answer, which folds every enabled extension onto the owner (ADR-0029 D9.2). Fix: the door folds the enabled extensions onto the incoming body (foldObjectExtendersFromRegistry) for the diff only, so it compares served-before with served-after; the persisted body and detectDestructiveObjectChanges are unchanged, and a drop of an owner-only column is still refused 409.",
"tests": "head 16d777ee. Before (dist from origin/main 65fddc84): meta-object-extension-item.test.ts -t 'unchanged owner object' -> Tests 2 failed | 50 skipped (409 naming leadext_region; the control's issues also named leadext_region). After rebuild: meta-object-extension-item.test.ts Tests 52 passed (52). @objectstack/metadata-protocol typecheck exit 0; vitest run Test Files 362 passed | 9 skipped (371), Tests 23298 passed | 45 skipped (23343). @objectstack/runtime typecheck: tsc --noEmit exit 0; check:test-typecheck 3 TS2307 Cannot find module @objectstack/driver-turso in 3 untouched test files (package outside the built closure) -> NOT MEASURED locally. Ablation (fix committed first): ablation-replace.mjs replaced the fold line with const next = request.item; rebuild; ablation-dist-preflight --absent exit 0 (absent from all 24 built files) -> 2 failed | 50 skipped; restore git checkout HEAD --, blob hash matched HEAD, rebuild, preflight present in 2 built files -> 2 passed | 50 skipped.",
"gates": "dispatch-gates --commands on 16d777ee: 70 families. 68 exit 0. check-plugin-teardown-shape --self-test exit 3 on first run (pinned fixture 621a48760 missing from the shallow clone), rerun exit 0 after git fetch --depth=1 of that commit (48 cases pass); the --ran record keeps both codes. check:dual-build-cjs-loads exit 3 PREREQUISITE NOT MET (35 dists outside the closure) -> NOT MEASURED. --ran: 70 accounted, 68 run, 2 NOT-MEASURED. check-governed-merges --pr 35830: 0 of 3 paths governed, 90 changed lines, NOT governed, no contract face. PR check-runs at report time: Governed Surface Queue Guard success, PR-body guards success, Check PR Size success, Dogfood Regression Gate success; Build Core, Type Check, Lint, Check Changeset in_progress.",
"dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
"mcp_calls": "4 — issue_read get, issue_read get_comments, pull_request_read get_files, pull_request_read get_check_runs; reads only, no MCP write",
"api_writes": "2 relay strokes — pr_create (with assignee os-sales) -> PR 35830; pr_request_reviewers os-sales. This comment is the third write. git push is not a REST write.",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"none filed. Noted in Acceptance notes: a field an extension replaces under the owner's own key was judged owner-type against served-type before; now served against served. Not separately pinned.",
"Clause-②: declared yes (widening), a save the door refused is now accepted; the claim expected no and asked the thread to re-read it at PR time."
]
}
Activity
objectstack-fleet commentedon Nov 19, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in
domain:server·pm:queue; rationale: area:build · Bug · Broken if confirmed (an unchanged owner-object re-save may answer 409 DESTRUCTIVE_CHANGE while an extension adds a column, reading the extension's column as a drop) · builders with object extensions, rare · read off the code → p2. Measure first, as the review asked; if the path is shown safe, close it.objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob
Regrade · 2026-11-20T09:41Z ·
priority:p2→priority:p1. Seat 1 dispatches it next under the maintainer's 2026-11-20 09:22:50Z p1 flow (the card thread builds itself; L1 and the isolated L2 run in parallel at hand-back).Ruling-ref: priority:p1 · maintainer 2026-11-20T09:39Z, verbatim: 「同意」, answering the seat's proposal in the seat thread (09:3xZ) to raise #35108 and #35589 to p1 and dispatch them first.
objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob
Claim: PM loop · 2026-11-20T09:45Z
Area: area:build
Session:
session_01L6bhgW9d2BwLCxbQ2GXPZE(the card thread, which builds itself)Account:
os-salesBranch:
claude/project-thread-kcfy6z(this card thread can push only this branch, a measured platform exception to the issue-numbered branch name; baseorigin/main65fddc84)Seat:
repo:objectstack#1Domain:
domain:serverFile surface: the owner-object save path that computes the destructive-change diff and its tests. The destructive-change guard itself is not weakened: a real drop is still refused, with a test for each side.
Container & model:
M,mode:thread,model: default (opus) — no path-derived mandate,effort: high(M by difficulty: reproduce first, then one diff-path fix with paired tests)Flow: dev-thread rule (maintainer 2026-11-20 09:22Z 「所有 p1 都按照新规则执行」): the card thread builds itself; L1 and the isolated L2 (if owed) run in parallel at hand-back.
Clause-②: no (expected; the thread re-reads it at PR time)
Metadata-protocol: none (expected)
Premise: read from code, not measured. The thread reproduces it with a failing test at the public save door first; if it does not reproduce on main, it reports the evidence and stops.
Resume-from: none
Fold-or-serial: alone. No other open card claims this diff path.
objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#1 · os-sales · session_01L6bhgW9d2BwLCxbQ2GXPZE
os-dev-report
{ "issue": 35589, "status": "done", "branch": "claude/project-thread-kcfy6z", "pr": "https://github.com/objectstack-ai/objectstack/pull/35830", "session": "session_01L6bhgW9d2BwLCxbQ2GXPZE", "premise_still_valid": true, "summary": "Reproduced on main at the public door: with com.acme.leadext extending the pair's stored object crm_custom_lead with leadext_region, PUT /meta/object/crm_custom_lead?package=com.acme.crm.custom with the owner's stored body unchanged answered 409 DESTRUCTIVE_CHANGE, field_removed leadext_region. Cause: the destructive-change door diffs the incoming owner layer against readMetaItem's answer, which folds every enabled extension onto the owner (ADR-0029 D9.2). Fix: the door folds the enabled extensions onto the incoming body (foldObjectExtendersFromRegistry) for the diff only, so it compares served-before with served-after; the persisted body and detectDestructiveObjectChanges are unchanged, and a drop of an owner-only column is still refused 409.", "tests": "head 16d777ee. Before (dist from origin/main 65fddc84): meta-object-extension-item.test.ts -t 'unchanged owner object' -> Tests 2 failed | 50 skipped (409 naming leadext_region; the control's issues also named leadext_region). After rebuild: meta-object-extension-item.test.ts Tests 52 passed (52). @objectstack/metadata-protocol typecheck exit 0; vitest run Test Files 362 passed | 9 skipped (371), Tests 23298 passed | 45 skipped (23343). @objectstack/runtime typecheck: tsc --noEmit exit 0; check:test-typecheck 3 TS2307 Cannot find module @objectstack/driver-turso in 3 untouched test files (package outside the built closure) -> NOT MEASURED locally. Ablation (fix committed first): ablation-replace.mjs replaced the fold line with const next = request.item; rebuild; ablation-dist-preflight --absent exit 0 (absent from all 24 built files) -> 2 failed | 50 skipped; restore git checkout HEAD --, blob hash matched HEAD, rebuild, preflight present in 2 built files -> 2 passed | 50 skipped.", "gates": "dispatch-gates --commands on 16d777ee: 70 families. 68 exit 0. check-plugin-teardown-shape --self-test exit 3 on first run (pinned fixture 621a48760 missing from the shallow clone), rerun exit 0 after git fetch --depth=1 of that commit (48 cases pass); the --ran record keeps both codes. check:dual-build-cjs-loads exit 3 PREREQUISITE NOT MET (35 dists outside the closure) -> NOT MEASURED. --ran: 70 accounted, 68 run, 2 NOT-MEASURED. check-governed-merges --pr 35830: 0 of 3 paths governed, 90 changed lines, NOT governed, no contract face. PR check-runs at report time: Governed Surface Queue Guard success, PR-body guards success, Check PR Size success, Dogfood Regression Gate success; Build Core, Type Check, Lint, Check Changeset in_progress.", "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm", "mcp_calls": "4 — issue_read get, issue_read get_comments, pull_request_read get_files, pull_request_read get_check_runs; reads only, no MCP write", "api_writes": "2 relay strokes — pr_create (with assignee os-sales) -> PR 35830; pr_request_reviewers os-sales. This comment is the third write. git push is not a REST write.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "none filed. Noted in Acceptance notes: a field an extension replaces under the owner's own key was judged owner-type against served-type before; now served against served. Not separately pinned.", "Clause-②: declared yes (widening), a save the door refused is now accepted; the claim expected no and asked the thread to re-read it at PR time." ] }objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob
Close-out · 2026-11-20T11:37Z · PR #35830 merged at
c6b07c2fand closed this card byFixes. The seat clearspm:dispatchedand the assignee.