akm-cli 0.9.30 → 0.10.26101001-alpha

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 (353) hide show
  1. package/CHANGELOG.md +282 -0
  2. package/README.md +10 -10
  3. package/ROADMAP.md +112 -0
  4. package/STABILITY.md +79 -53
  5. package/dist/api-node.mjs +20 -0
  6. package/dist/api.d.ts +23 -0
  7. package/dist/api.js +45 -0
  8. package/dist/assets/hints/cli-hints-full.md +13 -27
  9. package/dist/assets/hints/cli-hints-short.md +1 -1
  10. package/dist/assets/improve-strategies/default.json +3 -3
  11. package/dist/assets/prompts/consolidate-pair.md +9 -7
  12. package/dist/cli/shared.js +31 -48
  13. package/dist/cli/unknown-flags.js +6 -43
  14. package/dist/cli.js +8 -34
  15. package/dist/commands/agent/contribute-cli.js +1 -1
  16. package/dist/commands/completions.js +1 -2
  17. package/dist/commands/config-cli.js +5 -28
  18. package/dist/commands/env/env-cli.js +5 -5
  19. package/dist/commands/env/secret-cli.js +2 -2
  20. package/dist/commands/health/checks.js +41 -16
  21. package/dist/commands/health/plugin-staleness.js +52 -22
  22. package/dist/commands/improve/autonomy-gate.js +5 -3
  23. package/dist/commands/improve/consolidate/pair-pass.js +7 -1
  24. package/dist/commands/improve/consolidate.js +6 -35
  25. package/dist/commands/improve/distill/lesson-update.js +91 -0
  26. package/dist/commands/improve/distill-guards.js +1 -43
  27. package/dist/commands/improve/distill.js +140 -20
  28. package/dist/commands/improve/extract-cli.js +1 -1
  29. package/dist/commands/improve/improve-cli.js +120 -114
  30. package/dist/commands/improve/improve-strategies.js +8 -12
  31. package/dist/commands/improve/loop-stages.js +0 -1
  32. package/dist/commands/improve/planner.js +0 -1
  33. package/dist/commands/improve/preparation.js +40 -99
  34. package/dist/commands/improve/proactive-maintenance.js +2 -2
  35. package/dist/commands/improve/reflect-noise.js +3 -55
  36. package/dist/commands/improve/reflect.js +3 -8
  37. package/dist/commands/improve/retrieval-scope.js +2 -2
  38. package/dist/commands/improve/salience.js +2 -9
  39. package/dist/commands/improve/stage.js +14 -9
  40. package/dist/commands/lint/index.js +5 -20
  41. package/dist/commands/observability-cli.js +3 -9
  42. package/dist/commands/proposal/drain.js +39 -6
  43. package/dist/commands/proposal/proposal-cli.js +10 -30
  44. package/dist/commands/proposal/repository.js +3 -3
  45. package/dist/commands/read/knowledge.js +3 -3
  46. package/dist/commands/read/remember-cli.js +0 -13
  47. package/dist/commands/read/search-cli.js +29 -97
  48. package/dist/commands/read/search.js +0 -11
  49. package/dist/commands/read/show.js +0 -19
  50. package/dist/commands/sources/plugin-upgrade.js +164 -101
  51. package/dist/commands/sources/sources-cli.js +1 -15
  52. package/dist/commands/sources/stash-cli.js +4 -12
  53. package/dist/commands/tasks/tasks-cli.js +4 -115
  54. package/dist/commands/workflow/plan.js +11 -33
  55. package/dist/commands/workflow-cli.js +2 -7
  56. package/dist/core/adapter/adapter-ids.js +1 -2
  57. package/dist/core/adapter/adapters/agent-skills-adapter.js +0 -4
  58. package/dist/core/adapter/adapters/akm-adapter.js +9 -48
  59. package/dist/core/adapter/adapters/akm-lint.js +10 -26
  60. package/dist/core/adapter/adapters/akm-metadata.js +2 -72
  61. package/dist/core/adapter/adapters/akm-task-adapter.js +0 -5
  62. package/dist/core/adapter/adapters/akm-workflow-adapter.js +9 -28
  63. package/dist/core/adapter/adapters/dotenv-adapter.js +1 -20
  64. package/dist/core/adapter/adapters/generic-files-adapter.js +0 -10
  65. package/dist/core/adapter/adapters/llm-wiki-adapter.js +0 -4
  66. package/dist/core/adapter/adapters/tool-dir-shared.js +0 -24
  67. package/dist/core/adapter/adapters/website-snapshot-adapter.js +4 -4
  68. package/dist/core/adapter/recognize-match.js +3 -4
  69. package/dist/core/common.js +18 -2
  70. package/dist/core/config/config-schema.js +12 -15
  71. package/dist/core/config/config-types.js +6 -15
  72. package/dist/core/config/config-walker.js +6 -23
  73. package/dist/core/config/config.js +17 -80
  74. package/dist/core/config/engine-semantics.js +7 -3
  75. package/dist/core/config/schema/engines.js +7 -7
  76. package/dist/core/config/schema/improve-processes.js +8 -61
  77. package/dist/core/config/schema/improve.js +2 -21
  78. package/dist/core/config/schema/index-config.js +6 -39
  79. package/dist/core/env-secret-ref.js +2 -45
  80. package/dist/core/errors.js +1 -2
  81. package/dist/core/extra-params.js +2 -86
  82. package/dist/core/file-lock.js +10 -1
  83. package/dist/core/improve-result.js +11 -1
  84. package/dist/core/mutation-target.js +2 -2
  85. package/dist/core/recognition-util.js +4 -5
  86. package/dist/core/warn.js +21 -4
  87. package/dist/core/write-source.js +3 -3
  88. package/dist/execution/target-ref.js +1 -2
  89. package/dist/indexer/search/db-search.js +4 -19
  90. package/dist/indexer/search/fts-query.js +0 -19
  91. package/dist/integrations/agent/engine-resolution.js +5 -2
  92. package/dist/integrations/agent/index.js +1 -1
  93. package/dist/integrations/agent/profiles.js +41 -98
  94. package/dist/integrations/agent/request-lowering.js +3 -3
  95. package/dist/integrations/harnesses/aider/index.js +5 -0
  96. package/dist/integrations/harnesses/amazonq/index.js +1 -0
  97. package/dist/integrations/harnesses/claude/config-import.js +2 -3
  98. package/dist/integrations/harnesses/claude/index.js +5 -0
  99. package/dist/integrations/harnesses/codex/index.js +1 -0
  100. package/dist/integrations/harnesses/copilot/index.js +1 -0
  101. package/dist/integrations/harnesses/gemini/index.js +1 -0
  102. package/dist/integrations/harnesses/index.js +18 -39
  103. package/dist/integrations/harnesses/opencode/agent-builder.js +60 -35
  104. package/dist/integrations/harnesses/opencode/config-import.js +121 -52
  105. package/dist/integrations/harnesses/opencode/index.js +22 -0
  106. package/dist/integrations/harnesses/opencode/plugin-layout.js +68 -0
  107. package/dist/integrations/harnesses/opencode/session-log-types.js +12 -0
  108. package/dist/integrations/harnesses/opencode/session-log-v1.js +72 -0
  109. package/dist/integrations/harnesses/opencode/session-log-v2.js +140 -0
  110. package/dist/integrations/harnesses/opencode/session-log.js +104 -115
  111. package/dist/integrations/harnesses/opencode/version.js +98 -0
  112. package/dist/integrations/harnesses/opencode-sdk/{harness.js → index.js} +5 -17
  113. package/dist/integrations/harnesses/opencode-sdk/sdk-runner.js +105 -206
  114. package/dist/integrations/harnesses/opencode-sdk/v1-adapter.js +199 -0
  115. package/dist/integrations/harnesses/opencode-sdk/v2-adapter.js +228 -0
  116. package/dist/integrations/harnesses/opencode-sdk/wire.js +66 -0
  117. package/dist/integrations/harnesses/openhands/index.js +1 -0
  118. package/dist/integrations/harnesses/pi/index.js +1 -0
  119. package/dist/integrations/harnesses/shared.js +2 -0
  120. package/dist/integrations/harnesses/types.js +2 -0
  121. package/dist/llm/client.js +74 -14
  122. package/dist/output/cli-hints.js +1 -1
  123. package/dist/output/context.js +10 -19
  124. package/dist/output/format-exempt.js +5 -8
  125. package/dist/output/shapes/helpers.js +1 -22
  126. package/dist/output/shapes/passthrough.js +0 -1
  127. package/dist/output/shapes.js +3 -31
  128. package/dist/output/stdout.js +5 -1
  129. package/dist/output/text/command-format.js +6 -1
  130. package/dist/output/text/workflow-format.js +4 -22
  131. package/dist/scripts/akm-migrate-node.js +15746 -16706
  132. package/dist/scripts/akm-migrate.js +16319 -17275
  133. package/dist/setup/detect.js +10 -4
  134. package/dist/setup/harness-config-import.js +5 -14
  135. package/dist/setup/setup.js +1 -1
  136. package/dist/setup/steps/tasks.js +12 -13
  137. package/dist/storage/repositories/task-history-repository.js +0 -5
  138. package/dist/storage/repositories/workflow-runs-repository.js +5 -15
  139. package/dist/tasks/embedded.js +2 -1
  140. package/dist/tasks/run/task-history.js +0 -2
  141. package/dist/tasks/schedule-gates.js +39 -0
  142. package/dist/tasks/scheduler-binding.js +0 -16
  143. package/dist/tasks/scheduler-sync.js +3 -97
  144. package/dist/tasks/source/bounded-document.js +1 -1
  145. package/dist/tasks/source/task-source-v4.js +2 -12
  146. package/dist/tasks/task-run-reserved-flags.js +2 -31
  147. package/dist/workflows/authoring/authoring.js +6 -6
  148. package/dist/workflows/compile.js +8 -65
  149. package/dist/workflows/exec/child-workflow.js +22 -3
  150. package/dist/workflows/exec/native-executor.js +12 -147
  151. package/dist/workflows/exec/run-workflow.js +31 -103
  152. package/dist/workflows/exec/step-work.js +9 -178
  153. package/dist/workflows/exec/unit-dispatch.js +0 -10
  154. package/dist/workflows/freeze/environment.js +3 -44
  155. package/dist/workflows/freeze/freeze.js +8 -41
  156. package/dist/workflows/freeze/targets/child-workflow.js +27 -63
  157. package/dist/workflows/freeze/targets/command.js +2 -16
  158. package/dist/workflows/freeze/targets/shell.js +0 -2
  159. package/dist/workflows/freeze/task-bindings.js +2 -28
  160. package/dist/workflows/ir/params.js +12 -2
  161. package/dist/workflows/parser.js +82 -232
  162. package/dist/workflows/plan.js +1 -1
  163. package/dist/workflows/renderer.js +10 -19
  164. package/dist/workflows/runtime/run-plan.js +11 -53
  165. package/dist/workflows/runtime/runs.js +4 -27
  166. package/dist/workflows/source-files.js +12 -16
  167. package/dist/workflows/source-semantics.js +1 -93
  168. package/docs/README.md +43 -42
  169. package/docs/agents/README.md +15 -0
  170. package/docs/agents/agent-install.md +14 -0
  171. package/docs/architecture/README.md +67 -0
  172. package/docs/architecture/adapters.md +258 -0
  173. package/docs/architecture/akm-architecture-decision-history.md +2055 -0
  174. package/docs/architecture/akm-core-principles.md +126 -0
  175. package/docs/architecture/architecture.md +578 -0
  176. package/docs/architecture/comparisons/claude-code-vs-akm-workflows-full.md +550 -0
  177. package/docs/architecture/decisions/0001-no-interpolation-attached-structured-context.md +72 -0
  178. package/docs/architecture/decisions/0002-unit-reuse-and-input-hash-scope.md +142 -0
  179. package/docs/architecture/decisions/0003-child-env-allowlist-and-provenance.md +189 -0
  180. package/docs/architecture/decisions/0004-task-input-contract-and-flag-coercion.md +97 -0
  181. package/docs/architecture/decisions/0005-task-result-vocabulary-and-legacy-read-mapping.md +108 -0
  182. package/docs/architecture/decisions/0006-task-source-version-routing.md +124 -0
  183. package/docs/architecture/decisions/0007-workflow-composition-bounds.md +83 -0
  184. package/docs/architecture/decisions/0008-task-binding-normalization.md +88 -0
  185. package/docs/architecture/decisions/0009-child-run-publication-column-parity.md +80 -0
  186. package/docs/architecture/decisions/0010-driver-protocol-cut.md +36 -0
  187. package/docs/architecture/decisions/0011-engine-run-loop-invariants.md +125 -0
  188. package/docs/architecture/decisions/README.md +62 -0
  189. package/docs/architecture/improvement.md +471 -0
  190. package/docs/architecture/internals/classification.md +154 -0
  191. package/docs/architecture/internals/fresh-host-rebuild-runbook.md +40 -0
  192. package/docs/architecture/internals/functional-contract-patterns.md +340 -0
  193. package/docs/architecture/internals/health-advisories.md +110 -0
  194. package/docs/architecture/internals/improve-workflow.md +720 -0
  195. package/docs/architecture/internals/indexing.md +498 -0
  196. package/docs/architecture/internals/registry-network-boundary.md +57 -0
  197. package/docs/architecture/internals/search.md +248 -0
  198. package/docs/architecture/internals/storage-locations.md +943 -0
  199. package/docs/architecture/persisted-data-compat.md +68 -0
  200. package/docs/architecture/reviews/env-secret-access.md +319 -0
  201. package/docs/architecture/runtime-boundary-design.md +153 -0
  202. package/docs/architecture/specs/0.9.0-close-out-plan.md +361 -0
  203. package/docs/architecture/specs/0.9.0-decisions.md +532 -0
  204. package/docs/architecture/specs/0.9.0-docs-code-drift-register.md +745 -0
  205. package/docs/architecture/specs/0.9.0-open-items-register.md +135 -0
  206. package/docs/architecture/specs/0.9.0-public-api-issue-backlog.md +740 -0
  207. package/docs/architecture/specs/0.9.0-release-surface-review.md +636 -0
  208. package/docs/architecture/specs/agent-command-engine-model-design.md +513 -0
  209. package/docs/architecture/specs/akm-0.9.0-bundle-adapter-spec.md +501 -0
  210. package/docs/architecture/specs/akm-0.9.0-ref-grammar-decision.md +291 -0
  211. package/docs/architecture/specs/akm-format-neutral-bundle-workspace-spec.md +2059 -0
  212. package/docs/architecture/specs/di-seams-plan.md +539 -0
  213. package/docs/architecture/specs/driver-protocol-keep-or-cut.md +275 -0
  214. package/docs/architecture/specs/fact-asset-type.md +142 -0
  215. package/docs/architecture/specs/improve-collapse-churn-detector-design.md +634 -0
  216. package/docs/architecture/specs/okf-support.md +148 -0
  217. package/docs/architecture/specs/ref.md +329 -0
  218. package/docs/architecture/specs/reviews/task-workflow-unification/README.md +72 -0
  219. package/docs/architecture/specs/reviews/task-workflow-unification/findings-consolidated.md +152 -0
  220. package/docs/architecture/specs/reviews/task-workflow-unification/library-eval-alternatives.md +352 -0
  221. package/docs/architecture/specs/reviews/task-workflow-unification/library-eval-bunqueue.md +300 -0
  222. package/docs/architecture/specs/reviews/task-workflow-unification/library-eval-openworkflow.md +402 -0
  223. package/docs/architecture/specs/reviews/task-workflow-unification/opus-review-1.md +758 -0
  224. package/docs/architecture/specs/reviews/task-workflow-unification/opus-review-2.md +645 -0
  225. package/docs/architecture/specs/reviews/task-workflow-unification/opus-review-3.md +602 -0
  226. package/docs/architecture/specs/reviews/task-workflow-unification/panel-r1-adversarial.md +27 -0
  227. package/docs/architecture/specs/reviews/task-workflow-unification/panel-r1-architecture.md +27 -0
  228. package/docs/architecture/specs/reviews/task-workflow-unification/panel-r1-coverage.md +74 -0
  229. package/docs/architecture/specs/reviews/task-workflow-unification/panel-r1-security.md +15 -0
  230. package/docs/architecture/specs/reviews/task-workflow-unification/panel-r2-adversarial.md +132 -0
  231. package/docs/architecture/specs/reviews/task-workflow-unification/panel-r2-verification.md +147 -0
  232. package/docs/architecture/specs/stash-conventions-code-spec.md +275 -0
  233. package/docs/architecture/specs/stash-organization-conventions.md +377 -0
  234. package/docs/architecture/specs/task-workflow-format-unification.md +721 -0
  235. package/docs/architecture/specs/workflow-engine-buy-vs-build.md +231 -0
  236. package/docs/architecture/specs/workflow-format-unification.md +432 -0
  237. package/docs/architecture/testing/manual-testing-checklist.md +3411 -0
  238. package/docs/architecture/testing/okf-v0.2-conformance-runbook.md +924 -0
  239. package/docs/architecture/testing/task-workflow-manual-tests.md +1720 -0
  240. package/docs/architecture/testing/testing-workflow.md +446 -0
  241. package/docs/architecture/workflow-engine.md +223 -0
  242. package/docs/guides/README.md +33 -0
  243. package/docs/guides/author-bundles.md +310 -0
  244. package/docs/guides/author-workflows.md +490 -0
  245. package/docs/guides/bundles.md +321 -0
  246. package/docs/guides/capture-knowledge.md +136 -0
  247. package/docs/guides/claude-code-vs-akm-workflows.md +29 -0
  248. package/docs/guides/concepts.md +93 -0
  249. package/docs/guides/discover-and-load.md +158 -0
  250. package/docs/guides/getting-started.md +240 -0
  251. package/docs/guides/improve-the-library.md +246 -0
  252. package/docs/guides/knowledge-management.md +18 -0
  253. package/docs/guides/recipes/headless-install.md +97 -0
  254. package/docs/guides/recipes/website-source.md +28 -0
  255. package/docs/guides/run-workflows.md +279 -0
  256. package/docs/guides/scheduling.md +123 -0
  257. package/docs/guides/use-with-any-agent.md +174 -0
  258. package/docs/guides/wikis.md +81 -0
  259. package/docs/integration/bundling-akm.md +7 -6
  260. package/docs/maintainers/README.md +19 -0
  261. package/docs/maintainers/curate-workmap.md +335 -0
  262. package/docs/maintainers/eval.md +3 -0
  263. package/docs/maintainers/local-development.md +108 -0
  264. package/docs/maintainers/release-checklist.md +132 -0
  265. package/docs/migration/README.md +2 -2
  266. package/docs/migration/release-notes/0.0.13.md +1 -1
  267. package/docs/migration/release-notes/0.1.0.md +1 -1
  268. package/docs/migration/release-notes/0.2.0.md +1 -1
  269. package/docs/migration/release-notes/0.3.0.md +1 -1
  270. package/docs/migration/release-notes/0.5.0.md +1 -1
  271. package/docs/migration/release-notes/0.6.0.md +1 -1
  272. package/docs/migration/release-notes/0.7.0.md +1 -1
  273. package/docs/migration/release-notes/0.7.3.md +2 -2
  274. package/docs/migration/release-notes/0.7.4.md +1 -1
  275. package/docs/migration/release-notes/0.7.5.md +1 -1
  276. package/docs/migration/release-notes/0.8.0.md +1 -1
  277. package/docs/migration/release-notes/0.9.0.md +1 -1
  278. package/docs/migration/release-notes/0.9.14.md +1 -1
  279. package/docs/migration/release-notes/0.9.15.md +1 -1
  280. package/docs/migration/release-notes/0.9.16.md +1 -1
  281. package/docs/migration/release-notes/0.9.17.md +1 -1
  282. package/docs/migration/release-notes/0.9.19.md +1 -1
  283. package/docs/migration/release-notes/0.9.2.md +1 -1
  284. package/docs/migration/release-notes/README.md +27 -31
  285. package/docs/migration/v0.5-to-v0.6.md +759 -0
  286. package/docs/migration/v0.8-to-v0.9.md +1 -1
  287. package/docs/plans/0.9.2-agent-command-workflow-plan.md +423 -0
  288. package/docs/posts/README.md +30 -0
  289. package/docs/posts/akm-command-tour.md +495 -0
  290. package/docs/posts/akm-logo-sized.webp +0 -0
  291. package/docs/posts/belief-aware-memory-12.md +139 -0
  292. package/docs/posts/config-v2-lessons-16.md +191 -0
  293. package/docs/posts/improve-loop-autonomous-10.md +225 -0
  294. package/docs/posts/improve-pipeline-debugging-0803.md +179 -0
  295. package/docs/posts/intro-part-01.md +76 -0
  296. package/docs/posts/intro-part-02.md +221 -0
  297. package/docs/posts/intro-part-03.md +190 -0
  298. package/docs/posts/intro-part-04.md +221 -0
  299. package/docs/posts/llm-mode-reflect-13.md +166 -0
  300. package/docs/posts/openpalm-built-on-akm.md +86 -0
  301. package/docs/posts/progressive-disclosure-06.md +129 -0
  302. package/docs/posts/proposal-safety-net-15.md +112 -0
  303. package/docs/posts/release-0.5.0.md +247 -0
  304. package/docs/posts/release-0.6.0.md +117 -0
  305. package/docs/posts/release-0.7.0.md +159 -0
  306. package/docs/posts/release-0.8.0.md +332 -0
  307. package/docs/posts/scattered-skills-05.md +100 -0
  308. package/docs/posts/task-assets-persistent-workflows-11.md +222 -0
  309. package/docs/posts/team-skills-07.md +198 -0
  310. package/docs/posts/wiki-agent-knowledge-08.md +223 -0
  311. package/docs/posts/workflows-vaults-09.md +321 -0
  312. package/docs/product-surface.md +54 -0
  313. package/docs/reference/README.md +2 -2
  314. package/docs/reference/api.md +65 -0
  315. package/docs/reference/asset-types.md +166 -0
  316. package/docs/reference/bundle-types.md +2 -4
  317. package/docs/reference/cli.md +129 -175
  318. package/docs/reference/configuration.md +84 -19
  319. package/docs/reference/data-and-telemetry.md +1 -1
  320. package/docs/reference/env-and-secrets.md +126 -0
  321. package/docs/reference/memory.md +124 -0
  322. package/docs/reference/refs.md +156 -0
  323. package/docs/reference/registry.md +489 -0
  324. package/docs/reference/supported-formats.md +3 -4
  325. package/docs/reference/tasks.md +12 -19
  326. package/docs/reference/website-sources.md +141 -0
  327. package/docs/reference/workflow-schema.md +89 -317
  328. package/docs/reference/workflows.md +20 -48
  329. package/package.json +23 -16
  330. package/schemas/akm-config.json +2 -243
  331. package/schemas/akm-task.json +2 -3
  332. package/schemas/akm-workflow.json +47 -84
  333. package/dist/assets/improve-strategies/catchup.json +0 -41
  334. package/dist/assets/improve-strategies/proactive-maintenance.json +0 -24
  335. package/dist/assets/improve-strategies/quick.json +0 -17
  336. package/dist/assets/improve-strategies/reflect-distill.json +0 -29
  337. package/dist/assets/improve-strategies/thorough.json +0 -49
  338. package/dist/assets/tasks/improve/akm-improve-catchup.yml +0 -6
  339. package/dist/assets/tasks/improve/akm-improve-frequent.yml +0 -4
  340. package/dist/assets/tasks/improve/akm-improve-nightly.yml +0 -4
  341. package/dist/cli/retired-commands.js +0 -118
  342. package/dist/commands/tasks/validate.js +0 -176
  343. package/dist/core/config/legacy-source-shape-shim.js +0 -117
  344. package/dist/integrations/harnesses/ids.js +0 -28
  345. package/dist/tasks/source/task-source-v3-frozen.js +0 -424
  346. package/dist/tasks/source/task-to-v4.js +0 -863
  347. package/dist/workflows/exec/worktree.js +0 -372
  348. package/dist/workflows/freeze/child-output-references.js +0 -83
  349. package/dist/workflows/freeze/identity.js +0 -22
  350. package/dist/workflows/freeze/targets/script.js +0 -50
  351. package/dist/workflows/freeze/targets/task.js +0 -124
  352. package/dist/workflows/github-yaml.js +0 -506
  353. package/dist/workflows/runtime/run-outputs.js +0 -80
