Commit 7ebf0fd
Tech-debt remediation: lib/bin split + D1–D5 resolved (#37)
* fix(gossamer): Week 1 tech-debt — wire dead registry/settings/resources cmds, drop speculative scaffolding
D1: service registry is a fixed env-driven set; wire service_list
(get_registry) + service_set_url (update_service_url); remove vestigial
register/unregister command stubs (no backing fns).
D2: wire settings_save + llm_coding_system_resources (read_system_memory
+ SystemResources + new CPU sampler); remove unused WorkspaceLock,
PendingAction, SpawnRequest.task_list. clippy -D warnings clean.
D5: rewrite TECHNICAL_DEBT.md as verified 30-day plan; fix arch link.
Also de-Tauri'd llm_coding/commands.rs header (Gossamer).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* feat(coprocessor): Week 2 — real Zig FFI dynamic loading (D4)
Add libloading 0.8 dep (once_cell already present). FfiState now owns
the loaded libloading::Library; copro_load_ffi does a real dlopen +
copro_init; copro_ffi_dispatch resolves copro_dispatch/copro_free from
the live handle and calls the C ABI (was a stub). Symbols resolved
per-call (no self-referential 'static storage). De-Tauri'd coprocessor
comments. Removed stale libloading/once_cell TODOs.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* refactor: lib/bin split — testable logic crate; wire orphaned coprocessor (D3)
Add [lib] panll target (GTK-free): http_client, service_registry,
settings, identity, groove, llm_coding + the previously-orphaned
coprocessor (declared by no crate root → never compiled; D4's FFI fix
now actually builds and is tested). main.rs keeps only system_tray
(gossamer_rs/GTK) and imports the rest via use panll::*.
cargo test --lib now runs WITHOUT linking libgossamer/GTK: 18/18 pass
(6 new D3 tests for http_client + service_registry, 12 coprocessor).
Cleared 11 latent clippy lints surfaced once coprocessor compiled
(10 empty-line-after-doc, 1 should_implement_trait — justified allow).
clippy --all-targets -D warnings clean.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* chore: Week 4 — hardening, hypatia reconcile, changelog, doc finalize (W4)
- Fold cross-module integration tests into the lib test surface so they
run via cargo test --lib (no GTK bin build): 23/23 pass.
- Reconcile .github/hypatia-rules/panll-v0.2.0-fixes.yml v1->v2: retire 8
stale panic-attack rules that false-positive on now-correct code; keep
one precise regression guard (panll-cmd-disabled); fix doc-ref path.
- CHANGELOG.md: document lib/bin split, coprocessor wiring, add/remove/fix.
- TECHNICAL_DEBT.md: mark D1-D5 resolved with execution log; record
honest environment caveat (bin link needs GTK) and follow-up debt
F1 (40 orphaned dirs) / F2 (coprocessor IPC wiring) / F3 (dev env).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* docs: correct F1 — 38 orphaned dirs are unwired panel backends, not dead code
Inspection showed every 'orphan' dir is a real PanLL panel backend
(aerie/hypatia/ai/farm/provenance/…), orphaned by the same defect as
coprocessor. Decision: integrate, not delete. Added F1 integration
workstream plan (coprocessor pilot → census → bulk wire).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 75a213e commit 7ebf0fd
13 files changed
Lines changed: 598 additions & 588 deletions
File tree
- .github/hypatia-rules
- docs
- src-gossamer/src
- coprocessor
- llm_coding
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
5 | 19 | | |
6 | | - | |
7 | 20 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
12 | 30 | | |
13 | 31 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
152 | 39 | | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
157 | 44 | | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
193 | 55 | | |
194 | | - | |
195 | 56 | | |
196 | 57 | | |
197 | 58 | | |
198 | 59 | | |
199 | 60 | | |
200 | 61 | | |
201 | 62 | | |
202 | | - | |
203 | 63 | | |
204 | | - | |
205 | 64 | | |
206 | 65 | | |
207 | | - | |
208 | 66 | | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | 67 | | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
| 68 | + | |
221 | 69 | | |
222 | | - | |
223 | | - | |
| 70 | + | |
| 71 | + | |
224 | 72 | | |
225 | | - | |
226 | 73 | | |
227 | 74 | | |
228 | | - | |
| 75 | + | |
229 | 76 | | |
230 | | - | |
| 77 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
19 | 20 | | |
20 | | - | |
21 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
22 | 41 | | |
23 | 42 | | |
24 | 43 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
23 | 29 | | |
24 | 30 | | |
25 | 31 | | |
| |||
55 | 61 | | |
56 | 62 | | |
57 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
58 | 67 | | |
59 | 68 | | |
60 | 69 | | |
| |||
0 commit comments