feat(spec)!: 双源 C3 收敛 — 通知语汇归 ./api,./ui 与 ./system 侧死删 (#4610) - #4638
Merged
Conversation
…Notification(Config) removed, ./system NotificationConfig removed, ./api keeps the bare names (#4610) The four #4535-C3 baseline rows were the #4411 trap on the notification vocabulary: Notification(Schema) had a second declaration in ./ui diverging from ./api, and NotificationConfig(Schema) had two declarations (./system vs ./ui) that shared nothing but the name. Import-statement-level scan across framework, cloud and objectui: - ./api Notification(Schema) is the live REST inbox-row contract: embedded in ListNotificationsResponseSchema, part of NotificationProtocol, implemented by @objectstack/client, served by the runtime notifications domain, and mirrored by contracts' InboxNotification (ADR-0030: the bell reads this shape). - ./ui Notification(Schema) — a toast/banner instance shape — had zero importers outside its own unit test; objectui pins only the presentation enums (NotificationType/Position/ActionSchema), which stay. - ./system NotificationConfig(Schema) — a channel+template+recipients+ schedule+retryPolicy+tracking wrapper — had zero importers, is wired into no parent schema, predates ADR-0030's accepted delivery model (NotificationService.emit / NotifyConfigSchema / sys_* objects), and advertised unenforced capability (#3197 dead-letter channels). - ./ui NotificationConfig(Schema) — a toaster global config — had zero importers. Disposal (route 1, dead-side delete, v17 major window): the ./ui pair and BOTH NotificationConfig declarations removed; ./api is the sole owner of the bare Notification(Schema) names and NotificationConfig left the export surface entirely. Compile-time pins (typeof import conditional type, #4581 pattern) keep the bare names out of ./ui and ./system; the surviving ./api declaration is already covered by api/protocol.test.ts. dual-source-exports.baseline.json: exactly the 4 named rows removed (28 -> 24). json-schema.manifest: system/NotificationConfig, ui/Notification and ui/NotificationConfig retired deliberately; their 25 authorable-surface rows hand-deleted per the #4458/#4568/#4581/#4603 precedent. api-surface + reference docs regenerated via check:generated --fix (2 proved stale; the api/notification.mdx page folds into api/protocol.mdx where the declaration lives). docs-import-surface baseline (#4595): untouched. Changeset: @objectstack/spec major with FROM -> TO migration lines. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01M9uWvoEp9CoLzYjNExj9sL
…ification-dual-source
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
os-zhuang
marked this pull request as ready for review
August 2, 2026 12:41
Contributor
📓 Docs Drift CheckThis PR changes 1 package(s): 107 hand-written doc(s) reference the affected code and may need an implementation-accuracy re-verification:
|
os-zhuang
enabled auto-merge
August 2, 2026 12:41
删除 ./ui 的 Notification / NotificationConfig 两个形状后,台账里 `notification.zod.ts` 那行声明的站点数过期(gate 点名 ledger:454: declares 3 site(s), found 1)。把它从「3 ea」的合并行拆出单列为 1, 并写明为何掉了两个站点;`ui/` 章节总计 200 → 198 相应收敛。 check:strictness-ledger 恢复绿(67 文件 / 5 目录,站点数与章节总计均衡); 同 job 的其余源码审计(liveness / empty-state / variant-docs / exported-any / react-declaration-parity / skill-examples)一并复跑通过。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01M9uWvoEp9CoLzYjNExj9sL
This was referenced Aug 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #4610
#4535 C 组第三簇。两对同名跨入口分叉,同属通知语汇,一个 PR 处理;
dual-source-exports.baseline.json恰好 28 → 24。判源(三仓 import 语句级扫描:framework + cloud + objectui)
Notification/NotificationSchema(./api≠./ui)./ui侧是 toast/横幅的「通知实例」形状(type/severity/message/duration/actions/position+ ARIA),三仓 零 import 站点 —— objectui 的 toaster 从未采用它。./api侧是活合同:REST 收件箱行(id/type/title/body/read/data/actionUrl/createdAt),嵌在ListNotificationsResponseSchema中,由/api/v1/notifications提供、@objectstack/client实现、contracts的InboxNotification镜像(ADR-0030:铃铛读的就是这个形状)。./ui侧死删,./api成为裸名唯一属主。NotificationConfig/NotificationConfigSchema(./system≠./ui)./system侧那套「统一通知管理协议」(channel + template + recipients + schedule + retryPolicy + tracking)早于 ADR-0030 采纳的投递架构,且宣称了运行时并不兑现的能力(channel 枚举里push/slack/teams/webhook死信,Audit: several event/subscription/connector enums are schema-only (declared, no runtime consumer) #3197;schedule/retryPolicy/tracking无人读取)。./ui侧是 toaster 全局配置,objectui 从未采用。保留不动
./api的Notification(Schema)与NotificationPreferences(Schema):未改,从./api导入的消费者无需迁移。./ui的呈现语汇枚举:NotificationTypeSchema/NotificationSeveritySchema/NotificationPositionSchema/NotificationActionSchema(及类型)原样保留。./system的NotificationChannel(Schema)/EmailTemplate(Schema)/SMSTemplate(Schema)/PushNotification(Schema)/InAppNotification(Schema):未改。迁移指引(含「api 行是收件箱记录、不是呈现配置」的形状变化提醒、以及
NotificationConfig的替代路径 ——INotificationService.emit、notify流程节点NotifyConfigSchema、sys_notification*平台对象、NotificationPreferences)写在 changeset 里。验证(本地全绿)
pnpm --filter @objectstack/spec buildcheck:dual-source-exportscheck:generatedtypecheck已预合
origin/main并在合并后重跑上述全部门禁(AGENTS.md §10)。未触碰content/docs/references/**以外的文档;content/docs/releases/零改动(release notes 走 changeset 中央编译)。Generated by Claude Code