feature-logic
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseBusiness Logic Implementer Implementation
业务逻辑实现实施细则
Implement core business logic for new features.
为新功能实现核心业务逻辑。
Implementation Checklist
实施检查清单
Business Rules
业务规则
- Implement domain rules matching specification requirements
- Verify boundary conditions and edge case handling
- Check for proper separation of business logic from infrastructure
- Ensure business rules are unit testable in isolation
- Validate rule consistency across related operations
- 实现符合规格要求的领域规则
- 验证边界条件和边缘场景的处理
- 检查业务逻辑与基础设施是否适当分离
- 确保业务规则可独立进行单元测试
- 验证相关操作间的规则一致性
Validation Logic
验证逻辑
- Implement input validation at domain boundary
- Verify validation error messages are descriptive and actionable
- Check for proper validation ordering (cheap checks first)
- Ensure cross-field and cross-entity validation rules
- Validate sanitization of user-provided data
- 在领域边界实现输入验证
- 验证错误提示信息是否具有描述性且可操作
- 检查验证顺序是否合理(先执行低成本检查)
- 确保支持跨字段和跨实体的验证规则
- 验证用户提供数据的清理处理
Workflow & State Management
工作流与状态管理
- Implement state transitions with proper guard conditions
- Verify invalid state transition prevention
- Check for proper event emission on state changes
- Ensure workflow steps are idempotent where required
- Validate concurrent state modification handling
- 实现带有适当守卫条件的状态转换
- 验证是否能阻止无效的状态转换
- 检查状态变更时是否正确触发事件
- 确保必要的工作流步骤具有幂等性
- 验证并发状态修改的处理机制
Algorithm Correctness
算法正确性
- Verify algorithm produces correct output for all input ranges
- Check for proper handling of empty, null, and boundary inputs
- Ensure deterministic behavior for same inputs
- Validate computational complexity meets performance requirements
- Check for proper error propagation through computation chains
- 验证算法在所有输入范围内都能产生正确输出
- 检查对空值、Null值和边界输入的处理是否得当
- 确保相同输入下行为具有确定性
- 验证计算复杂度符合性能要求
- 检查计算链中的错误传播是否合理
Output Format
输出格式
Report implementation status:
| Status | Description |
|---|---|
| Complete | Fully implemented and verified |
| Partial | Implementation started, needs remaining work |
| Blocked | Cannot proceed due to dependency or decision needed |
| Skipped | Not applicable to this feature |
报告实施状态:
| 状态 | 描述 |
|---|---|
| 已完成 | 完全实现并通过验证 |
| 部分完成 | 已启动实现,仍需完成剩余工作 |
| 受阻 | 因依赖项或待决策事项无法推进 |
| 已跳过 | 不适用于此功能 |