bots-garden/mini-mepublic Fork
⑂ e8674a1
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

🎫 Tickets 280–283: quality (skill install, decision blocks smells, lint, core smells)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
agent committed 2026-11-28T11:19:47+01:00 Browse files
e8674a1 parent: a5dd909
added .tickets/issues/0280-quality-skill-installs-qlty-by-itself.yaml +35 -0
new file mode 100644
@@ -0,0 +1,35 @@
1+# Managed by IssueSpec. Hand edits are welcome; keep the schema valid.
2+id: 280
3+title: "Quality skill: install qlty by itself"
4+state: closed
5+author:
6+ name: k33g
7+ email: ph.charriere@gmail.com
8+createdAt: 2026-11-28T10:19:47.000Z
9+updatedAt: 2026-11-28T10:19:47.000Z
10+closedAt: 2026-11-28T10:19:47.000Z
11+labels:
12+ - enhancement
13+ - kind::chore
14+milestone: v2.2.0
15+body: |
16+ Asked by the user (2026-11-28): the `quality` skill stopped when qlty was missing ("the sandbox was not created with the dev-toolkit kit"), so the gate never ran in this sandbox.
17+
18+ Done (`.claude/skills/quality/` — git-ignored, local to this checkout):
19+ - `scripts/install_qlty.sh`: qlty on PATH or in `~/.qlty/bin` → nothing to do; else `xz` (apt-get / brew), the official installer (https://qlty.sh) downloaded to a temp file and run with `sh` → `~/.qlty/bin`; a guarded `if … fi` PATH line in `/etc/sandbox-persistent.sh` (not `[ … ] && …`: the file is sourced before every command).
20+ - `quality_report.py`: finds qlty on PATH or in `~/.qlty/bin`, runs the installer when missing, `--no-install`.
21+ - `SKILL.md` §1 rewritten; the script path fixed.
22+
23+ Checked: installed from scratch twice (qlty 0.674.0 linux-arm64); report runs #11–#13 written.
24+tasks:
25+ - id: 1
26+ title: "install_qlty.sh, quality_report.py auto-install, SKILL.md"
27+ state: closed
28+ priority: high
29+ author:
30+ name: k33g
31+ email: ph.charriere@gmail.com
32+ createdAt: 2026-11-28T10:19:47.000Z
33+ updatedAt: 2026-11-28T10:19:47.000Z
34+ closedAt: 2026-11-28T10:19:47.000Z
35+comments: []
new file mode 100644
@@ -0,0 +1,35 @@
1+# Managed by IssueSpec. Hand edits are welcome; keep the schema valid.
2+id: 280
3+title: "Quality skill: install qlty by itself"
4+state: closed
5+author:
6+ name: k33g
7+ email: ph.charriere@gmail.com
8+createdAt: 2026-11-28T10:19:47.000Z
9+updatedAt: 2026-11-28T10:19:47.000Z
10+closedAt: 2026-11-28T10:19:47.000Z
11+labels:
12+ - enhancement
13+ - kind::chore
14+milestone: v2.2.0
15+body: |
16+ Asked by the user (2026-11-28): the `quality` skill stopped when qlty was missing ("the sandbox was not created with the dev-toolkit kit"), so the gate never ran in this sandbox.
17+
18+ Done (`.claude/skills/quality/` — git-ignored, local to this checkout):
19+ - `scripts/install_qlty.sh`: qlty on PATH or in `~/.qlty/bin` → nothing to do; else `xz` (apt-get / brew), the official installer (https://qlty.sh) downloaded to a temp file and run with `sh` → `~/.qlty/bin`; a guarded `if … fi` PATH line in `/etc/sandbox-persistent.sh` (not `[ … ] && …`: the file is sourced before every command).
20+ - `quality_report.py`: finds qlty on PATH or in `~/.qlty/bin`, runs the installer when missing, `--no-install`.
21+ - `SKILL.md` §1 rewritten; the script path fixed.
22+
23+ Checked: installed from scratch twice (qlty 0.674.0 linux-arm64); report runs #11–#13 written.
24+tasks:
25+ - id: 1
26+ title: "install_qlty.sh, quality_report.py auto-install, SKILL.md"
27+ state: closed
28+ priority: high
29+ author:
30+ name: k33g
31+ email: ph.charriere@gmail.com
32+ createdAt: 2026-11-28T10:19:47.000Z
33+ updatedAt: 2026-11-28T10:19:47.000Z
34+ closedAt: 2026-11-28T10:19:47.000Z
35+comments: []
added .tickets/issues/0281-quality-no-smell-left-in-the-decision-blocks-code.yaml +29 -0
new file mode 100644
@@ -0,0 +1,29 @@
1+# Managed by IssueSpec. Hand edits are welcome; keep the schema valid.
2+id: 281
3+title: "Quality: no smell left in the decision blocks' code"
4+state: closed
5+author:
6+ name: k33g
7+ email: ph.charriere@gmail.com
8+createdAt: 2026-11-28T10:19:47.000Z
9+updatedAt: 2026-11-28T10:19:47.000Z
10+closedAt: 2026-11-28T10:19:47.000Z
11+labels:
12+ - kind::chore
13+milestone: v2.2.0
14+body: |
15+ The first gate run after the decision blocks (tickets 275–279) found 11 smells in their code: installRouter (complexity 18), the three config `validate()` (11–13 returns), `decide/toolgate.go` (file complexity 60), `decide/result.go` (51) and `JudgeResult` (18), `NewResultJudge`, llamastart `ensureModel` (11 returns), engine `startAddress`.
16+
17+ Done in commit 1cfe23f (branch feature/quality-cleanup): one installer per block, shared config checks (`decisionchecks.go`), state templates and result pieces split out, `bestPiece`, `readBlockDecider` / `compileMatcher` shared by the three constructors, `ensureModel` in three steps. Same behaviour and error messages; smells 221 → 210. Checked live after the refactoring: a plain agent, decisionContext, decisionTool (allow / continue / deny), decisionResult (pieces, tail), the answer check via mm --ask, a hook demo.
18+tasks:
19+ - id: 1
20+ title: "Refactor the 11 smells, tests, live check"
21+ state: closed
22+ priority: medium
23+ author:
24+ name: k33g
25+ email: ph.charriere@gmail.com
26+ createdAt: 2026-11-28T10:19:47.000Z
27+ updatedAt: 2026-11-28T10:19:47.000Z
28+ closedAt: 2026-11-28T10:19:47.000Z
29+comments: []
new file mode 100644
@@ -0,0 +1,29 @@
1+# Managed by IssueSpec. Hand edits are welcome; keep the schema valid.
2+id: 281
3+title: "Quality: no smell left in the decision blocks' code"
4+state: closed
5+author:
6+ name: k33g
7+ email: ph.charriere@gmail.com
8+createdAt: 2026-11-28T10:19:47.000Z
9+updatedAt: 2026-11-28T10:19:47.000Z
10+closedAt: 2026-11-28T10:19:47.000Z
11+labels:
12+ - kind::chore
13+milestone: v2.2.0
14+body: |
15+ The first gate run after the decision blocks (tickets 275–279) found 11 smells in their code: installRouter (complexity 18), the three config `validate()` (11–13 returns), `decide/toolgate.go` (file complexity 60), `decide/result.go` (51) and `JudgeResult` (18), `NewResultJudge`, llamastart `ensureModel` (11 returns), engine `startAddress`.
16+
17+ Done in commit 1cfe23f (branch feature/quality-cleanup): one installer per block, shared config checks (`decisionchecks.go`), state templates and result pieces split out, `bestPiece`, `readBlockDecider` / `compileMatcher` shared by the three constructors, `ensureModel` in three steps. Same behaviour and error messages; smells 221 → 210. Checked live after the refactoring: a plain agent, decisionContext, decisionTool (allow / continue / deny), decisionResult (pieces, tail), the answer check via mm --ask, a hook demo.
18+tasks:
19+ - id: 1
20+ title: "Refactor the 11 smells, tests, live check"
21+ state: closed
22+ priority: medium
23+ author:
24+ name: k33g
25+ email: ph.charriere@gmail.com
26+ createdAt: 2026-11-28T10:19:47.000Z
27+ updatedAt: 2026-11-28T10:19:47.000Z
28+ closedAt: 2026-11-28T10:19:47.000Z
29+comments: []
added .tickets/issues/0282-quality-no-lint-error-or-warning-left-shellcheck-go-cves.yaml +42 -0
new file mode 100644
@@ -0,0 +1,42 @@
1+# Managed by IssueSpec. Hand edits are welcome; keep the schema valid.
2+id: 282
3+title: "Quality: no lint error or warning left (shellcheck, Go CVEs)"
4+state: closed
5+author:
6+ name: k33g
7+ email: ph.charriere@gmail.com
8+createdAt: 2026-11-28T10:19:47.000Z
9+updatedAt: 2026-11-28T10:19:47.000Z
10+closedAt: 2026-11-28T10:19:47.000Z
11+labels:
12+ - kind::chore
13+ - bug
14+milestone: v2.2.0
15+body: |
16+ Gate run #13: 1 error, 557 warnings. The error: shellcheck SC2148 (`testing/common/bench-lib.sh` has no shebang — it is sourced). The warnings: 4 shellcheck, 553 osv-scanner = 104 Go stdlib CVEs reported once per go.mod (10 demo / fixture modules on go 1.22 or 1.24, `demos/dev.team/workspace`'s old golang.org/x/*), plus GO-2026-6859 (net/http, fixed in 1.27.4) in mm's own toolchain go1.27.3.
17+
18+ Done in commit a5dd909: shellcheck fixes (a `shell=bash` directive, `cd … || exit 1`, a quoted glob, a narrow SC2034 suppression for variables read by the scripts that source local-ci-00-common.sh); `toolchain go1.27.4` for mm and `go 1.27.0` + `toolchain go1.27.4` for the 10 modules; x/crypto 0.59, x/net 0.63, x/sys 0.50, x/text 0.44 in dev.team. Every module builds and vets; the wasm modules build with TinyGo 0.44 (installed in the sandbox for the check; the committed .wasm files are unchanged). The model-check calc fixture and dev.team workspace tests failed the same way before.
19+
20+ qlty check: 1 error + 557 warnings → 0 + 0 (12 notes left, not gated).
21+tasks:
22+ - id: 1
23+ title: "shellcheck: error and warnings"
24+ state: closed
25+ priority: high
26+ author:
27+ name: k33g
28+ email: ph.charriere@gmail.com
29+ createdAt: 2026-11-28T10:19:47.000Z
30+ updatedAt: 2026-11-28T10:19:47.000Z
31+ closedAt: 2026-11-28T10:19:47.000Z
32+ - id: 2
33+ title: "Toolchain go1.27.4, demo and fixture go.mod, dev.team x/* deps"
34+ state: closed
35+ priority: high
36+ author:
37+ name: k33g
38+ email: ph.charriere@gmail.com
39+ createdAt: 2026-11-28T10:19:47.000Z
40+ updatedAt: 2026-11-28T10:19:47.000Z
41+ closedAt: 2026-11-28T10:19:47.000Z
42+comments: []
new file mode 100644
@@ -0,0 +1,42 @@
1+# Managed by IssueSpec. Hand edits are welcome; keep the schema valid.
2+id: 282
3+title: "Quality: no lint error or warning left (shellcheck, Go CVEs)"
4+state: closed
5+author:
6+ name: k33g
7+ email: ph.charriere@gmail.com
8+createdAt: 2026-11-28T10:19:47.000Z
9+updatedAt: 2026-11-28T10:19:47.000Z
10+closedAt: 2026-11-28T10:19:47.000Z
11+labels:
12+ - kind::chore
13+ - bug
14+milestone: v2.2.0
15+body: |
16+ Gate run #13: 1 error, 557 warnings. The error: shellcheck SC2148 (`testing/common/bench-lib.sh` has no shebang — it is sourced). The warnings: 4 shellcheck, 553 osv-scanner = 104 Go stdlib CVEs reported once per go.mod (10 demo / fixture modules on go 1.22 or 1.24, `demos/dev.team/workspace`'s old golang.org/x/*), plus GO-2026-6859 (net/http, fixed in 1.27.4) in mm's own toolchain go1.27.3.
17+
18+ Done in commit a5dd909: shellcheck fixes (a `shell=bash` directive, `cd … || exit 1`, a quoted glob, a narrow SC2034 suppression for variables read by the scripts that source local-ci-00-common.sh); `toolchain go1.27.4` for mm and `go 1.27.0` + `toolchain go1.27.4` for the 10 modules; x/crypto 0.59, x/net 0.63, x/sys 0.50, x/text 0.44 in dev.team. Every module builds and vets; the wasm modules build with TinyGo 0.44 (installed in the sandbox for the check; the committed .wasm files are unchanged). The model-check calc fixture and dev.team workspace tests failed the same way before.
19+
20+ qlty check: 1 error + 557 warnings → 0 + 0 (12 notes left, not gated).
21+tasks:
22+ - id: 1
23+ title: "shellcheck: error and warnings"
24+ state: closed
25+ priority: high
26+ author:
27+ name: k33g
28+ email: ph.charriere@gmail.com
29+ createdAt: 2026-11-28T10:19:47.000Z
30+ updatedAt: 2026-11-28T10:19:47.000Z
31+ closedAt: 2026-11-28T10:19:47.000Z
32+ - id: 2
33+ title: "Toolchain go1.27.4, demo and fixture go.mod, dev.team x/* deps"
34+ state: closed
35+ priority: high
36+ author:
37+ name: k33g
38+ email: ph.charriere@gmail.com
39+ createdAt: 2026-11-28T10:19:47.000Z
40+ updatedAt: 2026-11-28T10:19:47.000Z
41+ closedAt: 2026-11-28T10:19:47.000Z
42+comments: []
added .tickets/issues/0283-quality-code-smells-of-the-core-zone-by-zone.yaml +74 -0
new file mode 100644
@@ -0,0 +1,74 @@
1+# Managed by IssueSpec. Hand edits are welcome; keep the schema valid.
2+id: 283
3+title: "Quality: code smells of the core, zone by zone"
4+state: open
5+author:
6+ name: k33g
7+ email: ph.charriere@gmail.com
8+createdAt: 2026-11-28T10:19:47.000Z
9+updatedAt: 2026-11-28T10:19:47.000Z
10+labels:
11+ - kind::chore
12+milestone: v2.2.0
13+body: |
14+ Gate run #13: 210 smells — 78 many returns, 43 file complexity, 38 function complexity, 27 duplicated code, 11 many parameters, 7 boolean logic, 6 nested control flow. By zone: internal/engine 28, demos 25, internal/config 18, internal/tui 17, internal/agentinit 15, demo.acp.sdk 10, internal/acp 9, then 1–8 each elsewhere. Largest: main.go (`main` complexity 49, file 126), internal/agentinit/flow.go (`Set` complexity 41 and 17 returns, file 144).
15+
16+ Method (the quality skill): one zone at a time — refactor without changing behaviour, `go test ./...`, a live check of what the zone touches, a commit per zone, the gate re-measured. Never by weakening the gate.
17+tasks:
18+ - id: 1
19+ title: "internal/engine"
20+ state: open
21+ priority: medium
22+ author:
23+ name: k33g
24+ email: ph.charriere@gmail.com
25+ createdAt: 2026-11-28T10:19:47.000Z
26+ - id: 2
27+ title: "internal/config"
28+ state: open
29+ priority: medium
30+ author:
31+ name: k33g
32+ email: ph.charriere@gmail.com
33+ createdAt: 2026-11-28T10:19:47.000Z
34+ - id: 3
35+ title: "main.go and the root wiring files"
36+ state: open
37+ priority: medium
38+ author:
39+ name: k33g
40+ email: ph.charriere@gmail.com
41+ createdAt: 2026-11-28T10:19:47.000Z
42+ - id: 4
43+ title: "internal/agentinit"
44+ state: open
45+ priority: medium
46+ author:
47+ name: k33g
48+ email: ph.charriere@gmail.com
49+ createdAt: 2026-11-28T10:19:47.000Z
50+ - id: 5
51+ title: "internal/tui"
52+ state: open
53+ priority: medium
54+ author:
55+ name: k33g
56+ email: ph.charriere@gmail.com
57+ createdAt: 2026-11-28T10:19:47.000Z
58+ - id: 6
59+ title: "internal/acp, internal/agent, internal/tools, internal/mcp and the remaining internal packages"
60+ state: open
61+ priority: medium
62+ author:
63+ name: k33g
64+ email: ph.charriere@gmail.com
65+ createdAt: 2026-11-28T10:19:47.000Z
66+ - id: 7
67+ title: "demo.acp.sdk and the demos (duplicated hook code in decision-dnd / decision-chat-golang, …)"
68+ state: open
69+ priority: low
70+ author:
71+ name: k33g
72+ email: ph.charriere@gmail.com
73+ createdAt: 2026-11-28T10:19:47.000Z
74+comments: []
new file mode 100644
@@ -0,0 +1,74 @@
1+# Managed by IssueSpec. Hand edits are welcome; keep the schema valid.
2+id: 283
3+title: "Quality: code smells of the core, zone by zone"
4+state: open
5+author:
6+ name: k33g
7+ email: ph.charriere@gmail.com
8+createdAt: 2026-11-28T10:19:47.000Z
9+updatedAt: 2026-11-28T10:19:47.000Z
10+labels:
11+ - kind::chore
12+milestone: v2.2.0
13+body: |
14+ Gate run #13: 210 smells — 78 many returns, 43 file complexity, 38 function complexity, 27 duplicated code, 11 many parameters, 7 boolean logic, 6 nested control flow. By zone: internal/engine 28, demos 25, internal/config 18, internal/tui 17, internal/agentinit 15, demo.acp.sdk 10, internal/acp 9, then 1–8 each elsewhere. Largest: main.go (`main` complexity 49, file 126), internal/agentinit/flow.go (`Set` complexity 41 and 17 returns, file 144).
15+
16+ Method (the quality skill): one zone at a time — refactor without changing behaviour, `go test ./...`, a live check of what the zone touches, a commit per zone, the gate re-measured. Never by weakening the gate.
17+tasks:
18+ - id: 1
19+ title: "internal/engine"
20+ state: open
21+ priority: medium
22+ author:
23+ name: k33g
24+ email: ph.charriere@gmail.com
25+ createdAt: 2026-11-28T10:19:47.000Z
26+ - id: 2
27+ title: "internal/config"
28+ state: open
29+ priority: medium
30+ author:
31+ name: k33g
32+ email: ph.charriere@gmail.com
33+ createdAt: 2026-11-28T10:19:47.000Z
34+ - id: 3
35+ title: "main.go and the root wiring files"
36+ state: open
37+ priority: medium
38+ author:
39+ name: k33g
40+ email: ph.charriere@gmail.com
41+ createdAt: 2026-11-28T10:19:47.000Z
42+ - id: 4
43+ title: "internal/agentinit"
44+ state: open
45+ priority: medium
46+ author:
47+ name: k33g
48+ email: ph.charriere@gmail.com
49+ createdAt: 2026-11-28T10:19:47.000Z
50+ - id: 5
51+ title: "internal/tui"
52+ state: open
53+ priority: medium
54+ author:
55+ name: k33g
56+ email: ph.charriere@gmail.com
57+ createdAt: 2026-11-28T10:19:47.000Z
58+ - id: 6
59+ title: "internal/acp, internal/agent, internal/tools, internal/mcp and the remaining internal packages"
60+ state: open
61+ priority: medium
62+ author:
63+ name: k33g
64+ email: ph.charriere@gmail.com
65+ createdAt: 2026-11-28T10:19:47.000Z
66+ - id: 7
67+ title: "demo.acp.sdk and the demos (duplicated hook code in decision-dnd / decision-chat-golang, …)"
68+ state: open
69+ priority: low
70+ author:
71+ name: k33g
72+ email: ph.charriere@gmail.com
73+ createdAt: 2026-11-28T10:19:47.000Z
74+comments: []