Loading...
Loading...
Compare original and translation side by side
SCORE SCALE: 1-5 only (NOT 1-10, NOT percentages)
Half-scores (3.5) permitted with justification
SEVERITY LABELS: [S1] Critical — System will fail or is exploitable
[S2] High — Significant risk under realistic conditions
[S3] Medium — Design weakness limiting growth
[S4] Low — Suboptimal but manageable
[S5] Info — Best practice suggestion (also used for strengths)
DIMENSION WEIGHTS:
Structural Integrity: 20% | Performance: 17%
Scalability: 18% | Enterprise Readiness: 15%
Security: 18% | Operational Excellence: 7%
| Data Architecture: 5%
GRADE BOUNDARIES:
A = 90-100% | B = 80-89% | C = 70-79% | D = 60-69% | F = <60%
FORMULA: Overall% = (Σ dimension_score × weight) / 5 × 100评分范围: 仅支持1-5分(不支持1-10分、不支持百分比)
可给出半分(如3.5),但需提供理由
严重等级标签: [S1] 严重 —— 系统会发生故障或存在可被利用的漏洞
[S2] 高风险 —— 真实场景下会触发严重问题
[S3] 中风险 —— 设计缺陷会限制业务增长
[S4] 低风险 —— 不够优化但影响可控
[S5] 提示 —— 最佳实践建议(也用于标记优势点)
维度权重:
结构完整性: 20% | 性能: 17%
可扩展性: 18% | 企业就绪度: 15%
安全性: 18% | 运维卓越性: 7%
| 数据架构: 5%
等级划分:
A = 90-100% | B = 80-89% | C = 70-79% | D = 60-69% | F = <60%
计算公式: 总体得分% = (Σ 各维度得分 × 对应权重) / 5 × 100scripts/scan_codebase.sh <path>scripts/scan_codebase.sh <路径>bash scripts/scan_codebase.sh <codebase_path>bash scripts/scan_codebase.sh <codebase_path>references/scoring-rubric.mdreferences/scoring-rubric.md| # | Dimension | Weight | Reference File |
|---|---|---|---|
| 1 | Structural Integrity & Design Principles | 20% | |
| 2 | Scalability | 18% | |
| 3 | Enterprise Readiness | 15% | |
| 4 | Performance | 17% | |
| 5 | Security | 18% | |
| 6 | Operational Excellence | 7% | |
| 7 | Data Architecture | 5% | |
references/codebase-signals.mdreferences/document-review-guide.md| # | 维度名称 | 权重 | 参考文件路径 |
|---|---|---|---|
| 1 | 结构完整性与设计原则 | 20% | |
| 2 | 可扩展性 | 18% | |
| 3 | 企业就绪度 | 15% | |
| 4 | 性能 | 17% | |
| 5 | 安全性 | 18% | |
| 6 | 运维卓越性 | 7% | |
| 7 | 数据架构 | 5% | |
references/codebase-signals.mdreferences/document-review-guide.md| Level | Label | Meaning |
|---|---|---|
| S1 | Critical | System will fail in production or has an active exploitable vulnerability |
| S2 | High | Significant risk that will cause problems under realistic conditions |
| S3 | Medium | Design weakness that limits growth or creates tech debt |
| S4 | Low | Suboptimal choice with manageable impact |
| S5 | Informational | Observation, best practice suggestion, or note for awareness |
| 等级 | 标签 | 含义 |
|---|---|---|
| S1 | 严重 | 系统在生产环境会发生故障,或存在可被主动利用的漏洞 |
| S2 | 高风险 | 真实场景下会触发严重问题的高优先级风险 |
| S3 | 中风险 | 会限制增长或产生技术债务的设计缺陷 |
| S4 | 低风险 | 不够优化但影响可控的选择 |
| S5 | 提示 | 观测结果、最佳实践建议或需要知晓的注意事项 |
references/scoring-rubric.mdOverall = Σ(dimension_score × weight) / 5 × 100references/scoring-rubric.md总体得分 = Σ(维度得分 × 对应权重) / 5 × 100assets/report-template.mdassets/report-template.md| Rationalization | Reality |
|---|---|
| "It works in production already" | Working today doesn't mean it scales, maintains, or survives team turnover — architecture debt compounds silently |
| "We'll refactor when it becomes a problem" | By then the cost is 10x higher — refactoring under load with accumulated dependencies is surgical, not routine |
| "The framework handles that" | Frameworks provide defaults, not architecture — you're still responsible for boundaries, error propagation, and data flow |
| "It's an internal service, standards don't apply" | Internal services become external faster than you expect — technical debt migrates across boundaries |
| "Performance is fine for our current scale" | Architecture reviews evaluate the next 10x, not the current state — O(n^2) at 1k rows is invisible at 100k rows |
| "We don't have time for a full review" | Partial reviews create false confidence — better to review fewer dimensions thoroughly than all dimensions superficially |
| 误区 | 实际情况 |
|---|---|
| 「现在生产环境已经能跑了」 | 现在能跑不代表能扩展、能维护、能扛住团队人员流动——架构债务是隐性累积的 |
| 「等出问题了我们再重构」 | 到时候成本会是现在的10倍——在负载压力下、带着累积的依赖重构是精细的手术,不是常规操作 |
| 「框架已经处理了这些问题」 | 框架提供的是默认值,不是架构——你仍然需要对边界、错误传递、数据流负责 |
| 「这是内部服务,不用符合标准」 | 内部服务变成外部服务的速度比你想的快——技术债务会跨边界传递 |
| 「当前规模下性能没问题」 | 架构评审评估的是未来10倍的规模,不是当前状态——O(n^2)复杂度在1千行数据时没感觉,到10万行就会暴露问题 |
| 「我们没时间做全量评审」 | 不完整的评审会带来错误的安全感——宁可少评审几个维度做深,也不要所有维度都浅尝辄止 |