返回 Papers
AI 扩展计划 / Playbooks

AI Domain-Driven Design / Ubiquitous Language Playbook

以下来源作为 DDD、AI 风险管理和 AI 管理体系的学习锚点, 本文把它们转成金融零售 AI 产品的建模、评估和治理资产, 不构成法律、合规、审计或模型验证意见。访问日期按 2026-06-29 记录。

595AI_DOMAIN_DRIVEN_DESIGN_UBIQUITOUS_LANGUAGE_PLAYBOOK.md

AI Domain-Driven Design / Ubiquitous Language Playbook

面向对象: AI Product Architect / AI PM / AI BA / Enterprise Architect / Data Product Manager / AI Governance / 金融零售业务架构负责人。 核心问题: 如何把 DDD 的 bounded context、ubiquitous language、aggregate、domain event、context map 和 anti-corruption layer 转成 AI 产品的任务边界、知识边界、RAG 边界、评估词表和架构治理能力。 学习目标: 能为 AML、信贷、客服、财富等金融零售 AI 场景建立领域模型、业务语言、知识权威、上下文隔离、eval taxonomy 和产品架构证据。 前提假设: 读者已具备成熟 BA / CBAP 能力, 本手册不讲基础需求分析, 重点训练 AI 时代的领域建模、架构边界、业务语言治理和落地表达。


Source Anchors

以下来源作为 DDD、AI 风险管理和 AI 管理体系的学习锚点, 本文把它们转成金融零售 AI 产品的建模、评估和治理资产, 不构成法律、合规、审计或模型验证意见。访问日期按 2026-06-29 记录。

AnchorOfficial / primary source本文使用方式
Domain Language DDD Resourceshttps://www.domainlanguage.com/ddd/用 DDD 的核心词汇、strategic design、bounded context、ubiquitous language 和 legacy integration 思路组织复杂业务域。
NIST AI Risk Management Frameworkhttps://www.nist.gov/itl/ai-risk-management-framework用 Govern / Map / Measure / Manage 视角管理 AI 任务边界、上下文风险、评估证据和持续治理。
ISO/IEC 42001 AI Management Systemhttps://www.iso.org/standard/81230.html用 AI management system 语言组织 owner、policy、lifecycle、operation、performance evaluation、change control 和持续改进。

Standards-to-artifacts:

Source lens可以产出的 artifact高级表达
DDD strategic designBounded Context Map、Context Relationship Contract、Domain Event Catalog“我不会把企业 AI 做成一个万能助手, 我会先拆出业务上下文和语言边界。”
DDD tactical designAggregate catalog、entity/value object model、domain service boundary“我会把客户、账户、case、alert、申请、建议等对象的业务不变量建模清楚, 再决定 AI 能读、写、建议还是执行。”
NIST AI RMFAI Context Risk Map、Eval Failure Taxonomy、Release Gate Evidence“我把上下文混用、知识误引、越权行动和术语歧义转成可测风险。”
ISO/IEC 42001AI Domain Governance RACI、Change Control、Management Review Pack“我把领域语言和知识边界纳入 AI 管理体系, 不是靠 prompt 口头约束。”

1. One-Sentence Positioning / 一句话定位

AI Domain-Driven Design 的核心不是把 DDD 图画得更复杂, 而是:

business domain
-> bounded context
-> ubiquitous language
-> domain model
-> AI task boundary
-> knowledge / RAG boundary
-> eval vocabulary
-> product architecture and governance

一句话:

AI Domain-Driven Design = 用业务上下文和共同语言约束 AI 能理解什么、检索什么、建议什么、调用什么、评估什么、由谁治理。

金融零售 AI 产品最危险的失败, 往往不是模型不会生成答案, 而是模型在错误的上下文里使用了看似正确的业务词:

  • “高风险客户”在 AML、信贷、财富、客服里的含义不同。
  • “approved” 可能指信贷批准、合规批准、经理审批、系统状态或模型建议通过。
  • “case” 可能是 AML case、客服投诉 case、欺诈调查 case、贷后催收 case。
  • “customer” 在零售银行、商户收单、财富管理和 KYC 里对应不同身份、权限和生命周期。
  • “policy” 可能是监管政策、内部制度、产品条款、模型策略、风控规则或技术访问策略。

因此 AI PM / Architect 的工作不是写更长 prompt, 而是让每个 AI capability 都能回答:

  1. 它属于哪个 bounded context。
  2. 它使用哪套 ubiquitous language。
  3. 它读取哪些 authoritative sources。
  4. 它能触碰哪些 aggregate 和 domain events。
  5. 它的输出如何被业务词表、eval taxonomy 和 release gate 约束。
  6. 它如何与其他上下文通过 explicit contract 集成, 而不是混用语义。

2. 为什么 AI 产品需要领域驱动设计, 而不是只靠 prompt 和流程图

流程图能表达步骤, prompt 能表达意图, 但两者都不足以管理金融零售 AI 的核心复杂度: 语言歧义、上下文边界、业务不变量、权限分层、知识权威和责任归属。

常见做法能解决什么解决不了什么DDD 补强点
Prompt instruction让模型按格式、语气和约束回答不能稳定定义业务词含义、来源权威和跨域边界用 ubiquitous language 和 domain rules 约束 prompt vocabulary
BPMN / workflow表达流程步骤和人工节点不表达对象生命周期、聚合不变量和上下文语言差异用 aggregate、domain event 和 policy 捕捉业务状态变化
数据字典定义字段不表达业务概念在不同上下文中的语义冲突用 bounded context 管理一词多义
RAG 文档库提供知识召回不能自动判断哪个知识源属于哪个业务上下文用 source authority + context-specific retrieval
API 编排连接系统能力不自动保证 AI 任务边界和工具权限正确用 context map + anti-corruption layer
Eval accuracy测输出好坏如果词表和失败分类不清, 指标无法定位问题用 eval vocabulary 和 failure taxonomy

2.1 AI 时代的 DDD 价值

DDD 能力AI 产品中的价值金融零售例子
Bounded Context防止 AI 把不同业务域的规则、状态和术语混用AML 的 suspicious activity 不等于信贷的 default risk
Ubiquitous Language让业务、产品、架构、数据、评估、治理使用同一套词“EDD” 在 KYC 上下文中定义为增强尽调, 不是客服升级
Aggregate保护业务不变量, 决定 AI 能否更新状态Loan Application aggregate 的 approve / decline 不能由 LLM 直接执行
Domain Event捕捉业务事实变化, 驱动 AI 触发和审计AlertEscalatedCreditMemoSubmittedComplaintResolved
Policy把规则和判断条件显式化fee waiver、KYC document requirement、suitability rule
Context Map明确上下文关系和集成契约客服助手只消费产品条款和 case 状态, 不直接解释 AML 调查规则
Anti-Corruption Layer保护核心域不被外部或 legacy 语义污染把 CRM 的 loose status 映射成受控业务状态后再给 AI 使用

2.2 反模式

反模式风险更好的做法
一个 enterprise copilot 回答所有问题权限、术语、来源和责任混在一起按 bounded context 拆成多个 capability, 共享平台不共享语义
把流程节点当领域边界同一流程可能跨多个上下文, 每步语言不同用业务模型、对象生命周期和 owner 划分边界
让 prompt 解释所有术语prompt 难以覆盖同义词、版本、地区和上下文差异维护 glossary、taxonomy、ontology 和 retrieval metadata
把 RAG index 当业务域index 是技术资产, 不是 source of truth每个 index 绑定业务上下文、权威来源、权限和版本
用平均准确率评估业务语言平均值掩盖高风险术语误用按 term、context、risk tier、policy version 切片评估

3. 核心框架: DDD-AI Boundary Stack

DDD-AI Boundary Stack 用来把领域建模转成 AI 产品架构。它从业务语言开始, 到任务、知识、工具、评估和治理闭环结束。

核心问题关键决策核心产物
1. Domain Intent这个 AI 能力服务哪个业务结果AML 调查效率、信贷 memo 质量、客服一次解决率、财富适当性准备AI Domain Opportunity Canvas
2. Bounded Context它属于哪个业务上下文AML investigation、Credit origination、Customer servicing、Wealth advisoryBounded Context Map
3. Ubiquitous Language这个上下文中的核心词是什么customer、case、risk、approval、policy、exception、recommendationUbiquitous Language Glossary
4. Domain ModelAI 接触哪些对象和规则aggregate、entity、value object、domain service、policyDomain Model Canvas
5. Domain Events哪些业务事实触发 AI 或被 AI 记录alert created、document missing、complaint escalatedDomain Event Catalog
6. AI Task BoundaryAI 能读、总结、建议、草拟、决策还是行动allowed / blocked / human approval actionAI Task Boundary Matrix
7. Knowledge BoundaryAI 从哪些来源检索, 如何处理冲突authority、effective date、jurisdiction、permissionRAG Boundary Matrix
8. Integration Boundary如何连接其他上下文和系统context map、ACL、API contract、event contractContext Integration Contract
9. Eval Vocabulary如何把业务语言转成评估eval cases、rubric、failure taxonomy、critical termsDomain Eval Taxonomy
10. Governance谁维护语言、知识、模型和发布owner、steward、approver、review cadenceAI Domain Governance RACI

一句话能力表达:

我能把一个 AI use case 从业务上下文拆解到语言、模型、知识、任务、工具、评估和治理边界, 避免企业 AI 因语义混用和责任不清而失控。


4. DDD-to-AI Mapping

4.1 Strategic Design Mapping

DDD 概念传统含义AI 产品映射金融零售例子
Domain组织要解决的业务问题空间AI capability 所服务的业务价值域金融犯罪风险、消费信贷、客户服务、财富咨询
Subdomaindomain 下的能力区域AI 产品组合和能力地图AML alert triage、SAR narrative drafting、KYC remediation
Core Domain产生差异化竞争力的核心业务需要最严格建模和评估的 AI 能力信贷风控决策支持、AML 调查质量、财富顾问生产力
Supporting Domain支撑核心业务的领域可用平台能力和标准化组件支持文档检索、客服知识库、流程摘要
Generic Domain通用能力可购买、复用或平台化OCR、translation、PII detection、ticket routing
Bounded Context模型和语言保持一致的边界AI prompt、RAG、tools、eval、owner 的边界Credit Origination Assistant 不能复用 Collections 语言直接判断新贷申请
Context Map上下文之间的关系AI capability 之间、业务系统之间的集成模式客服上下文从账务上下文读取交易事实, 但不解释 AML red flag
Anti-Corruption Layer防止外部模型污染内部模型术语映射、状态标准化、权限过滤、输出翻译把 legacy CRM 的 VIP 映射为财富上下文的客户层级, 不能映射为信贷优质客户

4.2 Tactical Design Mapping

DDD 概念AI 映射设计问题Eval / Governance 映射
Entity有身份和生命周期的业务对象AI 是否能读取、引用、修改或创建该对象entity permission test、lineage log
Value Object用值表达的业务概念AI 是否正确解释金额、日期、地区、风险等级term-specific eval、format validation
Aggregate保护不变量的一组对象AI 是否被允许改变 aggregate 状态blocked action test、human approval gate
Aggregate Root外部访问 aggregate 的入口工具调用必须通过受控 API 或 servicetool permission contract、audit trail
Domain Service不自然属于单个 entity 的业务逻辑AI 是否只能调用服务, 而不绕过规则service-level policy eval
Domain Event已发生的业务事实AI 触发、消费、摘要和审计的事件event completeness eval、event replay
Repository访问 aggregate 的集合接口RAG / tool 不应绕过 repository 读取敏感事实data access control、query audit
Policy业务规则或决策策略AI 输出必须引用或遵守的规则policy version eval、violation taxonomy
Specification可组合的判断条件AI 建议必须暴露哪些条件已满足或缺失rubric and evidence check

4.3 Context Relationship Patterns for AI

关系模式AI 架构含义适用场景风险控制
Partnership两个上下文共同演进 AI 契约AML case 与 KYC remediation 强耦合联合 owner、共享 eval cases、变更联审
Customer / Supplier下游消费上游输出客服助手消费产品知识和账务事实SLA、schema contract、版本通知
Conformist下游接受上游模型分行助手使用总部政策模型明确上游术语和不可本地改写的规则
Anti-Corruption Layer需要转换外部语义Vendor risk score 接入内部信贷模型mapping table、confidence、exception queue
Shared Kernel少量共享概念customer id、product code、jurisdiction共享范围极小, 变更严格管理
Separate Ways不集成财富建议和普通客服 FAQ 风险差异过大独立 index、prompt、eval、owner

5. AI Task Boundary: 哪些任务属于一个 bounded context, 哪些不能跨上下文混用

AI task boundary 不是按模型能力划分, 而是按业务语言、知识来源、对象生命周期、风险责任和操作权限划分。

5.1 Task Boundary Grammar

AI capability [name]
belongs to bounded context [context]
for role [user role]
can perform [read / retrieve / summarize / recommend / draft / decide / act]
on domain objects [entities / aggregates / events]
using knowledge sources [authority and versions]
under policies [business rules / risk rules]
with required human controls [review / approval / escalation]
and eval gates [rubric / critical failures / thresholds].

5.2 同一上下文内适合组合的任务

组合为什么可以属于同一 bounded context例子
Retrieve + summarize使用同一套术语、来源、权限和引用规则AML analyst 检索 alert 证据并总结交易模式
Summarize + draft草稿基于同一业务对象和政策边界信贷 officer 根据申请材料草拟 credit memo
Recommend + explain建议和解释引用同一政策与 evidence rubric客服主管判断 fee waiver 是否应升级
Event trigger + case note事件和记录属于同一 aggregate 生命周期ComplaintEscalated 后生成主管 review note

