@aeondave/pi-persona-mind 0.9.7 → 0.9.8

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 (54) hide show
  1. package/AGENTS.md +137 -137
  2. package/CHANGELOG.md +287 -282
  3. package/LICENSE +24 -24
  4. package/README.md +1 -1
  5. package/docs/DESIGN.md +605 -605
  6. package/docs/MEMORY-RESEARCH.md +163 -163
  7. package/package.json +11 -2
  8. package/src/core/auto-optimize.ts +323 -323
  9. package/src/core/backlog.ts +228 -228
  10. package/src/core/blocked.ts +38 -38
  11. package/src/core/capture.ts +155 -155
  12. package/src/core/context-budget.ts +74 -74
  13. package/src/core/handoff-store.ts +111 -111
  14. package/src/core/handoff.ts +70 -70
  15. package/src/core/host-compat.ts +16 -16
  16. package/src/core/ids.ts +59 -59
  17. package/src/core/inject.ts +247 -247
  18. package/src/core/knowledge-review.ts +107 -107
  19. package/src/core/memory-read.ts +34 -34
  20. package/src/core/memory.ts +321 -321
  21. package/src/core/migrate.ts +713 -713
  22. package/src/core/mind-settings.ts +54 -54
  23. package/src/core/optimize-history.ts +163 -163
  24. package/src/core/optimize-service.ts +189 -189
  25. package/src/core/optimize.ts +127 -127
  26. package/src/core/retrieval.ts +164 -164
  27. package/src/core/scanner.ts +146 -146
  28. package/src/core/scope.ts +201 -201
  29. package/src/core/service.ts +720 -720
  30. package/src/core/session-memory.ts +71 -71
  31. package/src/core/store.ts +1002 -1002
  32. package/src/extension/activity.ts +79 -79
  33. package/src/extension/auto-optimize-session.ts +143 -143
  34. package/src/extension/auto-optimize.ts +565 -565
  35. package/src/extension/handoff.ts +23 -23
  36. package/src/extension/knowledge-review.ts +229 -229
  37. package/src/extension/memory-inspector.ts +82 -82
  38. package/src/extension/mind-actions.ts +38 -38
  39. package/src/extension/mind-worker.ts +32 -32
  40. package/src/extension/persona-dependency.ts +76 -76
  41. package/src/extension/reference-anchor.ts +48 -48
  42. package/src/extension/review-evidence.ts +222 -222
  43. package/src/extension/worker-memory-anchor.ts +28 -28
  44. package/src/session-memory.ts +127 -127
  45. package/src/tools/backlog.ts +126 -126
  46. package/src/tools/memory-handoff.ts +30 -30
  47. package/src/tools/memory-history.ts +46 -46
  48. package/src/tools/memory.ts +6 -4
  49. package/src/ui/card-frame.ts +161 -161
  50. package/src/ui/inspector-frame.ts +44 -44
  51. package/src/ui/memory-inspector.ts +464 -464
  52. package/src/ui/mind-result-card.ts +48 -48
  53. package/src/ui/presentation.ts +87 -87
  54. package/src/ui/session-note-card.ts +58 -58
package/CHANGELOG.md CHANGED
@@ -1,282 +1,287 @@
1
- # Changelog
2
-
3
- ## [0.9.7](https://github.com/AeonDave/pi-persona-mind/releases/tag/v0.9.7) - 2026-11-30
4
-
5
- - Require Pi 1.7.0. Mind reads settings and stores memory in the profile selected by `--agent-dir`
6
- or `PI_CODING_AGENT_DIR`. `PI_AGENT_DIR` still works when it is the only profile override.
7
- - Refresh the supervisor's memory from its active branch and scoped stores after native
8
- compaction inside a tool loop. A cue saved during that run can reach the next model response.
9
- - Automatic consolidation reaches older records while new ones arrive, advances past records
10
- that exceed a window's budget and honors a foreground settle during cancellation. An unrelated
11
- record between two compatible notes no longer keeps them out of the same review window when the pair fits.
12
- - Repeating an identical automatic capture reuses its active session note and stays quiet.
13
- Collapsed note cards show the note text. Optional suggestions preserve storage warnings.
14
-
15
- ## [0.9.6](https://github.com/AeonDave/pi-persona-mind/releases/tag/v0.9.6) - 2026-11-27
16
-
17
- - Delegated workers can receive their selected skills and Mind memory together. Previously Mind
18
- could cause Persona to reject the delegation before the worker's first model call.
19
- - Mind now requires Pi 1.6.1. Its memory, backlog and delegated-worker integration are tested
20
- against that host.
21
-
22
- ## [0.9.5](https://github.com/AeonDave/pi-persona-mind/releases/tag/v0.9.5) - 2026-11-25
23
-
24
- - Saved Persona workers rank lean memory by the launch task and show relative ages as of the
25
- launch turn. They still load current durable memory for Persona to check against the saved
26
- worker contract.
27
-
28
- ## [0.9.4](https://github.com/AeonDave/pi-persona-mind/releases/tag/v0.9.4) - 2026-11-23
29
-
30
- - A memory replacement or consolidation refused before anything was written (a full store, a lock
31
- timeout, any failure that left the memory unchanged) no longer leaves a permanent `prepared` receipt.
32
- Thirty-two of them used to block every later replacement and consolidation on that store. Receipts
33
- left prepared by earlier versions carry no store fingerprint and stay protected, so a store already
34
- holding 32 of them still refuses replacements until its history file is repaired by hand.
35
- - Words after a dotted version are searchable again: `node:22.19-alpine` matches `alpine`, `3.12-slim`
36
- matches `slim`. Numeric versions stay exact (`22.19` still does not match `22.19-alpine`), and a tail
37
- word is never treated as a negation.
38
- - Automatic memory review retries an interrupted input once, not on every turn. A second interruption
39
- parks that window until its records change, and rotation moves past it instead of stopping there.
40
- Turning automatic review off and on no longer resets the count. When a review is parked, the status
41
- line says so and a result card reports that it was interrupted twice. A worker that reaches its
42
- 180-second deadline is a failure and is not retried with pi-persona 1.20.0 or later, which reports it
43
- as failed; earlier pi-persona versions report it as a stop, so it is retried once and then parked.
44
- - A skipped review window no longer marks another window's pending retry as reviewed. An input whose
45
- review was interrupted could be recorded as settled when rotation reached a different window, so it
46
- was never reviewed. The retry is now kept, or dropped without a receipt when its own records are gone.
47
- - The 32-handoff limit is per persona. One persona's handoffs no longer stop the others from saving;
48
- only the 128 KiB file limit is shared, and a save it refuses says how many entries the caller and the
49
- other personas hold. Handoff refusals for an unreadable file say what is wrong with it (unsafe path, size,
50
- version, missing with a backup, corrupt or inaccessible), name the file and no longer mention optimizing.
51
- - `remember` with `supersedes` is no longer blocked by a corrupt memory tier it does not write to, when
52
- that tier recovers completely from its backup. It still refuses, naming the store, when another tier
53
- cannot be read completely, because that tier could hide the fact being replaced. A backup that exists
54
- but cannot be used is now reported as a warning on every read instead of being treated as absent.
55
- - Session shutdown waits at most 5 seconds for a Persona worker's completion; local apply and
56
- persistence work is still joined in full.
57
- - The memory evaluation reports held-out false positives both strictly and with its acceptable-match
58
- labels (5 and 5 strictly; 5 and 3 with labels), and states that the held-out set was written alongside
59
- the implementation.
60
-
61
- ## [0.9.3](https://github.com/AeonDave/pi-persona-mind/releases/tag/v0.9.3) - 2026-11-22
62
-
63
- - Improve lexical recall for camelCase/acronyms and vowel accents with weaker fallback scores;
64
- preserve Unicode, exact paths, numeric versions and negation. Extend the offline evaluator with
65
- the preceding implementation, negative controls and a separate labelled holdout.
66
- - Retain before/after receipts for ordinary explicit memory replacements in the existing bounded
67
- history. Discover them with `memory history` or `/mind history`, then page the full retained detail.
68
- Historical facts stay outside active recall; ordinary replacement undo is deliberately unavailable.
69
- - Add explicit project/persona handoffs with goals, completed/pending work, next steps, references
70
- and native session/branch provenance. Read them in later sessions; completion and forgetting require
71
- the current revision. No automatic expiry, injection, model call or worker restoration is involved.
72
- - Target and qualify Pi 1.6.0, keeping all four development host packages aligned and unbundled.
73
- - Recheck the accepting memory owner and replacement expiry under the write lock. Refuse malformed
74
- history/handoff records, keep discovery output bounded, and distinguish branch navigation from
75
- ordinary native-session appends.
76
-
77
- - Preserve recording provenance and lineage when an identical memory is recorded again without
78
- replacement metadata.
79
- - Refuse `remember` replacements whose `supersedes` target exists only in another memory tier,
80
- instead of reporting success while keeping both facts active. No cross-tier deletion is implied.
81
-
82
- ## [0.9.2](https://github.com/AeonDave/pi-persona-mind/releases/tag/v0.9.2) - 2026-11-18
83
-
84
- - F10 divides its title, content and keys with the same rules as F9, and its key legend uses the
85
- same glyphs for the plain keys (`↑↓`, `⏎`, `esc`). The margin above and below the content comes
86
- from the shared inspector frame of pi-persona 1.19.0; with 1.18.1 the window keeps its previous
87
- height.
88
-
89
- ## [0.9.1](https://github.com/AeonDave/pi-persona-mind/releases/tag/v0.9.1) - 2026-11-18
90
-
91
- - Require pi-persona 1.18.1 or later for the shared F9/F10 inspector frame.
92
-
93
- - Recheck the live memory file under the recovery lock before restoring a backup, preserving facts
94
- committed by another writer while recovery was waiting.
95
- - Preserve negated capture requests: “Never remember that …” no longer creates a positive session
96
- note; negated decision premises are retained instead of discarded before `:`. Affirmative requests
97
- whose fact contains negative wording, such as “Remember that I never …”, remain valid.
98
- - Acknowledge backlog reminders by both ID and the displayed deadline, preserving concurrent
99
- rescheduling instead of silently consuming the new reminder.
100
- - Recheck persisted memory content before promotion through the shared content guard. Unsafe
101
- out-of-band records cannot move into durable/shared memory, and refusal preserves both stores.
102
- - Suppress late status counts and storage warnings after persona changes or shutdown, using the
103
- same accepting-owner guard as other asynchronous memory operations.
104
- - Simplify the README around memory lifetimes, retrieval, F10 and deliberate maintenance, with
105
- technical details linked to the design contract.
106
- - Share Persona's F9 window frame in F10, including responsive dimensions, gutters and theme
107
- border. Page navigation follows the visible content without gaps; narrow windows preserve the
108
- selected record and search focus belongs only to the active native input.
109
-
110
- ## [0.9.0](https://github.com/AeonDave/pi-persona-mind/releases/tag/v0.9.0) - 2026-11-13
111
-
112
- - Require pi-persona 1.18.0 or later for this release. Mind custom entries use the shared
113
- primary-click expansion contract, preserving state across ordinary renderer rebuilds.
114
- - Invalidate consolidation and staged plans on native branch navigation without treating ordinary
115
- appended turns as owner changes. Old workers cannot apply or report on the new branch;
116
- automatic maintenance retains its existing fresh-worker retry policy.
117
- - Join admitted knowledge-review application through approval, persistence, receipt finalization
118
- and cleanup during shutdown. Revocation does not pretend to roll back already committed writes.
119
- - Keep evidence root/file checks on the same native canonicalization path, including Windows
120
- short-name aliases. Cross-platform swap tests retain real symlink and descriptor defenses.
121
- Lifecycle tests explicitly advance automatic admission timers on the minimum supported Node.
122
- - Add explicit consolidation and evidence-grounded knowledge-review actions to F10. Review selected
123
- facts or bounded scope windows against parent-selected repository files and active-branch user-role
124
- text on the session model; show cited findings before separately approved corrections.
125
- - Revalidate reviewed evidence inside guarded optimizer application and retain the existing CAS,
126
- history and undo path. Knowledge review shares maintenance admission/accounting; retirement findings
127
- remain recommendations, not deletions. Owner/input/model/branch changes cancel pending review work.
128
-
129
- - Add a read-only F10 memory inspector (`/mind browse`) with scoped facts, the last prepared Mind
130
- context, and a bounded active-branch conversation timeline (`/mind timeline`). Search, paginated
131
- lists and scrollable detail/source views do not start model calls or change storage.
132
- - Attribute new explicit save receipts to their accepting owner and target. Open only matching native
133
- recording sources; keep legacy/free-text provenance literal and distinguish recordings from truth.
134
- Session/branch/owner changes revoke open views and prepared-context snapshots.
135
-
136
- - Show the active worker as lowercase `mind`; successful automatic consolidation emits one informative
137
- toast instead of routine result cards. Proposal audits and durable undo history remain available;
138
- explicit reports and important warnings stay visible.
139
- - Include manual worker launches in automatic cooldown/token accounting, preserve their completed
140
- digests, and keep interrupted manual work out of automatic retries. Hold the active slot until a
141
- cancelled worker settles when attempt persistence fails.
142
- - Refuse optimization previews invalidated while their store read is in flight.
143
- - Use the same lexical/path ranker for session recall and archive retrieval, including punctuation,
144
- source references and CJK text. Save receipts explain bounded context selection instead of promising
145
- that every saved fact will reappear automatically.
146
- - Parse each retrieval query once per search instead of once per record, preserving ranking and
147
- tie order while reducing repeated work in large archives.
148
- - Restore only the latest automatic attempt for each target; persist uncertain terminal failures
149
- without advancing coverage and surface attempt-persistence failures after cancellation joins.
150
- - Handle Windows sharing conflicts while acquiring the dead-lock recovery gate as bounded
151
- contention, preserving exclusive callbacks and the existing ownership checks.
152
- - Qualify long-project memory at the 10,000-entry store limit: old-fact recall/read/injection,
153
- pagination, reopen, capacity refusal, consolidation, undo and preservation of unrelated facts.
154
- - Update live qualification to verify the actual toast/audit/receipt contract, exact multi-source
155
- application and successful undo in both Persona engines.
156
- - Resolve installed Pi qualification dependencies through the selected host's public package
157
- exports, including ordinary hoisted npm layouts.
158
- - Use lowercase Mind card headings and review notification prefixes while preserving saved history
159
- and custom titles.
160
- - Keep automatic maintenance quiet: persist the full proposal audit without a visible proposal card,
161
- omit no-op notifications, and preserve manual detail and important warnings.
162
- - Limit background application to multi-source consolidation; skip model admission without a
163
- compatible pair and leave single-record edits available to explicit workflows. This is an eligibility
164
- guard, not a semantic-truth guarantee. Ordinary LLM-selected global memory saves remain available.
165
- - Preserve short-objective lifetime and earliest expiry when consolidating project working memory.
166
- - Require explicit project/persona/shared scope for every long-term remember at both the public tool and
167
- MindService boundary; short-term memory stays project-scoped by default, and objective kind no longer
168
- changes the caller-selected lifetime.
169
- - Route AUTO strong direct-user cues only to native active-branch session notes, with explicit session-only
170
- receipts and no durable fallback or optimizer dirtying. Session tool corrections include canonical
171
- examples; redundant `scope=session` is accepted without making scope mandatory.
172
- - Target the current Pi 1.5.2 host and align offline qualification metadata.
173
- - Standalone Mind entries use Persona's one shared card frame through a versioned local presentation
174
- query, honoring native padding and configured expand keys. Native memory/backlog tool shells remain
175
- host-owned; retained entries have a readable plain-text fallback without a compatible frame provider.
176
- - Expanded save receipts expose their original IDs and lifetime evidence; compact summaries disclose
177
- hidden detail. Explicit scope mismatches cannot tombstone a session note through another tier.
178
- - Extend the existing offline evaluator with paired sentinel outcomes and provenance-checked token
179
- reference diagnostics. Calculation is language-agnostic; no runtime ranking, budget, dependency,
180
- service or model-call changes are introduced. Published reference vectors are not billing counts.
181
-
182
- ## [0.8.7](https://github.com/AeonDave/pi-persona-mind/releases/tag/v0.8.7) - 2026-10-27
183
-
184
- - Interrupted explicit optimization batches identify the tiers not yet reviewed. Worker failures
185
- and invalid proposals retain the worker's model/effort and terminal-report reference without
186
- echoing malformed model output. Invalid proposals never reach application.
187
- - Setup failures report that no tier was reviewed; cleanup failures cannot overwrite completed
188
- results or retain the active-work slot. Migration-warning tests wait for background completion,
189
- and the live smoke checks proposal order, confirmed application counts and durable undo receipts;
190
- refused or uncertain writes cannot pass as successful application.
191
-
192
- ## [0.8.6](https://github.com/AeonDave/pi-persona-mind/releases/tag/v0.8.6) - 2026-10-26
193
-
194
- - Allow bare `/mind optimize` and `/mind optimize all` to review one bounded window per currently
195
- allowed nonshared tier sequentially; home sessions allow persona only. Named targets remain
196
- single-target, and shared remains excluded from LLM review.
197
- - Report target-local skip reasons and visible batch outcomes. Skips and reviewed no-ops can continue;
198
- cancellation, owner changes, and failed, refused, or uncertain work stop later tiers. Prevent
199
- overlapping batch work; add regression coverage for these behaviors.
200
-
201
- ## [0.8.5](https://github.com/AeonDave/pi-persona-mind/releases/tag/v0.8.5) - 2026-10-26
202
-
203
- - Add `/mind optimize [project|project-long|persona]` for an immediate, bounded review by a visible Persona-hosted worker using the current session model. Changes pass Mind's validation, provenance and compare-and-swap checks; successful writes retain receipts and support guarded undo.
204
- - Remove the worker row on completion while retaining results in the conversation. Keep reviews bounded, rotate completed windows, and handle busy sessions, cancellation, stale owners and errors safely.
205
- - **Usage change:** use `/mind optimize inspect [target]` to inspect; `/mind optimize [target]` now starts a review instead.
206
-
207
- ## [0.8.4](https://github.com/AeonDave/pi-persona-mind/releases/tag/v0.8.4) - 2026-10-25
208
-
209
- - Add durable project memory and scope-preserving promotion; expose project/persona/shared scope
210
- consistently in tools, snapshots and diagnostics. Replace the shared-write boolean with scope.
211
- - Rank injected context and recall by task words, tags and repository paths; apply a combined
212
- token estimate across archive and session context, retaining explicit omissions and full reads.
213
- - Rotate bounded automatic reviews over older records and retain durable consolidation receipts.
214
- Add history and guarded undo that preserves unrelated writes and refuses stale affected facts.
215
- - Add deterministic retrieval evaluation with an explicit baseline and no semantic-quality claim.
216
-
217
- - Add automatic semantic consolidation through a visible asynchronous Mind worker on the current
218
- session model. The first new-memory burst queues an idle review; subsequent attempts require new
219
- memories and 1M main-session input tokens, excluding output/cache/worker usage. Rapid saves coalesce;
220
- new input cancels the worker. Parent validation and fingerprint checks protect application; shared
221
- memory is excluded.
222
- `/mind optimize auto [status|on|off]` controls this session, doctor reports its state, and
223
- `PI_PERSONA_MIND_OPTIMIZE=off` changes the initial default.
224
- - Require the loaded pi-persona companion protocol; without it Mind remains inactive, including
225
- direct programmatic calls. Local optimization appears as a Mind activity row in Persona's tree/F9.
226
- - Use the actual live persona for memory ownership even with selection persistence disabled;
227
- delegated workers keep their launching persona on both engines. Remove the obsolete selection mirror.
228
- - Target Pi 1.4.0 exclusively; align development packages and native event contracts, and remove
229
- the retired companion state-marker fallback. Existing memory-data imports remain available.
230
- - Add active-branch session notes, honest persistent/in-memory receipts, and full ID-based memory
231
- reads. Session notes preserve their origin across forks and never enter delegated worker context.
232
- - Add explicit, bounded memory consolidation: inspect candidates, stage exact replacements, then
233
- apply a fingerprint-checked plan. Preserve source lineage and STM expiry; refuse stale plans.
234
- - Paginate inspection to reach older facts, and distinguish slow background imports from persistent
235
- failures instead of leaving a successful import marked with a warning.
236
- - Add `/persona-mind` with `/mind` as the same-handler alias, strict command parsing, session and
237
- optimization commands, and consistent expandable command cards.
238
- - Include inline flow reports in the blocked-work hint and preserve concurrent backlog additions
239
- during expiry cleanup. Qualify package and companion integration on the current host.
240
-
241
- ## [0.8.3](https://github.com/AeonDave/pi-persona-mind/releases/tag/v0.8.3) - 2026-10-20
242
-
243
- - Read persona selection and startup `defaultPersona`/`persist` preferences from pi-persona's
244
- canonical settings store, preserving legacy marker fallback only when canonical settings are absent.
245
- - Contribute Mind's capture/nudge settings to pi-persona's unified settings panel, while retaining
246
- environment overrides and session-start snapshot behavior.
247
- - Scope marker latches and Mind-specific preference snapshots to Pi session IDs so child sessions
248
- cannot reset their supervisor's active scope or companion controls.
249
- - Match pi-persona's extension-factory snapshot for the scalar persona selectors, keeping Mind's
250
- memory scope aligned across `/new` sessions until Pi reloads/restarts extensions.
251
- - Reject malformed UTF-8 in canonical and legacy persona markers rather than deriving a replacement-character memory scope.
252
-
253
- ## [0.8.2](https://github.com/AeonDave/pi-persona-mind/releases/tag/v0.8.2) - 2026-10-19
254
-
255
- - Respect Pi's `--` CLI separator when resolving persona memory scope; prompt text resembling
256
- `--persona` no longer selects a different memory store.
257
- - Add isolated installed-Pi 1.3 qualification alongside the minimum-Pi 1.0 SDK suite, including
258
- optional pi-persona integration for model refresh and delegated read-only memory.
259
-
260
- ## [0.8.1](https://github.com/AeonDave/pi-persona-mind/releases/tag/v0.8.1) - 2026-10-13
261
-
262
- - Handle Pi 1.2 custom-triggered completion reports from their attributed `before_agent_start`
263
- message event, deduplicate follow-up nudges, and keep custom report text out of direct-user capture.
264
-
265
- ## [0.8.0](https://github.com/AeonDave/pi-persona-mind/releases/tag/v0.8.0) - 2026-10-03
266
-
267
- - Require Pi 1.0.0+ and Node.js 22.19.0+; keep host libraries and typebox as host-provided peers.
268
- - Reset capture hints and empty-store announcements when a session changes; prevent late capture
269
- notices and memory injection from leaking into the next session.
270
- - Skip migration/storage waits for ordinary input with no capture cue.
271
- - Preserve undelivered backlog alarms across slow storage reads and concurrent re-arm calls; a
272
- newly queued reminder that is already due is shown immediately, without restarting Pi.
273
- - Deduplicate a reminder's displayed deadline while acknowledgement persists, including re-arms
274
- triggered by background migration; a later deadline remains eligible.
275
- - Suggest backlog capture only for blocked nested output actually relayed by its outer tool.
276
- - Enforce erasable-only TypeScript, including store/service constructors.
277
- - Isolate test profiles; exercise capture, persistence, tool execution, display-only reminders and
278
- read-only workers in real Pi 1.0 SDK sessions with an offline provider.
279
- - Align package/lock metadata, upgrade development dependencies and pin three-platform CI actions.
280
-
281
- Older storage roots remain readable through non-destructive migration. No existing store is deleted
282
- or moved by the host compatibility update.
1
+ # Changelog
2
+
3
+ ## [0.9.8](https://github.com/AeonDave/pi-persona-mind/releases/tag/v0.9.8) - 2026-12-02
4
+
5
+ - Explain how to retry `memory recall` with `scope` when a caller passes the write-only `term` field. Invalid calls are still rejected before lookup.
6
+ - Update vulnerable transitive dependencies in the Pi 1.7.0 development environment. This does not patch the user's installed Pi host.
7
+
8
+ ## [0.9.7](https://github.com/AeonDave/pi-persona-mind/releases/tag/v0.9.7) - 2026-11-30
9
+
10
+ - Require Pi 1.7.0. Mind reads settings and stores memory in the profile selected by `--agent-dir`
11
+ or `PI_CODING_AGENT_DIR`. `PI_AGENT_DIR` still works when it is the only profile override.
12
+ - Refresh the supervisor's memory from its active branch and scoped stores after native
13
+ compaction inside a tool loop. A cue saved during that run can reach the next model response.
14
+ - Automatic consolidation reaches older records while new ones arrive, advances past records
15
+ that exceed a window's budget and honors a foreground settle during cancellation. An unrelated
16
+ record between two compatible notes no longer keeps them out of the same review window when the pair fits.
17
+ - Repeating an identical automatic capture reuses its active session note and stays quiet.
18
+ Collapsed note cards show the note text. Optional suggestions preserve storage warnings.
19
+
20
+ ## [0.9.6](https://github.com/AeonDave/pi-persona-mind/releases/tag/v0.9.6) - 2026-11-27
21
+
22
+ - Delegated workers can receive their selected skills and Mind memory together. Previously Mind
23
+ could cause Persona to reject the delegation before the worker's first model call.
24
+ - Mind now requires Pi 1.6.1. Its memory, backlog and delegated-worker integration are tested
25
+ against that host.
26
+
27
+ ## [0.9.5](https://github.com/AeonDave/pi-persona-mind/releases/tag/v0.9.5) - 2026-11-25
28
+
29
+ - Saved Persona workers rank lean memory by the launch task and show relative ages as of the
30
+ launch turn. They still load current durable memory for Persona to check against the saved
31
+ worker contract.
32
+
33
+ ## [0.9.4](https://github.com/AeonDave/pi-persona-mind/releases/tag/v0.9.4) - 2026-11-23
34
+
35
+ - A memory replacement or consolidation refused before anything was written (a full store, a lock
36
+ timeout, any failure that left the memory unchanged) no longer leaves a permanent `prepared` receipt.
37
+ Thirty-two of them used to block every later replacement and consolidation on that store. Receipts
38
+ left prepared by earlier versions carry no store fingerprint and stay protected, so a store already
39
+ holding 32 of them still refuses replacements until its history file is repaired by hand.
40
+ - Words after a dotted version are searchable again: `node:22.19-alpine` matches `alpine`, `3.12-slim`
41
+ matches `slim`. Numeric versions stay exact (`22.19` still does not match `22.19-alpine`), and a tail
42
+ word is never treated as a negation.
43
+ - Automatic memory review retries an interrupted input once, not on every turn. A second interruption
44
+ parks that window until its records change, and rotation moves past it instead of stopping there.
45
+ Turning automatic review off and on no longer resets the count. When a review is parked, the status
46
+ line says so and a result card reports that it was interrupted twice. A worker that reaches its
47
+ 180-second deadline is a failure and is not retried with pi-persona 1.20.0 or later, which reports it
48
+ as failed; earlier pi-persona versions report it as a stop, so it is retried once and then parked.
49
+ - A skipped review window no longer marks another window's pending retry as reviewed. An input whose
50
+ review was interrupted could be recorded as settled when rotation reached a different window, so it
51
+ was never reviewed. The retry is now kept, or dropped without a receipt when its own records are gone.
52
+ - The 32-handoff limit is per persona. One persona's handoffs no longer stop the others from saving;
53
+ only the 128 KiB file limit is shared, and a save it refuses says how many entries the caller and the
54
+ other personas hold. Handoff refusals for an unreadable file say what is wrong with it (unsafe path, size,
55
+ version, missing with a backup, corrupt or inaccessible), name the file and no longer mention optimizing.
56
+ - `remember` with `supersedes` is no longer blocked by a corrupt memory tier it does not write to, when
57
+ that tier recovers completely from its backup. It still refuses, naming the store, when another tier
58
+ cannot be read completely, because that tier could hide the fact being replaced. A backup that exists
59
+ but cannot be used is now reported as a warning on every read instead of being treated as absent.
60
+ - Session shutdown waits at most 5 seconds for a Persona worker's completion; local apply and
61
+ persistence work is still joined in full.
62
+ - The memory evaluation reports held-out false positives both strictly and with its acceptable-match
63
+ labels (5 and 5 strictly; 5 and 3 with labels), and states that the held-out set was written alongside
64
+ the implementation.
65
+
66
+ ## [0.9.3](https://github.com/AeonDave/pi-persona-mind/releases/tag/v0.9.3) - 2026-11-22
67
+
68
+ - Improve lexical recall for camelCase/acronyms and vowel accents with weaker fallback scores;
69
+ preserve Unicode, exact paths, numeric versions and negation. Extend the offline evaluator with
70
+ the preceding implementation, negative controls and a separate labelled holdout.
71
+ - Retain before/after receipts for ordinary explicit memory replacements in the existing bounded
72
+ history. Discover them with `memory history` or `/mind history`, then page the full retained detail.
73
+ Historical facts stay outside active recall; ordinary replacement undo is deliberately unavailable.
74
+ - Add explicit project/persona handoffs with goals, completed/pending work, next steps, references
75
+ and native session/branch provenance. Read them in later sessions; completion and forgetting require
76
+ the current revision. No automatic expiry, injection, model call or worker restoration is involved.
77
+ - Target and qualify Pi 1.6.0, keeping all four development host packages aligned and unbundled.
78
+ - Recheck the accepting memory owner and replacement expiry under the write lock. Refuse malformed
79
+ history/handoff records, keep discovery output bounded, and distinguish branch navigation from
80
+ ordinary native-session appends.
81
+
82
+ - Preserve recording provenance and lineage when an identical memory is recorded again without
83
+ replacement metadata.
84
+ - Refuse `remember` replacements whose `supersedes` target exists only in another memory tier,
85
+ instead of reporting success while keeping both facts active. No cross-tier deletion is implied.
86
+
87
+ ## [0.9.2](https://github.com/AeonDave/pi-persona-mind/releases/tag/v0.9.2) - 2026-11-18
88
+
89
+ - F10 divides its title, content and keys with the same rules as F9, and its key legend uses the
90
+ same glyphs for the plain keys (`↑↓`, `⏎`, `esc`). The margin above and below the content comes
91
+ from the shared inspector frame of pi-persona 1.19.0; with 1.18.1 the window keeps its previous
92
+ height.
93
+
94
+ ## [0.9.1](https://github.com/AeonDave/pi-persona-mind/releases/tag/v0.9.1) - 2026-11-18
95
+
96
+ - Require pi-persona 1.18.1 or later for the shared F9/F10 inspector frame.
97
+
98
+ - Recheck the live memory file under the recovery lock before restoring a backup, preserving facts
99
+ committed by another writer while recovery was waiting.
100
+ - Preserve negated capture requests: “Never remember that …” no longer creates a positive session
101
+ note; negated decision premises are retained instead of discarded before `:`. Affirmative requests
102
+ whose fact contains negative wording, such as “Remember that I never …”, remain valid.
103
+ - Acknowledge backlog reminders by both ID and the displayed deadline, preserving concurrent
104
+ rescheduling instead of silently consuming the new reminder.
105
+ - Recheck persisted memory content before promotion through the shared content guard. Unsafe
106
+ out-of-band records cannot move into durable/shared memory, and refusal preserves both stores.
107
+ - Suppress late status counts and storage warnings after persona changes or shutdown, using the
108
+ same accepting-owner guard as other asynchronous memory operations.
109
+ - Simplify the README around memory lifetimes, retrieval, F10 and deliberate maintenance, with
110
+ technical details linked to the design contract.
111
+ - Share Persona's F9 window frame in F10, including responsive dimensions, gutters and theme
112
+ border. Page navigation follows the visible content without gaps; narrow windows preserve the
113
+ selected record and search focus belongs only to the active native input.
114
+
115
+ ## [0.9.0](https://github.com/AeonDave/pi-persona-mind/releases/tag/v0.9.0) - 2026-11-13
116
+
117
+ - Require pi-persona 1.18.0 or later for this release. Mind custom entries use the shared
118
+ primary-click expansion contract, preserving state across ordinary renderer rebuilds.
119
+ - Invalidate consolidation and staged plans on native branch navigation without treating ordinary
120
+ appended turns as owner changes. Old workers cannot apply or report on the new branch;
121
+ automatic maintenance retains its existing fresh-worker retry policy.
122
+ - Join admitted knowledge-review application through approval, persistence, receipt finalization
123
+ and cleanup during shutdown. Revocation does not pretend to roll back already committed writes.
124
+ - Keep evidence root/file checks on the same native canonicalization path, including Windows
125
+ short-name aliases. Cross-platform swap tests retain real symlink and descriptor defenses.
126
+ Lifecycle tests explicitly advance automatic admission timers on the minimum supported Node.
127
+ - Add explicit consolidation and evidence-grounded knowledge-review actions to F10. Review selected
128
+ facts or bounded scope windows against parent-selected repository files and active-branch user-role
129
+ text on the session model; show cited findings before separately approved corrections.
130
+ - Revalidate reviewed evidence inside guarded optimizer application and retain the existing CAS,
131
+ history and undo path. Knowledge review shares maintenance admission/accounting; retirement findings
132
+ remain recommendations, not deletions. Owner/input/model/branch changes cancel pending review work.
133
+
134
+ - Add a read-only F10 memory inspector (`/mind browse`) with scoped facts, the last prepared Mind
135
+ context, and a bounded active-branch conversation timeline (`/mind timeline`). Search, paginated
136
+ lists and scrollable detail/source views do not start model calls or change storage.
137
+ - Attribute new explicit save receipts to their accepting owner and target. Open only matching native
138
+ recording sources; keep legacy/free-text provenance literal and distinguish recordings from truth.
139
+ Session/branch/owner changes revoke open views and prepared-context snapshots.
140
+
141
+ - Show the active worker as lowercase `mind`; successful automatic consolidation emits one informative
142
+ toast instead of routine result cards. Proposal audits and durable undo history remain available;
143
+ explicit reports and important warnings stay visible.
144
+ - Include manual worker launches in automatic cooldown/token accounting, preserve their completed
145
+ digests, and keep interrupted manual work out of automatic retries. Hold the active slot until a
146
+ cancelled worker settles when attempt persistence fails.
147
+ - Refuse optimization previews invalidated while their store read is in flight.
148
+ - Use the same lexical/path ranker for session recall and archive retrieval, including punctuation,
149
+ source references and CJK text. Save receipts explain bounded context selection instead of promising
150
+ that every saved fact will reappear automatically.
151
+ - Parse each retrieval query once per search instead of once per record, preserving ranking and
152
+ tie order while reducing repeated work in large archives.
153
+ - Restore only the latest automatic attempt for each target; persist uncertain terminal failures
154
+ without advancing coverage and surface attempt-persistence failures after cancellation joins.
155
+ - Handle Windows sharing conflicts while acquiring the dead-lock recovery gate as bounded
156
+ contention, preserving exclusive callbacks and the existing ownership checks.
157
+ - Qualify long-project memory at the 10,000-entry store limit: old-fact recall/read/injection,
158
+ pagination, reopen, capacity refusal, consolidation, undo and preservation of unrelated facts.
159
+ - Update live qualification to verify the actual toast/audit/receipt contract, exact multi-source
160
+ application and successful undo in both Persona engines.
161
+ - Resolve installed Pi qualification dependencies through the selected host's public package
162
+ exports, including ordinary hoisted npm layouts.
163
+ - Use lowercase Mind card headings and review notification prefixes while preserving saved history
164
+ and custom titles.
165
+ - Keep automatic maintenance quiet: persist the full proposal audit without a visible proposal card,
166
+ omit no-op notifications, and preserve manual detail and important warnings.
167
+ - Limit background application to multi-source consolidation; skip model admission without a
168
+ compatible pair and leave single-record edits available to explicit workflows. This is an eligibility
169
+ guard, not a semantic-truth guarantee. Ordinary LLM-selected global memory saves remain available.
170
+ - Preserve short-objective lifetime and earliest expiry when consolidating project working memory.
171
+ - Require explicit project/persona/shared scope for every long-term remember at both the public tool and
172
+ MindService boundary; short-term memory stays project-scoped by default, and objective kind no longer
173
+ changes the caller-selected lifetime.
174
+ - Route AUTO strong direct-user cues only to native active-branch session notes, with explicit session-only
175
+ receipts and no durable fallback or optimizer dirtying. Session tool corrections include canonical
176
+ examples; redundant `scope=session` is accepted without making scope mandatory.
177
+ - Target the current Pi 1.5.2 host and align offline qualification metadata.
178
+ - Standalone Mind entries use Persona's one shared card frame through a versioned local presentation
179
+ query, honoring native padding and configured expand keys. Native memory/backlog tool shells remain
180
+ host-owned; retained entries have a readable plain-text fallback without a compatible frame provider.
181
+ - Expanded save receipts expose their original IDs and lifetime evidence; compact summaries disclose
182
+ hidden detail. Explicit scope mismatches cannot tombstone a session note through another tier.
183
+ - Extend the existing offline evaluator with paired sentinel outcomes and provenance-checked token
184
+ reference diagnostics. Calculation is language-agnostic; no runtime ranking, budget, dependency,
185
+ service or model-call changes are introduced. Published reference vectors are not billing counts.
186
+
187
+ ## [0.8.7](https://github.com/AeonDave/pi-persona-mind/releases/tag/v0.8.7) - 2026-10-27
188
+
189
+ - Interrupted explicit optimization batches identify the tiers not yet reviewed. Worker failures
190
+ and invalid proposals retain the worker's model/effort and terminal-report reference without
191
+ echoing malformed model output. Invalid proposals never reach application.
192
+ - Setup failures report that no tier was reviewed; cleanup failures cannot overwrite completed
193
+ results or retain the active-work slot. Migration-warning tests wait for background completion,
194
+ and the live smoke checks proposal order, confirmed application counts and durable undo receipts;
195
+ refused or uncertain writes cannot pass as successful application.
196
+
197
+ ## [0.8.6](https://github.com/AeonDave/pi-persona-mind/releases/tag/v0.8.6) - 2026-10-26
198
+
199
+ - Allow bare `/mind optimize` and `/mind optimize all` to review one bounded window per currently
200
+ allowed nonshared tier sequentially; home sessions allow persona only. Named targets remain
201
+ single-target, and shared remains excluded from LLM review.
202
+ - Report target-local skip reasons and visible batch outcomes. Skips and reviewed no-ops can continue;
203
+ cancellation, owner changes, and failed, refused, or uncertain work stop later tiers. Prevent
204
+ overlapping batch work; add regression coverage for these behaviors.
205
+
206
+ ## [0.8.5](https://github.com/AeonDave/pi-persona-mind/releases/tag/v0.8.5) - 2026-10-26
207
+
208
+ - Add `/mind optimize [project|project-long|persona]` for an immediate, bounded review by a visible Persona-hosted worker using the current session model. Changes pass Mind's validation, provenance and compare-and-swap checks; successful writes retain receipts and support guarded undo.
209
+ - Remove the worker row on completion while retaining results in the conversation. Keep reviews bounded, rotate completed windows, and handle busy sessions, cancellation, stale owners and errors safely.
210
+ - **Usage change:** use `/mind optimize inspect [target]` to inspect; `/mind optimize [target]` now starts a review instead.
211
+
212
+ ## [0.8.4](https://github.com/AeonDave/pi-persona-mind/releases/tag/v0.8.4) - 2026-10-25
213
+
214
+ - Add durable project memory and scope-preserving promotion; expose project/persona/shared scope
215
+ consistently in tools, snapshots and diagnostics. Replace the shared-write boolean with scope.
216
+ - Rank injected context and recall by task words, tags and repository paths; apply a combined
217
+ token estimate across archive and session context, retaining explicit omissions and full reads.
218
+ - Rotate bounded automatic reviews over older records and retain durable consolidation receipts.
219
+ Add history and guarded undo that preserves unrelated writes and refuses stale affected facts.
220
+ - Add deterministic retrieval evaluation with an explicit baseline and no semantic-quality claim.
221
+
222
+ - Add automatic semantic consolidation through a visible asynchronous Mind worker on the current
223
+ session model. The first new-memory burst queues an idle review; subsequent attempts require new
224
+ memories and 1M main-session input tokens, excluding output/cache/worker usage. Rapid saves coalesce;
225
+ new input cancels the worker. Parent validation and fingerprint checks protect application; shared
226
+ memory is excluded.
227
+ `/mind optimize auto [status|on|off]` controls this session, doctor reports its state, and
228
+ `PI_PERSONA_MIND_OPTIMIZE=off` changes the initial default.
229
+ - Require the loaded pi-persona companion protocol; without it Mind remains inactive, including
230
+ direct programmatic calls. Local optimization appears as a Mind activity row in Persona's tree/F9.
231
+ - Use the actual live persona for memory ownership even with selection persistence disabled;
232
+ delegated workers keep their launching persona on both engines. Remove the obsolete selection mirror.
233
+ - Target Pi 1.4.0 exclusively; align development packages and native event contracts, and remove
234
+ the retired companion state-marker fallback. Existing memory-data imports remain available.
235
+ - Add active-branch session notes, honest persistent/in-memory receipts, and full ID-based memory
236
+ reads. Session notes preserve their origin across forks and never enter delegated worker context.
237
+ - Add explicit, bounded memory consolidation: inspect candidates, stage exact replacements, then
238
+ apply a fingerprint-checked plan. Preserve source lineage and STM expiry; refuse stale plans.
239
+ - Paginate inspection to reach older facts, and distinguish slow background imports from persistent
240
+ failures instead of leaving a successful import marked with a warning.
241
+ - Add `/persona-mind` with `/mind` as the same-handler alias, strict command parsing, session and
242
+ optimization commands, and consistent expandable command cards.
243
+ - Include inline flow reports in the blocked-work hint and preserve concurrent backlog additions
244
+ during expiry cleanup. Qualify package and companion integration on the current host.
245
+
246
+ ## [0.8.3](https://github.com/AeonDave/pi-persona-mind/releases/tag/v0.8.3) - 2026-10-20
247
+
248
+ - Read persona selection and startup `defaultPersona`/`persist` preferences from pi-persona's
249
+ canonical settings store, preserving legacy marker fallback only when canonical settings are absent.
250
+ - Contribute Mind's capture/nudge settings to pi-persona's unified settings panel, while retaining
251
+ environment overrides and session-start snapshot behavior.
252
+ - Scope marker latches and Mind-specific preference snapshots to Pi session IDs so child sessions
253
+ cannot reset their supervisor's active scope or companion controls.
254
+ - Match pi-persona's extension-factory snapshot for the scalar persona selectors, keeping Mind's
255
+ memory scope aligned across `/new` sessions until Pi reloads/restarts extensions.
256
+ - Reject malformed UTF-8 in canonical and legacy persona markers rather than deriving a replacement-character memory scope.
257
+
258
+ ## [0.8.2](https://github.com/AeonDave/pi-persona-mind/releases/tag/v0.8.2) - 2026-10-19
259
+
260
+ - Respect Pi's `--` CLI separator when resolving persona memory scope; prompt text resembling
261
+ `--persona` no longer selects a different memory store.
262
+ - Add isolated installed-Pi 1.3 qualification alongside the minimum-Pi 1.0 SDK suite, including
263
+ optional pi-persona integration for model refresh and delegated read-only memory.
264
+
265
+ ## [0.8.1](https://github.com/AeonDave/pi-persona-mind/releases/tag/v0.8.1) - 2026-10-13
266
+
267
+ - Handle Pi 1.2 custom-triggered completion reports from their attributed `before_agent_start`
268
+ message event, deduplicate follow-up nudges, and keep custom report text out of direct-user capture.
269
+
270
+ ## [0.8.0](https://github.com/AeonDave/pi-persona-mind/releases/tag/v0.8.0) - 2026-10-03
271
+
272
+ - Require Pi 1.0.0+ and Node.js 22.19.0+; keep host libraries and typebox as host-provided peers.
273
+ - Reset capture hints and empty-store announcements when a session changes; prevent late capture
274
+ notices and memory injection from leaking into the next session.
275
+ - Skip migration/storage waits for ordinary input with no capture cue.
276
+ - Preserve undelivered backlog alarms across slow storage reads and concurrent re-arm calls; a
277
+ newly queued reminder that is already due is shown immediately, without restarting Pi.
278
+ - Deduplicate a reminder's displayed deadline while acknowledgement persists, including re-arms
279
+ triggered by background migration; a later deadline remains eligible.
280
+ - Suggest backlog capture only for blocked nested output actually relayed by its outer tool.
281
+ - Enforce erasable-only TypeScript, including store/service constructors.
282
+ - Isolate test profiles; exercise capture, persistence, tool execution, display-only reminders and
283
+ read-only workers in real Pi 1.0 SDK sessions with an offline provider.
284
+ - Align package/lock metadata, upgrade development dependencies and pin three-platform CI actions.
285
+
286
+ Older storage roots remain readable through non-destructive migration. No existing store is deleted
287
+ or moved by the host compatibility update.