Files
group_xinghuo_jinrong/docs/course/jinrong-module-risk/modules/04-gaps.html
T
zhanghongyu_0626 21ced4d38f feat(report): Add battery report generation and update course documentation
- Introduced `battery_report.json` for local data analysis, excluding it from the database.
- Enhanced `AGENTS.md` to reflect updated test baseline with 795 passed tests.
- Added new metrics for trade flow in `dict_service.py`, improving transaction data analysis.
- Updated regex patterns in `guardrail.py` to better handle numeric extraction and prevent misinterpretation of tokens.
- Expanded course modules with new content on FR-8/9/10 capabilities and L3 role management.
- Improved concurrency handling in transaction processing to ensure accurate alert generation.

This update enhances data analysis capabilities and improves the overall structure and clarity of course materials.
2026-09-10 14:32:25 +08:00

81 lines
4.6 KiB
HTML
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.
<section class="module" id="module-4">
<div class="module-inner">
<p class="eyebrow animate-in">模块 4 · 演示与缺口</p>
<h1 class="module-title animate-in">后端有、前端没有<br>cron 和空台账怎么理解</h1>
<p class="module-lead animate-in">
风控引擎和 REST 大多已实现,但<strong>演示运维、cron 升级、部分前端按钮</strong>仍开放。
reset 后台账为空是正常现象——不是「风控坏了」。
</p>
<div class="screen animate-in">
<h2>后端有 · 前端未全接(2026-09)</h2>
<div class="pattern-cards">
<div class="pattern-card">
<h3>AML scan</h3>
<p><code>POST /api/risk/aml/scan</code> — API 有,<code>web/</code> 无专用操作页。</p>
</div>
<div class="pattern-card">
<h3>适当性双 URL</h3>
<p>平台 canonical <code>/api/compliance/suitability-check</code> vs 风控 <code>/api/risk/suitability/check</code> — 别再加第三条。</p>
</div>
<div class="pattern-card">
<h3>台账筛选</h3>
<p>类型/客户/日期高级筛选 — 后端能力部分有,UI 简版。</p>
</div>
</div>
</div>
<div class="screen animate-in">
<h2>FR-9/10:引擎在,cron 无 UI</h2>
<div class="flow-animation" data-steps='[
{"highlight":"flow-r-1","label":"对话 Tool query_overdue_alerts → 查库内已有超期单"},
{"highlight":"flow-r-2","label":"FR-9 超期升级 cron(escalation_scan.py)→ 定时扫描 pending_review 超阈值","packet":true,"from":"1","to":"2"},
{"highlight":"flow-r-3","label":"FR-10 行为扫描 cron(agent_behavior_scan.py)→ 行为模式扫描","packet":true,"from":"2","to":"3"},
{"highlight":"flow-r-1","label":"须运维手动跑脚本;Chat 里问不到「帮我跑 cron」","packet":true,"from":"3","to":"1"}
]'>
<div class="flow-actors">
<div class="flow-actor" id="flow-r-1"><span class="flow-actor-icon">💬</span><span>风控 Chat</span></div>
<div class="flow-actor" id="flow-r-2"><span class="flow-actor-icon">⏰</span><span>cron 脚本</span></div>
<div class="flow-actor" id="flow-r-3"><span class="flow-actor-icon">📊</span><span>MySQL 台账</span></div>
</div>
<p class="flow-step-label">点击「下一步」</p>
<div class="flow-controls">
<button class="btn flow-next-btn">下一步</button>
<button class="btn flow-reset-btn">重来</button>
</div>
</div>
<div class="callout callout-accent">
<strong>reset 后台账空:</strong> <code>reset.ps1</code> 只重建 <code>jinrong_core</code>;<code>risk_alert</code> 要跑 <code>prepare_risk_demo.sql</code> + AML 种子才有演示数据。完整步骤见 <code>docs/项目框架设计/演示SOP-风控模块.md</code> §2。
</div>
</div>
<div class="screen animate-in">
<h2>合规硬边界(再强调)</h2>
<p>预警默认 <code>pending_review</code> · 仅风控专员 <code>handle</code> 改状态 · <strong>不自动冻户</strong> · 不自动上报监管 · 不改正式 C1~C5。</p>
<div class="quiz-container" id="quiz-risk-m4">
<div class="quiz-question-block"
data-correct="option-a"
data-explanation-right="对。FR-9 升级靠 escalation_scan 脚本扫库,不是对话里触发定时任务。"
data-explanation-wrong="对话 Tool 只能查询已有数据,不能替代 cron 运维。">
<h3 class="quiz-question">风控专员说「在 Chat 里说一句就自动跑超期升级」,能实现吗?</h3>
<div class="quiz-options">
<button class="quiz-option" data-value="option-a" onclick="selectOption(this)">
<div class="quiz-option-radio"></div><span>不能,要部署/手动跑 FR-9 超期升级 cron(escalation_scan.py)</span>
</button>
<button class="quiz-option" data-value="option-b" onclick="selectOption(this)">
<div class="quiz-option-radio"></div><span>能,加 LangGraph 节点调 cron</span>
</button>
<button class="quiz-option" data-value="option-c" onclick="selectOption(this)">
<div class="quiz-option-radio"></div><span>能,让客服 Agent 代跑</span>
</button>
</div>
<div class="quiz-feedback"></div>
</div>
<button class="quiz-check-btn" onclick="checkQuiz('quiz-risk-m4')">检查答案</button>
<button class="quiz-reset-btn" onclick="resetQuiz('quiz-risk-m4')">重做</button>
</div>
</div>
</div>
</section>