@namzu/sdk 54.0.0 → 55.1.0

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 (325) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/dist/agents/QueryAgent.d.ts.map +1 -1
  3. package/dist/agents/QueryAgent.js +1 -0
  4. package/dist/agents/QueryAgent.js.map +1 -1
  5. package/dist/compaction/extractor.d.ts.map +1 -1
  6. package/dist/compaction/extractor.js +5 -1
  7. package/dist/compaction/extractor.js.map +1 -1
  8. package/dist/compaction/managers/structured.d.ts.map +1 -1
  9. package/dist/compaction/managers/structured.js +5 -0
  10. package/dist/compaction/managers/structured.js.map +1 -1
  11. package/dist/compaction/manual.d.ts.map +1 -1
  12. package/dist/compaction/manual.js +6 -0
  13. package/dist/compaction/manual.js.map +1 -1
  14. package/dist/compaction/serializer.d.ts +6 -0
  15. package/dist/compaction/serializer.d.ts.map +1 -1
  16. package/dist/compaction/serializer.js +21 -3
  17. package/dist/compaction/serializer.js.map +1 -1
  18. package/dist/compaction/verifier.d.ts.map +1 -1
  19. package/dist/compaction/verifier.js +27 -6
  20. package/dist/compaction/verifier.js.map +1 -1
  21. package/dist/constants/compaction/index.d.ts +1 -0
  22. package/dist/constants/compaction/index.d.ts.map +1 -1
  23. package/dist/constants/compaction/index.js +1 -0
  24. package/dist/constants/compaction/index.js.map +1 -1
  25. package/dist/{manager/resident/learning-cycle.d.ts → learning/cycle.d.ts} +45 -36
  26. package/dist/learning/cycle.d.ts.map +1 -0
  27. package/dist/{manager/resident/learning-cycle.js → learning/cycle.js} +52 -20
  28. package/dist/learning/cycle.js.map +1 -0
  29. package/dist/learning/deprecated.d.ts +86 -0
  30. package/dist/learning/deprecated.d.ts.map +1 -0
  31. package/dist/learning/deprecated.js +22 -0
  32. package/dist/learning/deprecated.js.map +1 -0
  33. package/dist/learning/experience-store.d.ts +35 -0
  34. package/dist/learning/experience-store.d.ts.map +1 -0
  35. package/dist/learning/experience-store.js +143 -0
  36. package/dist/learning/experience-store.js.map +1 -0
  37. package/dist/learning/experience.d.ts +150 -0
  38. package/dist/learning/experience.d.ts.map +1 -0
  39. package/dist/learning/experience.js +146 -0
  40. package/dist/learning/experience.js.map +1 -0
  41. package/dist/learning/generator.d.ts +118 -0
  42. package/dist/learning/generator.d.ts.map +1 -0
  43. package/dist/learning/generator.js +275 -0
  44. package/dist/learning/generator.js.map +1 -0
  45. package/dist/learning/leak-tripwire.d.ts +66 -0
  46. package/dist/learning/leak-tripwire.d.ts.map +1 -0
  47. package/dist/learning/leak-tripwire.js +208 -0
  48. package/dist/learning/leak-tripwire.js.map +1 -0
  49. package/dist/{manager/resident/learning-observation.d.ts → learning/observation.d.ts} +4 -4
  50. package/dist/learning/observation.d.ts.map +1 -0
  51. package/dist/{manager/resident/learning-observation.js → learning/observation.js} +3 -3
  52. package/dist/learning/observation.js.map +1 -0
  53. package/dist/{manager/resident/learning.d.ts → learning/skill.d.ts} +29 -29
  54. package/dist/learning/skill.d.ts.map +1 -0
  55. package/dist/{manager/resident/learning.js → learning/skill.js} +27 -27
  56. package/dist/learning/skill.js.map +1 -0
  57. package/dist/{manager/resident/learning-store.d.ts → learning/store.d.ts} +38 -31
  58. package/dist/learning/store.d.ts.map +1 -0
  59. package/dist/{manager/resident/learning-store.js → learning/store.js} +52 -20
  60. package/dist/learning/store.js.map +1 -0
  61. package/dist/manager/resident/activity.d.ts +30 -6
  62. package/dist/manager/resident/activity.d.ts.map +1 -1
  63. package/dist/manager/resident/activity.js.map +1 -1
  64. package/dist/manager/resident/agenda.d.ts +42 -12
  65. package/dist/manager/resident/agenda.d.ts.map +1 -1
  66. package/dist/manager/resident/agenda.js +9 -7
  67. package/dist/manager/resident/agenda.js.map +1 -1
  68. package/dist/manager/resident/consumption.d.ts +27 -5
  69. package/dist/manager/resident/consumption.d.ts.map +1 -1
  70. package/dist/manager/resident/consumption.js +2 -0
  71. package/dist/manager/resident/consumption.js.map +1 -1
  72. package/dist/manager/resident/delivery-window.d.ts +7 -1
  73. package/dist/manager/resident/delivery-window.d.ts.map +1 -1
  74. package/dist/manager/resident/delivery-window.js +2 -0
  75. package/dist/manager/resident/delivery-window.js.map +1 -1
  76. package/dist/manager/resident/evidence-recall.d.ts +7 -1
  77. package/dist/manager/resident/evidence-recall.d.ts.map +1 -1
  78. package/dist/manager/resident/evidence-recall.js +2 -0
  79. package/dist/manager/resident/evidence-recall.js.map +1 -1
  80. package/dist/manager/resident/history.d.ts +45 -9
  81. package/dist/manager/resident/history.d.ts.map +1 -1
  82. package/dist/manager/resident/history.js.map +1 -1
  83. package/dist/manager/resident/host.d.ts +44 -10
  84. package/dist/manager/resident/host.d.ts.map +1 -1
  85. package/dist/manager/resident/host.js +4 -2
  86. package/dist/manager/resident/host.js.map +1 -1
  87. package/dist/manager/resident/initiative.d.ts +32 -6
  88. package/dist/manager/resident/initiative.d.ts.map +1 -1
  89. package/dist/manager/resident/initiative.js +2 -0
  90. package/dist/manager/resident/initiative.js.map +1 -1
  91. package/dist/manager/resident/loop.d.ts +22 -4
  92. package/dist/manager/resident/loop.d.ts.map +1 -1
  93. package/dist/manager/resident/loop.js +7 -1
  94. package/dist/manager/resident/loop.js.map +1 -1
  95. package/dist/manager/resident/outbox.d.ts +42 -8
  96. package/dist/manager/resident/outbox.d.ts.map +1 -1
  97. package/dist/manager/resident/outbox.js +2 -0
  98. package/dist/manager/resident/outbox.js.map +1 -1
  99. package/dist/manager/resident/proposal.d.ts +19 -5
  100. package/dist/manager/resident/proposal.d.ts.map +1 -1
  101. package/dist/manager/resident/proposal.js +2 -0
  102. package/dist/manager/resident/proposal.js.map +1 -1
  103. package/dist/manager/resident/store.d.ts +31 -9
  104. package/dist/manager/resident/store.d.ts.map +1 -1
  105. package/dist/manager/resident/store.js +7 -1
  106. package/dist/manager/resident/store.js.map +1 -1
  107. package/dist/manager/resident/tool-evidence.d.ts +45 -9
  108. package/dist/manager/resident/tool-evidence.d.ts.map +1 -1
  109. package/dist/manager/resident/tool-evidence.js +5 -1
  110. package/dist/manager/resident/tool-evidence.js.map +1 -1
  111. package/dist/prompt/coding-agent-doctrine.d.ts +3 -3
  112. package/dist/prompt/coding-agent-doctrine.d.ts.map +1 -1
  113. package/dist/prompt/coding-agent-doctrine.js +18 -20
  114. package/dist/prompt/coding-agent-doctrine.js.map +1 -1
  115. package/dist/prompt/resident-learning.d.ts +12 -2
  116. package/dist/prompt/resident-learning.d.ts.map +1 -1
  117. package/dist/prompt/resident-learning.js +6 -5
  118. package/dist/prompt/resident-learning.js.map +1 -1
  119. package/dist/prompt/resident-step.d.ts +10 -4
  120. package/dist/prompt/resident-step.d.ts.map +1 -1
  121. package/dist/prompt/resident-step.js +6 -4
  122. package/dist/prompt/resident-step.js.map +1 -1
  123. package/dist/public-runtime.d.ts +10 -4
  124. package/dist/public-runtime.d.ts.map +1 -1
  125. package/dist/public-runtime.js +11 -4
  126. package/dist/public-runtime.js.map +1 -1
  127. package/dist/public-types.d.ts +9 -4
  128. package/dist/public-types.d.ts.map +1 -1
  129. package/dist/runtime/query/checkpoint.d.ts +12 -2
  130. package/dist/runtime/query/checkpoint.d.ts.map +1 -1
  131. package/dist/runtime/query/checkpoint.js +42 -8
  132. package/dist/runtime/query/checkpoint.js.map +1 -1
  133. package/dist/runtime/query/executor.d.ts +39 -1
  134. package/dist/runtime/query/executor.d.ts.map +1 -1
  135. package/dist/runtime/query/executor.js +115 -7
  136. package/dist/runtime/query/executor.js.map +1 -1
  137. package/dist/runtime/query/index.d.ts +18 -0
  138. package/dist/runtime/query/index.d.ts.map +1 -1
  139. package/dist/runtime/query/index.js +20 -1
  140. package/dist/runtime/query/index.js.map +1 -1
  141. package/dist/runtime/query/iteration/index.d.ts.map +1 -1
  142. package/dist/runtime/query/iteration/index.js +17 -8
  143. package/dist/runtime/query/iteration/index.js.map +1 -1
  144. package/dist/runtime/query/iteration/phases/context.d.ts +24 -2
  145. package/dist/runtime/query/iteration/phases/context.d.ts.map +1 -1
  146. package/dist/runtime/query/iteration/phases/context.js +22 -22
  147. package/dist/runtime/query/iteration/phases/context.js.map +1 -1
  148. package/dist/runtime/query/iteration/phases/per-call-review.d.ts +87 -0
  149. package/dist/runtime/query/iteration/phases/per-call-review.d.ts.map +1 -0
  150. package/dist/runtime/query/iteration/phases/per-call-review.js +513 -0
  151. package/dist/runtime/query/iteration/phases/per-call-review.js.map +1 -0
  152. package/dist/runtime/query/iteration/phases/tool-review.d.ts.map +1 -1
  153. package/dist/runtime/query/iteration/phases/tool-review.js +129 -62
  154. package/dist/runtime/query/iteration/phases/tool-review.js.map +1 -1
  155. package/dist/runtime/query/iteration/step-context.d.ts +14 -0
  156. package/dist/runtime/query/iteration/step-context.d.ts.map +1 -1
  157. package/dist/runtime/query/iteration/step-context.js +29 -0
  158. package/dist/runtime/query/iteration/step-context.js.map +1 -1
  159. package/dist/runtime/query/iteration/step-shaping.d.ts.map +1 -1
  160. package/dist/runtime/query/iteration/step-shaping.js +6 -2
  161. package/dist/runtime/query/iteration/step-shaping.js.map +1 -1
  162. package/dist/runtime/query/prepare-turn.d.ts.map +1 -1
  163. package/dist/runtime/query/prepare-turn.js +16 -3
  164. package/dist/runtime/query/prepare-turn.js.map +1 -1
  165. package/dist/runtime/query/project-instructions.d.ts +24 -5
  166. package/dist/runtime/query/project-instructions.d.ts.map +1 -1
  167. package/dist/runtime/query/project-instructions.js +107 -35
  168. package/dist/runtime/query/project-instructions.js.map +1 -1
  169. package/dist/runtime/query/prompt.d.ts +6 -0
  170. package/dist/runtime/query/prompt.d.ts.map +1 -1
  171. package/dist/runtime/query/prompt.js +10 -49
  172. package/dist/runtime/query/prompt.js.map +1 -1
  173. package/dist/runtime/query/resume-pending.d.ts +8 -0
  174. package/dist/runtime/query/resume-pending.d.ts.map +1 -1
  175. package/dist/runtime/query/resume-pending.js +101 -0
  176. package/dist/runtime/query/resume-pending.js.map +1 -1
  177. package/dist/runtime/query/review-policy.d.ts +18 -0
  178. package/dist/runtime/query/review-policy.d.ts.map +1 -1
  179. package/dist/runtime/query/review-policy.js +10 -0
  180. package/dist/runtime/query/review-policy.js.map +1 -1
  181. package/dist/runtime/query/steering.d.ts +55 -56
  182. package/dist/runtime/query/steering.d.ts.map +1 -1
  183. package/dist/runtime/query/steering.js +78 -72
  184. package/dist/runtime/query/steering.js.map +1 -1
  185. package/dist/tools/builtins/bash.d.ts +8 -0
  186. package/dist/tools/builtins/bash.d.ts.map +1 -1
  187. package/dist/tools/builtins/bash.js +13 -18
  188. package/dist/tools/builtins/bash.js.map +1 -1
  189. package/dist/tools/builtins/browser.d.ts.map +1 -1
  190. package/dist/tools/builtins/browser.js +38 -12
  191. package/dist/tools/builtins/browser.js.map +1 -1
  192. package/dist/tools/builtins/edit.js +4 -4
  193. package/dist/tools/builtins/edit.js.map +1 -1
  194. package/dist/tools/builtins/job.js +1 -1
  195. package/dist/tools/builtins/job.js.map +1 -1
  196. package/dist/tools/builtins/skill.js +1 -1
  197. package/dist/tools/builtins/skill.js.map +1 -1
  198. package/dist/tools/builtins/structuredOutput.js +1 -1
  199. package/dist/tools/builtins/structuredOutput.js.map +1 -1
  200. package/dist/tools/builtins/verify-outputs.js +1 -1
  201. package/dist/tools/builtins/verify-outputs.js.map +1 -1
  202. package/dist/tools/builtins/write-file.js +4 -4
  203. package/dist/tools/builtins/write-file.js.map +1 -1
  204. package/dist/tools/coordinator/ask-user-question.d.ts +6 -0
  205. package/dist/tools/coordinator/ask-user-question.d.ts.map +1 -1
  206. package/dist/tools/coordinator/ask-user-question.js +6 -1
  207. package/dist/tools/coordinator/ask-user-question.js.map +1 -1
  208. package/dist/tools/coordinator/index.d.ts.map +1 -1
  209. package/dist/tools/coordinator/index.js +10 -3
  210. package/dist/tools/coordinator/index.js.map +1 -1
  211. package/dist/tools/resident-history.d.ts +2 -0
  212. package/dist/tools/resident-history.d.ts.map +1 -1
  213. package/dist/tools/resident-history.js +2 -0
  214. package/dist/tools/resident-history.js.map +1 -1
  215. package/dist/tools/resident-tool-evidence.d.ts +5 -1
  216. package/dist/tools/resident-tool-evidence.d.ts.map +1 -1
  217. package/dist/tools/resident-tool-evidence.js +5 -1
  218. package/dist/tools/resident-tool-evidence.js.map +1 -1
  219. package/dist/tools/schedules/loop-tool.d.ts.map +1 -1
  220. package/dist/tools/schedules/loop-tool.js +4 -2
  221. package/dist/tools/schedules/loop-tool.js.map +1 -1
  222. package/dist/tools/schedules/schedule-tool.js +2 -2
  223. package/dist/tools/schedules/schedule-tool.js.map +1 -1
  224. package/dist/tools/task/create.js +1 -1
  225. package/dist/tools/task/create.js.map +1 -1
  226. package/dist/tools/untrusted-envelope.js +1 -1
  227. package/dist/tools/untrusted-envelope.js.map +1 -1
  228. package/dist/turn/evidence-query.d.ts.map +1 -1
  229. package/dist/turn/evidence-query.js +16 -1
  230. package/dist/turn/evidence-query.js.map +1 -1
  231. package/dist/turn/evidence-recall.js +1 -1
  232. package/dist/turn/evidence-recall.js.map +1 -1
  233. package/dist/types/agent/base.d.ts +7 -0
  234. package/dist/types/agent/base.d.ts.map +1 -1
  235. package/dist/types/hitl/index.d.ts +66 -0
  236. package/dist/types/hitl/index.d.ts.map +1 -1
  237. package/dist/types/hitl/index.js.map +1 -1
  238. package/dist/types/message/index.d.ts +8 -0
  239. package/dist/types/message/index.d.ts.map +1 -1
  240. package/dist/types/message/index.js +12 -2
  241. package/dist/types/message/index.js.map +1 -1
  242. package/dist/types/message/notice-frame.d.ts +41 -0
  243. package/dist/types/message/notice-frame.d.ts.map +1 -0
  244. package/dist/types/message/notice-frame.js +65 -0
  245. package/dist/types/message/notice-frame.js.map +1 -0
  246. package/package.json +1 -1
  247. package/src/agents/QueryAgent.ts +1 -0
  248. package/src/compaction/extractor.ts +8 -1
  249. package/src/compaction/managers/structured.ts +3 -0
  250. package/src/compaction/manual.ts +5 -0
  251. package/src/compaction/serializer.ts +28 -3
  252. package/src/compaction/verifier.ts +32 -6
  253. package/src/constants/compaction/index.ts +1 -0
  254. package/src/{manager/resident/learning-cycle.ts → learning/cycle.ts} +130 -78
  255. package/src/learning/deprecated.ts +124 -0
  256. package/src/learning/experience-store.ts +202 -0
  257. package/src/learning/experience.ts +238 -0
  258. package/src/learning/generator.ts +388 -0
  259. package/src/learning/leak-tripwire.ts +280 -0
  260. package/src/{manager/resident/learning-observation.ts → learning/observation.ts} +5 -5
  261. package/src/{manager/resident/learning.ts → learning/skill.ts} +64 -67
  262. package/src/{manager/resident/learning-store.ts → learning/store.ts} +97 -67
  263. package/src/manager/resident/activity.ts +30 -6
  264. package/src/manager/resident/agenda.ts +63 -33
  265. package/src/manager/resident/consumption.ts +27 -5
  266. package/src/manager/resident/delivery-window.ts +7 -1
  267. package/src/manager/resident/evidence-recall.ts +7 -1
  268. package/src/manager/resident/history.ts +45 -9
  269. package/src/manager/resident/host.ts +45 -11
  270. package/src/manager/resident/initiative.ts +32 -6
  271. package/src/manager/resident/loop.ts +22 -4
  272. package/src/manager/resident/outbox.ts +42 -8
  273. package/src/manager/resident/proposal.ts +17 -3
  274. package/src/manager/resident/store.ts +27 -5
  275. package/src/manager/resident/tool-evidence.ts +45 -9
  276. package/src/prompt/coding-agent-doctrine.ts +18 -20
  277. package/src/prompt/resident-learning.ts +16 -7
  278. package/src/prompt/resident-step.ts +19 -13
  279. package/src/public-runtime.ts +36 -5
  280. package/src/public-types.ts +96 -34
  281. package/src/runtime/query/checkpoint.ts +49 -8
  282. package/src/runtime/query/executor.ts +165 -15
  283. package/src/runtime/query/index.ts +45 -1
  284. package/src/runtime/query/iteration/index.ts +19 -6
  285. package/src/runtime/query/iteration/phases/context.ts +37 -11
  286. package/src/runtime/query/iteration/phases/per-call-review.ts +617 -0
  287. package/src/runtime/query/iteration/phases/tool-review.ts +168 -83
  288. package/src/runtime/query/iteration/step-context.ts +29 -0
  289. package/src/runtime/query/iteration/step-shaping.ts +6 -2
  290. package/src/runtime/query/prepare-turn.ts +18 -1
  291. package/src/runtime/query/project-instructions.ts +119 -38
  292. package/src/runtime/query/prompt.ts +11 -54
  293. package/src/runtime/query/resume-pending.ts +131 -0
  294. package/src/runtime/query/review-policy.ts +28 -0
  295. package/src/runtime/query/steering.ts +100 -96
  296. package/src/tools/builtins/bash.ts +13 -19
  297. package/src/tools/builtins/browser.ts +38 -12
  298. package/src/tools/builtins/edit.ts +4 -4
  299. package/src/tools/builtins/job.ts +1 -1
  300. package/src/tools/builtins/skill.ts +1 -1
  301. package/src/tools/builtins/structuredOutput.ts +1 -1
  302. package/src/tools/builtins/verify-outputs.ts +1 -1
  303. package/src/tools/builtins/write-file.ts +4 -4
  304. package/src/tools/coordinator/ask-user-question.ts +12 -1
  305. package/src/tools/coordinator/index.ts +10 -3
  306. package/src/tools/resident-history.ts +2 -0
  307. package/src/tools/resident-tool-evidence.ts +5 -1
  308. package/src/tools/schedules/loop-tool.ts +4 -2
  309. package/src/tools/schedules/schedule-tool.ts +2 -2
  310. package/src/tools/task/create.ts +1 -1
  311. package/src/tools/untrusted-envelope.ts +1 -1
  312. package/src/turn/evidence-query.ts +19 -1
  313. package/src/turn/evidence-recall.ts +1 -1
  314. package/src/types/agent/base.ts +8 -0
  315. package/src/types/hitl/index.ts +67 -0
  316. package/src/types/message/index.ts +20 -2
  317. package/src/types/message/notice-frame.ts +88 -0
  318. package/dist/manager/resident/learning-cycle.d.ts.map +0 -1
  319. package/dist/manager/resident/learning-cycle.js.map +0 -1
  320. package/dist/manager/resident/learning-observation.d.ts.map +0 -1
  321. package/dist/manager/resident/learning-observation.js.map +0 -1
  322. package/dist/manager/resident/learning-store.d.ts.map +0 -1
  323. package/dist/manager/resident/learning-store.js.map +0 -1
  324. package/dist/manager/resident/learning.d.ts.map +0 -1
  325. package/dist/manager/resident/learning.js.map +0 -1
