Repository navigation
Closed
Labels
area:formulabugSomething isn't workingdomain:serverDomain lane — seat card indexed by label:pm:seatpm:dispatchedDispatched to a dev agent by /pm-dispatchpriority:p1High: required for production / M2
Description
domain:server#1 · os-sales · session_01L6bhgVaKJ9TPfXPRhdqx3e
Follow-up of #32527 (PR #32690), from its delta contract review (PR #32690 comment 6823923136, finding F1 should-fix, F2 and nits). Filed as a follow-up card under the maintainer's rule of 2026-11-12 09:41Z: review findings that do not break correctness of the reviewed change get their own card, not another PR round. None blocks #32690.
Blocked-by: #32527
维护者速读
- 改什么:存储计算字段的补算(保存、发布时自动跑,以及
os migrate stored-expressions --apply)遇到「补算期间被别的写入改过的行」时,现在直接跳过并记为「对方已算过」。少数情况下这个假设不成立,行会留空。 - 为什么:对方若是尚未生效新定义的另一台节点,或绕过引擎的写入,它并没有按新表达式算;这行被跳过、计入已算,回执可能仍说「无需处理」。
- 风险:窗口很窄,
os migrate stored-expressions --changed --apply能补救;修法只动补算内部,不改公开答案形状。 - 先看:
packages/objectql/src/stored-expression-backfill.ts的writeUnlessMovedSince与moved分支。 - 验证:被「旧定义」写入改过的行,补算后仍得到新表达式的值,且有 pin 与消融。
- 需要你做的:无,p2。
Do
- F1 (should-fix). On
moved, do not trust that the write which moved the row computed the field under the live definition. Re-read the row, recompute the changed fields under the definition now live, and either write under the new stamp (same precondition) or count the row as left (stored-expression-fill-incomplete). Pin: a row moved mid-walk by a write that did NOT apply the new expression (simulate a peer on the old definition or a raw driver write) ends filled or reported as left, never counted as computed; a CONTROL where the moving write did compute it stays untouched. Ablate the recompute. - F2 (prose). The fix(objectql, metadata-protocol): the save or publish that makes a stored computed field compute something new fills the object's existing rows, and says so per field #32690 changeset does not name
concurrentRows(now a required member of the exportedStoredExpressionBackfillReportandStoredExpressionBackfillFieldOutcome) or that the command's writes are now conditional. Carry one changeset sentence for@objectstack/objectqlwith this card's change. - Nits from the same review (fix while there, or drop with a reason in the PR): the notice's "1 row … were not written over" agreement; a row deleted mid-walk counted as "written by another write"; the silent same-stamp fallback (no signal when a driver's predicate never matches its own read); the engine's one-time no-
updateManywarning that speaks only of claims and the round-robin cursor; the stale comments "Two users today" inconcurrent-update-error.tsand theWRITE_PRECONDITION_OPTIONdocblock; thecli.mdxrow not mentioning the guard.
Clause-②: expected no (internal fill behaviour; no published face moves). Metadata-protocol: none.
Metadata
Metadata
Assignees
Labels
area:formulabugSomething isn't workingdomain:serverDomain lane — seat card indexed by label:pm:seatpm:dispatchedDispatched to a dev agent by /pm-dispatchpriority:p1High: required for production / M2
Activity
objectstack-fleet commentedon Nov 12, 2026
domain:server#8 · os-elon-musk · session_016WV4cwqTK71kjQzHae8T5J
Claim: PM loop round 1
Session:
session_016WV4cwqTK71kjQzHae8T5JAccount:
os-elon-muskBranch:
claude/issue-32732-backfill-moved-rowuntil the card thread opens; the card thread's designatedclaude/project-thread-*branch replaces it in a whole re-posted claim before the first pushWorktree:
objectstack-issue-32732Domain:
domain:serverSeat:
domain:server#8File surface:
packages/objectql/src/stored-expression-backfill.ts(writeUnlessMovedSinceand themovedbranch) and its tests, one@objectstack/objectqlchangeset sentence (F2),.changeset/**(stop on breach; explain in the report)Container & model:
M,mode:thread,model: opus(TIER_DEFAULT;dispatch-gates.mjs --tier: no path-derived mandate; the report shape stays),effort: highClause-②: no
Metadata-protocol: none
Responsibility:
packages/objectql stored-expression fill (objectstack) counts a moved row as computed | os migrate stored-expressions --changed --apply repairs after the fact | stored-field fills on save, publish and the migrate command, when a peer on the old definition or a raw driver write moves a row mid-walkThread-read: none
Premise: holds
Serial constraints cleared:
#32527 (the edge) closed, PR #32690 merged; no in-flight claim names stored-expression-backfill.ts (#32590 is driver-sql schema sync, #31985 bare-name-one-holder.ts)objectstack-fleet commentedon Nov 12, 2026
domain:server#8 · os-elon-musk · session_016WV4cygFz7u9NcRqm24ucS
Claim: PM loop round 1
Session:
session_016WV4cygFz7u9NcRqm24ucSAccount:
os-elon-muskBranch:
claude/project-thread-obcekjWorktree:
objectstack-issue-32732Domain:
domain:serverSeat:
domain:server#8File surface:
packages/objectql/src/stored-expression-backfill.ts(writeUnlessMovedSinceand themovedbranch) and its tests, one@objectstack/objectqlchangeset sentence (F2),.changeset/**(stop on breach; explain in the report)Container & model:
M,mode:thread,model: opus(TIER_DEFAULT;dispatch-gates.mjs --tier: no path-derived mandate; the report shape stays),effort: highClause-②: no
Metadata-protocol: none
Responsibility:
packages/objectql stored-expression fill (objectstack) counts a moved row as computed | os migrate stored-expressions --changed --apply repairs after the fact | stored-field fills on save, publish and the migrate command, when a peer on the old definition or a raw driver write moves a row mid-walkThread-read: none
Premise: holds
Serial constraints cleared:
#32527 (the edge) closed, PR #32690 merged; no in-flight claim names stored-expression-backfill.ts (#32590 is driver-sql schema sync, #31985 bare-name-one-holder.ts)Re-posted whole by the card thread of seat claim 6836654585: the card thread's designated branch and session replace the placeholder; every other line is unchanged.
objectstack-fleet commentedon Nov 12, 2026
domain:server#8 · os-elon-musk · session_016WV4cygFz7u9NcRqm24ucS
os-dev-report
objectstack-fleet commentedon Nov 12, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Path: none
Triage: regrade p2 → p1 under the new grading table (#32906) · 2026-11-12T23:27Z
⛔ Not a claim; the card's claim and state are unchanged.
Generated by Claude Code