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. added
    priority:p2
    pm:queue
    domain:server
    on Nov 16, 2026
  2. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first touch → p2 (confirmed) · theme: performance and security (roll-up correctness) · 2026-11-17T00:33Z

    ⛔ Not a claim.

    A predicate update (multi: true) resolves the parent once for the whole matched set, so a validation rule that reads a parent roll-up answers differently than it would one row at a time. This follows the #33795 ruling B (「被规则读到的合计不延后」). A rule can admit or refuse wrongly, but only on bulk writes, read from code: p2, confirmed. Area o2-E takes it after #34439.

  3. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmSLi1reMd27fT62jJ3

    Claim · #34465 · 2026-11-17T01:52Z

    Claim: PM loop, area o2-E of seat repo:objectstack#2 (seat post #34478). A large card: the fix can refuse a predicate update (multi: true) that is admitted today, a narrowing of #25579's batch arm, so it owes the full dogfood battery (rule card #34424). Built in the same card thread as #34466, after it; the area holds the lease, sends L1 and L2, and lands
    Session: session_01ADHkmSLi1reMd27fT62jJ3
    Thread session: the card thread the seat opens for #34466 and this card (named in a follow-up line on this card)
    Account: os-steve
    Branch: the card thread's branch for this card (named in the follow-up line)
    Worktree: objectstack (the card thread's own container)
    Domain: domain:server
    Seat: repo:objectstack#2
    File surface: packages/objectql/src/engine-update.ts (the predicate-update branch around resolvePredicateRelated, ~2030-2070), packages/objectql/src/engine-master-detail-related.ts and packages/objectql/src/summary-batch-accumulation.ts (shared with #34466), their tests, the validation-rules page under content/docs/** for the limit if a ruling keeps it, one changeset (stop on breach; explain in the report)
    Container & model: L, mode:thread, model: default, effort: high. Narrowing: the PR declares it and carries the full dogfood battery pinned to its head
    Clause-②: no
    Metadata-protocol: none
    Responsibility: objectstack platform: packages/objectql/src/engine-update.ts, the predicate update resolves the parent once for the whole matched set from pre-write rows, so a rule reading parent.<roll-up> sees the parent as before the batch for every row | none | any app with a validation rule reading a parent roll-up and a multi: true update moving several rows under one parent (none found in hotcrm or the objectstack examples)
    Pre-claim lane: repo:objectstack area o2-E — the fix lands in packages/objectql (domain:server)
    Pre-claim deps: #34439 merged 2026-11-17T01:19Z (a2bb7d5), the order the seat set for this pair; triage first touch on both cards (6933862587, 6933871177). In-flight surface: PR #34503 (#34412, this area, landing after its battery) edits engine-insert.ts and engine-update.ts; the card thread starts from main after #34503 merges, or checks its hunks with git merge-tree before the PR. No other open PR touches these files (64 open PRs read in this act)
    Prior rulings read: objectql,predicate,update,multi,true,resolves,parent,matched,rule,reading,roll-up,answer → 253 hits; ADR-0139 D4, ADR-0055 Decision §3, ADR-0144 D8, ADR-0029 D9.5, ADR-0035 Decision §5, ADR-0056 D6, ADR-0061 D2, ADR-0076 D4/D5/D6/D8; thread: none; the #25579 ruling (batch equals one by one) and the #33795 ruling record 6928862195 (B)
    Ruling-ref: 6928862195
    Thread-read: 6933862587
    Premise: holds (read on origin/main 1e4656d: engine-update.ts ~2038 calls resolvePredicateRelated once for the matched set)
    Serial constraints cleared: #34466 (same card thread, before this card); #34503 (this area, same file, lands first)

  4. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 17, 2026
  5. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmPgdzD1Rp6LuxSPNpk

    Claim follow-up · #34465 · 2026-11-17T01:57Z

    The card thread the area opened for #34466 and #34465 (serially, #34466 first) reported in; the area's claim 6935426744 stands, and these two lines complete it.
    Thread session: session_01ADHkmPgdzD1Rp6LuxSPNpk
    Branch: claude/project-thread-tbysd1

  6. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmPgdzD1Rp6LuxSPNpk
    os-dev-report

    {
      "issue": 34465,
      "status": "needs_decision",
      "branch": "claude/project-thread-tbysd1",
      "pr": null,
      "session": "session_01ADHkmPgdzD1Rp6LuxSPNpk",
      "premise_still_valid": true,
      "summary": "Premise measured on the objectql engine with the summary-rollup memory driver (origin/main 8dd8192c): a child rule `record.is_primary == true && record.inv.primaries > 0` refuses the second of two by-id updates (VALIDATION_FAILED, _record rule_violation, parent primaries 1), while update('inv_line', { is_primary: true }, { where: { inv: P }, multi: true }) returns 2, admits both, and leaves primaries 2. The predicate branch of engine-update.ts reads the related rows and master-detail headers once for the matched set (pre-batch values) and recomputes once after updateMany. No ruling covers this door (ruling record 6928862195, findings outside its card). How to make it equal one-by-one is a contract fork (exactness per summary function, hook/event shape, atomicity, or a written exception), so nothing is built; options below, full analysis in the seat's project files (objectstack-seat2/34465-options.md).",
      "tests": "Scratch measurement only (an uncommitted test file, deleted after the run): Tests 2 passed (2) printing the two readings above. No commit.",
      "gates": "n/a — no diff",
      "dogfood_battery": "n/a — no PR",
      "mcp_calls": "0 for this card beyond the two issue_read calls (34465 get, get_comments) already listed in the #34466 report",
      "api_writes": "1 — this os-dev-report comment (the claim follow-up 6935534469 is listed in the #34466 report)",
      "files_changed": [],
      "line_budget": "n/a",
      "deviations": [],
      "open_questions": [
        {
          "question": "How should a predicate update (multi: true) answer a rule that reads a parent roll-up (one hop through a reference, or a field-level parent. predicate), so it equals one-by-one updates?",
          "options": [
            "A exact: when summaryFieldsReadByRules says a rule reads a summary this object rolls up, read that summary per touched parent over the children OUTSIDE the matched set (one grouped aggregate per read summary, two for avg), then fold the matched rows in order (rows before k in their new state, rows from k in their old state); exact for count/sum/min/max/avg; still validate-all-then-one-updateMany; 1-2 extra statements per read summary per batch, zero for other objects; narrowing, full battery",
            "B per-row: run such a predicate update as N by-id updates in one unit; exact by construction, but hook/event shape changes (N by-id contexts and N record.updated events instead of the predicate's), and a driver without transactions loses all-or-nothing",
            "C in-memory delta only (the #25579 insert shape): exact for count/sum; min/max when a matched row held the extreme and moves, and avg, keep the pre-batch value; docs state the limit",
            "D docs limit only: the validation-rules docs state that a predicate update's rules read the parent summary as before the batch, with this card as the record"
          ],
          "recommendation": "A, because it keeps the batch-equals-one-by-one rule (rulings 6377847361 C and 6928862195 B) on the last bulk door that breaks it, keeps the aggregate in the database (SQL first) with no second aggregate algorithm, changes no hook or event contract, and pays only on objects that have such a rule. Measured pull is zero (no such rule in hotcrm or the examples), which favours D on the startup axis, but under D/C an AI-written cap or one-primary rule is bypassed silently in a flow bulk update, which is the worst failure shape."
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · boundary, not filed: the bulk readonlyWhen strip (locked in any matched row drops for all) is not one-by-one by design",
        "carrier: none · boundary, not filed: the parent's own rules judge only the final recompute of a predicate update, not each intermediate value (class iii of ruling record 6928862195)"
      ]
    }

    Stamped 2026-11-17T04:12Z.

  7. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmQ2SN4K183oqAvUajA

    Route ruled by inheritance · written at 2026-11-17T04:13Z · not a decision card

    The card thread stopped with needs_decision (final report 6938068056). The seat does not open a decision card. This is a new branch of a family the maintainer has already ruled twice, so it inherits those rulings and their reasons:

    That record itself names this door, the predicate update with multi: true, as the one batch door its ruling did not reach. The reason behind both rulings, that a batch answers what the same writes one at a time would answer, applies here unchanged. The measurement shows this door breaks that: a rule allowing at most one primary per parent refuses the second row when written one at a time, but a predicate update writes both rows and returns 2.

    Route: A. Where a rule reads a summary this object rolls up (the summaryFieldsReadByRules test from #34439), compute each read summary per parent in the database, excluding the matched set, and fold the matched rows in order in memory. Then the k-th row is judged against what the one-at-a-time sequence would have seen, for count, sum, min, max and avg alike. The batch is still validated in full before one updateMany, so it stays all-or-nothing. Objects with no such rule pay nothing extra.

    • B is not taken: it changes the hook and event shapes, and loses all-or-nothing on drivers without transactions.
    • C is not taken: it leaves min, max and avg silently unenforced.
    • D is not taken: it keeps the one batch door where a declared rule is silently bypassed.

    This is a narrowing: some predicate updates that write today will be refused. It needs a changeset, an ADR-0087 entry and the full battery, and it lands through Tier H, where the approver sees it. Out of scope, as the analysis says: the bulk stripping of readonlyWhen, and the parent's own rules on recomputed values (#33795 class iii).

  8. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmSLi1reMd27fT62jJ3

    Claim amendment · #34465 · 2026-11-17T04:16Z

    Route: A, as ruled on this card (6938087434): with a rule reading a parent roll-up, the predicate update reads each parent's summary in the database over the rows outside the matched set, folds the matched rows in order in memory, and keeps validate-all then one updateMany. A narrowing: changeset, ADR-0087 disposition and the dogfood battery on the final head; it lands through the seat's Tier H path.
    File surface (amended): adds packages/objectql/src/engine-summaries-and-expansion.ts (export the per-child-object reading of which summaries a rule reads, today a private cache from #34439) and packages/objectql/src/engine.ts (a private wrapper and the update host wiring, the same shape as summaryForeignKeyColumns). Serial constraint: PR #34565 (#33876, this area, open) also edits engine.ts; the card thread checks its hunk with git merge-tree before its PR, and the area orders the landings. No other open PR touches either file (49 open PRs read in this act).
    Thread session: session_01ADHkmPgdzD1Rp6LuxSPNpk. Branch: claude/project-thread-tbysd1, restarted from main after PR #34612 (#34466) merges.

  9. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmPgdzD1Rp6LuxSPNpk
    os-dev-report

    {
      "issue": 34465,
      "status": "done",
      "branch": "claude/project-thread-tbysd1",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34709",
      "session": "session_01ADHkmPgdzD1Rp6LuxSPNpk",
      "premise_still_valid": true,
      "summary": "Route A (seat ruling 6938087434): a predicate update (multi: true) now judges each matched row against the parent roll-ups the rows judged before it move, as consecutive by-id updates do. When a rule reads a roll-up of the child (summaryDescriptorsReadByRules, from the cached #34439 analysis, classes i and ii) and more than one row matched: loadPredicateUpdateSummaryBases reads one grouped aggregate per read roll-up per chunk of parents (count/sum/avg: every child as stored; min/max: children outside the matched set via id $nin, packed at 500 parents and 5,000 excluded ids per statement); createPredicateUpdateSummaryFold folds the matched rows in memory and overlays the related binding, the header and the previous header; advance(i) after each row. Still all rows judged before the one updateMany. Three stored-value exceptions (dotted-path or walker-refused filter, non-number value, min/max under one parent with more than 5,000 matched rows) are in their own PR section, in fields.mdx and the changeset. Narrowing: patch changeset, Clause-② no (narrowing), Metadata-protocol none, FROM/TO, one-line fix, ADR-0087 not-required.",
      "tests": "Final head 13741cb9 (origin/main merged after the restart; main had touched engine-update.ts, merged clean): objectql typecheck exit 0; pnpm --filter @objectstack/objectql test → Test Files 606 passed (606), Tests 13619 passed (13619). 16 new pins (10 in summary-rollup.test.ts, 6 in summary-batch-accumulation.test.ts). Ablation (scripts/ablation-replace.mjs, fix commit before restart): summaryFold?.advance(i); deleted, anchor x1→x0, blob 72635fb6ff22→79e693a8edb8 → Tests 5 failed | 97 passed (102): filtered count, sum, avg, min, reparent refusals red; one-by-one, single match, under-the-line reparent, CONTROL, bases-read and every unit pin green, as predicted. Restore blob == HEAD, git diff HEAD empty. Pre-merge head f9c822a3: same green (605 files / 13607 tests).",
      "gates": "Final head 13741cb9: dispatch-gates --commands 99 families, each run with exit recorded; check:type-check-debt first exited 3 (queued behind the battery on the verify lock), re-run after it: exit 0. --ran: 99 run, 0 NOT-MEASURED. File: objectstack-seat2/34465-gates-ran.txt. CI: pending on the PR.",
      "dogfood_battery": "13741cb99 · pnpm build --concurrency=2 119/119 VERDICT 0 · os-verify-lock pnpm --filter @objectstack/dogfood test VERDICT command-exit 0 (2375s) · Test Files 478 passed | 3 skipped (481) · Tests 4055 passed | 68 skipped (4123) · no failures. Same reading at f9c822a3 before the main merge.",
      "mcp_calls": "3 — mcp__github__pull_request_read x3 (34565 get, 34612 get x2 across turns). No write tool.",
      "api_writes": "2 relay strokes — fleet-write pr_create #34709 (draft, assignee os-steve, read-back 13956 bytes identical, run 44041430486) and this os-dev-report comment. Plus 1 git push (branch re-created from main; the old remote branch had been deleted after #34612 merged).",
      "files_changed": [
        ".changeset/34465-predicate-update-parent-summary-rule.md",
        "content/docs/data-modeling/fields.mdx",
        "packages/objectql/src/engine-summaries-and-expansion.ts",
        "packages/objectql/src/engine-update.ts",
        "packages/objectql/src/engine.ts",
        "packages/objectql/src/summary-batch-accumulation.test.ts",
        "packages/objectql/src/summary-batch-accumulation.ts",
        "packages/objectql/src/summary-rollup.test.ts"
      ],
      "line_budget": "n/a — no skills/** or governed surface touched",
      "deviations": [
        "engine-summaries-and-expansion.ts and engine.ts added to the file surface by the area (comment 6938143680)",
        "summary-rollup.test.ts fake driver learned the $null operator (the engine widens $nin to $or [x $null, x $nin]; the fake answered true for unknown operators)",
        "Ablation blobs name the fix commit before the restart on main"
      ],
      "open_questions": [
        {
          "question": "Contract-tier L2 review needed (declared narrowing): head 13741cb992acd5ce1d3734c29870982ee3a1bf7a",
          "options": [
            "route to the L2 review seat"
          ],
          "recommendation": "route to the L2 review seat on this account"
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: card options analysis · noted, not filed: class (iii) (a rule of the parent judging the recompute write) on a predicate update judges only the final value; the readonlyWhen bulk strip is not one-by-one by design"
      ]
    }
  10. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmPgdzD1Rp6LuxSPNpk
    os-dev-report

    {
      "issue": 34465,
      "status": "done",
      "branch": "claude/project-thread-tbysd1",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34709",
      "session": "session_01ADHkmPgdzD1Rp6LuxSPNpk",
      "premise_still_valid": true,
      "summary": "L2 delta rework (review 6943284591). S1 is fixed by the first route: a rule reading a formula or stored computed field of the parent calculated from a folded roll-up (remaining = budget - spent) now reads it computed again over the folded value. loadSummaryFoldDependents (engine-update.ts) reads the folded parents' stored rows once as SYSTEM and resolves the plan's permissions, one-hop related rows and option labels once. Its plan is the stored computed fields and formulas that read a folded roll-up, closed transitively with storedExpressionsReading. The fold's patchRow then evaluates that plan with applyFormulaPlan over the stored parent with the folded values, and patches the calculated fields the binding or header carries. No new exception. N1: the changeset, docs and body now state both directions: mostly narrowing, and a row main refused can now be admitted when earlier rows move the roll-up toward admitting it, as one by one does (pinned). N2: the prose says a fallback covers that roll-up for every parent the update reads it for, and that a walker-refused filter falls back too. N3/N4 were not taken, as ordered.",
      "tests": "Final head 18f3774a: objectql typecheck exit 0; Test Files 606 passed (606), Tests 13625 passed (13625). 6 new pins: FORMULA and STORED computed refusals, one-by-one formula reference, formula under the line, widening direction, and the dependents unit pin; 22 for the card in all. S1 ablation at 06427b07: the dependents call was replaced with undefined (anchor x1→x0, blob 2e7d129120ed→7e274c71df8f) → Tests 3 failed | 105 passed (108). Red as predicted: the dependents unit pin, FORMULA and STORED. Green: the reference, under the line, widening and every earlier pin. Restore blob == HEAD, git diff HEAD empty.",
      "gates": "Final head 18f3774a: dispatch-gates --commands 99 families, each run. check:type-check-debt first exited 3 (queued behind the battery), re-run after it: exit 0. --ran: 99 run, 0 NOT-MEASURED. objectstack-seat2/34465-gates-ran.txt. On the rework's first head f63c9e3e, check:query-options-erasure flagged a new `as any` on the parents read. It was typed in 18f3774a, the ratchet holds, and that head's battery was stopped and re-run on 18f3774a.",
      "dogfood_battery": "18f3774a7 · pnpm build --concurrency=2 119/119 · os-verify-lock pnpm --filter @objectstack/dogfood test VERDICT command-exit 0 (2457s) · Test Files 478 passed | 3 skipped (481) · Tests 4055 passed | 68 skipped (4123) · no failures.",
      "mcp_calls": "1 this round — mcp__github__pull_request_read (34565 get: merged 10:36Z). No write tool.",
      "api_writes": "2 relay strokes this round — fleet-write issue_patch of the #34709 body (read-back 17366 bytes identical, run 44070237379) and this comment. Plus 1 git push (13741cb9..18f3774a).",
      "files_changed": [
        ".changeset/34465-predicate-update-parent-summary-rule.md",
        "content/docs/data-modeling/fields.mdx",
        "packages/objectql/src/engine-summaries-and-expansion.ts",
        "packages/objectql/src/engine-update.ts",
        "packages/objectql/src/engine.ts",
        "packages/objectql/src/summary-batch-accumulation.test.ts",
        "packages/objectql/src/summary-batch-accumulation.ts",
        "packages/objectql/src/summary-rollup.test.ts"
      ],
      "line_budget": "n/a — no skills/** or governed surface touched",
      "deviations": [
        "#34565 merged at 10:36Z after this head's last main merge (f63c9e3e). merge-tree against origin/main 48a6c3e4, which includes it, is clean. Not merged in again, to keep the battery on the pushed head.",
        "The PR body edit carries the relay's required trailing signed line, as on #34612."
      ],
      "open_questions": [
        {
          "question": "L1/L2 delta on head 18f3774a7b4016f5bd2ffdc761de6d6d4f1494d7 (S1 rework)",
          "options": [
            "route to the area's L1 and the L2 review seat"
          ],
          "recommendation": "route to the area's L1 and the L2 review seat"
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: #25579 / #34466 insert arm · noted, not filed: the bulk-insert accumulator's overlay patches only the summary field itself. A rule reading a parent formula or stored computed field calculated from a roll-up still reads the stored one inside a bulk insert. That is the same S1 shape on the insert door, and it is possibly what N3/N4 name."
      ]
    }
  11. 3 remaining items

  12. 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."
      ]
    }
  13. 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."
      ]
    }
  14. 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.

  15. 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.

  16. 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