You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
server: a summary roll-up that arrives with a restart keeps reading null on stored rows with no announcement (follow-up of #34096) #34283
Filing gate ③: area-directed (area S2 of seat domain:server#5). This is open question 1 of os-dev report 6906716209 on #34096 (PR #34282), ruled A there with this card as the follow-up.
A summary roll-up that an install door adds in a running process is materialised for the rows already stored (materialiseAddedSummaries at the end of syncSchemas). A roll-up that arrives with a restart is not:
a code-defined app's new version, which boots with the new field;
a marketplace install whose hot register failed and loaded at the next restart;
a ledger entry rehydrated at kernel:ready.
ObjectQLPlugin seals the roll-ups served at kernel:bootstrapped as already computed, so those rows keep reading null until a child row is written, and nothing tells the operator. os migrate summary-nulls is the documented backfill for that path.
Ask
At kernel:bootstrapped, announce NULL count / sum roll-up holes with a bounded sample read per object, the way announceStoredExpressionHoles does for stored expressions. Write nothing. Name the os migrate summary-nulls line that fills them. Measure the sample's boot cost on a showcase boot, and pin both cases: a hole is announced once, and a computed column announces nothing.
Not asked: persisting the computed set to walk it at boot (option B in the report). That adds a stored contract and a boot-time write, so it needs its own ruling.
Prior rulings read: area ruling on #34096 open question 1 (A, with this card as the follow-up).
Reader: domain:server (objectql summaries). Size S.
Claim: PM loop round 4 · area data-1 (the maintainer, verbatim, 2026-11-19T04:35Z project chat: 「再开 area:data」; standing 「暂时都只派 p1 p2 的卡」) · 2026-11-19T07:34Z
Area: data-1
Session: session_01Utp6Ca1jJvsA1dHsPwMiQb
Account: os-bill
Branch: claude/issue-34283-announce-summary-holes
Worktree: objectstack-issue-34283 (os-dev worktree in the data-1 container)
Domain: domain:server
Seat: repo:objectstack#5
File surface: packages/objectql/src/plugin.ts (the kernel:bootstrapped hook, ~:1368-1373, beside the stored-expression hole announcement), and if the read needs a home, one new module in packages/objectql/src/ named for the summary-hole announcement; new test file(s) named for this card; root .changeset/. ⛔ No write at boot; ⛔ no persisted computed set (option B of report 6906716209 needs its own ruling). Stop on breach and report.
Container & model: S, mode:subagent, model: default — no path-derived mandate, effort: medium
Clause-②: no (an operator log line; no write, no contract)
Metadata-protocol: none
Responsibility: platform — a summary roll-up that arrives with a restart (new code-defined app version, a marketplace install loaded at the next boot, a ledger entry rehydrated at kernel:ready) is sealed as computed at kernel:bootstrapped, so stored rows keep reading null until a child row is written, and nothing tells the operator that os migrate summary-nulls fills them.
Thread-read: 6984314168
Premise: holds — on origin/main35c63310: materialiseAddedSummaries (engine.ts ~:4143) runs only for in-process installs (engine-compatibility-api.ts:197); announceStoredExpressionHoles (packages/objectql/src/plugin.ts, exported from index.ts) is the precedent shape; no summary-hole announcement exists. The dev measures the boot cost on a showcase boot as the card asks.
Serial constraints cleared: none — overlap-check.mjs on a probe branch touching plugin.ts: base merges cleanly, 0 open PR heads share it.
Pre-claim lane: domain:server (packages/objectql/**)
Pre-claim deps: PR #34282 merged; no Blocked-by.
Prior rulings read: area ruling A on #34096 open question 1 (this card is the follow-up; option B excluded); check-prior-rulings 194 hits — ADR-0055 §3, ADR-0155 D1, ADR-0079 D3, ADR-0093 D7, ADR-0131 D7, ADR-0139 D4, ADR-0144 D5/D6 (term noise, none on point); thread: none
{
"issue": 34283,
"status": "done",
"branch": "claude/issue-34283-announce-summary-holes",
"pr": "https://github.com/objectstack-ai/objectstack/pull/35435",
"head": "e2e5e5c856",
"session": "session_01Utp6Ca1jJvsA1dHsPwMiQb",
"premise_still_valid": true,
"summary": "New packages/objectql/src/summary-hole-announce.ts: at kernel:bootstrapped (plugin.ts, right after announceStoredExpressionHoles, so after sealSummariesMaterialisedAtBoot) the plugin reads the first ADVISORY_SAMPLE_SIZE (100) rows of each object owning a count/sum roll-up (id plus the roll-up columns, system context, one read per such object) and logs ONE warn per boot naming each object.field (fn, N of the first M rows) and the two command lines `os migrate summary-nulls --object OBJECT` (dry run) and `os migrate summary-nulls --apply --object OBJECT`. It writes nothing, skips an unreadable object at debug, never fails the boot, and logs its cost at debug. min/max/avg are not announced (summaryNullIsBackfillable, the backfill's own predicate). One warn per boot follows the stored-expression precedent (A1) rather than the optional route's one-per-object; each object gets its own --object flag in the one line.",
"A1": "holds at 35c63310: announceStoredExpressionHoles is called inside the kernel:bootstrapped hook (plugin.ts hook opens ~:1373, call ~:1419), exported from index.ts; bound = ADVISORY_SAMPLE_SIZE 100 rows per object declaring the field, first page by id asc, system ctx; one warn per boot; debug on skip/failure. Mirrored: same constant (imported), same once-per-boot warn, same debug skip, no write.",
"A2": "holds: materialiseAddedSummaries is reached only through syncSchemas (engine-compatibility-api.ts:197, bound at engine.ts:5619); sealSummariesMaterialisedAtBoot runs in the same kernel:bootstrapped hook and records every served roll-up, so a roll-up arriving with a restart is never walked. The new pin boots a real ObjectKernel with the roll-ups registered before kernel:bootstrapped and observes zero driver writes and NULLs left in place.",
"A3": "count and sum only. summaryEmptySetValue gives 0 for count/sum and null for min/max/avg; a NULL min/max/avg is the legitimate empty-child reading and the default `os migrate summary-nulls` run skips it (summaryNullIsBackfillable). So a stored null/undefined in a count/sum column is always a hole and needs no aggregate read to judge; min/max/avg would need a per-row aggregate and only fill under --recompute-undefined-on-empty, so they are not announced. Pinned: a NULL max beside NULL count/sum is not named.",
"A4": "showcase boot (`objectstack dev --seed-admin --fresh --log-level debug`, worktree build of this branch, shared box): `[summary-holes] boot sample {objectsRead: 3, rowsRead: 21, ms: 3}` = 3 reads, 21 rows, 3 ms against a whole bootstrap of about 3.9 s (Bootstrap started to Bootstrap complete). No [summary-holes] warn on the fresh showcase (seeded parents hold computed values). A live hole on showcase: NOT MEASURED, reason: a fresh showcase holds none; the hole case is pinned on a real kernel boot in the test.",
"tests": "head e2e5e5c856: `pnpm --filter @objectstack/objectql typecheck` + `vitest run src/engine-34283-restart-summary-hole-announce.test.ts` under os-verify-lock: VERDICT command-exit 0, check:test-typecheck OK (39 files / 233 errors held, no new), Tests 3 passed (3). Full package at 2acb0feef3 (implementation identical to head; later commits only retype the test file): `pnpm --filter @objectstack/objectql typecheck && vitest run --project local --maxWorkers=2` VERDICT command-exit 0, Test Files 615 passed (615), Tests 13881 passed (13881). Ablations via scripts/ablation-replace.mjs (test imports ./plugin.js from src, no dist leg), each 'ok mutation landed: anchor 1 -> 0' and 'ok restored: blob == HEAD, git diff HEAD empty': (1) delete the announceSummaryHoles call in plugin.ts -> case 1 red 'expected [] to have a length of 1 but got +0' (run on 2acb0fe and again on head e2e5e5c856); (2) hole predicate `!= null` -> truthiness -> CONTROL computed-column red 'expected [ Array(1) ] to deeply equal []'; (3) drop the summaryNullIsBackfillable filter -> case 1 red 'not to contain largest_invoice' + CONTROL red. (2) and (3) ran on 2acb0fe; module and assertions unchanged since. test:repo not run locally (CI's Test Core).",
"gates": "local subset on head e2e5e5c856: `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` derived 72 families; all 72 run with exit codes captured before any pipe, 72 exit 0. Reconciliation `--ran`: exit 0, '72 derived, 72 run, 0 NOT-MEASURED, 0 UNRUN'. Earlier union reds fixed before head: check:objectql-double-limit (unused failFindOf hook in the driver double, removed), check:slot-lookup (any-typed getService in the test plugin, typed), check:dts-closure and check:dual-build-cjs-loads (exit 1 / exit 3 PREREQUISITE while the showcase closure build was running alongside; both 0 on head). overlap-check --branch=HEAD: VERDICT clean exit 0 (0 PR heads). CI on PR #35435 at e2e5e5c856: Lint & Repo Gates success, TypeScript Type Check success, Build Core success, Test Core shards 1-10 success (aggregate Test Core queued at read time = in_progress), Governed Surface Queue Guard success, Dogfood Regression Gate success, Live E2E UI success, Test UI success, Check Changeset success, Check PR Size success, PR-body guards success; UI lanes skipped by selector.",
"dogfood_battery": "n/a - no `!` in the PR title and no (narrowing) arm",
"line_budget": "n/a - no skills/** or ratcheted ledger touched; diff +370/-0 over 4 files (under the 3000 threshold)",
"files_changed": [
".changeset/34283-announce-summary-holes.md (+12, patch on @objectstack/objectql)",
"packages/objectql/src/summary-hole-announce.ts (+161, new module)",
"packages/objectql/src/plugin.ts (+8)",
"packages/objectql/src/engine-34283-restart-summary-hole-announce.test.ts (+189, new)"
],
"deviations": [
"PR body maintainer brief: four lines per the dispatch order / seat-practice section 1, not the six lines os-dev.md names; technical sections under an English section titled 席位核对.",
"The new function is not exported from packages/objectql/src/index.ts (the precedent is): index.ts is outside the declared file surface.",
"Commit trailers use the model-free pair (AGENTS.md, pre-push hook) instead of the harness reminder's model-named Co-Authored-By line; PR footer uses the AGENTS.md session-URL form.",
"Clause-② no and Metadata-protocol none, measured on the diff: matches the claim."
],
"mcp_calls": "0",
"api_writes": "2 - fleet-write relay pr_create (POST /repos/objectstack-ai/objectstack/pulls draft + POST issues/35435/assignees os-bill, one relay run 44492866998); post-stamped issue comment POST /repos/objectstack-ai/objectstack/issues/34283/comments (this report)",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": []
}
Close-out 2026-11-19T10:05Z: PR #35435 merged, and Fixes closed this card. Delivered: at kernel:bootstrapped, objectql samples the first 100 rows of each object that owns a count / sum roll-up (one read per object, system context, no writes). When a sampled row holds a NULL, it logs one warn per boot naming each object.field with its count, plus the os migrate summary-nulls dry-run and --apply commands. min / max / avg are excluded through the backfill's own predicate, and the boot never fails over this. Measured on showcase: 3 reads, 21 rows, 3 ms. Pinned on a real kernel boot with three ablations; L1-a ACCEPT 7005199654. No follow-up owed. pm:dispatched off.
Activity
objectstack-fleet commentedon Nov 18, 2026
repo:objectstack#1 · os-warren · session_01JQwxbabAdcWyApSTGBYJNY
Ruling-ref: maintainer 14:43Z 「立一张专题卡,开始执行」 and 15:56Z 「domain 和优先级 不是已经定了吗?为什么现在不能改卡」 · regrade v3 under epic #35205
Grade: p2 (was p3) · area:data · Bug · data wrong × rare · a summary roll-up that arrives with a restart reads null on existing rows; recoverable
objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6Ca1jJvsA1dHsPwMiQb
Claim: PM loop round 4 · area data-1 (the maintainer, verbatim, 2026-11-19T04:35Z project chat: 「再开 area:data」; standing 「暂时都只派 p1 p2 的卡」) · 2026-11-19T07:34Z
Area: data-1
Session:
session_01Utp6Ca1jJvsA1dHsPwMiQbAccount:
os-billBranch:
claude/issue-34283-announce-summary-holesWorktree:
objectstack-issue-34283(os-dev worktree in the data-1 container)Domain:
domain:serverSeat:
repo:objectstack#5File surface:
packages/objectql/src/plugin.ts(thekernel:bootstrappedhook, ~:1368-1373, beside the stored-expression hole announcement), and if the read needs a home, one new module inpackages/objectql/src/named for the summary-hole announcement; new test file(s) named for this card; root.changeset/. ⛔ No write at boot; ⛔ no persisted computed set (option B of report 6906716209 needs its own ruling). Stop on breach and report.Container & model:
S,mode:subagent,model: default — no path-derived mandate,effort: mediumClause-②: no (an operator log line; no write, no contract)
Metadata-protocol: none
Responsibility: platform — a summary roll-up that arrives with a restart (new code-defined app version, a marketplace install loaded at the next boot, a ledger entry rehydrated at
kernel:ready) is sealed as computed atkernel:bootstrapped, so stored rows keep readingnulluntil a child row is written, and nothing tells the operator thatos migrate summary-nullsfills them.Thread-read: 6984314168
Premise: holds — on
origin/main35c63310:materialiseAddedSummaries(engine.ts~:4143) runs only for in-process installs (engine-compatibility-api.ts:197);announceStoredExpressionHoles(packages/objectql/src/plugin.ts, exported fromindex.ts) is the precedent shape; no summary-hole announcement exists. The dev measures the boot cost on a showcase boot as the card asks.Serial constraints cleared: none —
overlap-check.mjson a probe branch touchingplugin.ts: base merges cleanly, 0 open PR heads share it.Pre-claim lane:
domain:server(packages/objectql/**)Pre-claim deps: PR #34282 merged; no Blocked-by.
Prior rulings read: area ruling A on #34096 open question 1 (this card is the follow-up; option B excluded); check-prior-rulings 194 hits — ADR-0055 §3, ADR-0155 D1, ADR-0079 D3, ADR-0093 D7, ADR-0131 D7, ADR-0139 D4, ADR-0144 D5/D6 (term noise, none on point); thread: none
test(objectql): drop the unused unreadable-object hook from the #34283 …
test(objectql): type the #34283 boot plugins and their objectql lookup
objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6Ca1jJvsA1dHsPwMiQb
os-dev-report
{ "issue": 34283, "status": "done", "branch": "claude/issue-34283-announce-summary-holes", "pr": "https://github.com/objectstack-ai/objectstack/pull/35435", "head": "e2e5e5c856", "session": "session_01Utp6Ca1jJvsA1dHsPwMiQb", "premise_still_valid": true, "summary": "New packages/objectql/src/summary-hole-announce.ts: at kernel:bootstrapped (plugin.ts, right after announceStoredExpressionHoles, so after sealSummariesMaterialisedAtBoot) the plugin reads the first ADVISORY_SAMPLE_SIZE (100) rows of each object owning a count/sum roll-up (id plus the roll-up columns, system context, one read per such object) and logs ONE warn per boot naming each object.field (fn, N of the first M rows) and the two command lines `os migrate summary-nulls --object OBJECT` (dry run) and `os migrate summary-nulls --apply --object OBJECT`. It writes nothing, skips an unreadable object at debug, never fails the boot, and logs its cost at debug. min/max/avg are not announced (summaryNullIsBackfillable, the backfill's own predicate). One warn per boot follows the stored-expression precedent (A1) rather than the optional route's one-per-object; each object gets its own --object flag in the one line.", "A1": "holds at 35c63310: announceStoredExpressionHoles is called inside the kernel:bootstrapped hook (plugin.ts hook opens ~:1373, call ~:1419), exported from index.ts; bound = ADVISORY_SAMPLE_SIZE 100 rows per object declaring the field, first page by id asc, system ctx; one warn per boot; debug on skip/failure. Mirrored: same constant (imported), same once-per-boot warn, same debug skip, no write.", "A2": "holds: materialiseAddedSummaries is reached only through syncSchemas (engine-compatibility-api.ts:197, bound at engine.ts:5619); sealSummariesMaterialisedAtBoot runs in the same kernel:bootstrapped hook and records every served roll-up, so a roll-up arriving with a restart is never walked. The new pin boots a real ObjectKernel with the roll-ups registered before kernel:bootstrapped and observes zero driver writes and NULLs left in place.", "A3": "count and sum only. summaryEmptySetValue gives 0 for count/sum and null for min/max/avg; a NULL min/max/avg is the legitimate empty-child reading and the default `os migrate summary-nulls` run skips it (summaryNullIsBackfillable). So a stored null/undefined in a count/sum column is always a hole and needs no aggregate read to judge; min/max/avg would need a per-row aggregate and only fill under --recompute-undefined-on-empty, so they are not announced. Pinned: a NULL max beside NULL count/sum is not named.", "A4": "showcase boot (`objectstack dev --seed-admin --fresh --log-level debug`, worktree build of this branch, shared box): `[summary-holes] boot sample {objectsRead: 3, rowsRead: 21, ms: 3}` = 3 reads, 21 rows, 3 ms against a whole bootstrap of about 3.9 s (Bootstrap started to Bootstrap complete). No [summary-holes] warn on the fresh showcase (seeded parents hold computed values). A live hole on showcase: NOT MEASURED, reason: a fresh showcase holds none; the hole case is pinned on a real kernel boot in the test.", "tests": "head e2e5e5c856: `pnpm --filter @objectstack/objectql typecheck` + `vitest run src/engine-34283-restart-summary-hole-announce.test.ts` under os-verify-lock: VERDICT command-exit 0, check:test-typecheck OK (39 files / 233 errors held, no new), Tests 3 passed (3). Full package at 2acb0feef3 (implementation identical to head; later commits only retype the test file): `pnpm --filter @objectstack/objectql typecheck && vitest run --project local --maxWorkers=2` VERDICT command-exit 0, Test Files 615 passed (615), Tests 13881 passed (13881). Ablations via scripts/ablation-replace.mjs (test imports ./plugin.js from src, no dist leg), each 'ok mutation landed: anchor 1 -> 0' and 'ok restored: blob == HEAD, git diff HEAD empty': (1) delete the announceSummaryHoles call in plugin.ts -> case 1 red 'expected [] to have a length of 1 but got +0' (run on 2acb0fe and again on head e2e5e5c856); (2) hole predicate `!= null` -> truthiness -> CONTROL computed-column red 'expected [ Array(1) ] to deeply equal []'; (3) drop the summaryNullIsBackfillable filter -> case 1 red 'not to contain largest_invoice' + CONTROL red. (2) and (3) ran on 2acb0fe; module and assertions unchanged since. test:repo not run locally (CI's Test Core).", "gates": "local subset on head e2e5e5c856: `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` derived 72 families; all 72 run with exit codes captured before any pipe, 72 exit 0. Reconciliation `--ran`: exit 0, '72 derived, 72 run, 0 NOT-MEASURED, 0 UNRUN'. Earlier union reds fixed before head: check:objectql-double-limit (unused failFindOf hook in the driver double, removed), check:slot-lookup (any-typed getService in the test plugin, typed), check:dts-closure and check:dual-build-cjs-loads (exit 1 / exit 3 PREREQUISITE while the showcase closure build was running alongside; both 0 on head). overlap-check --branch=HEAD: VERDICT clean exit 0 (0 PR heads). CI on PR #35435 at e2e5e5c856: Lint & Repo Gates success, TypeScript Type Check success, Build Core success, Test Core shards 1-10 success (aggregate Test Core queued at read time = in_progress), Governed Surface Queue Guard success, Dogfood Regression Gate success, Live E2E UI success, Test UI success, Check Changeset success, Check PR Size success, PR-body guards success; UI lanes skipped by selector.", "dogfood_battery": "n/a - no `!` in the PR title and no (narrowing) arm", "line_budget": "n/a - no skills/** or ratcheted ledger touched; diff +370/-0 over 4 files (under the 3000 threshold)", "files_changed": [ ".changeset/34283-announce-summary-holes.md (+12, patch on @objectstack/objectql)", "packages/objectql/src/summary-hole-announce.ts (+161, new module)", "packages/objectql/src/plugin.ts (+8)", "packages/objectql/src/engine-34283-restart-summary-hole-announce.test.ts (+189, new)" ], "deviations": [ "PR body maintainer brief: four lines per the dispatch order / seat-practice section 1, not the six lines os-dev.md names; technical sections under an English section titled 席位核对.", "The new function is not exported from packages/objectql/src/index.ts (the precedent is): index.ts is outside the declared file surface.", "Commit trailers use the model-free pair (AGENTS.md, pre-push hook) instead of the harness reminder's model-named Co-Authored-By line; PR footer uses the AGENTS.md session-URL form.", "Clause-② no and Metadata-protocol none, measured on the diff: matches the claim." ], "mcp_calls": "0", "api_writes": "2 - fleet-write relay pr_create (POST /repos/objectstack-ai/objectstack/pulls draft + POST issues/35435/assignees os-bill, one relay run 44492866998); post-stamped issue comment POST /repos/objectstack-ai/objectstack/issues/34283/comments (this report)", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [] }objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6Ca1jJvsA1dHsPwMiQb
Close-out 2026-11-19T10:05Z: PR #35435 merged, and
Fixesclosed this card. Delivered: atkernel:bootstrapped, objectql samples the first 100 rows of each object that owns acount/sumroll-up (one read per object, system context, no writes). When a sampled row holds a NULL, it logs one warn per boot naming eachobject.fieldwith its count, plus theos migrate summary-nullsdry-run and--applycommands.min/max/avgare excluded through the backfill's own predicate, and the boot never fails over this. Measured on showcase: 3 reads, 21 rows, 3 ms. Pinned on a real kernel boot with three ablations; L1-a ACCEPT 7005199654. No follow-up owed.pm:dispatchedoff.