Skip to content

Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors

Rust

fix(auto-improve): drop the always-pending status line from the pending sidecar (#624)

AkitaOnRailsd6bc20867e77
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 602c1ff4..6a1d6792 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
+### Changed
+- The `_pending/auto-improve/` sidecar no longer renders a `status:` line
+ (#624). It was written once at staging and could never change from
+ `pending` — no code path updates or garbage-collects the sidecar — so it
+ contradicted design principle 14 (SQLite owns approval status) and misled a
+ human (or a second agent) reading the file. Status lives in
+ `ai-memory pending-writes list` / SQLite; the sidecar is a staging-time
+ snapshot.
+
### Fixed
- `finalize-session --agent hermes` (and `claude-desktop`, `crush`, `other`)
is accepted again (#623). These agents are captured and stored, but
diff --git a/crates/ai-memory-wiki/src/wiki.rs b/crates/ai-memory-wiki/src/wiki.rs
index fcad38cb..07c3da74 100644
--- a/crates/ai-memory-wiki/src/wiki.rs
+++ b/crates/ai-memory-wiki/src/wiki.rs
@@ -2129,7 +2129,6 @@ fn render_auto_improve_sidecar(detail: &AutoImproveProposalDetail) -> WikiResult
"# Pending auto-improvement proposal\n\n\
- proposal_id: `{}`\n\
- run_id: `{}`\n\
- - status: `{}`\n\
- operation: `{}`\n\
- target_path: `{}`\n\
- kind: `{}`\n\
@@ -2144,7 +2143,6 @@ fn render_auto_improve_sidecar(detail: &AutoImproveProposalDetail) -> WikiResult
## Proposed body\n\n{}\n",
detail.summary.id,
detail.summary.run_id,
- detail.summary.status.as_str(),
detail.summary.operation.as_str(),
detail.summary.target_path.as_str(),
detail.summary.kind,
diff --git a/docs/auto-improvement-loop.md b/docs/auto-improvement-loop.md
index 239aeafd..4aebdd8c 100644
--- a/docs/auto-improvement-loop.md
+++ b/docs/auto-improvement-loop.md
@@ -15,7 +15,11 @@ What that means for you:
- **Solo with an LLM**: the default is fine — proposals are small,
bounded, audited (every one lands in the pending-writes trail with
evidence quotes and a confidence score), and reversible via wiki
- history. Watch `_pending/` for a week if you want to build trust.
+ history. Run `ai-memory pending-writes list` for a week if you want to
+ build trust — that (and SQLite) is the source of truth for a proposal's
+ status. The `_pending/auto-improve/` sidecar files are a human-readable
+ snapshot frozen at staging time; they do not track a proposal to
+ approved/applied/rejected.
- **Shared / team server**: set `[auto_improve] require_approval =
true`. On a server several people trust, an LLM should not
auto-apply edits nobody reviewed — proposals then wait in