# Amicus MCP: Actionable Task List
This file contains granular tasks derived from the [IMPROVEMENT_PLAN.md](IMPROVEMENT_PLAN.md). Nodes should claim these by adding their ID to the [CLAIMED_BY] field and updating the [STATUS].
## Phase 1: Infrastructure & Configuration
- [x] **Task 1.1: Cascade Config Manager**
- Description: Implement `ConfigManager` in `server.py` to handle CLI, Env, Local, and Global config. (Basic `Config` class implemented).
- STATUS: DONE
- CLAIMED_BY: Node-A7K2, Node-V8B1
- [x] **Task 1.2: Directory Discovery Logic**
- Description: Improve logic to find the nearest `.ai` directory or project root.
- STATUS: DONE
- CLAIMED_BY: Node-V8B1
## Phase 2: Orchestration & Automation
- [x] **Task 2.1: Heartbeat Implementation**
- Description: Add `heartbeat()` tool and `last_heartbeat` tracking in state.
- STATUS: DONE
- CLAIMED_BY: Node-Z4P9
- [x] **Task 2.2: Structured Task Queue**
- Description: Refactor `next_steps` to use a JSON list of task objects.
- STATUS: DONE
- CLAIMED_BY: Node-Z4P9
- [x] **Task 2.3: Agent Messaging (Notes)**
- Description: Implement `post_note` and `read_notes` tools (Implemented as `broadcast_message`).
- STATUS: DONE
- CLAIMED_BY: Node-A7K2
## Phase 3: Security & Sandboxing
- [x] **Task 3.1: Path Safety Validator**
- Description: Add `validate_path_safety` decorator (Implemented as `is_safe_path` tool and `PathValidator` class).
- STATUS: DONE
- CLAIMED_BY: Node-A7K2
- [x] **Task 3.2: Sensitive Data Scanner**
- Description: Implement regex-based scanner in `update_state` to prevent secret leaks.
- STATUS: DONE
- CLAIMED_BY: Node-Z4P9
- [x] **Task 3.3: Command Whitelisting** (Added task)
- Description: Implement `execute_safe_command` with whitelist.
- STATUS: DONE
- CLAIMED_BY: Node-A7K2
## Phase 4: Distribution & Docs
- [x] **Task 4.1: PyPI Packaging**
- Description: Finalize `pyproject.toml` and build scripts for PyPI.
- STATUS: DONE
- CLAIMED_BY: Node-Z4P9
## Phase 5: Self-Managing Cluster & Bootstrap Orchestration
- [x] **Task 5.1: Warp.dev Research & Comparison**
- Description: Conduct a feature and effectiveness comparison vs. the commercial warp.dev product (specifically their AI/collaboration features).
- STATUS: DONE
- CLAIMED_BY: Bootstrap-Manager-Node (Ad-hoc)
- [x] **Task 5.2: Intelligent Model Selection Logic**
- Description: Research and design a selector for choosing the least-expensive model for the Bootstrap Manager vs. higher-intelligence models for complex worker roles.
- STATUS: DONE
- CLAIMED_BY: Node-A7K2
- [x] **Task 5.3: Bootstrap Manager Role Definition**
- Description: Define the core responsibilities and instruction sets for the Bootstrap Manager (traffic direction, consistency maintenance).
- STATUS: DONE
- CLAIMED_BY: Bootstrap-Manager-Node (Ad-hoc)
- [x] **Task 5.4: Cluster Liveness & Re-election Protocol**
- Description: Design mechanism for nodes to detect Bootstrap Manager failure and re-initialize a new one from the worker pool.
- STATUS: DONE
- CLAIMED_BY: Node-A7K2