Skip to content

docs(client): drop the retired validateOnly batch option from the README (#4052) - #4443

Merged
os-zhuang merged 2 commits into
mainfrom
claude/validate-only-mode-ux-q2hslo
Aug 1, 2026
Merged

docs(client): drop the retired validateOnly batch option from the README (#4052)#4443
os-zhuang merged 2 commits into
mainfrom
claude/validate-only-mode-ux-q2hslo

Conversation

@os-zhuang

@os-zhuang os-zhuang commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

问题

packages/client/README.md 的 Batch Options 一节至今仍把 validateOnly 文档化为可用的 dry-run:

- `validateOnly`: If true, validate records without persisting changes (dry-run mode).

这个 key 在 #4052 已经退役,BatchOptionsSchema 里是 retiredKey(...) 墓碑。退役的理由恰恰是它从未被实现——批量写入面(updateManyData / deleteManyData / batchData)一律照常落库,调用方发 validateOnly: true 想预览一次变更,拿到的是真的执行了。README 继续承诺它可用,是同一个「declared ≠ enforced」(PD #10)的文档版本:读 README 的调用方会写下一个数据安全保证,而那个保证不存在。

改动

删掉那一行,替换为指向墓碑的说明,措辞与 docs/protocol-upgrade-guide.mdbatch-options-validate-only-retired 条目一致:

> validateOnly was retired in #4052 — it was never implemented and batch surfaces persisted
> regardless, so there is no batch dry-run today. Drop the key; see
> docs/protocol-upgrade-guide.md (batch-options-validate-only-retired).

Batch Options 列表其余三项(atomic / returnRecords / continueOnError)不动。

背景

这处不一致是在评估 #4372(写路径 validate-only / dry-run 模式)时发现的。该 issue 已按产品评估关闭为 not planned——没有当前消费者,而没有消费者的写路径 data-safety flag 正是 #4052 的失败模式。既然结论是「今天没有 dry-run」,文档就不该继续说有。

范围与验证

纯文档改动,无代码、无 spec、无生成物变更。

@objectstack/client: patch changeset,而不是「releases nothing」的空 changeset:README.md 在本包 package.jsonfiles 里,随包发布——改对的文字只有在包发布后才真正送达受影响的读者(npmjs.com 上读 README 的调用方)。仓内既有的空 changeset 先例都是 ADR / 设计文档这类不随包发布的东西,与此不同。

验证方式:复核 diff 仅涉及目标行,以及新文案与 upgrade-guide、batch.zod.ts 墓碑三处措辞一致。

🤖 Generated with Claude Code

https://claude.ai/code/session_016zx2NHsRkFzpKoefPEWZxD


Generated by Claude Code

…DME (#4052)

The README still promised `validateOnly` as a working dry-run, but the key
was retired in #4052 precisely because no batch surface ever read it — a
caller sending it to preview a mutation got it executed. Point readers at
the upgrade-guide tombstone instead of re-documenting a flag that lies.

Evaluated under objectstack#4372 (write-path validate-only mode): closed as
not planned — no current consumer justifies the surface.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016zx2NHsRkFzpKoefPEWZxD
@vercel

vercel Bot commented Aug 1, 2026

Copy link
Copy Markdown

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

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
objectstack Ignored Ignored Aug 1, 2026 7:49am

Request Review

@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 1 package(s): @objectstack/client.

13 hand-written doc(s) reference the affected code and may need an implementation-accuracy re-verification:

  • content/docs/ai/skills-reference.mdx (via packages/client)
  • content/docs/api/client-sdk.mdx (via @objectstack/client)
  • content/docs/api/data-flow.mdx (via @objectstack/client)
  • content/docs/api/environment-routing.mdx (via @objectstack/client)
  • content/docs/api/error-catalog.mdx (via @objectstack/client)
  • content/docs/getting-started/your-first-project.mdx (via @objectstack/client)
  • content/docs/kernel/runtime-services/data-service.mdx (via packages/client)
  • content/docs/kernel/runtime-services/index.mdx (via packages/client)
  • content/docs/permissions/authentication.mdx (via @objectstack/client)
  • content/docs/plugins/packages.mdx (via @objectstack/client)
  • content/docs/protocol/kernel/realtime-protocol.mdx (via @objectstack/client)
  • content/docs/releases/implementation-status.mdx (via @objectstack/client)
  • content/docs/releases/v16.mdx (via @objectstack/client)

Advisory only. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs origin/main → pass the list as args.docs.

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Aug 1, 2026
The Check Changeset gate requires an explicit declaration, and this one is a
real patch rather than release-nothing: README.md is in @objectstack/client's
`files`, so the corrected text only reaches npmjs.com readers if it ships.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016zx2NHsRkFzpKoefPEWZxD
@os-zhuang
os-zhuang merged commit 84b4a3a into main Aug 1, 2026
17 checks passed
@os-zhuang
os-zhuang deleted the claude/validate-only-mode-ux-q2hslo branch August 1, 2026 08:10
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/s tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants