mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[GH-ISSUE #1418] [Issue]: Long-Term Memory: the Engine chat fields it reads are undocumented and unchecked #722
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#722
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 (Oct 15, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1418
Originally assigned to: @Promansis on GitHub.
Summary
Long-Term Memory imports chat summaries by reading Engine-owned chat metadata fields directly. It also hard-codes the id of the Engine's built-in assistant character.
engine-boundary.jsondeclares no private Engine imports, so the boundary checker can't see either dependency, and nothing documents or tests them.If the Engine renames or reshapes one of these fields, Sources quietly stops finding those summaries, with no error. If the assistant's id changes, the assistant and its chats start appearing as importable sources and places.
Affected package
long-term-memory1.4.38 (upstream/staging97c0486f8),packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/interop.ts:daySummaries,weekSummaries:190-191packages/shared/src/types/chat.ts:764,:766summaryEntries:196chat.ts:298summary:218chat.ts:288gamePreviousSessionSummaries:231chat.ts:616"__professor_mari__":74, used at:483,:514androutes.ts:755-757packages/shared/src/constants/defaults.ts:21(PROFESSOR_MARI_ID)All five summary fields are members of the Engine's
ChatMetadatainterface.docs/ARCHITECTURE.md("Boundaries") mentions none of these.Expected behavior
Actual behavior
The dependency is invisible:
Steps to reproduce
interop.tsformetadata.reads; the fields above appear.engine-boundary.json("privateEngineImports": []) anddocs/ARCHITECTURE.md: neither mentions them.Environment
upstream/staging97c0486f8)Logs, screenshots, or video
Not applicable.
Minimal fix
docs/ARCHITECTURE.md→ Boundaries, add the table above: which fields, what each feeds, and where the Engine defines them.tests/long-term-memory-engine-fields.regression.ts(needsMARINARA_ENGINE_ROOT):PROFESSOR_MARI_IDfrom the Engine'spackages/shared/src/constants/defaults.tsand asserts it equals LTM'sPROFESSOR_MARI_CHARACTER_ID;packages/shared/src/types/chat.tsand asserts that each field above is still declared;Validation:
npm run checkDocs and tests only: no package rebuild or version bump.
Additional context
staging. It can't stop an Engine release from breaking the import. It makes the break visible on the next LTM PR instead of through user reports.tsx. The assistant id is a runtime constant, so that part is checked by value.Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: