- Introduced `MYSQL_CORE_DATABASE` in `.env.example` and `settings.py` for core database configuration. - Added `CoreReadOnlyRepository` for read-only access to the `jinrong_core` database. - Updated `AGENTS.md`, `README.md`, and various documentation files to reflect new agent onboarding processes and project structure. - Revised requirements in `requirements.txt` to include `langgraph` and `langchain-core`. - Enhanced `FLOW.md` with local bootstrap instructions for setting up the core simulation environment. - Added new scripts for database creation and seeding for the core simulation library. - Improved overall documentation for clarity on project architecture and memory management. - Updated `TODO.md` to reflect current development priorities and tasks.
51 lines
2.1 KiB
Markdown
51 lines
2.1 KiB
Markdown
# 需求拆解(对照开发)
|
||
|
||
> 来源:`docs/需求拆解/业务场景优先级清单.md`(P0)
|
||
> 合规:`docs/需求拆解/Agent风险与合规约束汇总.md`
|
||
> 数据:`docs/需求拆解/数据交互矩阵.md`
|
||
|
||
------
|
||
|
||
## 本轮范围
|
||
|
||
- **目的:** 四 Agent 服务四类人群,统一数据层 + 合规底座,可对话闭环。
|
||
- **明确不做:** 自动交易、营销推荐、Agent 互调 LLM、自动冻户、Streamlit、P3 平台能力。
|
||
|
||
------
|
||
|
||
## 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 | SQL 已定;灌库待验 | T-05 |
|
||
| R0-CORE | Core 模拟 + 同步 | reset.ps1 + sync 脚本 | **脚本已落地** | T-05 |
|
||
|
||
**F-04 部分完成说明:** `app/repository/core_ro.py` + `scripts/core/*` + `settings.mysql_core_database` 已有;尚未接入 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 | 适当性阻断请求 | 唯一阻断场景 | 未做 | T-31 |
|
||
| R-03 | AML 命中通知 | 不自动冻户 | 未做 | T-32 |
|
||
|
||
## Wave 3 · 客户 P0
|
||
|
||
| ID | 需求 | 验收对照 | 状态 | TODO |
|
||
| --- | --- | --- | --- | --- |
|
||
| C-01~C-05 | 持仓/产品/规则/阈值/净值 | 无买卖指导 | 未做 | T-40 |
|
||
|
||
P1+ 见 `docs/需求拆解/业务场景优先级清单.md` §3。
|