# V1.1.0 Project Tasks Implementation Plan > **For agentic workers:** Use superpowers:subagent-driven-development task-by-task. Steps use checkbox syntax. **Goal:** Iterate the existing replacement application with single-project tasks, editable per-component plans, optional Excel imports and serial task execution. **Architecture:** Reuse the existing desktop service/store and native replacement helper. Add focused plan/inventory/queue modules with stable target identities and transactional persistence. Keep historic jobs and an explicit legacy test entry point. **Tech Stack:** Python 3.12, SQLite, PySide6, ASCII VBScript; openpyxl for XLSX files. **Spec:** docs/superpowers/specs/2026-10-14-v1.1.0-project-tasks-design.md ## Global Constraints - Version 1.1.0; retain existing task view and direct editing. - Each directory-created task owns exactly one .prj; historical tasks are preserved. - Explicit empty targets never mean all matches. - UID + schematic + sheet + expected RefDes + old Part Number identify targets. - Default NC synchronization remains on and is editable in UI/import; independent /NC only. - Existing Replace Part + Library Wins, backup and saved readback remain required. - No production CAD writes for interface research or tests. - Default tests are fast behavior tests; historic regressions are explicit and preserved. --- ## Task 1: Persistence, inventory, plans and target execution Files: models.py, store.py, service.py, quick_run.py, recovery.py, QuickPartReplace.vbs; create target_plan.py, inventory.py, spreadsheet_plan.py and project_tasks.py as focused modules; tests/v1_1/test_project_tasks.py, test_target_plan.py, test_inventory.py, test_spreadsheet_plan.py, test_target_execution.py. Interfaces consumed: TaskStore transaction(), create_task(), sync_projects(); QuickRunPreparer and existing sheet discovery. Produced: directory task creation, task inventory, target plan edit/import/export APIs and versioned target-aware queue preparation. Define exact signatures in the implementation report for UI/task queue integration. - [x] Write failing behavior tests for two .prj files creating two single-project tasks, duplicate scanning not duplicating active tasks, same names differentiated by relative path; run these tests and observe missing APIs. - [x] Implement transaction-backed group/order/project binding and migrations; maintain legacy constructor defaults. Test transaction rollback and reopen. - [x] Write failing tests using injected inventory rows for same old part on R1/R2/R3: selecting R1/R3 yields only those UIDs; R2 stays excluded; missing target errors, empty target errors, conflicting imports and equal/chain/cycle rules error. - [x] Implement component inventory read mode on existing discovery route, collecting effective Value and all stable identifiers without pin/attribute full snapshots; do not save while scanning. - [x] Implement target rule grouping and target-aware command/snapshot/recovery freeze validation in both Python and VBS. Run isolated VBS contract tests and native_helper mocks; tests must prove selectors survive recovery and stale targets do not become no_match. - [x] Add openpyxl reader/writer using explicit columns and literal values; parse whole workbook, validate identity and duplicates, then commit atomically. Test roundtrip editing new part, Value and NC plus forged UID and duplicate row rejection. - [x] Run V1.1 behavior tests and relevant existing inputs/value/recovery tests; commit this task only after covering tests pass and report API signatures and validation limits. ## Task 2: Cross-task scheduler and existing UI integration Files: task_queue.py; ui/main_window.py, task_list.py, mapping_table.py; tests/v1_1/test_task_queue.py, test_project_task_ui.py. Consumed APIs: Task 1 report; existing service.execute_quick_run_queue/quick_run_progress and safe pause. Produced APIs: fixed ordered task queue runner and UI directory wizard/inventory target table/Excel optional entry points. - [x] Write failing scheduler test with fake runner logging starts/ends: A completes before B starts; pause leaves B unstarted; uncertain A prevents B; safe ordinary A failure allows B and summary records both. - [x] Implement scheduler with per-task evidence paths and fixed IDs/plan fingerprints; reject same-project concurrent tasks, preserve active task evidence on resume. - [x] Add directory scanner/create dialog to existing New action with project checkboxes and async scan; existing edit/name notes and historical view survive. Show counts and execution order, support ordering and group start/pause. - [x] Add Collect Targets action and editable target table: per row enabled/new part/custom Value/NC controls; preserve existing rule dialog/full-match path. Excel import/export optional actions use same plan validation; blank typed target lists rejected rather than matching all. - [x] Verify Qt widgets with offscreen smoke interactions and scheduler failure/lock tests. Commit after tests pass. ## Task 3: Test entry points, version and deliverable verification Files: pyproject.toml, version.py, packaging/Build-DxPartReplace.ps1, docs/user/v1.1.0-project-tasks.md, tests/conftest.py or tests/legacy/conftest.py, tools/test_v1_1.ps1 and tools/test_legacy.ps1. - [x] Default testpaths becomes tests/v1_1. Keep existing directories reachable with explicit paths; scripts set local src PYTHONPATH to prevent unrelated installed dx_productivity package collisions. - [x] Version pyproject and desktop to 1.1.0. Add openpyxl dependency and ensure packaging discovers it; update build QA commands to run V1.1 and meaningful safety regressions rather than reintroducing full slow suite implicitly. - [x] Document new task/inventory/Excel/NC workflows, previous data migration and real CAD validation limits; include native research report. - [x] Run default behavior suite, selected safety/Qt/VBS tests, compileall and build/frozen smoke if toolchain available. Review diff for selector fallback, evidence overwrites, migration loss and UI async locks; fix findings. - [x] Bring verified commits into the main workspace without rewriting user work; supply V1.1.0 ZIP/EXE if build succeeds and distinguish code test results from live CAD acceptance. Verification and implementation details: v1.1.0-task-1-report.md and v1.1.0-task-2-report.md. Live CAD acceptance remains outside offline verification.