Skip to content

objectql: a predicate update (multi: true) resolves the parent once for the matched set, so a rule reading a parent roll-up does not answer as it does one by one #34465

Closed

Description

@objectstack-fleet

repo:objectstack#1 · os-project-manager · session_01FEkQ5pmEYLVFDcQ1Z1CS8H

Filing gate: ① code reading, named location. Found by the #33795 decision thread (ruling record 6928862195, B 「被规则读到的合计不延后」), outside that card's scope. ⛔ Not a claim. Not measured live.

维护者速读

Where (origin/main)

Done when

  • Either a predicate update evaluates a rule that reads a parent roll-up the same way as one-by-one updates do (pinned with a two-row case under one parent, plus a CONTROL rule that reads no roll-up and keeps the batched resolution), or the limit is written down in the validation-rules docs with this card as the record and a ruling cited.

Dedupe words: predicate update parent roll-up rule, multi true resolvePredicateRelated batch, batch equals one by one parent summary.

Activity

  1. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmSLi1reMd27fT62jJ3

    Hand-off · 2026-11-17T13:05Z · repo:objectstack#2 → repo:objectstack#3 (maintainer order 2026-11-17 12:33–12:34Z)

    • PR fix(objectql)!: a predicate update judges each matched row against the parent roll-ups the rows before it move #34709, current head 82764bd6aeab5f45594eca7a0686e72a40bb1fec (L2 S2 and N5 fixed over 18f3774a, main merged). Readings on this head (card thread): build 119/119; @objectstack/objectql 606 files, 13632 tests passed, typecheck exit 0; dogfood battery Test Files 479 passed | 3 skipped, Tests 4062 passed | 68 skipped, VERDICT 0; 99 gate families run, 0 NOT MEASURED. The PR body carries the round.
    • Records on file: L1 ACCEPT 6943145716 (13741cb9) and 6947051355 (18f3774a); L2 6943284591 (13741cb9) and L2 PASS 6947196147 with S2 and N5 (18f3774a). None on 82764bd6.
    • Open items:
    • Next: awaiting approval and landing. A narrowing, so Tier H (os-zhuang) before landing; it stays a draft, not armed.
    • Small-flaw rule (maintainer 12:34:45Z): when review leaves only small flaws, the PR may merge first and the flaws get their own card; a governed PR still needs os-zhuang's approval.
  2. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzfr1xZSFZzCR8HnqXX

    Takeover · #34465 · PR #34709 · 2026-11-17T13:11Z

    Release: claim 6935426744 (session session_01ADHkmSLi1reMd27fT62jJ3, thread session session_01ADHkmPgdzD1Rp6LuxSPNpk per follow-up 6935534469, amendment 6938143680, account os-steve), handed over, not abandoned. Provenance: seat 2's maintainer ordered the hand-over on 2026-11-17 at 12:33–12:34Z (quoted in seat 2's mailbox hand-off 6948334887 on #34585: 「L1 L2 不继续审核了,让 3号席位跟进」; completion addendum 6948911954); seat 3's maintainer ruled at 12:44Z in the seat 3 project thread that seat 3 takes every non-security PR seat 2 handed over, merge-first-then-card for nit-level flaws only (「只对 nit 级采用」). The area's hand-off on this card is 6948880319.
    Hand-off record: branch claude/project-thread-tbysd1, last pushed sha 82764bd6aeab5f45594eca7a0686e72a40bb1fec (L2 S2 and N5 fixed over 18f3774a with main merged; battery 479 files / 4062 tests VERDICT 0 on this head; L1 ACCEPT 6947051355 and L2 PASS 6947196147 at 18f3774a, none on this head).

    Claim: PM loop round 1 (area o3-J, repo:objectstack#3; takeover of an open PR for its review rounds and landing)
    Session: session_01WGufzfr1xZSFZzCR8HnqXX
    Account: os-support-ai
    Branch: claude/project-thread-tbysd1
    Worktree: objectstack-issue-34465
    Domain: domain:server
    Seat: repo:objectstack#3
    File surface: the claimed surface of the released claim as amended (stop on breach; explain in the report)
    Container & model: L, mode:subagent, model: default judgment tier, effort: high
    Clause-②: no (narrowing)
    Metadata-protocol: none
    Responsibility: as stated in the released claim
    Thread-read: 6948880319
    Premise: holds (measured at the released claim)
    Serial constraints cleared: overlap-check of 82764bd6 against origin/main dfbc316d and the PRs sharing files (#34817 #34811 #34799 #34752): all merge cleanly, VERDICT clean exit 0.
    Resume-from: claude/project-thread-tbysd1@82764bd6aeab5f45594eca7a0686e72a40bb1fec
    Pre-claim lane: unchanged from the released claim.
    Pre-claim deps: none open.
    Prior rulings read: route A ruled on this card 6938087434 (inherits 6377847361 C and 6928862195 B).
    Next step: this seat's L1 delta 18f3774a..82764bd6 (S2, N5 and the S2 ordering deviation the body explains), then the seat's contract review delta at CONTRACT_REVIEW_TIER, which also weighs the three stored-value exceptions L2 raised. check-governed-merges.mjs --pr 34709 reads NOT governed (1010 lines), so the area lands it after ACCEPT, PASS and green.

  3. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzfr1xZSFZzCR8HnqXX
    os-dev-report

    {
      "issue": 34465,
      "status": "done",
      "branch": "claude/project-thread-tbysd1",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34709",
      "head": "c14d8dd96b27b4bb62d88385e11be6404843af11",
      "session": "session_01WGufzfr1xZSFZzCR8HnqXX",
      "premise_still_valid": true,
      "summary": "Fix round on PR #34709 (no-card order, area o3-J), two rounds folded into one report. Before any edit, origin/main e05445e4 was merged in cleanly as 05241f49. L1 M1 (REWORK 6949424147), 9e5bae05: the predicate update's formula pass puts the stored-row values of the formulas outside formulaPlan back before it runs, so a planned formula reading such a formula (room = ceiling - total, ceiling = budget + extra) reads it as the by-id rule's SYSTEM read does. This was measured red before the fix: the predicate update admitted both rows where one by one refused the second. L2 delta FAIL 6957356275, c14d8dd9: M2, the loader leaves out before any statement a roll-up whose filter reads a related record in the nested form ({ account: { status: 'x' } }) as well as the dotted form, via filterReadsThroughReference. S3 is fixed, not stated: the fold evaluates the stored plan twice, as a by-id write does, so a stored field declared before the stored field it reads gets the moved value. The changeset and fields.mdx now name the nested form. Each fix is pinned against a one-by-one reference and ablated once. N6 (nit) is left to follow-up #34821 with N3 and N4.",
      "tests": "Head c14d8dd9, all under os-verify-lock. (1) src/summary-rollup.test.ts + src/summary-batch-accumulation.test.ts: Tests 120 passed (120). The #34465 pins are 26 in summary-rollup (24 in the main describe plus the 2-test M2 describe) and 8 in summary-batch-accumulation. (2) pnpm --filter @objectstack/objectql typecheck: exit 0, check:test-typecheck OK. (3) objectql full suite: Test Files 607 passed (607), Tests 13695 passed (13695). Ablations, all through scripts/ablation-replace.mjs, one mutation each. The suites import the engine from src, so no rebuild was needed. M1 at 9e5bae05: deleted the put-back line (anchor x1 to x0, blob 726b7cceae20 to 93453eaaab6f). Run with -t 34465: Tests 1 failed | 21 passed | 72 skipped (94); red is the M1 predicate-update refusal only. M2 at c14d8dd9: filterReadsThroughReference changed to filterNamesDottedPath in the loader (blob 260317ab8f34 to eac8b30b74dd): Tests 2 failed | 118 passed (120); red is the loader nested-form unit pin and the M2 predicate-update refusal. S3 at c14d8dd9: stored pass bound 2 to 1 (blob 90d4a727eaf5 to d741636a9bb9): Tests 1 failed | 119 passed (120); red is the S3 predicate-update refusal only. In every ablation the one-by-one references stayed green, and each restore proved blob == HEAD with git diff HEAD empty.",
      "gates": "Local, on c14d8dd9. node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack derived 99 families. Each was run with its exit captured before any pipe, and --ran reports: 99 derived famil(ies) accounted for, 98 run, 1 NOT-MEASURED, 0 UNRUN, exit 0. All 98 ran with exit 0. NOT MEASURED: check:type-check-debt, reason: its closure build queues on the shared verify lock and timed out twice behind sibling dogfood runs (exit 3); CI's Lint & Repo Gates runs it. The derivation also flagged STALE TREE: the tree is 25 commits behind origin/main, and three gate-placement files changed upstream (check-route-envelope.mjs, cross-package-test-inputs.mjs, dispatch-gates.data.mjs). The PR check-runs on the merge ref are the authority for those. overlap-check --branch=HEAD --exclude-pr=34709 against origin/main fff0ad0c and PRs #34952, #34817, #34799 and #34752: VERDICT clean exit 0. PR check-runs on c14d8dd9: 55 completed, 40 success, 15 skipped, none failed. Lint & Repo Gates, TypeScript Type Check, Build Core, Test Core 1/10 to 10/10 and its roll-up, Dogfood Regression Gate, Governed Surface Queue Guard, Live E2E UI and Test UI are all success. pnpm lint is CI's.",
      "dogfood_battery": "c14d8dd96b27b4bb62d88385e11be6404843af11 · os-verify-lock: VERDICT command-exit 0 (pnpm build --concurrency=2: Tasks 119 successful, 119 total; then pnpm --filter @objectstack/dogfood test, no shard and no path) · Test Files 479 passed | 3 skipped (482) · Tests 4072 passed | 68 skipped (4140) · no failure. The earlier battery on 9e5bae05 had the same counts and VERDICT 0, but it is superseded and does not count for this head.",
      "mcp_calls": "0",
      "api_writes": "2 relay writes: POST /repos/objectstack-ai/objectstack/dispatches carrying issue_patch #34709 (PR body; read-back identical, 26449 bytes), and this os-dev-report comment through post-stamped.mjs. There were also 3 git pushes, which are not REST writes: 05241f49 (main merge), 9e5bae05 and c14d8dd9.",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: #34821 · L2 N6 (nit, no divergence shown): the stored pass reads the parent as the engine find returns it, and a stored computed field outside the plan that would move on any write (clock, acting user) keeps its stored value. This rides with N3 and N4 on the follow-up card. Noted, not filed.",
        "carrier: none · noted, not filed: the insert arm's createBatchSummaryAccumulator still screens only the dotted form. A nested-form filter there contributes nothing for every new row, which leaves the stored value, the same answer as leaving it out, so nothing diverges."
      ]
    }
  4. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzfr1xZSFZzCR8HnqXX
    os-dev-report

    {
      "issue": 34465,
      "status": "done",
      "branch": "claude/project-thread-tbysd1",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34709",
      "head": "d19c04bb49e278843e9aceaacea198b9961440ae",
      "session": "session_01WGufzfr1xZSFZzCR8HnqXX",
      "dev_effort": "high",
      "rounds": 3,
      "premise_still_valid": true,
      "summary": "Fix round 3 on PR #34709 over c14d8dd9 (L1-e delta ACCEPT 6961160128; contract review delta 6961415010, S4). For S4 I chose remedy (1): the fold carries one image per parent. The change is small and has the same shape as the S3 fix. SummaryDependents gains an optional advance. After each row is judged, the fold's advance calls it once for every parent that row names (as stored and as left), passing the roll-ups that row leaves. loadSummaryFoldDependents keeps an image map: advance rewrites that parent's image from its previous image (or from the stored row, if it has none) with two stored passes, and the next row reads that image. A high-water-mark stored field and a chain of three stored fields declared against their reading order now hold the one-by-one value from the third row on. Row 0 still reads the write's image over the stored row (N3, #34821). N7 was trivial, so I folded it in: filterReadsThroughReference also asks isNoOperatorObject, so { acct: {} } is left out like the nested form. I did not touch the insert arm. Changeset and docs needed no edit, because their parity claims are now true for these shapes. The PR body is refreshed: What changes, Tests, the eighth ablation, a round-3 acceptance note, and Verification on d19c04bb.",
      "tests": "On head d19c04bb, everything under os-verify-lock. (1) src/summary-rollup.test.ts and src/summary-batch-accumulation.test.ts: Tests 125 passed (125). The #34465 pins are now 30 in summary-rollup (4 new: a high-water mark and a 3-field chain against declaration order, each a one-by-one reference over three rows plus a predicate update) and 9 in summary-batch-accumulation (1 new: the fold tells the dependents each parent a judged row names). (2) objectql full suite: Test Files 607 passed (607), Tests 13700 passed (13700). (3) pnpm --filter @objectstack/objectql typecheck: exit 0 on 52e46807. d19c04bb is that commit amended before push with one CEL string in a test rule (a null guard: on the bulk insert, the chain rule read chain_x while it was still null, and that first-run failure was in the test, not the fix). Ablation, once, with scripts/ablation-replace.mjs: in the fold, `if (!dependents?.advance || !states) return;` became `return;` (blob 5078351317da to 2f02052470ed). Result: Tests 3 failed | 122 passed (125). Red: the advance unit pin and the S4 high-water-mark and chain predicate-update refusals (two 'expected the write to be refused', i.e. the update admits). Green: both S4 one-by-one references and every earlier pin. Restore proven: blob == HEAD, git diff HEAD empty.",
      "gates": "Targeted gates for this round: the objectql suite and typecheck above, plus node scripts/check-nul-bytes.mjs exit 0. overlap-check --branch=HEAD --exclude-pr=34709 against origin/main db1a05cd and PRs #34978, #34817 and #34799: VERDICT clean exit 0, run before the push. I did not merge origin/main again. NOT MEASURED: the full derived sweep on this head (declared narrowing, per the order's targeted gates). The sweep last ran on c14d8dd9: 98 of 99 run, exit 0; check:type-check-debt NOT-MEASURED there on a lock queue-timeout. This round's paths sit inside that sweep's. PR check-runs on d19c04bb: 55 completed, 40 success, 15 skipped, none failed.",
      "dogfood_battery": "d19c04bb49e278843e9aceaacea198b9961440ae · bash scripts/pm/os-verify-lock.sh -c \"pnpm --filter '@objectstack/dogfood^...' build && pnpm --filter @objectstack/dogfood test\": VERDICT command-exit 0 · Test Files 479 passed | 3 skipped (482) · Tests 4072 passed | 68 skipped (4140) · no failure. The 9e5bae05 and c14d8dd9 batteries are superseded.",
      "mcp_calls": "0",
      "api_writes": "2 relay writes: POST /repos/objectstack-ai/objectstack/dispatches carrying issue_patch #34709 (PR body; 28917 bytes read back identical), and this os-dev-report comment through post-stamped.mjs. Plus 1 git push (d19c04bb), which is not a REST write.",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: #34821 · N3 (row 0 reads the write's image over the stored row, including a recompute of the stored fields from it), N4 and N6 stay there as the review carried them. Noted, not filed."
      ]
    }
  5. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbaX2qDxUq9sF93EqqL

    Takeover · #34465 · PR #34709 · 2026-11-18T03:51Z

    Release: claim 6949011526 (session session_01WGufzfr1xZSFZzCR8HnqXX, account os-support-ai), handed over, not abandoned. Provenance: Warren (maintainer) to seat 3 at 03:19Z 「开发中的任务提交代码,开始写交接文件,准备交给下一个pm」「已经入队的继续跟进」 and at 03:30Z 「代码已推送,交给下一任,用信箱 交接给刚入座的 objectstack#1」, quoted in seat 3's hand-off brief on #34584 (comment 6968205670); Warren to seat 1 at 03:20Z in os-warren's fleet project 「加载最新的 pm-dispatch 技能,你接手 objectstack 全仓车道 座位1,前任已经没有token了」 (seat post #34366 comment 6968121768). Assignee os-support-ai → os-warren and lease:o3-J → lease:o1-D in this stroke.

    Claim: PM loop round 1 (area o1-D, repo:objectstack#1; takeover of open PR #34709 to follow it to MERGED and close the card out)
    Session: session_01JQwxbaX2qDxUq9sF93EqqL
    Account: os-warren
    Branch: claude/project-thread-tbysd1 (continued; no force-push)
    Domain: domain:server
    Seat: repo:objectstack#1
    File surface: unchanged, the PR's files at d19c04bb49e278843e9aceaacea198b9961440ae
    Container & model: no dev dispatched by this claim (landing follow-up only), effort: high
    Clause-②: no (narrowing)
    Metadata-protocol: none
    Thread-read: 6963351884
    Premise: holds — the PR at d19c04bb49e278843e9aceaacea198b9961440ae carries the reviews named in the hand-off
    Pre-claim lane: the PR's paths — whole-repo lane
    Pre-claim deps: none named on the card
    Prior rulings read: seat route A 6938087434; rulings 6377847361 (C) and 6928862195 (B) as cited in seat record 6963524236
    Serial constraints cleared: none (no code change under this claim)
    Resume-from: claude/project-thread-tbysd1@d19c04bb49e278843e9aceaacea198b9961440ae

    Hand-over record: last pushed sha d19c04bb49e278843e9aceaacea198b9961440ae. NOT governed (check-governed-merges --pr 34709: 0 of 8 paths). os-zhuang queued it twice; the queue ejected it at 01:24Z and 03:33Z on one signature outside the PR (packages/qa/scenarios/test/skill-evals/skill-evals.test.ts:362, Test timed out in 5000ms). No re-queue until that signature is diagnosed; this seat follows it.

  6. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbaX2qDxUq9sF93EqqL

    Close-out · 2026-11-18T06:52Z. Fixed by PR #34709, merged as 94a2d8be83add1059ce68a432855937daa7e30e3, at head d19c04bb49e278843e9aceaacea198b9961440ae. Reviews: L1 ACCEPT 6963396892, L2 PASS 6963489089, seat record 6963524236, battery 6963351884. The two earlier queue ejections were the skill-evals timeout flake, fixed by #35121. The out-of-scope items N3, N4, N6 and the high-water-mark note are carried by #34821. Following seat 3's hand-off 6968107956, this stroke removes pm:dispatched and the lease label and clears the assignee.

  7. removed
    pm:dispatched
    on Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    domain:serverpriority:p2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions