From 2dbfb50080f9e238adf47bffd2a5ceaa83390b7c Mon Sep 17 00:00:00 2001 From: Ralph Chang Date: Thu, 30 Apr 2026 19:54:24 +0800 Subject: [PATCH] chore(release): prepare v1.5.1 --- CHANGELOG.md | 15 +++++++++++++++ RELEASE_NOTES.md | 35 +++++++++++++++++++++++++++++++++++ package.json | 2 +- 3 files changed, 51 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c9adad0..0f95ec2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,21 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.5.1] - 2026-04-30 + +### Added + +- Per-workspace evidence log for extraction, promotion, reinforcement, render, storage, and hook lifecycle events. +- `memory-diag health --json` for machine-readable diagnostics. +- `memory-diag explain` for per-memory render status, strength, reasons, and evidence event IDs. +- `memory-diag trace --memory ` for memory lifecycle history. +- UTC calendar-day reinforcement gate so repeated matches cannot inflate a memory multiple times in the same day. + +### Changed + +- Retention constants and calculations moved to `src/retention.ts`. +- `safetyCritical` is now fully inert: no retention multiplier and no type-cap bypass, while remaining JSON-compatible. + ## [1.5.0] - 2026-04-29 ### Added diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index ce7ba27..82f53c7 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -1,5 +1,40 @@ # Release Notes +## 1.5.1 (2026-04-30) + +### Evidence Loop and Explainability + +This release adds an evidence-based audit trail for memory lifecycle events and user-facing diagnostics for understanding why memories are rendered, promoted, or rejected. + +> **Evidence before sublimation.** Every memory decision can be traced. + +### What Changed + +- **Evidence log**: extraction, promotion, reinforcement, render, and storage events are now recorded in a per-workspace `events.jsonl` with 90-day retention and 5000-event cap. +- **User explainability**: `memory-diag explain` shows per-memory render status with strength, reasons, and evidence. `memory-diag trace --memory ` shows the full lifecycle history. +- **Machine-readable diagnostics**: `memory-diag health --json` outputs structured `MemoryDiagJSON` for scripting. +- **Calendar-day reinforcement gate**: reinforcement now requires distinct UTC calendar days, preventing repetitive-task gaming that could inflate a memory's strength within a single day. +- **SafetyCritical deprecation complete**: the `safetyCritical` field no longer affects retention strength or type-cap bypass. All memories fade by the same rules. +- **Retention module extraction**: retention constants and calculations moved to `src/retention.ts` for cleaner separation. + +### Privacy + +- Evidence text previews are credential-redacted. Memory content is stored as truncated hashes, never in full. +- Diagnostics default to redacted output. `--raw` is available for maintainers. + +### Upgrade Notes + +- No configuration changes required. +- Existing workspace memory files remain compatible. +- Evidence logs are created automatically; no migration needed. + +### Validation + +- `npm run typecheck` +- `npm test` — 271 tests passing + +--- + ## 1.5.0 (2026-04-29) ### Retention Decay Model diff --git a/package.json b/package.json index 18ad99b..a879773 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "opencode-working-memory", - "version": "1.5.0", + "version": "1.5.1", "description": "Three-layer memory architecture for OpenCode with workspace memory and hot session state", "type": "module", "main": "index.ts",