{ "version": "2.0", "generated_at": "2026-07-16", "tasks": [ { "task_id": "readability-baseline", "description": "Repository readability baseline audit introduction and ratchet", "files": [ "Makefile", "scripts/readability_audit.py", "scripts/readability_baseline.json", "scripts/readability_read_sets.json", "scripts/readability_audit_test.py" ], "budget": { "max_total_loc": 2209, "reason": "no new violations allowed; only existing baseline violations persist" } }, { "task_id": "edge-openai-readability", "description": "Edge OpenAI adapter readability (chat_handler.go, stream.go, types.go)", "files": [ "apps/edge/internal/openai/chat_handler.go", "apps/edge/internal/openai/stream.go", "apps/edge/internal/openai/types.go", "apps/edge/internal/openai/responses_handler.go" ], "budget": { "max_total_loc": 800, "reason": "core adapter must be refactorable to smaller units; types.go has generated-ish helper functions" } }, { "task_id": "edge-service-readability", "description": "Edge service layer readability (model_queue.go, run_dispatch.go)", "files": [ "apps/edge/internal/service/model_queue.go", "apps/edge/internal/service/run_dispatch.go", "apps/edge/internal/service/control_command.go" ], "budget": { "max_total_loc": 700, "reason": "service dispatch logic is large; refactor into smaller command handlers" } }, { "task_id": "node-core-readability", "description": "Node core readability (node.go, openai_compat.go)", "files": [ "apps/node/internal/node/node.go", "apps/node/internal/adapters/openai_compat/openai_compat.go", "apps/node/internal/bootstrap/module.go" ], "budget": { "max_total_loc": 700, "reason": "node runtime core; split into focused sub-packages" } }, { "task_id": "client-ui-readability", "description": "Flutter client UI panel readability", "files": [ "apps/client/lib/widgets/edges_panel.dart", "apps/client/lib/widgets/nodes_panel.dart", "apps/client/lib/widgets/runtime_panel.dart", "packages/flutter/iop_console/lib/src/iop_console_overview.dart" ], "budget": { "max_total_loc": 600, "reason": "UI panels have large builder functions; extract to smaller widgets" } }, { "task_id": "packages-go-config-readability", "description": "Go config package readability", "files": [ "packages/go/config/config.go" ], "budget": { "max_total_loc": 700, "reason": "config struct defaults and parsing are mixed; split into struct defs and loaders" } }, { "task_id": "edge-transport-readability", "description": "Edge transport layer readability", "files": [ "apps/edge/internal/transport/server.go", "apps/edge/internal/transport/integration_test.go" ], "budget": { "max_total_loc": 600, "reason": "transport server has mixed concerns" } }, { "task_id": "edge-config-refresh-readability", "description": "Edge config refresh readability", "files": [ "apps/edge/internal/configrefresh/classify.go", "apps/edge/internal/edgecmd/node_register.go", "apps/edge/internal/edgecmd/smoke_openai.go" ], "budget": { "max_total_loc": 500, "reason": "config classification and edge commands are monolithic" } }, { "task_id": "node-adapters-readability", "description": "Node adapter readability", "files": [ "apps/node/internal/adapters/cli/persistent.go", "apps/node/internal/adapters/cli/opencode_sse.go", "apps/node/internal/adapters/ollama/ollama.go", "apps/node/internal/adapters/vllm/vllm.go", "apps/node/internal/adapters/cli/status/antigravity.go", "apps/node/internal/adapters/cli/status/claude.go", "apps/node/internal/adapters/cli/status/codex.go" ], "budget": { "max_total_loc": 500, "reason": "CLI adapters and status reporters have large functions" } } ] }