Commit 30d4a4a
committed
feat: add Assistive SDK with cyberloop() wrapper and middleware system (v2.2)
Introduce a lightweight alternative to the Orchestrator that wraps
existing agents with composable middleware. The SDK instruments the
inner loop (budget, policy, kinematics, telemetry) while leaving
outer-loop orchestration to user code.
Core changes:
- Agent protocols: AgentLike (opaque) and SteppableAgent (step-level)
- cyberloop(agent, opts) wrapper with automatic agent type detection
- Middleware system: runner, budget, telemetry, stagnation, probe, evaluator
- policyMiddleware: declarative ChainPolicy wiring with decideAction()
- kinematicsMiddleware: EKF/PID drift detection as middleware
- Adapter decoupling: domain adapters no longer import core directly
Examples:
- quickstart, middleware-demo, openai-agents-demo (new)
- GitHub and Wikipedia demos ported to SDK alongside legacy versions
Documentation:
- docs/guide/choosing-your-api.md (new — SDK vs Orchestrator guide)
- ADR-0002: Assistive SDK architectural decision record
- Updated README, EVOLUTION, COMPONENT_INTERACTIONS, GLOSSARY,
TESTING_GUIDE, AICL, TECHNICAL_SPEC_v2.1, inner-outer-loop1 parent aac0ec6 commit 30d4a4a
55 files changed
Lines changed: 4553 additions & 224 deletions
File tree
- docs
- adr
- architecture
- guide
- specs
- whitepaper
- src
- advanced
- core
- middleware
- policy
- guards
- reflexes
- examples
- github
- wikipedia
- tests/unit
- advanced
- core/policy
- guards
- reflexes
- middleware
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
29 | 57 | | |
30 | 58 | | |
31 | 59 | | |
| |||
41 | 69 | | |
42 | 70 | | |
43 | 71 | | |
44 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
45 | 77 | | |
46 | 78 | | |
47 | 79 | | |
| |||
84 | 116 | | |
85 | 117 | | |
86 | 118 | | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
87 | 139 | | |
88 | 140 | | |
89 | 141 | | |
| |||
127 | 179 | | |
128 | 180 | | |
129 | 181 | | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
137 | 197 | | |
138 | 198 | | |
139 | 199 | | |
140 | 200 | | |
141 | 201 | | |
142 | 202 | | |
143 | 203 | | |
| 204 | + | |
144 | 205 | | |
145 | 206 | | |
| 207 | + | |
| 208 | + | |
146 | 209 | | |
147 | 210 | | |
148 | 211 | | |
149 | 212 | | |
150 | 213 | | |
151 | 214 | | |
152 | | - | |
| 215 | + | |
153 | 216 | | |
154 | 217 | | |
155 | 218 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
98 | 99 | | |
99 | 100 | | |
100 | 101 | | |
| 102 | + | |
101 | 103 | | |
102 | 104 | | |
103 | 105 | | |
| |||
137 | 139 | | |
138 | 140 | | |
139 | 141 | | |
| 142 | + | |
140 | 143 | | |
141 | 144 | | |
142 | 145 | | |
143 | 146 | | |
144 | 147 | | |
145 | 148 | | |
146 | 149 | | |
| 150 | + | |
147 | 151 | | |
148 | 152 | | |
149 | 153 | | |
| |||
191 | 195 | | |
192 | 196 | | |
193 | 197 | | |
| 198 | + | |
194 | 199 | | |
195 | 200 | | |
196 | 201 | | |
| |||
199 | 204 | | |
200 | 205 | | |
201 | 206 | | |
| 207 | + | |
202 | 208 | | |
203 | 209 | | |
204 | 210 | | |
| |||
214 | 220 | | |
215 | 221 | | |
216 | 222 | | |
| 223 | + | |
217 | 224 | | |
218 | 225 | | |
219 | 226 | | |
| |||
233 | 240 | | |
234 | 241 | | |
235 | 242 | | |
| 243 | + | |
236 | 244 | | |
237 | 245 | | |
238 | 246 | | |
| |||
253 | 261 | | |
254 | 262 | | |
255 | 263 | | |
| 264 | + | |
256 | 265 | | |
257 | 266 | | |
258 | 267 | | |
| |||
270 | 279 | | |
271 | 280 | | |
272 | 281 | | |
| 282 | + | |
273 | 283 | | |
274 | 284 | | |
275 | 285 | | |
| |||
289 | 299 | | |
290 | 300 | | |
291 | 301 | | |
| 302 | + | |
292 | 303 | | |
293 | | - | |
| 304 | + | |
294 | 305 | | |
295 | 306 | | |
296 | 307 | | |
| |||
302 | 313 | | |
303 | 314 | | |
304 | 315 | | |
| 316 | + | |
305 | 317 | | |
306 | 318 | | |
307 | 319 | | |
308 | 320 | | |
309 | 321 | | |
310 | 322 | | |
311 | 323 | | |
| 324 | + | |
312 | 325 | | |
313 | 326 | | |
314 | 327 | | |
| |||
380 | 393 | | |
381 | 394 | | |
382 | 395 | | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
0 commit comments