5.3 不能跨上下文混用的任务

混用方式为什么危险正确边界
用客服 FAQ 回答信贷审批政策FAQ 语言简化, 不能替代风险政策信贷上下文只能检索 credit policy、product terms、approved procedure
用 AML red flag 给普通客户打营销风险标签AML suspicious activity 是调查语义, 不是营销 segmentAML 事件只能通过合规批准的 aggregate / event contract 输出
用财富适当性问卷推断信贷风险suitability 与 creditworthiness 目标、法规、数据不同财富上下文与信贷上下文 separate ways 或受控 ACL
用催收话术影响新贷审批建议collections 语言服务贷后回收, 不应用于贷前判断新贷审批只能使用 origination context 的政策和数据
用模型记忆跨客户复用 case 细节侵犯隐私并污染上下文memory 必须限定 customer / case / role / retention boundary

5.4 Task Boundary Matrix

AI taskLow-risk allowedRestrictedBlocked
Read domain facts读取授权用户可见事实读取敏感事实需 purpose、role、case binding跨客户、跨 case、跨权限读取
Retrieve policy检索当前上下文权威政策检索相关上下文政策需明确 reason 和 citation用低权威来源覆盖高权威政策
Summarize evidence摘要已授权证据高风险摘要需保留关键不确定性和引用删除或弱化 red flag、complaint、adverse action 信息
Recommend next step推荐人工可复核动作高影响建议需条件、证据和人工确认单独做 approve / decline / freeze / investment recommendation
Draft communication草拟员工或客户沟通客户外发前需 policy、tone、compliance check承诺费用减免、收益、审批结果或监管解释
Call tools创建低风险 task、更新非关键字段高影响动作需审批、限额、回滚直接冻结账户、拒绝贷款、提交 SAR、执行交易

6. Knowledge / RAG Boundary: source authority、term ambiguity、policy version、context-specific retrieval

RAG boundary 是 bounded context 的知识投影。一个生产级 AI capability 不应查询“所有企业知识”, 而应查询“本上下文、当前角色、当前任务、当前政策版本允许使用的知识”。

6.1 Source Authority

Authority level来源类型AI 使用方式冲突规则
A0 External binding authority法规、监管规则、正式监管函作为最高约束, 需要合规解释与内部资料冲突时升级 Compliance
A1 Internal approved policy经批准的政策、制度、产品条款高风险回答 primary evidence覆盖 SOP、FAQ、培训材料
A2 Approved procedure / SOP操作流程、控制清单操作步骤和人工升级不得推翻 A1
A3 System of record核心账务、CRM、case management客户、账户、交易、case 事实事实类问题以系统记录为准
A4 Product / training knowledge培训材料、产品说明、内部 FAQ解释、话术、低风险引导不得作为高风险政策依据
A5 Historical cases / notes历史工单、调查 note、会议纪要候选经验和相似案例必须标记为非权威或专家审核
A6 External vendor / web reference供应商材料、公开资料背景知识和功能说明不替代内部政策和监管解释

6.2 Term Ambiguity Control

术语上下文 A上下文 BRAG 控制
caseAML investigation casecustomer service complaint casecontext_type metadata 必填, query rewrite 不跨域扩展
risk scoretransaction monitoring scorecredit risk scoreglossary 绑定 owner、range、model source、解释限制
approvalloan approvalcompliance approvalanswer schema 必须声明 approval type
policyproduct fee policyAI tool access policysource category 与 business domain 分离
customerretail banking customermerchant beneficial ownerentity type 和 relationship path 必须显式

6.3 Policy Version Boundary

版本问题失败模式设计控制
新旧政策同时命中回答混合口径retrieval filter 使用 effective date、expiry date、business date
地区规则差异引用错误 jurisdictionmetadata 必含 jurisdiction、channel、product、customer segment
草稿误入生产使用未批准政策ingestion gate 排除 draft、pending approval、retired source
培训材料滞后FAQ 覆盖正式政策authority rank 控制 context packing
模型缓存旧答案知识已更新但回答仍旧policy version embedded in trace, release 后清理或标记缓存

6.4 Context-Specific Retrieval Pattern

user role
-> task intent
-> bounded context
-> permitted source classes
-> effective date / jurisdiction / product filters
-> term expansion from context glossary
-> hybrid retrieval
-> authority-aware rerank
-> conflict detection
-> context packing
-> claim-level citation

6.5 RAG Boundary Matrix

Dimension必备字段设计问题Eval case
Contextbounded_context_id这个知识源属于哪个业务语言边界同一 query 在 AML /客服上下文返回不同证据
Authorityauthority_level冲突时信谁FAQ 与政策冲突时引用政策
Versioneffective_dateexpiry_date问题发生时适用哪个版本旧政策 hard negative 不进入 context
Jurisdictioncountrystatebranch地区规则是否不同US 与 EU KYC 规则分开回答
Permissionrolepurposecase_id用户是否有权检索无权 chunk 不进入 candidate trace
Term Schemeconcept_idalt_label同义词和缩写如何展开UBO / beneficial owner / 最终受益人召回一致
Source Statusapprovedretireddraft来源是否可生产使用draft source 命中即 release blocker
Evidenceclause_idspan_id引用能否支撑断言每个关键断言有 evidence span

7. Eval Vocabulary: 把业务术语转成 eval cases、failure taxonomy、decision rubric

AI eval 不能只写“答案正确、语气友好”。金融零售场景需要把 ubiquitous language 转成评估词表, 让业务、架构、风险和模型团队能讨论同一类失败。

7.1 Term-to-Eval Mapping

业务术语Eval object例子评分关注点
高风险客户Critical term caseAML 高风险 vs 信贷高风险是否使用正确上下文定义
例外审批Policy boundary casefee waiver exception是否说明条件、权限和人工审批
适当性Regulated advice casewealth suitability checklist是否避免直接投资建议和收益承诺
可疑活动Evidence completeness caseunusual transaction pattern是否保留 red flags 和不确定性
拒绝贷款High-impact decision caseadverse action draft是否禁止 LLM 单独决定并保留合规解释
当前有效政策Version case2026 fee policy vs 2025 fee policy是否按 business date 和 effective date 检索

7.2 Failure Taxonomy

Failure category定义示例Severity
Context confusion使用错误 bounded context 的术语或规则用客服投诉 case 语言解释 AML caseCritical in regulated workflows
Authority inversion低权威来源覆盖高权威来源FAQ 覆盖正式产品条款Critical
Version error使用过期或未生效政策引用旧 KYC 文件清单High / Critical
Jurisdiction error地区、国家、渠道规则混用用 US 规则回答 EU 客户问题High
Unsupported claim关键断言无证据说客户符合豁免但无政策引用High
Missing red flag摘要遗漏关键风险信号AML narrative 省略 structuring patternCritical
Excessive agencyAI 执行或承诺超出授权承诺贷款批准或费用免除Critical
Data leakage跨客户、跨 case、跨角色泄露向客服暴露 AML 调查细节Critical
Term drift同一术语在版本或团队间定义漂移“active customer” 口径变化未入 evalMedium / High
Rubric mismatch评分标准与业务语言不一致judge 把语气流畅误判为合规High

7.3 Decision Rubric

ScoreBusiness meaningRelease interpretation
5使用正确上下文、权威来源、当前版本和精确证据, 明确边界和人工责任可作为目标行为样本
4业务结论正确, 引用充分, 存在轻微表达或结构问题可上线但进入改进 backlog
3大体有用, 但证据粒度、边界说明或术语一致性不足低风险 pilot 可接受, 高风险不放行
2存在上下文混用、证据不足、版本不清或遗漏关键条件不放行, 需要修复
1越权承诺、错误政策、泄露、遗漏关键风险或错误决策建议Release blocker / incident candidate

7.4 Eval Case Schema

字段说明
case_id例如 AML-CTX-014CREDIT-POLICY-022
bounded_contextAML Investigation、Credit Origination、Customer Servicing、Wealth Advisory
user_roleanalyst、credit officer、customer service agent、advisor、supervisor
business_term_under_test高风险客户、例外审批、适当性、可疑活动
query用户自然语言输入
expected_behavioranswer、refuse、escalate、ask clarification、draft only
gold_sources权威来源和条款
hard_negatives相似但错误的来源
policy_version_date应使用的业务日期
rubric评分规则
critical_failures触发 no-go 的失败
owner业务或风险 owner

7.5 Eval-to-Governance Loop

Eval 信号可能根因治理动作
某术语失败率高glossary 不清或 synonym 未治理词表 steward 修订定义和 alt labels
某上下文混用频繁retrieval filter 或 prompt boundary 弱拆 index、强化 metadata、更新 context map
某政策版本错误source registry 版本字段缺失ingestion gate 加 effective / expiry check
judge 与专家分歧rubric 不够业务化业务专家重写评分说明和 examples
新事件类型无评测覆盖domain event catalog 变化新增 event-driven eval slice

