Skip to content

docs(skills): seeds.md says a seeded roll-up value is never stored, not stored as written - #36800

Merged
os-zhuang merged 3 commits into
mainfrom
claude/issue-36122-seeds-rollup-dropped
Nov 24, 2026
Merged

os-zhuang merged 3 commits into
mainfrom
claude/issue-36122-seeds-rollup-dropped

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Fixes #36122

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:用数据技能写演示数据的 AI 作者,读到的说明从「写进汇总字段的数会原样存下」改成「不会存、加载时提醒一次、由子记录算出」。
  • 为什么做:平台行为已在上周改掉(种子数据不再存汇总值),技能里的理由成了错话,这次让文字跟上已发布的行为。
  • 出错会怎样:只改一句说明和一条评测期望;写错了作者会学到错的模型,撤回这次合并即可恢复原文。
  • 要你做什么:无

What changes

  • skills/objectstack-data/references/seeds.md (the validation-rules paragraph): the rule "Never seed the roll-up" and the record-order point stay. Only the consequence changes, from "a seeded amount_paid is stored as written, and a cap on payments refuses those it counts" to "a seeded amount_paid is never stored (a warning per dataset); the child rows compute it."
  • skills/objectstack-data/evals/hooks-security-seeds-datasources.json, case id 32: expected_output now says the seed loader never stores a supplied amount_paid and logs one warning per dataset naming the fields. It adds a "does not say a seeded amount_paid is stored or makes the rule refuse the payments" line. prompt, must_contain and must_not_contain (amount_paid: 4800, amount_paid: 2000) are unchanged, so the case still requires invoice rows with no roll-up value.
  • .changeset/36122-seeds-rollup-never-stored.md: patch on @objectstack/skills, as earlier skills-text changes carry.

Shipped behaviour the sentence states, read at packages/metadata-protocol/src/seed-loader.ts on origin/main bbc7e03:

  • lines 794-801 (summaryFieldNames): only fields with type === 'summary' are taken out, every aggregate, readonly or not. Formula and autonumber fields have no such path in the loader.
  • lines 2304-2311: the value is deleted from the record copy before the replay compare and before the engine write, so no validation rule ever sees it.
  • lines 3268-3277: one logger.warn per dataset, naming the object, the fields and the count of values not written.

Read first: the one changed sentence in seeds.md, then eval case 32.

Two-minute check: node scripts/check-skills-token-ratchet.mjs prints skills/objectstack-data/references/seeds.md is 1898 tokens (ceiling 1898; headroom 0) and exits 0.

Skill size readings

Head a2b90f7 against origin/main bbc7e03.

Reading Before After
seeds.md lines 190 190
seeds.md bytes 7590 7589
seeds.md tokens (ceiling 1898) 1898 1898
eval file lines 361 361
all SKILL.md lines, whole catalog 4947 4947
ratcheted authored tokens, whole catalog (ceiling 202541) 197570 197570

No ceiling moves and scripts/check-skills-token-ratchet.mjs is not edited.

Tests

Text only: no code or tested behaviour changes, so there is no package test to run and no ablation. The eval file parses as JSON.

Acceptance notes

  • Other evals in the data skill that mention seeding a roll-up: none. A search of skills/objectstack-data/evals/ for seed cases naming a roll-up, a summary field or amount_paid hits case 32 only. The two task_count summary cases in the same file (ids near lines 257 and 267) are about read access, not seeding.
  • The first wording was one byte over the old sentence; the second commit trims it to one byte under.
  • The branch carries one merge of origin/main (22 commits, none touching these files).

Verification

Local run of the 49 commands node scripts/pm/dispatch-gates.mjs --commands derives for this diff, on head a2b90f7: 44 exit 0, 5 exit 3. --ran reconciliation: 49 derived, 49 run, 0 unrun.

Exit 0 on the families that read these files: check-skills-token-ratchet (and its self-test), spec check:skill-refs, spec check:skill-served-sections, check:skill-links, check:skill-identifier-liveness, check:skill-compatibility, check:skill-frame-sync, check:doc-authoring, check:nul-bytes, check:pm-skill-id-lint, check:published-files, check-empty-changeset, check-changeset-no-major, check-adr-0087-registration.

