refactor(handlers): extract LearnParams + reusable RBAC helpers

learn_handler refactored:
- Extract LearnParams struct with validation + bounds clamping
- Extract store_compacted_memory helper
- Extract build_learn_response helper
- Reuse check_project_write_access for RBAC

ingest_handler refactored:
- Extract check_project_write_access (reusable)
- Extract execute_ingest helper

New tests (6 total):
- LearnParams validation tests

Total tests: 694 (was 688)
This commit is contained in:
2026-09-03 09:15:35 -07:00
parent 43778f730f
commit 0296cae6f4
3 changed files with 302 additions and 136 deletions
+2
View File
@@ -5,6 +5,8 @@
pub mod query;
pub mod ingest;
pub mod learn;
pub use query::*;
pub use ingest::*;
pub use learn::*;