fleet-memory/hindsight-control-plane
Nicolò Boschi 48185a4bee
fix(mcp): validate UUID inputs and add sync_retain tool (#906)
* fix(mcp): validate UUID inputs at engine level and add sync_retain tool (#888)

- Add UUID validation in memory_engine for get_memory_unit, delete_memory_unit,
  get_mental_model, delete_mental_model, get_mental_model_history (raises ValueError)
- Catch ValueError → 400 in HTTP route handlers
- Add sync_retain MCP tool that calls retain_batch_async directly for immediate
  availability (no polling needed)
- Register sync_retain in _ALL_TOOLS, _SINGLE_BANK_TOOLS, UI MCP_TOOL_GROUPS
- Add code-review check for MCP tool registration completeness

* fix: remove UUID validation for mental model IDs (column is TEXT, not UUID)

Mental model IDs are TEXT columns that accept arbitrary string IDs
(e.g., 'team-communication-preferences'). UUID validation was incorrectly
added to get_mental_model, delete_mental_model, and get_mental_model_history.
2026-04-07 11:59:59 +02:00
..
bin feat: simplify mcp installation + ui standalone (#41) 2025-12-18 10:24:56 +01:00
public brandind and misc fixes 2025-12-11 12:46:48 +01:00
src fix(mcp): validate UUID inputs and add sync_retain tool (#906) 2026-04-07 11:59:59 +02:00
types Feature/graph viz (#85) 2026-01-02 16:27:29 +01:00
.dockerignore rename to hindsight (#2) 2025-11-25 19:28:26 +01:00
.eslintrc.json rename to hindsight (#2) 2025-11-25 19:28:26 +01:00
.gitignore feat: observation history tracking and diff UI (#513) 2026-03-06 16:16:05 +01:00
.prettierrc bump pg0 0.11.x and improve documentation (#33) 2025-12-16 13:33:01 +01:00
components.json rename to hindsight (#2) 2025-11-25 19:28:26 +01:00
eslint.config.mjs fix: doc build and lint files (#34) 2025-12-16 13:49:09 +01:00
next.config.ts feat: observation history tracking and diff UI (#513) 2026-03-06 16:16:05 +01:00
package.json feat(control-plane): add Constellation view with Pretext canvas rendering (#831) 2026-04-01 11:15:14 +02:00
postcss.config.mjs rename to hindsight (#2) 2025-11-25 19:28:26 +01:00
tailwind.config.ts feat: introduce mental models (#132) 2026-01-16 11:16:41 +01:00
tsconfig.json feat: filter operations by type + fix stale auto-refresh closure (#522) (#527) 2026-03-09 13:17:00 +01:00