NOT MEASURED locally (exit 3, each asks for a build this text-only diff does not owe; CI runs them): lint check:doc-formula-expressions, check:dts-closure, check:dual-build-cjs-loads, check:lean-entry-closure, check:sourcemap-no-sources-content.

node scripts/pm/overlap-check.mjs: VERDICT clean exit 0 against origin/main bbc7e03.


Generated by Claude Code

The seed loader drops a value written for a summary field before the
write and warns once per dataset; the child rows compute the roll-up.
The reference and its eval case still taught the stored-as-written model.

Claude-Session: https://claude.ai/code/session_011y7As6FyXmJyGyHNKXUkV7
Co-authored-by: Claude <noreply@anthropic.com>
…into claude/issue-36122-seeds-rollup-dropped
@github-actions github-actions Bot added size/s documentation Improvements or additions to documentation tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 24, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · os-alice · session_011y7As5bdhV5T4N9vpjmZzH

席位核对 — ACCEPT · repo:objectstack#7 · head a2b90f7fb082b83e0366a6220d17a83abcb9f9df

Seat self-review (area-lease.md send-to-review row: ≤50 lines, text only, Clause-②: no, no other contract face), read against the diff at this head, not the report.

  • Shape: Fixes #36122, base main, 3 files (+12/−2): one sentence in skills/objectstack-data/references/seeds.md, expected_output of eval case 32 in skills/objectstack-data/evals/hooks-security-seeds-datasources.json (prompt, must_contain, must_not_contain unchanged), and a patch changeset for @objectstack/skills.
  • Premise measured on origin/main: packages/metadata-protocol/src/seed-loader.ts summaryFieldNames (l.794-801) takes only type === 'summary' fields; l.2304-2311 delete the value from the record before the write; l.3268-3277 log one logger.warn per dataset naming the fields. The new sentence ("never stored (a warning per dataset); the child rows compute it") states exactly that; the rule "never seed the roll-up" and the record-order point are kept.
  • Gates: CI in progress at this reading; landing waits for every check green or expected-skip. Skills token ratchet: seeds.md 1898 tokens, ceiling unchanged (PR body).
  • Accepted deviations: none. Out of scope: none.
  • Landing: GOVERNED (skills/**, Tier H — the eval path names security, so the low-risk skills arm does not apply). Handed to the approver; the seat does not arm it before an authorized approval.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · os-alice · session_011y7As6YDLR8TJVDpdXzJyV

Contract-review-claim: session_011y7As6YDLR8TJVDpdXzJyV · head a2b90f7 · 2026-11-24T00:32Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · os-alice · session_011y7As6YDLR8TJVDpdXzJyV

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: a2b90f7fb082b83e0366a6220d17a83abcb9f9df
Local-runs: none
Scope: skills/objectstack-data/evals/hooks-security-seeds-datasources.json, skills/objectstack-data/references/seeds.md + none
Security-touching: no

PR #36800 for card #36122. Inputs read: the card body and its 3 comments (triage 7065150451, claim 7112521029, dev report 7118134435), the PR body, its 3-file list, its 2 thread comments, the net diff against main (merge-base bbc7e03, +12/-2) and the check-runs on this head. Nothing was built, run or checked out.

Remainder of the diff, not reviewed here (the lane seat's ACCEPT at TIER_DEFAULT): .changeset/36122-seeds-rollup-never-stored.md, read only for ②.

① Derived judgments

  • Accept-set: unchanged. The diff edits one sentence of skill prose and one expected_output string. No schema, validator, lint rule, loader or error code is touched, so nothing an author writes is newly accepted or newly refused. Right.
  • Public surface: the published @objectstack/skills bundle changes by one sentence in objectstack-data/references/seeds.md. The rule an author follows ("never seed the roll-up") is the same before and after; only its stated reason changes. Right.
  • Eval surface: case 32 keeps its prompt, must_contain (defineSeed, invoice: 'INV-1') and must_not_contain (amount_paid: 4800, amount_paid: 2000). The machine-checked assertions therefore accept and refuse exactly the answers they did on main; only the judged prose moves. Right.
  • Skill size: the PR body reads seeds.md at 1898 tokens against a ceiling of 1898, with no ceiling moved and the ratchet script not in the diff. The file list confirms the script is not edited. The Lint · docs & code guards check-run concluded success on this head.
  • Check-runs on this head at the time of this record: 19 success, 16 skipped, 0 failed, 6 still in progress (Build Core, Test Core (1/10), Test Core (2/10), Type Check · consumer gates, Lint · repo & tooling gates, Lint · CI, release & engine gates). Those six carry no verdict yet. This record does not stand in for them: the landing still waits on every check green.

② Semver level

patch on @objectstack/skills (the package exists at packages/skills/package.json; five earlier skill-text changesets on main carry the same level). The diff publishes a wording fix to shipped skill text with no accept-set change, so patch is the right level. Check Changeset concluded success.

Clause-②: no — stated on the PR body, the changeset and the claim, and it matches the diff: nothing that was accepted is refused, and nothing an author already wrote behaves differently because of this PR. The behaviour change itself shipped in #36118.

③ Boundary flags

  • open_questions: empty in the dev report. Nothing to answer.
  • Dev deviations (report 7118134435): one merge of main on the branch with none of its commits on the claimed files (confirmed: the net diff is the 3 claimed files); a 2-byte trim in a second commit; five build-dependent gates left to CI; the PR body opening with the Fixes line and no seat signature; model-free commit trailers; the worktree kept. None bears on the contract. The five gates left to CI fall in check-runs that are either green or still running, as listed in ①.
  • File surface: the diff stays inside the claim (seeds.md, the one eval file, one changeset). No breach.
  • Seat ACCEPT 7118161122 routes the PR as Tier H because the eval path has "security" in its name. Answer on the question this record owns: the changed hunk (case 32) teaches seed loading against a validation rule and a roll-up. It teaches no permission, sharing, credential, token or authentication behaviour, and neither does the seeds.md sentence. Hence Security-touching: no. Which landing arm then applies is the seat's and the queue guard's call, not this record's.
  • SQL push-down (Prime Directive 5): no code in the diff, so no id materialisation and no in-app join. Nothing to flag.

④ Design judgment

No must-fix, no should-fix.

skills/objectstack-data/references/seeds.md — new sentence: "Never seed the roll-up: a seeded amount_paid is never stored (a warning per dataset); the child rows compute it." Read against packages/metadata-protocol/src/seed-loader.ts on main (identical at the PR head, the file is not in the diff):

  • "never stored": summaryFieldNames (l.794-801) returns every field with type === 'summary', whatever the aggregate and whether or not it is readonly. The record loop (l.2304-2311) deletes each such key from the record copy before the replay compare, the insert and the update. So the value reaches neither the engine write nor any validation rule. Holds.
  • "a warning per dataset": one logger.warn after the record loop (l.3268-3277), only when at least one value was taken out, naming the object, the fields and the count. No error is pushed and no load-result key carries it. Holds.
  • "the child rows compute it": the engine starts the column at its empty-child-list value and recomputes from child writes (summaryFieldsLockedOnWrite note in packages/objectql/src/engine-top-level.ts, which itself says a seed load never sends a roll-up value because of seed: a seed row that supplies a summary (roll-up) field value is stored as written, and nothing recomputes it until a child write #35655). Holds.
  • The kept sentence on record order ("a rule reading a parent roll-up sees the total earlier rows left") is untouched and is now the only reason a payment seed can be refused, which is the model the card asked for.
  • The old reason ("stored as written, and a cap on payments refuses those it counts") is gone from the file. A search of skills/, ui/skills/ and content/docs/ at the PR head finds no other place that still says a seeded roll-up is stored.

Attempts to break it:

  • Another seed write door that skips the strip: packages/runtime/src/seed-loader.ts is a 9-line re-export of the same SeedLoaderService. Every seed path goes through the loop above. No second door found.
  • A roll-up contributed by an object extension: the strip reads the resolved definition, which is the engine's merged schema, so it is covered.
  • A definition the loader cannot resolve: the loader then declares no summary fields and writes the record as authored (stated in the summaryFieldNames jsdoc). This is a load whose object is not defined at all. It is outside the scenario the sentence teaches (an author seeding an object they declared with a roll-up), so "never" holds for the reader the sentence addresses. Not a finding.
  • null versus undefined: an explicit null counts as a supplied value and is warned about; an undefined key is removed silently. Both are never stored. Consistent with the sentence.

skills/objectstack-data/evals/hooks-security-seeds-datasources.json (case 32) — judged against the card's ask ("update the evals that exercise seeding roll-ups to match") and the sentence above:

  • The new expected_output says the loader "never stores a supplied amount_paid (it leaves the value out of the write and logs one warning per dataset naming the fields)". Each clause matches the code read above.
  • It adds a negative line: the answer must not say a seeded amount_paid is stored or makes the rule refuse the payments. This is the old model, and refusing it is what the card is for.
  • The answer shape the case accepts is unchanged: invoice rows without the roll-up, payments by natural key, each fitting what earlier rows left, the rule not weakened, validation rules not described as skipped. An answer written from the new seeds.md reaches it.
  • The dev's claim that case 32 is the only data-skill eval that seeds a roll-up: the search at the PR head for amount_paid and roll-up seeding wording under skills/ hits case 32 and seeds.md only. Holds.

N1 (nit) — case 32's expected_output says the warning names the fields; seeds.md says only "a warning per dataset". The detail is true to the code and sits in a parenthesis that explains why the invoice rows carry no roll-up, so a correct answer is not required to recite it. Left as an accepted deviation; no change asked on this head.

Implemented-by: claude/issue-36122-seeds-rollup-dropped
Reviewed-by: session_011y7As6YDLR8TJVDpdXzJyV

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · os-alice · session_011y7As5bdhV5T4N9vpjmZzH

维护者速读

  • 用户能看到什么变化:AI 作者读到的数据技能说明改正一句,写进汇总字段的演示数据不会被保存,加载时提醒一次,由子记录自动算出。
  • 为什么做:平台行为上周已经改了,技能里的说法没跟上(Data skill seeds.md still says a seeded roll-up value is stored as written #36122)。
  • 出错会怎样:只改一句说明和一条评测期望,可直接撤回。
  • 要你做什么:这是受管技能目录的改动,需要 os-zhuang 批准(契约评审 PASS 7118230164,Head-sha a2b90f7fb082b83e0366a6220d17a83abcb9f9df)。

Review request — governed skills/** (Tier H; the eval file's path names security, so the low-risk skills arm does not apply).

  • Seat record: ## 席位核对 — ACCEPT above, at Head-sha a2b90f7fb082b83e0366a6220d17a83abcb9f9df (seat self-review: 14 lines, text only, Clause-②: no).
  • Contract review: same-head PASS 7118230164 (CONTRACT_REVIEW_TIER, governed skills face; no must-fix or should-fix; N1 nit only; Security-touching: no).
  • What to approve: one sentence in skills/objectstack-data/references/seeds.md now says a seeded roll-up value is never stored (one warning per dataset; the child rows compute it), matching seed-loader.ts on main, and eval case 32's expected_output follows it. Rule and test inputs unchanged.
  • After approval the seat arms it once every check is green.

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 24, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 24, 2026 00:39
@os-zhuang
os-zhuang enabled auto-merge November 24, 2026 00:39
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 24, 2026
Merged via the queue into main with commit d2fc055 Nov 24, 2026
50 checks passed
@os-zhuang
os-zhuang deleted the claude/issue-36122-seeds-rollup-dropped branch November 24, 2026 01:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue size/s tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Data skill seeds.md still says a seeded roll-up value is stored as written

3 participants