feat: overnight-runner 入 SDD、dev-build 全栈编排,并落地 ACC-account

将 overnight-runner skill 无前缀并入套件;dev-build 编排自测/UI/代码评审;指南左侧导航;example 实现账号能力与 progress。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
ning-inspire
2026-11-17 16:56:57 +08:00
parent 972a031654
commit fc7521d6f9
154 changed files with 6688 additions and 498 deletions

View File

@@ -116,7 +116,8 @@ DTO 约定:
## 8. 领域设计:聚合与规则
> **现状(空壳)**:旧示例聚合已清除。目标模型以 `docs/features/iteration1/` 为准,按 feature plan 重建后回写本节与 `docs/facts/domain-model.md`。
> **现状**:ACC(账号与个人中心)已落地,聚合见下;其余 feature 以 `docs/features/iteration1/` 为准,
> 按 feature plan 重建后回写本节与 `docs/facts/domain-model.md`。
业务规则引擎(`domain/businessrule/`)— **框架保留、规则未注册**:
@@ -124,11 +125,25 @@ DTO 约定:
- `BusinessRuleConfig` + `BusinessRuleProvider`;注册入口 `BusinessRuleRegistration`(当前为空)
- 规则 YAML 目录:`resources/business-rules/`(可按 feature 新增)
数据字典(`domain/datadictionary/`)— **框架保留、类型未注册**:
数据字典(`domain/datadictionary/`)— **框架保留、ACC 已注册**:
- `Description` / `DataDictionaryType` / `DataDictionaryUtil`
- ACC 注册 `AccDataDictionaryType`(账号状态 / 账号角色 / 协议类型)
- 实现 feature 时新增枚举并回写 `docs/facts/tech-topic/data-dict.md`
### 已落地聚合(ACC)
聚合根 **Account**(`domain/aggregate/Account.java`):角色集合(USER / CONSULTANT / ADMIN)、
状态机(`ACTIVE` ⇄ `DISABLED`)、`tokenVersion`(禁用/启用时 +1,令旧 JWT 立即失效)、
手机号摘要 + 密文。行为:`registerByPhone` / `createAdmin` / `grantConsultantRole`(幂等)/
`disable` / `enable` / `touchLogin` / `assertUsable`。
关联实体:`UserProfile` / `FavoriteConsultant` / `AgreementConsent` / `SmsVerificationCode`。
领域端口(domain 定义、infrastructure 实现,可替换):
`PhoneCrypto` / `SmsSender` / `DisplayableConsultantPort` / `TokenIssuer` / `PasswordService`。
## 9. 预约状态机
> 旧示例状态机已清除。以 `docs/features/iteration1/BKG-booking`(及相关)spec §9 为准,实现后回写 `docs/facts/tech-topic/state-machine.md`。