8. Financial Retail Case: AML / 信贷 / 客服 / 财富的 bounded context 与 AI 设计

8.1 Context Map

Bounded context核心业务语言AI capability不能混用的上下文
AML Investigationalert、case、red flag、suspicious activity、SAR narrative、evidence证据检索、交易模式摘要、case narrative 草稿、升级建议客服投诉、营销分层、普通信用风险
KYC / Customer Due Diligencecustomer、UBO、CDD、EDD、document requirement、risk rating文件清单解释、缺失材料识别、remediation checklist信贷审批、财富推荐、客服优惠
Credit Originationapplication、borrower、collateral、DTI、credit memo、approval condition申请材料摘要、政策引用、memo 草稿、条件缺失检查催收、营销、AML suspicious activity
Customer Servicinginquiry、complaint、fee dispute、case status、resolution、escalation政策问答、客服回复草稿、投诉摘要、转人工建议AML 调查、信贷最终审批、财富个性化建议
Wealth Advisorysuitability、risk profile、investment objective、disclosure、recommendation rationale顾问准备、资料摘要、适当性 checklist、风险披露草稿普通客服、信贷评分、未经授权投资建议

8.2 AML Investigation

设计面决策
Bounded contextAML Investigation, 独立于客服和营销上下文
Ubiquitous languagealert、case、red flag、typology、counterparty、SAR narrative、evidence
AggregateAML Case aggregate: alert、transactions、entities、evidence、analyst notes、case decision
Domain eventsAlertGeneratedEvidenceAttachedCaseEscalatedNarrativeDraftedCaseClosed
AI task boundary可检索证据、总结模式、草拟 narrative;不可单独提交 SAR 或关闭 case
RAG boundary只检索 AML policy、typology guide、case evidence、authorized historical cases
Eval focusmissing red flag、unsupported claim、data leakage、typology mismatch

高级表达:

AML 助手的边界不是“帮分析员写得更快”, 而是围绕 AML Case aggregate 保护 evidence completeness、red flag preservation、SAR narrative traceability 和 analyst accountability。

8.3 Credit Origination

设计面决策
Bounded contextCredit Origination, 与 Collections 和 Marketing 分离
Ubiquitous languageapplication、borrower、income verification、DTI、collateral、approval condition、adverse action
AggregateLoan Application aggregate: applicant、documents、score inputs、conditions、decision package
Domain eventsApplicationSubmittedDocumentMissingCreditMemoDraftedConditionRequestedDecisionRecorded
AI task boundary可摘要材料、检查政策条件、草拟 memo;不可单独 approve / decline
RAG boundarycredit policy、product terms、approved underwriting procedure、current rate sheet
Eval focuspolicy version error、fair lending sensitive attribute misuse、unsupported approval condition

高级表达:

信贷 AI 的关键不是让模型“判断能不能贷”, 而是让它在 Credit Origination 上下文内提升材料完整性、政策引用质量和 memo 可审计性, 同时把最终信贷决策留在受控流程里。

8.4 Customer Servicing

设计面决策
Bounded contextCustomer Servicing, 面向咨询、投诉、争议和服务恢复
Ubiquitous languageinquiry、complaint、fee dispute、resolution、escalation、service recovery
AggregateService Case aggregate: customer inquiry、interaction history、resolution status、escalation record
Domain eventsInquiryReceivedComplaintCreatedFeeDisputeOpenedEscalationRequestedResponseSent
AI task boundary可回答低风险政策、草拟回复、总结互动;高风险承诺需人工确认
RAG boundaryproduct terms、approved FAQ、service SOP、case status facts
Eval focusunauthorized commitment、wrong fee policy、poor escalation、privacy leakage

高级表达:

客服 AI 可以追求速度和一致性, 但它的语言边界必须把“解释政策”和“承诺补偿或监管解释”分开。

8.5 Wealth Advisory

设计面决策
Bounded contextWealth Advisory, 由适当性、披露和顾问责任约束
Ubiquitous languagesuitability、risk profile、investment objective、time horizon、disclosure、advisor rationale
AggregateAdvisory Session aggregate: client profile、objectives、product materials、disclosures、advisor notes
Domain eventsProfileUpdatedDisclosureReviewedRecommendationPreparedAdvisorApprovedNote
AI task boundary可整理资料、生成 checklist、草拟披露说明;不可直接向客户输出个性化买卖建议
RAG boundaryapproved product materials、risk disclosure、suitability policy、advisor-approved notes
Eval focussuitability overclaim、return promise、missing disclosure、role confusion

高级表达:

财富 AI 的边界要把 advisor enablement 和 direct advice 区分开, 让模型支持顾问准备和证据整理, 不替代持牌顾问责任。


9. Artifact Templates

这些模板可直接用于作品集、架构评审、AI governance review 和面试讲述。字段可以按项目规模压缩, 但不要删除 owner、context、source、eval 和 decision boundary。

9.1 AI Domain Model Canvas

字段内容
Domain / subdomain业务域和子域, 例如 Financial Crime / AML Investigation
Business outcome希望改善的业务和风险结果
Bounded context语言和模型一致的边界
Primary roles用户、专家、审核人、受影响客户
Core objectsentities、value objects、aggregates
Business invariants必须保护的业务不变量
Domain events触发、记录和审计的事件
AI task modesread、retrieve、summarize、recommend、draft、decide、act
Blocked actionsAI 永远不能单独执行的动作
Knowledge sources权威来源、版本、权限、owner
Integration points上下文关系、API、events、ACL
Eval focus关键术语、失败分类、release blockers
Governanceowner、steward、review cadence、change control

9.2 Ubiquitous Language Glossary

FieldExample
term_idaml.red_flag
preferred_termRed flag / 风险信号
definition在 AML Investigation 上下文中表示需要分析员关注的可疑模式、证据或行为。
bounded_contextAML Investigation
allowed_synonymssuspicious indicator、typology indicator
blocked_synonymscustomer complaint、credit risk flag
related_termsalert、case、typology、SAR narrative
source_authorityAML Policy v6.1、Typology Guide v4
ownerAML Policy Owner
eval_casesAML-TERM-001AML-CTX-014
change_rule定义变更触发 retrieval regression 和 expert review

9.3 Context Map

From contextTo contextRelationshipContractAI control
Customer ServicingCore BankingCustomer / Supplieraccount status API、transaction display contract只读授权事实, 不解释账务规则之外的风险
AML InvestigationKYCPartnershipcustomer due diligence event、risk rating update联合评审术语和 red flag handoff
Credit OriginationCRMAnti-Corruption Layercustomer profile mappingCRM 标签不能直接作为 creditworthiness
Wealth AdvisoryProduct CatalogCustomer / Supplierapproved product material feed只使用当前有效材料和 disclosure
Enterprise AI PlatformAll contextsGeneric platformlogging、eval、model gateway、policy engine平台共享能力, 不共享业务语义

9.4 RAG Boundary Matrix

FieldExample
rag_boundary_idcredit-origination-policy-rag
bounded_contextCredit Origination
user_rolescredit officer、credit supervisor、model risk reviewer
allowed_sourcesCredit Policy、Underwriting SOP、Product Terms、Rate Sheet
excluded_sourcesCollections scripts、Marketing propensity model、retired policies
authority_orderA0 regulation > A1 credit policy > A2 SOP > A3 system facts > A4 training
metadata_filtersproduct、jurisdiction、effective_date、customer_segment、approval_status
term_schemecredit glossary v3
hard_negative_rulesretired policy and similar collections terms must not enter final context
citation_requirementclaim-level citation for approval conditions and adverse action rationale
eval_slicesversion, jurisdiction, product, exception, sensitive attribute exclusion

9.5 Domain Eval Taxonomy

FieldExample
taxonomy_idwealth-advisory-domain-eval-v1
critical_termssuitability、risk profile、investment objective、disclosure
failure_categoriescontext confusion、unsupported claim、return promise、missing disclosure
severity_rulesdirect personalized recommendation by AI = critical
rubric_dimensionscontext correctness、source authority、evidence support、human control、tone
release_blockersunauthorized advice、outdated product material、missing risk disclosure
monitoring_slicesadvisor role、product type、client risk profile、channel
ownerWealth Advisory Product Owner + Compliance Reviewer

9.6 AI Domain Governance RACI

ActivityProductDomain OwnerArchitectureData / KnowledgeRisk / ComplianceModel / Eval
Define bounded contextARRCCC
Maintain glossaryCACRCC
Approve source authorityCACRRC
Design task boundaryARRCRC
Approve tool actionsCRRCAC
Build eval taxonomyARCCRR
Release gate decisionARRCRR
Review incidentsRARRRR

10. Interview Answers

10.1 30 秒版本

我会用 DDD 先划清 AI 产品的 bounded context, 因为金融零售里同一个词在 AML、信贷、客服、财富中的含义可能完全不同。然后把 ubiquitous language 做成 glossary、taxonomy 或 ontology, 绑定权威知识源、RAG 检索边界、工具权限和 eval vocabulary。这样 AI 不是靠 prompt 猜业务含义, 而是在明确的领域模型、知识边界和评估门禁里工作。

