33 lines
1.8 KiB
Markdown
33 lines
1.8 KiB
Markdown
# 管理后台验收映射
|
|
|
|
对应 `docs/SIP管理后台_接口与页面设计及验收_v1.0.md`。这是 management 自身 Mock/隔离数据库的可重复验收,不把真实供应商、云、MQ、SIP/RTP、ASR/LLM/TTS 结果混入。
|
|
|
|
## 已自动覆盖
|
|
|
|
| 设计用例 | 代码证据 |
|
|
| --- | --- |
|
|
| SIP-03/04/10/11/16/21 | `server_test.go` 的鉴权、CORS、敏感字段脱敏、观察 boot/sequence 及模式隔离;`util.go`/`store.go` 的边界校验 |
|
|
| SIP-05/06/20/31/32 | durable SQLite operation、If-Match CAS、请求 ID 原值重放/异载荷冲突、只读目录 active revision、`Recover` |
|
|
| SIP-07/08/28/30 | `TestPartialPublicationRetainsBarrierAndRetriesFailedCell`、`AdmissionAllowed`、逐 Cell publication rows;未全量确认不激活 |
|
|
| SIP-09/37 | `trunk_verifications` 版本证据及 real 发布缺失核验阻断 |
|
|
| SIP-13/14/15/24/26/33/34 | 固定 7 行 synthetic attempts、cohort/timeline/realtime 语义、过滤指纹 cursor、异常事实不推造 |
|
|
| SIP-25/38/39/40 | Go 独立模块、独立 SQLite、无 Python/其它业务 import、Mock 默认不联网;frontend 固定 upstream commit 和许可证 |
|
|
|
|
固定样例自动校验:`attempts_total=6`(拒绝不计入)、`started_confirmed=6`、`answered=2`、`terminal_not_answered=3`、`pending_not_answered=1`、`rejected=1`、`answer_rate=0.333...`、`talk total=180`、`acd=90`;号码只在响应中脱敏。
|
|
|
|
## 运行门禁
|
|
|
|
```bash
|
|
cd management/backend
|
|
go test -race ./...
|
|
go vet ./...
|
|
cd ../frontend
|
|
bun run lint
|
|
bun run format:check
|
|
bun run build
|
|
cd ../..
|
|
management/scripts/sync-contracts.sh --check
|
|
```
|
|
|
|
真实模式发布还要求外部 Cell Agent 的 HTTPS/mTLS、供应商核验、固定出口白名单和真实线路证据;本地测试没有伪造这些证据,也没有发起真实呼叫。Compose 只启动隔离 Mock。
|