Skip to content

skills(data): seed rows obey the package's own validation rules in load order; docs: seed load order comes from lookups and dependsOn - #35652

Merged
os-zhuang merged 2 commits into
mainfrom
claude/area-a4A-34986
Nov 20, 2026
Merged

os-zhuang merged 2 commits into
mainfrom
claude/area-a4A-34986

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Elon · project thread
Part of #34986
Fixes #35327
Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:用 AI 搭应用的作者照着数据技能写演示数据时,会被告知演示数据同样受应用自己的校验规则约束、要按加载顺序逐条过关,并且不要把汇总值直接写进父记录;文档里「数组按依赖顺序导出」的旧说法改正。
  • 为什么做:属于「问数评测」这条线。订单到回款场景的一次搭建里,72 条回款演示数据有 66 条被应用自己的「回款不得超过未结余额」规则拒收,技能里没有一句话提醒作者。
  • 出错会怎样:这只是教学文字、一道评测题和两处文档措辞;写错了作者会照错的方式写演示数据,可直接撤回。
  • 要你做什么:无。「搭建时把被拒的演示数据报给作者」那一半检查不在本次改动内,另行安排。

What changes

  • skills/objectstack-data/references/seeds.md gains one paragraph, each clause measured on main (see Acceptance notes): seed rows obey the object's validation rules, all but state_machine; a refused row never lands; os validate does not run those rules on seed rows and os verify fails on each dropped row; a rule reading a parent roll-up sees the total earlier rows left, so children must fit in record order; a roll-up value written on a seed row is stored as written and must not be seeded (a cap then refuses the payments that total already counts).
  • skills/objectstack-data/evals/hooks-security-seeds-datasources.json: one case, id 32.
  • content/docs/data-modeling/seed-data.mdx: the multi-object layout no longer says index.ts exports the array "in dependency order", and "One file per object" no longer says the index "orders" the datasets. Both now agree with the page's own Load Order section and with the skill after PR docs(skills): drop the retired seed modes, name Seed.locale / fallback / dependsOn, and stop teaching array order as load order #35312: lookups and dependsOn order the load, array position only breaks ties. No other sentence on the page makes the old claim.
  • .changeset/34986-skills-seed-rows-obey-validation-rules.md: @objectstack/skills patch.

Token ratchet: paid in full by deletion, the row does not move

Standing ruling 6513306068, 「A:先削重复,余额按实测提高」: restatement is cut in the same file first, and the row moves only by a measured remainder. Here the cuts cover the teaching (3 bytes under), so scripts/check-skills-token-ratchet.mjs is not edited.

seeds.md bytes tokens, ceil(bytes / 4) ceiling lines
before (eca20d2219) 7036 1759 1759 178
after the cuts alone 6589 1648 1759
after (f2d0e25610) 7033 1759 1759 182

Cuts (-447 bytes), each a restatement inside the file: the 'name' default row of the key table (the field table states the default); "Pick a stable natural key" (the field table's "Stable business key"); "(not its UUID)" and the "natural key of an Account record" comment (the sentence above both); "at load time" (the same sentence's "order the load"); the second half of the id-fallback note (it restated the first half); the second defineSeed import (the quick start imports it); "and breaks build determinism" (the determinism gate line says it); the applyOn comment (the sentence above the block); "(fixtures, reference rows, bootstrap data)" (the quick start's two comments); and the "never lands" clause of the malformed-value paragraph, folded into one sentence. The teaching is +444 bytes. Whole shipped tree at this head, by the gate's own price tag: 275304 tokens; the only priced file this PR touches is seeds.md (1759 before and after), and the rest of the movement is the eval case, which is measured and not priced. Lines: seeds.md 178 to 182; every SKILL.md in the catalog together 4853 to 4853; the whole skills/ tree 22229 to 22249 (16 of the 20 are the eval case, which the ratchet measures and does not price).

Evals

Case 32: a payment rule that refuses a payment above the invoice's open balance, reading record.invoice.amount_paid, a sum roll-up; seed one fully paid and one part-paid invoice. The expected answer seeds the invoices without a roll-up value and payments that each fit what the rows before left, and does not say seeds skip validation rules or weaken the rule. must_contain: defineSeed, invoice: 'INV-1'. must_not_contain: amount_paid: 4800, amount_paid: 2000, the two seeded roll-up literals. They are code spellings with the case's own numbers; the skill text uses a different number, so an answer that quotes the skill's warning does not trip them. The grader is a literal substring match (packages/qa/scenarios/src/skill-evals/grade.ts). No model run was made for this case.

Verification

Gates below ran on 4408d12775; after the review delta (head f2d0e25610: the roll-up sentence now says a cap refuses the payments the seeded total already counts, and eval case 32 says the payments on the fully paid invoice are refused, not every payment) the token ratchet and its self-test, check:skill-eval-tokens, the skill-evals test (36 of 36), check:nul-bytes and the overlap check were run again and exit 0.

  • Two-minute check: node scripts/check-skills-token-ratchet.mjs prints skills/objectstack-data/references/seeds.md is 1759 tokens (ceiling 1759; headroom 0) and exits 0.
  • Read first: the new paragraph in seeds.md (the riskiest hunk: it ships verbatim to customer agents), then the cuts in the same file, then eval case 32.
Local gates and tests
  • pnpm --filter @objectstack/scenarios exec vitest run --maxWorkers=2 test/skill-evals/skill-evals.test.ts: Test Files 1 passed (1), Tests 36 passed (36), VERDICT command-exit 0.
  • node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack --commands: 73 families. --ran with recorded exit codes: 73 derived, 72 run, 1 NOT-MEASURED, 0 UNRUN. 72 exited 0, among them check-skills-token-ratchet and its self-test, check:skill-examples (346 prose examples type-check across 3 surface(s)), check:skill-served-sections, check:skill-links, check:doc-authoring, check:nul-bytes, check-closing-keyword-parity, check-empty-changeset.
  • NOT MEASURED: pnpm check:dual-build-cjs-loads, exit 3, PREREQUISITE NOT MET (it needs every package built; this diff builds none). CI owns it.
  • node scripts/pm/overlap-check.mjs --branch=claude/area-a4A-34986: VERDICT clean exit 0 against origin/main and PR skills eval: narrow analytics-inline-vs-dataset#5 must_not_contain to the defineDataset( call, and fifteen same-shape cases #35649, which shares the eval file.
  • No ablation: the diff changes no behaviour a test pins.

Acceptance notes

Which half is left. This PR is the teaching half of the direction on the card. The other half, a build or publish-time finding that names the refusing rule and the count, is not in this PR and no check code was written; the card stays open for it.

What the two builds did differently (the reading the direction asked for). The build records named in the reading on the sibling card (two directories under a project-files mount of another project) are not reachable from this session, so the rule text of each build was not read. What the card's own rows prove, in docs/qa/scenarios/order_to_cash.json on main: the 95 seeded invoices carry their end state (amount_paid, balance), and exactly 66 of the 72 payments are larger than their invoice's seeded balance (all 66 belong to a paid invoice whose seeded balance is 0); the other 6 belong to part-paid invoices and fit. So the refusing build judged each payment against a balance that already counted it. A later rebuild pair recorded on the sibling card split the same way (one build 619 of 619, the other 66 refused), so the split is not tied to the skills version. A roll-up that merely lags its inserts does not produce this number: measured below, the rule does see earlier rows.

Measured on main (scratch probe, real engine, sqlite, the real seed loader; not committed):

  • (a) No exemption beyond state_machine. The loader writes every row under SEED_WRITE_EXECUTION_CONTEXT (packages/metadata-protocol/src/seed-loader.ts, SEED_OPTIONS); the engine skips only state_machine for it (shouldSkipStateMachine, packages/objectql/src/engine-top-level.ts; the insert path hands it to evaluateValidationRules in engine-insert.ts). Probe: a script rule refused a seeded payment with Failed to write xt_payment record #0 (name=P1): A payment may not exceed the invoice's open balance.
  • (b) The rule runs before the row is written and the roll-up recompute runs after it (recomputeSummaries, same file), and inside one batch the rows already admitted are overlaid on the value the rule reads (summary-batch-accumulation.ts, pinned by packages/rest/src/import-batch-parent-summary-rule.test.ts). Probe: payments of 2000, 2000, 1000 against an invoice of 3000 land the first and third and refuse the second; with the payments dataset listed first the lookup still loads the invoice first.
  • A seed write is a system write, so a roll-up value on a seeded parent is stored as written; the same value sent by a user write is reset to 0. Probe: an invoice seeded with amount: 3000, amount_paid: 3000 keeps 3000 and its only payment is refused, leaving a paid total with no payment under it. This is the shape of the 66.
  • (c) Reporting today. os validate and os build judge seed values by field shape and against declared state-machine states only; neither evaluates a validation rule against a seed row, so they pass. At boot the loader returns the refusal in result.errors and AppPlugin logs a [Seeder] warning with the dropped count and the first 20 messages (the rule's message, not its name). os verify counts every dropped seed record as a failure and exits 1, printing the count and pointing at the log; it names no rule. Nothing at build or publish time reports it.

Noted, not filed. The scenario card's seed rows carry end-state roll-up values for the invoices, which is what a build that declares those columns as roll-ups is then judged against. Carrier: the seat that owns the scenario cards.

🤖 Generated with Claude Code

…ad order; docs: seed load order comes from lookups and dependsOn

seeds.md: a seed row is judged by the object's validation rules (all but
state_machine) as it loads; a rule reading a parent roll-up sees the total
earlier rows left; a seeded roll-up value is stored as written. Paid for by
deleting restatement in the same file (7036 -> 7031 bytes, ceiling unmoved).
One eval case. seed-data.mdx: the multi-object layout no longer says the
array is exported "in dependency order".

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4d1ZJL93Kin2UHFXbFv
@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 19, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-elon-musk · session_016WV4d1ZJL93Kin2UHFXbFv

Final head for review: 4408d12775b0c2303896d1af147df2f142cd0cfc · CI green (32 success, 15 skipped, 0 failed) · 2026-11-19T21:47Z

Area a4-A asks L1 (thread L1-a) for ACCEPT. skills/** is Tier H: after ACCEPT the seat runs the contract review and lands. Part of #34986: this lands the teaching half only; the build-time check half is with the seat for routing (measurements in os-dev-report 7022810829 on #34986). Fixes #35327 (docs, same PR). seeds.md is paid in full by its own cuts (1758/1759 tokens); the ratchet script is not in the diff.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-elon-musk · session_016WV4d1H9ixhgepGZ7fawhL

L1 verdict (L1-a): ACCEPT at head 4408d12775b0c2303896d1af147df2f142cd0cfc (the head announced in comment 7023146793).

Gates on this head: 47 check-runs, 0 failed, 0 pending. Lint & Repo Gates success, TypeScript Type Check success, Build Docs success. Mergeable clean.

Shape:

What I checked myself:

  • Ratchet. seeds.md on the head is 7031 bytes, and ceil(7031/4) = 1758, under the 1759 row. That matches the body. The row does not move, as standing ruling 6513306068 provides.
  • Cuts are restatement only. For each cut fact I found the place that still states it on the head:
    • the 'name' default is the field table, L48;
    • the defineSeed import is the quick start, L17;
    • applyOn: 'create' is the prose at L75–82;
    • determinism is the byte-identical gate line, L164.
      No taught fact is lost.
  • New paragraph against source.
    • Seed rows obey validation rules, all but state_machine: rule-validator.ts L3931–3935 filters only state_machine under skipStateMachine, and the execution-context .describe says the same.
    • Earlier rows feed the roll-up a rule reads: summary-batch-accumulation.ts, with its test and packages/rest/src/import-batch-parent-summary-rule.test.ts, both present on main.
    • os verify fails on dropped seed rows: packages/cli/src/commands/verify.ts L317 and L530–535 count every dropped seed record into hardFailures.
    • "Stored as written" for a seeded roll-up rests on the dev's probe, which the body reports and does not commit. I accept that reading.
  • Eval 32. I worked the arithmetic through the rule as written. On INV-1, two payments of 2400: the first gives 2400 > 4800 − 0, false, so it lands; the second gives 2400 > 4800 − 2400, false, so it lands. So the expected answer loads cleanly. The must_not_contain entries are the case's own seeded roll-up literals, not bare words.
  • Docs. Both reworded sentences in seed-data.mdx now match the page's own ## Load Order — dependsOn section (L633–663) and the L849 comment. No other sentence on the page claims "dependency order".
  • Changeset prose. I checked each clause against the above, including "os verify, not os validate" and "its token ceiling does not move".

Notes (non-blocking):

  1. No model run of case 32. skill-evals.test.ts passed 36/36 locally.
  2. Step 0 says the build records were not reachable, so the 66-row reading is derived from docs/qa/scenarios/order_to_cash.json rather than from the build logs. That fits the order's "teach only what the runtime proves". The scenario card's end-state roll-up values are noted for the scenario-card seat. Nothing is filed, which is correct for this area.

Next: Tier H. Handed to the seat for contract review and landing.


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-elon-musk · session_016WV4cxgb3PKFkt8y5FigJn

Contract review

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

Inputs read: cards #34986 and #35327 with every comment (direction 6970307554, the lane move, both claims, the os-dev-report), PR #35652 (body, four files, net diff against main, merge base eca20d2219), and the 47 check-runs on the head. The diff holds no code, so no implementing file is named after +. Code outside the diff was read, not reviewed: packages/metadata-protocol/src/seed-loader.ts, packages/spec/src/kernel/execution-context.zod.ts, packages/objectql/src/engine-insert.ts, engine-top-level.ts, engine-summaries-and-expansion.ts, summary-batch-accumulation.ts, validation/rule-validator.ts, packages/cli/src/commands/verify.ts, packages/verify/src/seed-outcome.ts, packages/cli/src/utils/seed-record-values.ts, packages/qa/scenarios/src/skill-evals/grade.ts.

① Derived judgments

  • Public surface: one teaching paragraph in a shipped skill reference, one eval case (id 32), two docs sentences, one changeset. No schema, no accept-set, no export and no runtime behaviour changes. Right.
  • Gate verdicts are the check-runs on the head: 32 success, 15 skipped, 0 failed, 0 pending. Lint & Repo Gates, Check Changeset, Build Docs, Check Documentation Links, Governed Surface Queue Guard, PR-body guards and Check PR Size are all success. The token ratchet is among the repo gates and passed: the head file is 7031 bytes, 1758 tokens against the 1759 row, so the row rightly does not move (standing ruling 6513306068).
  • Part of #34986 is right: the direction asks for a check first and the teaching second; this PR carries the teaching only and the card must stay open for the build-time finding (routed as build/validate: seed rows are never checked against the package's own validation rules; a refused seed only shows as a dropped-record log at boot #35653). Fixes #35327 is right: both sentences on the docs page that taught array position as load order are reworded and no other sentence on the page makes the claim.
  • Ordering against the direction (check first, prose second): the prose lands ahead of the check. Accepted, because the paragraph describes what main does today and sends the author to os verify, which does fail on the dropped rows.

② Semver level

@objectstack/skills patch is right: wording in a shipped skill bundle and one eval case, nothing a consumer compiles against. Clause-②: no and Metadata-protocol: none stand on both the PR body and the changeset; the diff narrows nothing and touches no protocol shape. The changeset summary agrees with the tree, and it does not repeat the overstated clause named in S1.

③ Boundary flags

  • open_questions in the os-dev-report is empty. Nothing to answer.
  • Deviation 1 (no PR assignee) and deviation 3 (trailers) are the seat's to settle; neither touches the contract.
  • Out-of-scope finding 2 (the order_to_cash scenario card seeds end-state amount_paid and balance on all 95 invoices) and finding 3 (a seed row that supplies a summary value stores it as written and nothing flags it at authoring time) are real and are not this PR's. Both belong with the check half, build/validate: seed rows are never checked against the package's own validation rules; a refused seed only shows as a dropped-record log at boot #35653, or a card of their own; escalated to the seat, not judged here.
  • Build 1 against build 2: the direction asked for that reading before writing. The build records were unreachable, so the answer is derived from the scenario card rows and a probe, not read from the builds. The derivation is consistent with the code (see ④) and the gap is declared, so it is accepted as answered to the extent main can prove it.
  • SQL push-down: no code, no query, no id materialisation or in-app join in the diff. Nothing to flag.
  • content/docs/data-modeling/seed-data.mdx, read sentence by sentence against seed-loader.ts: "exports the SeedData array (the loader orders it)" and "lookups and dependsOn order the load, and array position only breaks ties" both hold. The loader builds one graph from lookup edges plus declared dependsOn edges and runs Kahn's sort over nodes in dataset order, so array position decides only between objects ready at the same moment. Both sentences agree with the page's own Load Order section and with seeds.md. The page's existing statement that the seed exemption is scoped to the state machine only also agrees with the new skill paragraph. Clean.

④ Design judgment

skills/objectstack-data/references/seeds.md, the new paragraph, sentence by sentence:

  • "Seed rows obey the object's validation rules (all but state_machine); a refused row never lands." Holds. Every seed write carries SEED_WRITE_EXECUTION_CONTEXT (isSystem, skipTriggers, seedReplay); shouldSkipStateMachine reads seedReplay, and evaluateValidationRules filters out state_machine rules alone under it. The loader records a refused row in errors and writes nothing for it.
  • "os validate does not run them on seed rows; os verify fails on each dropped row." Holds on main. Nothing under packages/cli/src evaluates a validation rule against a seed row; verify adds every rejected seed record to hardFailures and exits 1. The first half goes stale the day build/validate: seed rows are never checked against the package's own validation rules; a refused seed only shows as a dropped-record log at boot #35653 lands and that card must edit it.
  • "A rule reading a parent roll-up sees the total earlier rows left, so children must fit in record order." Holds for the taught shape. The loader flushes pending inserts in record order through insertMany; inside one batch the admitted rows are overlaid on the binding the rule reads (createBatchSummaryAccumulator), and between batches the recompute has already written the stored value.
  • "Never seed the roll-up: a seeded amount_paid is stored as written" holds: the readonly strips do not run for isSystem, and initializeSummaryFields leaves an author-supplied value alone.

S1 (should-fix) — the closing clause "a cap on payments then refuses them all" is false as a universal, and eval case 32 repeats it against its own numbers. A seeded total refuses exactly the payments that no longer fit under it: every payment on an invoice seeded as fully paid, and none on a part-paid invoice whose one payment still fits the remaining balance. The PR's own measurement says so (66 of 72 refused, the 6 on part-paid invoices landed). In case 32 the expected answer says of a seeded amount_paid that "every payment is refused", yet with INV-2 seeded at 2000 paid of 5000 its payment of 2000 is judged against an open balance of 3000 and lands; only the two INV-1 payments are refused. An agent that sees some payments land and some refused is told by the skill that this cause refuses all of them, and is steered away from the right diagnosis. Fix: in seeds.md say which payments are refused (for instance "and a cap on payments refuses those it counts", which stays inside the 5 spare bytes under the 1759 ceiling), and in the case 32 expected answer say the payments on the fully paid INV-1 are refused, not every payment. The rule, the assertions and the rest of the paragraph stand.

Nits, no effect on correctness or the contract:

  • N1: "sees the total earlier rows left" is exact for count and for sum, min, max over numbers. An avg roll-up is not accumulated inside one batch and reads the stored value. The example is a sum, so the sentence is true as illustrated.
  • N2: case 32's must_not_contain literals (amount_paid: 4800, amount_paid: 2000) also fail a correct answer that quotes the forbidden line while warning against it, and invoice: 'INV-1' fails a correct answer written with double quotes. This is the file's standing convention (literal code spellings) and no model run was made, so it is left as is.
  • N3: the cut of "and breaks build determinism" leaves the determinism gate line without its stated link to new Date(). The teaching (use CEL, never the author's clock) is intact.

The cuts otherwise remove restatement only: the 'name' default, the defineSeed import, the applyOn meaning and the id fallback are each still stated once on the head.

skills/objectstack-data/evals/hooks-security-seeds-datasources.json, case 32: the prompt is answerable from the skill as it stands on the head, and the expected seed loads: invoices seeded without amount_paid start at 0, two payments of 2400 fit 4800 in record order, one of 2000 fits 5000. The grader matches literal substrings and both must_contain tokens are the natural spelling of the expected answer. Its one defect is the sentence named in S1.

Security-touching is no: the hunks teach data-integrity behaviour (validation rules on seed rows, roll-up reads, seed load order). No hunk teaches permission, sharing, credential, token or authentication behaviour.

Implemented-by: claude/area-a4A-34986
Reviewed-by: session_016WV4cxgb3PKFkt8y5FigJn

VERDICT: PASS

…nts, not every payment

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4d1ZJL93Kin2UHFXbFv
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-elon-musk · session_016WV4d1ZJL93Kin2UHFXbFv

Final head for delta review: f2d0e25610a6b9971ea9ae027d3498f0ee0af6dc · CI green (34 success, 17 skipped, 0 failed), mergeable clean · 2026-11-19T22:10Z

One commit on top of the ACCEPTed head 4408d12775: contract review 7023271725 S1. seeds.md closes with "and a cap on payments refuses those it counts." (1759/1759 tokens, ratchet row unchanged); eval case 32 expected_output now says the two payments on fully paid INV-1 are refused and INV-2's 2000 fits its 3000 open balance. Assertions unchanged; net still 29. Body updated (ratchet table, two-minute check). Asks L1-a and the seat for the delta read.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-elon-musk · session_016WV4cxgb3PKFkt8y5FigJn

Contract review

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

Delta record. It follows the full record on head 4408d12775b0c2303896d1af147df2f142cd0cfc and reads only the delta from that head to this one (the old head is an ancestor of the new one; two files, one line each) plus the check-runs on this head. Everything the earlier record judged outside these two lines stands as judged there.

① Derived judgments

  • The delta changes one clause of the taught paragraph in seeds.md and one sentence of eval case 32's expected answer. No accept-set, no public surface beyond the wording, no code.
  • Check-runs on this head: 0 failed, 0 pending; the rest success or skipped. Lint & Repo Gates, Lint · repo & tooling gates, Check Changeset, Build Docs, Governed Surface Queue Guard, PR-body guards and the Test Core shards are success. The token ratchet rides the repo gates and is green: the head file is 7033 bytes, 1759 tokens, exactly at the 1759 row, which does not move.

② Semver level

Unchanged: @objectstack/skills patch, Clause-②: no, Metadata-protocol: none. The changeset is not in the delta and its summary never carried the corrected clause.

③ Boundary flags

No new flag and no new open question in the delta. No code, so nothing for the SQL push-down check. content/docs/data-modeling/seed-data.mdx is not in the delta and stays clean as read on the earlier head. The escalations of the earlier record (the two out-of-scope findings, and the os validate sentence that #35653 must edit when it lands) stand.

④ Design judgment

S1: closed

  • seeds.md now reads "a cap on payments refuses those it counts". That is what the engine does: a seeded total is stored as written, the rule reads it, and the payments already counted in that total are the ones that no longer fit under it. The universal is gone.
  • Case 32's expected answer now reads that both payments on the fully paid INV-1 are refused and the 2000 on INV-2 still fits its 3000 open balance. Checked against the case's own rule and numbers: INV-1 seeded at 4800 paid of 4800 leaves 0, so each 2400 is refused; INV-2 seeded at 2000 paid of 5000 leaves 3000, so the 2000 lands. The prompt and the assertions are untouched.

No must-fix, no should-fix.

The three nits of the earlier record (N1 avg inside one batch, N2 literal assertions, N3 the determinism link) are unchanged and stay accepted deviations. seeds.md has no spare token left under its ceiling; the next addition to it must cut first.

Security-touching is no: the delta teaches data-integrity behaviour only.

Implemented-by: claude/area-a4A-34986
Reviewed-by: session_016WV4cxgb3PKFkt8y5FigJn

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-elon-musk · session_016WV4d1H9ixhgepGZ7fawhL

L1 delta (L1-a): ACCEPT stands at the new head f2d0e25610a6b9971ea9ae027d3498f0ee0af6dc (announced 7023630763). My earlier ACCEPT was 7023180291, at 4408d127.

What changed since 4408d127: two lines.

  • seeds.md, last clause. It said a cap on payments "then refuses them all"; it now says the cap "refuses those it counts". The new wording is the accurate one. With a seeded amount_paid, only the payments that total already counts break the cap. Example: INV-2 (5000, seeded 2000) has 3000 open, so its 2000 payment still fits.
  • Case 32 expected_output. It now reads that both INV-1 payments are refused and that INV-2's 2000 fits its 3000 open balance. I checked the arithmetic against the rule (amount > amount - amount_paid): it is correct.
  • Neither the must_contain nor the must_not_contain list changed. The changeset never carried the old clause, so it needed no change.

Ratchet: seeds.md is now 7033 bytes, and ceil(7033/4) = 1759, which equals the 1759 row. Headroom is 0, and the row does not move. Net lines are still 29.

Gates on this head: 51 check-runs, 0 failed, 0 pending. Lint & Repo Gates and TypeScript Type Check both passed.

Next: Tier H, so the seat lands it.


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-elon-musk · session_016WV4cxgb3PKFkt8y5FigJn

席位核对 — ACCEPT · repo:objectstack#4 · head f2d0e25610a6b9971ea9ae027d3498f0ee0af6dc

  1. 形态:4 文件,seeds.md 在 1759 token 上限内(恰好顶格,下次增补须先删)。
  2. 前提实测:复审逐句对照种子加载与校验规则执行路径成立;seed-data.mdx 逐句干净。
  3. 门禁:现 head check-runs 全 success/skipped。
  4. 接受的偏差:3 nit 不改(avg 汇总批内不累积、case 32 字面断言、determinism 链接)。
  5. 范围外去向:构建期检查半 → build/validate: seed rows are never checked against the package's own validation rules; a refused seed only shows as a dropped-record log at boot #35653(落地时须改「os validate does not run them」一句);dev 的两条范围外发现 → scenario order_to_cash: seeds end-state amount_paid/balance on all 95 invoices, so a build with amount_paid as a roll-up and an open-balance cap refuses 66 of 72 payments #35654、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。order_to_cash build 1: its own authored validation rule refuses 66 of its demoorder_payment seed rows (payment may not exceed the invoice's open balance); build 2 refuses 0 #34986 落地后保持打开,pm:dispatched 由区手动摘。
  6. 落地条款:批准后入队;与 skills eval: narrow analytics-inline-vs-dataset#5 must_not_contain to the defineDataset( call, and fifteen same-shape cases #35649 同改 hooks-security-seeds-datasources.json,后落者先合入 main。Clause-②: no,@objectstack/skills patch。

@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 19, 2026
@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 19, 2026 22:18
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 20, 2026
Merged via the queue into main with commit 7c8d689 Nov 20, 2026
57 checks passed
@os-zhuang
os-zhuang deleted the claude/area-a4A-34986 branch November 20, 2026 00:51
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.

docs: seed-data page still says seeds load "in dependency order" by array position; align with dependsOn

2 participants