10.2 2 分钟版本

我不会从“做一个万能 AI 助手”开始, 而会先问它属于哪个业务上下文。例如 AML investigation、credit origination、customer servicing 和 wealth advisory 都有自己的语言、对象、事件和风险责任。

第一步是 bounded context: 明确这个 AI capability 服务哪个业务结果, 由谁负责, 接触哪些 aggregate, 比如 AML Case、Loan Application、Service Case 或 Advisory Session。

第二步是 ubiquitous language: 把核心词汇定义清楚, 包括同义词、禁用混淆词、权威来源和 owner。比如 “case” 在 AML 和客服里不能混用, “approval” 在信贷和合规里也不是同一件事。

第三步是 AI task boundary: 定义模型可以 read、retrieve、summarize、recommend、draft 到什么程度, 哪些 decide 或 act 必须人工审批或禁止。例如信贷 AI 可以草拟 credit memo, 但不能单独 approve 或 decline。

第四步是 RAG boundary: 检索要按 context、source authority、policy version、jurisdiction、permission 和 term scheme 过滤, 不能让模型查询整个企业知识库。

第五步是 eval vocabulary: 把业务词转成 eval cases、failure taxonomy 和 release blocker。比如 context confusion、authority inversion、version error、unsupported claim、excessive agency 都要能被测试和追踪。

这样产出的不是一个聊天界面, 而是一套可治理的 AI 产品架构: context map、domain model、glossary、RAG boundary matrix、domain eval taxonomy 和 release gate evidence。

10.3 Enterprise Architect 版本

在企业架构视角, 我会把 AI DDD 看成业务架构、数据架构、应用架构和治理架构之间的语义控制层。

业务架构上, bounded context 定义能力边界和 owner, 避免 enterprise copilot 把 AML、信贷、客服、财富的语言混在一起。数据架构上, ubiquitous language 连接 glossary、taxonomy、ontology、source registry、lineage 和 access policy。应用架构上, context map 决定 AI capability 如何通过 API、events、ACL 和 anti-corruption layer 连接 legacy systems 与核心域。治理架构上, NIST AI RMF 和 ISO/IEC 42001 的思路可以落到 risk mapping、measure plan、release gate、change control、incident review 和 management review。

我会重点交付五类架构资产:

  1. Bounded Context Map: 每个 AI capability 的业务边界、owner、核心对象和上下文关系。
  2. Ubiquitous Language Glossary / Ontology: 关键术语、同义词、禁用混淆词、来源权威和治理责任。
  3. AI Task Boundary Matrix: 模型能读、检索、总结、建议、草拟、决策和行动的边界。
  4. RAG Boundary Matrix: source authority、version、permission、jurisdiction、term scheme 和 citation requirement。
  5. Domain Eval Taxonomy: 把业务语言转成 failure taxonomy、rubric、critical failures 和 release blockers。

高级判断标准是: 如果一个 AI 能力无法说明它属于哪个 bounded context、使用哪套语言、检索哪些来源、能触碰哪些 aggregate、如何处理跨上下文语义、用什么 eval vocabulary 放行, 它就不应该进入高风险金融零售生产流程。


11. Portfolio Storyline

作品集不要只展示“我做了一个 RAG chatbot”。更强的叙事是:

业务复杂度: 同一术语跨 AML / 信贷 / 客服 / 财富存在语义冲突
-> 架构方法: 用 DDD 拆 bounded context 和 context map
-> 语言治理: 建立 ubiquitous language glossary、taxonomy、ontology
-> AI 边界: 定义 task boundary、tool boundary、RAG boundary
-> 评估证据: 建立 domain eval taxonomy 和 release blockers
-> 治理闭环: 用 owner、version、incident、change control 持续维护

可展示资产清单:

Artifact展示什么能力
AI Domain Model Canvas能把 AI idea 转成领域模型和业务不变量
Bounded Context Map能识别架构边界和跨域风险
Ubiquitous Language Glossary能治理术语、同义词和语义冲突
Context Map + ACL能设计 legacy / vendor / platform 集成边界
RAG Boundary Matrix能把知识权威、版本、权限和检索设计串起来
Domain Eval Taxonomy能把业务语言转成评估、门禁和风险证据
Release Gate Memo能用证据支持 pilot、limited go、no-go 或 rollback

最终一句话:

我的 AI 架构能力不是把模型接到流程里, 而是把金融零售的领域语言、业务边界、知识权威、任务权限和评估门禁连接成一个可运行、可审计、可持续治理的产品系统。