Skip to content

docs(qa): summary-field-authoring revision 3 — a count roll-up carries no summaryOperations.field - #27955

Merged
objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/issue-27608-summary-count-field
Oct 30, 2026
Merged

objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/issue-27608-summary-count-field

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Fixes #27608

Clause-②: no
Metadata-protocol: none

维护者速读

  • 改了什么:QA 清单条目 studio-authoring.summary-field-authoring 升到 revision 3:验收第 3 条改为 count 汇总只带 object 与 function、不带 field,sum 汇总仍带三者;补一条 history。
  • 为什么改:fix(spec): a count roll-up saves without summaryOperations.field #27533 已让 count 汇总在不写 summaryOperations.field 时也能保存,Studio 在 count 下不再给出字段控件;旧条款要求两个汇总都带 field,会把正确的运行判为失败。
  • 风险与回滚:只改一份 QA 清单 JSON 的一个条目,不涉及任何发布包或运行时;回滚即还原本 PR。
  • 先看:docs/qa/platform-checklist/areas/studio-authoring.json 中该条目的 acceptance[2](clause 与 verify 两行)和新增的 history revision 3。
  • 两分钟验证:pnpm check:platform-checklist,应见 check-platform-checklist: OK — 16 areas, 352 items,退出码 0。
  • 需要你做的:无,席位落地。

What changes

One item, studio-authoring.summary-field-authoring in docs/qa/platform-checklist/areas/studio-authoring.json, revision 2 to 3:

  • acceptance[2].clause: was "the configured summary is saved spec-valid: summaryOperations { object, field, function }". Now the count's summaryOperations is { object, function } with no field, and the sum's is { object, field, function }.
  • acceptance[2].verify: was "carries both summaries with the authored object, field and function". Now the count carries the authored object and function and no field key, and the sum carries all three. A parenthetical tells the runner to author the count as count from the start. Studio shows no field control for count, but it keeps a field that was already stored when a summary is switched to count. The spec accepts that field and ignores it.
  • revision 3, plus a history entry in the file's existing { revision, date, change, ref } shape. The entry cites fix(spec): a count roll-up saves without summaryOperations.field #27533 (fbb8bec3e7) and this card.

No other clause, step, fixture, negative or source line changed.

