Repository navigation
docs(skills): the data skill teaches field-change values as on by default - #36775
Conversation
…ault enable.fieldHistory replaces the trackHistory opt-in sentence in skills/objectstack-data/SKILL.md; trackHistory keeps its ledger-view row. New text is paid for by cuts in the same file. Claude-Session: https://claude.ai/code/session_01JQwxbZeHNsF3RWcWpj7rGj Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj Contract reviewServed-tier: PR #36775 (card #36419), reviewed against merge-base No must-fix, no should-fix.
① Derived judgmentsThe two new rows, clause by clause, against
Card correction 7079973891 (the per-field off switch is Does any sentence left in
The twelve trimmed phrases, each checked for lost meaning or a changed rule:
The Ceiling: ② Semver level
③ Boundary flags
Check-runs at the head, read at 2026-11-23T21:06Z: 19 success, 16 skipped, 6 still in progress, none failed. In progress: Lint · ESLint, Lint · docs and code guards, Lint · CI, release and engine gates, Type Check · consumer gates, Test Core (1/10), Test Core (2/10). Lint · repo and tooling gates finished green during the review. The landing check for an all-green head is therefore not yet met. This record does not stand in for it, and the token-ratchet reading above is arithmetic from the git objects until the lint jobs report. ④ Design judgment
Implemented-by: VERDICT: PASS |
|
repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj 维护者速读数据建模技能( 席位核对 — ACCEPT (L1) · repo:objectstack#1 · head
|
|
repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj 维护者速读数据建模技能里「字段改动历史」的说法已改对,复核通过、CI 无失败。受管文件,按规则请 os-zhuang 在 GitHub 上点批准,批准后自动合并。 Tier H hand-off · 2026-11-23T21:53Z:
|
Fixes #36419
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
skills/objectstack-data/SKILL.md, section "Object Capabilities (enable)" — the only place inskills/objectstack-data/**that taught field history as opt-in (trackHistory, defaultfalse, "Field-level audit trail").fieldHistoryrow (default: on). A changed field's old → new values show on the activity timeline, served per the reader's field read rule.falseturns them off for the object. A field opts out with its ownfieldHistory: false; a media or structured field (json,address,codeand the like) shows values only withtrue; a credential never.sys_audit_logkeeps its own grant.trackHistoryrow rewritten to what the flag still does: the ledger view on the record page and thehistoryAPI verb, and that it is not the values switch.fieldHistory: false, nottrackHistory: false.references/examples-objects.mdkeepsenable.trackHistory: true: it is still valid (the ledger view) and is not an opt-in claim about values.Paid for in the same file (token ratchet, ceiling not moved):
aiReadablerow cut to what an app author needs: platform objects only, refused at parse on an app object,falseincluded. The list of verbs and the two excluded platform objects are dropped; an app object can never declare the key.feedsandactivitiesrows ("opt-out: explicit" beside atruedefault),sharingModel("absence is not a decision" after "refused"),nameField("Canonical"),fieldGroups,label,files,datasource, thelifecycledefault cell, "not by habit", "not silently dropped" after "refused", and the mirror-maintenance sentence.Skill size, the two readings:
skills/objectstack-data/SKILL.mdlinesskills/objectstack-data/SKILL.mdtokens (ratchet's count)skills/*/SKILL.mdlinesskills/*/SKILL.mdtokens (sum of the ratchet's rows)Read first, by risk:
skills/objectstack-data/SKILL.md, thefieldHistoryandtrackHistoryrows: every clause againstpackages/spec/src/data/field-history-default.ts(resolveFieldHistory) and theenable.fieldHistory/ fieldfieldHistorydescriptions inpackages/spec/src/data/object.zod.tsandfield.zod.ts.aiReadablerow: confirm the dropped detail is not needed by an app author..changeset/36419-skills-field-history-default.md.Two-minute check:
node scripts/check-skills-token-ratchet.mjsprintsskills/objectstack-data/SKILL.md is 6709 tokens (ceiling 6710; headroom 1)and exits 0;git grep -n trackHistory -- skills/objectstack-datashows the rewritten row, the quick-start example, and one evalmust_not_containentry.Tests
Wording-only diff on a published skill; no behaviour under test changed, so no ablation. All readings on head
710841dae1.Local gates: the 50 commands `dispatch-gates --commands` derives
dispatch-gates --ran:50 derived famil(ies) accounted for — 46 run, 4 NOT-MEASURED (4 DERIVED from a recorded exit 3).46 exited 0, among them
node scripts/check-skills-token-ratchet.mjs,pnpm check:skill-links,pnpm check:skill-identifier-liveness,pnpm check:skill-frame-sync,pnpm check:skill-compatibility,pnpm check:pm-skill-id-lint,pnpm check:corpus-claim-drift,pnpm check:doc-authoring,pnpm check:role-word,pnpm check:nul-bytes,pnpm check:published-files,pnpm --filter @objectstack/spec run check:skill-docs,pnpm --filter @objectstack/spec run check:skill-served-sections,pnpm --filter @objectstack/lint run check:doc-formula-expressions,node scripts/check-changeset-no-major.mjs --base origin/main,node scripts/check-empty-changeset.mjs --base origin/main,node scripts/check-adr-0087-registration.mjs --base origin/main.NOT MEASURED locally (exit 3, PREREQUISITE NOT MET: they read every package's
dist/, and only@objectstack/specand the@objectstack/lintclosure were built):pnpm check:dts-closure,pnpm check:dual-build-cjs-loads,pnpm check:lean-entry-closure,pnpm check:sourcemap-no-sources-content. The diff touches no package source; CI's reading is the evidence.Outside the derived list, also run:
pnpm check:skill-top-level-keys, exit 0.Acceptance notes
skills/objectstack-data/**describes field history as opt-in":git grep -n -i -E 'trackHistory|fieldHistory' -- skills/objectstack-datanow returns the two rewritten rows, the quick-start example'senable.trackHistory: true(ledger view, valid) and one evalmust_not_containentry. No other file in the skill states a history default.packages/spec/src/data/object.zod.ts(the retiredenable.trashandversioningkeys) still send an author to per-fieldtrackHistory"for field-level history". On a field whose values already show, that flag changes nothing.Verification
origin/main70f454a23cbefore the edit: the old row was atskills/objectstack-data/SKILL.md:110; the contract isenable.fieldHistory(absent: values show;false: off for the object) plus the field's ownfieldHistory.Generated by Claude Code