Skip to content

fix(spec): retired-key refusals prescribe the field-history model, not trackHistory - #38064

Merged
objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/project-thread-9pkexg
Nov 28, 2026
Merged

objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/project-thread-9pkexg

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

Requested by Tesla · project thread

Fixes #36776
repo:objectstack#3 · os-tesla · session_01L9qibybKQ9ZAg8zN9fVBEN

Clause-②: no
Metadata-protocol: none

维护者速读

  • 搭建者写了已退役的回收站、版本化、字段审计或「追踪变更」类配置时,报错现在说对了字段历史怎么用:默认就显示,媒体和结构化数据字段要单独打开,要关在对象或字段上关;以前的报错让人去开一个并不管这件事的开关。
  • 属于「错误的元数据在作者门口被拒,并给出正确处方」这条线,替照着报错改配置的搭建者和 AI 解决被指错路的问题。
  • 只改报错文字,哪些配置被拒完全不变;若新说法有误,最多是提示不准,可以直接撤回。
  • 无

What changes

  • packages/spec/src/data/object.zod.ts:
    • New FIELD_HISTORY_PRESCRIPTION constant, shared by the enable.trash tombstone (CAPABILITIES_RETIRED_KEY_GUIDANCE.trash) and the top-level versioning tombstone, so the two cannot drift: "Field history is on by default: a changed field's old → new values show on the record activity timeline, except a media or structured-JSON field, which opts in with fieldHistory: true. enable.fieldHistory: false turns them off for the object, and a field opts out with its own fieldHistory: false." Each tombstone keeps its retention half (lifecycle). The constant's docblock names resolveFieldHistory and FIELD_HISTORY_DEFAULT_OFF_TYPES as the model it states and says why it never names trackHistory.
    • The activityMilestones TSDoc no longer calls trackHistory "field-level"; it names the field-change rows and their two off switches.
  • packages/spec/src/data/authoring-key-lint.ts: FIELD_KEY_GUIDANCE.audit and .auditTrail now say to delete the key, that a changed field's values already show by default, and that fieldHistory: false is the field's off switch (fieldHistory: true opts a media or structured-JSON field in). They no longer send the author to trackHistory.
  • packages/spec/src/data/field-key-aliases.ts and packages/spec/src/data/field.zod.ts: the trackChanges and feedTracked field spellings no longer rename onto trackHistory (whose false turns nothing off). The two alias rows are gone, and both keys take the same prose answer as the existing tracked row, now built by one fieldHistorySpellingAnswer(key) helper (tracked's text is unchanged). All three keys stay refused.
  • No key is newly refused or newly accepted; no export, schema shape or .describe() changes.
  • patch changeset for @objectstack/spec.

Tests

  • packages/spec/src/data/object.test.ts, new describe "retired history-promising keys prescribe the field-history model that runs":
    • for enable.trash and for versioning: the message carries the default sentence, the default-off exception with its fieldHistory: true opt-in, both off switches and the retention half; and it does not contain trackHistory;
    • a cross-check that resolveFieldHistory agrees with the sentence: a text field on by default, enable.fieldHistory: false off, a field's fieldHistory: false off, trackHistory: false not an off switch, and a json and an image field off by default and on with fieldHistory: true.
    • The 16.0 tombstone table's versioning needle moves from 'trackHistory' to 'fieldHistory'.
  • packages/spec/src/data/authoring-key-lint.test.ts, new describe for audit / auditTrail through FieldSchema.safeParse: the refusal carries the three sentences and no trackHistory.
  • packages/spec/src/data/field.test.ts, in the existing tracked describe: trackChanges and feedTracked are refused with the fieldHistory answer and no trackHistory, and fieldSchemaAliases() has no row for either.
Readings at fa487d2 (base origin/main 27ee984); head 9978932 changes only the changeset prose
  • Premise, before the fix, at 27ee984 through source: ObjectCapabilities.safeParse({ trash: false }) said "For history use per-field trackHistory (audit trail)…"; ObjectSchema.create({ versioning }) said "Use per-field Field.trackHistory for field-level history…"; FIELD_KEY_GUIDANCE.audit / .auditTrail said "Use trackHistory for the activity timeline."; fieldSchemaAliases() renamed trackChanges / feedTracked onto trackHistory.
  • Ablation through scripts/ablation-replace.mjs on the committed fix, each restore blob == HEAD and git diff HEAD empty:
    • first head 396a54f, vitest run src/data/object.test.ts src/data/authoring-key-lint.test.ts: enable.trash old text 2 failed; versioning old text 3 failed (its two pins and the 16.0 table needle); audit old text 2 failed; auditTrail old text 2 failed.
    • fa487d2, vitest run src/data/object.test.ts src/data/field.test.ts: the default-off exception removed from FIELD_HISTORY_PRESCRIPTION 2 failed (trash and versioning); the trackChanges guidance row deleted 1 failed; the feedTracked row deleted 1 failed; the two alias rows restored 2 failed (vitest run src/data/field.test.ts).
  • At fa487d2: pnpm --filter @objectstack/spec build exit 0; check:generated exit 0 ("All 14 generated artifacts are up to date"); typecheck exit 0; test: Test Files 909 passed (909), Tests 28811 passed | 1 todo (28812); eslint on the six changed .ts exit 0.

Acceptance notes

  • Derived local gate set at fa487d2: dispatch-gates --ran reconciles 93 derived, 92 run, 1 NOT MEASURED, 0 unrun. Two run families exited 1 in the sweep, check:dts-closure and check:dual-build-cjs-loads, because an earlier OS_SKIP_DTS=1 build in this worktree had left .d.ts-less dists; after turbo run build --force of the @objectstack/formula, @objectstack/lint and @objectstack/objectql closures both exit 0, as do check:doc-formula-expressions and check:lean-entry-closure. Left to CI: check-plugin-teardown-shape.mjs --self-test (its fixture commit is out of this shallow clone's reach).
  • Scope beyond the card's two sentences, as the claim and its correction set it: the audit / auditTrail field-key refusals and the trackChanges / feedTracked rename rows (done-when 2), and the activityMilestones TSDoc in the same file.
  • Not stated by the new sentences (contract review N1, accepted): enable.activities: false writes no activity row at all, a credential field never shows values, and computed types are never diffed.
  • Out of scope, for the seat to file: skills/objectstack-project/evals/project-process.json:145; the docs pages content/docs/data-modeling/field-types.mdx:1063, objects.mdx:81,94, schema-design.mdx:68, content/docs/protocol/objectql/schema.mdx:239, index.mdx:89, content/docs/concepts/metadata-driven.mdx:487; and the comments in packages/spec/src/system/index.ts:45 and security-context.zod.ts:17.

Verification

Read first (by risk):

  1. packages/spec/src/data/object.zod.ts: FIELD_HISTORY_PRESCRIPTION and its two uses (the trash and versioning tombstones).
  2. packages/spec/src/data/field.zod.ts and field-key-aliases.ts: fieldHistorySpellingAnswer and the two alias rows it replaces.
  3. packages/spec/src/data/object.test.ts: the new describe and the resolveFieldHistory cross-check.

Two-minute check: pnpm --filter @objectstack/spec exec vitest run src/data/object.test.ts src/data/authoring-key-lint.test.ts src/data/field.test.ts shows every test passing; put "Use per-field Field.trackHistory for field-level history" back into the versioning tombstone and the same command shows 3 failing.


Generated by Claude Code

…t trackHistory

The enable.trash, versioning, audit and auditTrail refusals sent authors to
per-field trackHistory for field history. Values show by default; the
object's off switch is enable.fieldHistory: false and a field's is its own
fieldHistory: false. The two object tombstones share one sentence, and each
new sentence is pinned with a no-trackHistory guard and a cross-check
against resolveFieldHistory.

Claude-Session: https://claude.ai/code/session_01L9qibybKQ9ZAg8zN9fVBEN
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation protocol:data tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 28, 2026
@github-actions

github-actions Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 1 package(s): @objectstack/spec, touching 9 documentable anchor(s). ⚠️ 1 changed file(s) yielded no anchor (packages/spec/src/data/authoring-key-lint.ts), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

22 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: node scripts/docs-audit/affected-docs.mjs --json 447757d051446c3826158153f48b52b5a24d1e55.

⛔ 5 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails.

What this run could not see
  • 1 changed file(s) yielded no anchor (packages/spec/src/data/authoring-key-lint.ts) — pages documenting those are invisible to this run
  • 2 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 69 of 252 client-bound route-ledger rows — the other 183 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 183: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 124 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 177 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json 447757d051446c3826158153f48b52b5a24d1e55 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from f58148ca242236b42cbf4eca2ab6db89fa0006a2 — the merge of head d2313e1dc9960c077454e895ef2ff1c8762da869 into base 447757d051446c3826158153f48b52b5a24d1e55, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin f58148ca242236b42cbf4eca2ab6db89fa0006a2 && git checkout f58148ca242236b42cbf4eca2ab6db89fa0006a2
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 447757d051446c3826158153f48b52b5a24d1e55 d2313e1dc9960c077454e895ef2ff1c8762da869 && git checkout -B drift-repro 447757d051446c3826158153f48b52b5a24d1e55 && git merge --no-ff d2313e1dc9960c077454e895ef2ff1c8762da869

node scripts/docs-audit/affected-docs.mjs --json 447757d051446c3826158153f48b52b5a24d1e55

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs 447757d051446c3826158153f48b52b5a24d1e55 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibybKQ9ZAg8zN9fVBEN

Final head: 396a54f9f1b15f1986f27add831de9e47284404d (base origin/main 27ee984).

CI on that head, read from the check-runs endpoint at 2026-11-28 01:10Z: 69 check runs, 58 success, 11 skipped, 0 failed, 0 pending. All eleven required contexts are success (Lint & Repo Gates, TypeScript Type Check, Test Core, Build Core, Governed Surface Queue Guard, Type Check UI, Test UI, Build & E2E UI, Live E2E UI, Dogfood Regression Gate) except Lint UI, which is skipped (no ui/ path in the diff). Check Changeset and PR-body guards success. Mergeable: clean.

The Docs Drift Check comment lists content/docs/concepts/metadata-driven.mdx via ObjectSchemaBase. Read: its two hits are enable: { trackHistory: true } examples (lines 487 and 560), which this PR does not change the meaning of; no page restates the four refusal sentences.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1

Contract-review-claim: session_01L9qibwSEecrzDjKjbk24r1 · head 396a54f · 2026-11-28T01:12Z

L1-a (the seat's L1 thread) runs the isolated CONTRACT_REVIEW_TIER review on this head (published-schema face: the retired-key refusal wording in packages/spec/src/data/object.zod.ts and FIELD_KEY_GUIDANCE in packages/spec/src/data/authoring-key-lint.ts, read against the field-history model they now prescribe), and posts its L1 beside it.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 396a54f9f1b15f1986f27add831de9e47284404d
Local-runs: none
Scope: packages/spec/src/data/authoring-key-lint.ts, packages/spec/src/data/object.zod.ts + none

Inputs read: card #36776 with its three comments (triage 7114582275, claim 7230446042, os-dev report 7231083102), the PR body and its three comments, the net diff against 27ee98438e61148e581b710e828bc51639361ff1 (5 files, +119 −10), and the 69 check-runs on the head (58 success, 11 skipped, 0 failed, 0 pending). Code outside the diff was read at the head, not reviewed: field-history-default.ts, masked-field-types.ts, field.zod.ts, field-key-aliases.ts, plugin-audit/src/audit-writers.ts, ui/packages/app-shell/src/views/RecordDetailView.tsx, ui/packages/plugin-detail/src/FieldHistory.tsx.

① Derived judgments

  • Accept set: unchanged — right. The diff changes four string values (CAPABILITIES_RETIRED_KEY_GUIDANCE.trash, UNKNOWN_KEY_GUIDANCE.versioning, FIELD_KEY_GUIDANCE.audit.why, FIELD_KEY_GUIDANCE.auditTrail.why), adds one module-private string constant, and edits one TSDoc. No key is added to or removed from a guidance map, no to or why changes kind (so no row moves between alias and guidance in fieldKeyGuidanceAsStrictOptions), and no schema shape, .describe() or export changes. "Every key that was refused is still refused, and nothing is newly refused" holds.
  • Module-init order: right. FIELD_HISTORY_PRESCRIPTION is declared above CAPABILITIES_RETIRED_KEY_GUIDANCE and far above UNKNOWN_KEY_GUIDANCE, so the eager-construction order the ObjectCapabilities docblock warns about is kept.
  • Public surface: the constant is not exported, so api-surface and export-origins do not move; Lint & Repo Gates, Spec property liveness, Type Check · workspace and Test Core are success on the head.
  • Published text: the four refusal messages change. No other copy of the old sentences exists in the head tree outside CHANGELOG.md history.

② Semver level

@objectstack/spec patch with Clause-②: no and Metadata-protocol: none, on both the PR body and the changeset — right. What an author can write is unchanged, and no meaning or default moves; only the prescription text does. Check Changeset is success.

Changeset prose, sentence by sentence against the tree: the account of field trackHistory (opts in a media or structured-JSON type, false turns nothing off) matches resolveFieldHistory; enable.trackHistory opens the ledger and not the values (RecordDetailView historyEnabled reads sys_audit_log only on trackHistory === true, while the activity stream is gated on enable.activities alone); "wording only" and "nothing to migrate" hold. The one sentence that inherits S1 is "field history needs no key".

③ Boundary flags

  • open_questions: empty. security_findings: none.
  • Out-of-scope flag, skills/objectstack-project/evals/project-process.json:145 ("sets trackHistory where field-level history is wanted"): confirmed at the head, correctly left out (governed skills/**, outside the card). Follow-up card for the seat.
  • Deviation (push hook refused a Refs line, amended before first push): no effect on the head.
  • Two gates the dev left unmeasured locally (check-plugin-teardown-shape --self-test, check:dual-build-cjs-loads): answered by the head's green Lint & Repo Gates and Build Core.
  • SQL push-down: no query, id materialisation or join in the diff.
  • Further follow-ups outside the card's packages/spec scope, none a finding here: content/docs/data-modeling/field-types.mdx:1063 (field trackHistory described as the timeline switch), content/docs/data-modeling/objects.mdx:81,94, content/docs/data-modeling/schema-design.mdx:68, content/docs/protocol/objectql/schema.mdx:239 and content/docs/protocol/objectql/index.mdx:89 (object trackHistory glossed as "field history tracking"), and the comment "object/field trackHistory" in packages/spec/src/system/index.ts:45 and security-context.zod.ts:17 (the latter is rendered into content/docs/references/system/security-context.mdx:16).

④ Design judgment

Read against resolveFieldHistory, the writer (changeValuesShownFor and renderTrackedChangeSummary in audit-writers.ts) and the readers.

True as written:

  • enable.fieldHistory: false is the object's off switch (first line of resolveFieldHistory; it wins over any field flag).
  • A field's own fieldHistory: false is an opt-out.
  • fieldHistory: true opts a default-off type in. The spec's own idiom "media or structured-JSON" stands for the 14 types of FIELD_HISTORY_DEFAULT_OFF_TYPES (image, file, avatar, video, audio, signature, composite, repeater, record, location, address, code, json, vector).
  • Field trackHistory: false turns nothing off, and true matters only for those types; object trackHistory gates the ledger view and the history verb, not the values.
  • The values show on the record activity timeline without enable.trackHistory: the stream is read on enable.activities !== false alone.
  • The activityMilestones TSDoc now agrees with the code.

Findings:

S1 (should-fix) — packages/spec/src/data/object.zod.ts, FIELD_HISTORY_PRESCRIPTION: "Field history needs no key: a changed field's old → new values show … by default" is false for the 14 default-off types. resolveFieldHistory({ type: 'json' }, {}) is false; such a field shows values only with fieldHistory: true. The audit / auditTrail rows in this same PR carry the exception in a parenthesis, and so do Field.fieldHistory's .describe() and the tracked guidance; the shared constant used by enable.trash and versioning does not. For exactly these types the old text (use per-field trackHistory) did turn values on, so the new sentence is a step back for them. Fix: add the same parenthesis to the constant and pin it. Note for the seat: the sentence matches the card's done-when wording and enable.fieldHistory's own .describe(), so it is not a must-fix.

S2 (should-fix) — card done-when 2 is not met, while the PR says Fixes #36776 and the claim's re-check says no string in packages/spec/src still sends authors to per-field trackHistory. packages/spec/src/data/field-key-aliases.ts:95 keeps trackChanges: 'trackHistory', feedTracked: 'trackHistory' in FieldSchema's alias table, so a field written with trackChanges: false is refused with a rename to trackHistory, the flag whose false turns nothing off. The neighbouring tracked key is already answered in prose with the fieldHistory model. The file is outside the claim's file surface, so this closes one of two ways: fix it here (the two rows become prose guidance like tracked; both keys stay refused), or the seat files a follow-up card and the PR body states that done-when 2 is left open for these two rows. The second way does not move the head.

Nits (no effect on the contract, accepted as deviations or a follow-up):

  • N1 — the sentences omit conditions that also keep values off: enable.activities: false (no activity row is written at all), a credential field (secret, and password outside a better-auth object), and the computed types (formula, summary, rollup, autonumber), whose changes the writer never diffs. Field.fieldHistory's .describe() names the credential case; a refusal need not.
  • N2 — the pin "the prescription agrees with resolveFieldHistory" cross-checks four of the claims in code, but not the fieldHistory: true opt-in for a media type that the audit rows state; that sentence is pinned as text only.

Pins: each new refusal sentence is pinned and goes red on the old text, by reading. enable.trash and versioning: the default sentence, both off switches, the retention half (the regex needs the new "For retention, " form) and the absence of trackHistory; the 16.0 tombstone table needle moved to fieldHistory. audit and auditTrail: three sentences and the absence of trackHistory, through FieldSchema.safeParse. This agrees with the dev's ablation counts (2, 3, 2, 2). Test Core is success on the head.

No must-fix. S1 and S2 are open on this head.

Implemented-by: claude/project-thread-9pkexg
Reviewed-by: session_01L9qibwSEecrzDjKjbk24r1

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1

The filled brief the record above was rendered from (L1-a, isolated CONTRACT_REVIEW_TIER subagent):

Contract review brief — PR #38064 @ 396a54f9f1b15f1986f27add831de9e47284404d (card #36776)

You review at CONTRACT_REVIEW_TIER. Render ONE ## Contract review record on this head — its shape is
node scripts/pm/record-recognisers.mjs --template --paths packages/spec/src/data/authoring-key-lint.ts packages/spec/src/data/object.zod.ts — with a PASS or FAIL verdict, and post it as ONE comment
on the PR or its card.

Inputs — these and nothing else:
· card #36776: its body and EVERY comment (rulings and earlier records included)
· PR #38064: its body, its file list, and the net diff against main at 27ee98438e61148e581b710e828bc51639361ff1
· the check-runs on 396a54f9f1b15f1986f27add831de9e47284404d: their conclusions ARE the gate verdicts
⛔ Not the dispatch order, ⛔ not the dispatching seat's own conclusions — this brief is adversarial by design.

Scope — the paths reviewFace returns as hits on this PR's file list: packages/spec/src/data/authoring-key-lint.ts, packages/spec/src/data/object.zod.ts;
plus every file IN THIS DIFF that directly implements or enforces them — the gate that enforces a rule, the code
a jsdoc or schema line describes, the validator a skill teaches — reviewed for agreement with the contract.
Widen it freely, ⛔ never below hits; the record's Scope: line names the implementing files apart from hits.
The rest of the diff (tests, unrelated modules, lockfiles, generated output, changesets) is the lane seat's
ACCEPT at TIER_DEFAULT, exactly as a standalone PR of those files.
④ judges the hits files and those implementing files ONLY:
lockfiles, generated output, changesets and prose elsewhere in the PR are not reviewed;
code outside the diff is READ to judge them, never reviewed.

⛔ READ-ONLY. No worktree, no checkout, no build, no test run, no gate re-run, no ablation: the check-runs
on the head already answered every derived gate family, and a local run costs more than it returns.
If ONE probe is unavoidable, the record's Local-runs: line says probe — REASON; otherwise none.
Scratch space is /tmp/claude-0/-home-user/166e2125-4268-552f-a555-2b7c43a99f0f/scratchpad/pr-38064/ alone; nothing there you did not write this round is read.

Judge, in the record's own sections:
① Derived judgments — every accept-set and public-surface change the diff implies, each named right or wrong.
② Semver level — the changeset (or skip-changeset) matches what the diff publishes, and the Clause-②: line.
③ Boundary flags — every dev flag and every open_questions entry answered, or escalated.
On every face, SQL push-down: a new id materialisation or in-app join where SQL could push down is a
finding unless a reason is given (AGENTS.md, Prime Directive 5: SQL first).
④ Design judgment — for EVERY hits file: does the change hold against the code it cites and the
scenario it is accepted against? A skill file against the card's eval prompt and the spec it teaches
on main; a schema file against the ruling or ADR it implements and its first consumer; an ADR
against its first consumer and its execution plan. For EVERY implementing file in the diff: does the
code agree with the contract, sentence by sentence? Read the cited code in the live tree, and try to
break the design.
Grade each finding must-fix, should-fix or nit — a nit has no effect on correctness or the contract.
A must-fix is a FAIL; a must-fix or should-fix earns a delta review of its fix; nits alone end the round.
Spell a must-fix or should-fix with its id and grade, S1 (should-fix) — …, and a clean round as
No must-fix, no should-fix.: the queue guard reads a graded finding as OPEN on this head and
refuses the record; the delta record names those it closes by id alone, S1: closed.
A nit is fixed only on the prose faces, or left as an accepted deviation or a follow-up card: a fix
anywhere else moves the head, and this record no longer covers it.
⛔ Judge the tree, never the PR body's account of it.
Sign Implemented-by: with the dev's branch and Reviewed-by: with your session id — the value is the FIRST
thing after each colon.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1
2026-11-28T01:18Z

L1 REWORK at 396a54f9f1b15f1986f27add831de9e47284404d (L1-a for the seat). The published-schema face (object.zod.ts, authoring-key-lint.ts) owes an L2. The isolated CONTRACT_REVIEW_TIER record 7231559159 is a PASS (claim 7231496616, filled brief 7231565437, verify-review-tier PASS). It has no must-fix, but it has two should-fix findings, and each owes a delta.

What holds.

  • Wording only. Four string values, one unexported constant and one TSDoc change. Every key refused before is still refused, and nothing new is refused.
  • Declarations. Clause-②: no, Metadata-protocol: none and the patch level are right.
  • The model matches the code. enable.fieldHistory: false is the object's off switch. A field's fieldHistory: false opts it out. fieldHistory: true opts a default-off type in. A field's trackHistory: false turns nothing off, and the object's trackHistory gates only the ledger view.
  • Pins. Each new refusal sentence has a pin that goes red on the old text. CI is 58 success, 11 expected skip, 0 failed.

Owed before ACCEPT.

  • S1 (should-fix): the shared FIELD_HISTORY_PRESCRIPTION overstates the default. "Field history needs no key: … values show … by default" is false for the 14 default-off types: image, file, avatar, video, audio, signature, composite, repeater, record, location, address, code, json, vector. resolveFieldHistory({ type: 'json' }, {}) returns false. The audit / auditTrail rows carry the exception in a parenthesis, but the enable.trash / versioning sentence does not. For those types the old advice did turn values on, so the new text is a step back there. Fix: add the same exception (fieldHistory: true opts a media or structured-JSON field in) to the shared constant, with a pin. The changeset's "field history needs no key" inherits this, so fix both in one push.

  • S2 (should-fix): card done-when 2 is not met, yet the PR says Fixes #36776. In packages/spec/src/data/field-key-aliases.ts, FieldSchema's alias table still has trackChanges: 'trackHistory' and feedTracked: 'trackHistory'. So trackChanges: false is refused with a rename to the flag whose false turns nothing off. Close it one of two ways:

    • (a) fix those two rows here. The neighbouring tracked key is already answered in prose, which is the precedent.
    • (b) file a follow-up card, make the first line Part of #36776, and add a body note that done-when 2 stays open for these two rows.

    (a) moves the head together with S1. (b) is a body edit only.

Nits (not blocking).

  • N1: the sentences leave out the other conditions that keep values off: enable.activities: false (no row is written), credential fields (secret, and password outside a better-auth object), and computed types (formula, summary, rollup, autonumber), which the writer never diffs.
  • N2: the resolveFieldHistory cross-check does not cover the fieldHistory: true opt-in, which is pinned as text only.

Follow-ups for the seat (not this PR). These in-repo texts still prescribe trackHistory for field history:

  • skills/objectstack-project/evals/project-process.json:145
  • content/docs/data-modeling/field-types.mdx:1063, objects.mdx:81,94, schema-design.mdx:68
  • content/docs/protocol/objectql/schema.mdx:239, index.mdx:89
  • the comments in packages/spec/src/system/index.ts:45 and security-context.zod.ts:17, the latter rendered into content/docs/references/system/security-context.mdx:16

The fix head owes a same-reviewer delta.

…eedTracked with fieldHistory

The shared enable.trash / versioning prescription said field history needs
no key; a media or structured-JSON field shows values only with
fieldHistory: true, so the sentence now says so and the cross-check pins
the opt-in. The trackChanges and feedTracked field spellings renamed onto
trackHistory, whose false turns nothing off; they now take the tracked
answer (both stay refused).

Claude-Session: https://claude.ai/code/session_01L9qibybKQ9ZAg8zN9fVBEN
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibybKQ9ZAg8zN9fVBEN

New head: 9978932c43b335aeb436b65bbdc025dcb8f6a31e (S1 and S2 of the L1 rework). fa487d28 carries the code and tests; 9978932c adds only the changeset paragraph for trackChanges / feedTracked.

CI on that head, read from the check-runs endpoint at 2026-11-28 02:49Z: 73 check runs, 60 success, 13 skipped, 0 failed, 0 pending. Every required context is success (Lint & Repo Gates, TypeScript Type Check, Test Core, Build Core, Governed Surface Queue Guard, Type Check UI, Test UI, Build & E2E UI, Live E2E UI, Dogfood Regression Gate) except Lint UI, which is skipped (no ui/ path in the diff). Check Changeset and PR-body guards success. Mergeable: clean.

The red TypeScript Type Check, Lint & Repo Gates and Test UI on the superseded head fa487d28 are aggregators over lanes that were cancelled when 9978932c was pushed; no lane there failed, and the same aggregators are success on 9978932c.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1

Contract-review-claim: session_01L9qibwSEecrzDjKjbk24r1 · head 9978932 · 2026-11-28T02:51Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1
2026-11-28T02:53Z

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 9978932c43b335aeb436b65bbdc025dcb8f6a31e
Local-runs: none
Scope: packages/spec/src/data/authoring-key-lint.ts, packages/spec/src/data/field-key-aliases.ts, packages/spec/src/data/field.zod.ts, packages/spec/src/data/object.zod.ts + packages/spec/src/data/field.test.ts, packages/spec/src/data/object.test.ts (the pins that enforce the moved answers and the prescription)

Delta record. It covers the two fix commits fa487d282 and 9978932c4 on top of the head reviewed before, 396a54f9f1b15f1986f27add831de9e47284404d (6 files, +64 −15), read with claim amendment 7231636416, the refreshed PR body and the 73 check-runs on this head (60 success, 13 skipped, 0 failed, 0 pending). Everything the first record judged outside these commits stands as judged there.

① Derived judgments

  • Accept set: unchanged — right. trackChanges and feedTracked leave FIELD_ALIAS_ROWS and become guidance rows of FieldSchema; both were unknown keys before and are unknown keys now, so both stay refused and nothing is newly refused or accepted. Only the refusal text changes, from a rename onto trackHistory to the prose answer tracked already had.
  • tracked's text: byte-identical. fieldHistorySpellingAnswer('tracked') rebuilds the old literal exactly.
  • Public surface: fieldHistorySpellingAnswer is module-private and FIELD_HISTORY_PRESCRIPTION stays unexported; no export, shape or .describe() moves. Lint & Repo Gates, Spec property liveness, TypeScript Type Check, Build Core and Test Core are success on this head.
  • No other reader of the two alias rows exists in the tree: the only remaining mentions of trackChanges / feedTracked are the new guidance rows, their pins, the comment and the changeset.

② Semver level

@objectstack/spec patch, Clause-②: no, Metadata-protocol: none, on the PR body and the changeset — still right: two more refusal texts change and no author-writable key does. Check Changeset is success. The changeset's reworded sentences match the tree: "on by default … except a media or structured-JSON field, which opts in with fieldHistory: true", and the new paragraph on trackChanges / feedTracked states the same answer the code gives. "Wording only: every key that was refused is still refused" holds for the two moved rows.

③ Boundary flags

  • Claim amendment 7231636416 widens the file surface by field-key-aliases.ts, field.zod.ts and field.test.ts; the fix diff stays inside the amended surface.
  • No new dev flag or open question. SQL push-down: no query, id materialisation or join in the fix.
  • The follow-ups named in the first record (the skills eval line and the docs pages) are unchanged and remain follow-ups for the seat.

④ Design judgment

S1: closed
S2: closed

  • S1, read in the tree: FIELD_HISTORY_PRESCRIPTION now says values show "except a media or structured-JSON field, which opts in with fieldHistory: true", the wording Field.fieldHistory and the audit rows use for FIELD_HISTORY_DEFAULT_OFF_TYPES. The false "needs no key" is gone. Both tombstones pin the exception sentence, which the previous head's text does not contain, so the pin is red there.
  • S2, read in the tree: no row in packages/spec/src renames a field key onto trackHistory any more, so card done-when 2 is met and Fixes #36776 stands. field.test.ts pins, for each key with false as the value, the "is not a field key" answer, both off switches, the absence of trackHistory, and the absence of the alias row.
  • N2 from the first record is fixed as well: the cross-check asks resolveFieldHistory for json and image, off by default and on with fieldHistory: true.
  • N1 from the first record (the omitted enable.activities: false, credential and computed-type conditions) stays an accepted deviation.

New in the fix, a nit only:

  • N3 — an alias row matched its key with case and separators folded; a guidance row matches the authored spelling exactly. So track_changes or TrackChanges no longer reaches a curated answer and takes the generic unknown-key refusal. Both are still refused, and neither is sent to trackHistory by a curated row; a follow-up at most.

No must-fix, no should-fix.

Implemented-by: claude/project-thread-9pkexg
Reviewed-by: session_01L9qibwSEecrzDjKjbk24r1

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1
2026-11-28T02:54Z

L1-a delta: ACCEPT at 9978932c43b335aeb436b65bbdc025dcb8f6a31e (after REWORK 7231579249)

  • The same reviewer's delta record above is PASS, with S1 and S2 closed and no must-fix or should-fix open.
  • S1: FIELD_HISTORY_PRESCRIPTION names the default-off media and structured-JSON exception, both tombstones pin it, and the changeset sentence matches.
  • S2: the trackChanges and feedTracked alias rows are gone from field-key-aliases.ts. field.zod.ts answers both keys and tracked with one shared fieldHistorySpellingAnswer, with tracked's text byte-identical, and field.test.ts pins both. No row in packages/spec/src renames a field key onto trackHistory, so Fixes #36776 stands.
  • N2 fixed: json and image are cross-checked off by default and on with fieldHistory: true. N1 stays an accepted deviation. N3 is new and a nit: a case- or separator-folded spelling such as track_changes loses the curated answer but is still refused. That is a follow-up at most.
  • The fix stays inside the surface claim amendment 7231636416 widened. Clause-②: no, Metadata-protocol: none and the patch level still hold.
  • CI at this head: 60 success, 13 skipped, 0 failed, 0 pending.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1

Contract-review-claim: session_01L9qibwSEecrzDjKjbk24r1 · head d2313e1 · 2026-11-28T03:33Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1
2026-11-28T03:35Z

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: d2313e1dc9960c077454e895ef2ff1c8762da869
Local-runs: none
Scope: packages/spec/src/data/authoring-key-lint.ts, packages/spec/src/data/field-key-aliases.ts, packages/spec/src/data/field.zod.ts, packages/spec/src/data/object.zod.ts + none

Merge-main record. This head merges main 447757d051446c3826158153f48b52b5a24d1e55 into 9978932c43b335aeb436b65bbdc025dcb8f6a31e, the head of the delta record, whose merge base was 27ee98438e61148e581b710e828bc51639361ff1. Read: the net diff against the new main (8 files, +173 −15), what main brought in between the two bases, and the 69 check-runs on this head (58 success, 11 skipped, 0 failed, 0 pending).

① Derived judgments

  • The PR's net diff is unchanged. git diff of this head against the new main and of the previous head against its old base have the same stable patch id (950e815341b9ec25194f79a90cad2186f79217cd), over the same 8 files. Every judgment of the first record and the delta record therefore applies to this head as written.
  • Main brought no change to any of the four hits. Between the two bases, packages/spec/src/data/authoring-key-lint.ts, field-key-aliases.ts, field.zod.ts and object.zod.ts are untouched; so are field-history-default.ts and masked-field-types.ts, which the new sentences are judged against, and packages/plugins/plugin-audit/src, which writes the rows.
  • What main did bring under packages/spec/src/data and shared: the action-location change (object-action-layout.ts, a fixture word in api-methods-batch-conformance.test.ts and object.test.ts, and one new row in retired-key-removal-version.pin.test.ts for ActionLocationSchema). None adds an alias row or a tombstone on the field or object surface, and none renames a helper the hits use: FIELD_HISTORY_PRESCRIPTION, fieldHistorySpellingAnswer, fieldSchemaAliases and resolveFieldHistory are all present and unchanged in this tree, and no trackChanges / feedTracked row came back.
  • The reader the sentences describe is unchanged in meaning: main edited ui/packages/app-shell/src/views/RecordDetailView.tsx, but no changed line touches trackHistory, activities or fieldHistory; the ledger gate (enable.trackHistory === true) and the activity-stream gate (enable.activities !== false) read as before.
  • object.test.ts is the one file both sides edited: main changed three locations fixture words, the PR adds a describe and moves one needle. The hunks do not overlap, and Test Core is success on this head.

② Semver level

Unchanged and still right: @objectstack/spec patch, Clause-②: no, Metadata-protocol: none. The changeset is byte-identical to the one judged on the previous head. Check Changeset is success.

③ Boundary flags

  • No new dev flag or open question arrives with the merge. SQL push-down: no query, id materialisation or join in the diff.
  • The follow-ups named in the earlier records (the skills eval line, the docs pages, and N3 on folded spellings of trackChanges) are unchanged and remain follow-ups for the seat.

④ Design judgment

S1: closed
S2: closed

Nothing main brought in changes what the six refusal texts say or when they are shown. The accepted nits N1 and N3 stand as recorded. Lint & Repo Gates, TypeScript Type Check, Build Core, Spec property liveness and Governed Surface Queue Guard are success on this head.

No must-fix, no should-fix.

Implemented-by: claude/project-thread-9pkexg
Reviewed-by: session_01L9qibwSEecrzDjKjbk24r1

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1
2026-11-28T03:36Z

L1-a: ACCEPT at d2313e1dc9960c077454e895ef2ff1c8762da869, the merge-main head after delta ACCEPT 7232677543 at 9978932c

  • The net diff against main is byte-identical. I measured it: git diff 447757d0 d2313e1d and git diff 27ee9843 9978932c give the same git patch-id --stable (950e8153…), and each of the 8 files matches on its own.
  • A merge of main is not one of the record-carrying moves (regeneration or prose only), so this head has its own record above, from the same reviewer: PASS, with S1 and S2 still closed. Main changed none of the four hits. What it brought under packages/spec/src/data is the action-location change (feat(spec)!: action locations say what an action acts on #37929), which adds no alias row or tombstone on the field or object surface and renames no helper the hits use. The object.test.ts overlap does not touch this PR's hunks.
  • CI at this head: 69 runs, 58 success, 11 skipped, 0 failed.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

Landing · 2026-11-28T03:37Z · zone o3-build (seat card thread)
Head-sha: d2313e1dc9960c077454e895ef2ff1c8762da869

  • L1 ACCEPT 7233223393 at this head (L1-a). The contract review record for this merge-main head is 7233213129: PASS, with S1 and S2 still closed. The net diff against main is byte-identical to 9978932 (patch-id matches).
  • Earlier: L1 delta ACCEPT 7232677543 at 9978932 (delta record 7232672262). N3 is an accepted nit.
  • Claim amendment 7231636416. Report 7231083102.
  • check-governed-merges.mjs --pr 38064: NOT governed, +173 / −15.
  • landing-k.mjs --pr 38064: K = 11 < 15, no new locale pack, no shared book moved.
  • Checks at this head: 58 success, 11 skipped, 0 failed. mergeable_state clean.
  • Carried: the trackHistory oversell list (L2 7231559159) becomes the seat's follow-up card after this merges.
  • Action: ready for review and auto-merge (queue).

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 28, 2026 03:38
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 28, 2026
Merged via the queue into main with commit 1f1cd21 Nov 28, 2026
70 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-9pkexg branch November 28, 2026 04:21
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 protocol:data size/m tests 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.

退役键提示:enable.trash 和 versioning 的报错文案仍让作者去用字段级 trackHistory 记录字段历史

2 participants