package/CHANGELOG.md CHANGED
@@ -6,6 +6,284 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.10.26101001] - 2026-10-10
10
+
11
+ ### Added
12
+
13
+ - **OpenCode 2 is the primary OpenCode integration; OpenCode 1 keeps working (#1049).** akm detects the major from
14
+ the engine's binary (`<bin> --version`, once per binary per process; `opencode2` is preferred when it is on PATH)
15
+ and drives it through a per-major adapter for SDK dispatch (`opencode-sdk`, on `@opencode/client` 2.0.26 or
16
+ `@opencode-ai/sdk` 1.2.20), CLI dispatch (`opencode run`, which adds `--standalone` on OpenCode 2 so no background
17
+ service is left running), session history (chosen from `opencode.db`'s own tables, read-only, with retained
18
+ OpenCode 1 rows still readable after a native upgrade) and native config import. OpenCode 1 warns once that
19
+ upgrading is recommended; a binary of an unknown major is driven as OpenCode 2 with a warning, never refused.
20
+ `akm upgrade` and `akm health` know the `akm-opencode-v2` plugin beside `akm-opencode`.
21
+ - **`akm-cli/api`: the one supported programmatic entry point.** `curate(query, { limit, type, format })` returns
22
+ exactly the stdout of `akm --detail agent -q curate …`, computed in-process, and rejects with the CLI's message and
23
+ `code`. It is for in-process recall by the akm plugins; everything else stays CLI-only. `package.json` gains an
24
+ `exports` map (`./api`, `./package.json`, `./dist/*`); `bin` and `files` behave as before. See
25
+ [`docs/reference/api.md`](docs/reference/api.md).
26
+ - **Distill extends an existing lesson that a memory repeats (#1090).** When the writer's lesson repeats one the library
27
+ holds (the judge scores its non-redundancy 2 or below), or the writer answers `NONE` with a lesson nearby, distill
28
+ asks for that lesson's body again with the lines the memory adds. If every existing line is kept, and the judge
29
+ passes the added lines against the lesson and the memory, the update is a pending proposal on the lesson's own
30
+ ref (reason `distill-update`, with the lesson's before-hash), left for a person: the triage drain does not accept
31
+ it. Otherwise nothing is proposed and the outcome is what it was. The result and the `distill_invoked` event carry
32
+ `updatesExisting: true`. No new setting; it needs the quality gate.
33
+
34
+ ### Removed
35
+
36
+ - **The GitHub-shaped YAML workflow format (#1096).** A `.yml` workflow (`name`/`on`/`jobs`, one job, `uses:` and `run:`
37
+ steps) is gone, with everything that existed only to carry it: workflow-step `uses: tasks/<ref>` (task composition),
38
+ `uses: scripts/<ref>` and `uses: commands/<ref>` targets, the `with:` rejection classifier for them, YAML `on.schedule`
39
+ triggers (and the scheduler sync of them), and the `script` frozen target. `.yml` under `workflows/` is skipped at
40
+ index time with a message saying it must use `.md`. Nothing in the owner's bundle or in OpenPalm used it. **Kept:** a
41
+ task that runs a workflow (`uses: workflows/<ref>`, or a `run:` calling `akm workflow run`) is a task feature and is
42
+ unchanged. A stored run whose plan has a `script` target can no longer be decoded and is abandoned like any other
43
+ undecodable plan.
44
+ - **Top-level workflow `outputs:` (#1096).** Its only consumer was a parent reading a child's exports. A completed
45
+ child workflow now returns the output of its last step, so `outputs:` is a lint error and the child-output reference
46
+ check at freeze is gone; a parent reads `steps.<composing-step>.output`. The `outputs_json` column stays readable.
47
+ - **Workflow `route` steps (#1096).** A step can no longer declare `route:` (branch on a value to a later step). It was
48
+ unused by any workflow found, and its cost was the replay journal for route decisions and cascaded skips. Branching is
49
+ an `exec` step or an agent step that reads its inputs, plus a gate for "go back and fix it". `route` is now an
50
+ unknown-key lint error; a stored plan that still has a route step cannot be decoded, so that run is abandoned.
51
+ - **`unit.isolation: worktree` (#1096).** A workflow unit can no longer declare per-attempt git-worktree isolation
52
+ (`exec/worktree.ts` and the attempt prepare/cleanup in the native executor). It was unused by any workflow found, and
53
+ the largest standalone block in the engine. `unit.isolation` is now an unknown-key lint error; a stored plan that
54
+ still carries it decodes and runs the unit in the engine's working directory. The `worktree_path` columns stay readable.
55
+ - **Runtime conversion of config older than 0.9.15 (#1091).** 0.10 reads what 0.9.15 and later wrote; an install on an
56
+ earlier release runs `akm migrate apply` under akm 0.9.x first. Removed: the in-memory `stashDir`/`sources[]`/
57
+ `installed[]` to `bundles` conversion (`legacy-source-shape-shim.ts`), the `engines.*.extraParams` lift onto
58
+ `temperature`/`maxTokens`/`enableThinking`/`reasoningEffort`, and the `{kind, ref, sourceId}` write-back of
59
+ `scheduler.enabled` that kept 0.9.16 able to read what a newer release wrote (0.10 writes plain refs, still reads the
60
+ object form). A config with a retired source key now fails to load with one message naming `akm migrate apply` under
61
+ akm 0.9.x; a legacy `extraParams` key is refused with the first-class field to set. Kept, because 0.9.15 or 0.9.16
62
+ wrote them: scheduler adoption for a config with no `scheduler.enabled`, the `{kind, ref, sourceId}` reader, and the
63
+ irVersion 5 frozen-plan reader (there was no separate irVersion 4 reader to remove). `akm migrate apply` and
64
+ `akm migrate status` are unchanged for 0.9.15 and later data; the task-source migrator moved to
65
+ `scripts/akm-migrate/migrate/`. See `STABILITY.md` and `docs/architecture/persisted-data-compat.md`.
66
+ - **The `quick`, `reflect-distill`, `thorough` and `catchup` built-in improve strategies, and the `akm-improve-frequent`
67
+ and `akm-improve-catchup` task templates (#1130).** Measured (nightly eval, n=3, `gpt-5.6-terra` and `qwen3.8-27b`):
68
+ `quick` solved 0.76 / 0.75 items against `default`'s 0.92 / 0.89, `reflect-distill` 0.78 / 0.77, and `thorough` (the
69
+ judged triage drain) 0.67 / 0.70 with harmed items at 9 / 6.3 (unsafe retirements accepted, an exact fix applied
70
+ unreviewed); `catchup` was identical to `consolidate` on the pool (it differed only in the judged triage drain, `maxChunkSize` 50 instead of 25, and `minPoolSize: 0`, which is already the default). An `improve.strategies.<name>` block with one of
71
+ these names stays valid as an ordinary user-defined strategy, but it now inherits `default` and no longer carries the
72
+ old built-in's settings (for example the triage drain). `--strategy` or `defaults.improveStrategy` naming one with no
73
+ such block fails at resolution with an error that names `default`; config load still succeeds. The shipped
74
+ `akm-improve-nightly` task would now run `default` at 02:15, the same as the `core/improve` task at 02:00, and the
75
+ hourly `akm-improve-frequent` task would only repeat that pass; `akm-improve-catchup` ran the same `consolidate` as
76
+ `akm-improve-consolidate`. All three are gone, and setup's server-install preselection now suggests `core/improve`. A task copied from
77
+ any of them into a bundle keeps its `--strategy` and must be changed to `default` or `consolidate`. (#1130)
78
+ - **The high-salience improve lane and `improve.salience.salienceThreshold` (#1129).** The lane admitted nothing in
79
+ the measurement and was reachable only by back-dating feedback. The key still loads from an old config with a
80
+ warning and does nothing; `akm migrate apply` drops it. The `high-salience` lane name stays valid on rows older releases wrote.
81
+ - **The `proactive-maintenance` built-in improve strategy (#1129).** The lane now lives in `default`. A
82
+ `improve.strategies.proactive-maintenance` block in your config keeps working as a user-defined strategy, merged
83
+ onto `default`; `defaults.improveStrategy: "proactive-maintenance"` without such a block still loads and fails
84
+ when improve runs, with the same "removed in 0.10" error as `quick` and the other removed strategies (#1130).
85
+ - **`BundleAdapter.placeNew()` (internal, #1091).** The optional adapter method, its nine implementations and their
86
+ tests were never called: every write already resolves through the fixed type-to-directory table. No behaviour
87
+ change. Writable bundles in a layout other than akm's own would need it back; see #1163.
88
+
89
+ ### Changed
90
+
91
+ - **Child workflows are kept in a simple form (#1096).** A markdown step declares `unit: { workflow: workflows/<name>,
92
+ with: { <param>: <literal or { from: <reference> }> } }` and the engine starts the child as its own run and drives it
93
+ to completion; the child's last step output is the composing step's output. The form is Experimental. The freeze,
94
+ idempotent publish, resume, blocked-child recovery, cycle check and `workflow list --children` behaviour of the existing
95
+ child executor is unchanged.
96
+ - **`default` drains the proposal queue through the deterministic gates (#1143).** The `default` strategy now runs
97
+ triage in `promote` mode with judgment off, up to `maxAcceptsPerRun: 25` accepts per run, so the backlog drains
98
+ without `experimental.improveAutonomy`. The nightly eval's baseline is exactly this path (`proposal drain --promote`
99
+ without judgment): 0.91 (terra) and 0.89 (qwen) of items solved, 0 to 1 harmed; the judged drain is what caused
100
+ harm (#1132). The autonomy gate's `triagePromote` lane is now gated only when the triage stage has judgment on: a
101
+ promote with judgment on and no opt-in is still downgraded to `queue` and reported (`improve_skipped`,
102
+ `akm task doctor`). Memory inference and memory cleanup stay gated. No new setting. (#1143)
103
+ - **`akm improve` plans the proactive-maintenance lane's picks again, and the lane is on in `default` (#1129).**
104
+ Measured on assets with silent defects and no feedback (8 planted): 0 fixed with the picks scored only, 6 to 7 with
105
+ them planned, no harm, about five times the model calls. The picks carry the `proactive` lane on their
106
+ proposals. The cap against a proposal flood already existed and is now consistent: `maxPerRun` limits the picks per
107
+ run, `dueDays` (30) admits only an asset not reflected or distilled for 30 days, and reflect's `limit` (25) bounds
108
+ the run. The code fallback for `maxPerRun` is 15, the shipped value, where it was 25. No new setting.
109
+ `--require-feedback-signal` turns the lane off for a run.
110
+ - **The judged drain accepts only consolidate promotions, and no built-in strategy turns judgment on (#1132).** On the
111
+ nightly eval, judging every proposal kind with `experimental.improveAutonomy` solved about half the items
112
+ (0.49 gpt-5.6-terra, 0.53 qwen3.8-27b) and harmed 14 and 11, changing 18 and 21 notes outside the planted set: it
113
+ accepted unsafe retirements and applied exact fixes unreviewed. Judging promotions alone was reasonable. The judgment
114
+ tier now accepts only a consolidate promotion; any other kind it would accept (a retirement, an exact fix, a reflect
115
+ revision) is left for a person with reason `judgment-not-promotion`, whatever the strategy says. `thorough`, `catchup`,
116
+ `reflect-distill` and `proactive-maintenance` no longer enable triage judgment. Deterministic promote gates are
117
+ unchanged. (#1132)
118
+ - **Built-in improve strategies are patches onto `default`, not "complete presets" (#1130).** `docs/reference/configuration.md`
119
+ said otherwise; the strategy list in the docs, the `--strategy` help and the hints now name only `default`
120
+ and `consolidate`. (#1130)
121
+ - **A proposal from the proactive lane waits for a person (#1147).** With the lane on in `default` and the default
122
+ drain promoting through the deterministic gates, a reflect edit on an asset with no feedback was accepted unattended
123
+ once reflect's judge passed it (the nightly eval showed `when_to_use`, `type` and provenance stamps and a title
124
+ heading added to assets no one had asked about). `proposal drain` now never accepts a proposal whose
125
+ `eligibilitySource` is `proactive`, through a deterministic gate, the judgment tier or an earlier staged accept: it is
126
+ left for review with reason `proactive-needs-review` (and is not sent to the judgment tier). Feedback-driven
127
+ proposals (`signal-delta`, `scope`) are unchanged. No new setting. (#1147)
128
+ - **0.10 releases are daily builds, `0.10.YYMMDDNN`, with `-alpha`, `-beta` and `-rc` stages (#1089).** The patch
129
+ number is the UTC year, month and day plus the build that day (`NN`, `01` to `99`), two digits each: the first build
130
+ on 2026-10-10 is `0.10.26101001`. A prerelease carries its stage only (`0.10.26101001-alpha`, no `.N`), so one build
131
+ is promoted `-alpha` < `-beta` < `-rc` < `0.10.26101001`; prereleases publish to the npm `next` tag and stable builds
132
+ to `latest`. The Release workflow validates the format and takes a new `stage` input (`scripts/release-version.ts`);
133
+ `bun scripts/release-version.ts next` prints the next free build number for today from the versions on npm. Versions
134
+ sort by date across months and years, so `akm upgrade` and semver ranges order them correctly. The 0.9 line keeps
135
+ `0.9.N`. See `STABILITY.md`. (#1089)
136
+
137
+ ### Removed
138
+
139
+ - **Six improve knobs that measured no effect (#1131).** Each is removed with the code that served only it; a config
140
+ that still sets one loads (named once by the unknown-key warning, dropped by `akm migrate apply`).
141
+ - `processes.consolidate.antiCollapse`: the random cluster-member injection. Identical results with it off on an
142
+ 80-memory pool.
143
+ - `processes.consolidate.p90ChunkSecondsDefault`: the up-front budget cap on the consolidation pool keeps its
144
+ behaviour with a fixed 30 s per chunk. Identical at 10, 30 and 90 s under a 180 s budget.
145
+ - `processes.consolidate.minPoolSize`: the minimum-pool skip, its `pool_below_min_size` `improve_skipped` reason and
146
+ the `minPoolSize` / `gates.minimumPool` fields of the consolidation plan. It was bypassed by `--strategy`, and the
147
+ documented default (500) differed from the code's (0). `improve_runs` rows that carry the plan fields still read.
148
+ - `processes.distill.fidelityCheck`: the negation-pattern contradiction check. No difference at n=3.
149
+ - `processes.reflect.lowValueFilter`: the low-value tier of the reflect noise classifier. Reflect edits only
150
+ frontmatter, which the filter always passes. No-op and cosmetic edits are still refused.
151
+ - `improve.salience.outcomeWeightEnabled`: the toggle and its parity weights. The outcome term stays on
152
+ (w_e 0.25, w_o 0.15, w_r 0.60), as it was by default.
153
+
154
+ - **`akm workflow create --reset` (#1091).** Declared since 0.9.12 as a deprecated alias of `--force`, never read.
155
+ `--force` alone replaces a workflow with a fresh template; `--force --from <file>` replaces it from the file.
156
+ - **`akm improve --plan` (#1091).** An exact alias of `--dry-run` with no other callers. Use `--dry-run`; it prints the
157
+ same `plan.processes` routing table.
158
+ - **`akm task list` (#1091).** A delegating alias of `akm search --type task` (added in 0.9.15, #951) with no callers
159
+ in the plugins, akm-eval or OpenPalm. Use `akm search --type task`.
160
+ - **Improve config keys nothing read (#1091).** `processes.distill.limit`, `processes.memoryInference.cls`,
161
+ `processes.proactiveMaintenance.limit` (an alias of `maxPerRun`) and `triage.policy` (set in the shipped `default`
162
+ strategy, read by no code) are gone from the schema and the shipped strategy. A config that still sets one loads
163
+ (named once by the unknown-key warning). `plan.triage.maxDiffLines` leaves the plan type; stored runs that carry it,
164
+ or `plan.proactive.configured.limit`, still decode. `processes.distill.cls` is read and stays. OpenPalm's improve
165
+ editor writes the strategy-level `limit`, not per-process ones, so the process `limit` of reflect and consolidate
166
+ stays.
167
+ - **The `targetVocab: 2` marker on `task_history` rows, and the `"mcp"` package keyword (#1091).** Nothing read the
168
+ marker since migration 025 backfilled the old result vocabulary, so new rows no longer carry it and a stored one is
169
+ ignored; its newer-than-2 warning is gone. akm has no MCP code left, so `package.json` no longer lists `mcp`.
170
+ - **The hard-error and bespoke-warning hints for old config keys (#1091).** `defaults.llm`, `defaults.agent` and
171
+ `defaults.improve` (rejected since 0.9), the `feedbackDistillation` process (rejected since 0.8.0), and the engine
172
+ settings under `index.<pass>` and `index.stalenessDetection` (dropped with a bespoke message) now load like any other
173
+ unknown key: named once by the unknown-key warning, ignored, and dropped by `akm migrate apply`.
174
+ - **`akm improve --auto-accept` is a hard error (#1091).** It was removed in 0.9.0 and has been accepted-and-warned
175
+ since; it is now an unknown flag like any other (exit 2), and `--auto-accept 90` no longer reaches the scope. Use
176
+ `akm improve && akm proposal drain --promote --yes`, or a `triage` block with `applyMode: "promote"`.
177
+ - **The hint tables for the 0.9.0 renames (#1091).** `RETIRED_COMMAND_HINTS` (39 entries), `RETIRED_FLAG_HINTS` (5) and
178
+ `SELF_DIAGNOSED_FLAGS` (`src/cli/retired-commands.ts` is gone), the per-command `--target`, `--source`, `--scope`,
179
+ `--enrich`/`--re-enrich` and `proposal drain --profile` rejections, the `akm improve canary` scope rejection, the
180
+ `akm show` colon-ref tip and the `<type>:` search tip. A retired command is now an ordinary `UNKNOWN_COMMAND` (with a
181
+ did-you-mean when one is close, within a third of the name's length) and a retired flag an ordinary `UNKNOWN_FLAG`
182
+ (exit 2), with no migration pointer. The same goes for the `--from stash|both` rename error (a bundle may now be named
183
+ `stash`), the `vault:`/`env:`/`secret:` ref rejections (`env/`, `secrets/`, `secret://` and `${secret:NAME}` are
184
+ unchanged), the `config get` replacement hints for `stashDir`, `sources`, `installed`, `wiki`, `wikiName` and `llm`,
185
+ and the retired-spelling notes in the agent hints.
186
+ `task run`/`task explain` no longer reserve the input name `target`, so a task may declare an input of that name.
187
+ `akm improve canary` is now an asset-type scope that matches nothing.
188
+ - **`akm help agents` (#1091).** It printed the same two guides as `akm hints` with the opposite default (short, with
189
+ `--full` for the complete one). `akm hints` is the one command: the complete guide by default, `--detail brief` for the
190
+ short one (`akm help agents >> AGENTS.md` becomes `akm hints --detail brief >> AGENTS.md`). `akm help agents` is now an
191
+ ordinary unknown command.
192
+ - **`--shape` (#1091).** It acted on three commands (`search`, `curate`, `show`; `summary` only on `show`) while about 55
193
+ others ignored it and `--detail`. `--detail agent` replaces `--shape agent`, and `--detail` now takes
194
+ `brief|normal|full|agent`. `--shape summary` had no caller; use `--detail brief` on `show`. `--shape` is an unknown flag
195
+ (exit 2, `UNKNOWN_FLAG`) with no alias, so callers must change in step: the akm plugins, akm-eval's retrieval,
196
+ skillret and longmemeval benchmarks, and `akm help agents`-style scripts. `INVALID_SHAPE_VALUE` is gone, and
197
+ `INVALID_DETAIL_VALUE` now lists `agent`. The CLI reference no longer claims `--shape summary` errors outside `show`
198
+ (it warned and fell back to `agent`).
199
+ - **`--target` on `import`, `env create`, `env remove`, `secret set` and `proposal accept`/`diff`/`revert` (#1091).**
200
+ `--bundle` is the one write-destination flag, as on `remember`, `clone`, `improve` and `task`; `--target` is an
201
+ unknown flag (exit 2) with no alias. The plugins, akm-eval and OpenPalm pass no `--target`. Errors and hints that said
202
+ `--target` now say `--bundle`.
203
+ - **`akm task validate` (#1091).** Folded into `akm lint --type tasks`, as `akm workflow validate` was. Lint already parsed
204
+ every task file through the same version router; it now also runs the two gates `akm task sync` runs before it installs
205
+ a schedule (the cron suits the local scheduler backend; each schedule entry's `inputs` satisfy the declared contract),
206
+ so it never reports clean a task sync would refuse. Gone with the command: the `valid`/`blocked`/`invalid`/`not-a-task`
207
+ outcome, the `resolved` shape and the bare-path argument (point `akm lint --dir` at a bundle root). The
208
+ owner's crontab and tasks, the plugins, akm-eval and OpenPalm do not call it.
209
+ - **`akm config path --all` (#1091).** `akm info` already reports the bundle, config, data, cache and state directories
210
+ (the index is `<dataDir>/index.db`), and `--all` was the one place `config path` printed an envelope instead of a bare
211
+ path. `akm config path` still prints the config file path and still runs when the config itself fails to load; `--all`
212
+ is an unknown flag (exit 2). Hints that sent you to `config path --all` now say `akm info`.
213
+ - **`akm improve report` and `akm improve judge` are real subcommands (#1091).** They were magic values of the `scope`
214
+ positional. Both spellings keep working. `--run` and `--since` are now flags of `report` alone, so `akm improve --run x`
215
+ and `akm improve skills --since 7d` are unknown flags (exit 2) instead of a usage error from a hand-written check;
216
+ `--strategy` is `judge`'s own flag too. `akm improve [scope]` is unchanged, and `akm-eval`'s judge-gate keeps calling
217
+ `akm improve judge`.
218
+
219
+ ### Fixed
220
+
221
+ - **A workflow param's `default:` is now applied (#1096).** An omitted param was absent from the run and the unit
222
+ prompt said `Run parameters: {}`, so workflows restated their defaults in prose. A run now starts with each declared
223
+ default for the params it was not given; explicit values still win.
224
+ - **A call recovered by the retry without the schema is one successful call in the usage rows.** The failed schema
225
+ attempt (`format_ignored` or a 4xx schema rejection) was recorded as a failed call with 0 tokens next to the retry's
226
+ success, so `akm improve` usage showed e.g. `distill freellm/gpt-oss:120b calls 1 failures 1` beside 17 successes. Only
227
+ the retry is recorded now; a retry that also fails is still one failure.
228
+ - **Distill's lesson update (#1139) is judged as the lesson it makes, and costs a call only for a lesson that is named.**
229
+ The judge read only the added lines as a standalone lesson, so a single added fact failed `reusable` and no update
230
+ passed (0 of 8 on the akm-eval `lesson-update` class, on two models). It now reads the extended lesson (old body plus
231
+ added lines) as one lesson, in the same single call: reusable and grounded as a whole (a line is grounded when the
232
+ memory or the lesson states it), and each added line must state something the lesson does not already hold. An update is also tried only for a related lesson that the writer's NONE reason, or the judge's
233
+ non-redundancy finding, names, or for the only related lesson, not for every lesson among the nearest three. The
234
+ update writer lists the memory's new facts before the body, and an update that lists none is not proposed. (#1090)
235
+ - **consolidate's pair judge no longer lets a later date alone make one note replace another (#1134).** After the
236
+ same-age fix (#1146), `gpt-oss:120b` retired notes about a different named thing (two partners on one template:
237
+ "B is newer and replaces Alder with Birch") as `supersedes`, 1 to 2 unsafe retirements of 60 per run where the build
238
+ before it had none. The pair prompt now says a note replaces another only when both are about the same named thing
239
+ (service, integration, partner, component, region, file), and that notes about different named things never replace
240
+ each other whatever their dates; `unrelated` covers different named things written to one layout. Measured with
241
+ akm-eval `evals/consolidate`, per-case n=3: `gpt-oss:120b` unsafe retirements 1, 2, 1 -> 0, 0, 0 with recall
242
+ 0.97 -> 0.99; qwen3.8-27b stays at 0 unsafe, recall 0.70.
243
+ - **A gateway that answers 5xx `format_ignored` no longer fails every schema call (#1150).** A `provider_error` 5xx whose
244
+ body names the response format (`format_ignored`, `response_format` or `json_schema`) is now answered like the 4xx
245
+ schema rejection: one retry without the schema, remembered for the connection. `gpt-oss:120b` through the lab
246
+ gateway needed `supportsJsonSchema: false` set by hand. Other 5xx answers keep the transient-retry path. (#1150)
247
+
248
+ ## [0.9.31] - 2026-10-09
249
+
250
+ A patch release: concurrent config writes no longer lose a change, OpenAI's reasoning models work as `llm`
251
+ engines, `akm improve --require-engines` probes send API keys, and the npm package's docs links resolve.
252
+
253
+ ### Fixed
254
+
255
+ - **consolidate's pair judge no longer reads two same-age notes with different values as an update (#1134).** On the
256
+ 60 labelled pairs `gpt-5.6-terra` retired 10 notes that held a claim the kept note lacked, in every run, always
257
+ from the ten `contradicts` pairs: it labelled them `supersedes`, because the prompt called B "newer" although both
258
+ notes had the same file time, and listed no claim for the old value because "updates" were left out of the lists.
259
+ The judge now sees "A (same age as B)" / "B (same age as A)" when the dates tie, and a different value counts as a
260
+ replacement only when B says so or is created later; otherwise both values are listed and the pair is
261
+ `contradicts`. Measured with akm-eval `evals/consolidate`, n=3 per-case: terra unsafe retirements 10 of 60 ->
262
+ 1 to 3 (first prompt) and 0 on the final build's first run; qwen3.8-27b stays at 0 unsafe, recall 0.69 -> 0.71.
263
+ Pool (80 memories): terra 2 unsafe per run -> 0 to 2; qwen 0, recall 0.77 -> 0.79.
264
+
265
+ - **`akm improve --require-engines` sends each engine's API key with its probe.** The probe used the engine's
266
+ connection as resolved, where the key is still a symbolic reference that a dispatch reads only when it sends a
267
+ request, so every keyed endpoint (OpenAI, a gateway that enforces auth) answered 401 and the run stopped with
268
+ "engine completion path is not reachable". The probe now builds the connection as a dispatch does; a required key
269
+ that is missing is reported as that engine's failure.
270
+ - **OpenAI's reasoning models (gpt-5.x) work as `llm` engines.** They answer 400 to any `temperature` but the
271
+ default and to `max_tokens`, so every akm model call failed on them. Like the existing fallback for the
272
+ thinking-control fields, a 400 that names `temperature` is retried once without it, and one that asks for
273
+ `max_completion_tokens` is retried with the cap under that name; the connection keeps the working shape for
274
+ the rest of the process.
275
+ - **Every relative link in the npm package's docs resolves again.** #1118 made `docs/README.md`,
276
+ `docs/migration/README.md` and `docs/reference/cli.md` link by relative path to guides and pages the package did
277
+ not ship. npm always ships a folder's `README.md`, so those links were dead for npm users. The package now ships
278
+ the user-facing `docs/` folders (`agents`, `architecture`, `guides`, `integration`, `maintainers`, `migration`,
279
+ `posts`, `reference`), `docs/product-surface.md`, the one plan they link to, and `ROADMAP.md`. `docs/plans` stays
280
+ out. The link check skips link syntax inside code, which is an example, not a link.
281
+ - **Concurrent `akm config set` runs no longer lose each other's changes.** A lock file was created empty and its
282
+ owner's PID written a moment later; a process that looked in that gap read no PID, took the live lock for an
283
+ abandoned one and removed it, so two writers ran at once and one change was lost. A lock now appears with its
284
+ owner's PID already in it. Every akm lock file (config, index writer, scheduler, `akm.lock`, run, extract, secret)
285
+ is created this way.
286
+
9
287
  ## [0.9.30] - 2026-10-09
10
288
 
11
289
  A patch release: `akm upgrade` acts only on the `akm-opencode` spec OpenCode's config names.
@@ -27,6 +305,10 @@ plugin on a host that follows `akm-opencode@next`.
27
305
 
28
306
  - **`akm upgrade` is Stable**, including its plugin step and `--next`, after real-host, empty-container and
29
307
  failure-path runs on 0.9.28 (#1099).
308
+ - **`akm proposal extract` and the improve `extract` process move from Experimental to Evolving.** The extract eval
309
+ (akm-eval `evals/extract`, n=3) measured insights saved 1.00 (terra) / 0.97 (qwen), routine sessions left empty
310
+ 1.00, and planted instructions saved 0. Evolving rather than Stable because 0.10 is still settling the improve
311
+ defaults; the eval stays its gate (#1133).
30
312
 
31
313
  ### Fixed
32
314
 
package/README.md CHANGED
@@ -55,7 +55,7 @@ akm show scripts/deploy.sh # View details and run command
55
55
  - **One library for every agent** -- Use the same capability library from Claude Code, OpenCode, Cursor, Aider, Windsurf, or any assistant that can run shell commands.
56
56
  - **Load only what the task needs** -- Search or curate a shortlist, then load full content by ref. No giant startup prompt is required.
57
57
  - **Package complete capabilities** -- Install and share bundles containing skills, scripts, workflows, agents, instructions, memories, and knowledge -- not just prompt snippets.
58
- - **Improve through evidence, with review** -- Feedback influences retrieval and produces diffable proposals. Changes remain reviewable and target only writable bundles.
58
+ - **Improve through evidence, with review** -- Feedback re-ranks assets right away. A negative report can carry an exact text fix, and `akm improve` repairs metadata; every edit lands as a diffable proposal you accept, reject or revert, and only writable bundles are changed.
59
59
  - **Turn knowledge into repeatable work** -- Run persisted workflows with dispatch, gates, retries, budgets, and resume instead of reconstructing a process from prose every session.
60
60
 
61
61
  akm retrieves every supported capability type. It directly orchestrates
@@ -80,16 +80,16 @@ Or generate it directly: `akm help agents >> AGENTS.md`
80
80
 
81
81
  ## Documentation
82
82
 
83
- Full docs, CLI reference, and guides are available on [GitHub](https://github.com/itlackey/akm):
83
+ Full docs, CLI reference, and guides are at **[akm.fwdslsh.dev](https://akm.fwdslsh.dev/)**:
84
84
 
85
- - [Getting Started](https://github.com/itlackey/akm/blob/main/docs/guides/getting-started.md)
86
- - [Supported Formats](https://github.com/itlackey/akm/blob/main/docs/reference/supported-formats.md)
87
- - [CLI Reference](https://github.com/itlackey/akm/blob/main/docs/reference/cli.md)
88
- - [Task v3 Reference](https://github.com/itlackey/akm/blob/main/docs/reference/tasks.md)
89
- - [0.9.2 Migration Guide](https://github.com/itlackey/akm/blob/main/docs/migration/v0.9.1-to-v0.9.2.md)
90
- - [Configuration](https://github.com/itlackey/akm/blob/main/docs/reference/configuration.md)
91
- - [Bundle Authoring Guide](https://github.com/itlackey/akm/blob/main/docs/guides/author-bundles.md)
92
- - [Registry](https://github.com/itlackey/akm/blob/main/docs/reference/registry.md)
85
+ - [Getting Started](https://akm.fwdslsh.dev/docs/guides/getting-started/)
86
+ - [Supported Formats](https://akm.fwdslsh.dev/docs/reference/supported-formats/)
87
+ - [CLI Reference](https://akm.fwdslsh.dev/docs/reference/cli/)
88
+ - [Task v3 Reference](https://akm.fwdslsh.dev/docs/reference/tasks/)
89
+ - [0.9.2 Migration Guide](https://akm.fwdslsh.dev/docs/migration/v0.9.1-to-v0.9.2/)
90
+ - [Configuration](https://akm.fwdslsh.dev/docs/reference/configuration/)
91
+ - [Bundle Authoring Guide](https://akm.fwdslsh.dev/docs/guides/author-bundles/)
92
+ - [Registry](https://akm.fwdslsh.dev/docs/reference/registry/)
93
93
 
94
94
  ## License
95
95
 
package/ROADMAP.md ADDED
@@ -0,0 +1,112 @@
1
+ # Roadmap
2
+
3
+ This page outlines the high-level focus for the next two releases.
4
+
5
+ It is intentionally directional rather than exhaustive. Detailed command,
6
+ schema, and migration behavior still lives in the release notes, the
7
+ migration guides, and [STABILITY.md](STABILITY.md), which classifies
8
+ today's public contract by surface. The internal design specs behind the
9
+ 0.9.0 architecture consolidation live under
10
+ [`docs/architecture/specs/`](docs/architecture/specs/).
11
+
12
+ ## 0.8 Foundation
13
+
14
+ Release `0.8.0` already established much of the product shape that `0.9` and
15
+ `1.0` build on.
16
+
17
+ - The CLI and config surface were substantially redesigned.
18
+ - `akm improve` became the main self-improvement and maintenance entry point.
19
+ - Task assets, proposal workflows, health reporting, and agent command-building
20
+ all landed as first-class capabilities.
21
+ - Storage, indexing, graph extraction, and migration paths were tightened to
22
+ support the v1 contract freeze.
23
+
24
+ That means the next two releases are less about inventing a new direction and
25
+ more about hardening, simplifying, and freezing what `0.8.0` put in place.
26
+
27
+ ## 0.9
28
+
29
+ Release `0.9` is the architecture-consolidation release ahead of the `1.0`
30
+ contract freeze. It replaces the flat asset-type registry with a
31
+ **bundle / adapter** model and settles the durable contracts `1.0` will freeze.
32
+
33
+ - **One canonical ref grammar.** Refs are `[bundle//]conceptId` — a
34
+ subdir-qualified concept id such as `skills/code-review` or `memories/vpn-note`
35
+ — replacing the pre-`0.9` `type:name` spelling. Durable state stores the
36
+ fully-qualified form; the short bundle-omitted form is input sugar. This is a
37
+ deliberate, one-time break, taken pre-`1.0` while it is still cheap.
38
+ - **Format-neutral bundles.** Installed sources are bundles, each recognized by
39
+ a built-in adapter (Agent Skills, Claude/OpenCode commands and agents,
40
+ knowledge, YAML workflows, tasks, env/secret files, scripts, OKF and LLM-wiki
41
+ knowledge bases) instead of a closed asset-type list.
42
+ - **Storage consolidation.** The durable databases collapse from four to three
43
+ (`state.db` / `index.db` / a separate `logs.db`); config migrates from the
44
+ flat `stashDir` / `sources` / `installed` keys to `bundles` / `defaultBundle`.
45
+ The one-time cutover is journaled and crash-resumable via `akm migrate apply`,
46
+ with a verified backup taken first.
47
+ - **Debt paydown.** The improve / proposal / workflow internals are decomposed
48
+ onto one file-change transaction model and an ambient run context, the
49
+ deprecated `0.8` CLI aliases are removed, and the `vault` asset type is
50
+ retired in favor of `env` / `secret`.
51
+
52
+ In short: `0.9` reduces ambiguity, pays down pre-`1.0` debt, and arrives at a
53
+ small, durable core ready for the `1.0` freeze.
54
+
55
+ ### The 0.9.x series
56
+
57
+ `0.9.x` is a series of refactoring and clean-up releases. The intent is to
58
+ have **all technical debt paid off and all planned breaking changes handled
59
+ before the 0.10.x series begins**. To get there quickly, 0.9.x patch releases
60
+ may include breaking changes (see [STABILITY.md](STABILITY.md)); every
61
+ break ships with a CHANGELOG migration note.
62
+
63
+ Alongside the bug fixes and compatibility improvements, `0.9.x` also focuses
64
+ on **tuning the improve processes** — reflect, distill, consolidate, memory
65
+ inference, graph extraction, and proactive maintenance — and **settling the
66
+ final design of those features** so the `0.10.0` release starts from a
67
+ finished improve surface rather than one still being reshaped.
68
+
69
+ ## 0.10
70
+
71
+ The `0.10.x` series is focused on **bug fixes and tuning** on top of the
72
+ debt-free 0.9 core — no new architecture. With the clean-up done, 0.10.x
73
+ attempts to return to the normal semver discipline: breaking changes only in
74
+ major and minor releases, never in patches.
75
+
76
+ ## 0.X
77
+
78
+ There may be other minor releases between 0.10.x and 1.0.0. The goal is to minimize the number of minor releases after 0.10.x, and they will only be used for addressing breaking changes that are justifiable before the 1.0.0 release.
79
+
80
+ ## 1.0
81
+
82
+ Release `1.0` is focused on freezing the public contract and shipping the first
83
+ stable ecosystem layer around that core.
84
+
85
+ - Freeze the supported source model, the `[bundle//]conceptId` ref format,
86
+ search behavior, and write-target rules — the surfaces
87
+ [STABILITY.md](STABILITY.md)'s own 1.0 contract-freeze section
88
+ already names — and settle the surfaces it currently classifies as
89
+ Evolving or Experimental.
90
+ - Carry the `0.8` agent and improvement workflow forward as a stable,
91
+ documented product surface rather than a collection of pre-release features.
92
+ - Ship an official akm SDK for building integrations against the stable v1
93
+ contract instead of reverse-engineering CLI behavior.
94
+ - Ship in-process akm plugins for Claude Code and OpenCode, built on that SDK,
95
+ so those tools can integrate more deeply without changing the CLI-first core
96
+ model that akm itself relies on.
97
+ - Keep the CLI as the canonical foundation so the SDK and plugin story extends
98
+ the existing system rather than forking it into separate integration models.
99
+
100
+ In short: `1.0` is where akm stops being only a strong CLI and becomes a stable
101
+ platform for both direct use and deeper tool integration.
102
+
103
+ ## Scope Notes
104
+
105
+ - The CLI remains the foundation in both releases.
106
+ - `0.9` prioritizes hardening over expansion.
107
+ - `1.0` adds the SDK and in-process plugin story on top of a frozen core, not
108
+ instead of it.
109
+ - The roadmap assumes the `0.8.0` redesign is the baseline; later releases are
110
+ about stabilizing and extending that baseline, not replacing it.
111
+ - Specific features may move between releases as implementation and testing
112
+ shake out, but the themes above are the intended direction.