Repository navigation
docs(skills): seeds.md teaches the blank-key load refusal and the unknown-object save refusal - #35750
Closed
objectstack-fleet[bot] wants to merge 2 commits into
Closed
objectstack-fleet[bot] wants to merge 2 commits into
objectstack-fleet[bot] wants to merge 2 commits into
Conversation
… (seeds.md) `skills/objectstack-data/references/seeds.md` teaches the load refusal main makes for a keyed seed record that leaves an `externalId` field blank, with one eval case (id 34). Three restatements in the same file are cut first; the token ceiling row moves by the measured remainder (1759 -> 1812) under the standing ruling (record 6513306068). Claude-Session: https://claude.ai/code/session_01L6bhgTRf6qBRCqPh4JZaZL Co-authored-by: Claude <noreply@anthropic.com>
`skills/objectstack-data/references/seeds.md` teaches the save door's 422 for a runtime-saved seed whose `object` resolves to nothing, and that a draft object is enough for a draft seed, with one eval case (id 35). The token ceiling row moves by the measured remainder (1812 -> 1898) under the standing ruling (record 6513306068). Claude-Session: https://claude.ai/code/session_01L6bhgTRf6qBRCqPh4JZaZL Co-authored-by: Claude <noreply@anthropic.com>
This was referenced Nov 20, 2026
Merged
Contributor
Author
|
repo:objectstack#1 · os-sales · session_01L6bhgTRf6qBRCqPh4JZaZL Superseded by #35757, which folds this pull with the three other area b1-D skills-text pulls (#35743, #35746, #35750, #35751) onto current main at the seat request: one approval and one merge on the governed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Sales · project thread
Fixes #35480
Fixes #35456
Clause-②: no
Metadata-protocol: none
Skills-docs: updated here
维护者速读
What changes
Two commits, one per card.
b3b374b39Fixesline)### externalId selectiongains the rule; theexternalIdrow points at it; three restatements cut20c06ad50Fixesline)objectrow points at itBoth land in
skills/objectstack-data/references/seeds.mdandskills/objectstack-data/evals/hooks-security-seeds-datasources.json, with one changeset (@objectstack/skills, patch) and theseeds.mdrow ofscripts/check-skills-token-ratchet.mjs.What the skill now says, and where main says it
Every sentence is a reading of
origin/mainat03bce5c22.Keyed records (commit
b3b374b39). "Every record carries a value for eachexternalIdfield (each field of a list;namewhen the seed names none). One left blank (no value,nullor''; whitespace is a value) is refused at load in every mode: the result names the object, record index, field and fix, and the other records still load."upsert,update,ignore:packages/metadata-protocol/src/seed-loader.ts:1840. Those are every mode the skill teaches (insert/replaceare refused, as the same file already says), so the skill says "in every mode".undefined,nullor'', with no trim:seed-loader.ts:469-471(isBlankSeedKeyValue, docblock: "A whitespace-only value is a value here (no trim)").name:seed-loader.ts:69(DEFAULT_EXTERNAL_ID_FIELD), and the refusal says so:seed-loader.ts:493-494.seed-loader.ts:2346filters every key field.seed-loader.ts:506-510.seed-loader.ts:2347-2364(errors.push,continue).packages/metadata-protocol/src/seed-loader-empty-key-warn.test.ts:139(composite component, single field, defaultname; siblings converge).Unknown object (commit
20c06ad50). "Aseedsaved at runtime names itsobjectitself. One that resolves to nothing is refused:422 INVALID_METADATAatobject, "which is not defined". Correct the name to the object's full name (crm_lead, notlead) or create the object first: a draft of it is enough for a draft seed; a live seed needs it published."door === 'save'); the publish promotion and the restore doors leave it to the load:packages/metadata-protocol/src/protocol-save-door-refusals.ts:1087-1091.422 INVALID_METADATA, one finding at pathobject:protocol-save-door-refusals.ts:1180-1192.protocol-save-door-refusals.ts:1174-1184.packages/metadata-protocol/src/protocol.seed-external-id-refusal.test.ts:381-421(draft save, publish save, and a publish save whose object is only a draft).Doors not taught.
os validateandos buildjudge seed record values (packages/cli/src/utils/seed-record-values.ts), not a blank key and not a seed's object; the skill names only the load (first rule) and the runtime save (second rule).Token budget: the standing ruling, and the deletion
seeds.mdwas at 1759 of 1759 tokens. The raise follows the standing ruling in the header ofscripts/check-skills-token-ratchet.mjs(maintainer, 2026-10-27, ruling record 6513306068), verbatim:Deletion in the same file, shown in the diff of commit
b3b374b39:columnsrow's shape literal ({ FIELD: { applyOn: 'create' } }), which its own section and code block show;seeds.mdlinesseeds.mdbytesseeds.mdtokens (ceil(bytes / 4))seeds.mdceiling rowArithmetic in bytes: 7033 to 6905 after the cuts (-128); the first rule nets +340 (7245, ceiling 1812); the second +345 (7590, ceiling 1898). The cuts pay for 128 bytes of 813; the remainder is the measured raise.
Contradiction search (the second card's done-when)
grep -rni seed skills/objectstack-data --include=*.mdoutsideseeds.md:SKILL.md:5, :6, :20, :221, :295, :451;references/_index.md:16, :44;references/data-hooks.md:484;rules/lifecycle.md:188;rules/field-types.md:13, :53. None speaks of a seed'sobjector of a record's key value. Insideseeds.md, one sentence contradicted the new note: theobjectrow's "never write manually". It now reads "hand-written only in a runtime save (below)". The examples in the file all carry their key field (code,slug,number,email,name).Tests
No runtime code changes; nothing to unit-test. Two eval cases:
upsertseed keyed oncodewhere two records have none. Expected: the answer gives each record a value or keys on a field every record carries, and says the record is refused at load.object: 'lead'when the object iscrm_lead. Expected: the 422 atobjectwith the reason, the full name as the fix, and that the draft object is enough for a draft seed.Placed directly after the existing seed cases (ids 4, 30, 31), away from the end of the array.
node scripts/pm/overlap-check.mjsat20c06ad50:VERDICT clean exit 0(merges cleanly withorigin/mainand the three open pulls sharing a file).Acceptance notes
check:dts-closure,check:dual-build-cjs-loads,check:lean-entry-closure,check:published-files,check:sourcemap-no-sources-content),check:pm-dispatch-gatesand the rest of the derived list are left to CI.check:skill-examplesansweredPREREQUISITE NOT METlocally (exit 3, the client SDK is not built in this worktree): NOT MEASURED, not red.### externalId selection, with a pointer from theexternalIdrow; the composite-key sentence is covered by "each field of a list".skills/**, a governed surface: it stays a draft, with no reviewer request and no auto-merge from this side.Verification
Read first:
skills/objectstack-data/references/seeds.md(the two added paragraphs and the three cuts), then theseeds.mdrow comment inscripts/check-skills-token-ratchet.mjs.Two-minute check:
node scripts/check-skills-token-ratchet.mjsand look for the lineskills/objectstack-data/references/seeds.md 1898 / 1898 (+0)and the closing line "59 authored bundle file(s) within their ceilings".Local gate readings at 20c06ad
🤖 Generated with Claude Code
https://claude.ai/code/session_01L6bhgTRf6qBRCqPh4JZaZL