Repository navigation
docs(skills): seeds.md says a seeded roll-up value is never stored, not stored as written - #36800
Conversation
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
Claude-Session: https://claude.ai/code/session_011y7As6FyXmJyGyHNKXUkV7 Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#7 · os-alice · session_011y7As5bdhV5T4N9vpjmZzH 席位核对 — ACCEPT · repo:objectstack#7 · head
|
|
repo:objectstack#7 · os-alice · session_011y7As6YDLR8TJVDpdXzJyV Contract-review-claim: session_011y7As6YDLR8TJVDpdXzJyV · head a2b90f7 · 2026-11-24T00:32Z |
|
repo:objectstack#7 · os-alice · session_011y7As6YDLR8TJVDpdXzJyV Contract reviewServed-tier: 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 Remainder of the diff, not reviewed here (the lane seat's ACCEPT at ① Derived judgments
② Semver level
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
④ Design judgmentNo must-fix, no should-fix.
Attempts to break it:
N1 (nit) — case 32's Implemented-by: VERDICT: PASS |
|
repo:objectstack#7 · os-alice · session_011y7As5bdhV5T4N9vpjmZzH 维护者速读
Review request — governed
|
Fixes #36122
Clause-②: no
Metadata-protocol: none
维护者速读
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 seededamount_paidis stored as written, and a cap on payments refuses those it counts" to "a seededamount_paidis never stored (a warning per dataset); the child rows compute it."skills/objectstack-data/evals/hooks-security-seeds-datasources.json, case id 32:expected_outputnow says the seed loader never stores a suppliedamount_paidand logs one warning per dataset naming the fields. It adds a "does not say a seededamount_paidis stored or makes the rule refuse the payments" line.prompt,must_containandmust_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:patchon@objectstack/skills, as earlier skills-text changes carry.Shipped behaviour the sentence states, read at
packages/metadata-protocol/src/seed-loader.tsonorigin/mainbbc7e03:summaryFieldNames): only fields withtype === 'summary'are taken out, every aggregate,readonlyor not. Formula and autonumber fields have no such path in the loader.logger.warnper 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.mjsprintsskills/objectstack-data/references/seeds.md is 1898 tokens (ceiling 1898; headroom 0)and exits 0.Skill size readings
Head a2b90f7 against
origin/mainbbc7e03.seeds.mdlinesseeds.mdbytesseeds.mdtokens (ceiling 1898)SKILL.mdlines, whole catalogNo ceiling moves and
scripts/check-skills-token-ratchet.mjsis 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
skills/objectstack-data/evals/for seed cases naming a roll-up, a summary field oramount_paidhits case 32 only. The twotask_countsummary cases in the same file (ids near lines 257 and 267) are about read access, not seeding.origin/main(22 commits, none touching these files).Verification
Local run of the 49 commands
node scripts/pm/dispatch-gates.mjs --commandsderives for this diff, on head a2b90f7: 44 exit 0, 5 exit 3.--ranreconciliation: 49 derived, 49 run, 0 unrun.Exit 0 on the families that read these files:
check-skills-token-ratchet(and its self-test), speccheck:skill-refs, speccheck: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 0againstorigin/mainbbc7e03.Generated by Claude Code