Files
XingHuo/docs/memory/REQUIREMENTS.md
T
zhanghongyu_0626 3fb0ceb334 Enhance suitability assessment and documentation
- Implemented `check_suitability` method in `CoreReadOnlyRepository` for suitability determination based on customer and product risk levels.
- Added `build_suitability_log_row` function in `suitability.py` for mapping suitability check results to `risk_suitability_log`.
- Updated `AGENTS.md`, `ENVIRONMENT.md`, and `FLOW.md` to reflect changes in suitability assessment processes and documentation.
- Revised `FRAMEWORK.md` and `MEMORY.md` to clarify project structure and data flow related to suitability checks.
- Expanded `TODO.md` with tasks related to logging and auditing suitability assessments.
2026-09-07 11:15:30 +08:00

54 lines
2.8 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 需求拆解(对照开发)
> 来源:`docs/需求拆解/业务场景优先级清单.md`(P0)
> 合规:`docs/需求拆解/Agent风险与合规约束汇总.md`
> 数据:`docs/需求拆解/数据交互矩阵.md`
------
## 本轮范围
- **目的:** 四 Agent 服务四类人群,统一数据层 + 合规底座,可对话闭环。
- **明确不做:** 自动交易、**营销式**推荐(千人千面话术/优劣对比/「强烈推荐」)、Agent 互调 LLM、自动冻户、Streamlit、P3 平台能力。
- **允许(客户 Agent):** 按客户 C1~C5 与产品 R 等级/期限/起购做 **适当性匹配说明**(C-07 P1、C-11 P2),须联动风控 R-02;**不是**投顾式推荐或买卖指导。
------
## Wave 0 · 共用底座
| ID | 需求 | 验收对照 | 状态 | TODO |
| --- | --- | --- | --- | --- |
| F-01 | JWT + RBAC + 数据归属 | 越权 403 + audit;JWT 手册 §13 | 未做 | T-01 |
| F-02 | 全量审计留痕 | trace_id 可还原 | 未做 | T-02 |
| F-03 | 输入防护 | input_guard_log | 未做 | T-03 |
| F-04 | Core 只读层 | 不改 Core 账;Repository 只 SELECT | **大部分** | T-04 |
| R0-DB | MySQL 共用 11 表 + Redis | 01-mysql-共用底座.sql;`risk_suitability_log` P0 字段已定 | SQL 已定;灌库待验 | T-05 |
| R0-CORE | Core 模拟 + 同步 | reset.ps1 + sync;33 客户 / 14 产品 / KYC / C×R 矩阵 | **脚本已落地** | T-05 |
**F-04 大部分完成说明:** `core_ro.py`(含 `check_suitability`)+ `scripts/core/*` + `settings.mysql_core_database` 已有;`suitability.py` 映射 log 行已定。尚未接入 api/service Tool 与归属校验。
## Wave 1 · 内部 Agent P0
| ID | 需求 | 验收对照 | 状态 | TODO |
| --- | --- | --- | --- | --- |
| D-01~D-04 | 分析:客户/产品/预警查数 + SQL 留痕 | analytics_query_log | 未做 | T-10 |
| A-01~A-05 | 代理人:画像/规则/草稿/流程/合规巡检 | 非归属 403;草稿不外发 | 未做 | T-20 |
## Wave 2 · 风控 P0
| ID | 需求 | 验收对照 | 状态 | TODO |
| --- | --- | --- | --- | --- |
| R-01 | 大额预警 | risk_alert pending_review | 未做 | T-30 |
| R-02 | 适当性阻断请求 | 唯一阻断场景;log 表 + 映射代码已定 | **契约已定** | T-31 |
| R-03 | AML 命中通知 | 不自动冻户 | 未做 | T-32 |
## Wave 3 · 客户 P0
| ID | 需求 | 验收对照 | 状态 | TODO |
| --- | --- | --- | --- | --- |
| C-01~C-05 | 持仓/产品/规则/阈值/净值 | 无买卖指导;P0 不含匹配推荐 | 未做 | T-40 |
| C-07 | 风格测评 + 同类方向事实清单 | 须 R-02 适当性;无买卖指令 | 未做 | T-41 |
| C-11 | 按风险/期限/起购做匹配说明 | 非营销话术;不替代投顾 | 未做 | T-42 |
P1+ 见 `docs/需求拆解/业务场景优先级清单.md` §3。