@iowarp/clio-coder 0.3.3 → 0.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (244) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/CONTRIBUTING.md +1 -1
  3. package/README.md +3 -3
  4. package/dist/{acp-P2AQILE2.js → acp-S5R4RR5B.js} +7 -6
  5. package/dist/{agents-72W3BI7I.js → agents-P6DMMVZY.js} +24 -21
  6. package/dist/assets/codewiki.json +1 -1
  7. package/dist/{auth-5TWEIYDN.js → auth-2XCZLPKS.js} +12 -8
  8. package/dist/{chunk-GGXXDWE4.js → chunk-22NAGB7X.js} +2 -2
  9. package/dist/{chunk-2DJ2KNFG.js → chunk-2LZI5CAG.js} +133 -13
  10. package/dist/{chunk-OAO4GE4M.js → chunk-2TZWSW76.js} +2 -2
  11. package/dist/{chunk-OOJYHWRB.js → chunk-34475P3I.js} +2 -2
  12. package/dist/{chunk-4XUGQOHA.js → chunk-35MKKU5R.js} +4 -4
  13. package/dist/{chunk-LM5TQCJZ.js → chunk-3HZ5RWN2.js} +5 -5
  14. package/dist/{chunk-AGYYIBLL.js → chunk-3JLKSKD7.js} +2 -2
  15. package/dist/{chunk-KZWTDYJF.js → chunk-4JUF2NNX.js} +7 -7
  16. package/dist/{chunk-ZDOOVTXZ.js → chunk-4OC57DA6.js} +27 -4
  17. package/dist/chunk-5M54SPOL.js +926 -0
  18. package/dist/{chunk-STBPMHSX.js → chunk-7RXG6QRZ.js} +51 -11
  19. package/dist/{chunk-X6IAEBZR.js → chunk-A2GZF7DC.js} +5 -5
  20. package/dist/{chunk-A3CYT5EX.js → chunk-AD2SYQYC.js} +55 -2
  21. package/dist/chunk-AOCYTWAV.js +449 -0
  22. package/dist/chunk-BEY543CS.js +258 -0
  23. package/dist/{chunk-6N5PTWMY.js → chunk-BP4OYD6A.js} +32 -13
  24. package/dist/chunk-BPGS2WCQ.js +612 -0
  25. package/dist/{chunk-V6RTAOC2.js → chunk-BRXQQJFP.js} +8 -8
  26. package/dist/chunk-CFGTUFWB.js +67 -0
  27. package/dist/{chunk-CBCAPZAA.js → chunk-E25LMLRW.js} +2 -2
  28. package/dist/{chunk-DUYJ5IO6.js → chunk-EDRHSCIE.js} +4 -4
  29. package/dist/{chunk-XBXAASKX.js → chunk-EFADSJET.js} +2 -2
  30. package/dist/{chunk-M6SHUN7Q.js → chunk-FO5ZOVUY.js} +2 -2
  31. package/dist/chunk-FYYLNIL5.js +313 -0
  32. package/dist/{chunk-FNTMWMX5.js → chunk-HV5X7OR2.js} +14 -12
  33. package/dist/{chunk-TZTZS7QK.js → chunk-HXG4IURW.js} +5 -3
  34. package/dist/{chunk-5UFT4SUX.js → chunk-K6WL7QZT.js} +3 -3
  35. package/dist/chunk-K7VKOLQQ.js +15 -0
  36. package/dist/{chunk-BMEMKKIT.js → chunk-KOHPCX4K.js} +2 -2
  37. package/dist/{chunk-OC7FIQPC.js → chunk-KRPY7NTG.js} +10 -7
  38. package/dist/chunk-LL4KHSZI.js +22 -0
  39. package/dist/{chunk-DSELYM6W.js → chunk-MEQ45TQ4.js} +15 -9
  40. package/dist/{chunk-5UUP6MWO.js → chunk-MV3K5QF2.js} +5 -436
  41. package/dist/{chunk-6SGHMWE3.js → chunk-N4CZJQRK.js} +5 -5
  42. package/dist/{chunk-TZK7PACC.js → chunk-NILBFAPG.js} +14 -8
  43. package/dist/chunk-OZNBF4L3.js +23 -0
  44. package/dist/{verify-375KUB3Y.js → chunk-PCZJO5TI.js} +127 -42
  45. package/dist/chunk-QQK64KLB.js +1360 -0
  46. package/dist/{chunk-SRDMMSEP.js → chunk-QQL5RT5M.js} +979 -1619
  47. package/dist/{chunk-LZSJBIVT.js → chunk-QWU7ZBO7.js} +70 -720
  48. package/dist/{chunk-2TLUCQVG.js → chunk-RD5U66HV.js} +3 -3
  49. package/dist/{chunk-OKGUZO2U.js → chunk-SPULKLCF.js} +4 -3
  50. package/dist/{chunk-OQ33BKR3.js → chunk-TTNYS3EA.js} +3 -60
  51. package/dist/chunk-TW3WDMVS.js +677 -0
  52. package/dist/chunk-TZSKNMZG.js +434 -0
  53. package/dist/{chunk-7MNJORFF.js → chunk-UL3WSD3F.js} +6 -1
  54. package/dist/{chunk-PIWWS5BL.js → chunk-UZHIZC5S.js} +7 -7
  55. package/dist/{chunk-UFIIWP2H.js → chunk-VAWWTKDP.js} +8 -8
  56. package/dist/{chunk-COU2UHX6.js → chunk-VEZEGCGW.js} +170 -2
  57. package/dist/{chunk-LW6DSM3M.js → chunk-VMNQ6OZA.js} +98 -202
  58. package/dist/chunk-VSNATDE6.js +122 -0
  59. package/dist/chunk-W6GROXXM.js +69 -0
  60. package/dist/chunk-WPQLXFOZ.js +375 -0
  61. package/dist/{chunk-ORBHGJC5.js → chunk-WR67VIZY.js} +3 -3
  62. package/dist/{chunk-PAJK6MAQ.js → chunk-X6COSD2O.js} +5 -5
  63. package/dist/chunk-ZGVHUX3M.js +66 -0
  64. package/dist/{chunk-LWLEKMDQ.js → chunk-ZYKPLLNQ.js} +510 -547
  65. package/dist/cli/index.js +27 -23
  66. package/dist/{clio-JOU4FXVA.js → clio-J5JIOIDS.js} +7 -6
  67. package/dist/{code-nav-7AX6FYE6.js → code-nav-AXCXSBHX.js} +5 -3
  68. package/dist/{config-XCDVKR23.js → config-OEBMIN2U.js} +37 -27
  69. package/dist/{configure-4GAP54ZW.js → configure-PUQOSIXQ.js} +16 -13
  70. package/dist/{context-5VKGUVJJ.js → context-EKDCKUUZ.js} +82 -7
  71. package/dist/{context-4UOGGLQ5.js → context-MGSE4Z2T.js} +33 -23
  72. package/dist/{context-77FM5DV5.js → context-URSXPBCK.js} +17 -9
  73. package/dist/{context-clear-XXJRLCJJ.js → context-clear-KDAJRNUK.js} +33 -23
  74. package/dist/context-working-set-SBKMPPI2.js +1552 -0
  75. package/dist/{dispatch-runner-QPRDDBDX.js → dispatch-runner-MSWN72NK.js} +43 -29
  76. package/dist/{doctor-HR46URBJ.js → doctor-7BSE27PJ.js} +10 -10
  77. package/dist/{eval-XSSNATB4.js → eval-IZGDOO4H.js} +9 -8
  78. package/dist/{evidence-6HG2PY2B.js → evidence-SR7WXB5B.js} +51 -23
  79. package/dist/{evolve-K7YU3NCY.js → evolve-K7VE2CBX.js} +30 -20
  80. package/dist/{fleet-VY3HHKN6.js → fleet-7XMJNQNF.js} +48 -38
  81. package/dist/{fleet-preflight-DDN536IT.js → fleet-preflight-AQNAH644.js} +3 -3
  82. package/dist/{init-JYGXI3FK.js → init-JGNPAYXT.js} +41 -31
  83. package/dist/{memory-WFZMGYHX.js → memory-4ALKDJ4Q.js} +32 -22
  84. package/dist/{models-I5QWSEOM.js → models-ZMMLFJNN.js} +22 -19
  85. package/dist/{monitor-GE4ID3IA.js → monitor-2F3T5KHP.js} +55 -43
  86. package/dist/{orchestrator-EM5MC3HM.js → orchestrator-ORHT43JB.js} +572 -388
  87. package/dist/{reset-L2FQEE3E.js → reset-NXGTYNUO.js} +4 -3
  88. package/dist/{run-ZU3QMZPZ.js → run-RF4WJGMT.js} +51 -41
  89. package/dist/{share-S5BZQC5I.js → share-UT3W6E4M.js} +5 -4
  90. package/dist/{skills-X5VXCRNQ.js → skills-PSACKC5Q.js} +2 -2
  91. package/dist/{skills-eval-WKIHWTHR.js → skills-eval-WJSI55RZ.js} +34 -24
  92. package/dist/{targets-SNCPI2NR.js → targets-PIIRAOYS.js} +23 -20
  93. package/dist/{terminal-lease-BNAHVHBS.js → terminal-lease-ULWXWNVY.js} +4 -3
  94. package/dist/{upgrade-JQHHPQ4K.js → upgrade-346TZ6AV.js} +18 -17
  95. package/dist/{usage-OR4O5SMZ.js → usage-6KKXR32N.js} +34 -24
  96. package/dist/verifiers-4UUM6TEE.js +1214 -0
  97. package/dist/verify-X5HDROLA.js +25 -0
  98. package/dist/{wiki-generate-UEXP2ARI.js → wiki-generate-7STOCIFZ.js} +42 -31
  99. package/dist/worker/entry.js +33 -24
  100. package/docs/README.md +7 -6
  101. package/docs/acp.md +1 -1
  102. package/docs/alcf-provider.md +1 -1
  103. package/docs/architecture.md +2 -2
  104. package/docs/artifact-versions.md +1 -1
  105. package/docs/built-in-agents.md +1 -1
  106. package/docs/capacity-and-scheduling.md +1 -1
  107. package/docs/commands-and-modes.md +53 -21
  108. package/docs/config-knobs-audit.md +1 -2
  109. package/docs/configuration-and-targets.md +15 -1
  110. package/docs/context-engine.md +64 -12
  111. package/docs/context-working-set.md +194 -0
  112. package/docs/development-pipeline.md +1 -1
  113. package/docs/documentation-coverage.md +5 -5
  114. package/docs/documentation-guide.md +6 -5
  115. package/docs/environment-variables.md +2 -1
  116. package/docs/eval-runner.md +1 -1
  117. package/docs/evals-internal.md +14 -1
  118. package/docs/evidence-and-memory.md +74 -2
  119. package/docs/evolution.md +1 -1
  120. package/docs/exit-codes-and-output.md +1 -1
  121. package/docs/extensions-and-sharing.md +2 -2
  122. package/docs/fleet-dispatch.md +22 -7
  123. package/docs/glossary.md +21 -1
  124. package/docs/installation-and-lifecycle.md +2 -2
  125. package/docs/middleware-and-components.md +1 -1
  126. package/docs/model-catalog.md +7 -9
  127. package/docs/observability.md +4 -4
  128. package/docs/proactive-memory.md +1 -1
  129. package/docs/prompt-envelope-and-tools.md +4 -4
  130. package/docs/provider-adapter-cookbook.md +1 -1
  131. package/docs/release-cut-checklist.md +31 -31
  132. package/docs/safety-model.md +23 -4
  133. package/docs/scientific-validation.md +21 -3
  134. package/docs/session-lifecycle.md +3 -3
  135. package/docs/skills-marketplace.md +1 -1
  136. package/docs/tool-usage.md +79 -12
  137. package/docs/trace-store.md +1 -1
  138. package/docs/troubleshooting.md +1 -1
  139. package/docs/tui-design.md +1 -1
  140. package/docs/worker-dispatch-mechanics.md +11 -1
  141. package/package.json +8 -11
  142. package/skills/meta/clio-test/SKILL.md +20 -17
  143. package/skills/meta/clio-test/evals.md +3 -3
  144. package/skills/meta/clio-test/references/harness.md +35 -6
  145. package/skills/meta/clio-test/references/test-map.md +20 -10
  146. package/skills/registry.yaml +2 -2
  147. package/skills/skill-marketplace.json +1 -1
  148. package/src/cli/context-working-set.ts +513 -0
  149. package/src/cli/context.ts +8 -0
  150. package/src/cli/evidence.ts +20 -2
  151. package/src/cli/index.ts +4 -0
  152. package/src/cli/verifiers.ts +325 -0
  153. package/src/core/bash-exec.ts +39 -14
  154. package/src/core/bus-events.ts +19 -4
  155. package/src/core/config.ts +54 -0
  156. package/src/core/defaults.ts +50 -3
  157. package/src/core/verification-scripts.ts +6 -0
  158. package/src/domains/agents/builtins/verifier.md +3 -0
  159. package/src/domains/config/classify.ts +1 -0
  160. package/src/domains/context/working-set/contract.ts +161 -0
  161. package/src/domains/context/working-set/defaults.ts +28 -0
  162. package/src/domains/context/working-set/engine.ts +203 -0
  163. package/src/domains/context/working-set/fold.ts +62 -0
  164. package/src/domains/context/working-set/horizon.ts +38 -0
  165. package/src/domains/context/working-set/marker.ts +103 -0
  166. package/src/domains/context/working-set/path-index.ts +436 -0
  167. package/src/domains/context/working-set/payload.ts +152 -0
  168. package/src/domains/context/working-set/policies/age-horizon.ts +55 -0
  169. package/src/domains/context/working-set/policies/index.ts +21 -0
  170. package/src/domains/context/working-set/policies/structural.ts +160 -0
  171. package/src/domains/context/working-set/project.ts +132 -0
  172. package/src/domains/context/working-set/protect.ts +109 -0
  173. package/src/domains/context/working-set/recall.ts +177 -0
  174. package/src/domains/context/working-set/replay/controls.ts +112 -0
  175. package/src/domains/context/working-set/replay/load-clio.ts +199 -0
  176. package/src/domains/context/working-set/replay/metrics.ts +185 -0
  177. package/src/domains/context/working-set/replay/reference-graph.ts +79 -0
  178. package/src/domains/context/working-set/replay/report.ts +139 -0
  179. package/src/domains/context/working-set/replay/runner.ts +325 -0
  180. package/src/domains/context/working-set/replay/synthetic.ts +422 -0
  181. package/src/domains/context/working-set/replay/trace.ts +21 -0
  182. package/src/domains/context/working-set/visible.ts +54 -0
  183. package/src/domains/evidence/build.ts +112 -45
  184. package/src/domains/evidence/eval.ts +24 -7
  185. package/src/domains/evidence/index.ts +53 -0
  186. package/src/domains/evidence/ordering.ts +12 -0
  187. package/src/domains/evidence/run-trust.ts +221 -0
  188. package/src/domains/evidence/store.ts +46 -6
  189. package/src/domains/evidence/trust-status.ts +854 -0
  190. package/src/domains/evidence/types.ts +26 -0
  191. package/src/domains/middleware/memory-intervention.ts +3 -0
  192. package/src/domains/middleware/stalled-turn.ts +165 -4
  193. package/src/domains/safety/autonomy.ts +1 -1
  194. package/src/domains/safety/default-path-policy.ts +8 -0
  195. package/src/domains/safety/finish-contract.ts +4 -3
  196. package/src/domains/safety/policy-engine.ts +48 -6
  197. package/src/domains/session/compaction/compact.ts +23 -1
  198. package/src/domains/session/compaction/cut-point.ts +2 -0
  199. package/src/domains/session/compaction/tokens.ts +16 -1
  200. package/src/domains/session/context-ledger.ts +2 -0
  201. package/src/domains/session/entries.ts +107 -1
  202. package/src/domains/session/manager.ts +9 -2
  203. package/src/domains/session/migrations/index.ts +22 -3
  204. package/src/engine/acp/server.ts +3 -0
  205. package/src/engine/agent.ts +18 -1
  206. package/src/engine/session.ts +9 -3
  207. package/src/entry/orchestrator.ts +16 -4
  208. package/src/interactive/chat-loop-messages.ts +18 -6
  209. package/src/interactive/chat-panel.ts +17 -1
  210. package/src/interactive/chat-renderer.ts +30 -21
  211. package/src/interactive/context-meter.ts +10 -0
  212. package/src/interactive/context-overlay.ts +81 -6
  213. package/src/interactive/context-recall-command.ts +110 -0
  214. package/src/interactive/interactive-slash-runtime.ts +37 -1
  215. package/src/interactive/model-session-replay.ts +21 -0
  216. package/src/interactive/overlay-general-openers.ts +6 -0
  217. package/src/interactive/overlay-session-lifecycle.ts +8 -4
  218. package/src/interactive/renderers/tool-execution.ts +18 -2
  219. package/src/interactive/session-transcript.ts +2 -2
  220. package/src/interactive/slash-commands.ts +29 -2
  221. package/src/interactive/turn-context.ts +238 -88
  222. package/src/interactive/turn-middleware.ts +6 -6
  223. package/src/tools/agent-tools.ts +11 -4
  224. package/src/tools/bash.ts +144 -82
  225. package/src/tools/builtin-tool-catalog.ts +11 -5
  226. package/src/tools/context/index.ts +105 -3
  227. package/src/tools/context/surface.ts +3 -2
  228. package/src/tools/core-bootstrap.ts +21 -0
  229. package/src/tools/dispatch-runner.ts +9 -7
  230. package/src/tools/monitor.ts +28 -20
  231. package/src/tools/registry.ts +59 -7
  232. package/src/tools/result-disposition.ts +550 -0
  233. package/src/tools/result-shaping.ts +262 -19
  234. package/src/tools/safe-exec.ts +2 -0
  235. package/src/tools/verify/authoring.ts +1119 -0
  236. package/src/tools/verify/catalog.ts +346 -0
  237. package/src/tools/verify/index.ts +13 -3
  238. package/src/tools/verify/scripts.ts +135 -37
  239. package/src/tools/verify/surface.ts +9 -5
  240. package/src/tools/worker-evidence.ts +35 -12
  241. package/dist/chunk-J7CWMCQD.js +0 -255
  242. package/dist/chunk-T6YILFSB.js +0 -80
  243. package/dist/chunk-VAKQQHWR.js +0 -434
  244. package/dist/chunk-VPAYEGVX.js +0 -184
@@ -0,0 +1,25 @@
1
+ import { createRequire as __clioCreateRequire } from "node:module"; const require = __clioCreateRequire(import.meta.url);
2
+ import {
3
+ verifyTool
4
+ } from "./chunk-PCZJO5TI.js";
5
+ import "./chunk-NILBFAPG.js";
6
+ import "./chunk-FYYLNIL5.js";
7
+ import "./chunk-UL3WSD3F.js";
8
+ import "./chunk-VG7TBQIY.js";
9
+ import "./chunk-OQE5J4C6.js";
10
+ import "./chunk-ECH6PKUQ.js";
11
+ import "./chunk-6XLNIQDB.js";
12
+ import "./chunk-5B2AEOW5.js";
13
+ import "./chunk-CGKSTWHD.js";
14
+ import "./chunk-VEZEGCGW.js";
15
+ import "./chunk-FQ4SKYE4.js";
16
+ import "./chunk-FCSXB6T2.js";
17
+ import "./chunk-APJ265NV.js";
18
+ import "./chunk-YXLYO42X.js";
19
+ import "./chunk-BNAZZHFG.js";
20
+ import "./chunk-6EJMN2Y3.js";
21
+ import "./chunk-3R73A4XB.js";
22
+ export {
23
+ verifyTool
24
+ };
25
+ //# sourceMappingURL=verify-X5HDROLA.js.map
@@ -5,36 +5,37 @@ import {
5
5
  import {
6
6
  SchedulingDomainModule,
7
7
  createPromptsDomainModule
8
- } from "./chunk-LM5TQCJZ.js";
8
+ } from "./chunk-3HZ5RWN2.js";
9
9
  import {
10
10
  AgentsDomainModule,
11
11
  SafetyDomainModule
12
- } from "./chunk-PAJK6MAQ.js";
12
+ } from "./chunk-X6COSD2O.js";
13
13
  import {
14
14
  ConfigDomainModule,
15
15
  loadDomains
16
- } from "./chunk-OC7FIQPC.js";
16
+ } from "./chunk-KRPY7NTG.js";
17
17
  import {
18
18
  createObservabilityDomainModule
19
- } from "./chunk-4XUGQOHA.js";
19
+ } from "./chunk-35MKKU5R.js";
20
20
  import "./chunk-HC4CLZ2Y.js";
21
21
  import "./chunk-HFSBBKSQ.js";
22
- import "./chunk-CBCAPZAA.js";
22
+ import "./chunk-E25LMLRW.js";
23
23
  import {
24
24
  ContextDomainModule,
25
25
  buildWikiPagePrompt,
26
26
  buildWikiPlanPrompt
27
- } from "./chunk-PIWWS5BL.js";
27
+ } from "./chunk-UZHIZC5S.js";
28
28
  import "./chunk-5WIGXA4T.js";
29
- import "./chunk-V6RTAOC2.js";
29
+ import "./chunk-BRXQQJFP.js";
30
+ import {
31
+ DispatchDomainModule
32
+ } from "./chunk-QQL5RT5M.js";
30
33
  import {
31
- DispatchDomainModule,
32
34
  SessionDomainModule
33
- } from "./chunk-SRDMMSEP.js";
34
- import "./chunk-4BJ5BYCE.js";
35
+ } from "./chunk-QQK64KLB.js";
35
36
  import "./chunk-QKMUKYO7.js";
36
- import "./chunk-AGYYIBLL.js";
37
- import "./chunk-OOJYHWRB.js";
37
+ import "./chunk-3JLKSKD7.js";
38
+ import "./chunk-34475P3I.js";
38
39
  import "./chunk-TXOTCRLG.js";
39
40
  import "./chunk-G4BMMOKF.js";
40
41
  import {
@@ -50,24 +51,30 @@ import {
50
51
  import "./chunk-4BPJXDWC.js";
51
52
  import "./chunk-2SFS6XQE.js";
52
53
  import "./chunk-ZWLZP4ZT.js";
54
+ import "./chunk-W6GROXXM.js";
53
55
  import {
54
56
  MiddlewareDomainModule
55
- } from "./chunk-2DJ2KNFG.js";
57
+ } from "./chunk-2LZI5CAG.js";
56
58
  import "./chunk-IR4CFBFN.js";
57
59
  import "./chunk-UOV2BYIW.js";
58
- import "./chunk-OAO4GE4M.js";
59
- import "./chunk-LWLEKMDQ.js";
60
- import "./chunk-STBPMHSX.js";
61
- import "./chunk-GGXXDWE4.js";
62
- import "./chunk-5UUP6MWO.js";
60
+ import "./chunk-2TZWSW76.js";
61
+ import "./chunk-ZYKPLLNQ.js";
62
+ import "./chunk-WPQLXFOZ.js";
63
+ import "./chunk-7RXG6QRZ.js";
64
+ import "./chunk-22NAGB7X.js";
65
+ import "./chunk-AOCYTWAV.js";
66
+ import "./chunk-MV3K5QF2.js";
63
67
  import "./chunk-CMZWFGD2.js";
64
68
  import "./chunk-I4HZDVNP.js";
65
- import "./chunk-7MNJORFF.js";
69
+ import "./chunk-FYYLNIL5.js";
70
+ import "./chunk-UL3WSD3F.js";
66
71
  import "./chunk-VG7TBQIY.js";
67
72
  import "./chunk-OQE5J4C6.js";
68
73
  import "./chunk-ECH6PKUQ.js";
69
- import "./chunk-T6YILFSB.js";
70
- import "./chunk-VAKQQHWR.js";
74
+ import "./chunk-BEY543CS.js";
75
+ import "./chunk-5M54SPOL.js";
76
+ import "./chunk-OZNBF4L3.js";
77
+ import "./chunk-4BJ5BYCE.js";
71
78
  import "./chunk-6XLNIQDB.js";
72
79
  import "./chunk-5B2AEOW5.js";
73
80
  import {
@@ -81,27 +88,31 @@ import "./chunk-EKMEHE4H.js";
81
88
  import {
82
89
  ProvidersDomainModule,
83
90
  canonicalizeWireModelId
84
- } from "./chunk-LZSJBIVT.js";
85
- import "./chunk-A3CYT5EX.js";
86
- import "./chunk-ZDOOVTXZ.js";
91
+ } from "./chunk-QWU7ZBO7.js";
92
+ import "./chunk-CFGTUFWB.js";
93
+ import "./chunk-AD2SYQYC.js";
94
+ import "./chunk-4OC57DA6.js";
95
+ import "./chunk-LL4KHSZI.js";
87
96
  import "./chunk-4VP4KH3K.js";
88
- import "./chunk-M6SHUN7Q.js";
89
- import "./chunk-R346GLFC.js";
90
- import "./chunk-COU2UHX6.js";
97
+ import "./chunk-VEZEGCGW.js";
91
98
  import "./chunk-FQ4SKYE4.js";
92
99
  import "./chunk-IKCO5N3L.js";
93
100
  import "./chunk-3I7MS7N2.js";
94
101
  import "./chunk-IHXBNWMM.js";
102
+ import "./chunk-BPGS2WCQ.js";
95
103
  import "./chunk-SST6Z5JA.js";
104
+ import "./chunk-FO5ZOVUY.js";
105
+ import "./chunk-R346GLFC.js";
96
106
  import "./chunk-4ZG3XFUR.js";
97
- import "./chunk-APJ265NV.js";
98
107
  import "./chunk-FCSXB6T2.js";
108
+ import "./chunk-APJ265NV.js";
99
109
  import "./chunk-YXLYO42X.js";
100
110
  import "./chunk-BNAZZHFG.js";
101
111
  import "./chunk-6EJMN2Y3.js";
102
112
  import "./chunk-WEPFGWHJ.js";
103
- import "./chunk-TZTZS7QK.js";
104
- import "./chunk-OQ33BKR3.js";
113
+ import "./chunk-HXG4IURW.js";
114
+ import "./chunk-ZGVHUX3M.js";
115
+ import "./chunk-TTNYS3EA.js";
105
116
  import "./chunk-JVCV3ICN.js";
106
117
  import "./chunk-7CR24IG7.js";
107
118
  import "./chunk-IWHMRKLL.js";
@@ -424,4 +435,4 @@ export {
424
435
  resolveDocumenterModelId,
425
436
  runWikiDispatch
426
437
  };
427
- //# sourceMappingURL=wiki-generate-UEXP2ARI.js.map
438
+ //# sourceMappingURL=wiki-generate-7STOCIFZ.js.map
@@ -17,13 +17,13 @@ import {
17
17
  resolveDeliveryTools,
18
18
  sanitizeLockedSynthesisMessage,
19
19
  workerLoopBlockBudget
20
- } from "../chunk-LW6DSM3M.js";
21
- import "../chunk-J7CWMCQD.js";
20
+ } from "../chunk-VMNQ6OZA.js";
21
+ import "../chunk-K7VKOLQQ.js";
22
22
  import {
23
23
  createMiddlewareContractFromSnapshot,
24
24
  createMiddlewareToolChoiceControl,
25
25
  shouldRequestStalledTurnContinuation
26
- } from "../chunk-2DJ2KNFG.js";
26
+ } from "../chunk-2LZI5CAG.js";
27
27
  import {
28
28
  CONFIRMED_SCOPE,
29
29
  READONLY_SCOPE,
@@ -34,8 +34,8 @@ import {
34
34
  createLoopState,
35
35
  observe
36
36
  } from "../chunk-UOV2BYIW.js";
37
- import "../chunk-DUYJ5IO6.js";
38
- import "../chunk-OAO4GE4M.js";
37
+ import "../chunk-EDRHSCIE.js";
38
+ import "../chunk-2TZWSW76.js";
39
39
  import {
40
40
  DEFAULT_ESCALATION_FALLBACK,
41
41
  DEFAULT_ESCALATION_TIMEOUT_MS,
@@ -50,7 +50,8 @@ import {
50
50
  startAntigravityWorkerRun,
51
51
  startClaudeCodeWorkerRun,
52
52
  validateRehydratedWorkerRuntime
53
- } from "../chunk-LWLEKMDQ.js";
53
+ } from "../chunk-ZYKPLLNQ.js";
54
+ import "../chunk-WPQLXFOZ.js";
54
55
  import {
55
56
  DEFAULT_AUTONOMY_LEVEL,
56
57
  RESULT_CONTRACT_REPAIR_LIMIT,
@@ -58,12 +59,14 @@ import {
58
59
  parseResultContract,
59
60
  resultContractRepairMessages,
60
61
  validateResultContract
61
- } from "../chunk-STBPMHSX.js";
62
- import "../chunk-GGXXDWE4.js";
62
+ } from "../chunk-7RXG6QRZ.js";
63
+ import "../chunk-22NAGB7X.js";
64
+ import {
65
+ classify
66
+ } from "../chunk-AOCYTWAV.js";
63
67
  import {
64
- classify,
65
68
  protectedArtifactMutationBlockReason
66
- } from "../chunk-5UUP6MWO.js";
69
+ } from "../chunk-MV3K5QF2.js";
67
70
  import {
68
71
  UNKNOWN_RESOURCE,
69
72
  WORKER_PROTOCOL_VERSION,
@@ -83,17 +86,20 @@ import {
83
86
  deleteInjectedCompileCacheFrom
84
87
  } from "../chunk-I4HZDVNP.js";
85
88
  import "../chunk-ZI647VB5.js";
86
- import "../chunk-TZK7PACC.js";
87
- import "../chunk-7MNJORFF.js";
89
+ import "../chunk-NILBFAPG.js";
90
+ import "../chunk-FYYLNIL5.js";
91
+ import "../chunk-UL3WSD3F.js";
88
92
  import "../chunk-XN3L4EYL.js";
89
93
  import "../chunk-VG7TBQIY.js";
90
94
  import "../chunk-OQE5J4C6.js";
91
95
  import "../chunk-ECH6PKUQ.js";
92
- import "../chunk-OKGUZO2U.js";
96
+ import "../chunk-SPULKLCF.js";
93
97
  import {
94
98
  agentSkillToolPolicy
95
- } from "../chunk-T6YILFSB.js";
96
- import "../chunk-VAKQQHWR.js";
99
+ } from "../chunk-BEY543CS.js";
100
+ import "../chunk-5M54SPOL.js";
101
+ import "../chunk-OZNBF4L3.js";
102
+ import "../chunk-4BJ5BYCE.js";
97
103
  import "../chunk-6XLNIQDB.js";
98
104
  import "../chunk-5B2AEOW5.js";
99
105
  import {
@@ -112,41 +118,44 @@ import {
112
118
  setGlobalDefaultMaxOutputTokens,
113
119
  setProtectedModelsProvider,
114
120
  setResidencyNoticeSink
115
- } from "../chunk-LZSJBIVT.js";
121
+ } from "../chunk-QWU7ZBO7.js";
122
+ import "../chunk-CFGTUFWB.js";
116
123
  import {
117
124
  readSettings,
118
125
  validateSettingsFile
119
- } from "../chunk-A3CYT5EX.js";
120
- import "../chunk-ZDOOVTXZ.js";
126
+ } from "../chunk-AD2SYQYC.js";
127
+ import "../chunk-4OC57DA6.js";
128
+ import "../chunk-LL4KHSZI.js";
121
129
  import "../chunk-4VP4KH3K.js";
122
- import "../chunk-M6SHUN7Q.js";
123
- import "../chunk-R346GLFC.js";
124
- import "../chunk-VPAYEGVX.js";
125
130
  import {
126
131
  setGitCommitAttributionEnabled,
127
132
  withManagedGitCommitAttributionEnvironment
128
- } from "../chunk-COU2UHX6.js";
133
+ } from "../chunk-VEZEGCGW.js";
129
134
  import "../chunk-FQ4SKYE4.js";
130
135
  import "../chunk-IKCO5N3L.js";
131
136
  import "../chunk-3I7MS7N2.js";
132
137
  import "../chunk-IHXBNWMM.js";
138
+ import "../chunk-BPGS2WCQ.js";
133
139
  import "../chunk-SST6Z5JA.js";
140
+ import "../chunk-FO5ZOVUY.js";
141
+ import "../chunk-R346GLFC.js";
134
142
  import {
135
143
  configureGuardrails,
136
144
  isWorkerToolCallCapExceededReason,
137
145
  isWorkerToolCallCapSynthesisReason
138
146
  } from "../chunk-4ZG3XFUR.js";
139
- import "../chunk-APJ265NV.js";
140
147
  import {
141
148
  registerFauxFromEnv
142
149
  } from "../chunk-FCSXB6T2.js";
150
+ import "../chunk-APJ265NV.js";
143
151
  import "../chunk-YXLYO42X.js";
144
152
  import "../chunk-BNAZZHFG.js";
145
153
  import {
146
154
  AI_AGENT_NAME
147
155
  } from "../chunk-6EJMN2Y3.js";
148
156
  import "../chunk-WEPFGWHJ.js";
149
- import "../chunk-OQ33BKR3.js";
157
+ import "../chunk-ZGVHUX3M.js";
158
+ import "../chunk-TTNYS3EA.js";
150
159
  import {
151
160
  readClioVersion
152
161
  } from "../chunk-IWHMRKLL.js";
package/docs/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  # Clio Coder Documentation
6
6
 
