bots-garden/mini-mepublic Fork
⑂ 833db52
Commits
⬇ Clone ▾
git clone https://git.rickub.com/bots-garden/mini-me.git
git clone ssh://git@rickub.com/bots-garden/mini-me.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Download ZIP

🎫 Ticket 283: tasks 5 (internal/tui) and 6 (the other internal packages) closed

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
agent committed 2026-11-28T12:48:40+01:00 Browse files
833db52 parent: d5a92e9
modified .tickets/issues/0283-quality-code-smells-of-the-core-zone-by-zone.yaml +37 -3
@@ -6,7 +6,7 @@ author:
66 name: k33g
77 email: ph.charriere@gmail.com
88 createdAt: 2026-11-28T10:19:47.000Z
9-updatedAt: 2026-11-28T11:01:25.000Z
9+updatedAt: 2026-11-28T11:47:23.000Z
1010 labels:
1111 - kind::chore
1212 milestone: v2.2.0
@@ -57,20 +57,24 @@ tasks:
5757 closedAt: 2026-11-28T11:01:25.000Z
5858 - id: 5
5959 title: "internal/tui"
60- state: open
60+ state: closed
6161 priority: medium
6262 author:
6363 name: k33g
6464 email: ph.charriere@gmail.com
6565 createdAt: 2026-11-28T10:19:47.000Z
66+ updatedAt: 2026-11-28T11:11:31.000Z
67+ closedAt: 2026-11-28T11:11:31.000Z
6668 - id: 6
6769 title: "internal/acp, internal/agent, internal/tools, internal/mcp and the remaining internal packages"
68- state: open
70+ state: closed
6971 priority: medium
7072 author:
7173 name: k33g
7274 email: ph.charriere@gmail.com
7375 createdAt: 2026-11-28T10:19:47.000Z
76+ updatedAt: 2026-11-28T11:47:23.000Z
77+ closedAt: 2026-11-28T11:47:23.000Z
7478 - id: 7
7579 title: "demo.acp.sdk and the demos (duplicated hook code in decision-dnd / decision-chat-golang, …)"
7680 state: open
@@ -108,3 +112,33 @@ comments:
108112 createdAt: 2026-11-28T11:01:25.000Z
109113 body: |
110114 internal/agentinit (mm init): 15 → 0 smells (total 157 → 142). Flow.Set / Flow.Step as tables (setters, stepBuilders, one method per question); decideSampling with samplingValues; Render as one writer per section; Main → prepareFlow, answerFlow, reportFailure; WriteFile → saveAgentFile, checkWritten; the line wizard's ask → showDetails, readAnswer; flow, wizard, facts, render and decide split by theme (flow_steps, flow_answers, flow_server, args, linewizard, write, base, models, kronkfacts, render_server, render_header, sampling). Checked: go test ./... green; the old and new binaries write byte-identical files on 13 mm init --yes combinations (11 providers / usages / machines / layouts, 2 errors) against the host's llama-server, and the same files, messages, exit codes and .mm/skills tree on disk (a gpt-oss case first differed by timing — the model was loading on the server — and was identical when run again, twice).
115+ - id: 5
116+ author:
117+ name: k33g
118+ email: ph.charriere@gmail.com
119+ createdAt: 2026-11-28T11:11:31.000Z
120+ body: |
121+ internal/tui 17 → 0 smells (commit dddb66d). Markdown renderer split into steps and themed files, init window keys and drawing split, key handlers as an ordered table. Checked by temporary golden tests (Markdown 18 texts × 5 widths byte-identical; init window 37 keys × 3 sizes screen-identical) and live with LFM3-1.7B in the window: Markdown answer, ask_user choice + other + decline, / picker.
122+ - id: 6
123+ author:
124+ name: k33g
125+ email: ph.charriere@gmail.com
126+ createdAt: 2026-11-28T11:29:50.000Z
127+ body: |
128+ Task 6 in progress — done so far, one commit each, behaviour checked old vs new binary or by temporary golden tests:
129+ - internal/agent 8 → 0 (7817163): the REPL as a repl type; agent.Setup for Run/RunPrompt
130+ - internal/acp 9 → 0 (dcb1fec): Prompt as an acpTurn; acp.Run takes agent.Setup
131+ - internal/mcp 7 → 0 (7944710): the wrapped tool as an mcpCall value
132+ - internal/tools 7 → 0 (9c248b3)
133+ - internal/compact 7 → 0 (6bd1c61), internal/elicit 7 → 0 (8b276c0), internal/fileedit 6 → 0 (5a0f4b1)
134+ Remaining in internal/: skillcreate 5, acpcreate 4, decide 3, hooks 3, serverstart 3, structured 3, command 3, sbxinit 2, docsearch 2, and 1 each in agentsmd, ask, detector, dockerinit, lsp, rzbstart, saved, store.
135+ Seen on the way, not changed: the order of the MCP tools in the banner varies from run to run (map iteration in mcp.WrapToolsWithNames).
136+ - id: 7
137+ author:
138+ name: k33g
139+ email: ph.charriere@gmail.com
140+ createdAt: 2026-11-28T11:47:23.000Z
141+ body: |
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.
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.
144+ API changes, internal only: agent.Run/RunPrompt and acp.Run take an agent.Setup instead of six parameters.
@@ -6,7 +6,7 @@ author:
6 name: k33g6 name: k33g
7 email: ph.charriere@gmail.com7 email: ph.charriere@gmail.com
8 createdAt: 2026-11-28T10:19:47.000Z8 createdAt: 2026-11-28T10:19:47.000Z
9-updatedAt: 2026-11-28T11:01:25.000Z9+updatedAt: 2026-11-28T11:47:23.000Z
10 labels:10 labels:
11 - kind::chore11 - kind::chore
12 milestone: v2.2.012 milestone: v2.2.0
@@ -57,20 +57,24 @@ tasks:
57 closedAt: 2026-11-28T11:01:25.000Z57 closedAt: 2026-11-28T11:01:25.000Z
58 - id: 558 - id: 5
59 title: "internal/tui"59 title: "internal/tui"
60- state: open60+ state: closed
61 priority: medium61 priority: medium
62 author:62 author:
63 name: k33g63 name: k33g
64 email: ph.charriere@gmail.com64 email: ph.charriere@gmail.com
65 createdAt: 2026-11-28T10:19:47.000Z65 createdAt: 2026-11-28T10:19:47.000Z
66+ updatedAt: 2026-11-28T11:11:31.000Z
67+ closedAt: 2026-11-28T11:11:31.000Z
66 - id: 668 - id: 6
67 title: "internal/acp, internal/agent, internal/tools, internal/mcp and the remaining internal packages"69 title: "internal/acp, internal/agent, internal/tools, internal/mcp and the remaining internal packages"
68- state: open70+ state: closed
69 priority: medium71 priority: medium
70 author:72 author:
71 name: k33g73 name: k33g
72 email: ph.charriere@gmail.com74 email: ph.charriere@gmail.com
73 createdAt: 2026-11-28T10:19:47.000Z75 createdAt: 2026-11-28T10:19:47.000Z
76+ updatedAt: 2026-11-28T11:47:23.000Z
77+ closedAt: 2026-11-28T11:47:23.000Z
74 - id: 778 - id: 7
75 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, …)"
76 state: open80 state: open
@@ -108,3 +112,33 @@ comments:
108 createdAt: 2026-11-28T11:01:25.000Z112 createdAt: 2026-11-28T11:01:25.000Z
109 body: |113 body: |
110 internal/agentinit (mm init): 15 → 0 smells (total 157 → 142). Flow.Set / Flow.Step as tables (setters, stepBuilders, one method per question); decideSampling with samplingValues; Render as one writer per section; Main → prepareFlow, answerFlow, reportFailure; WriteFile → saveAgentFile, checkWritten; the line wizard's ask → showDetails, readAnswer; flow, wizard, facts, render and decide split by theme (flow_steps, flow_answers, flow_server, args, linewizard, write, base, models, kronkfacts, render_server, render_header, sampling). Checked: go test ./... green; the old and new binaries write byte-identical files on 13 mm init --yes combinations (11 providers / usages / machines / layouts, 2 errors) against the host's llama-server, and the same files, messages, exit codes and .mm/skills tree on disk (a gpt-oss case first differed by timing — the model was loading on the server — and was identical when run again, twice).114 internal/agentinit (mm init): 15 → 0 smells (total 157 → 142). Flow.Set / Flow.Step as tables (setters, stepBuilders, one method per question); decideSampling with samplingValues; Render as one writer per section; Main → prepareFlow, answerFlow, reportFailure; WriteFile → saveAgentFile, checkWritten; the line wizard's ask → showDetails, readAnswer; flow, wizard, facts, render and decide split by theme (flow_steps, flow_answers, flow_server, args, linewizard, write, base, models, kronkfacts, render_server, render_header, sampling). Checked: go test ./... green; the old and new binaries write byte-identical files on 13 mm init --yes combinations (11 providers / usages / machines / layouts, 2 errors) against the host's llama-server, and the same files, messages, exit codes and .mm/skills tree on disk (a gpt-oss case first differed by timing — the model was loading on the server — and was identical when run again, twice).
115+ - id: 5
116+ author:
117+ name: k33g
118+ email: ph.charriere@gmail.com
119+ createdAt: 2026-11-28T11:11:31.000Z
120+ body: |
121+ internal/tui 17 → 0 smells (commit dddb66d). Markdown renderer split into steps and themed files, init window keys and drawing split, key handlers as an ordered table. Checked by temporary golden tests (Markdown 18 texts × 5 widths byte-identical; init window 37 keys × 3 sizes screen-identical) and live with LFM3-1.7B in the window: Markdown answer, ask_user choice + other + decline, / picker.
122+ - id: 6
123+ author:
124+ name: k33g
125+ email: ph.charriere@gmail.com
126+ createdAt: 2026-11-28T11:29:50.000Z
127+ body: |
128+ Task 6 in progress — done so far, one commit each, behaviour checked old vs new binary or by temporary golden tests:
129+ - internal/agent 8 → 0 (7817163): the REPL as a repl type; agent.Setup for Run/RunPrompt
130+ - internal/acp 9 → 0 (dcb1fec): Prompt as an acpTurn; acp.Run takes agent.Setup
131+ - internal/mcp 7 → 0 (7944710): the wrapped tool as an mcpCall value
132+ - internal/tools 7 → 0 (9c248b3)
133+ - internal/compact 7 → 0 (6bd1c61), internal/elicit 7 → 0 (8b276c0), internal/fileedit 6 → 0 (5a0f4b1)
134+ Remaining in internal/: skillcreate 5, acpcreate 4, decide 3, hooks 3, serverstart 3, structured 3, command 3, sbxinit 2, docsearch 2, and 1 each in agentsmd, ask, detector, dockerinit, lsp, rzbstart, saved, store.
135+ Seen on the way, not changed: the order of the MCP tools in the banner varies from run to run (map iteration in mcp.WrapToolsWithNames).
136+ - id: 7
137+ author:
138+ name: k33g
139+ email: ph.charriere@gmail.com
140+ createdAt: 2026-11-28T11:47:23.000Z
141+ body: |
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.
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.
144+ API changes, internal only: agent.Run/RunPrompt and acp.Run take an agent.Setup instead of six parameters.