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
objectql update: when every caller-supplied field is dropped (readonly / readonlyWhen), the row is still stamped and afterUpdate still runs (split from #34701) #34746
area:databugSomething isn't workingdomain:serverDomain lane — seat card indexed by label:pm:seatfindingRecorded observation — held, not dispatchable until the findings triage round grades itpriority:p2Medium: important, M3
Filing gate ①: split from #34701 by its card thread's premise reading on origin/mainf6f5b50a (half B; measured in the objectql engine with a capturing in-memory driver). Dedupe: all fields dropped update no-op; no open card.
packages/objectql/src/engine-update.ts has no short-circuit between the strip and driver.update (by-id and predicate branches alike). No audit row is written (the audit diff skips the stamp columns), so the card's "history" is the record header's last-modified fields.
Change (seat's reading, inside the maintainer's veto window)
When the strip removes every caller-supplied key, the update is a no-op: no driver write, no stamps, afterUpdate does not run, and the answer is the current record plus droppedFields (the REST header as today). Both branches. A same-value write (nothing dropped) is out of scope and unchanged. Strict mode already refuses a dropped key and is unchanged. This narrows when "on update" automation fires ⇒ L1 + L2 + Tier H.
Done when
Pins for both branches show no driver write and no afterUpdate when every key is dropped, and an unchanged path when at least one key survives.
Regraded p1 → p2 by the maintainer's grading principle of 2026-11-18, accepted in triage's session (「刚才你建议的分级调整,我全部接受」).
The principle, in order:
What a new user or a prospect meets first (looks and the main flow), the cloud core (Turso, hosted sign-up and onboarding, hosted install and upgrade, plans) and a developer's first contact come first.
Data loss or a permission breach in normal use stays first.
Details and rare configurations are improved over time.
Internal items are frozen.
Why this card: detail: a fully dropped update still stamps the row.
Claim: PM loop round 1
Session: session_01L9qibwJEh7hMPPvagWM1g7
Account: os-tesla
Branch: claude/issue-34746-all-dropped-update-noop
Worktree: objectstack-issue-34746
Domain: domain:server
Seat: repo:objectstack#7
Area: d7-B
File surface: packages/objectql/src/engine-update.ts (by-id and predicate branches), new test file(s) under packages/objectql/src/ named for 34746, tests the change legitimately reds (named in the report), one changeset under .changeset/ (stop on breach; explain in the report)
Container & model: M, mode:subagent, model: default, effort: high
Clause-②: no
Metadata-protocol: semantic
Responsibility: objectstack platform: packages/objectql/src/engine-update.ts reaches the driver write, the stamps and afterUpdate after the strip has removed every caller-supplied key | none | every app user whose update carries only readonly / readonlyWhen-locked fields, and every afterUpdate automation on that object
Thread-read: 6996114767
Premise: holds (origin/main cf6bb70: no short-circuit between the strip and driver.update / driver.updateMany in engine-update.ts; the dev re-measures both branches before code)
Serial constraints cleared: open PRs touching engine-update.ts: none (scan of all open PR file lists at 2026-11-19T15:41Z); seat 5's objectql PRs #35537#35541#35479 touch other files; overlap-check runs again before each push
Pre-claim lane: repo:objectstack seat 7 area d7-B (path root packages/objectql write path); file packages/objectql/src/engine-update.ts is domain:server
Pre-claim deps: Blocked-by: #34672 is closed (completed); parent #34701 closed; no other "after #N"
Prior rulings read: check-prior-rulings --card 34746 --paths packages/objectql/src/engine-update.ts → 27 surface hit lines in engine-update.ts (ADR-0058 Addendum II ruling B, #5748 ruling A, #5126 ordering, #8093 addressing), none about an all-dropped update; ADR keyword hits (ADR-0061 D2, ADR-0098 §2, ADR-0119 D1, ADR-0129 D1, ADR-0139 D4, ADR-0142 D9, ADR-0153 D8, ADR-0006 §2) do not answer this card's question; card route = the filing seat's reading inside the maintainer's veto window (card body, 2026-11-17), no veto on the thread
{
"issue": 34746,
"status": "done",
"branch": "claude/issue-34746-all-dropped-update-noop",
"pr": "https://github.com/objectstack-ai/objectstack/pull/35594",
"head": "44b4972c7538290118112717012810377cafebb4",
"session": "session_01L9qibwJEh7hMPPvagWM1g7",
"premise_still_valid": true,
"summary": "Premise re-measured on origin/main b65488a8 with a capturing driver, through the real ObjectQLPlugin stamp hook. An update made only of readonly or readonlyWhen-locked keys handed the by-id driver {id, updated_at, updated_by} and the predicate driver {updated_at, updated_by}, and afterUpdate ran on both branches. engine-update.ts now decides after the two read-only strips, on both branches (everyCallerKeyDropped). Rule implemented: (1) the caller supplied at least one key, the address id aside; (2) every one of those keys was taken by an engine strip on this call (readonly, readonly_when, computed, primary_key), recorded whether or not a listener is set; (3) the payload left holds only updated_at and updated_by plus, by-id, the address. A key a beforeUpdate hook wrote survives, so that update is not all-dropped. beforeUpdate runs before the strip. When the rule holds: no driver write, no afterUpdate, no roll-up recompute, no realtime event. By-id answers {...priorRecord}, the not-found-gate read (no second fetch); predicate answers 0. Drops are still reported. Kept unchanged: strict mode (assertNoStrictDrops still throws first), ADR-0142 precondition writes (excluded from the no-op), and validation and the post-image seam (still run, so refusals hold).",
"tests": "New packages/objectql/src/engine-update-all-dropped-noop-34746.test.ts, 10 cases. On base b65488a8 before the fix: Tests 7 failed | 3 passed (10). The 2 control reds were only the address id in the by-id driver payload, an expectation I corrected. After the fix: 10 passed (10). Ablation through scripts/ablation-replace.mjs: anchor 'if (callerKeys.length === 0 || !callerKeys.every(...)) return false;' replaced by 'return false; // ABLATED-34746', anchor x1 -> x0, blob 215cfc4e -> 25712c82. Result: Tests 5 failed | 5 passed (10), exactly the 5 defect cases. Restored: blob == HEAD 215cfc4ea660 and git diff HEAD empty. No dist hop: the suite imports ./engine.js and ./plugin.js from src. The first ablation attempt was refused by the tool (the anchor count did not move because the replacement contained the anchor), so no test ran in it, and I redid it with a landing anchor. Full suite pnpm --filter @objectstack/objectql test on the merged head 2cdd016db: Test Files 617 passed (617), Tests 13917 passed (13917). pnpm --filter @objectstack/objectql typecheck exit 0 (lock VERDICT command-exit 0). Final head 44b4972c7 (one test-only commit after that): new file 10 passed (10). Before the fix the same full suite had 6 reds, all legitimate: engine.test.ts Dropped-field observability (readonlyWhen single-id, bulk path, throwing listener), engine-formula-write-strip.test.ts static-readonly control, engine-blank-typed-value-door.test.ts readonlyWhen lock vs blank, and federated-injected-column-readers.test.ts (new stamp-key vocabulary). Each fix: a surviving writable field added to a payload that was otherwise all dropped, so the strip pin still holds and gains a toHaveProperty on the survivor; plus two not-a-read rows in the federated ledger. No assertion weakened.",
"gates": "Local, dispatch-gates.mjs --commands (65 families, merge base b65488a8, tree 2cdd016db): 63 exit 0. NOT MEASURED (exit 3, PREREQUISITE): node scripts/check-plugin-teardown-shape.mjs --self-test (the shallow clone cannot reach pinned fixture commit 621a4876); pnpm check:dual-build-cjs-loads (needs every package's dist, only the objectql closure is built). pnpm check:objectql-double-limit first went red (exit 1, the new find double was limit-blind). I fixed it in 44b4972c7 and it is now exit 0. Re-run on the final head: check:objectql-double-limit, check:test-source-alias, check:cross-package-test-inputs, check:nul-bytes, check:engine-double-contract, all exit 0. --ran reconciliation with recorded exit codes: 65 derived, 63 run, 2 NOT-MEASURED, 0 UNRUN, RAN_EXIT=0. overlap-check before each push: VERDICT clean exit 0. CI on PR #35594 at report time: Governed Surface Queue Guard success; Lint, Type Check, Check Changeset, Check PR Size and PR-body guards in_progress; Test Core and Build Core not yet listed.",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"files_changed": [
".changeset/34746-all-dropped-update-noop.md",
"packages/objectql/src/engine-update.ts",
"packages/objectql/src/engine-update-all-dropped-noop-34746.test.ts",
"packages/objectql/src/engine.test.ts",
"packages/objectql/src/engine-formula-write-strip.test.ts",
"packages/objectql/src/engine-blank-typed-value-door.test.ts",
"packages/objectql/src/federated-injected-column-readers.test.ts"
],
"line_budget": "n/a — no skills/** file touched",
"deviations": [
"Four existing test files outside the named new file were edited: engine.test.ts, engine-formula-write-strip.test.ts, engine-blank-typed-value-door.test.ts and federated-injected-column-readers.test.ts. The claim covers them as tests the change legitimately reds. Each red and its fix is named in tests.",
"The first ablation attempt was a no-op that ablation-replace refused (the replacement text contained the anchor). Nothing ran in it, and I redid it with a landing anchor.",
"I merged origin/main (3 commits, objectql transaction files) into the branch before the PR (AGENTS.md multi-agent discipline section 10), then rebuilt the objectql closure and re-ran the full suite on the merged head.",
"Beyond the ruling text, the no-op also skips the roll-up recompute and the realtime change event, because no record changed. Validation and the post-image seam still run, so the security middleware's honoured check is satisfied and existing refusals hold. ADR-0142 precondition writes are excluded from the no-op.",
"Commit trailers use the AGENTS.md model-free pair (Co-authored-by: Claude). The harness reminder's model-named Co-Authored-By was not used, per the dispatch order's fence."
],
"mcp_calls": "0 — no MCP GitHub calls",
"api_writes": "2 relay writes. (1) pr_create through scripts/pm/fleet-write/dispatch.mjs, run 44572630431: POST /repos/objectstack-ai/objectstack/pulls (draft) and POST /repos/objectstack-ai/objectstack/issues/35594/assignees [os-tesla]; read-back identical, 6879 bytes. (2) os-dev-report comment through scripts/pm/post-stamped.mjs: POST /repos/objectstack-ai/objectstack/issues/34746/comments. git push not counted.",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · noted in the PR's Acceptance notes, not filed. The pinyin __search companion is a hook-written key, so an update whose only source field is readonlyWhen-locked, on an object with a companion column, still writes __search plus stamps (unchanged behaviour; no wrong answer reproduced through a public door). Dedupe words: search companion readonlyWhen locked source, __search stamp dropped field, pinyin companion stale lock"
],
"skills_docs": "follow-up owed — skills/objectstack-data/references/data-hooks.md, content/docs/kernel/contracts/data-engine.mdx. Neither teaches the old behaviour, and neither states that an update whose every field is dropped runs no afterUpdate."
}
PR #35594 at head 44b4972: CI green (39 success, 18 skipped). Skills-docs follow-up filed as #35605. Sent to the seat's L1 review thread; landing follows ACCEPT.
PR #35594 merged as d5ece3e: an update whose every caller-supplied key is stripped writes nothing, stamps nothing and runs no afterUpdate, no roll-up recompute and no realtime event, on both the by-id and predicate branches. Closed by Fixes; pm:dispatched removed. The owed skills/docs sentence is #35605, now unblocked.
area:databugSomething isn't workingdomain:serverDomain lane — seat card indexed by label:pm:seatfindingRecorded observation — held, not dispatchable until the findings triage round grades itpriority:p2Medium: important, M3
Activity
objectstack-fleet commentedon Nov 17, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Path: none
Triage: first touch → p1 ·
domain:server·pm:blocked· 2026-11-17T09:33Z⛔ Not a claim.
updated_by/updated_atand runsafterUpdate, so record history shows an edit that changed nothing. Themes: HotCRM approvals and audit integrity.packages/objectql→domain:server.readonly: trueaccepts a person's write — REST PATCH and import store the typed value until the next recompute #34672 (summary fields dropped as engine-owned), which is the same dropped-fields path.objectstack-fleet commentedon Nov 18, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Regraded p1 → p2 by the maintainer's grading principle of 2026-11-18, accepted in triage's session (「刚才你建议的分级调整,我全部接受」).
The principle, in order:
Why this card: detail: a fully dropped update still stamps the row.
objectstack-fleet commentedon Nov 19, 2026
epic:#35205#1 · os-warren · session_01JQwxbYJqoPAoSpWTMpH1yq
State:
pm:blocked→pm:queue· 2026-11-19Was:
pm:blockedon #34672. #34672 is closed (completed); no other blocker is named on the card.Re-read the card's premise on current main before claiming.
Order: Warren, 2026-11-19 00:26Z, objectstack priorities discussion thread: 「先立卡改机制,排查现有的卡改状态」. Mechanism card: #35259.
Generated by Claude Code
objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#7 · os-tesla · session_01L9qibwJEh7hMPPvagWM1g7
Claim: PM loop round 1
Session:
session_01L9qibwJEh7hMPPvagWM1g7Account:
os-teslaBranch:
claude/issue-34746-all-dropped-update-noopWorktree:
objectstack-issue-34746Domain:
domain:serverSeat:
repo:objectstack#7Area:
d7-BFile surface:
packages/objectql/src/engine-update.ts(by-id and predicate branches), new test file(s) underpackages/objectql/src/named for 34746, tests the change legitimately reds (named in the report), one changeset under.changeset/(stop on breach; explain in the report)Container & model:
M,mode:subagent,model: default,effort: highClause-②: no
Metadata-protocol: semantic
Responsibility:
objectstack platform: packages/objectql/src/engine-update.ts reaches the driver write, the stamps and afterUpdate after the strip has removed every caller-supplied key | none | every app user whose update carries only readonly / readonlyWhen-locked fields, and every afterUpdate automation on that objectThread-read: 6996114767
Premise: holds (origin/main cf6bb70: no short-circuit between the strip and
driver.update/driver.updateManyin engine-update.ts; the dev re-measures both branches before code)Serial constraints cleared: open PRs touching engine-update.ts: none (scan of all open PR file lists at 2026-11-19T15:41Z); seat 5's objectql PRs #35537 #35541 #35479 touch other files; overlap-check runs again before each push
Pre-claim lane:
repo:objectstackseat 7 area d7-B (path rootpackages/objectqlwrite path); filepackages/objectql/src/engine-update.tsisdomain:serverPre-claim deps:
Blocked-by: #34672is closed (completed); parent #34701 closed; no other "after #N"Prior rulings read: check-prior-rulings --card 34746 --paths packages/objectql/src/engine-update.ts → 27 surface hit lines in engine-update.ts (ADR-0058 Addendum II ruling B, #5748 ruling A, #5126 ordering, #8093 addressing), none about an all-dropped update; ADR keyword hits (ADR-0061 D2, ADR-0098 §2, ADR-0119 D1, ADR-0129 D1, ADR-0139 D4, ADR-0142 D9, ADR-0153 D8, ADR-0006 §2) do not answer this card's question; card route = the filing seat's reading inside the maintainer's veto window (card body, 2026-11-17), no veto on the thread
objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#7 · os-tesla · session_01L9qibwJEh7hMPPvagWM1g7
os-dev-report
{ "issue": 34746, "status": "done", "branch": "claude/issue-34746-all-dropped-update-noop", "pr": "https://github.com/objectstack-ai/objectstack/pull/35594", "head": "44b4972c7538290118112717012810377cafebb4", "session": "session_01L9qibwJEh7hMPPvagWM1g7", "premise_still_valid": true, "summary": "Premise re-measured on origin/main b65488a8 with a capturing driver, through the real ObjectQLPlugin stamp hook. An update made only of readonly or readonlyWhen-locked keys handed the by-id driver {id, updated_at, updated_by} and the predicate driver {updated_at, updated_by}, and afterUpdate ran on both branches. engine-update.ts now decides after the two read-only strips, on both branches (everyCallerKeyDropped). Rule implemented: (1) the caller supplied at least one key, the address id aside; (2) every one of those keys was taken by an engine strip on this call (readonly, readonly_when, computed, primary_key), recorded whether or not a listener is set; (3) the payload left holds only updated_at and updated_by plus, by-id, the address. A key a beforeUpdate hook wrote survives, so that update is not all-dropped. beforeUpdate runs before the strip. When the rule holds: no driver write, no afterUpdate, no roll-up recompute, no realtime event. By-id answers {...priorRecord}, the not-found-gate read (no second fetch); predicate answers 0. Drops are still reported. Kept unchanged: strict mode (assertNoStrictDrops still throws first), ADR-0142 precondition writes (excluded from the no-op), and validation and the post-image seam (still run, so refusals hold).", "tests": "New packages/objectql/src/engine-update-all-dropped-noop-34746.test.ts, 10 cases. On base b65488a8 before the fix: Tests 7 failed | 3 passed (10). The 2 control reds were only the address id in the by-id driver payload, an expectation I corrected. After the fix: 10 passed (10). Ablation through scripts/ablation-replace.mjs: anchor 'if (callerKeys.length === 0 || !callerKeys.every(...)) return false;' replaced by 'return false; // ABLATED-34746', anchor x1 -> x0, blob 215cfc4e -> 25712c82. Result: Tests 5 failed | 5 passed (10), exactly the 5 defect cases. Restored: blob == HEAD 215cfc4ea660 and git diff HEAD empty. No dist hop: the suite imports ./engine.js and ./plugin.js from src. The first ablation attempt was refused by the tool (the anchor count did not move because the replacement contained the anchor), so no test ran in it, and I redid it with a landing anchor. Full suite pnpm --filter @objectstack/objectql test on the merged head 2cdd016db: Test Files 617 passed (617), Tests 13917 passed (13917). pnpm --filter @objectstack/objectql typecheck exit 0 (lock VERDICT command-exit 0). Final head 44b4972c7 (one test-only commit after that): new file 10 passed (10). Before the fix the same full suite had 6 reds, all legitimate: engine.test.ts Dropped-field observability (readonlyWhen single-id, bulk path, throwing listener), engine-formula-write-strip.test.ts static-readonly control, engine-blank-typed-value-door.test.ts readonlyWhen lock vs blank, and federated-injected-column-readers.test.ts (new stamp-key vocabulary). Each fix: a surviving writable field added to a payload that was otherwise all dropped, so the strip pin still holds and gains a toHaveProperty on the survivor; plus two not-a-read rows in the federated ledger. No assertion weakened.", "gates": "Local, dispatch-gates.mjs --commands (65 families, merge base b65488a8, tree 2cdd016db): 63 exit 0. NOT MEASURED (exit 3, PREREQUISITE): node scripts/check-plugin-teardown-shape.mjs --self-test (the shallow clone cannot reach pinned fixture commit 621a4876); pnpm check:dual-build-cjs-loads (needs every package's dist, only the objectql closure is built). pnpm check:objectql-double-limit first went red (exit 1, the new find double was limit-blind). I fixed it in 44b4972c7 and it is now exit 0. Re-run on the final head: check:objectql-double-limit, check:test-source-alias, check:cross-package-test-inputs, check:nul-bytes, check:engine-double-contract, all exit 0. --ran reconciliation with recorded exit codes: 65 derived, 63 run, 2 NOT-MEASURED, 0 UNRUN, RAN_EXIT=0. overlap-check before each push: VERDICT clean exit 0. CI on PR #35594 at report time: Governed Surface Queue Guard success; Lint, Type Check, Check Changeset, Check PR Size and PR-body guards in_progress; Test Core and Build Core not yet listed.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "files_changed": [ ".changeset/34746-all-dropped-update-noop.md", "packages/objectql/src/engine-update.ts", "packages/objectql/src/engine-update-all-dropped-noop-34746.test.ts", "packages/objectql/src/engine.test.ts", "packages/objectql/src/engine-formula-write-strip.test.ts", "packages/objectql/src/engine-blank-typed-value-door.test.ts", "packages/objectql/src/federated-injected-column-readers.test.ts" ], "line_budget": "n/a — no skills/** file touched", "deviations": [ "Four existing test files outside the named new file were edited: engine.test.ts, engine-formula-write-strip.test.ts, engine-blank-typed-value-door.test.ts and federated-injected-column-readers.test.ts. The claim covers them as tests the change legitimately reds. Each red and its fix is named in tests.", "The first ablation attempt was a no-op that ablation-replace refused (the replacement text contained the anchor). Nothing ran in it, and I redid it with a landing anchor.", "I merged origin/main (3 commits, objectql transaction files) into the branch before the PR (AGENTS.md multi-agent discipline section 10), then rebuilt the objectql closure and re-ran the full suite on the merged head.", "Beyond the ruling text, the no-op also skips the roll-up recompute and the realtime change event, because no record changed. Validation and the post-image seam still run, so the security middleware's honoured check is satisfied and existing refusals hold. ADR-0142 precondition writes are excluded from the no-op.", "Commit trailers use the AGENTS.md model-free pair (Co-authored-by: Claude). The harness reminder's model-named Co-Authored-By was not used, per the dispatch order's fence." ], "mcp_calls": "0 — no MCP GitHub calls", "api_writes": "2 relay writes. (1) pr_create through scripts/pm/fleet-write/dispatch.mjs, run 44572630431: POST /repos/objectstack-ai/objectstack/pulls (draft) and POST /repos/objectstack-ai/objectstack/issues/35594/assignees [os-tesla]; read-back identical, 6879 bytes. (2) os-dev-report comment through scripts/pm/post-stamped.mjs: POST /repos/objectstack-ai/objectstack/issues/34746/comments. git push not counted.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted in the PR's Acceptance notes, not filed. The pinyin __search companion is a hook-written key, so an update whose only source field is readonlyWhen-locked, on an object with a companion column, still writes __search plus stamps (unchanged behaviour; no wrong answer reproduced through a public door). Dedupe words: search companion readonlyWhen locked source, __search stamp dropped field, pinyin companion stale lock" ], "skills_docs": "follow-up owed — skills/objectstack-data/references/data-hooks.md, content/docs/kernel/contracts/data-engine.mdx. Neither teaches the old behaviour, and neither states that an update whose every field is dropped runs no afterUpdate." }objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#7 · os-tesla · session_01L9qibwJEh7hMPPvagWM1g7
Progress · 2026-11-20T04:06Z
PR #35594 at head 44b4972: CI green (39 success, 18 skipped). Skills-docs follow-up filed as #35605. Sent to the seat's L1 review thread; landing follows ACCEPT.
objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#7 · os-tesla · session_01L9qibwJEh7hMPPvagWM1g7
Delivered · 2026-11-20T05:15Z
PR #35594 merged as d5ece3e: an update whose every caller-supplied key is stripped writes nothing, stamps nothing and runs no afterUpdate, no roll-up recompute and no realtime event, on both the by-id and predicate branches. Closed by
Fixes;pm:dispatchedremoved. The owed skills/docs sentence is #35605, now unblocked.