7
- These pages document `v0.3.3` of Clio Coder, an open-source coding orchestrator within the [IOWarp](https://iowarp.ai) scientific computing platform, created by the [Gnosis Research Center](https://grc.iit.edu) at the [Illinois Institute of Technology](https://www.iit.edu).
7
+ These pages document `v0.3.4` of Clio Coder, an open-source coding orchestrator within the [IOWarp](https://iowarp.ai) scientific computing platform, created by the [Gnosis Research Center](https://grc.iit.edu) at the [Illinois Institute of Technology](https://www.iit.edu).
8
8
 
9
9
  They are source-aligned guides: when prose and source disagree, prefer the
10
10
  current source, tests, and `CHANGELOG.md`.
@@ -15,6 +15,7 @@ current source, tests, and `CHANGELOG.md`.
15
15
  | --- | --- |
16
16
  | Commands, slash commands, operating posture, keybindings, dispatch, verification, and troubleshooting | [commands-and-modes.md](commands-and-modes.md) ([Interactive Blueprint](html/commands_blueprint.html)) |
17
17
  | Context window resolution, per-model probe capabilities, token accounting, per-turn snapshots, compaction, and context priming | [context-engine.md](context-engine.md) ([Interactive Blueprint](html/context_blueprint.html)) |
18
+ | Non-destructive working-set eviction, markers, eviction policies, recall by ref, and the `contextEviction` / `contextRecall` records | [context-working-set.md](context-working-set.md) |
18
19
  | Runtime targets, local model configuration, fleet profiles, and auth | [configuration-and-targets.md](configuration-and-targets.md) ([Interactive Blueprint](html/configuration_blueprint.html)) |
19
20
  | Every environment variable the runtime reads: guardrail overrides, directory layout, debug toggles, and internal plumbing | [environment-variables.md](environment-variables.md) ([Interactive Blueprint](html/environment_blueprint.html)) |
20
21
  | Argonne ALCF Sophia/Metis inference targets over Globus OAuth | [alcf-provider.md](alcf-provider.md) ([Interactive Blueprint](html/alcf_blueprint.html)) |
@@ -43,12 +44,12 @@ current source, tests, and `CHANGELOG.md`.
43
44
  | Multi-node fleet dispatch: process-safe admission, attested workers, measured routing, activation, agent automation, topologies, and receipts | [fleet-dispatch.md](fleet-dispatch.md) ([Interactive Blueprint](html/fleet_dispatch_blueprint.html)) |
44
45
  | Multi-process capacity leases, heartbeat TTLs, cross-process locks, and cluster drain controls | [capacity-and-scheduling.md](capacity-and-scheduling.md) ([Interactive Blueprint](html/capacity_scheduling_blueprint.html)) |
45
46
  | Executable multi-node demo with reviewer gate and receipt provenance walkthrough | [fleet-demo-runbook.md](fleet-demo-runbook.md) |
46
- | Session lifecycle, on-disk ledger format v3, `/tree` active-path lineage, `/fork`, `/resume`, checkpoints, and recovery | [session-lifecycle.md](session-lifecycle.md) ([Interactive Blueprint](html/session_lifecycle_blueprint.html)) |
47
+ | Session lifecycle, on-disk ledger format v4, `/tree` active-path lineage, `/fork`, `/resume`, checkpoints, and recovery | [session-lifecycle.md](session-lifecycle.md) ([Interactive Blueprint](html/session_lifecycle_blueprint.html)) |
47
48
  | Agent Client Protocol (ACP) server over stdio, tool mediation, non-stall permissions, and error taxonomy | [acp.md](acp.md) ([Interactive Blueprint](html/acp_blueprint.html)) |
48
49
  | Version registry and migration policies for all 9 serialized artifact schemas | [artifact-versions.md](artifact-versions.md) ([Interactive Blueprint](html/artifact_versions_blueprint.html)) |
49
50
  | Process exit code taxonomy, `--help` standard, machine-readable JSON streaming, and headless output contracts | [exit-codes-and-output.md](exit-codes-and-output.md) ([Interactive Blueprint](html/exit_codes_blueprint.html)) |
50
51
  | Actionable error remediation and diagnostics keyed by exact user-facing messages | [troubleshooting.md](troubleshooting.md) ([Interactive Blueprint](html/troubleshooting_blueprint.html)) |
51
- | Canonical definitions of 40 core architectural concepts mapped to `src/` types | [glossary.md](glossary.md) ([Interactive Blueprint](html/glossary_blueprint.html)) |
52
+ | Canonical definitions of 45 core architectural concepts mapped to `src/` types | [glossary.md](glossary.md) ([Interactive Blueprint](html/glossary_blueprint.html)) |
52
53
  | Complete source-to-documentation mapping matrix and subsystem coverage status | [documentation-coverage.md](documentation-coverage.md) |
53
54
  | Issue-driven development lifecycle: file-ticket through release, label taxonomy, and dogfooding setup | [development-pipeline.md](development-pipeline.md) |
54
55
  | Proactive task memory architecture, session task bank, intervention rules, and handoff carrying | [proactive-memory.md](proactive-memory.md) ([Interactive Blueprint](html/memory_blueprint.html)) |
@@ -82,12 +83,12 @@ under `src/`, run `npm run build` again or keep `npm run dev` running.
82
83
  ## Release Notes
83
84
 
84
85
  The release entry point is [../README.md](../README.md); detailed release
85
- history lives in [../CHANGELOG.md](../CHANGELOG.md). For v0.3.3 the supported
86
+ history lives in [../CHANGELOG.md](../CHANGELOG.md). For v0.3.4 the supported
86
87
  install paths are `npm install -g @iowarp/clio-coder` and a source checkout
87
88
  through `npm run install:local`, the deterministic release gate is
88
89
  `npm run ci:release`, and live model smoke validation is local/manual and
89
- opt-in through `npm run test:live` (add `-- --delegation` for
90
- opencode/copilot checks).
90
+ opt-in through `npm run live:smoke -- --target <id>` (add `--delegation`
91
+ for opencode/copilot checks).
91
92
 
92
93
  ## Writing Documentation
93
94
 
package/docs/acp.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Agent Client Protocol (ACP) Server
2
2
 
3
- This document defines the architecture, transport protocols, tool mediation layers, permission handling, and error taxonomy for Clio Coder's Agent Client Protocol (ACP) server implementation in `v0.3.3`.
3
+ This document defines the architecture, transport protocols, tool mediation layers, permission handling, and error taxonomy for Clio Coder's Agent Client Protocol (ACP) server implementation in `v0.3.4`.
4
4
 
5
5
  Source implementations: `src/engine/acp/` and `src/cli/acp.ts`.
6
6
 
@@ -1,7 +1,7 @@
1
1
  # ALCF Inference Provider
2
2
 
3
3
  > [!TIP]
4
- > **Interactive Spec Available:** An interactive target configurator and Globus OAuth flow diagram is located at [docs/html/alcf_blueprint.html](html/alcf_blueprint.html) (Version: 0.3.3).
4
+ > **Interactive Spec Available:** An interactive target configurator and Globus OAuth flow diagram is located at [docs/html/alcf_blueprint.html](html/alcf_blueprint.html) (Version: 0.3.4).
5
5
 
6
6
  Clio can use Argonne's ALCF inference gateway as an OpenAI-compatible target
7
7
  backed by Globus OAuth. The runtime id is `alcf`; each configured target points
@@ -1,11 +1,11 @@
1
1
  # Clio Coder Architecture and Boundaries
2
2
 
3
3
  > [!TIP]
4
- > **Interactive Spec Available:** An interactive dashboard is located at [docs/html/architecture_blueprint.html](html/architecture_blueprint.html) (Version: 0.3.3).
4
+ > **Interactive Spec Available:** An interactive dashboard is located at [docs/html/architecture_blueprint.html](html/architecture_blueprint.html) (Version: 0.3.4).
5
5
 
6
6
  Clio Coder is an experimental, terminal-first coding harness for the CLIO ecosystem. CLIO stands for Context Layer for Input/Output; the project is named for the Greek muse of history and developed by the Gnosis Research Center at Illinois Tech. Its architecture favors small, auditable subsystems over a single monolithic agent loop: CLI entry points, the interactive TUI, provider/runtime code, worker subprocesses, tools, and feature domains are kept separate so local-model support and scientific-software workflows can evolve without collapsing safety boundaries.
7
7
 
8
- This page is source-code aligned for the current `v0.3.3` development line.
8
+ This page is source-code aligned for the current `v0.3.4` development line.
9
9
 
10
10
  ---
11
11
 
@@ -1,6 +1,6 @@
1
1
  # Artifact Versions & Serialization Contracts
2
2
 
3
- This document is the canonical registry of all versioned file formats, serialized data structures, integrity digests, and migration rules across Clio Coder in `v0.3.3`.
3
+ This document is the canonical registry of all versioned file formats, serialized data structures, integrity digests, and migration rules across Clio Coder in `v0.3.4`.
4
4
 
5
5
  ---
6
6
 
@@ -3,7 +3,7 @@
3
3
  Clio Coder dispatches focused fleet agents from Markdown recipes. Recipes are data files, not hidden code plugins: YAML frontmatter declares identity, mode, tools, optional target/model hints, and thinking level; the Markdown body is the agent instruction text.
4
4
 
5
5
  > [!TIP]
6
- > **Interactive Spec Available:** An interactive dashboard for the agent registry and dispatch admission check gates is located at [docs/html/agents_blueprint.html](html/agents_blueprint.html) (Version: 0.3.3).
6
+ > **Interactive Spec Available:** An interactive dashboard for the agent registry and dispatch admission check gates is located at [docs/html/agents_blueprint.html](html/agents_blueprint.html) (Version: 0.3.4).
7
7
 
8
8
  The source of truth is `src/domains/agents/**`. Clio's agent dispatch engine and execution boundaries are built upon the [@earendil-works/pi-agent-core](https://www.npmjs.com/package/@earendil-works/pi-agent-core) library.
9
9
 
@@ -1,6 +1,6 @@
1
1
  # Capacity Leases & Fleet Scheduling
2
2
 
3
- This document specifies the multi-process capacity leasing protocols, node scheduling models, cross-process transaction locks, and failure recovery mechanics implemented in Clio Coder `v0.3.3`.
3
+ This document specifies the multi-process capacity leasing protocols, node scheduling models, cross-process transaction locks, and failure recovery mechanics implemented in Clio Coder `v0.3.4`.
4
4
 
5
5
  Source implementations: `src/domains/scheduling/` and `src/domains/dispatch/capacity-lease.ts`.
6
6
 
@@ -1,7 +1,7 @@
1
1
  # Commands and Modes
2
2
 
3
3
  > [!TIP]
4
- > **Interactive Spec Available:** An interactive dashboard is located at [docs/html/commands_blueprint.html](html/commands_blueprint.html) (Version: 0.3.3).
4
+ > **Interactive Spec Available:** An interactive dashboard is located at [docs/html/commands_blueprint.html](html/commands_blueprint.html) (Version: 0.3.4).
5
5
 
6
6
 
7
7
  Clio Coder is a terminal-first alpha harness. This page keeps the command
@@ -78,6 +78,8 @@ For process exit codes, stdout deliverable guarantees, and machine-readable JSON
78
78
  | `clio-coder context wiki [--update] [--status] [--depth auto\|simple\|medium\|detailed] [--target <id>] [--model <id>] [--thinking off\|low\|medium\|high]` | Generate, update, or inspect the agent-authored Markdown wiki under `.clio-coder/wiki/`. |
79
79
  | `clio-coder context reset [--all] [--yes]` | Clear accumulated project context artifacts; `--all` also removes `CLIO-CODER.md`. `--yes` (or `-y`) answers every confirmation and is required when stdin is not a terminal. |
80
80
  | `clio-coder context index [--json]` | Build the structural codewiki index without model calls; writes `.clio-coder/codewiki.json` and `.clio-coder/state.json` and prints coverage plus a structural hash. |
81
+ | `clio-coder context replay (--sessions <path>... \| --synthetic <ids>) [--policies <ids>] [--budgets <tokens>] [--threshold <ratio>] [--target <ratio>] [--protect-last-turns <n>] [--min-evictable-tokens <n>] [--seed <n>] [--no-filter] [--json <out>] [--md <out>]` | Replay working-set policies over Clio session ledgers or the seeded procedural corpora and report retention, precision, token savings, recall cost, cold-prefix cost, saturation, and summary headroom. |
82
+ | `clio-coder context working-set --session <id\|path>` | Inspect one session's durable working-set fold and path-index summary without modifying the ledger. |
81
83
 
82
84
  ## Headless Run Flags
83
85
 
@@ -152,7 +154,7 @@ The registry table below lists the available interactive slash commands. On a ba
152
154
  | `/agents` | `/agents` | List Clio agents and ACP delegation agents |
153
155
  | `/targets` | `/targets` | Open Settings → Targets: health, use, connect, probe, remove |
154
156
  | `/cost` | `/cost` | Show session token and cost totals |
155
- | `/context` | `/context compact [instructions] \| /context init \| /context refresh \| /context reset` | Context hub: window overlay plus compact, init, refresh, and reset |
157
+ | `/context` | `/context compact [instructions] \| /context recall <ref> \| /context init \| /context refresh \| /context reset` | Context hub: window overlay plus compact, recall, init, refresh, and reset |
156
158
  | `/fleet` | `/fleet` | Open Settings → Fleet: defaults, profiles, agent bindings, nodes |
157
159
  | `/decisions` | `/decisions` | Show settled interview decisions and operator revisions |
158
160
  | `/tasks` | `/tasks add <text> \| /tasks hand <id> \| /tasks done <id> \| /tasks drop <id>` | Show the session board or manage project operator tasks |
@@ -169,9 +171,13 @@ The registry table below lists the available interactive slash commands. On a ba
169
171
  | `/fork` | `/fork` | Fork from an assistant turn |
170
172
  | `/export` | `/export [path]` | Export a self-contained HTML transcript by default; a `.md` path writes Markdown |
171
173
 
172
- `/context` with no arguments opens the context-window ledger overlay. The
173
- subcommands own the durable project-context noun: `compact` summarizes older
174
- turns in the session window, `init` bootstraps or updates `CLIO-CODER.md` and the
174
+ `/context` with no arguments opens the context-window ledger overlay, including
175
+ the working-set section (policy, evicted items and tokens, events, recalls, churn).
176
+ The subcommands own the durable project-context noun: `compact` summarizes older
177
+ turns in the session window, `recall <ref>` prints an evicted tool-result body
178
+ back into the transcript by the ref its `[evicted ...]` marker names (it never
179
+ enters model context; the model recalls with `context(scope="recall", ref=...)`),
180
+ `init` bootstraps or updates `CLIO-CODER.md` and the
175
181
  codewiki, `refresh` re-indexes the codewiki and refreshes `.clio-coder/state.json`
176
182
  without touching `CLIO-CODER.md`, and `reset` deletes accumulated
177
183
  context artifacts (`.clio-coder/codewiki.json`, `.clio-coder/state.json`,
@@ -459,7 +465,7 @@ to execute through the existing engine worker path, the sanctioned Claude Code w
459
465
  | --- | --- |
460
466
  | `npm run ci` | Local and GitHub PR gate: typecheck, lint, skills pin check, build, the deterministic test suite, and the trace-viewer suite. |
461
467
  | `npm run ci:release` | Maintainer release gate: `npm run ci`, then the `check-release` dist and packaging audit. |
462
- | `npm run test:live` | Local manual live-model smoke. Requires `CLIO_CODER_LIVE_SMOKE=1` and a configured real model target. Add `-- --delegation` for `opencode` and `copilot` ACP delegation checks. |
468
+ | `npm run live:smoke -- --target <id>` | One real headless turn against a configured target. Add `--delegation` for the `opencode` and `copilot` ACP agents. The other operator-run drivers (`live:recon`, `live:fleet-dispatch`, `live:tui`) are listed in `benchmarks/internal/README.md`. |
463
469
  | `npm run typecheck` | Strict TypeScript pass. |
464
470
  | `npm run lint` | Biome checks plus `scripts/check-hygiene.ts`, which runs the boundary invariants, the skills pin check, and the README and docs drift rules. |
465
471
  | `npm run test` | Contract and smoke tests through the sharded runner. |
@@ -467,28 +473,21 @@ to execute through the existing engine worker path, the sanctioned Claude Code w
467
473
  | `npm run dev` | `tsup --watch`. |
468
474
  | `npm run clean` | Remove `dist/`. |
469
475
 
470
- Live smoke example:
476
+ Live drivers pick their model with `--target <id>`, naming one of the targets
477
+ `clio-coder targets` lists; `--model <wireId>` and `--thinking <level>`
478
+ override that target's defaults for the run. The run happens in a scratch Clio
479
+ home holding only that target, so nothing touches the operator's real state:
471
480
 
472
481
  ```bash
473
- CLIO_CODER_LIVE_SMOKE=1 \
474
- CLIO_CODER_LIVE_TARGET=openai-compat \
475
- CLIO_CODER_LIVE_RUNTIME=openai-compat \
476
- CLIO_CODER_LIVE_MODEL=your-model \
477
- CLIO_CODER_LIVE_BASE_URL=http://localhost:8080/v1 \
478
- npm run test:live
479
- ```
480
-
481
- Delegation validation is a separate opt-in flag because it depends on local
482
- `opencode` and `copilot` commands:
483
-
484
- ```bash
485
- CLIO_CODER_LIVE_SMOKE=1 npm run test:live -- --delegation
482
+ npm run build
483
+ npm run live:smoke -- --target local-lmstudio --model qwen3.8-27b
484
+ npm run live:smoke -- --target anthropic --delegation
486
485
  ```
487
486
 
488
487
  Live checks cost tokens or local GPU time and are not deterministic CI. They
489
488
  are useful for OpenAI-compatible local gateways such as llama.cpp, LM Studio
490
489
  with Dynamo-backed workers, vLLM, and SGLang, plus cloud targets when
491
- credentials are available.
490
+ credentials are configured.
492
491
 
493
492
  ## Environment Variables
494
493
 
@@ -519,6 +518,39 @@ structural hash. The same builder is used by `clio-coder context init`, `clio-co
519
518
  refresh`, session freshness checks, tool-demand backfill, and in-session
520
519
  incremental updates.
521
520
 
521
+ ### Working-set replay
522
+
523
+ `clio-coder context replay --sessions <path>...` accepts individual session directories,
524
+ Clio sessions roots, and ledger JSONL files; `--synthetic <ids>` adds one or more procedural
525
+ corpora (`science-long`, `refactor`, `exploration`) generated in memory from a fixed seed, so
526
+ the committed tables can be rebuilt byte for byte on any checkout without private transcripts.
527
+ Clio traces remove prior eviction/recall sidecars and select the active branch. Both sources
528
+ drive the live fold, projection, policy, and eviction planner at deterministic turn
529
+ boundaries. The default inclusion cascade for ledgers requires at least eight turns, eight
530
+ tool results, and one file re-read; `--no-filter` retains every otherwise-readable trace.
531
+ Markdown goes to stdout unless `--md` names a file, while `--json` writes a stable report
532
+ including the configuration, the corpus, git revision when available, and exact command line.
533
+ `--protect-last-turns` and `--min-evictable-tokens` override those two working-set settings
534
+ for the replay only; they never update saved settings. Saturated events is pooled over
535
+ applied eviction events and reports how often a policy exhausted its usable candidates,
536
+ which distinguishes a budget that measures policy choice from one that simply runs out of
537
+ evictable material. Recall tokens is the token-weighted complement of precision: what a
538
+ perfect recall would read back for evicted items the session referenced again. Cold prefix
539
+ tokens is the projected working set after the earliest evicted position of each event, which
540
+ is what an exact-prefix cache re-prefills on the next request. The replay also models the
541
+ summary stage: when the projection is still over the threshold after an eviction, it applies
542
+ the same `findCutPoint(keepRecentTokens)` cut the live path uses, appends a stand-in
543
+ `compactionSummary`, counts it, and treats what the cut removed as lost for retention.
544
+ Summaries (mean) is therefore the number of lossy, token-spending compactions a policy forced
545
+ per trace. The summary-headroom mean always carries its contributing trace count because
546
+ traces that never require summary compaction do not enter that nullable mean.
547
+
548
+ `clio-coder context working-set --session <id|path>` is a read-only inspection command for
549
+ one ledger. It prints evicted refs with reason, superseding ref, and token count; aggregate
550
+ event, recall, and churn facts; path-observation counts by operation; and paths whose earlier
551
+ reads were followed by writes or edits. A persisted `/tree` pin is honored when the session
552
+ metadata is available, so the report does not resurrect an abandoned branch.
553
+
522
554
  The current artifact is schema v5. It records files with path, language, line
523
555
  count, role, content hash, imports, and optional summary; declaration-only
524
556
  symbols with name, kind, file id, line, and optional signature; and import edges
@@ -96,8 +96,7 @@ All default off; all enabled with `1`.
96
96
 
97
97
  | Env var(s) | Used by |
98
98
  |---|---|
99
- | `CLIO_CODER_LIVE_SMOKE`, `CLIO_CODER_LIVE_TARGET`, `CLIO_CODER_LIVE_RUNTIME`, `CLIO_CODER_LIVE_BASE_URL`, `CLIO_CODER_LIVE_MODEL`, `CLIO_CODER_LIVE_API_KEY`, `CLIO_CODER_LIVE_KEEP` | `scripts/live-smoke.mjs` |
100
- | `CLIO_CODER_MAIN_TARGET/_MODEL/_URL/_THINKING`, `CLIO_CODER_WORKER_TARGET/_MODEL/_URL/_THINKING`, `CLIO_CODER_FLEET`, `CLIO_CODER_FLEET_PROFILE`, `CLIO_CODER_PRED_MODEL`, `CLIO_CODER_LLAMACPP_KEY`, `CLIO_CODER_LMSTUDIO_KEY` | benchmark fleet config (`benchmarks/community/`) |
99
+ | `CLIO_CODER_MAIN_TARGET/_MODEL/_URL/_RUNTIME/_THINKING`, `CLIO_CODER_WORKER_TARGET/_MODEL/_URL/_RUNTIME/_THINKING`, `CLIO_CODER_LLAMACPP_KEY`, `CLIO_CODER_LMSTUDIO_KEY` | Terminal-Bench installed agent (`benchmarks/community/terminal-bench/`), which renders its own settings.yaml inside the task container |
101
100
  | `CLIO_CODER_AUTONOMY`, `CLIO_CODER_TASK_TIMEOUT` | terminal-bench agent wrapper (writes settings.yaml / its own timeout; not a Clio knob) |
102
101
  | `CLIO_CODER_BIN`, `CLIO_CODER_ENTRY`, `CLIO_CODER_TARBALL_URL` | install/dev scripts |
103
102
  | `CLIO_CODER_NO_UPDATE_NOTIFIER` | **Dead.** Set by four benchmark harnesses, read by nothing in `src/`. Either an update notifier was removed and the setters were left behind, or the feature was never built. |
@@ -1,7 +1,7 @@
1
1
  # Configuration, Targets, Runtimes, and Auth
2
2
 
3
3
  > [!TIP]
4
- > **Interactive Spec Available:** An interactive configuration validator, target resolver, and CLI command generator is located at [docs/html/configuration_blueprint.html](html/configuration_blueprint.html) (Version: 0.3.3).
4
+ > **Interactive Spec Available:** An interactive configuration validator, target resolver, and CLI command generator is located at [docs/html/configuration_blueprint.html](html/configuration_blueprint.html) (Version: 0.3.4).
5
5
 
6
6
  Clio Coder is target-first: chat and fleet dispatch resolve through configured targets in `settings.yaml`, not through provider-specific ad hoc flags. Chat and print targets are HTTP and native engine-backed runtimes. Fleet dispatch can also target the sanctioned Claude Code subscription runtimes described below.
7
7
 
@@ -224,6 +224,15 @@ compaction:
224
224
  excludeLastTurns: 6
225
225
  # model: provider/summary-model-id
226
226
  # systemPrompt: ~/.config/clio-coder/prompts/compaction.md
227
+
228
+ context:
229
+ workingSet:
230
+ enabled: true
231
+ policy: structural-v1
232
+ target: 0.6
233
+ protectLastTurns: 6
234
+ minEvictableTokens: 200
235
+
227
236
  retry:
228
237
  enabled: true
229
238
  maxRetries: 3
@@ -575,6 +584,11 @@ Every one of these has an environment override for a single process; see [enviro
575
584
  | `compaction.auto` | `true` | boolean | next turn |
576
585
  | `compaction.threshold` | `0.8` | number in 0 to 1 | next turn |
577
586
  | `compaction.excludeLastTurns` | `6` | integer ≥ 1 | next turn |
587
+ | `context.workingSet.enabled` | `true` | boolean | next turn |
588
+ | `context.workingSet.policy` | `structural-v1` | `age-horizon` or `structural-v1` | next turn |
589
+ | `context.workingSet.target` | `0.6` | number greater than 0 and less than 1 | next turn |
590
+ | `context.workingSet.protectLastTurns` | `6` | integer ≥ 1 | next turn |
591
+ | `context.workingSet.minEvictableTokens` | `200` | integer ≥ 0 | next turn |
578
592
  | `defaults.maxTokens` | `32768` | integer ≥ 0 | next turn |
579
593
  | `budget.sessionCeilingUsd` | `5` | number ≥ 0 | immediately |
580
594
  | `budget.concurrency` | `auto` | `auto` or integer ≥ 1 | next dispatch |