iop/scripts/readability_read_sets.json
toki 01dc2ef78b refactor: readability baseline 및 테스트 구조 개선
- agent-readable-repository-refactor 완료: 기존 테스트 파일 아카이브 이동
- 새 테스트 파일 추가 (edge, node, client, config, readability)
- readability_audit 스크립트 및 baseline 추가
- roadmap/SDD 문서 갱신
- agent-client/pi/extensions/openai-sampling-parameters 추가
2026-07-17 16:02:12 +09:00

128 lines
4.3 KiB
JSON

{
"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"
}
}
]
}