@aeondave/pi-persona-mind 0.9.6 → 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.
- package/AGENTS.md +137 -135
- package/CHANGELOG.md +287 -270
- package/LICENSE +24 -24
- package/README.md +84 -171
- package/docs/DESIGN.md +605 -573
- package/docs/MEMORY-RESEARCH.md +163 -163
- package/package.json +15 -6
- package/src/core/auto-optimize.ts +323 -249
- package/src/core/backlog.ts +228 -228
- package/src/core/blocked.ts +38 -38
- package/src/core/capture.ts +155 -154
- package/src/core/context-budget.ts +74 -74
- package/src/core/handoff-store.ts +111 -111
- package/src/core/handoff.ts +70 -70
- package/src/core/host-compat.ts +16 -16
- package/src/core/ids.ts +59 -59
- package/src/core/inject.ts +247 -247
- package/src/core/knowledge-review.ts +107 -107
- package/src/core/memory-read.ts +34 -34
- package/src/core/memory.ts +321 -321
- package/src/core/migrate.ts +713 -713
- package/src/core/mind-settings.ts +54 -54
- package/src/core/optimize-history.ts +163 -163
- package/src/core/optimize-service.ts +189 -180
- package/src/core/optimize.ts +127 -127
- package/src/core/retrieval.ts +164 -164
- package/src/core/scanner.ts +146 -146
- package/src/core/scope.ts +201 -205
- package/src/core/service.ts +720 -720
- package/src/core/session-memory.ts +71 -71
- package/src/core/store.ts +1002 -1002
- package/src/extension/activity.ts +79 -79
- package/src/extension/auto-optimize-session.ts +143 -143
- package/src/extension/auto-optimize.ts +565 -569
- package/src/extension/handoff.ts +23 -23
- package/src/extension/knowledge-review.ts +229 -229
- package/src/extension/memory-inspector.ts +82 -82
- package/src/extension/mind-actions.ts +38 -38
- package/src/extension/mind-worker.ts +32 -32
- package/src/extension/persona-dependency.ts +76 -76
- package/src/extension/reference-anchor.ts +48 -0
- package/src/extension/review-evidence.ts +222 -222
- package/src/extension/worker-memory-anchor.ts +28 -28
- package/src/index.ts +1357 -1310
- package/src/session-memory.ts +127 -122
- package/src/tools/backlog.ts +126 -126
- package/src/tools/memory-handoff.ts +30 -30
- package/src/tools/memory-history.ts +46 -46
- package/src/tools/memory.ts +6 -4
- package/src/ui/card-frame.ts +161 -161
- package/src/ui/inspector-frame.ts +44 -44
- package/src/ui/memory-inspector.ts +464 -464
- package/src/ui/mind-result-card.ts +48 -48
- package/src/ui/presentation.ts +87 -87
- package/src/ui/session-note-card.ts +58 -56
package/docs/MEMORY-RESEARCH.md
CHANGED
|
@@ -1,163 +1,163 @@
|
|
|
1
|
-
# Memory design decisions and evaluation
|
|
2
|
-
|
|
3
|
-
This document records Mind's local design rationale and verification boundaries. The binding
|
|
4
|
-
implementation contract is [DESIGN](DESIGN.md); callable operations and setup are described in
|
|
5
|
-
[README](../README.md). It is not a comparative quality ranking or a claim of perfect memory.
|
|
6
|
-
|
|
7
|
-
## Responsibilities and boundaries
|
|
8
|
-
|
|
9
|
-
Mind preserves deliberately selected facts, working project context, native session notes and deferred
|
|
10
|
-
work. It does not replace the host's conversation compactor, continuously archive every tool result,
|
|
11
|
-
provide a semantic-search database or infer universal user preferences from a task-specific choice.
|
|
12
|
-
|
|
13
|
-
Each destination has a distinct purpose:
|
|
14
|
-
|
|
15
|
-
- Session notes belong to the active native branch. They can survive compaction and resume when
|
|
16
|
-
session history is persisted; a new independent session does not inherit them.
|
|
17
|
-
- Working project memory has a bounded lifetime. Durable project memory remains tied to the repository.
|
|
18
|
-
- Persona memory crosses projects for the same persona. Shared memory crosses personas as well.
|
|
19
|
-
These are deliberately broad destinations, not defaults for operational choices.
|
|
20
|
-
- Backlog records deferred work rather than turning an incomplete task into a durable preference.
|
|
21
|
-
|
|
22
|
-
Long-term writes must name their destination. Content kind does not authorize a longer lifetime:
|
|
23
|
-
requesting a short objective does not make it durable. Automatic direct-user capture is provisional
|
|
24
|
-
session capture only. Broader persistence requires a separate deliberate scoped operation; a
|
|
25
|
-
model-supplied scope is routing intent, not authenticated proof of user consent.
|
|
26
|
-
|
|
27
|
-
Existing facts are not automatically moved or deleted based on wording. Repairing already mis-scoped
|
|
28
|
-
facts requires inspection and an explicit reviewed maintenance plan.
|
|
29
|
-
|
|
30
|
-
## Retrieval and context
|
|
31
|
-
|
|
32
|
-
Mind uses deterministic lexical, tag and path ranking, with explicit full reads separate from bounded
|
|
33
|
-
injection. This is explainable and avoids an additional indexing service, but differently worded
|
|
34
|
-
queries may miss relevant facts. No general semantic-recall guarantee follows from a passing test.
|
|
35
|
-
|
|
36
|
-
Identifier components and vowel-accent folding are lower-weight fallback matches, behind exact
|
|
37
|
-
words and paths. Numeric versions stay exact atoms; alphabetic tail words are also indexed at ordinary
|
|
38
|
-
word weight, while numeric or digit-bearing tail parts stay inside the atom. Negation remains searchable, and Unicode/CJK
|
|
39
|
-
segmentation is preserved. A fallback can still add irrelevant rows: fewer missed identifiers does
|
|
40
|
-
not imply perfect precision. Tags already normalized when saved cannot recover lost camel casing.
|
|
41
|
-
|
|
42
|
-
`npm run eval:memory` compares the previous ranker and injection renderer with the current ones on
|
|
43
|
-
the same corpus, scope and budget. In the 12-case development fixture, positive top-one hits improve
|
|
44
|
-
from 2/7 to 7/7; in the separate nine-case held-out set, they improve from 6/7 to 7/7.
|
|
45
|
-
The held-out set was written alongside the implementation, not withheld from it.
|
|
46
|
-
Negative queries with results fall from one to zero in each set. Strict false positives among the top
|
|
47
|
-
three, ignoring `acceptableIds`, remain 1 to 1 in development and 5 to 5 in the held-out set.
|
|
48
|
-
With acceptable labels, the counts are 1 to 1 and 5 to 3 respectively; that held-out reduction depends
|
|
49
|
-
on the labels excusing weaker accent matches. A weak `memory`/`memoryOwnership` match remains.
|
|
50
|
-
The preceding 30-case fixture's metrics and
|
|
51
|
-
seven sentinel outcomes are unchanged. These small synthetic sets and their labels are inspectable
|
|
52
|
-
regression evidence, not an external benchmark or a general semantic-quality claim.
|
|
53
|
-
|
|
54
|
-
Injection is a planning budget, not a billing measurement. Preserve wrappers, omission counts and
|
|
55
|
-
whole admitted excerpts within the documented limits. The runtime estimate operates on UTF-8 bytes;
|
|
56
|
-
it must not select a correction factor by detecting a language. A comparison against a named reference
|
|
57
|
-
encoding remains a comparison to that encoding, not a count for every possible session model.
|
|
58
|
-
|
|
59
|
-
## Consolidation and recovery
|
|
60
|
-
|
|
61
|
-
1. Exact content deduplication and expiry of working memory/backlog remain deterministic.
|
|
62
|
-
2. A semantic review receives explicit bounded source records and proposes structured replacements;
|
|
63
|
-
it does not write stores directly. Similarity may suggest candidates but does not approve a merge.
|
|
64
|
-
3. The parent validates source ownership, provenance, freshness and the target fingerprint before
|
|
65
|
-
applying an immutable plan. Preserve unrelated records, lineage and the shortest applicable expiry.
|
|
66
|
-
4. Reject ambiguity instead of guessing which fact or owner an identifier addresses. Scope changes
|
|
67
|
-
and lifecycle revocation prevent stale work from applying to a new owner.
|
|
68
|
-
5. Do not infer obsolescence from age, store size or recall frequency. Durable facts do not acquire
|
|
69
|
-
automatic decay or semantic eviction. Automatic review remains bounded, visible, cancellable and
|
|
70
|
-
subject to the admission and cost-control rules documented in [DESIGN](DESIGN.md).
|
|
71
|
-
6. Retain bounded before/after receipts and guarded undo. This is recovery of affected consolidation
|
|
72
|
-
records, not unlimited history or rollback of unrelated user edits.
|
|
73
|
-
|
|
74
|
-
Successful validation establishes structural permission and freshness, not semantic truth. A worker
|
|
75
|
-
can still propose a bad summary. Keep proposals inspectable and state that limitation explicitly.
|
|
76
|
-
|
|
77
|
-
Ordinary explicit supersession now uses that same receipt protocol. This preserves a changed
|
|
78
|
-
decision's original evidence without making historical facts compete with current facts in recall.
|
|
79
|
-
An ordinary receipt is read-only; consolidation undo retains its existing conflict checks. No second
|
|
80
|
-
archive, embeddings service or automatically generated summary is introduced.
|
|
81
|
-
|
|
82
|
-
Cross-session handoffs address a separate need: a deliberately saved work snapshot with a next step,
|
|
83
|
-
origin and explicit completion resolution. They remain owner-scoped and manually discoverable, never
|
|
84
|
-
automatic instructions or a claim that a worker session was restored. Quota refusal and explicit
|
|
85
|
-
forgetting preserve unfinished work instead of silently deleting it on a timer.
|
|
86
|
-
|
|
87
|
-
## What verification can establish
|
|
88
|
-
|
|
89
|
-
The local suite exercises store concurrency, atomic replacement, stale-plan refusal, provenance,
|
|
90
|
-
owner isolation, session replay, bounded context and recovery paths. The offline evaluator exercises
|
|
91
|
-
synthetic retrieval cases against an explicit baseline. These checks answer narrower questions than
|
|
92
|
-
whether a model will remember every useful detail on real project work.
|
|
93
|
-
|
|
94
|
-
Useful evaluation cases include:
|
|
95
|
-
|
|
96
|
-
- later corrections paired with historical queries, so current and earlier facts remain distinguishable;
|
|
97
|
-
- negated facts and exceptions that must not disappear from the retained evidence;
|
|
98
|
-
- source and owner provenance, including project facts that must not become cross-project preferences;
|
|
99
|
-
- malformed delimiters and Unicode text that must remain data rather than instructions;
|
|
100
|
-
- explicit omissions and bounded excerpts rather than silent claims that the whole store was reviewed.
|
|
101
|
-
|
|
102
|
-
Measure individual ranks, retained evidence and identified omissions. A detector needs a negative
|
|
103
|
-
control showing that it notices a deliberately corrupted result; fixture self-consistency alone is
|
|
104
|
-
not evidence of retrieval quality. Synthetic success does not replace a real-world semantic evaluation.
|
|
105
|
-
|
|
106
|
-
Token diagnostics need an independently inspectable reference tied to exact fixture bytes and a pinned
|
|
107
|
-
implementation or published vector source. Record its provenance and limitations. Do not infer the
|
|
108
|
-
isolated memory contribution from the provider's total conversation usage, fabricate unavailable
|
|
109
|
-
reference counts or automatically tune the production budget from a small fixture set.
|
|
110
|
-
|
|
111
|
-
## Inspector architecture decision
|
|
112
|
-
|
|
113
|
-
The memory inspector adds a read-only view over existing stores and the native active branch, rather
|
|
114
|
-
than introducing a permanent transcript and summary tree. This preserves Mind's role as
|
|
115
|
-
selective scoped memory and avoids a second retention policy, summarizer budget and source of truth.
|
|
116
|
-
A separate archive could eventually make older cross-session episodes navigable, but would require an
|
|
117
|
-
explicit access, deletion and retention design; an opaque source string is not that authorization.
|
|
118
|
-
|
|
119
|
-
The boundaries are small: pure native-record projection and source matching, a strict-store/native-session
|
|
120
|
-
query adapter, an owner-bound lifecycle controller, and a native TUI view. The context tab observes the
|
|
121
|
-
existing prepared block rather than implementing its own retrieval or inferring selection from a changed
|
|
122
|
-
store. Source opening is a drill-down into an attributed matching recording, not semantic verification.
|
|
123
|
-
Legacy facts without attributable recordings remain readable but have no invented source link.
|
|
124
|
-
|
|
125
|
-
Verification targets branch isolation, exact recording association, stale async completion, unavailable
|
|
126
|
-
sources, bounded paging, malformed native data, terminal-control sanitization and narrow/short terminals.
|
|
127
|
-
The native-session integration test proves the prepared block reaches the inspector and is revoked on
|
|
128
|
-
branch navigation without a model wake or extra transcript append. It does not establish visual quality
|
|
129
|
-
in every terminal or cross-session historical recall.
|
|
130
|
-
|
|
131
|
-
## Evidence-review decision
|
|
132
|
-
|
|
133
|
-
Consolidation and knowledge review have different authority. Consolidation combines compatible memory
|
|
134
|
-
records; review evaluates a bounded, explicitly selected evidence packet and stages corrective proposals.
|
|
135
|
-
Neither an LLM classification nor a valid citation certifies semantic truth. Repository observations do
|
|
136
|
-
not establish universal preferences, and native user-role messages can be quoted or programmatic.
|
|
137
|
-
|
|
138
|
-
The parent collects evidence and owns freshness checks; the worker has no tools. This is preferable here
|
|
139
|
-
to a tool-enabled autonomous researcher: it keeps filesystem scope, secret filtering, provider usage and
|
|
140
|
-
reproducible source snapshots under host control. The trade-off is limited evidence coverage and explicit
|
|
141
|
-
file selection; missing or ambiguous support must remain insufficient rather than trigger a wider search.
|
|
142
|
-
|
|
143
|
-
Review corrections use a separate staged optimizer instance and explicit approval, with existing CAS,
|
|
144
|
-
receipts and undo. A synchronous evidence guard checks again at commit. Repository writers do not share
|
|
145
|
-
that lock, so this is checked-snapshot freshness, not an atomic transaction over code and memory.
|
|
146
|
-
Retirement remains advisory because existing receipts represent replacements, not arbitrary deletions;
|
|
147
|
-
pretending an empty replacement is a reversible retirement would violate the storage contract.
|
|
148
|
-
|
|
149
|
-
The current companion protocol admits only the exact session model. A different same-provider model
|
|
150
|
-
would require an explicit versioned companion capability; inferring quality from a model name or bypassing
|
|
151
|
-
the worker contract was rejected. The parent reservation is released once a proposal is staged, avoiding
|
|
152
|
-
an indefinite maintenance lock while the user reads; apply reacquires admission and rejects changed sources
|
|
153
|
-
or stores instead of assuming the old proposal is still valid.
|
|
154
|
-
|
|
155
|
-
## Review standard
|
|
156
|
-
|
|
157
|
-
Preserve each verification command's own exit status, not a downstream formatter's status. Distinguish
|
|
158
|
-
observed command/API results from inference and worker claims. A digest being present or computed is
|
|
159
|
-
not a verified match without an observed expected-versus-actual comparison.
|
|
160
|
-
|
|
161
|
-
Report a demonstrated failure, an uncorroborated claim and an untested case differently. Fewer records
|
|
162
|
-
or shorter text are improvements only when the relevant exceptions, history and provenance remain
|
|
163
|
-
available. No unsupported accuracy, cost-saving or superiority claim belongs in the release notes.
|
|
1
|
+
# Memory design decisions and evaluation
|
|
2
|
+
|
|
3
|
+
This document records Mind's local design rationale and verification boundaries. The binding
|
|
4
|
+
implementation contract is [DESIGN](DESIGN.md); callable operations and setup are described in
|
|
5
|
+
[README](../README.md). It is not a comparative quality ranking or a claim of perfect memory.
|
|
6
|
+
|
|
7
|
+
## Responsibilities and boundaries
|
|
8
|
+
|
|
9
|
+
Mind preserves deliberately selected facts, working project context, native session notes and deferred
|
|
10
|
+
work. It does not replace the host's conversation compactor, continuously archive every tool result,
|
|
11
|
+
provide a semantic-search database or infer universal user preferences from a task-specific choice.
|
|
12
|
+
|
|
13
|
+
Each destination has a distinct purpose:
|
|
14
|
+
|
|
15
|
+
- Session notes belong to the active native branch. They can survive compaction and resume when
|
|
16
|
+
session history is persisted; a new independent session does not inherit them.
|
|
17
|
+
- Working project memory has a bounded lifetime. Durable project memory remains tied to the repository.
|
|
18
|
+
- Persona memory crosses projects for the same persona. Shared memory crosses personas as well.
|
|
19
|
+
These are deliberately broad destinations, not defaults for operational choices.
|
|
20
|
+
- Backlog records deferred work rather than turning an incomplete task into a durable preference.
|
|
21
|
+
|
|
22
|
+
Long-term writes must name their destination. Content kind does not authorize a longer lifetime:
|
|
23
|
+
requesting a short objective does not make it durable. Automatic direct-user capture is provisional
|
|
24
|
+
session capture only. Broader persistence requires a separate deliberate scoped operation; a
|
|
25
|
+
model-supplied scope is routing intent, not authenticated proof of user consent.
|
|
26
|
+
|
|
27
|
+
Existing facts are not automatically moved or deleted based on wording. Repairing already mis-scoped
|
|
28
|
+
facts requires inspection and an explicit reviewed maintenance plan.
|
|
29
|
+
|
|
30
|
+
## Retrieval and context
|
|
31
|
+
|
|
32
|
+
Mind uses deterministic lexical, tag and path ranking, with explicit full reads separate from bounded
|
|
33
|
+
injection. This is explainable and avoids an additional indexing service, but differently worded
|
|
34
|
+
queries may miss relevant facts. No general semantic-recall guarantee follows from a passing test.
|
|
35
|
+
|
|
36
|
+
Identifier components and vowel-accent folding are lower-weight fallback matches, behind exact
|
|
37
|
+
words and paths. Numeric versions stay exact atoms; alphabetic tail words are also indexed at ordinary
|
|
38
|
+
word weight, while numeric or digit-bearing tail parts stay inside the atom. Negation remains searchable, and Unicode/CJK
|
|
39
|
+
segmentation is preserved. A fallback can still add irrelevant rows: fewer missed identifiers does
|
|
40
|
+
not imply perfect precision. Tags already normalized when saved cannot recover lost camel casing.
|
|
41
|
+
|
|
42
|
+
`npm run eval:memory` compares the previous ranker and injection renderer with the current ones on
|
|
43
|
+
the same corpus, scope and budget. In the 12-case development fixture, positive top-one hits improve
|
|
44
|
+
from 2/7 to 7/7; in the separate nine-case held-out set, they improve from 6/7 to 7/7.
|
|
45
|
+
The held-out set was written alongside the implementation, not withheld from it.
|
|
46
|
+
Negative queries with results fall from one to zero in each set. Strict false positives among the top
|
|
47
|
+
three, ignoring `acceptableIds`, remain 1 to 1 in development and 5 to 5 in the held-out set.
|
|
48
|
+
With acceptable labels, the counts are 1 to 1 and 5 to 3 respectively; that held-out reduction depends
|
|
49
|
+
on the labels excusing weaker accent matches. A weak `memory`/`memoryOwnership` match remains.
|
|
50
|
+
The preceding 30-case fixture's metrics and
|
|
51
|
+
seven sentinel outcomes are unchanged. These small synthetic sets and their labels are inspectable
|
|
52
|
+
regression evidence, not an external benchmark or a general semantic-quality claim.
|
|
53
|
+
|
|
54
|
+
Injection is a planning budget, not a billing measurement. Preserve wrappers, omission counts and
|
|
55
|
+
whole admitted excerpts within the documented limits. The runtime estimate operates on UTF-8 bytes;
|
|
56
|
+
it must not select a correction factor by detecting a language. A comparison against a named reference
|
|
57
|
+
encoding remains a comparison to that encoding, not a count for every possible session model.
|
|
58
|
+
|
|
59
|
+
## Consolidation and recovery
|
|
60
|
+
|
|
61
|
+
1. Exact content deduplication and expiry of working memory/backlog remain deterministic.
|
|
62
|
+
2. A semantic review receives explicit bounded source records and proposes structured replacements;
|
|
63
|
+
it does not write stores directly. Similarity may suggest candidates but does not approve a merge.
|
|
64
|
+
3. The parent validates source ownership, provenance, freshness and the target fingerprint before
|
|
65
|
+
applying an immutable plan. Preserve unrelated records, lineage and the shortest applicable expiry.
|
|
66
|
+
4. Reject ambiguity instead of guessing which fact or owner an identifier addresses. Scope changes
|
|
67
|
+
and lifecycle revocation prevent stale work from applying to a new owner.
|
|
68
|
+
5. Do not infer obsolescence from age, store size or recall frequency. Durable facts do not acquire
|
|
69
|
+
automatic decay or semantic eviction. Automatic review remains bounded, visible, cancellable and
|
|
70
|
+
subject to the admission and cost-control rules documented in [DESIGN](DESIGN.md).
|
|
71
|
+
6. Retain bounded before/after receipts and guarded undo. This is recovery of affected consolidation
|
|
72
|
+
records, not unlimited history or rollback of unrelated user edits.
|
|
73
|
+
|
|
74
|
+
Successful validation establishes structural permission and freshness, not semantic truth. A worker
|
|
75
|
+
can still propose a bad summary. Keep proposals inspectable and state that limitation explicitly.
|
|
76
|
+
|
|
77
|
+
Ordinary explicit supersession now uses that same receipt protocol. This preserves a changed
|
|
78
|
+
decision's original evidence without making historical facts compete with current facts in recall.
|
|
79
|
+
An ordinary receipt is read-only; consolidation undo retains its existing conflict checks. No second
|
|
80
|
+
archive, embeddings service or automatically generated summary is introduced.
|
|
81
|
+
|
|
82
|
+
Cross-session handoffs address a separate need: a deliberately saved work snapshot with a next step,
|
|
83
|
+
origin and explicit completion resolution. They remain owner-scoped and manually discoverable, never
|
|
84
|
+
automatic instructions or a claim that a worker session was restored. Quota refusal and explicit
|
|
85
|
+
forgetting preserve unfinished work instead of silently deleting it on a timer.
|
|
86
|
+
|
|
87
|
+
## What verification can establish
|
|
88
|
+
|
|
89
|
+
The local suite exercises store concurrency, atomic replacement, stale-plan refusal, provenance,
|
|
90
|
+
owner isolation, session replay, bounded context and recovery paths. The offline evaluator exercises
|
|
91
|
+
synthetic retrieval cases against an explicit baseline. These checks answer narrower questions than
|
|
92
|
+
whether a model will remember every useful detail on real project work.
|
|
93
|
+
|
|
94
|
+
Useful evaluation cases include:
|
|
95
|
+
|
|
96
|
+
- later corrections paired with historical queries, so current and earlier facts remain distinguishable;
|
|
97
|
+
- negated facts and exceptions that must not disappear from the retained evidence;
|
|
98
|
+
- source and owner provenance, including project facts that must not become cross-project preferences;
|
|
99
|
+
- malformed delimiters and Unicode text that must remain data rather than instructions;
|
|
100
|
+
- explicit omissions and bounded excerpts rather than silent claims that the whole store was reviewed.
|
|
101
|
+
|
|
102
|
+
Measure individual ranks, retained evidence and identified omissions. A detector needs a negative
|
|
103
|
+
control showing that it notices a deliberately corrupted result; fixture self-consistency alone is
|
|
104
|
+
not evidence of retrieval quality. Synthetic success does not replace a real-world semantic evaluation.
|
|
105
|
+
|
|
106
|
+
Token diagnostics need an independently inspectable reference tied to exact fixture bytes and a pinned
|
|
107
|
+
implementation or published vector source. Record its provenance and limitations. Do not infer the
|
|
108
|
+
isolated memory contribution from the provider's total conversation usage, fabricate unavailable
|
|
109
|
+
reference counts or automatically tune the production budget from a small fixture set.
|
|
110
|
+
|
|
111
|
+
## Inspector architecture decision
|
|
112
|
+
|
|
113
|
+
The memory inspector adds a read-only view over existing stores and the native active branch, rather
|
|
114
|
+
than introducing a permanent transcript and summary tree. This preserves Mind's role as
|
|
115
|
+
selective scoped memory and avoids a second retention policy, summarizer budget and source of truth.
|
|
116
|
+
A separate archive could eventually make older cross-session episodes navigable, but would require an
|
|
117
|
+
explicit access, deletion and retention design; an opaque source string is not that authorization.
|
|
118
|
+
|
|
119
|
+
The boundaries are small: pure native-record projection and source matching, a strict-store/native-session
|
|
120
|
+
query adapter, an owner-bound lifecycle controller, and a native TUI view. The context tab observes the
|
|
121
|
+
existing prepared block rather than implementing its own retrieval or inferring selection from a changed
|
|
122
|
+
store. Source opening is a drill-down into an attributed matching recording, not semantic verification.
|
|
123
|
+
Legacy facts without attributable recordings remain readable but have no invented source link.
|
|
124
|
+
|
|
125
|
+
Verification targets branch isolation, exact recording association, stale async completion, unavailable
|
|
126
|
+
sources, bounded paging, malformed native data, terminal-control sanitization and narrow/short terminals.
|
|
127
|
+
The native-session integration test proves the prepared block reaches the inspector and is revoked on
|
|
128
|
+
branch navigation without a model wake or extra transcript append. It does not establish visual quality
|
|
129
|
+
in every terminal or cross-session historical recall.
|
|
130
|
+
|
|
131
|
+
## Evidence-review decision
|
|
132
|
+
|
|
133
|
+
Consolidation and knowledge review have different authority. Consolidation combines compatible memory
|
|
134
|
+
records; review evaluates a bounded, explicitly selected evidence packet and stages corrective proposals.
|
|
135
|
+
Neither an LLM classification nor a valid citation certifies semantic truth. Repository observations do
|
|
136
|
+
not establish universal preferences, and native user-role messages can be quoted or programmatic.
|
|
137
|
+
|
|
138
|
+
The parent collects evidence and owns freshness checks; the worker has no tools. This is preferable here
|
|
139
|
+
to a tool-enabled autonomous researcher: it keeps filesystem scope, secret filtering, provider usage and
|
|
140
|
+
reproducible source snapshots under host control. The trade-off is limited evidence coverage and explicit
|
|
141
|
+
file selection; missing or ambiguous support must remain insufficient rather than trigger a wider search.
|
|
142
|
+
|
|
143
|
+
Review corrections use a separate staged optimizer instance and explicit approval, with existing CAS,
|
|
144
|
+
receipts and undo. A synchronous evidence guard checks again at commit. Repository writers do not share
|
|
145
|
+
that lock, so this is checked-snapshot freshness, not an atomic transaction over code and memory.
|
|
146
|
+
Retirement remains advisory because existing receipts represent replacements, not arbitrary deletions;
|
|
147
|
+
pretending an empty replacement is a reversible retirement would violate the storage contract.
|
|
148
|
+
|
|
149
|
+
The current companion protocol admits only the exact session model. A different same-provider model
|
|
150
|
+
would require an explicit versioned companion capability; inferring quality from a model name or bypassing
|
|
151
|
+
the worker contract was rejected. The parent reservation is released once a proposal is staged, avoiding
|
|
152
|
+
an indefinite maintenance lock while the user reads; apply reacquires admission and rejects changed sources
|
|
153
|
+
or stores instead of assuming the old proposal is still valid.
|
|
154
|
+
|
|
155
|
+
## Review standard
|
|
156
|
+
|
|
157
|
+
Preserve each verification command's own exit status, not a downstream formatter's status. Distinguish
|
|
158
|
+
observed command/API results from inference and worker claims. A digest being present or computed is
|
|
159
|
+
not a verified match without an observed expected-versus-actual comparison.
|
|
160
|
+
|
|
161
|
+
Report a demonstrated failure, an uncorroborated claim and an untested case differently. Fewer records
|
|
162
|
+
or shorter text are improvements only when the relevant exceptions, history and provenance remain
|
|
163
|
+
available. No unsupported accuracy, cost-saving or superiority claim belongs in the release notes.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aeondave/pi-persona-mind",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.8",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Local memory for Pi with pi-persona — durable project and persona facts, session notes, bounded retrieval, and supervised automatic consolidation.",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"verify": "npm run typecheck && npm test"
|
|
53
53
|
},
|
|
54
54
|
"pi": {
|
|
55
|
-
"image": "https://raw.githubusercontent.com/AeonDave/pi-persona-mind/v0.9.
|
|
55
|
+
"image": "https://raw.githubusercontent.com/AeonDave/pi-persona-mind/v0.9.8/assets/banner.png",
|
|
56
56
|
"extensions": [
|
|
57
57
|
"./src/index.ts"
|
|
58
58
|
]
|
|
@@ -81,11 +81,20 @@
|
|
|
81
81
|
"optional": true
|
|
82
82
|
}
|
|
83
83
|
},
|
|
84
|
+
"overrides": {
|
|
85
|
+
"@earendil-works/pi-coding-agent@1.7.0": {
|
|
86
|
+
"cross-spawn": "7.1.2",
|
|
87
|
+
"minimatch": "11.0.10"
|
|
88
|
+
},
|
|
89
|
+
"@earendil-works/pi-mcp@1.7.0": {
|
|
90
|
+
"cross-spawn": "7.1.2"
|
|
91
|
+
}
|
|
92
|
+
},
|
|
84
93
|
"devDependencies": {
|
|
85
|
-
"@earendil-works/pi-agent-core": "1.
|
|
86
|
-
"@earendil-works/pi-ai": "1.
|
|
87
|
-
"@earendil-works/pi-coding-agent": "1.
|
|
88
|
-
"@earendil-works/pi-tui": "1.
|
|
94
|
+
"@earendil-works/pi-agent-core": "1.7.0",
|
|
95
|
+
"@earendil-works/pi-ai": "1.7.0",
|
|
96
|
+
"@earendil-works/pi-coding-agent": "1.7.0",
|
|
97
|
+
"@earendil-works/pi-tui": "1.7.0",
|
|
89
98
|
"@types/node": "^22.0.0",
|
|
90
99
|
"tsx": "^4.19.0",
|
|
91
100
|
"typebox": "*",
|