Новые модули: - errors.py — классификация ошибок (transient/validation/business) - web/chat_api.py — поиск ГЭСН, НР/СП lookup - web/generator_api.py — 3-шаговая генерация сметы - .claude/rules/ — конвенции для calc/ai/output/web Улучшения: - generator.py: few-shot примеры, retry при невалидном JSON, предусловия - bot.py: структурированные ошибки вместо голых Exception - wizard_api.py: структурированные ошибки в HTTP-ответах Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
520 B
520 B
paths
| paths | |
|---|---|
|
Calculation Module Rules
- Formulas MUST match normative documents (Prikazs 421/pr, 812/pr, 774/pr, Appendix 28.1)
- Never change coefficient values without citing the source document
- НР and СП are calculated from ФОТ (ОТ + ЗП маш.), NOT from ПЗ
- Coefficients multiply, never add: K_total = K1 * K2 * K3
- Always run
check_yaml_config()after modifying calculation logic - Test on real project YAML (projects/sviyagino_2026q1.yaml) before committing