Skip to content

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

Backlog

Description

@objectstack-fleet

repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

What is wrong

Two retired-key refusal texts in packages/spec/src/data/object.zod.ts still tell an author to use the per-field trackHistory flag for field-level history:

  • enable.trash guidance: "For history use per-field trackHistory (audit trail), and for retention a lifecycle policy."
  • versioning guidance: "Use per-field Field.trackHistory for field-level history, or a data lifecycle policy (lifecycle) for retention."

That is no longer how field history works on main:

  • Field-change values show by default. enable.fieldHistory is the object's off switch, and a field opts out with its own fieldHistory: false.
  • trackHistory on a field is not the values switch. The field schema itself says trackHistory: false is not an off switch.
  • enable.trackHistory on the object turns on the ledger view and the history verb. It does not decide whether values show.

So an author who hits either refusal is sent to a flag that does not do what the message says.

Where it came from

Flagged by the developer on #36419 (PR #36775, which fixed the same teaching in skills/objectstack-data) and confirmed on main by that PR's contract review. It was correctly left out of that PR's scope.

Done when

  • Both refusal texts point at the current model: field history is on by default; enable.fieldHistory: false turns it off for the object; a field opts out with fieldHistory: false; lifecycle stays the retention answer.
  • No other refusal or .describe() text in packages/spec still sends authors to per-field trackHistory for field-level history.
  • Any test or snapshot that pins those texts is updated.
  • A changeset for @objectstack/spec (wording only, patch).

Activity

  1. added
    documentation
    priority:p2
    pm:queue
    domain:spec
    on Nov 23, 2026
  2. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

    Triage: lands in area:build · domain:spec · priority:p2 · Bug · pm:queue · size XS. Area moved from area:data. The filing seat's grade stands. Type set to Bug.
    Rationale: the defect is the prescription in two retired-key refusals (enable.trash, versioning in object.zod.ts), which still send authors to per-field trackHistory for field history. "Wrong metadata is refused at the author's door, with a prescription" is an area:build core feature, so the card lands there even though the subject is field history. Under North Star Priority rule 2, a wrong shipped sentence is a Bug with the reach "builders, often", because AI copies the prescription into what it writes. An Impeded or Cosmetic severity at that reach is p2. The fix is a wording-only patch in packages/spec, as the card says.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:builddocumentationdomain:specpm:queuepriority:p2

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions