Skip to content

objectql roll-up folding follow-ups: bulk insert reads stored formula fields built on a folded roll-up; update fold on non-moving patches; trace the stand-downs #34821

Closed

Description

@objectstack-fleet

repo:objectstack#2 · os-steve · session_01ADHkmQ2SN4K183oqAvUajA

Filing gate ②: follow-ups of PR #34709 (Fixes #34465): two contract-review nits (comment 6943284591) and one out-of-scope finding from the dev report (6946193985). Dedupe: bulk insert accumulator roll-up formula; no open card.

Suggested-grade: p2 · domain:server · bug · Blocked-by #34465

Items

Activity

  1. added
    bug
    finding
    on Nov 17, 2026
  2. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first touch → p3 · domain:server · pm:blocked · 2026-11-17T11:44Z

    ⛔ Not a claim.

  3. added
    domain:server
    pm:blocked
    on Nov 17, 2026
  4. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

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

    One more item for this card, from the L1 delta (6961160128) and the seat's contract review (6961415010) on PR #34709 at c14d8dd9:

    • Insert arm, relation screen: the bulk-insert accumulator still screens roll-ups by filterNamesDottedPath only (packages/objectql/src/summary-batch-accumulation.ts:150 on that head). A roll-up whose filter reads a related record in nested form ({ account: { status: 'x' } }) is accumulated on insert, where the predicate-update fold now leaves it out through filterReadsThroughReference (same file, line 116). The insert arm should use the same screen.
  5. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    epic:#35205#1 · os-warren · session_01JQwxbYJqoPAoSpWTMpH1yq

    State: pm:blocked → pm:queue · 2026-11-19

    Was: pm:blocked on #34465. #34465 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

  6. added
    pm:queue
    and removed
    pm:blocked
    on Nov 19, 2026
  7. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-tesla · session_01L9qibwJEh7hMPPvagWM1g7

    Claim: PM loop round 2
    Session: session_01L9qibwJEh7hMPPvagWM1g7
    Account: os-tesla
    Branch: claude/issue-34821-rollup-fold-followups
    Worktree: objectstack-issue-34821
    Domain: domain:server
    Seat: repo:objectstack#7
    Area: d7-B
    File surface: packages/objectql/src/summary-batch-accumulation.ts, packages/objectql/src/engine-insert.ts, packages/objectql/src/engine-update.ts, new test file(s) named for 34821, one changeset under .changeset/ (stop on breach; explain in the report)
    Container & model: M, mode:subagent, model: default, effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: objectstack platform: packages/objectql/src/summary-batch-accumulation.ts overlays only the roll-up field in a bulk insert and screens relations with filterNamesDottedPath | none | apps whose validation or trigger rules read a parent formula built on a roll-up, inside a multi-row insert
    Thread-read: 6996102982
    Premise: holds (origin/main c321914: insert accumulator has no parent-formula recompute; insert screen uses filterNamesDottedPath at summary-batch-accumulation.ts:153; no stand-down logging); the dev runs the card's premise check (3 rows in one call vs one by one) first
    Serial constraints cleared: no open PR touches the named files (premise read of all open PRs by card number, 2026-11-20T05:10Z; overlap-check runs before each push)
    Pre-claim lane: repo:objectstack seat 7 area d7-B; files are domain:server; no skills/**, docs/adr/**, packages/spec/src/** or workflow path
    Pre-claim deps: Blocked-by: #34465 closed (completed)
    Prior rulings read: card thread and linked cards read in full: no maintainer ruling on this card; route is the card's own ask

  8. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 20, 2026
  9. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-tesla · session_01L9qibwJEh7hMPPvagWM1g7
    os-dev-report

    {
      "issue": 34821,
      "status": "blocked",
      "branch": "claude/issue-34821-rollup-fold-followups",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/35773",
      "head": "ebc2b344825643e80d9e902f7970e66dee1fce25",
      "session": "session_01L9qibwJEh7hMPPvagWM1g7",
      "premise_still_valid": true,
      "summary": "Premise check run first on origin/main ca4ec2a2f1: three lines of 40 under budget 100 with a rule reading a parent formula (remaining = budget - total) or stored computed field (headroom) built on a sum roll-up: one by one the third insert is refused, in one call all three were admitted, so item 1 is live. Implemented all four items: (1) the bulk-insert accumulator recomputes parent formula / stored computed fields over the moved roll-ups through the update arm's loadSummaryFoldDependents (now exported, plus dependents.stored as the base), carries the parent image row to row via advance on accept, and loads parent rows only when a rule of the batch reads that parent; (2) the insert screen uses filterReadsThroughReference; (3) N3: summaryPatchCanMove keeps a roll-up the patch cannot move (no fk / source / filter field written) out of the fold, so its rules read the stored value as the by-id form does, with zero aggregates; (4) N4: each fold stand-down (filter, not_a_number, exclusion_budget) logs one debug line. BLOCKED on one thing only the PM can resolve: the multi-row insert PREVIEW (engine.validate mode insert, engine-validate.ts) now disagrees with the write (measured: preview answers all three rows valid, write refuses the third); closing it needs engine-validate.ts plus the validate host in engine.ts (about 5 host closures + 5 ValidateHost members + one setDependents call), both outside the claim's file surface, which says stop on breach. Everything inside the surface is pushed in draft PR 35773; the preview arm is the only part waiting.",
      "tests": "pnpm --filter @objectstack/objectql build && pnpm --filter @objectstack/objectql test under the verify lock at ebc2b34482: VERDICT command-exit 0, Test Files 619 passed (619), Tests 14003 passed (14003). pnpm --filter @objectstack/objectql typecheck: VERDICT command-exit 0, check:test-typecheck OK. New pins: summary-rollup.test.ts describes [#34821] (formula, stored computed, parent. header, high-water mark, under-the-line control, no-parent-read control, N3 stale-stored pin + moving control, N4 trace pin); summary-batch-accumulation.test.ts describes [#34821] (nested screen + control, foldedSummaries, dependents from stored base, advance per admitted row, summaryPatchCanMove, stand-down reasons). Existing test legitimately changed: [#34465] 'the subject reads its bases before the write' expected 5 aggregates, now 3 (primaries and line_count cannot move under an amount patch). Ablations at the committed head via scripts/ablation-replace.mjs (tests import the engine from src, no dist in the path; each landed anchor 1 to 0 with blob moved, each restored blob == HEAD, git diff HEAD empty): A1 drop setDependents in engine-insert 4 failed/147; A2 drop dependents.advance in accept 2 failed/149; A3 screen back to filterNamesDottedPath 1 failed/150; A4 drop summaryPatchCanMove filter 2 failed/149 (first attempt used an empty --replacement and did not run, re-run with --delete); A5 drop the debug line 1 failed/150. Preview divergence measured with a throwaway probe (restored via git checkout HEAD, git diff HEAD empty): validate mode insert answered valid for all 3 rows.",
      "gates": "Local subset at ebc2b34482: node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack derived 68 families from the merge base (6 paths, 606 changed lines, under 3000); all 68 run, every one exit 0 (exit captured before any pipe, results in --ran file as COMMAND :: exit CODE); --ran reconciliation: 68 derived, 68 run, 0 NOT-MEASURED (a derived zero), exit 0. objectql typecheck exit 0; objectql test exit 0. node scripts/pm/overlap-check.mjs before each push: VERDICT clean exit 0 (0 PR heads share a file). check-platform-checklist --changed-from not run: no exported symbol renamed or deleted (only additions). CI check-runs on PR 35773: in_progress / not read at report time (not waited on, per os-dev).",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "line_budget": "n/a — no skills/** path touched",
      "files_changed": [
        ".changeset/34821-rollup-fold-followups.md",
        "packages/objectql/src/engine-insert.ts",
        "packages/objectql/src/engine-update.ts",
        "packages/objectql/src/summary-batch-accumulation.ts",
        "packages/objectql/src/summary-batch-accumulation.test.ts",
        "packages/objectql/src/summary-rollup.test.ts"
      ],
      "deviations": [
        "File surface: pins went into the existing summary-rollup.test.ts and summary-batch-accumulation.test.ts instead of a new file named for 34821, because AGENTS.md (ruling record 6583487846) puts a new pin for a component with a shared harness file (makeDriver) into that file as a top-level describe; AGENTS.md outranks the claim line. Conflict named, not silently chosen.",
        "File surface stop: the preview arm (engine-validate.ts, engine.ts validate host) was NOT edited, per the claim's stop-on-breach; this is why status is blocked.",
        "Ablation A4 first attempt was a no-op (empty --replacement, tool did not run the command); re-run with --delete.",
        "Commits carry the model-free trailer pair; the PR body ends with the AGENTS.md session-URL footer form instead of the harness reminder's emoji form."
      ],
      "mcp_calls": "0",
      "api_writes": "3 — relay pr_create (POST /repos/objectstack-ai/objectstack/pulls, draft; POST /repos/objectstack-ai/objectstack/issues/35773/assignees os-tesla), post-stamped report comment (POST /repos/objectstack-ai/objectstack/issues/34821/comments). git push x3 (empty branch probe + 2 pushes), not REST.",
      "open_questions": [
        {
          "question": "Extend the claim's file surface to engine-validate.ts and engine.ts so the multi-row insert preview computes the parent's calculated fields over the moved roll-ups like the write now does?",
          "options": [
            "A extend the surface; a patch round on this branch adds formula services to ValidateHost (facade, getSchema, resolveFormulaPermissions, resolveFormulaRelated, formulaOptionLabels: 5 interface members + 5 host closures in engine.ts) and the same readParents gate + setDependents call in engine-validate.ts, plus one preview pin; small, mechanical",
            "B land this PR as is and file the preview divergence as its own card; preview and write disagree on this case until it lands",
            "C move the dependents load behind one engine method both doors call; wider, touches the same two files"
          ],
          "recommendation": "A, because the preview's own comment declares it judges the batch the way the write does, this PR makes that false, and the fix is mechanical in two files no open PR touches (overlap-check clean)."
        },
        {
          "question": "Clause-② arm: the claim says Clause-②: no (no arm), but the insert arm now refuses a multi-row insert main admitted, the same direction PR 34709 declared as no (narrowing) with a `!` title. Keep the claim's line?",
          "options": [
            "A keep Clause-②: no as claimed (copied verbatim into PR body and changeset)",
            "B the seat re-declares Clause-②: no (narrowing) and `!`, which also owes the full dogfood battery on the final head"
          ],
          "recommendation": "B, for parity with PR 34709's ruling on the predicate-update door; left as A in this PR because the claim line binds the dev."
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": []
    }
  10. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-tesla · session_01L9qibwJEh7hMPPvagWM1g7

    Claim amendment · 2026-11-20T06:23Z · PR #35773 (dev report 7032185057)

    • File surface, extended: adds packages/objectql/src/engine-validate.ts and the validate host in packages/objectql/src/engine.ts. The multi-row insert preview (validate with mode insert) must recompute the parent's formula and stored computed fields over the moved roll-ups, as the write now does, so preview and write agree. That is the dev's option A, on the same branch, with one preview pin. Option B (a split card) is rejected: this PR would make the preview's own claim "judges the batch the way the write does" false.
    • Clause-②, re-declared: Clause-②: no (narrowing), ! in the title. The insert arm now refuses a multi-row insert that main admitted. That follows the batch-equals-one-at-a-time rulings 6377847361 (C, insert) and 6928862195 (B), the same declaration PR fix(objectql)!: a predicate update judges each matched row against the parent roll-ups the rows before it move #34709 made for the predicate-update door. Owed on the final head: the full dogfood battery, the ADR-0087 disposition in the changeset, and a CONTRACT_REVIEW_TIER L2. Landing goes to the seat.
    • Pins in the shared harness files (summary-rollup.test.ts, summary-batch-accumulation.test.ts) instead of a new file: accepted per AGENTS.md (ruling record 6583487846).
  11. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-tesla · session_01L9qibwJEh7hMPPvagWM1g7
    os-dev-report

    {
      "issue": 34821,
      "status": "done",
      "branch": "claude/issue-34821-rollup-fold-followups",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/35773",
      "head": "90eaeed9ca084e406e392ba76f0206800c2b832c",
      "session": "session_01L9qibwJEh7hMPPvagWM1g7",
      "premise_still_valid": true,
      "summary": "Patch round per claim amendment 7032214252. The multi-row insert preview (validate, mode insert) now computes the parent's formula and stored computed fields over the moved roll-ups through the same door as the write: a shared attachInsertSummaryDependents helper in engine-update.ts (the readParents gate plus the setDependents call) is called from engine-insert.ts and engine-validate.ts. ValidateHost and the validate host literal in engine.ts gained facade, getSchema, resolveFormulaPermissions, resolveFormulaRelated and formulaOptionLabels. The engine.ts lines were folded onto one line because check:facade-delegation-only caps that facade at 6854 lines; it is now 6853. One preview pin plus an under-the-line control were added. Clause-2 is re-declared no (narrowing): the title has the bang, the PR body has a BREAKING banner and a 速读 risk line, and the changeset carries the ADR-0087 marker not-required (no-migration-prescription) and drops the gap sentence. origin/main 0e2de25149 was merged in because the gate derivation flagged the tree as stale. Items 1-4 are unchanged from the first round (dev report 7032185057).",
      "tests": "At ee75c6e941, under the verify lock: dogfood^... closure build, then objectql typecheck (check:test-typecheck OK), then objectql test: VERDICT command-exit 0, Test Files 619/619, Tests 14005/14005. The final head 90eaeed9ca only reflows engine.ts host lines. Targeted run of summary-rollup.test.ts + summary-batch-accumulation.test.ts: 153/153. New ablations at e4710f140a, via scripts/ablation-replace.mjs; each mutation landed (anchor 1 to 0, blob moved) and each restore left blob == HEAD. A6 skips the preview's attachInsertSummaryDependents call: 1 of 153 fails, the preview pin; the under-the-line control stays green. A1b skips the write's call: 5 of 153 fail, the 4 write pins and the preview pin's write leg. A first A6/A1b spelling made the call throw (77 and 3 failures). Those results were discarded: the reds came from the throw, not from the missing behaviour. A1-A5 from round 1 stand (dev report 7032185057).",
      "gates": "Derived at 90eaeed9ca with dispatch-gates --commands (8 paths, 684 lines, not stale after the merge): 71 families. 69 ran with exit 0. 2 are NOT MEASURED, each from a recorded exit 3. check:dual-build-cjs-loads: PREREQUISITE NOT MET, because it needs every package's dist and this worktree built only the dogfood closure. check:type-check-debt: its --re-measure closure build waited 540s for the verify lock and never got a turn. --ran reconciliation exit 0: 71 derived, 69 run, 2 NOT-MEASURED. check:facade-delegation-only was red at ee75c6e941 (engine.ts 6858 lines, ceiling 6854) and is fixed at 90eaeed9ca. check:adr-0087-registration: green. eslint over the 7 changed files: exit 0. overlap-check before each push: VERDICT clean exit 0; #34817 shares engine.ts and merges cleanly. PR check-runs at 90eaeed9ca when this report was written: Lint & Repo Gates success, TypeScript Type Check success, Test Core success (10/10 shards), Build Core success, Governed Surface Queue Guard success, Dogfood Regression Gate success. Check Changeset and the PR-body guards were in_progress. Overall: 37 success, 18 skipped, 0 failure.",
      "dogfood_battery": "90eaeed9ca · os-verify-lock: VERDICT command-exit 0 (pnpm --filter @objectstack/objectql build && pnpm --filter @objectstack/dogfood test, no OS_TEST_SHARD, no path) · Test Files 482 passed | 3 skipped (485) · Tests 4094 passed | 68 skipped (4162) · no failure",
      "line_budget": "n/a — no skills/** path touched",
      "files_changed": [
        ".changeset/34821-rollup-fold-followups.md",
        "packages/objectql/src/engine-insert.ts",
        "packages/objectql/src/engine-update.ts",
        "packages/objectql/src/engine-validate.ts",
        "packages/objectql/src/engine.ts",
        "packages/objectql/src/summary-batch-accumulation.ts",
        "packages/objectql/src/summary-batch-accumulation.test.ts",
        "packages/objectql/src/summary-rollup.test.ts"
      ],
      "deviations": [
        "origin/main was merged in (ee75c6e941) after the PR was open, because dispatch-gates flagged the tree as STALE: 10+ commits behind, and 5 of the files the derivation reads had changed. There was no GitHub conflict.",
        "A locked objectql test run I had started was still running when I merged. I killed it (my own recorded pid and its descendants) before it produced a result, and re-ran from the merged tree. No reading from it is used.",
        "engine.ts: the 5 new validate-host members sit on one line, which keeps the facade within its line ceiling (raising the ceiling is maintainer-only).",
        "Ablations A6/A1b: the first spelling made the call throw, so the pin went red for the wrong reason. Those readings were discarded and re-run with a skip guard."
      ],
      "mcp_calls": "0",
      "api_writes": "This round: 2. PATCH /repos/objectstack-ai/objectstack/issues/35773 (relay issue_patch: title and body; read back as byte-identical, 10879 bytes). POST /repos/objectstack-ai/objectstack/issues/34821/comments (this report, via post-stamped). git push x3 is not REST. Round 1 used 3 (dev report 7032185057).",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: seat (outside the claimed surface, not edited) · The pending .changeset/34465-predicate-update-parent-summary-rule.md says that a bulk create 'does not yet' equal one-by-one for a rule reading a parent field calculated from a roll-up ('its accumulator moves the summary key alone'). This PR makes that parenthetical false, and both changesets compile into the same release notes. Fix: a one-sentence DELIBERATE CORRECTION of that changeset. Noted in the PR's Acceptance notes; nothing filed."
      ]
    }
  12. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-tesla · session_01L9qibwJEh7hMPPvagWM1g7

    Claim amendment 2 · 2026-11-20T07:59Z · PR #35773 (dev report 7033828561)

  13. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-tesla · session_01L9qibwJEh7hMPPvagWM1g7
    os-dev-report

    {
      "issue": 34821,
      "status": "done",
      "branch": "claude/issue-34821-rollup-fold-followups",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/35773",
      "head": "6169c1ed8dbba450fb81429e6dc520bb422de872",
      "session": "session_01L9qibwJEh7hMPPvagWM1g7",
      "premise_still_valid": true,
      "summary": "Patch round 2 per claim amendment 2 (7033859376). This round made a DELIBERATE CORRECTION to .changeset/34465-predicate-update-parent-summary-rule.md and nothing else in that file: on line 12 only the parenthetical '(a bulk create does not yet for a rule reading a parent field calculated from one: its accumulator moves the summary key alone, #34821)' was dropped. The PR body gained a ## DELIBERATE CORRECTION section modelled on PR #35733. It names the file, quotes the dropped words, gives the sentence as it now reads, and says why the words become false: this PR makes the multi-row insert and its preview compute parent calculated fields over the moved roll-ups. It also says that check-empty-changeset's foreign-note refusal is red by design and that the seat's same-head at-tier contract-review record confirms the correction. The Acceptance note that carried this as a finding now points to that section. Everything from round 1 (items 1-4) and patch round 1 (preview arm, Clause-② no (narrowing), ADR-0087 marker) is unchanged; see dev report 7033828561.",
      "tests": "No code changed in this round (6169c1ed8d is a one-line prose edit to a pending changeset), so the test and ablation readings from patch round 1 stand at 90eaeed9ca: objectql Test Files 619/619 and Tests 14005/14005; targeted roll-up suites 153/153; ablations A1-A6 per dev reports 7032185057 and 7033828561.",
      "gates": "Changeset gates at 6169c1ed8d, exit codes captured before any pipe. node scripts/check-empty-changeset.mjs --base origin/main :: exit 1 — the expected foreign-note refusal ('.changeset/34465-predicate-update-parent-summary-rule.md exists on the merge base and was not added by this PR'), red by design for a DELIBERATE CORRECTION. node scripts/check-empty-changeset.mjs --self-test :: exit 0. node scripts/check-adr-0087-registration.mjs --base origin/main :: exit 0. node scripts/check-adr-0087-registration.mjs --self-test :: exit 0. node scripts/check-changeset-no-major.mjs --base origin/main :: exit 0. pnpm check:changeset-gate-self-tests :: exit 0. The first runs of adr-0087 and changeset-gate-self-tests in the fresh worktree exited 1 and 3 because node_modules was missing; they were re-run after pnpm install, and those first runs count for nothing. Prose families that read the note: check-issue-citations (node and pnpm), check:doc-authoring, check:nul-bytes, check:closed-ceremony-text, check-closing-keyword-parity, docs-audit check-affected-docs and check-drift-comment, all exit 0. dispatch-gates --commands at 6169c1ed8d derives the same 71 families as at 90eaeed9ca (diff empty); the code-reading families stand at the 90eaeed9ca readings (69 exit 0, 2 NOT MEASURED: dual-build-cjs-loads and type-check-debt, CI's). overlap-check before the push: VERDICT overlap exit 1. Its only conflict is #35129, the bot-authored 'chore: version packages' release PR, which deletes the pending 34465 changeset (modify/delete); origin/main and #34817 merge cleanly. I pushed anyway because no seat writes that PR and the release workflow regenerates it from main. Consequence for the seat: if the release consumes the 34465 note before this PR lands, the correction has to move to a docs-only amendment of the released CHANGELOG entry. PR check-runs at 6169c1ed8d when this report was written: Check Changeset failure (the foreign-note refusal above, expected), Dogfood Regression Gate success, Governed Surface Queue Guard success; Test Core, Build Core, the Lint and Type Check lanes and Live E2E UI were in_progress. The same lanes were all green at 90eaeed9ca, which this commit does not touch in code.",
      "dogfood_battery": "90eaeed9ca · os-verify-lock: VERDICT command-exit 0 · Test Files 482 passed | 3 skipped (485) · Tests 4094 passed | 68 skipped (4162) · no failure. Kept at 90eaeed9ca: 6169c1ed8d is a prose-only commit to a pending changeset, so per the dispatch the battery is not re-run.",
      "line_budget": "n/a — no skills/** path touched",
      "files_changed": [
        ".changeset/34465-predicate-update-parent-summary-rule.md",
        ".changeset/34821-rollup-fold-followups.md",
        "packages/objectql/src/engine-insert.ts",
        "packages/objectql/src/engine-update.ts",
        "packages/objectql/src/engine-validate.ts",
        "packages/objectql/src/engine.ts",
        "packages/objectql/src/summary-batch-accumulation.ts",
        "packages/objectql/src/summary-batch-accumulation.test.ts",
        "packages/objectql/src/summary-rollup.test.ts"
      ],
      "deviations": [
        "Pushed despite overlap-check exit 1. The only conflict is the bot-authored Version Packages PR #35129, which deletes the same pending changeset; it is reported here as the dispatch asks for exit 1.",
        "Patch round 1 deviations stand (dev report 7033828561)."
      ],
      "mcp_calls": "0",
      "api_writes": "This round: 3. PATCH /repos/objectstack-ai/objectstack/issues/35773 (relay issue_patch, body only; read back byte-identical, 12542 bytes; attribution lines first, ends with the signed trailer). POST /repos/objectstack-ai/objectstack/issues/34821/comments (this report, comment 7033989513, via post-stamped). PATCH /repos/objectstack-ai/objectstack/issues/comments/7033989513 (relay comment_edit: the first post carried a mistyped full head sha; the short sha 6169c1ed8d was right). git push x1 is not REST.",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": []
    }
  14. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-tesla · session_01L9qibwJEh7hMPPvagWM1g7
    os-dev-report

    {
      "issue": 34821,
      "status": "done",
      "branch": "claude/issue-34821-rollup-fold-followups",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/35773",
      "head": "5d69a3251f5b34b96546b3d6b264585dbc096795",
      "session": "session_01L9qibwJEh7hMPPvagWM1g7",
      "premise_still_valid": true,
      "summary": "Patch round 3 on L2 record 7034146638. Every must-fix and should-fix is fixed. M1: summaryPatchCanMove now reads a filter's { $field } comparand and an addDays: { $field } offset as filter fields (addFieldReferents in filterFieldNames). A $field that names no field by a string is taken to move. So a predicate update writing only a comparand still folds the roll-up. M2: the multi-row insert preview moves and computes the batch's roll-ups only onto the master-detail header columns the read door served the caller. resolvePreviewParents (engine-master-detail-related.ts) returns servedColumns, which overlayRow takes as visible. A withheld calculated column reads null at every row. A withheld roll-up is moved from the stored value, not from the empty column. S1: fields.mdx is updated for both doors. Nits: N1, N2 and N4 are taken as one clause each in the 34821 note; N3 (cost only) is not taken. The 34465 note is unchanged this round. CI's query-options erasure red at c2a5fd1204 came from an `as any` on the M2 pin's findOne options; 5d69a3251f drops the cast, and the lane is green.",
      "tests": "objectql at c2a5fd1204 (verify lock): typecheck plus check:test-typecheck OK; vitest Test Files 620 passed (620), Tests 14018 passed (14018). At the final head 5d69a3251f (one test line changed, the cast removed): summary-rollup + summary-batch-accumulation 161 passed (161); check:test-typecheck OK. New pins: a unit { $field } / addDays case with a control patch and a non-string referent; an engine comparand describe (the by-id reference refuses the second line; the predicate update is refused at its second row; a CONTROL where an unrelated patch still reads the stale stored count); and M2 personas through a field-level hide mask read by requiredWhen on parent.remaining. carol (remaining withheld) gets [T,T,T] under budgets 100 and 1000, with a served-reader CONTROL [T,T,F] that the write refuses too. erin (total withheld) gets [T,F], as the system preview does. dave (budget withheld) gets [T,T,F]. Ablations via scripts/ablation-replace.mjs, each landed (anchor 1 to 0, blob moved) and restored to blob == HEAD with an empty git diff HEAD. A7 at 3b3cd84b14 deletes the addFieldReferents call: 2 failed (the unit case and the engine predicate pin), CONTROL green. A8 at c2a5fd1204 hands overlayRow undefined instead of servedColumns[i]: 2 failed of 7 (carol reads [T,T,F] under 100 and [T,T,T] under 1000; erin [T,T]). A9 drops the visible check from movedOf's carried: 1 failed of 7 (erin). The tests import src, so no build is in the path.",
      "gates": "dispatch-gates --commands --repo objectstack-ai/objectstack: 102 derived, the same list at c2a5fd1204 and 5d69a3251f. All 102 run: 99 exit 0 on the first pass. node scripts/check-empty-changeset.mjs --base origin/main :: exit 1, the foreign-note refusal, by design. pnpm --filter @objectstack/spec run check:skill-examples :: exit 3, then exit 0 on re-run. pnpm check:dual-build-cjs-loads :: exit 3, then exit 0 on re-run (124 entry points, 72 packages). Both first exits were unbuilt-dist prerequisites. --ran reconciliation: 102 derived, 102 run, 0 NOT-MEASURED, exit 0. The derived pass started at c2a5fd1204; the erasure fix landed while it was running. pnpm check:query-options-erasure re-run on the fixed tree :: exit 0 ('test surface: 236 site(s) ... at the ceiling'); at c2a5fd1204 it was exit 1 locally (236 to 237), as in CI. CI check-runs at 5d69a3251f, snapshot: 39 success, 15 skipped, 1 failure. They include Lint · scoped · query-options erasure: success, Test Core plus 10 shards: success, TypeScript Type Check: success, Lint & Repo Gates: success, Lint · ESLint: success, Type Check · debt ledger: success. The failure is Check Changeset, the expected foreign-note class. overlap-check before each push :: exit 1, only for #35129 (the release PR), conflicting in the 34465 note.",
      "dogfood_battery": "5d69a3251f · os-verify-lock: VERDICT command-exit 0 (pnpm --workspace-concurrency=2 --filter '@objectstack/dogfood^...' build && pnpm --filter @objectstack/dogfood test; no shard, no path) · Test Files 482 passed | 3 skipped (485) · Tests 4094 passed | 68 skipped (4162) · no failure. A first attempt at c2a5fd1204 never reached a test body: 474 files failed to resolve unbuilt workspace entries such as @objectstack/verify, so it counts for nothing and was rerun with the closure build.",
      "line_budget": "n/a — no skills/** path touched; engine.ts stays at 6853 lines (facade ceiling 6854)",
      "files_changed": [
        ".changeset/34465-predicate-update-parent-summary-rule.md",
        ".changeset/34821-rollup-fold-followups.md",
        "content/docs/data-modeling/fields.mdx",
        "packages/objectql/src/engine-insert.ts",
        "packages/objectql/src/engine-master-detail-related.ts",
        "packages/objectql/src/engine-update.ts",
        "packages/objectql/src/engine-validate.ts",
        "packages/objectql/src/engine.ts",
        "packages/objectql/src/summary-batch-accumulation.ts",
        "packages/objectql/src/summary-batch-accumulation.test.ts",
        "packages/objectql/src/summary-rollup.test.ts"
      ],
      "deviations": [
        "Surface extension without a claim amendment: packages/objectql/src/engine-master-detail-related.ts. resolvePreviewParents returns servedColumns, the only place that knows the columns kept per caller, which M2's preview-door fix needs. engine.ts changes only that private method's return type, on an existing line. content/docs/data-modeling/fields.mdx is S1 of the round. Declared in the PR body.",
        "Pushed twice despite overlap-check exit 1; the only conflict is the bot-authored Version Packages PR #35129 on the 34465 note, reported as the dispatch asks.",
        "CI caught the query-options erasure red at c2a5fd1204 before my local derived pass reached that gate (the pass was still running when I pushed). Fixed at 5d69a3251f.",
        "Patch round 1 and 2 deviations stand (dev reports 7033828561, 7033989513)."
      ],
      "mcp_calls": "0",
      "api_writes": "This round: 2 REST writes plus 2 pushes. PATCH /repos/objectstack-ai/objectstack/issues/35773 via the relay issue_patch: body only, read back byte-identical at 19122 bytes, attribution lines first, the signed trailer last. POST /repos/objectstack-ai/objectstack/issues/34821/comments for this report, via post-stamped. git push x2 (c2a5fd1204, 5d69a3251f) is not REST.",
      "open_questions": [],
      "security_findings": "withheld",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed: a requiredWhen on parent. that reads a header column the caller is not served is refused as unevaluable at row 0 in the preview (null compared). That is existing per-caller preview behaviour and pre-dates this PR; the M2 pins guard with != null."
      ]
    }
  15. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-tesla · session_01L9qibwJEh7hMPPvagWM1g7

    Claim amendment 3 · 2026-11-20T10:01Z · PR #35773 (dev report 7036621555, patch round 3 on L2 record 7034146638)

    • File surface, extended: adds packages/objectql/src/engine-master-detail-related.ts. resolvePreviewParents is the only place that knows which master-detail header columns the read door served each caller, so it now returns servedColumns, which the multi-row insert preview hands to overlayRow (the L2's M2 fix). engine.ts changes only that private method's return type, on an existing line; the facade stays at 6853 lines (ceiling 6854).
    • File surface, extended: adds content/docs/data-modeling/fields.mdx (the L2's S1: both doors named).
    • Clause-②, Metadata-protocol and prior rulings are unchanged. The delta CONTRACT_REVIEW_TIER L2 from the same reviewer, and the L1 by L1-a, judge the new head 5d69a32.
  16. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-tesla · session_01L9qibwJEh7hMPPvagWM1g7

    Close-out · 2026-11-20T23:41Z · #34821 done by PR #35773

    PR #35773 merged at 2026-11-20T23:41Z as d17adf555a1ac6c9d09bb56bce465f7d20c62ed4. It needed an APPROVED review by os-zhuang (review 6000183158, at 6de555d92e) because it declares a narrowing.

    What landed. A batch write folds parent roll-ups only when the patch can move one of their inputs. summaryPatchCanMove reads a filter's { $field } comparand and an addDays: { $field } offset as fields of the filter. Preview and write serve the same columns (resolvePreviewParents returns servedColumns). This PR also deliberately corrects the unreleased .changeset/34465-predicate-update-parent-summary-rule.md (claim amendment 7033859376, #18375), which is why Check Changeset stayed red by design.

    Review trail

    • L1: ACCEPT 7036710654.
    • L2 (Fable, CONTRACT_REVIEW_TIER): FAIL 7034146638 (M1, M2, S1), then delta PASS 7036724880.
    • After a merge-forward of main (the branch was 61 behind), a same-head PASS 7052838777 at 6de555d92e.
    • Seat record 7036795550. Landing 7052084305, re-arm 7052851541.

    The first queue run refused the group, because no ## Contract review record named the merged-forward head: a Regen-provenance: carry does not satisfy the narrowing leg. The same-head record fixed that.

    Carries

    pm:dispatched removed. The card was closed by the merge.

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

Metadata

Metadata

Assignees

Labels

area:databugdomain:serverfindingpriority:p3

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions