refactor(layout): rename multi_swarm → multi_swarm_core con doppia nidificazione uv workspace

- mv src/multi_swarm → src/multi_swarm_core/multi_swarm_core (member layout)
- sed-replace globale degli import: from/import multi_swarm.* → multi_swarm_core.*
- 115 occorrenze aggiornate in src/ scripts/ tests/
- multi_swarm_coevolutive (nome repo) preservato dal word boundary

Pre-condizione per il setup uv workspace della Fase 3.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Adriano Dal Pastro
2026-05-15 17:43:48 +00:00
parent 7d766173a4
commit b6539802e0
103 changed files with 746 additions and 110 deletions
+234
View File
@@ -0,0 +1,234 @@
{
"version": "1.0.0",
"lastScanned": 1778863584729,
"projectRoot": "/opt/docker/multi_swarm_coevolutive",
"techStack": {
"languages": [
{
"name": "Python",
"version": null,
"confidence": "high",
"markers": [
"pyproject.toml"
]
}
],
"frameworks": [
{
"name": "pytest",
"version": null,
"category": "testing"
}
],
"packageManager": null,
"runtime": null
},
"build": {
"buildCommand": null,
"testCommand": "pytest",
"lintCommand": "ruff check",
"devCommand": null,
"scripts": {}
},
"conventions": {
"namingStyle": null,
"importStyle": null,
"testPattern": null,
"fileOrganization": null
},
"structure": {
"isMonorepo": false,
"workspaces": [],
"mainDirectories": [
"docs",
"scripts",
"src",
"tests"
],
"gitBranches": {
"defaultBranch": "main",
"branchingStrategy": null
}
},
"customNotes": [],
"directoryMap": {
"data": {
"path": "data",
"purpose": "Data files",
"fileCount": 0,
"lastAccessed": 1778863584681,
"keyFiles": []
},
"docs": {
"path": "docs",
"purpose": "Documentation",
"fileCount": 0,
"lastAccessed": 1778863584688,
"keyFiles": []
},
"scripts": {
"path": "scripts",
"purpose": "Build/utility scripts",
"fileCount": 6,
"lastAccessed": 1778863584699,
"keyFiles": [
"__init__.py",
"backtest_strategy.py",
"replay_strategies_window.py",
"run_paper_trading.py",
"run_phase1.py"
]
},
"series": {
"path": "series",
"purpose": null,
"fileCount": 1,
"lastAccessed": 1778863584703,
"keyFiles": [
"f4a6ed332c35c4a2.parquet"
]
},
"src": {
"path": "src",
"purpose": "Source code",
"fileCount": 0,
"lastAccessed": 1778863584706,
"keyFiles": []
},
"state": {
"path": "state",
"purpose": null,
"fileCount": 3,
"lastAccessed": 1778863584707,
"keyFiles": [
"runs.db",
"runs.db-shm",
"runs.db-wal"
]
},
"strategies": {
"path": "strategies",
"purpose": null,
"fileCount": 2,
"lastAccessed": 1778863584707,
"keyFiles": [
"btc_fb63e851.json",
"eth_facd6af85d5d.json"
]
},
"tests": {
"path": "tests",
"purpose": "Test files",
"fileCount": 1,
"lastAccessed": 1778863584710,
"keyFiles": [
"__init__.py"
]
}
},
"hotPaths": [
{
"path": "src/multi_swarm/paper_trading/persistence.py",
"accessCount": 2,
"lastAccessed": 1778864950928,
"type": "file"
},
{
"path": "src/multi_swarm/paper_trading/executor.py",
"accessCount": 2,
"lastAccessed": 1778864951455,
"type": "file"
},
{
"path": "src/multi_swarm/paper_trading/portfolio.py",
"accessCount": 2,
"lastAccessed": 1778864956467,
"type": "file"
},
{
"path": "src/multi_swarm/paper_trading/__init__.py",
"accessCount": 2,
"lastAccessed": 1778864957276,
"type": "file"
},
{
"path": "src/multi_swarm/dashboard/data.py",
"accessCount": 2,
"lastAccessed": 1778864958856,
"type": "file"
},
{
"path": "src/multi_swarm/dashboard/__init__.py",
"accessCount": 2,
"lastAccessed": 1778864959235,
"type": "file"
},
{
"path": "pyproject.toml",
"accessCount": 2,
"lastAccessed": 1778864960093,
"type": "file"
},
{
"path": "docker-compose.yml",
"accessCount": 2,
"lastAccessed": 1778864960851,
"type": "file"
},
{
"path": ".env.example",
"accessCount": 2,
"lastAccessed": 1778864961733,
"type": "file"
},
{
"path": "Dockerfile",
"accessCount": 1,
"lastAccessed": 1778864536214,
"type": "file"
},
{
"path": "src/multi_swarm/__init__.py",
"accessCount": 1,
"lastAccessed": 1778864537411,
"type": "file"
},
{
"path": "README.md",
"accessCount": 1,
"lastAccessed": 1778864537500,
"type": "file"
},
{
"path": "src/multi_swarm/dashboard/nicegui_app.py",
"accessCount": 1,
"lastAccessed": 1778864557898,
"type": "file"
},
{
"path": "src/multi_swarm/persistence/schema.py",
"accessCount": 1,
"lastAccessed": 1778864949548,
"type": "file"
},
{
"path": "src/multi_swarm/persistence/repository.py",
"accessCount": 1,
"lastAccessed": 1778864949987,
"type": "file"
},
{
"path": "src/multi_swarm/config.py",
"accessCount": 1,
"lastAccessed": 1778864959813,
"type": "file"
},
{
"path": "scripts/run_paper_trading.py",
"accessCount": 1,
"lastAccessed": 1778864961224,
"type": "file"
}
],
"userDirectives": []
}
@@ -0,0 +1,8 @@
{
"session_id": "798fb16b-8751-4e21-a558-26b5cea16bd8",
"ended_at": "2026-05-15T00:33:45.627Z",
"reason": "other",
"agents_spawned": 0,
"agents_completed": 0,
"modes_used": []
}
@@ -0,0 +1,8 @@
{
"session_id": "d997b670-db00-45b4-a478-cdad4d7fd603",
"ended_at": "2026-05-15T14:30:53.277Z",
"reason": "other",
"agents_spawned": 1,
"agents_completed": 1,
"modes_used": []
}
@@ -0,0 +1,8 @@
{
"session_id": "ed0d4e09-401a-47e4-b354-336908ba30c2",
"ended_at": "2026-05-14T09:47:10.928Z",
"reason": "other",
"agents_spawned": 0,
"agents_completed": 0,
"modes_used": []
}
@@ -0,0 +1,31 @@
{"t":0,"agent":"a682971","agent_type":"unknown","event":"agent_stop","success":true}
{"t":0,"agent":"a3e1e57","agent_type":"unknown","event":"agent_stop","success":true}
{"t":0,"agent":"ac6e465","agent_type":"unknown","event":"agent_stop","success":true}
{"t":0,"agent":"ae622fc","agent_type":"unknown","event":"agent_stop","success":true}
{"t":0,"agent":"a70edb8","agent_type":"unknown","event":"agent_stop","success":true}
{"t":0,"agent":"a0298bb","agent_type":"unknown","event":"agent_stop","success":true}
{"t":0,"agent":"a0a1dac","agent_type":"unknown","event":"agent_stop","success":true}
{"t":0,"agent":"a233182","agent_type":"unknown","event":"agent_stop","success":true}
{"t":0,"agent":"a36dbf7","agent_type":"unknown","event":"agent_stop","success":true}
{"t":0,"agent":"ad92a42","agent_type":"unknown","event":"agent_stop","success":true}
{"t":0,"agent":"a3d10f4","agent_type":"unknown","event":"agent_stop","success":true}
{"t":0,"agent":"a3a6023","agent_type":"unknown","event":"agent_stop","success":true}
{"t":0,"agent":"a0031d5","agent_type":"unknown","event":"agent_stop","success":true}
{"t":0,"agent":"a49c162","agent_type":"unknown","event":"agent_stop","success":true}
{"t":0,"agent":"a593b10","agent_type":"unknown","event":"agent_stop","success":true}
{"t":0,"agent":"a3936fc","agent_type":"unknown","event":"agent_stop","success":true}
{"t":0,"agent":"a547232","agent_type":"unknown","event":"agent_stop","success":true}
{"t":0,"agent":"a5b6003","agent_type":"unknown","event":"agent_stop","success":true}
{"t":0,"agent":"a70d843","agent_type":"unknown","event":"agent_stop","success":true}
{"t":0,"agent":"aec9396","agent_type":"unknown","event":"agent_stop","success":true}
{"t":0,"agent":"a339545","agent_type":"unknown","event":"agent_stop","success":true}
{"t":0,"agent":"acb249c","agent_type":"unknown","event":"agent_stop","success":true}
{"t":0,"agent":"acd29d1","agent_type":"unknown","event":"agent_stop","success":true}
{"t":0,"agent":"a8e0c37","agent_type":"unknown","event":"agent_stop","success":true}
{"t":0,"agent":"a8e001b","agent_type":"unknown","event":"agent_stop","success":true}
{"t":0,"agent":"ac6bdc5","agent_type":"unknown","event":"agent_stop","success":true}
{"t":0,"agent":"a69506c","agent_type":"unknown","event":"agent_stop","success":true}
{"t":0,"agent":"aacfb9e","agent_type":"unknown","event":"agent_stop","success":true}
{"t":0,"agent":"ac010a8","agent_type":"unknown","event":"agent_stop","success":true}
{"t":0,"agent":"a7f5511","agent_type":"unknown","event":"agent_stop","success":true}
{"t":0,"agent":"a5e7734","agent_type":"unknown","event":"agent_stop","success":true}
@@ -0,0 +1,6 @@
{"t":0,"agent":"aa06dbe","agent_type":"Explore","event":"agent_start","parent_mode":"none"}
{"t":0,"agent":"a62f5be","agent_type":"Explore","event":"agent_start","parent_mode":"none"}
{"t":0,"agent":"a62f5be","agent_type":"Explore","event":"agent_stop","success":true,"duration_ms":21379}
{"t":0,"agent":"aa06dbe","agent_type":"Explore","event":"agent_stop","success":true,"duration_ms":94545}
{"t":0,"agent":"a086f61","agent_type":"Plan","event":"agent_start","parent_mode":"none"}
{"t":0,"agent":"a086f61","agent_type":"Plan","event":"agent_stop","success":true,"duration_ms":202552}
@@ -0,0 +1,16 @@
{"t":0,"agent":"a0d4467","agent_type":"unknown","event":"agent_stop","success":true}
{"t":0,"agent":"a160b0e","agent_type":"unknown","event":"agent_stop","success":true}
{"t":0,"agent":"af3bbac","agent_type":"unknown","event":"agent_stop","success":true}
{"t":0,"agent":"a1ee6c9","agent_type":"unknown","event":"agent_stop","success":true}
{"t":0,"agent":"a4ad30d","agent_type":"unknown","event":"agent_stop","success":true}
{"t":0,"agent":"a90eb8d","agent_type":"unknown","event":"agent_stop","success":true}
{"t":0,"agent":"ae064b2","agent_type":"unknown","event":"agent_stop","success":true}
{"t":0,"agent":"a0c8984","agent_type":"unknown","event":"agent_stop","success":true}
{"t":0,"agent":"ad27588","agent_type":"unknown","event":"agent_stop","success":true}
{"t":0,"agent":"a523e02","agent_type":"unknown","event":"agent_stop","success":true}
{"t":0,"agent":"a2f3f5e","agent_type":"unknown","event":"agent_stop","success":true}
{"t":0,"agent":"ad7358f","agent_type":"unknown","event":"agent_stop","success":true}
{"t":0,"agent":"a70e03c","agent_type":"unknown","event":"agent_stop","success":true}
{"t":0,"agent":"a5535e6","agent_type":"Explore","event":"agent_start","parent_mode":"none"}
{"t":0,"agent":"a5535e6","agent_type":"Explore","event":"agent_stop","success":true,"duration_ms":316451}
{"t":0,"agent":"adffe1e","agent_type":"unknown","event":"agent_stop","success":true}
@@ -0,0 +1 @@
{"t":0,"agent":"a25cb13","agent_type":"unknown","event":"agent_stop","success":true}
+6
View File
@@ -0,0 +1,6 @@
{
"timestamp": "2026-05-15T16:46:57.759Z",
"backgroundTasks": [],
"sessionStartTimestamp": "2026-05-15T16:46:24.599Z",
"sessionId": "c410f859-5a67-475c-a941-8e2c50ed3a11"
}
+1
View File
@@ -0,0 +1 @@
{"session_id":"c410f859-5a67-475c-a941-8e2c50ed3a11","transcript_path":"/root/.claude/projects/-opt-docker-multi-swarm-coevolutive/c410f859-5a67-475c-a941-8e2c50ed3a11.jsonl","cwd":"/opt/docker/multi_swarm_coevolutive","effort":{"level":"xhigh"},"session_name":"monorepo-reorganization-split-revert","model":{"id":"claude-opus-4-7[1m]","display_name":"Opus 4.7 (1M context)"},"workspace":{"current_dir":"/opt/docker/multi_swarm_coevolutive","project_dir":"/opt/docker/multi_swarm_coevolutive","added_dirs":[]},"version":"2.1.142","output_style":{"name":"default"},"cost":{"total_cost_usd":12.174355699999994,"total_duration_ms":3442407,"total_api_duration_ms":1675477,"total_lines_added":750,"total_lines_removed":345},"context_window":{"total_input_tokens":212953,"total_output_tokens":8,"context_window_size":1000000,"current_usage":{"input_tokens":6,"output_tokens":8,"cache_creation_input_tokens":599,"cache_read_input_tokens":212348},"used_percentage":21,"remaining_percentage":79},"exceeds_200k_tokens":true,"fast_mode":false,"thinking":{"enabled":true},"rate_limits":{"five_hour":{"used_percentage":11,"resets_at":1778881200},"seven_day":{"used_percentage":21,"resets_at":1779138000}}}
+3
View File
@@ -0,0 +1,3 @@
{
"lastSentAt": "2026-05-15T17:22:55.330Z"
}
+7
View File
@@ -0,0 +1,7 @@
{
"tool_name": "Bash",
"tool_input_preview": "{\"command\":\"find /opt/docker/multi_swarm_coevolutive -name \\\"config.py\\\" | xargs grep -l \\\"DATA_DIR\\\\|STRATEGIES\\\\|STATE\\\" 2>/dev/null\"}",
"error": "Exit code 123",
"timestamp": "2026-05-15T17:03:17.335Z",
"retry_count": 1
}
+145
View File
@@ -0,0 +1,145 @@
{
"updatedAt": "2026-05-15T17:12:22.595Z",
"missions": [
{
"id": "session:d997b670-db00-45b4-a478-cdad4d7fd603:none",
"source": "session",
"name": "none",
"objective": "Session mission",
"createdAt": "2026-05-15T10:07:56.561Z",
"updatedAt": "2026-05-15T11:04:10.376Z",
"status": "done",
"workerCount": 1,
"taskCounts": {
"total": 1,
"pending": 0,
"blocked": 0,
"inProgress": 0,
"completed": 1,
"failed": 0
},
"agents": [
{
"name": "Explore:a5535e6",
"role": "Explore",
"ownership": "a5535e676159dcf1c",
"status": "done",
"currentStep": null,
"latestUpdate": "completed",
"completedSummary": null,
"updatedAt": "2026-05-15T11:04:10.376Z"
}
],
"timeline": [
{
"id": "session-start:a5535e676159dcf1c:2026-05-15T10:07:56.561Z",
"at": "2026-05-15T10:07:56.561Z",
"kind": "update",
"agent": "Explore:a5535e6",
"detail": "started Explore:a5535e6",
"sourceKey": "session-start:a5535e676159dcf1c"
},
{
"id": "session-stop:a5535e676159dcf1c:2026-05-15T10:13:13.012Z",
"at": "2026-05-15T10:13:13.012Z",
"kind": "completion",
"agent": "Explore:a5535e6",
"detail": "completed",
"sourceKey": "session-stop:a5535e676159dcf1c"
},
{
"id": "session-stop:adffe1eae69f95602:2026-05-15T11:04:10.376Z",
"at": "2026-05-15T11:04:10.376Z",
"kind": "completion",
"agent": "Explore:a5535e6",
"detail": "completed",
"sourceKey": "session-stop:adffe1eae69f95602"
}
]
},
{
"id": "session:c410f859-5a67-475c-a941-8e2c50ed3a11:none",
"source": "session",
"name": "none",
"objective": "Session mission",
"createdAt": "2026-05-15T17:02:02.737Z",
"updatedAt": "2026-05-15T17:12:22.595Z",
"status": "done",
"workerCount": 3,
"taskCounts": {
"total": 3,
"pending": 0,
"blocked": 0,
"inProgress": 0,
"completed": 3,
"failed": 0
},
"agents": [
{
"name": "Explore:aa06dbe",
"role": "Explore",
"ownership": "aa06dbecb11544c5e",
"status": "done",
"currentStep": null,
"latestUpdate": "completed",
"completedSummary": null,
"updatedAt": "2026-05-15T17:03:37.282Z"
},
{
"name": "Explore:a62f5be",
"role": "Explore",
"ownership": "a62f5bee30bd7a6c1",
"status": "done",
"currentStep": null,
"latestUpdate": "completed",
"completedSummary": null,
"updatedAt": "2026-05-15T17:02:35.066Z"
},
{
"name": "Plan:a086f61",
"role": "Plan",
"ownership": "a086f61a1fbb580be",
"status": "done",
"currentStep": null,
"latestUpdate": "completed",
"completedSummary": null,
"updatedAt": "2026-05-15T17:12:22.595Z"
}
],
"timeline": [
{
"id": "session-stop:a62f5bee30bd7a6c1:2026-05-15T17:02:35.066Z",
"at": "2026-05-15T17:02:35.066Z",
"kind": "completion",
"agent": "Explore:a62f5be",
"detail": "completed",
"sourceKey": "session-stop:a62f5bee30bd7a6c1"
},
{
"id": "session-stop:aa06dbecb11544c5e:2026-05-15T17:03:37.282Z",
"at": "2026-05-15T17:03:37.282Z",
"kind": "completion",
"agent": "Explore:aa06dbe",
"detail": "completed",
"sourceKey": "session-stop:aa06dbecb11544c5e"
},
{
"id": "session-start:a086f61a1fbb580be:2026-05-15T17:09:00.043Z",
"at": "2026-05-15T17:09:00.043Z",
"kind": "update",
"agent": "Plan:a086f61",
"detail": "started Plan:a086f61",
"sourceKey": "session-start:a086f61a1fbb580be"
},
{
"id": "session-stop:a086f61a1fbb580be:2026-05-15T17:12:22.595Z",
"at": "2026-05-15T17:12:22.595Z",
"kind": "completion",
"agent": "Plan:a086f61",
"detail": "completed",
"sourceKey": "session-stop:a086f61a1fbb580be"
}
]
}
]
}
+35
View File
@@ -0,0 +1,35 @@
{
"agents": [
{
"agent_id": "aa06dbecb11544c5e",
"agent_type": "Explore",
"started_at": "2026-05-15T17:02:02.737Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-05-15T17:03:37.282Z",
"duration_ms": 94545
},
{
"agent_id": "a62f5bee30bd7a6c1",
"agent_type": "Explore",
"started_at": "2026-05-15T17:02:13.687Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-05-15T17:02:35.066Z",
"duration_ms": 21379
},
{
"agent_id": "a086f61a1fbb580be",
"agent_type": "Plan",
"started_at": "2026-05-15T17:09:00.043Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-05-15T17:12:22.595Z",
"duration_ms": 202552
}
],
"total_spawned": 3,
"total_completed": 3,
"total_failed": 0,
"last_updated": "2026-05-15T17:12:22.696Z"
}