Skip to content

docs: implementation-accuracy pass — retire deprecated titleFormat example + evidence-backed doc fixes#2640

Merged
os-zhuang merged 1 commit into
mainfrom
claude/docs-review-cleanup-6zv1ee
Jul 5, 2026
Merged

docs: implementation-accuracy pass — retire deprecated titleFormat example + evidence-backed doc fixes#2640
os-zhuang merged 1 commit into
mainfrom
claude/docs-review-cleanup-6zv1ee

Conversation

@os-zhuang

Copy link
Copy Markdown
Contributor

背景

复核报告:titleFormat 早已作废,却仍出现在文档中。核对实现——titleFormatpackages/spec/src/data/object.zod.ts:596 标记为 [DEPRECATED → nameField (ADR-0079)],但 data-modeling/formulas.mdx 仍把它当作现行写法示范。本 PR 修正该问题,并附带一轮更大范围的实现一致性修复。

改动内容

1. 废弃 key 全量扫描(覆盖全部 146 篇手写文档)

以 spec 为准,对"已废弃/已移除的可写 key"做确定性扫描:

  • formulas.mdx:把活示例里的 titleFormat: tmpl\...`迁移为 ADR-0079 规定的复合标题路径——一个returnType: 'text'Field.formula,再用 nameField 指定它。(string() 为已注册 CEL 内置函数;returnType: 'text'的 formula 字段是 title-eligible,见display-name.test.ts:45`。)
  • 核实同类其余命中均已正确,未做多余改动:
    • titleFormat / displayNameField / compactLayout / conditionalRequired / defaultExpanded 在参考表里均已标注 deprecated 并给出替代项;
    • view 表单 sectionscollapsible / collapsed现行 schema(view.zod.ts FormSectionSchema),不是已废的对象 fieldGroup 布尔对,保持不动;
    • 全部 namespace: 命中都是 manifest.namespace(现行必填字段,对象名前缀),不是被移除的 ObjectSchema 键;
    • north-star.mdxnamespace / tableName 是"不要重新引入"的护栏,forms.mdxdefaultDetailForm 是"已移除"说明——均正确。

2. 逐篇实现一致性修复(另外 40 篇)

覆盖 client SDK、REST/wire format、automation、seed data、deployment、concepts 等。重点:

  • client.connect() 返回 discovery manifest(不是 client.discovery);auth 登录用 email;workflow 命名空间为 3 个方法;
  • webhooks 文档不再宣称尚未落地的"默认签名 / SSRF 出口防护",改为如实标注(符合"不虚构运行时未提供的能力"的准则);
  • seed replace 模式语义纠正(loader 本身不删除记录,只插入)。

每处改动均以引用到的实现为据;所有改动文件的 frontmatter、代码围栏、JSX 组件均已校验完好。

覆盖范围说明

这是一轮有范围的复核:覆盖了报告问题(废弃 key)在全语料的排查,加上本轮触及文档的深度修复。剩余文档的逐篇深度审计留作后续。

验证

  • 41 个改动文件:frontmatter 未改动、代码围栏配平、JSX 标签配平(脚本校验通过)。
  • formulas.mdx 迁移写法逐项对照 spec / 测试确认。

🤖 Generated with Claude Code

https://claude.ai/code/session_01LHQscZJ8NvXceSmsPNdTZd


Generated by Claude Code

…evidence-backed doc fixes

Recheck of the hand-written docs against the actual implementation. Two parts:

1. Deprecated-key sweep (all 146 hand-written docs). The concrete report was
   `titleFormat` still shown as current usage though it is deprecated
   ([DEPRECATED → nameField (ADR-0079)] in packages/spec/src/data/object.zod.ts).
   The live example in data-modeling/formulas.mdx now uses the sanctioned
   migration — a text `Field.formula` designated via `nameField` — instead of
   `titleFormat`. Verified the rest of the deprecated authorable-key class is
   already correct: reference-table rows for titleFormat/displayNameField/
   compactLayout/conditionalRequired/defaultExpanded are marked deprecated with
   their replacements; view form-section `collapsible`/`collapsed` are the
   current schema (view.zod.ts FormSectionSchema), not the retired object
   fieldGroup pair; every `namespace:` hit is `manifest.namespace` (a current
   required field), not the removed ObjectSchema key.

2. Per-doc accuracy fixes across 40 further docs (client SDK, REST/wire format,
   automation, seed data, deployment, concepts, …). Highlights: client.connect()
   resolves with the discovery manifest (not client.discovery); auth login takes
   email; workflow namespace exposes 3 methods; webhooks docs no longer advertise
   signed-by-default or SSRF egress guards that are not shipped yet; seed
   `replace` mode inserts without deleting. Every change is backed by the cited
   implementation; frontmatter, code fences, and JSX components verified intact.

Scoped pass: covers the reported deprecated-key issue across the whole corpus
plus deep fixes on the docs reached this round; a full per-doc deep audit of the
remaining files is follow-up.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LHQscZJ8NvXceSmsPNdTZd
@vercel

vercel Bot commented Jul 5, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
spec Building Building Preview, Comment Jul 5, 2026 4:09pm

Request Review

@github-actions github-actions Bot added documentation Improvements or additions to documentation size/l labels Jul 5, 2026
@os-zhuang os-zhuang added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Jul 5, 2026 — with Claude
@os-zhuang
os-zhuang marked this pull request as ready for review July 5, 2026 16:17
@os-zhuang
os-zhuang merged commit 0527461 into main Jul 5, 2026
16 of 18 checks passed
@os-zhuang
os-zhuang deleted the claude/docs-review-cleanup-6zv1ee branch July 5, 2026 16:17
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 size/l skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants