Repository navigation
docs(skills): drop the retired seed modes, name Seed.locale / fallback / dependsOn, and stop teaching array order as load order - #35312
Conversation
…dsOn, stop teaching array order as load order seeds.md: the mode table and best practices no longer teach `insert` / `replace` (refused since the retirement); the conversion is a composite `externalId`, or `'id'`. The field table names `locale`, `fallback` and `dependsOn`. Lookups order the load and array order only breaks ties; `dependsOn` covers a hook reading a seeded object no lookup links to. Paid down by cutting restatement in the same file; ceiling +13, the measured remainder. objectstack-platform SKILL.md lists only the live modes and re-locks 15 tokens lower. Two eval cases (ids 30, 31). Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CazXu8zyYD5PC6J2u7
|
repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ Contract reviewServed-tier: Basis: PR #35312 for cards #34798 and #35070, with the p3 rider #34277. Read: the three card bodies and their threads (claim 6999128364 and dev report 6999544535 on #34798), the PR body and file list (a draft, no comments or reviews yet), the net diff from merge-base The security line reads ① Derived judgmentsAccept set and public surface: no change. The diff is two skill files, one eval fixture, two rows of the token ratchet and one changeset. No package source, schema or export moves; the keys and refusals it teaches landed earlier ( Every new or reworded sentence, against the head tree (
Cuts, and where each instruction still lives in the same file:
No instruction is lost. Eval token sources. The runner installs only the case's own bundle, without Rest of the published catalog. A search of The dev's readings reproduce. Premise A1 to A4 on ② Semver level
③ Boundary flagsDev report 6999544535: Deviations and notes, each answered:
One note from this read, outside the diff and not a finding on this PR: SQL push-down check: the diff has no query code, so no id materialisation and no in-app join. The PR author is Both ratchet rows are pinned at zero headroom. A PR that lands first on ④ Design judgment
The platform row needs no ruling: head blob 24611 bytes, minus the 20-byte stamp line is 24591 priced, ceil(24591 / 4) is 6148 ( The 10402 principle (no growth for a small feature) is not engaged: 13 tokens carry three cards, and two of them correct teaching that was false against the loader. Findings. No must-fix. No should-fix. Five nits, none of which touches correctness or the contract; all are accepted as they stand on this head.
A follow-up for N2 and N3 (two strings in the eval file, unpriced) is the seat's filing-gate call. Implemented-by: VERDICT: PASS |
|
repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ 维护者速读
席位核对 — ACCEPT · repo:objectstack#5 · head
|
Requested by Bill · project thread
Fixes #34798
Fixes #35070
Fixes #34277
Clause-②: no
Metadata-protocol: none
维护者速读
objectstack-data技能的references/seeds.md不再把已退役的 seed 模式insert/replace当作可用模式来教,改成一句"两者被拒收,改用复合externalId(或'id')";字段表补上locale、fallback、dependsOn三行;关系一节改为"加载顺序由 lookup 决定,数组顺序只用来打破平局",并教dependsOn及其整批拒收的三种情形。objectstack-platformSKILL.md 的 Seed Data 段只列ignore/upsert/update。eval 加两例(复合键换法、fallback)。insert/replace数据集;按数组顺序排父子在加载器里不起作用;locale/fallback已上线但技能没教。seeds.md先删同文件重复内容,余额 +13 token 按实测抬上限;platform SKILL.md 下调 15 token。回滚即还原本 PR。skills/objectstack-data/references/seeds.md(模式表下的退役句、关系一节新增的dependsOn段);scripts/check-skills-token-ratchet.mjs的 seeds.md 行注释;skills/objectstack-data/evals/hooks-security-seeds-datasources.json的 30、31 两例。node scripts/check-skills-token-ratchet.mjs,预期 seeds.md 1759/1759、platform SKILL.md 6148/6148 均通过;git grep -nE "mode: '(insert|replace)'" skills/无输出。skills/**属 Tier H 受治理面,席位核对后请批准合入。What changes
skills/objectstack-data/references/seeds.md:insertandreplacerows, and the best-practice table drops thereplacerow. One sentence under the table replaces them, worded from the refusal message (SEED_MODE_RETIRED_FIX,packages/spec/src/data/seed.zod.ts) of the merged retirement (f796089): both are refused because every replay re-inserted each record; with no single natural key, keep the default mode and set a compositeexternalId(['team', 'project']), or'id'when the records carry their own ids. TheexternalIdrow now says "(or field list) every mode matches on", since no unkeyed mode is left. "Never useid" now applies to generated UUIDs, so it no longer contradicts the'id'conversion.localeandfallback. The wording follows 7f6197c, trimmed to fit:fallbackistrueon ONElocaleset per object and also loads for a locale no set names.content/docs/data-modeling/seed-data.mdxas d10f652 left it.// parents firstcomment is gone.dependsOnwith object names, for abeforeInserthook that reads a seeded object no lookup links to. A name that is the dataset's own object, one no dataset of the load seeds (misspelt, or scoped out byenv/locale), or a cycle refuses the whole load, and nothing is written.dependsOnrow, and the "parent → child in the exported array" best-practice row is deleted.skills/objectstack-platform/SKILL.md, Seed Data passage only: the mode list isignoredefault ·upsert·update. Onbc75bcdbcit listedinsertandreplaceat :377, which a grep formode: 'insert'cannot find.skills/objectstack-data/evals/hooks-security-seeds-datasources.json:externalIdunder the default mode, and'insert'/'replace'aremust_not_contain.zh-CNset plus an Englishfallback: trueset, for ade-DEorganization.scripts/check-skills-token-ratchet.mjs: row notes and values for the two files.Token budget
The standing ruling, verbatim: 「A:先削重复,余额按实测提高」 (ruling record 6513306068, letter B).
seeds.mdpaid first by deleting restatement in the same file:externalId, mode andenvpassages;upsertre-assert clause, which restated the mode table;Arithmetic in bytes: the cuts take 6984 down to 6570 (−414), and the new teaching adds +466, for 7036 bytes. ceil(7036 / 4) = 1759. Headroom was 0, so the ceiling moves 1746 → 1759 (+13), the measured remainder, pinned AT the measurement.
objectstack-platform/SKILL.mdre-locks 6163 → 6148 at the landed count (24649 → 24591 priced bytes).Skills readings (
skills/**diff):bc75bcdbc)seeds.mdlines / tokensobjectstack-platform/SKILL.mdlines / tokensSKILL.mdlines (package sum)bundle total)The bundle's +466 tokens are eval fixtures (+468). Authored text nets −2.
Tests
No package code changes, so no package build or test is owed. The verification is the gates listed below.
Done-when for #34798, with a control leg on the same tree:
git grep -nE "mode: '(insert|replace)'" skills/exits 1 on HEAD.git grep -nE "mode: 'upsert'" skills/exits 0.bc75bcdbc. It could not see the table-form teaching (`insert`in a table cell, the platform mode list).git grep -nE '`(insert|replace)`'over the two files hits 4 lines onbc75bcdbcand 1 on HEAD. The one HEAD hit is the refusal sentence.Acceptance notes
mainbefore this PR. It misses the teaching it targets, because that teaching was written as table cells and a mode list, not asmode: 'insert'. The broader reading above is the effective check.SEED_MODE_RETIRED_FIX) and keeps its'id'arm. As a result, theexternalIdsection's "Never useid" now covers generated UUIDs only.seed-mode-insert-replace-retired(the D3 migration entry) carries the same judgement. The skill text does not link to it, because an author meets the refusal message first.Verification
All local readings are at head
66f76e140.Derived gate list: 69 families, 65 run (exit 0), 4 NOT MEASURED
node scripts/pm/dispatch-gates.mjs --commands(no paths) derived 69 commands for the 5 changed paths.node scripts/check-skills-token-ratchet.mjs: seeds.md 1759 / 1759, platform SKILL.md 6148 / 6148.--self-testalso passes.pnpm --filter @objectstack/spec run check:skill-docs,check:skill-refsandcheck:skill-served-sections.pnpm check:skill-links,check:skill-identifier-liveness,check:skill-top-level-keys,check:skill-compatibility,check:skill-frame-sync,check:doc-authoring,check:nul-bytes,check:pm-skill-id-lint,check:published-files,check:ratchet-remedy-authority.pnpm check:pm-dispatch-gates: "2249 cases pass", exit 0.pnpm --filter @objectstack/lint run check:doc-formula-expressions: exit 0 after building@objectstack/formulaand@objectstack/lintunder the verify lock. Before that build it exited 3, prerequisite not met.check:dts-closure,check:dual-build-cjs-loads,check:lean-entry-closureandcheck:sourcemap-no-sources-content. Each exited 3 (PREREQUISITE NOT MET) because it needs the whole workspacedist/. This diff touches no package source. CI's build carries them.node scripts/pm/dispatch-gates.mjs --ran FILE(every lineCMD :: exit N): "69 derived famil(ies) accounted for — 65 run, 4 NOT-MEASURED", exit 0.Overlap
node scripts/pm/overlap-check.mjs --branch=HEAD --pr=35309,34964: VERDICT clean exit 0.--branch=HEADrun: VERDICT clean exit 0 againstorigin/mainand docs(skills): data-hooks api.transaction row says when it joins an outer unit and that it is one datasource; teach hook texts + ctx.text #35309, docs(skills): teach the mappings group, action and hook texts, and drop the stale label-serving caveat #35302, docs(skills): ui router names action files by the registry suffix #35300, chore: version packages #35129, docs(skills): data-hooks teaches when a before* hook's ctx.api writes roll back with a refused save #34964.CI check-runs: pending at the time of opening. The seat reads them on the PR.
🤖 Generated with Claude Code
https://claude.ai/code/session_01Utp6CazXu8zyYD5PC6J2u7