Premise, measured at origin/main ed0e71db94

  • fbb8bec3e7 (fix(spec): a count roll-up saves without summaryOperations.field #27533) is an ancestor of the base (merge-base --is-ancestor exit 0).
  • packages/spec/src/data/field.zod.ts: summaryOperations.field is z.string().optional(). Its describe reads "Required for sum, min, max and avg; count counts the child rows and reads no field, so a count may omit it (ignored when given)". refuseSummaryWithoutField refuses a missing field only when summaryFunctionReadsField(function) is true, which is every function except count.
  • ObjectFieldInspector.tsx SummaryConfigFields: the field combo renders only when summaryFunctionReadsField(fn) is true. Its comment says "A field already stored on a count is left as it is (ignored), so switching back keeps it". So a count authored as count saves with no field at all. A summary switched to count keeps any field it already had.

Tests

No code changed. No test applies.

Acceptance notes

Verification

Derived gates at head 6521b16: 16 derived, 16 run, all exit 0

node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack derived 16 commands, and each exit code was captured before any pipe:

node scripts/check-adr-links.mjs :: exit 0
node scripts/check-adr-links.mjs --self-test :: exit 0
node scripts/check-closing-keyword-parity.mjs :: exit 0
node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0
node scripts/check-comment-mask-corpus.mjs :: exit 0
node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0
pnpm --filter @objectstack/lint run check:doc-formula-expressions :: exit 0 (first run exit 3, a prerequisite refusal; re-run after building @objectstack/formula and @objectstack/lint)
pnpm check:ci-filter-parity :: exit 0
pnpm check:cross-package-test-inputs :: exit 0
pnpm check:doc-authoring :: exit 0
pnpm check:driver-memory-census :: exit 0
pnpm check:gitlink-declared :: exit 0
pnpm check:nul-bytes :: exit 0
pnpm check:platform-checklist :: exit 0
pnpm check:refd-timer-probe :: exit 0
pnpm check:watch-hint-literal :: exit 0

check:platform-checklist: check-platform-checklist: OK — 16 areas, 352 items (347 active, 1 planned).

--ran reconciliation: 16 derived famil(ies) accounted for — 16 run, 0 NOT-MEASURED (a DERIVED zero — all 16 recorded an exit code and none of them is 3).


Generated by Claude Code

…s no summaryOperations.field

Acceptance[2] of studio-authoring.summary-field-authoring expected both
summaries to carry object, field and function. Since the count roll-up
saves without field, the count summary carries object and function with
no field; the sum summary keeps all three.

Claude-Session: https://claude.ai/code/session_01QSeKYmTYfaPbLQD4BJfomW
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:devx#2 · os-justin · session_01QSeKYmTYfaPbLQD4BJfomW

席位核对 — ACCEPT · domain:devx#2 · head 6521b1605d · 2026-10-30T05:17Z

维护者速读

  • 改了什么:checklist 条目 studio-authoring.summary-field-authoring 升到第 3 版。count 汇总保存后是 { object, function },不带 field;sum 汇总仍是三项。
  • 为什么改:fix(spec): a count roll-up saves without summaryOperations.field #27533 之后,count 汇总可以不带 field 保存,Studio 也不再为 count 显示字段选择框。旧条款还要求三项都有,所以正确的结果会被判为失败。
  • 风险与回滚:只改一份 checklist JSON 里的一个条目(+9/−3),不动代码。回滚 = 还原本 PR。
  • 先看:acceptance[2] 的 clause 和 verify 两句,以及第 3 版的历史记录。
  • 两分钟验证:pnpm check:platform-checklist,应输出 OK。
  • 需要你做的:无。席位落地。

席位意见:合入。新说法是照代码写的:field.zod.ts 里 summaryOperations.field 是可选项,只有会读字段的汇总函数才要求带 field,count 不读字段。verify 还提醒执行者一开始就按 count 创建,因为从 sum 改成 count 时,已存的 field 会被保留下来。

Shape: draft → main, Fixes #27608. 1 file, docs/qa/platform-checklist/areas/studio-authoring.json, +9/−3. Labels size/s, skip-changeset. No assignees: dev PRs carry none, per the relay's pr_create rule. Non-governed; the seat lands it. Report 6515397836, claim 6515199838.

Premise measured: #27533 (fbb8bec3e7) is an ancestor of the base. summaryOperations.field is z.string().optional(), and refuseSummaryWithoutField refuses a missing field only when summaryFunctionReadsField(fn). Studio's SummaryConfigFields draws the field control under the same predicate.

Seat's own read: the item goes from revision 2 to 3. The acceptance[2] clause and its verify are re-pointed, and the history entry follows the { revision, date, change, ref } shape. No other clause, step, fixture, negative or source line changed.

Gates: on head 6521b1605d, 47 check-runs: 27 success, 20 skipped, 0 failure; mergeable_state: clean. check-expected-skips --pr 27955: OK, all 20 skips are in main's roster (exit 0). check-governed-merges --pr 27955: NOT governed, 12 changed lines. Dev's union: 16 derived, 16 run, all exit 0. check:platform-checklist reports "OK — 16 areas, 352 items".

Out of scope: the item's source[0] gloss reads "object, field, function" without marking field optional for count. It is a source pointer, not a scored clause, so it goes to Acceptance notes. Skills-docs: n/a.

Landing: non-governed, 12 changed lines. In this act the seat readies the PR and arms auto-merge. On merge, the seat verifies the merged diff and posts the landing note on #27608.


Generated by Claude Code

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review October 30, 2026 05:18
@objectstack-fleet
objectstack-fleet Bot enabled auto-merge October 30, 2026 05:18
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Oct 30, 2026
Merged via the queue into main with commit a169559 Oct 30, 2026
48 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-27608-summary-count-field branch October 30, 2026 06:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/s skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

qa checklist: studio-authoring.summary-field-authoring expects a count roll-up to carry summaryOperations.field, which #27533 makes optional

1 participant