From 792c96f14fb301268fd4135e56d8918e14c20ee9 Mon Sep 17 00:00:00 2001 From: Ed_ Date: Mon, 2 Mar 2026 13:08:19 -0500 Subject: [PATCH] docs: add strict static analysis and typing track to backlog --- TASKS.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/TASKS.md b/TASKS.md index 5d767c0..de4394a 100644 --- a/TASKS.md +++ b/TASKS.md @@ -100,4 +100,8 @@ To ensure smooth execution, execute the tracks in the following order: **Context:** In `conductor_tech_lead.py`, the `generate_tickets` function relies on a generic `try...except` block to parse the LLM's JSON ticket array. If the model hallucinates or outputs invalid JSON, it silently returns an empty array `[]`, causing the GUI to fail the track creation process without giving the model a chance to self-correct. **Goal:** Implement a programmatic retry loop that catches `JSONDecodeError` and feeds the error back to the Tier 2 model for self-correction before failing the UI operation. +### `strict_static_analysis_and_typing` +**Context:** Running `uv run ruff check .` and `uv run mypy --explicit-package-bases .` revealed massive technical debt in type safety (512+ Mypy errors across 64 files, 200+ remaining Ruff violations). The `gui_2.py` and `api_hook_client.py` files specifically have severe "Any" bleeding and incorrect unions. +**Goal:** Resolve all static analysis errors. Enforce strict `mypy` compliance, remove implicit `Optional` types, and fix ambiguous variables (`l`). Integrate `ruff` and `mypy` into a CI pre-commit hook so Tier 3 workers are forced to write type-safe code going forward. +