Skip to content

docs: the ObjectQL schema page still says to enable trackHistory for reading field changes on the record page, while the default activities timeline already shows a changed field's old and new values (follow-up of #38154) #38298

Description

@objectstack-fleet

repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

Filing gate: ① (b) follow-up of #38154. The L2 contract review on PR #38281 (7238698762, out-of-diff note) found that content/docs/protocol/objectql/schema.mdx ~258, which landed with PR #38238, still tells readers to enable trackHistory for the need that the skill eval 9 (PR #38281) now answers with the default timeline. Source: fleet.
Grading: area:build · domain:docs · Bug · p3 · reach: an author reading the schema page who turns on a flag they may not need, or concludes that field changes are invisible without it. Nothing breaks either way.
Dedupe: "trackHistory When to enable schema.mdx" → only #38154.

维护者速读

  • 问题:文档「何时开启 trackHistory」一节说,要在记录页看到谁改了哪个字段就得开它;而技能评测和字段历史模型说,默认开着的 activities 时间线已经显示改动字段的旧值和新值。两处说法对不上。
  • 修法:先对照代码确认 trackHistory 在默认时间线之外还多给了什么,再把这一节改成一句准确的话。
  • 要你做的:无。

Ask

  1. On main, read what trackHistory: true adds on the record page beyond the default activities timeline with fieldHistory. Cite the code.
  2. Rewrite the "When to enable" bullet (and the "Performance Impact" bullet if it is also off) at ~254-258 so it states that difference, in the same terms as eval 9's expected_output and the spec describe docs: the docs and spec comments describe trackHistory by the field-history model #38238 aligned.
  3. Run the docs gates. A docs-only change carries skip-changeset if the docs package is private.

Size: XS
Related: #38154, PR #38238, PR #38281.

Activity

  1. added
    bug
    pm:queue
    on Nov 28, 2026
  2. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · sunhaolin · session_017xRBcSxvUE3fDrox79CL9t

    Triage: lands in content/docs/protocol/objectql/schema.mdx (~L254, L258) · area:build · domain:docs → domain:devx (domain:docs is not in the domain table) · Bug · p3 → p2 · pm:queue · size XS. Rationale: the page tells readers to enable trackHistory to read field changes. But object.zod.ts (~L366) says trackHistory adds the field changes to the record page timeline, while old→new values belong to enable.fieldHistory. A wrong sentence in a shipped document is a Bug with reach "builders, often", and every severity in that column is p2 (the fleet p3 was bot-set). Keep the card's ask 1: read the code first, since L258 may be ambiguous rather than wrong. A single card: no devx sweep is open.
    Path: none
    Grade: area:build · Bug · Impeded (a misleading doc sentence) · reach: builders, often · evidence: read (origin/main).

    Recorded 2026-11-28T14:11Z.

  3. added
    domain:devx
    priority:p2
    and removed on Nov 28, 2026
  4. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-steve · session_01ADHkmSwS4mQyXWrddL4r6B

    Claim: PM loop round 1
    Session: session_01ADHkmSwS4mQyXWrddL4r6B
    Account: os-steve
    Branch: claude/issue-38298-trackhistory-doc
    Worktree: objectstack-issue-38298
    Domain: domain:devx
    Seat: repo:objectstack#3
    Area: o3-B
    File surface: content/docs/protocol/objectql/schema.mdx (stop on breach; explain in the report)
    Container & model: S, mode:subagent, model: default tier (dispatch-gates --tier: "no path-derived mandate"), effort: medium (docs wording)
    Clause-②: no
    Metadata-protocol: none
    Responsibility: the sentence is objectstack's own shipped docs page | the spec describe on trackHistory (packages/spec/src/data/object.zod.ts ~352-378) already states the model | builders reading the schema page; reachable today
    Thread-read: 7240489856
    Premise: holds (read-only check on origin/main 75108ea: schema.mdx L239, L254, L258 tie "who changed which field" on the record page to trackHistory; per object.zod.ts ~352-378 old → new values belong to enable.fieldHistory, on by default, and trackHistory puts field changes under the timeline's Changes filter / derived history API verb)
    Pre-claim lane: domain:devx (file ownership only): content/docs/**
    Pre-claim deps: none named; #38154, PR #38238, PR #38281 all closed/merged
    Prior rulings read: check-prior-rulings --card 38298 --paths schema.mdx → surface grep 0 (ruling/Ruling-ref/maintainer/⛔); 0 ruling comments on the thread
    Fold-or-serial: serial. #38590 is also docs but another page and another defect.
    Serial constraints cleared: none (check-handover --inflight: no claimed surface meets)

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 29, 2026
  6. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-steve · session_01ADHkmSwS4mQyXWrddL4r6B
    os-dev-report

    {
     "issue": 38298,
     "status": "done",
     "branch": "claude/issue-38298-trackhistory-doc",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/38611",
     "session": "session_01ADHkmSwS4mQyXWrddL4r6B",
     "premise_still_valid": true,
     "summary": "Premise holds on origin/main b993a58d: schema.mdx L239/L254/L258 tied 'who changed which field, and when, on the record page' to enable.trackHistory, while on main the default timeline already shows that via enable.activities (sys_activity) with old/new values via enable.fieldHistory (on by default). Read from code, trackHistory: true adds sys_audit_log field-change lines to the record's one timeline stream under the Changes filter (RecordDetailView.tsx historyEnabled, appObjectScope.ts recordStreamObjectNames), the derived history API verb (api-derivation.ts L153), and keeps the default page's Timeline tab when feeds and activities are both off (buildDefaultPageSchema.ts streamHasSource L1214). Rewrote the three lines in those terms (aligned with object.zod.ts describes and eval 9 expected_output in skills/objectstack-project/evals/project-process.json); L898 is a bare example and unchanged. Card assignee not touched; PR assignee os-steve via pr_create.",
     "tests": "Docs-only diff (1 file, +3/-3), no tests owed; no ablation (docs).",
     "gates": "Derived: node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack on a33f0155 -> 45 commands, EXIT=0. Ran all 45 locally, exit captured before any pipe: 44 exit 0 (incl. spec check:docs, check:yaml-examples, check:liveness, check:variant-docs, check:doc-authoring, check:doc-anchors, check:docs-single-h1, check:docs-redirects, check:nul-bytes, check:docs-transcript-drift, lint check:doc-formula-expressions, lint check:doc-security-posture; the last three first exited 3 PREREQUISITE NOT MET, re-run green after building the lint/spec/formula closure under os-verify-lock: VERDICT command-exit 0, Tasks 5/5). NOT MEASURED: pnpm --filter @objectstack/spec run check:skill-examples, reason: exit 3 prerequisite (needs @objectstack/client-react build); diff touches no skill; left to CI. overlap-check --branch=HEAD: VERDICT clean exit 0. --ran reconciliation not run (all 45 derived commands were run). CI check-runs on PR #38611: not yet read at report time (report is not held for CI).",
     "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
     "mcp_calls": "0",
     "api_writes": "2 relay writes — pr_create (POST /repos/objectstack-ai/objectstack/pulls draft, POST /issues/38611/assignees [os-steve], POST /issues/38611/labels [skip-changeset]; read-back identical 3749 bytes) and os-dev-report comment (POST /repos/objectstack-ai/objectstack/issues/38298/comments via post-stamped.mjs); plus git push of the branch (not REST)",
     "open_questions": [],
     "security_findings": "none",
     "out_of_scope_findings": [],
     "line_budget": "1 file, +3/-3",
     "deviations": "Branch base is origin/main b993a58d, not the dispatch's 75108ea6 (main moved; dev-worktree.sh built from current origin/main). File surface held: only content/docs/protocol/objectql/schema.mdx.",
     "files_changed": [
      "content/docs/protocol/objectql/schema.mdx"
     ]
    }
  7. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-steve · session_01ADHkmSwS4mQyXWrddL4r6B

    ACCEPT → PR #38611 comment 7257770231 · 2026-11-29T15:06Z · head a33f0155; landing armed (7257818656). This card closes on merge.

  8. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-steve · session_01ADHkmSwS4mQyXWrddL4r6B

    MERGED · 2026-11-29T15:26Z · PR #38611 merged; this card closed as completed by its Fixes. pm:dispatched removed in this stroke (closed cards carry no pm:* state).

  9. removed
    pm:dispatched
    on Nov 29, 2026
  10. added a commit that references this issue on Dec 1, 2026
    7213177
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:buildbugdomain:devxpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions