# TASKS.md ## Active Tracks - `feature_bleed_cleanup_20260302` — Dead code & conflicting design state cleanup (Phase 1-3) ## Completed This Session - `context_token_viz_20260301` — Token budget panel (color bar, breakdown table, trim warning, cache status, auto-refresh). All phases verified. Commit: d577457. ## Planned: Next Track ### `mma_agent_focus_ux_20260302` (initialized — run after bleed cleanup) **Priority:** High **Depends on:** `feature_bleed_cleanup_20260302` Phase 1 (dead comms panel removed) **Track dir:** `conductor/tracks/mma_agent_focus_ux_20260302/` **Audit-confirmed gaps:** - `ai_client._append_comms` emits entries with no `source_tier` key - `ai_client` has no `current_tier` module variable — no way for tiers to self-identify - `_tool_log` is `list[tuple[str,str,float]]` — no tier field, tuple must migrate to dict - `run_worker_lifecycle` replaces `comms_log_callback` but never stamps `source_tier` - `generate_tickets` (Tier 2) does NOT replace callback at all - No Focus Agent selector widget in Operations Hub **Scope:** Phase 1 (tier tagging) → Phase 2 (tool log dict migration) → Phase 3 (Focus Agent UI + filter). Per-tier token stats deferred to sub-track. ### `tech_debt_and_test_cleanup_20260302` (initialized) **Priority:** High **Depends on:** `feature_bleed_cleanup_20260302` **Track dir:** `conductor/tracks/tech_debt_and_test_cleanup_20260302/` **Audit-confirmed gaps:** - 13 test files duplicate `app_instance` fixture instead of using `conftest.py`. - Duplicate test files (`test_ast_parser_curated.py`). - Multiple simulation tests silently pass with no assertions. - `gui_2.py` initializes 9 state variables in `__init__` that are never read. - `gui_2.py` has over 15 uncalled HTTP/background methods. **Scope:** Phase 1 (Fixture deduplication) → Phase 2 (False-positive test fixing) → Phase 3 (Dead code excision in `gui_2.py`). ### `conductor_workflow_improvements_20260302` (initialized) **Priority:** High **Depends on:** None **Track dir:** `conductor/tracks/conductor_workflow_improvements_20260302/` **Audit-confirmed gaps:** - Tier 2 skill lacks enforcement of AST pre-implementation scans to prevent duplicate state variables. - Tier 2 skill lacks explicit rejection of non-TDD execution. - Tier 3 skill does not strictly forbid implementing code without failing tests. - `workflow.md` lacks explicit warnings against zero-assertion tests and redundant `__init__` state. **Scope:** Phase 1 (Update MMA Skill prompts) → Phase 2 (Update `workflow.md`). ### `architecture_boundary_hardening_20260302` (initialized) **Priority:** High **Depends on:** None **Track dir:** `conductor/tracks/architecture_boundary_hardening_20260302/` **Audit-confirmed gaps:** - `ai_client.py` loops execute `set_file_slice` and `py_update_definition` instantly without checking `pre_tool_callback`, bypassing GUI approval. - New `mcp_client.py` tools are not exposed in the GUI or `manual_slop.toml` config for user control. - `mma_exec.py` bypasses skeletonization for `mcp_client`, causing token bloat. - `dag_engine.py` does not cascade `blocked` states, causing orchestrator infinite loops. **Scope:** Phase 1 (Meta-tooling token fix) → Phase 2 (Complete MCP Tool Integration & Seal GUI HITL bypass) → Phase 3 (Fix DAG Engine cascading blocks). ### `testing_consolidation_20260302` (initialized) **Priority:** Medium **Depends on:** `tech_debt_and_test_cleanup_20260302` **Track dir:** `conductor/tracks/testing_consolidation_20260302/` **Audit-confirmed gaps:** - `visual_mma_verification.py` manually runs `subprocess.Popen` instead of using the robust `live_gui` fixture. - Duplicate architectural logic between tests and `simulation/` directories causing fragmentation. **Scope:** Phase 1 (Migrate manual launchers to fixtures) → Phase 2 (Consolidate simulation scripts). --- ## Track Dependency Order (Execution Guide) To ensure smooth execution, execute the tracks in the following order: 1. `feature_bleed_cleanup_20260302` (Base cleanup of GUI structure) 2. `mma_agent_focus_ux_20260302` (Depends on feature bleed cleanup Phase 1) 3. `architecture_boundary_hardening_20260302` (Fixes critical HITL & Token leaks; independent but foundational) 4. `tech_debt_and_test_cleanup_20260302` (Re-establishes testing foundation; run after feature tracks) 5. `testing_consolidation_20260302` (Refactors testing methodology; depends on tech debt cleanup) 6. `conductor_workflow_improvements_20260302` (Meta-level updates to skills/workflow docs; can be run anytime)