Chiguyong
|
fb86d4e51b
|
refactor(iq): ce-simplify-code fixes — P1 bug + P2 quality
P1 (bug fix):
- store_prompt_reflection: bypass store() and write ORM entry directly
so task_hash/version/score land in metadata_ JSONB column. Previously
store() dropped these keys, breaking list_prompt_reflections_by_hash
filtering (U7 would always return empty).
P2 (quality):
- DangerousToolsConfig: pre-compile regex patterns in __post_init__
(is_dangerous runs on per-tool hot path in autonomy mode).
- ABTester.compare_prompt_versions: extract _no_data_result helper,
remove redundant isinstance check after value type guard.
- orchestrator: fix misleading "transient TeamPlan" comment.
Tests updated to match new store_prompt_reflection implementation
(direct ORM write instead of store() delegation). 137 tests pass.
|
2026-07-06 14:20:42 +08:00 |