@@ -12,16 +12,16 @@ export declare const residentProposalSchema: z.ZodObject<{
12
12
  id: string;
13
13
  parentId: string;
14
14
  reason: string;
15
- domain: string;
16
15
  objective: string;
16
+ domain: string;
17
17
  evidenceKey: string;
18
18
  parentRevision: number;
19
19
  }, {
20
20
  id: string;
21
21
  parentId: string;
22
22
  reason: string;
23
- domain: string;
24
23
  objective: string;
24
+ domain: string;
25
25
  evidenceKey: string;
26
26
  parentRevision: number;
27
27
  }>;
@@ -38,7 +38,11 @@ export declare const residentProposalLimitsSchema: z.ZodObject<{
38
38
  domains: string[];
39
39
  maxChildrenPerParent: number;
40
40
  }>;
41
- /** @experimental An inert subgoal proposal; creating it grants no execution authority. */
41
+ /**
42
+ * @experimental An inert subgoal proposal; creating it grants no execution authority.
43
+ *
44
+ * @deprecated Residents are deprecated and removed in the next major release. Learning (`runLearningCycle` and the other `Learning*` names) keeps working, but `runLearningCycle` still takes a resident agenda until learning gets its own activation target in the next major release; for long-running work use scheduled tasks (`LocalTaskScheduler`), session goals and background agents.
45
+ */
42
46
  export interface ResidentProposal {
43
47
  readonly id: string;
44
48
  readonly parentId: string;
@@ -48,7 +52,11 @@ export interface ResidentProposal {
48
52
  readonly reason: string;
49
53
  readonly evidenceKey: string;
50
54
  }
51
- /** @experimental Host-approved routing domains and finite subgoal admission bounds. */
55
+ /**
56
+ * @experimental Host-approved routing domains and finite subgoal admission bounds.
57
+ *
58
+ * @deprecated Residents are deprecated and removed in the next major release. Learning (`runLearningCycle` and the other `Learning*` names) keeps working, but `runLearningCycle` still takes a resident agenda until learning gets its own activation target in the next major release; for long-running work use scheduled tasks (`LocalTaskScheduler`), session goals and background agents.
59
+ */
52
60
  export interface ResidentProposalLimits {
53
61
  readonly domains: readonly string[];
54
62
  readonly maxChildrenPerParent: number;
@@ -80,12 +88,18 @@ export declare const residentProposalOriginSchema: z.ZodObject<{
80
88
  parentRevision: number;
81
89
  proposalId: string;
82
90
  }>;
83
- /** @experimental Host-admitted ancestry and evidence for a resident subgoal. */
91
+ /**
92
+ * @experimental Host-admitted ancestry and evidence for a resident subgoal.
93
+ *
94
+ * @deprecated Residents are deprecated and removed in the next major release. Learning (`runLearningCycle` and the other `Learning*` names) keeps working, but `runLearningCycle` still takes a resident agenda until learning gets its own activation target in the next major release; for long-running work use scheduled tasks (`LocalTaskScheduler`), session goals and background agents.
95
+ */
84
96
  export type ResidentProposalOrigin = Readonly<z.infer<typeof residentProposalOriginSchema>>;
85
97
  /**
86
98
  * @experimental Pure validation against one agenda snapshot. The host must
87
99
  * atomically bind this snapshot to admission. Domains are routing metadata;
88
100
  * this does not prove an objective fits its domain or authorize any tools.
101
+ *
102
+ * @deprecated Residents are deprecated and removed in the next major release. Learning (`runLearningCycle` and the other `Learning*` names) keeps working, but `runLearningCycle` still takes a resident agenda until learning gets its own activation target in the next major release; for long-running work use scheduled tasks (`LocalTaskScheduler`), session goals and background agents.
89
103
  */
90
104
  export declare function validateResidentProposal(agenda: ResidentAgendaState, input: ResidentProposal, limits: ResidentProposalLimits): ResidentProposalOrigin;
91
105
  //# sourceMappingURL=proposal.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"proposal.d.ts","sourceRoot":"","sources":["../../../src/manager/resident/proposal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAYtD,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;EAQjC,CAAA;AAEF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;EAIvC,CAAA;AAEF,0FAA0F;AAC1F,MAAM,WAAW,gBAAgB;IAChC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAA;IAC/B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;CAC5B;AAED,uFAAuF;AACvF,MAAM,WAAW,sBAAsB;IACtC,QAAQ,CAAC,OAAO,EAA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,CAAC,oBAAoB,EAAE,MAAM,CAAA;IACrC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;CACzB;AAED,uEAAuE;AACvE,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;EAQvC,CAAA;AAEF;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC,CAAA;AAE3F;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CACvC,MAAM,EAAE,mBAAmB,EAC3B,KAAK,EAAE,gBAAgB,EACvB,MAAM,EAAE,sBAAsB,GAC5B,sBAAsB,CAkCxB"}
@@ -36,6 +36,8 @@ export const residentProposalOriginSchema = z.object({
36
36
  * @experimental Pure validation against one agenda snapshot. The host must
37
37
  * atomically bind this snapshot to admission. Domains are routing metadata;
38
38
  * this does not prove an objective fits its domain or authorize any tools.
39
+ *
40
+ * @deprecated Residents are deprecated and removed in the next major release. Learning (`runLearningCycle` and the other `Learning*` names) keeps working, but `runLearningCycle` still takes a resident agenda until learning gets its own activation target in the next major release; for long-running work use scheduled tasks (`LocalTaskScheduler`), session goals and background agents.
39
41
  */
40
42
  export function validateResidentProposal(agenda, input, limits) {
41
43
  const proposal = residentProposalSchema.parse(input);
@@ -1 +1 @@
1
- {"version":3,"file":"proposal.js","sourceRoot":"","sources":["../../../src/manager/resident/proposal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAA;AACpC,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAA;AACnD,MAAM,MAAM,GAAG,CAAC;KACd,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,CAAC;KACN,GAAG,CAAC,GAAG,CA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scriminatedUnion<"kind", [z.
31
31
  summary: string;
32
32
  kind: "blocked";
33
33
  }>]>;
34
- /** @experimental One bounded step's durable disposition; silence is not completion. */
34
+ /**
35
+ * @experimental One bounded step's durable disposition; silence is not completion.
36
+ *
37
+ * @deprecated Residents are deprecated and removed in the next major release. Learning (`runLearningCycle` and the other `Learning*` names) keeps working, but `runLearningCycle` still takes a resident agenda until learning gets its own activation target in the next major release; for long-running work use scheduled tasks (`LocalTaskScheduler`), session goals and background agents.
38
+ */
35
39
  export type ResidentDecision = z.infer<typeof residentDecisionSchema>;
36
40
  export declare const residentStateSchema: z.ZodEffects<z.ZodObject<{
37
41
  tenantId: z.ZodString;
@@ -68,9 +72,9 @@ export declare const residentStateSchema: z.ZodEffects<z.ZodObject<{
68
72
  phase: "complete" | "running" | "blocked" | "waiting";
69
73
  reason: string;
70
74
  tenantId: string;
75
+ objective: string;
71
76
  identity: string;
72
77
  revision: number;
73
- objective: string;
74
78
  wakeAt: number | null;
75
79
  agentKey: string;
76
80
  stepsAdmitted: number;
@@ -85,9 +89,9 @@ export declare const residentStateSchema: z.ZodEffects<z.ZodObject<{
85
89
  phase: "complete" | "running" | "blocked" | "waiting";
86
90
  reason: string;
87
91
  tenantId: string;
92
+ objective: string;
88
93
  identity: string;
89
94
  revision: number;
90
- objective: string;
91
95
  wakeAt: number | null;
92
96
  agentKey: string;
93
97
  stepsAdmitted: number;
@@ -102,9 +106,9 @@ export declare const residentStateSchema: z.ZodEffects<z.ZodObject<{
102
106
  phase: "complete" | "running" | "blocked" | "waiting";
103
107
  reason: string;
104
108
  tenantId: string;
109
+ objective: string;
105
110
  identity: string;
106
111
  revision: number;
107
- objective: string;
108
112
  wakeAt: number | null;
109
113
  agentKey: string;
110
114
  stepsAdmitted: number;
@@ -119,9 +123,9 @@ export declare const residentStateSchema: z.ZodEffects<z.ZodObject<{
119
123
  phase: "complete" | "running" | "blocked" | "waiting";
120
124
  reason: string;
121
125
  tenantId: string;
126
+ objective: string;
122
127
  identity: string;
123
128
  revision: number;
124
- objective: string;
125
129
  wakeAt: number | null;
126
130
  agentKey: string;
127
131
  stepsAdmitted: number;
@@ -132,13 +136,25 @@ export declare const residentStateSchema: z.ZodEffects<z.ZodObject<{
132
136
  receivedAt: number;
133
137
  }>[] | undefined;
134
138
  }>;
135
- /** @experimental Persisted identity and one pursuit, independent of a conversation. */
139
+ /**
140
+ * @experimental Persisted identity and one pursuit, independent of a conversation.
141
+ *
142
+ * @deprecated Residents are deprecated and removed in the next major release. Learning (`runLearningCycle` and the other `Learning*` names) keeps working, but `runLearningCycle` still takes a resident agenda until learning gets its own activation target in the next major release; for long-running work use scheduled tasks (`LocalTaskScheduler`), session goals and background agents.
143
+ */
136
144
  export type ResidentState = Readonly<z.infer<typeof residentStateSchema>>;
137
145
  /** Bounded addressing for local resident state. Stored scope is still validated. */
138
146
  export declare function residentKeySegment(key: string): string;
139
- /** @experimental Minimal atomic contract needed to execute an existing pursuit. */
147
+ /**
148
+ * @experimental Minimal atomic contract needed to execute an existing pursuit.
149
+ *
150
+ * @deprecated Residents are deprecated and removed in the next major release. Learning (`runLearningCycle` and the other `Learning*` names) keeps working, but `runLearningCycle` still takes a resident agenda until learning gets its own activation target in the next major release; for long-running work use scheduled tasks (`LocalTaskScheduler`), session goals and background agents.
151
+ */
140
152
  export type ResidentExecutionStore = Pick<ResidentStore, 'read' | 'claim' | 'settle'>;
141
- /** @experimental Backends must atomically compare revisions and publish admission before work. */
153
+ /**
154
+ * @experimental Backends must atomically compare revisions and publish admission before work.
155
+ *
156
+ * @deprecated Residents are deprecated and removed in the next major release. Learning (`runLearningCycle` and the other `Learning*` names) keeps working, but `runLearningCycle` still takes a resident agenda until learning gets its own activation target in the next major release; for long-running work use scheduled tasks (`LocalTaskScheduler`), session goals and background agents.
157
+ */
142
158
  export interface ResidentStore {
143
159
  read(): Promise<ResidentState | null>;
144
160
  create(identity: string, objective: string): Promise<ResidentState>;
@@ -146,7 +162,11 @@ export interface ResidentStore {
146
162
  settle(expected: ResidentState, decision: ResidentDecision, now: number): Promise<ResidentState>;
147
163
  wake(expected: ResidentState, reason: string, now: number): Promise<ResidentState>;
148
164
  }
149
- /** A competing owner advanced this resident's immutable revision. */
165
+ /**
166
+ * A competing owner advanced this resident's immutable revision.
167
+ *
168
+ * @deprecated Residents are deprecated and removed in the next major release. Learning (`runLearningCycle` and the other `Learning*` names) keeps working, but `runLearningCycle` still takes a resident agenda until learning gets its own activation target in the next major release; for long-running work use scheduled tasks (`LocalTaskScheduler`), session goals and background agents.
169
+ */
150
170
  export declare class ResidentConflictError extends Error {
151
171
  constructor();
152
172
  }
@@ -154,6 +174,8 @@ export declare class ResidentConflictError extends Error {
154
174
  * @experimental Local-filesystem state for one tenant/agent key and one pursuit.
155
175
  * A running claim never expires automatically: a crashed step may have effects.
156
176
  * Uses exclusive immutable revision publication, not a read/rename lock.
177
+ *
178
+ * @deprecated Residents are deprecated and removed in the next major release. Learning (`runLearningCycle` and the other `Learning*` names) keeps working, but `runLearningCycle` still takes a resident agenda until learning gets its own activation target in the next major release; for long-running work use scheduled tasks (`LocalTaskScheduler`), session goals and background agents.
157
179
  */
158
180
  export declare class DiskResidentStore implements ResidentStore {
159
181
  private readonly records;
@@ -1 +1 @@
1
- {"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../src/manager/resident/store.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAMvB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAA;AAgBxD,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAIjC,CAAA;AAEF,uFAAuF;AACvF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAErE,eAAO,MAAM,mBAAmB;;;;;;;;;;;IAY9B,+EAA+E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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{
62
62
  ? encoded
63
63
  : `~sha256-${createHash('sha256').update(encoded).digest('hex')}`;
64
64
  }
65
- /** A competing owner advanced this resident's immutable revision. */
65
+ /**
66
+ * A competing owner advanced this resident's immutable revision.
67
+ *
68
+ * @deprecated Residents are deprecated and removed in the next major release. Learning (`runLearningCycle` and the other `Learning*` names) keeps working, but `runLearningCycle` still takes a resident agenda until learning gets its own activation target in the next major release; for long-running work use scheduled tasks (`LocalTaskScheduler`), session goals and background agents.
69
+ */
66
70
  export class ResidentConflictError extends Error {
67
71
  constructor() {
68
72
  super('Resident state changed; read the current state before retrying.');
@@ -73,6 +77,8 @@ export class ResidentConflictError extends Error {
73
77
  * @experimental Local-filesystem state for one tenant/agent key and one pursuit.
74
78
  * A running claim never expires automatically: a crashed step may have effects.
75
79
  * Uses exclusive immutable revision publication, not a read/rename lock.
80
+ *
81
+ * @deprecated Residents are deprecated and removed in the next major release. Learning (`runLearningCycle` and the other `Learning*` names) keeps working, but `runLearningCycle` still takes a resident agenda until learning gets its own activation target in the next major release; for long-running work use scheduled tasks (`LocalTaskScheduler`), session goals and background agents.
76
82
  */
77
83
  export class DiskResidentStore {
78
84
  records = new DiskRevisionRecordStore(defineSchema({ kind: 'resident', current: 2, migrations: { 1: (record) => record } }), 'resident store', (record) => record.revision);
@@ -1 +1 @@
1
- {"version":3,"file":"store.js","sourceRoot":"","sources":["../../../src/manager/resident/store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EACN,uBAAuB,EACvB,mBAAmB,GACnB,MAAM,yCAAyC,CAAA;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEpD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAE9C,MAAM,IAAI,GAA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adResult, SessionEvidenceSearchResult, SessionEvidenceSource } from '../../store/evidence/types.js';
2
2
  import type { ResidentHistoryMatch, ResidentHistoryScope, ResidentHistorySource } from './history.js';
3
- /** @experimental Host authority for one pursuit, project and admission boundary. */
3
+ /**
4
+ * @experimental Host authority for one pursuit, project and admission boundary.
5
+ *
6
+ * @deprecated Residents are deprecated and removed in the next major release. Learning (`runLearningCycle` and the other `Learning*` names) keeps working, but `runLearningCycle` still takes a resident agenda until learning gets its own activation target in the next major release; for long-running work use scheduled tasks (`LocalTaskScheduler`), session goals and background agents.
7
+ */
4
8
  export interface ResidentToolEvidenceScope extends ResidentHistoryScope {
5
9
  readonly projectId: string;
6
10
  }
7
- /** @experimental Identity of an agenda-verified settlement, not a fabricated transcript. */
11
+ /**
12
+ * @experimental Identity of an agenda-verified settlement, not a fabricated transcript.
13
+ *
14
+ * @deprecated Residents are deprecated and removed in the next major release. Learning (`runLearningCycle` and the other `Learning*` names) keeps working, but `runLearningCycle` still takes a resident agenda until learning gets its own activation target in the next major release; for long-running work use scheduled tasks (`LocalTaskScheduler`), session goals and background agents.
15
+ */
8
16
  export type ResidentSettledInvocation = Pick<ResidentHistoryMatch, 'revision' | 'claimId' | 'step' | 'kind'>;
9
- /** @experimental Settlement is checked before the host resolves the attempt's invocation. */
17
+ /**
18
+ * @experimental Settlement is checked before the host resolves the attempt's invocation.
19
+ *
20
+ * @deprecated Residents are deprecated and removed in the next major release. Learning (`runLearningCycle` and the other `Learning*` names) keeps working, but `runLearningCycle` still takes a resident agenda until learning gets its own activation target in the next major release; for long-running work use scheduled tasks (`LocalTaskScheduler`), session goals and background agents.
21
+ */
10
22
  export interface ResidentToolEvidenceOptions {
11
23
  readonly history: ResidentHistorySource;
12
24
  readonly projectId: string;
@@ -22,7 +34,11 @@ export interface ResidentToolEvidenceOptions {
22
34
  */
23
35
  readonly resolveTurn: (settled: ResidentSettledInvocation, signal?: AbortSignal) => Promise<SessionEvidenceSource>;
24
36
  }
25
- /** @experimental An optional shared ceiling covers history, resolution and turn evidence. */
37
+ /**
38
+ * @experimental An optional shared ceiling covers history, resolution and turn evidence.
39
+ *
40
+ * @deprecated Residents are deprecated and removed in the next major release. Learning (`runLearningCycle` and the other `Learning*` names) keeps working, but `runLearningCycle` still takes a resident agenda until learning gets its own activation target in the next major release; for long-running work use scheduled tasks (`LocalTaskScheduler`), session goals and background agents.
41
+ */
26
42
  export interface ResidentToolEvidenceSearchOptions {
27
43
  readonly query?: string;
28
44
  /** Token discovery: 1–16 terms, matched case-insensitively. Combined query/filter JSON ≤512 UTF-8 bytes. */
@@ -37,7 +53,11 @@ export interface ResidentToolEvidenceSearchOptions {
37
53
  readonly refineTerms?: readonly string[];
38
54
  readonly maxReadBytes?: number;
39
55
  }
40
- /** @experimental Tool records from at most one settled invocation per bounded search page. */
56
+ /**
57
+ * @experimental Tool records from at most one settled invocation per bounded search page.
58
+ *
59
+ * @deprecated Residents are deprecated and removed in the next major release. Learning (`runLearningCycle` and the other `Learning*` names) keeps working, but `runLearningCycle` still takes a resident agenda until learning gets its own activation target in the next major release; for long-running work use scheduled tasks (`LocalTaskScheduler`), session goals and background agents.
60
+ */
41
61
  export interface ResidentToolEvidenceSearchResult {
42
62
  readonly scope: ResidentToolEvidenceScope;
43
63
  readonly revision: number | null;
@@ -52,25 +72,41 @@ export interface ResidentToolEvidenceSearchResult {
52
72
  */
53
73
  readonly chargedBytes?: number;
54
74
  }
55
- /** @experimental The revision is authorized anew on every read, including after restart. */
75
+ /**
76
+ * @experimental The revision is authorized anew on every read, including after restart.
77
+ *
78
+ * @deprecated Residents are deprecated and removed in the next major release. Learning (`runLearningCycle` and the other `Learning*` names) keeps working, but `runLearningCycle` still takes a resident agenda until learning gets its own activation target in the next major release; for long-running work use scheduled tasks (`LocalTaskScheduler`), session goals and background agents.
79
+ */
56
80
  export interface ResidentToolEvidenceReadOptions extends Omit<SessionEvidenceReadOptions, 'maxReadBytes'> {
57
81
  readonly revision: number;
58
82
  /** Shared operation ceiling, at most 8 MiB; reserves at least 1 MiB for turn evidence reads. */
59
83
  readonly maxReadBytes?: number;
60
84
  }
61
- /** @experimental Exact invocation text plus the settled claim that authorized access. */
85
+ /**
86
+ * @experimental Exact invocation text plus the settled claim that authorized access.
87
+ *
88
+ * @deprecated Residents are deprecated and removed in the next major release. Learning (`runLearningCycle` and the other `Learning*` names) keeps working, but `runLearningCycle` still takes a resident agenda until learning gets its own activation target in the next major release; for long-running work use scheduled tasks (`LocalTaskScheduler`), session goals and background agents.
89
+ */
62
90
  export interface ResidentToolEvidenceReadResult extends SessionEvidenceReadResult {
63
91
  readonly revision: number;
64
92
  readonly claimId: string;
65
93
  readonly chargedBytes?: number;
66
94
  }
67
- /** @experimental A host must bind tool access to the executing turn, not just this source. */
95
+ /**
96
+ * @experimental A host must bind tool access to the executing turn, not just this source.
97
+ *
98
+ * @deprecated Residents are deprecated and removed in the next major release. Learning (`runLearningCycle` and the other `Learning*` names) keeps working, but `runLearningCycle` still takes a resident agenda until learning gets its own activation target in the next major release; for long-running work use scheduled tasks (`LocalTaskScheduler`), session goals and background agents.
99
+ */
68
100
  export interface ResidentToolEvidenceSource {
69
101
  readonly scope: ResidentToolEvidenceScope;
70
102
  readonly supportsTermRefinement?: boolean;
71
103
  search(options?: ResidentToolEvidenceSearchOptions, signal?: AbortSignal): Promise<ResidentToolEvidenceSearchResult>;
72
104
  read(options: ResidentToolEvidenceReadOptions, signal?: AbortSignal): Promise<ResidentToolEvidenceReadResult>;
73
105
  }
74
- /** @experimental Reuses the immutable agenda boundary; it never enumerates arbitrary sessions. */
106
+ /**
107
+ * @experimental Reuses the immutable agenda boundary; it never enumerates arbitrary sessions.
108
+ *
109
+ * @deprecated Residents are deprecated and removed in the next major release. Learning (`runLearningCycle` and the other `Learning*` names) keeps working, but `runLearningCycle` still takes a resident agenda until learning gets its own activation target in the next major release; for long-running work use scheduled tasks (`LocalTaskScheduler`), session goals and background agents.
110
+ */
75
111
  export declare function createResidentToolEvidenceSource(options: ResidentToolEvidenceOptions): ResidentToolEvidenceSource;
76
112
  //# sourceMappingURL=tool-evidence.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tool-evidence.d.ts","sourceRoot":"","sources":["../../../src/manager/resident/tool-evidence.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACX,0BAA0B,EAC1B,yBAAyB,EACzB,2BAA2B,EAC3B,qBAAqB,EACrB,MAAM,+BAA+B,CAAA;AACtC,OAAO,KAAK,EACX,oBAAoB,EACpB,oBAAoB,EACpB,qBAAqB,EACrB,MAAM,cAAc,CAAA;AAErB,oFAAoF;AACpF,MAAM,WAAW,yBAA0B,SAAQ,oBAAoB;IACtE,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;CAC1B;AACD,4FAA4F;AAC5F,MAAM,MAAM,yBAAyB,GAAG,IAAI,CAC3C,oBAAoB,EACpB,UAAU,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,CACxC,CAAA;AACD,6FAA6F;AAC7F,MAAM,WAAW,2BAA2B;IAC3C,QAAQ,CAAC,OAAO,EAAE,qBAAqB,CAAA;IACvC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B;;;OAGG;IACH,QAAQ,CAAC,mBAAmB,CAAC,EAAE,MAAM,CAAA;IACrC;;;;OAIG;IACH,QAAQ,CAAC,WAAW,EAAE,CACrB,OAAO,EAAE,yBAAyB,EAClC,MAAM,CAAC,EAAE,WAAW,KAChB,OAAO,CAAC,qBAAqB,CAAC,CAAA;CACnC;AACD,6FAA6F;AAC7F,MAAM,WAAW,iCAAiC;IACjD,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACvB,4GAA4G;IAC5G,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IAClC,4EAA4E;IAC5E,QAAQ,CAAC,sBAAsB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IACnD,qEAAqE;IACrE,QAAQ,CAAC,MAAM,CAAC,EAAE,MA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AQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAC9B;AACD;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IAC1C,QAAQ,CAAC,KAAK,EAAE,yBAAyB,CAAA;IACzC,QAAQ,CAAC,sBAAsB,CAAC,EAAE,OAAO,CAAA;IACzC,MAAM,CACL,OAAO,CAAC,EAAE,iCAAiC,EAC3C,MAAM,CAAC,EAAE,WAAW,GAClB,OAAO,CAAC,gCAAgC,CAAC,CAAA;IAC5C,IAAI,CACH,OAAO,EAAE,+BAA+B,EACxC,MAAM,CAAC,EAAE,WAAW,GAClB,OAAO,CAAC,8BAA8B,CAAC,CAAA;CAC1C;AAED;;;;GAIG;AACH,wBAAgB,gCAAgC,CAC/C,OAAO,EAAE,2BAA2B,GAClC,0BAA0B,CAuT5B"}
@@ -1,7 +1,11 @@
1
1
  import { z } from 'zod';
2
2
  import { evidenceSearchInput, evidenceTermRefinement, evidenceTermsSchema, } from '../../store/evidence/search-input.js';
3
3
  import { evidenceExclusionsSchema } from '../../store/evidence/selection.js';
4
- /** @experimental Reuses the immutable agenda boundary; it never enumerates arbitrary sessions. */
4
+ /**
5
+ * @experimental Reuses the immutable agenda boundary; it never enumerates arbitrary sessions.
6
+ *
7
+ * @deprecated Residents are deprecated and removed in the next major release. Learning (`runLearningCycle` and the other `Learning*` names) keeps working, but `runLearningCycle` still takes a resident agenda until learning gets its own activation target in the next major release; for long-running work use scheduled tasks (`LocalTaskScheduler`), session goals and background agents.
8
+ */
5
9
  export function createResidentToolEvidenceSource(options) {
6
10
  const { history, resolveTurn } = options;
7
11
  const resolutionReadBytes = z
@@ -1 +1 @@
1
- {"version":3,"file":"tool-evidence.js","sourceRoot":"","sources":["../../../src/manager/resident/tool-evidence.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EACN,mBAAmB,EACnB,sBAAsB,EACtB,mBAAmB,GACnB,MAAM,sCAAsC,CAAA;AAC7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AAC,IAAI,CAAC,KAAK;gBAAE,MAAM,IAAI,KAAK,CAAC,6CAA6C,CAAC,CAAA;YAC/E,MAAM,EAAE,OAAO,EAAE,CAAA;YACjB,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,CAAA;YACxD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,IAAI,CAC/B;gBACC,OAAO,EAAE,KAAK,CAAC,OAAO;gBACtB,GAAG,CAAC,KAAK,CAAC,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,KAAK,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;gBAC3E,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,MAAM,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;aACrD,EACD,MAAM,CACN,CAAA;YACD,WAAW,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,CAAA;YAClC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,SAAS,CAAC,CAAA;YACrD,OAAO;gBACN,GAAG,MAAM;gBACT,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ;gBAC7B,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO;gBAC3B,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;aACxD,CAAA;QACF,CAAC;KACD,CAAC,CAAA;AACH,CAAC"}
@@ -32,18 +32,18 @@
32
32
  * `systemPrompt`; the contribution below lands after it.
33
33
  */
34
34
  import type { PromptContribution } from './contributions.js';
35
- export declare const CODING_AGENT_WORKING_DOCTRINE = "## How you work\n\n### Delivering work\n- Act when you have enough information. Do not re-derive facts already established, and do not re-open a decision the user has already made.\n- The requested scope is the deliverable. Do not quietly narrow it, widen it, or turn it into something adjacent. Read ambiguity the way a careful colleague would; make the routine judgment calls yourself and check in only when different readings would produce materially different work.\n- Finish the whole task, not just the easy parts. If one part is blocked \u2014 a tool or capability you do not have, an input that is missing \u2014 say so plainly, do not improvise a result for it, finish every other part in full, and say explicitly what you left out and why. Scaling the work down is the user's call.\n- If you find a real problem with the task as stated, say so in a sentence or two, then keep going under a stated assumption. Reserve blocking questions for cases where proceeding under any assumption would be unsafe or would make the work useless if wrong.\n- If the user repeats or reaffirms a request after you raised a concern, that is their decision: say so and do the full request.\n\n### Reporting\n- Report outcomes faithfully. If tests fail, say so and show the output. If you skipped a step, say it was skipped. When something is done and verified, state it plainly without hedging.\n- Preserve exact identifiers when reporting evidence. Do not translate, normalize or correct their spelling.\n- Never present a green run on a subset as a green run. Name what was actually executed.\n- Reference code as `path:line` so the user can jump to it.\n- Correct an earlier statement only when the error would change the user's code, conclusions or decisions; state it once, plainly, and continue. No apologies, no tally of past mistakes.\n\n### Using available evidence\n- Carry the active task and established facts across turns. A question or status request during ongoing work does not cancel that work unless the user says so. Ask for clarification when the intended change is genuinely unspecified; do not ask the user to repeat information already available.\n- Treat a successful tool result together with its exact inputs as evidence of what happened. Content you successfully wrote is available evidence, just like content you read. An announced action, proposed call, failed call, or another agent's unsupported claim is not proof of completion.\n- Match the source to the time the question asks about. For an earlier observation, use that observation or its retained original; a fresh read of a mutable source cannot establish what it contained earlier. For current state or a new action, check freshness as needed. If the historical detail is unavailable, say so instead of substituting today's value.\n- Reuse relevant evidence still available in conversation instead of observing it again by habit. Distinguish the last observed state from a guarantee that external state has not changed. Re-observe when evidence is missing, partial or invalidated, when another actor may have changed the target, or when freshness matters to the next action. If a check or exact-match edit reports a mismatch, inspect the current state and revise the action; do not force the old plan through.\n- When an observation is needed, ask the narrowest question that resolves the uncertainty. For a known file, inspect that file rather than listing the whole working directory. Recover missing observations with read-only tools, not by repeating a state-changing action.\n\n### Reading and editing code\n- Before editing, use the relevant file content already available from a successful read or write; if it is unavailable or may be stale, read the needed portion. Read additional surrounding code when needed to match its naming and idiom. Respect project instructions and tool-specific prerequisites even when they require a fresh read.\n- Prefer the dedicated tools over shell equivalents: `read` over `cat`, the `grep` tool over running `grep` or `rg` through `bash`, `glob` over `find` or `ls -R`, `edit` over `sed -i`. To change an existing file use `edit`; use `write` only to create a file or when the user asked for a whole-file rewrite. Prefer their structured inputs and focused results; use shell commands when the task needs them, within the same configured permissions.\n- Independent tool calls go in one response. Reading three files, or running a grep and a glob, does not need three turns. Only group independent operations. Wait for a mutation to finish before an observation or another action that depends on it; runtime ordering and concurrency limits remain authoritative.\n- Match verification to the task and its risk. For a simple text-file operation, use the successful tool result and known content; do not run unrelated project tests or repeat a read merely to restate that result. For code changes, run the relevant tests, typecheck or lint that would catch a mistake, and follow required project checks. Never claim checks you did not run.\n- Never leave the working tree in a state you have not described. If you created scratch files, say where; if you touched files outside the request, say which.\n\n### Working with git\n- Never push, force-push, reset, rebase, clean, or otherwise discard or rewrite history unless the user explicitly asked for that action. Approval for one push does not extend to the next.\n- Before any command that could discard uncommitted work, run `git status`. If there are changes there that you did not make, stop and ask rather than stashing, committing or discarding somebody else's work.\n- Commit only when the user asks, on the branch that is checked out. Do not create or switch branches unless the user asks or the project's instructions require it.\n- After a broad `git add`, review what was staged before committing; a file whose name looks harmless can still carry a secret.\n- Never change git configuration or other persistent settings without asking: not `user.name` or `user.email`, hooks, remotes, credential helpers, or any `git config` (local or global), nor a shell profile or a tool's own config file. If a commit fails because no identity is set, stop and tell the user the command to set one; do not invent one.\n\n### Keeping the user informed\n- Before a batch of tool calls, say in one short line what you are about to do and why. When you have been working for a while without saying anything, say in a few words where you are, then continue. One line, not a paragraph; the tool rows on screen already show the details.\n- Keep the final reply short and specific: what changed, what was verified, what is left. Do not restate the transcript.";
35
+ export declare const CODING_AGENT_WORKING_DOCTRINE = "## How you work\n\n### Delivering work\n- Act when you have enough information. Take established facts and the user's decisions as settled.\n- The requested scope is the deliverable: deliver it at the size and on the subject it was asked. Read ambiguity the way a careful colleague would; make the routine judgment calls yourself and check in only when different readings would produce materially different work.\n- Finish the whole task, not just the easy parts. If one part is blocked \u2014 a tool or capability you do not have, an input that is missing \u2014 say so plainly instead of improvising a result for it, finish every other part in full, and say explicitly what you left out and why. Scaling the work down is the user's call.\n- If you find a real problem with the task as stated, say so in a sentence or two, then keep going under a stated assumption. Reserve blocking questions for cases where proceeding under any assumption would be unsafe or would make the work useless if wrong.\n- If the user repeats or reaffirms a request after you raised a concern, that is their decision: say so and do the full request.\n\n### Reporting\n- Report outcomes faithfully. If tests fail, say so and show the output. If you skipped a step, say it was skipped. When something is done and verified, state it plainly without hedging.\n- Report identifiers exactly as the evidence spells them, so the user can search for them.\n- Name what was actually executed, so a green run on a subset reads as that subset.\n- Reference code as `path:line` so the user can jump to it.\n- Correct an earlier statement only when the error would change the user's code, conclusions or decisions; state it once, plainly, and continue, and keep apologies and tallies of past mistakes out of it, because they spend the reader's attention on the past.\n\n### Using available evidence\n- Use what you have. Carry the active task and established facts across turns: a question or status request during ongoing work leaves that work in place unless the user says otherwise, and information already in the conversation needs no repeating. A successful tool result together with its exact inputs is evidence of what happened, and so is content you wrote; an announced action, a proposed call, a failed call or another agent's unsupported claim is not. Reuse evidence still in the conversation instead of observing it again by habit, and when you do observe, ask the narrowest question that resolves the uncertainty (a known file, not the whole working directory). Ask for clarification only when the intended change is genuinely unspecified.\n- Re-check what may have changed. Distinguish the last observed state from a guarantee that external state is unchanged, and observe again when evidence is missing, partial or invalidated, when another actor may have changed the target, or when freshness matters to the next action. If a check or exact-match edit reports a mismatch, inspect the current state and revise the action. Recover missing observations with read-only tools, because repeating a state-changing action changes state twice.\n- Say plainly when history is unavailable. Match the source to the time the question asks about: for an earlier observation use that observation or its retained original, since a fresh read of a mutable source cannot show what it held earlier. When the historical detail is gone, say so and leave today's value out of the answer.\n\n### Reading and editing code\n- Before editing, use the relevant file content already available from a successful read or write; if it is unavailable or may be stale, read the needed portion. Read additional surrounding code when needed to match its naming and idiom. Respect project instructions and tool-specific prerequisites even when they require a fresh read.\n- Prefer the dedicated tools over shell equivalents (`read` over `cat`, `grep` over a shell grep, `glob` over `find`, `edit` over `sed -i`, `write` over a shell redirect), because their structured inputs and focused results are easier to check. Use `bash` when the task needs a shell; permissions apply the same way.\n- Independent tool calls go in one response: reading three files, or running a grep and a glob, does not need three turns. Wait for a mutation to finish before an observation or another action that depends on it; runtime ordering and concurrency limits remain authoritative.\n- Match verification to the task and its risk. For a simple text-file operation, the successful tool result and known content are enough, so an unrelated project test or a repeated read adds nothing. For code changes, run the relevant tests, typecheck or lint that would catch a mistake, and follow required project checks. Claim only the checks you ran.\n- Describe the state you leave the working tree in: say where scratch files are, and which files outside the request you touched.\n\n### Working with git\n- Never push, force-push, reset, rebase, clean, or otherwise discard or rewrite history unless the user explicitly asked for that action. Approval for one push does not extend to the next.\n- Before any command that could discard uncommitted work, run `git status`. If there are changes there that you did not make, stop and ask rather than stashing, committing or discarding somebody else's work.\n- Commit only when the user asks, on the branch that is checked out. Create or switch branches only when the user asks or the project's instructions require it, because the checked-out branch is the user's working state.\n- After a broad `git add`, review what was staged before committing; a file whose name looks harmless can still carry a secret.\n- Never change git configuration or other persistent settings without asking: not `user.name` or `user.email`, hooks, remotes, credential helpers, or any `git config` (local or global), nor a shell profile or a tool's own config file. If a commit fails because no identity is set, stop and tell the user the command to set one; do not invent one.\n\n### Keeping the user informed\n- Before a batch of tool calls, say in one short line what you are about to do and why. When you have been working for a while without saying anything, say in a few words where you are, then continue. One line, not a paragraph; the tool rows on screen already show the details.\n- Keep the final reply short and specific: what changed, what was verified, what is left.";
36
36
  /**
37
37
  * Parent-only: rules about `task_create` / `task_update` and `Agent`, which a
38
38
  * delegated sub-agent does not have. See the module comment for the split.
39
39
  */
40
- export declare const CODING_AGENT_DELEGATION_DOCTRINE = "### Planning and delegating\n- For work that is genuinely multi-step \u2014 several files, several distinct stages, anything you would write a checklist for \u2014 open a task list with `task_create` and keep it current with `task_update`, marking each step done when it is done rather than at the end. Do not open one for a single inspect-edit-test cycle; the list is for the user to follow, and a list of one item tells them nothing.\n- When the `Agent` tool is available, delegate genuinely independent work through it and give each delegation a short, specific description; the user watches those descriptions, not the prompts. Give each sub-agent the objective, relevant context and completion criteria; do not assume it sees context the delegation interface did not supply.\n- Delegate lookups \u2014 where something is defined, which files reference it, how a module works \u2014 with `subagent_type: \"explore\"`: it has reading and searching tools only and never interrupts the user for permission. Reserve the default sub-agent for work that changes files or runs commands.";
40
+ export declare const CODING_AGENT_DELEGATION_DOCTRINE = "### Planning and delegating\n- For work that is multi-step \u2014 several files, several distinct stages, anything you would write a checklist for \u2014 open a task list with `task_create` and keep it current with `task_update`, marking each step done when it is done rather than at the end. Skip it for a single inspect-edit-test cycle: the list is for the user to follow, and a list of one item tells them nothing.\n- When the `Agent` tool is available, delegate independent work through it and give each delegation a short, specific description; the user watches those descriptions, not the prompts. Brief each sub-agent with four things: the objective; what is out of bounds; which tools and sources to use; and the shape of the reply you want, such as a short summary with a file path for anything long. It starts with none of your context and returns what you ask for.\n- Delegate lookups \u2014 where something is defined, which files reference it, how a module works \u2014 with `subagent_type: \"explore\"`: it has reading and searching tools only and never interrupts the user for permission. Reserve the default sub-agent for work that changes files or runs commands.";
41
41
  /**
42
42
  * For a session whose permission layer refuses every mutation. Says what that
43
43
  * layer will enforce anyway, so the model plans instead of discovering the
44
44
  * boundary one refused call at a time.
45
45
  */
46
- export declare const PLAN_MODE_DOCTRINE = "## Plan mode\n\nYou are in plan mode. Read, search and think; do not change anything. `read`, `grep`, `glob` and the other read-only tools work as usual, and you may keep a task list. Any `edit`, `write` or shell command that changes state will be refused, so do not attempt one.\n\nWhen you have understood the task, reply with the plan: what you would change, in which files, in what order, and what you would verify. Be concrete \u2014 name files and functions \u2014 and short enough to read in one screen. Then stop and wait; the user will leave plan mode to have the plan carried out, and that switch is their approval.";
46
+ export declare const PLAN_MODE_DOCTRINE = "## Plan mode\n\nYou are in plan mode. Read, search and think, and leave everything as it is. `read`, `grep`, `glob` and the other read-only tools work as usual, and you may keep a task list. Any `edit`, `write` or shell command that changes state will be refused, so plan around them.\n\nWhen you have understood the task, reply with the plan: what you would change, in which files, in what order, and what you would verify. Be concrete \u2014 name files and functions \u2014 and short enough to read in one screen. Then stop and wait; the user will leave plan mode to have the plan carried out, and that switch is their approval.";
47
47
  /**
48
48
  * Appended after {@link CODING_AGENT_DELEGATION_DOCTRINE} only for a host
49
49
  * session that has hypermode (its multi-agent mode) turned on. See
@@ -1 +1 @@
1
- {"version":3,"file":"coding-agent-doctrine.d.ts","sourceRoot":"","sources":["../../src/prompt/coding-agent-doctrine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AAE5D,eAAO,MAAM,6BAA6B,okNAuC+E,CAAA;AAEzH;;;GAGG;AACH,eAAO,MAAM,gCAAgC,gkCAGwP,CAAA;AAErS;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,snBAI8S,CAAA;AAE7U;;;;;;;GAOG;AACH,eAAO,MAAM,+BAA+B,oqBACimB,CAAA;AAE7oB;;;GAGG;AACH,eAAO,MAAM,iCAAiC,oqBAAkC,CAAA;AAEhF,eAAO,MAAM,qCAAqC,gCAAgC,CAAA;AAElF,MAAM,WAAW,0BAA0B;IAC1C;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;;;;;;;OASG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;CACrB;AAED;;;;;GAKG;AACH,wBAAgB,+BAA+B,CAC9C,OAAO,GAAE,0BAA+B,GACtC,kBAAkB,CAepB"}
1
+ {"version":3,"file":"coding-agent-doctrine.d.ts","sourceRoot":"","sources":["../../src/prompt/coding-agent-doctrine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AAE5D,eAAO,MAAM,6BAA6B,yxMAqCgD,CAAA;AAE1F;;;GAGG;AACH,eAAO,MAAM,gCAAgC,gqCAGwP,CAAA;AAErS;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,2nBAI8S,CAAA;AAE7U;;;;;;;GAOG;AACH,eAAO,MAAM,+BAA+B,oqBACimB,CAAA;AAE7oB;;;GAGG;AACH,eAAO,MAAM,iCAAiC,oqBAAkC,CAAA;AAEhF,eAAO,MAAM,qCAAqC,gCAAgC,CAAA;AAElF,MAAM,WAAW,0BAA0B;IAC1C;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;;;;;;;OASG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;CACrB;AAED;;;;;GAKG;AACH,wBAAgB,+BAA+B,CAC9C,OAAO,GAAE,0BAA+B,GACtC,kBAAkB,CAepB"}