| @@ -1,12 +1,12 @@ |
| 1 | # Managed by IssueSpec. Hand edits are welcome; keep the schema valid. | 1 | # Managed by IssueSpec. Hand edits are welcome; keep the schema valid. |
| 2 | id: 283 | 2 | id: 283 |
| 3 | title: "Quality: code smells of the core, zone by zone" | 3 | title: "Quality: code smells of the core, zone by zone" |
| 4 | -state: open | 4 | +state: closed |
| 5 | author: | 5 | author: |
| 6 | name: k33g | 6 | name: k33g |
| 7 | email: ph.charriere@gmail.com | 7 | email: ph.charriere@gmail.com |
| 8 | createdAt: 2026-11-28T10:19:47.000Z | 8 | createdAt: 2026-11-28T10:19:47.000Z |
| 9 | -updatedAt: 2026-11-28T11:47:23.000Z | 9 | +updatedAt: 2026-11-28T12:11:18.000Z |
| 10 | labels: | 10 | labels: |
| 11 | - kind::chore | 11 | - kind::chore |
| 12 | milestone: v2.2.0 | 12 | milestone: v2.2.0 |
| @@ -77,12 +77,14 @@ tasks: |
| 77 | closedAt: 2026-11-28T11:47:23.000Z | 77 | closedAt: 2026-11-28T11:47:23.000Z |
| 78 | - id: 7 | 78 | - id: 7 |
| 79 | title: "demo.acp.sdk and the demos (duplicated hook code in decision-dnd / decision-chat-golang, …)" | 79 | title: "demo.acp.sdk and the demos (duplicated hook code in decision-dnd / decision-chat-golang, …)" |
| 80 | - state: open | 80 | + state: closed |
| 81 | priority: low | 81 | priority: low |
| 82 | author: | 82 | author: |
| 83 | name: k33g | 83 | name: k33g |
| 84 | email: ph.charriere@gmail.com | 84 | email: ph.charriere@gmail.com |
| 85 | createdAt: 2026-11-28T10:19:47.000Z | 85 | createdAt: 2026-11-28T10:19:47.000Z |
| | 86 | + updatedAt: 2026-11-28T12:11:18.000Z |
| | 87 | + closedAt: 2026-11-28T12:11:18.000Z |
| 86 | comments: | 88 | comments: |
| 87 | - id: 1 | 89 | - id: 1 |
| 88 | author: | 90 | author: |
| @@ -142,3 +144,14 @@ comments: |
| 142 | Task 6 done: internal/ has no smell left (was 116 smells in this task's packages at the start of the zone). One commit per package or group: agent 7817163, acp dcb1fec, mcp 7944710, tools 9c248b3, compact 6bd1c61, elicit 8b276c0, fileedit 5a0f4b1, skillcreate 96ba0ec, acpcreate ac0bb79, decide 5a47e54, hooks f0939b6, serverstart 75a8140, structured b315334, command 84d5b8e, agentsmd/ask/detector 3d09337, dockerinit/docsearch f062af9, lsp/rzbstart/saved/sbxinit/store d5a92e9; import groups f5f2d92. | 144 | Task 6 done: internal/ has no smell left (was 116 smells in this task's packages at the start of the zone). One commit per package or group: agent 7817163, acp dcb1fec, mcp 7944710, tools 9c248b3, compact 6bd1c61, elicit 8b276c0, fileedit 5a0f4b1, skillcreate 96ba0ec, acpcreate ac0bb79, decide 5a47e54, hooks f0939b6, serverstart 75a8140, structured b315334, command 84d5b8e, agentsmd/ask/detector 3d09337, dockerinit/docsearch f062af9, lsp/rzbstart/saved/sbxinit/store d5a92e9; import groups f5f2d92. |
| 143 | Behaviour checked for each: the old and new binaries compared on scripted runs (fake OpenAI server, fake MCP server, A2A, ACP over stdio, real node hooks, the d1-3B decider live, the CLI subcommands), or temporary golden tests old vs new for the pure functions; go test ./... green. | 145 | Behaviour checked for each: the old and new binaries compared on scripted runs (fake OpenAI server, fake MCP server, A2A, ACP over stdio, real node hooks, the d1-3B decider live, the CLI subcommands), or temporary golden tests old vs new for the pure functions; go test ./... green. |
| 144 | API changes, internal only: agent.Run/RunPrompt and acp.Run take an agent.Setup instead of six parameters. | 146 | API changes, internal only: agent.Run/RunPrompt and acp.Run take an agent.Setup instead of six parameters. |
| | 147 | + - id: 8 |
| | 148 | + author: |
| | 149 | + name: k33g |
| | 150 | + email: ph.charriere@gmail.com |
| | 151 | + createdAt: 2026-11-28T12:11:18.000Z |
| | 152 | + body: | |
| | 153 | + Task 7 done — quality run #15: gate PASS, 0 errors, 0 warnings, 0 smells (this morning: 1 / 557 / 221). |
| | 154 | + - Complexity: demo.acp.sdk Go 2e11277, Node 0d4a390, Kotlin 19f68c0 (JDK installed in the sandbox to build and test it); ddg_news.py and fake-llm.py e6108b0; skills/create-agent/model_facts.py fc3d5e4. |
| | 155 | + - Duplication, removed on the user's request ('fix the smells', after the choice between keeping the copies and sharing one): decision-dnd runs decision-chat-golang's ask-decider hook (e695ee0); demos/team copies little-coder's starter through new-app.sh (1dab580); unload-models and coding-helpers run dev.team's unload.js — kept there because dev.team's sandbox mounts only team/ (a318e93); the two Node stream.js share common/stream-demo.js (3263ee3). |
| | 156 | + - Consequence to know: decision-dnd, team, unload-models and coding-helpers now need their neighbour demo beside them (said in their READMEs). |
| | 157 | + - Each checked old vs new: the examples and scripts run against mm with a scripted fake model, the hooks run as mm runs them, decision-dnd end to end with d1-3B + Qwen3.5-4B on the host, new-app.sh's app passing its check.sh. |