mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[GH-ISSUE #2016] [Feature]: Long-Term Memory: show how many memories each Agent added this week in Memory Settings → Sharing #1875
Labels
No labels
agent: chess
agent: conversation-calls
agent: eightball
agent: haptic
agent: hierarchical-maps
agent: hierarchical-maps
agent: illustrator
agent: poker
agent: rock-paper-scissors
agent: tic-tac-toe
agent: uno
artifacts
bug
bugfix
build
catalog
ci
client
dependencies
docs
documentation
enhancement
feature
fixed-in-staging
in-pr
normal-scope
packages
pull-request
qol
regression
roadmap
scope-risk
server
soup
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Agents#1875
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Promansis on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/2016
Originally assigned to: @Promansis on GitHub.
What problem does this solve?
Memory Settings → Recall → Sharing has two switches, "Other Agents can read memories" and "Other Agents can add memories", and one table under the first: Agent, Last read, Reads this week, Memories returned this week (#1805). Since #1992 (1.5.23), Slurp can add memories through the
long-term-memory:intakeservice. Nothing in Long-Term Memory shows that it does. A user who turns "Other Agents can add memories" on can't tell whether Slurp is adding anything, or how much, without searching the Memory Vault for "From Slurp" sections. An Agent that only adds (read switch off) doesn't appear in the table at all.#1805 left this out on purpose ("A 'Feeds memories' column ... comes with learning from Noodle and Slurp posts, and the row key (the caller id) is ready for it"), and the SN-4 plan for #1989 deferred an "Added this week" column. Intake now exists, so the column has data.
Proposed package or change
Package-only Long-Term Memory patch release. No Engine change, no new route, no stored-format change: intake writes one Debug activity line per applied record, the same way reads already do, and the existing table gains one column.
Minimal fix
S =
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory, C =packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory. Checked onupstream/staging5f2ad6896(LTM 1.5.26).S/services/storage-read.ts:recordLtmPackageAdd(root, caller, memories)besiderecordLtmPackageRead(~25):recordLtmDebugEvent({ root, phase: "apply", action: "package_add", status: "ok", source: caller, counts: { memories } }).listLtmPackageReaders(~47): in its single pass, also takepackage_addevents (read the log once without theretrievalfilter and filter the two phases in the loop). Per caller addadded(sum ofcounts.memoriesof adds in the last 7 days).lastReadAtbecomesstring | null(null when the caller only added). Sort by the newest read or add, newest first, thenslice(0, 10)as now. The return shape is{ caller, lastReadAt, reads, memories, added }.S/services/intake.ts:submitUnlocked(~146) also returns how many character memories it wrote (mutations.length) with"applied".submit(~286): afterwithLtmVaultLockresolves with an applied result, callrecordLtmPackageAdd(root, caller, count). Call it outside the lock, becauserecordLtmDebugEventtakes the vault lock itself.unchanged,nullandretractrecord nothing. The returned value stays{ version: 1, status }.C/settings/MemorySettings.tsx:packageReadersrequest type (~240) gainslastReadAt: string | null; added: number.Toggle. Add a fifth header and a right-alignedtabular-numscell withreader.added. Last read showsotherAgentsNoReadswhenlastReadAtis null. Label the table with a newotherAgentsTablekey instead of the read switch's label. Use only classes the table already uses.C/locales/en.jsonandko.json: addmemorysettings.otherAgentsMemoriesAddedThisWeek("Memories added this week"),memorysettings.otherAgentsNoReads("No reads") andmemorysettings.otherAgentsTable("What other Agents read and added"). Replacememorysettings.noOtherAgentHasReadMemoriesLatelywithmemorysettings.noOtherAgentHasUsedMemoriesLately("No other Agent has read or added memories lately.").node scripts/validate-package-locales.mjsmust pass.packages/long-term-memory/docs/UI.md(~260): the Sharing sentence also names memories added this week, and says the table sits under both switches.packages/long-term-memory/CHANGELOG.md: one line under## Unreleased. Patch release; no version bump in the implementation commit.Regression:
tests/long-term-memory-runtime.regression.ts, thelistLtmPackageReadersblock (~476-530):recordLtmPackageAdd(recallRoot, "tally", 2)gives thetallyrowadded: 2, and the existing deep-equal assertions gainadded.package_addline counts toward ordering but not towardadded."adder") is listed withlastReadAt: null,reads: 0,memories: 0,added: 1.tests/long-term-memory-intake.regression.ts(~87-137):appliedsubmit, theslurp2row fromlistLtmPackageReaders(root)hasadded: 1.unchangedresubmit leaves it at 1.tests/long-term-memory-routes.regression.ts(~40) already smoke-testsGET /settings/package-readers; no change expected.Suites:
test-ltm.sh runtime,test-ltm.sh intake,test-ltm.sh routes, plus the package typecheck andtest-fast.sh.Non-goals
registerService(..., { forCaller })). Until then a name is self-reported and a per-row switch blocks nothing.Why should this be optional?
It is part of the optional Long-Term Memory package's settings and only reports what the package's own intake service already does.
Alternatives considered
from_<caller>sections orsource_pkg_<caller>_notes in the vault. That shows the total, not this week, and needs a vault scan on every Settings open. The Debug activity log already backs the read columns.Additional context
Follows #1805 (the table) and #1989 / #1992 (intake, 1.5.23).
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: