mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #1431] [MERGED] chore(long-term-memory): document and check the Engine chat fields it reads #1457
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#1457
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/1431
Author: @Promansis
Created: 10/16/2026
Status: ✅ Merged
Merged: 10/16/2026
Merged by: @Promansis
Base:
staging← Head:chore(long-term-memory)/1418-engine-fields📝 Commits (1)
93dd7bechore(long-term-memory): document and check the Engine chat fields it reads (#1418)📊 Changes
3 files changed (+65 additions, -1 deletions)
View changed files
📝
.github/workflows/ltm-browser.yml(+1 -1)📝
packages/long-term-memory/docs/ARCHITECTURE.md(+20 -0)➕
tests/long-term-memory-engine-fields.regression.ts(+44 -0)📄 Description
Linked issue
Closes #1418
Why this change
Long-Term Memory imports chat summaries by reading five Engine-owned
ChatMetadatafields directly (daySummaries,weekSummaries,summaryEntries,summary,gamePreviousSessionSummaries) and hard-codes the id of the Engine's built-in assistant (__professor_mari__).engine-boundary.jsoncan't list either, and nothing documented or tested them. If the Engine renamed a field, Sources would quietly stop finding those summaries; if the assistant id changed, the assistant and its chats would start appearing as sources and scope targets.What changed
packages/long-term-memory/docs/ARCHITECTURE.md: an "Engine fields read directly" table under Boundaries (field, what it feeds, Engine definition).tests/long-term-memory-engine-fields.regression.ts(new): asserts LTM'sPROFESSOR_MARI_CHARACTER_IDequals the Engine'sPROFESSOR_MARI_ID, and that the Engine'sChatMetadatainterface still declares each field. The fields exist only as TypeScript types, so the test reads the declaration; the id is a runtime constant, so it is compared by value..github/workflows/ltm-browser.yml:engine-fieldsadded to the Long-Term Memory regression loop.staging. It makes a break visible on the next LTM PR; it can't stop an Engine release from breaking the import. The proper fix is an Engine API for chat summaries.branchNameandactiveAgentIds, which the table and test don't cover; the table's wording could say it lists the summary fields and assistant id rather than every Engine field.Package and security impact
long-term-memory(docs and tests only; docs are not in the package archive)Validation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdManual verification notes
Run by the coding agent, not by a person. Engine checkout
2039583ca, Node v24.15.0.weekSummariesrenamed, and again with a different assistant id: each fails with the matching message.test-fast.sh(npm run check,git diff --check),test-ci.sh, and the four catalog validators pass.Documentation impact
Updated
packages/long-term-memory/docs/ARCHITECTURE.md.🤖 Generated with Claude Code
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.