0100ab2582
Move line-walk/delta/phase2/frontend audits and legacy memory into docs/archive/, add functional development SSOT, thin AGENTS/CLAUDE stubs, and regenerate changelog/audit indexes via consolidate_docs.py.
2.8 KiB
2.8 KiB
BUG 专项逐行走读 — Batch 25(2026-06-04)
标准: standards/line-walk-audit-standard-v2.md
范围
| 文件 | N | Read | H | FINDING |
|---|---|---|---|---|
server/infrastructure/database/__init__.py |
1 | 1..1 | 0 | 0 |
server/infrastructure/database/admin_repo.py |
62 | 1..62 | 4 | 0 |
server/infrastructure/database/audit_log_repo.py |
86 | 1..86 | 5 | 0 |
server/infrastructure/database/crypto.py |
54 | 1..54 | 0 | 0 |
server/infrastructure/database/db_credential_repo.py |
38 | 1..38 | 2 | 0 |
Step 3 规则扫描
自动化规则表 §四(PY/FE/SH);每命中经 Closure。
Closure 表
| 文件 | 行号 | 规则 | 判定 | 理由 |
|---|---|---|---|---|
server/infrastructure/database/admin_repo.py |
15 | PY-04 | SAFE | 规则命中经上下文核对无 BUG 路径(自动化 SAFE;人工复核见报告) |
server/infrastructure/database/admin_repo.py |
19 | PY-04 | SAFE | 规则命中经上下文核对无 BUG 路径(自动化 SAFE;人工复核见报告) |
server/infrastructure/database/admin_repo.py |
47 | PY-04 | SAFE | 规则命中经上下文核对无 BUG 路径(自动化 SAFE;人工复核见报告) |
server/infrastructure/database/admin_repo.py |
56 | PY-04 | SAFE | 规则命中经上下文核对无 BUG 路径(自动化 SAFE;人工复核见报告) |
server/infrastructure/database/audit_log_repo.py |
68 | PY-04 | SAFE | 规则命中经上下文核对无 BUG 路径(自动化 SAFE;人工复核见报告) |
server/infrastructure/database/audit_log_repo.py |
68 | PY-12 | SAFE | 规则命中经上下文核对无 BUG 路径(自动化 SAFE;人工复核见报告) |
server/infrastructure/database/audit_log_repo.py |
69 | PY-04 | SAFE | 规则命中经上下文核对无 BUG 路径(自动化 SAFE;人工复核见报告) |
server/infrastructure/database/audit_log_repo.py |
78 | PY-04 | SAFE | 规则命中经上下文核对无 BUG 路径(自动化 SAFE;人工复核见报告) |
server/infrastructure/database/audit_log_repo.py |
78 | PY-12 | SAFE | 规则命中经上下文核对无 BUG 路径(自动化 SAFE;人工复核见报告) |
server/infrastructure/database/db_credential_repo.py |
15 | PY-04 | SAFE | 规则命中经上下文核对无 BUG 路径(自动化 SAFE;人工复核见报告) |
server/infrastructure/database/db_credential_repo.py |
19 | PY-04 | SAFE | 规则命中经上下文核对无 BUG 路径(自动化 SAFE;人工复核见报告) |
Step 8 DoD
- 登记册 batch 文件
read_range覆盖 1..N - Step2 全文 Read(行数核对)
- Closure 全表(含零命中说明)
- FINDING: 0(OPEN 须当批修或登记)
验证
ruff check server/ # 若改后端
pytest tests/ -q --tb=no
FINDING 列表
无(0 FINDING)。