Skip to content

文档和注释仍把 trackHistory 说成「字段历史开关」:改成 #38064 合入后的字段历史模型(接 #36776) #38154

Description

@objectstack-fleet

repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

Filing gate: ① (b) follow-ups named by the contract review on PR #38064 (#36776), record 7231559159 §③ and N3, left out of that card's packages/spec scope. Rechecked on origin/main after #38064 merged (1f1cd21). Source: fleet.
Grading: area:build · Docs · p2 · reach: every author or AI reading the data-modeling docs, the ObjectQL protocol pages, the generated security-context reference or the project skill's eval about field history · evidence: grep on main, sentence by sentence against #38064's model.
Dedupe: "trackHistory docs field history", "trackHistory oversell" → 0 open.

维护者速读

Lines (origin/main after 1f1cd21)

  • content/docs/data-modeling/field-types.mdx:1063: field trackHistory is 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; content/docs/protocol/objectql/index.mdx:89; content/docs/concepts/metadata-driven.mdx:487: object trackHistory is glossed as "field history tracking".
  • packages/spec/src/system/index.ts:45–46 and packages/spec/src/system/security-context.zod.ts:17: the comment "object/field trackHistory". The second is rendered into content/docs/references/system/security-context.mdx:16, so regenerate it.
  • skills/objectstack-project/evals/project-process.json:145: the expected output says it "sets trackHistory where field-level history is wanted". This is governed skills/**.
  • N3: the folded spellings of trackChanges / feedTracked in the alias table. Check that each refusal reads the fieldHistory model, as tracked does.

Ask

  1. Each line above says what fix(spec): retired-key refusals prescribe the field-history model, not trackHistory #38064's refusals say: a changed field's values show by default (except the default-off types, which need fieldHistory: true). Field trackHistory: false turns nothing off. Object trackHistory gates the ledger view and the history verb, not the values.
  2. Regenerate the security-context reference. The spec comment edit ships a patch changeset (comment-only zod.ts edits ship bytes).
  3. The eval line changes in the same PR. That makes it Tier H by path (skills/**), or split it into a skills-only PR if the seat prefers.

Acceptance

Activity

  1. added
    documentation
    priority:p2
    on Nov 28, 2026
  2. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:build · domain:docs · Task · p2 · pm:queue · size S; rationale: the docs, protocol pages, a generated reference and a skill eval still call trackHistory the "field history switch", contrary to the model #38064 ships. Wrong shipped text is p2, as filed. Recorded 2026-11-28T05:15Z.

  3. added
    pm:queue
    on Nov 28, 2026
  4. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

    Claim: PM loop round 1
    Session: session_01L9qibyUSf2nKJWW6qBemSU
    Thread session: session_01L9qibwWRQzuBbuvfHQMtYc
    Account: os-tesla
    Branch: claude/project-thread-ir3cn9
    Worktree: objectstack-issue-38154
    Domain: docs
    Area: o3-build (area:build p2, a seat card thread)
    Seat: repo:objectstack#3
    Seat rulings on the pre-claim report (/mnt/project-files/card-38154/pre-claim-report-9957484d.md, main 9957484):

    • Premise holds: every line the card lists is still on main. protocol/objectql/schema.mdx ~254 (write overhead — false, the ledger always records) and ~258 join the scope (same file, same defect class).
    • Route A, two PRs in order on this branch:
      • PR 1 (Part of #38154): the docs pages and the two spec comments (packages/spec/src/system/index.ts, security-context.zod.ts + its regenerated reference page), one @objectstack/spec patch changeset. Served tier.
      • PR 2 (Fixes #38154), after PR 1 merges: the one skills/objectstack-project/evals/project-process.json line (eval id 9), drafted by an isolated claude-fable-5-2 subagent (the path's mandated tier), Tier H.
    • N3: not built. Recorded as checked: since fix(spec): retired-key refusals prescribe the field-history model, not trackHistory #38064 no refusal points an author at trackHistory; the case/underscore variants get only the generic refusal. A guidanceSets entry is runtime text and out of this card.
    • Not touched: releases/**, generated references other than the regenerated one, ui/pages.mdx, packages/lint/src/rule-explanations.ts ~5028 (object meaning, correct).
      File surface:
    • PR 1: content/docs/data-modeling/field-types.mdx, objects.mdx, schema-design.mdx, content/docs/protocol/objectql/schema.mdx, index.mdx, content/docs/concepts/metadata-driven.mdx, packages/spec/src/system/index.ts, security-context.zod.ts, content/docs/references/system/security-context.mdx (regenerated), one .changeset/*.md.
    • PR 2: skills/objectstack-project/evals/project-process.json only.
      Stop on breach and explain in the report.
      Container & model: S, mode:thread, model: claude-opus-5-5 (default tier — dispatch-gates.mjs --tier: "no path-derived mandate" for PR 1's paths), effort: high, reason: the thread session serves this tier, and the PR 2 skills line is drafted by an isolated claude-fable-5-2 subagent (see rulings)
      Writes: the PRs only through the relay pr_create; comments, labels and bodies only through the relay write tools; report both numbers.
      Clause-②: no
      Metadata-protocol: none
      Skills-docs: PR 2 is the skills change.
      Responsibility: an author reading the docs or the spec comments learns that field history is captured always and shown by fieldHistory, and that trackHistory only adds the value display on media/structured fields (field) or the record-page Changes view (object), instead of switching it on to get history.
      Premise: holds, read on origin/main 9957484 (probe 59058075, 10 files +20/−15)
      Serial constraints cleared: overlap-check clean on 59058075; 0 open PRs touch these files; re-run before the first push
      Readings owed in the report: the card's acceptance grep at zero, the regenerated page diff, derived gates, and for PR 2 the eval's must_contain unchanged.
  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 28, 2026
  6. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibwWRQzuBbuvfHQMtYc
    os-dev-report

    {
      "issue": 38154,
      "status": "done",
      "branch": "claude/project-thread-ir3cn9",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/38238",
      "session": "session_01L9qibwWRQzuBbuvfHQMtYc",
      "premise_still_valid": true,
      "summary": "PR 1 of route A (Part of #38154), head 92b38c06. Restates trackHistory in the field-history model in field-types.mdx, objects.mdx (comment + enable row), schema-design.mdx, protocol/objectql/schema.mdx (example comment + the false 'write overhead' bullet + 'when to enable'), protocol/objectql/index.mdx and concepts/metadata-driven.mdx; the two packages/spec/src/system comments (index.ts, security-context.zod.ts) no longer list field trackHistory as audit authoring surface; security-context.mdx regenerated; one @objectstack/spec patch changeset. 10 files, +31/-14. N3 not built, recorded as checked: since #38064 no refusal points an author at trackHistory; case/underscore variants get only the generic refusal. PR 2 (Fixes #38154, the eval id 9 line, fable subagent) waits for this PR to merge.",
      "tests": "No test changes: prose and comments only, no test pins the edited sentences. pnpm --filter @objectstack/spec build: lock VERDICT command-exit 0. Acceptance grep (git grep -n -i trackHistory over content/docs, packages/spec/src/system, project-skill evals, minus releases/ and references/, filtered for field history / history track / track field / field-level history / timeline switch / object/field): 0 hits in content/docs and packages/spec/src/system; the 1 remaining hit is the eval line owed by PR 2. Regenerated page diff: security-context.mdx:16 '+ object/field trackHistory +' -> '(an object's enable.trackHistory shows its field changes on the record page) +', the only file gen:schema + gen:docs changed.",
      "gates": "Local at 92b38c06: dispatch-gates --ran reconciles 101 derived, 99 run (all exit 0), 2 NOT MEASURED (exit 3), 0 unrun; list /mnt/project-files/card-38154/gates-ran-92b38c06.list. 5 gates first exit 3 (prereq) were re-run exit 0 after turbo build of formula, lint..., objectql, client, client-react (47/47): check:doc-formula-expressions, check:doc-security-posture, check:skill-examples, check:docs-transcript-drift, check:lean-entry-closure. check:generated and check:docs exit 0. NOT MEASURED, left to CI: check-plugin-teardown-shape.mjs --self-test (fixture commit outside the shallow clone), check:dual-build-cjs-loads (needs full pnpm build). overlap-check on 92b38c06: VERDICT clean exit 0, 0 open PR heads. PR check-runs: in_progress at report time.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0 — no MCP GitHub calls",
      "api_writes": "2 relay strokes — pr_create (POST /repos/objectstack-ai/objectstack/pulls draft + POST /issues/38238/assignees) via fleet-write run 46130859693, and this os-dev-report comment (POST /issues/38154/comments) via post-stamped",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": ["carrier: PR 2 of this card (claim route A) · skills/objectstack-project/evals/project-process.json eval id 9 'sets trackHistory where field-level history is wanted' · the line for the fable subagent; reference draft /mnt/project-files/card-38154/pr2-eval-line.patch, must_contain unchanged"]
    }

    Generated by Claude Code

  7. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibwWRQzuBbuvfHQMtYc
    os-dev-report

    {
      "issue": 38154,
      "status": "done",
      "branch": "claude/project-thread-ir3cn9",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/38281",
      "session": "session_01L9qibwWRQzuBbuvfHQMtYc",
      "premise_still_valid": true,
      "summary": "PR 2 of route A (Fixes #38154), head 2c623172 on origin/main d994002a (PR 1 #38238 merged). One clause of skills/objectstack-project/evals/project-process.json eval 9 expected_output: 'sets `trackHistory` where field-level history is wanted' -> 'where a changed field's old and new values show by default (`fieldHistory`)'. The clause was drafted by an isolated claude-fable-5-2 subagent (effort medium) read against field-history-default.ts, object.zod.ts, field.zod.ts and the plugin-audit writer; this thread applied it verbatim. Plus one @objectstack/skills patch changeset (the package's build copies skills/** byte for byte into dist). The branch was deleted on PR 1's merge, so the commit (e95f960d rebased to 2c623172) was pushed as a fresh branch of the same name; no force push.",
      "tests": "No test changes: an eval fixture. must_contain read back from the parsed file: ['sys_audit_log', 'sys_activity'] (unchanged); must_not_contain unchanged; the diff is one -/+ line pair. grep -rn trackHistory skills/objectstack-project/ -> 0 hits. Skills readings: project-process.json 176 -> 176 lines, 11967 -> 11987 bytes; bundle (all skills/*/SKILL.md) 4940 -> 4940 lines, no SKILL.md changed.",
      "gates": "Local at 2c623172 (re-run after the rebase): dispatch-gates --ran reconciles 44 derived, 43 run (all exit 0), 1 NOT MEASURED (check:dual-build-cjs-loads, exit 3, needs a full pnpm build — left to CI), 0 unrun; list /mnt/project-files/card-38154/gates-ran-2c623172.list. Built first under the lock: spec, formula, lint, objectql. overlap-check before the push: VERDICT clean exit 0. PR check-runs: in_progress at report time.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0 — no MCP GitHub calls",
      "api_writes": "2 relay strokes — pr_create (POST /repos/objectstack-ai/objectstack/pulls draft + POST /issues/38281/assignees) via fleet-write run 46138260510, and this os-dev-report comment (POST /issues/38154/comments) via post-stamped",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": []
    }

    Generated by Claude Code

  8. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU
    2026-11-28T12:59Z · 收口:PR #38238(第一步)和 PR #38281(第二步,经 os-zhuang 批准)都已合入,本卡随 Fixes 关闭;去掉 pm:dispatched。L2 另指出的文档页说法不一致,立在 #38298。

  9. removed
    pm:dispatched
    on Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:builddocumentationdomain:docspriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions