akm-cli 0.9.27-alpha.1 → 0.9.27-alpha.3
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.
- package/CHANGELOG.md +131 -0
- package/LICENSE +3 -4
- package/dist/assets/prompts/distill-lesson-system.md +29 -7
- package/dist/commands/improve/consolidate/coverage.js +71 -17
- package/dist/commands/improve/consolidate/pair-pass.js +11 -8
- package/dist/commands/improve/consolidate.js +63 -1
- package/dist/commands/improve/distill-guards.js +9 -10
- package/dist/commands/improve/distill.js +62 -18
- package/dist/commands/improve/preparation.js +14 -1
- package/dist/commands/improve/stage.js +34 -52
- package/dist/commands/proposal/drain.js +90 -22
- package/dist/commands/proposal/proposal-types.js +1 -1
- package/dist/core/config/schema/improve-processes.js +3 -3
- package/dist/core/paths.js +0 -9
- package/dist/storage/repositories/improve-ledger-repository.js +4 -1
- package/docs/README.md +1 -2
- package/docs/integration/bundling-akm.md +1 -1
- package/docs/migration/v0.8-to-v0.9.md +3 -1
- package/docs/reference/README.md +1 -1
- package/docs/reference/cli.md +7 -4
- package/docs/reference/data-and-telemetry.md +1 -1
- package/package.json +1 -1
package/docs/README.md
CHANGED
|
@@ -49,7 +49,6 @@ Working on akm itself, not just using it.
|
|
|
49
49
|
|
|
50
50
|
- [Maintainer Docs](https://github.com/itlackey/akm/blob/main/docs/maintainers/README.md) -- Start here: local development, measuring improvement, and the curate contract
|
|
51
51
|
- [Local Development](https://github.com/itlackey/akm/blob/main/docs/maintainers/local-development.md) -- Dogfooding akm while editing its own source
|
|
52
|
-
- [akm-eval](https://github.com/itlackey/akm/blob/main/docs/maintainers/eval.md) -- Standalone toolkit for measuring whether `akm improve` is working
|
|
53
52
|
- [Curate Workmap](https://github.com/itlackey/akm/blob/main/docs/maintainers/curate-workmap.md) -- The current `akm curate` contract and the highest-value next fixes
|
|
54
53
|
|
|
55
54
|
## Look up details
|
|
@@ -100,7 +99,7 @@ Source articles for the dev.to publishing pipeline (historical record). See
|
|
|
100
99
|
- [itlackey/akm-registry](https://github.com/itlackey/akm-registry) -- the official registry index that powers built-in discovery
|
|
101
100
|
- [itlackey/akm-plugins](https://github.com/itlackey/akm-plugins) -- optional integrations for tools like OpenCode
|
|
102
101
|
- [itlackey/akm-bench](https://github.com/itlackey/akm-bench) -- the standalone benchmark harness for measuring agent performance with akm
|
|
103
|
-
- [itlackey/akm-eval](https://github.com/itlackey/akm-eval) -- the eval framework and tools for akm asset quality
|
|
102
|
+
- [itlackey/akm-eval](https://github.com/itlackey/akm-eval) -- the eval framework and tools for akm asset quality
|
|
104
103
|
|
|
105
104
|
---
|
|
106
105
|
|
|
@@ -266,7 +266,7 @@ rather than rely on `$HOME`-derived defaults (names verified against
|
|
|
266
266
|
| `AKM_CONFIG_DIR` | `config.json`'s directory. |
|
|
267
267
|
| `AKM_DATA_DIR` | Durable, non-regenerable data: **`index.db` and `state.db` live here.** This is the directory a migration snapshot's safety copy sits beside. |
|
|
268
268
|
| `AKM_CACHE_DIR` | Regenerable cache: registry downloads, config backups, task logs. Safe to discard between image builds (not between boots of the same running install). |
|
|
269
|
-
| `AKM_STATE_DIR` | **Not** where `state.db` lives, despite the name — this is the XDG "state" directory. Holds scheduled-task invocation context, companion-plugin hook state (Claude Code / OpenCode hook logs), and, per stash, `akm improve`'s
|
|
269
|
+
| `AKM_STATE_DIR` | **Not** where `state.db` lives, despite the name — this is the XDG "state" directory. Holds scheduled-task invocation context, companion-plugin hook state (Claude Code / OpenCode hook logs), and, per stash, `akm improve`'s whole-run lock (`locks/`) — see [Storage locations](https://github.com/itlackey/akm/blob/main/docs/architecture/internals/storage-locations.md). Set it anyway if you schedule akm tasks inside the image, so that context is captured consistently rather than falling back to `$HOME/.local/state/akm`. |
|
|
270
270
|
|
|
271
271
|
Set all five to paths that persist across container restarts (a mounted
|
|
272
272
|
volume), or `akm migrate apply` will see an empty `state.db` on every boot
|
|
@@ -144,7 +144,9 @@ step is idempotent — a second run reports nothing pending. 0.9.17-alpha.4
|
|
|
144
144
|
removed that step: `akm migrate` no longer relocates these files, and one left
|
|
145
145
|
at an old path is inert (nothing reads it). Two of the five writers no longer
|
|
146
146
|
exist either — the improve ledger replaced `distill-rejected/`, and the
|
|
147
|
-
write-only `eval-cases/` path was removed.
|
|
147
|
+
write-only `eval-cases/` path was removed. A third, `measurement/verdicts/`, went
|
|
148
|
+
with the `scripts/akm-eval` toolkit that wrote it, which has since left this
|
|
149
|
+
repository ([akm-eval](https://github.com/itlackey/akm/blob/main/docs/maintainers/eval.md)).
|
|
148
150
|
`$STASH/.akm/memory-cleanup/` did not move; it is the one confirmed exception
|
|
149
151
|
to the rule (see Storage locations, above).
|
|
150
152
|
|
package/docs/reference/README.md
CHANGED
|
@@ -17,4 +17,4 @@ Authoritative reference documentation for the akm CLI and its data.
|
|
|
17
17
|
- [Website Sources](https://github.com/itlackey/akm/blob/main/docs/reference/website-sources.md) -- The pluggable fetcher API behind `akm import <url>` and other URL-based knowledge reads
|
|
18
18
|
- [Data & Telemetry](data-and-telemetry.md) -- Exactly what akm reads and writes on your machine (no remote telemetry)
|
|
19
19
|
|
|
20
|
-
See also: [akm-eval](https://github.com/itlackey/akm
|
|
20
|
+
See also: [akm-eval](https://github.com/itlackey/akm-eval) -- the evals and benchmarks for measuring whether `akm improve` is working, and the repo-root [Roadmap](https://github.com/itlackey/akm/blob/main/ROADMAP.md) -- high-level focus for upcoming releases.
|
package/docs/reference/cli.md
CHANGED
|
@@ -2492,16 +2492,19 @@ day; an asset a stage looked at and left unchanged is revisited after 7 days,
|
|
|
2492
2492
|
or as soon as new feedback (or, for consolidation, an edit) arrives.
|
|
2493
2493
|
|
|
2494
2494
|
Consolidation's promotion of a memory into `knowledge/` is the exception to the
|
|
2495
|
-
7-day rule: once a promotion is accepted or rejected,
|
|
2496
|
-
|
|
2495
|
+
7-day rule: once a promotion is accepted or rejected, or the model judged the
|
|
2496
|
+
memory and proposed nothing, the memory is not offered to the model again until
|
|
2497
|
+
its body changes, however long that takes. The ledger
|
|
2497
2498
|
records the body hash the promotion was decided against and compares it with
|
|
2498
2499
|
the memory's current body (frontmatter edits do not count), the same
|
|
2499
2500
|
content-driven rule the consolidate pair pass uses. A promotion decided by an
|
|
2500
|
-
older release, which recorded no hash, keeps the old windows.
|
|
2501
|
+
older release, which recorded no hash, keeps the old windows. A memory whose
|
|
2502
|
+
body equals that of a consolidate promotion rejected on or after 2026-09-29 is
|
|
2503
|
+
held the same way, under whatever name it has. Consolidation
|
|
2501
2504
|
also does not promote a memory that `knowledge/` already covers: before it
|
|
2502
2505
|
queues a promotion it compares the memory with the 20 `knowledge/` docs in its
|
|
2503
2506
|
bundle nearest to it by stored vector, and skips the memory when one of them
|
|
2504
|
-
holds at least
|
|
2507
|
+
holds at least 30% of its distinct 5-word shingles (skip reason
|
|
2505
2508
|
`dedup_covered_by_knowledge` in the result's `consolidation.skipReasons`). A
|
|
2506
2509
|
covering doc that ranks lower than the 20th nearest goes unseen. With no stored
|
|
2507
2510
|
vector (semantic search off, or the memory not indexed yet) that check does
|
|
@@ -195,7 +195,7 @@ the set of types the code actually emits at HEAD (verified against every
|
|
|
195
195
|
| `reflect_completed` | Reflect phase produced a proposal | `ref` |
|
|
196
196
|
| `improve_reflect_outcome` | Per-asset reflect result | `ref`, `ok`, `durationMs`, `reason` |
|
|
197
197
|
| `propose_invoked` | `akm proposal new` | `ref` |
|
|
198
|
-
| `distill_invoked` | Distill phase inside the `akm improve`/`akm proposal new` pipeline. **`akm distill` is not a CLI command** — there is no standalone verb by that name | `ref`, outcome (`queued`, `skipped` with a `skipReason` such as `lesson_exists` or `conflict_noop`, `llm_failed`, `validation_failed`, `quality_rejected`, `review_needed`) |
|
|
198
|
+
| `distill_invoked` | Distill phase inside the `akm improve`/`akm proposal new` pipeline. **`akm distill` is not a CLI command** — there is no standalone verb by that name | `ref`, outcome (`queued`, `skipped` with a `skipReason` such as `lesson_exists`, `nothing_reusable` or `conflict_noop`, `llm_failed`, `validation_failed`, `quality_rejected`, `review_needed`) |
|
|
199
199
|
| `extract_invoked` | `akm proposal extract --type <harness>` / `--auto`, or improve-stage session extraction | `outcome`, `sessionId`, `harness` |
|
|
200
200
|
| `extract_triaged` | The pre-LLM extract triage gate evaluated at least one session | `evaluated`, `passed`, `triagedOut`, `sourceRun` (aggregated) |
|
|
201
201
|
| `schema_repair_invoked` | The schema-repair pass inside `akm improve` (`runSchemaRepairPass`) attempts to patch missing frontmatter on an asset that failed schema validation. **There is no `akm lint --repair` flag** — `lint` has `--fix`/`--auto-fix`, unrelated to this event | `ref`, outcome |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "akm-cli",
|
|
3
|
-
"version": "0.9.27-alpha.
|
|
3
|
+
"version": "0.9.27-alpha.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "akm (Agent Knowledge Manager) — a portable, local-first capability library for AI agents. Discover, load, share, and improve reusable skills, scripts, workflows, and knowledge across any shell-capable coding agent, including Claude Code, OpenCode, and Cursor.",
|
|
6
6
|
"keywords": [
|