fix: MCP tools migrated from StateVector V1 to StateTensor V2

- identity_tools.py: rewritten to read StateTensor (8x1024 named vectors)
  instead of StateVector (single 1024-dim). Uses CATEGORY_TO_DIMENSION mapping.
- mcp_server.py: get_state_vector renamed to get_state_tensor
- __init__.py: updated exports

Now returns S(30) with architecture v2_tensor instead of S(2) from V1.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-06 19:41:32 +01:00
parent a0697c0b0f
commit 4400d25a58
3 changed files with 884 additions and 0 deletions

View File

@@ -41,6 +41,17 @@ from memory.mcp.unified_tools import (
update_thought_evolution_stage_handler,
)
from memory.mcp.identity_tools import (
GetStateProfileInput,
GetDavidProfileInput,
CompareProfilesInput,
GetStateTensorInput,
get_state_profile_handler,
get_david_profile_handler,
compare_profiles_handler,
get_state_tensor_handler,
)
__all__ = [
# Thought tools
"AddThoughtInput",
@@ -74,4 +85,14 @@ __all__ = [
"trace_concept_evolution_handler",
"check_consistency_handler",
"update_thought_evolution_stage_handler",
# Identity tools (state tensors and profiles)
"GetStateProfileInput",
"GetDavidProfileInput",
"CompareProfilesInput",
"GetStateTensorInput",
"get_state_profile_handler",
"get_david_profile_handler",
"compare_profiles_handler",
"get_state_tensor_handler",
]