Files
digital-psychology/docs/ECR/ECR-012-input-compliance.md
jackyu66gitandCursor 89756f65b4 feat(ECR-012–016): 合规、题库、时辰刷新、头像、MBTI OEJTS 与埋点
落地输入合规、探索题库、报告日/时辰刷新、账号头像、OEJTS 量表,并补齐 H5 埋点与 Admin 漏斗;同步 ESS 工件、切至自建 Git、清理 GitHub Actions。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-13 01:27:58 +08:00

41 lines
1.1 KiB
Markdown
Raw Permalink 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.
# ECR-012
**Title:** 用户文字输入合规(后端 textsafe + 前端镜像)
**Status:** Approved
**Date:** 2026-08-12
**Approved:** 2026-08-12(Human:文字输入全规则;后端为重点)
**Change Level:** L2
## Change
1. Active Spec`.ai/product/feature-spec/input-compliance.md`
2. `internal/textsafe`:长度 · XSS/控制字符 · lexicon · 刷屏特征 · Normalize
3. 挂接 C 端:auth 昵称 · profile 名 · ask content · companion note · growth title/focus/note · synastry invite display_name
4. `@yuxingu/utils` 镜像校验供 H5 即时提示
5. 错误码 `40060`
## Motivation
自由文字缺少统一合规闸门,易进库/进模型。
## Scope
### Allowed
- 上列 Spec / textsafe / 指定 Handler·Service / utils
### Forbidden
- 第三方审核 SaaS · 语音 · 改开放登录 · Ops 全文案重构(可后 ECR)
## Acceptance
- [x] 违规 nickname / ask / note → 40060
- [x] 合法中文名通过
- [x] go test textsafe PASS
- [x] 关键表单前端有即时错误(至少昵称/问答/档案名)
## Trace
Spec `input-compliance` · TASK-012 · TEST_REPORT/ECR-012.md