Repository navigation
docs: the docs and spec comments describe trackHistory by the field-history model - #38238
Conversation
The data-modeling pages, the ObjectQL protocol pages and the metadata-driven concepts page glossed object `enable.trackHistory` as "field history tracking", and the field-types table called field `trackHistory` the activity-timeline switch. Field history is on by default: a changed field's old -> new values show on the activity stream, `fieldHistory: false` turns them off, and field `trackHistory` only opts a media or structured-JSON field in. Object `enable.trackHistory` shows the compliance ledger's field changes on the record page and gates the `history` verb; capture is always on, so it adds no write overhead either. The two spec comments that listed object/field `trackHistory` as the audit authoring surface say the same, and the security-context reference page is regenerated from the edited docblock. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibwWRQzuBbuvfHQMtYc
📓 Docs Drift Check
What this run could not see
Coarse fallback — 177 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): |
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 Contract-review-claim: session_01L9qibwSEecrzDjKjbk24r1 · head 92b38c0 · 2026-11-28T10:07Z |
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 Contract reviewServed-tier: PR #38238, card #38154, PR 1 of 2 ( Inputs read: the card body and its three comments (triage 7234566550, claim 7236959512, os-dev-report 7237313116), the PR body, its two comments (docs-drift 7237319190, review claim 7237696348), its file list, the net diff, and the head's check-runs: 70 runs, 60 success, 10 skipped, none failed, none pending. ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
Against the card: Ask 1's object half (ledger view and No must-fix, no should-fix.
Implemented-by: VERDICT: PASS |
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 The brief the contract reviewer above was handed, filled, for the seat to read before it adopts the record: Contract review brief — PR #38238 @
|
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 L1-a ACCEPT at
|
|
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU Landing · 2026-11-28T10:17Z · zone
|
Requested by Tesla · project thread
Part of #38154
repo:objectstack#3 · os-tesla · session_01L9qibwWRQzuBbuvfHQMtYc
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
resolveFieldHistoryenforces (the refusals merged in PR fix(spec): retired-key refusals prescribe the field-history model, not trackHistory #38064 say the same):content/docs/data-modeling/field-types.mdx: the fieldtrackHistoryrow now says it opts a media or JSON field into old → new values, that other fields show them already, and thatfalsedoes not hide them (fieldHistory: falsedoes).content/docs/data-modeling/objects.mdx(code comment and theenabletable row),content/docs/data-modeling/schema-design.mdx,content/docs/protocol/objectql/index.mdx,content/docs/concepts/metadata-driven.mdx: objectenable.trackHistoryis glossed as showing the audit ledger's field changes on the record page, not as "field history tracking". Theobjects.mdxrow adds thehistoryverb and says that every write is recorded either way and that values on the activity stream arefieldHistory's.content/docs/protocol/objectql/schema.mdx: the same gloss on theenableexample; the "Performance Impact" bullet no longer saystrackHistory: trueadds inserts to the audit table (the ledger records every write either way); the "When to enable" bullet says what it shows.packages/spec/src/system/index.tsand thesecurity-context.zod.tsmodule docblock no longer list fieldtrackHistoryas part of the audit authoring surface. They name the object'senable.trackHistory(ledger view,historyverb) beside the lifecycleauditretention, and say that field-change values arefieldHistory's.content/docs/references/system/security-context.mdxregenerated from that docblock (gen:schemathengen:docs; this one file changed).@objectstack/specpatch changeset: the edited.zod.tsdocblock ships in the package'sfiles[].Tests
check:generated/check:docs(readings below).Readings at 92b38c0 (base origin/main 9957484)
git grep -n -i "trackHistory" -- content/docs packages/spec/src/system skills/objectstack-project/evals ':!content/docs/releases' ':!content/docs/references', filtered for "field history", "history track", "track field", "field-level history", "timeline switch", "object/field": 0 hits incontent/docsandpackages/spec/src/system. The one remaining hit is the project skill's eval line, which is PR 2 of this card (below).content/docs/references/system/security-context.mdx):pnpm --filter @objectstack/spec buildexit 0 (lock VERDICT command-exit 0).dispatch-gates --ranreconciles 101 derived, 99 run (all exit 0), 2 NOT MEASURED (exit 3), 0 unrun. Five gates first answered PREREQUISITE NOT MET and were re-run afterturbo run buildof@objectstack/formula,@objectstack/lint...,@objectstack/objectql,@objectstack/client,@objectstack/client-react(47/47 tasks):check:doc-formula-expressions,check:doc-security-posture,check:skill-examples,check:docs-transcript-drift,check:lean-entry-closure, each exit 0.check:generatedandcheck:docsexit 0 with the regenerated page.check-plugin-teardown-shape.mjs --self-test(its fixture commit is out of this shallow clone's reach) andcheck:dual-build-cjs-loads(needs a fullpnpm build; this diff moves no package's build shape).Acceptance notes
protocol/objectql/schema.mdx"Performance Impact" (false: capture is always on) and "When to enable" bullets, same file and defect class.content/docs/releases/**(release history),content/docs/ui/pages.mdx(it already describes the object flag's ledger changes in the timeline),packages/lint/src/rule-explanations.ts(object meaning, correct), and the generated references other than the regenerated one (already in the fix(spec): retired-key refusals prescribe the field-history model, not trackHistory #38064 wording).trackHistory.trackChanges,feedTrackedandtrackedget thefieldHistoryanswer; their case and underscore variants (trackchanges,track_changes,FeedTracked,Tracked, …) get only the generic unrecognized-key refusal. Adding guidance for them is runtime refusal text, out of this card.Fixes #38154), after this one merges: theskills/objectstack-project/evals/project-process.jsoneval id 9 line that still "setstrackHistorywhere field-level history is wanted".Verification
Read first (by risk):
content/docs/data-modeling/objects.mdx: theenabletable'strackHistoryrow (the longest restatement).content/docs/protocol/objectql/schema.mdx: the "Performance Impact" bullet.packages/spec/src/system/index.ts: the audit-surface comment.Two-minute check:
git grep -n -i "field history track\|track field history\|enable field history" -- content/docsprints nothing.Generated by Claude Code