mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6446] [CLOSED] Add a private notebook with scoped revision-safe notes #7183
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#7183
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-Engine/pull/6446
Author: @SirAdoni
Created: 9/20/2026
Status: ❌ Closed
Base:
staging← Head:contrib/e24-private-notebook📝 Commits (1)
6355aa4feat(notebook): add private scoped revision-safe notes📊 Changes
24 files changed (+2432 additions, -62 deletions)
View changed files
📝
CHANGELOG.md(+3 -0)📝
packages/client/src/components/chat/ChatArea.tsx(+128 -27)📝
packages/client/src/components/chat/ChatConversationSurface.tsx(+6 -0)📝
packages/client/src/components/chat/ChatHelpOverlay.tsx(+9 -2)📝
packages/client/src/components/chat/ChatRoleplaySurface.tsx(+16 -0)📝
packages/client/src/components/chat/ChatToolbarControls.tsx(+15 -3)📝
packages/client/src/components/chat/ConversationView.tsx(+6 -0)➕
packages/client/src/components/chat/PrivateNotebookPanel.tsx(+672 -0)📝
packages/client/src/components/game/GameSurface.tsx(+2 -0)➕
packages/client/src/hooks/use-private-notebook.ts(+69 -0)📝
packages/client/src/localization/locales/en.json(+32 -0)📝
packages/server/src/db/file-backed-store.ts(+16 -6)📝
packages/server/src/routes/index.ts(+2 -0)➕
packages/server/src/routes/private-notebook.routes.ts(+57 -0)📝
packages/server/src/services/mari-db/mari-db.service.ts(+110 -18)📝
packages/server/src/services/mari-db/mari-transform-sandbox.ts(+20 -4)➕
packages/server/src/services/private-notebook.service.ts(+227 -0)📝
packages/server/src/services/professor-mari/workspace-agent.service.ts(+8 -0)📝
packages/server/src/services/professor-mari/workspace-change-review.service.ts(+71 -2)📝
packages/server/src/services/storage/characters.storage.ts(+2 -0)...and 4 more files
📄 Description
Linked issue
Closes #6433
Why this change
Players need a place to write private notes without adding those notes to model context. Notes must survive reloads and scope changes without silently overwriting a newer revision from another view.
What changed
Notes are private application data, not encrypted secrets. Existing installation/OS access controls still apply. The Node transform fallback is not claimed to be a malicious-code security boundary.
Validation
Passed localization, formatting, lint, E2E/token types, server/client/shared TypeScript and production build with repository-pinned Corepack pnpm. The root check's context stage is blocked by the Windows checkout's tracked skills symlink being represented as a text file; the unchanged context and skill target passed the real guard in an isolated copy. No tracked skill or build-policy changes are included.
The storage/API regression passed save/read/reload, scope isolation, revision conflict, corrupt records, lifecycle cleanup, nested durable commit/rollback and prompt exclusion. After parent security review, it additionally exercised a real transform reading its supplied table context and a real mari code Git diff over synthetic tracked storage/backups: private rows/content were absent while ordinary source changes remained visible.
An isolated Chromium session passed two existing chat smoke cases and a focused notebook fixture covering toolbar opening, typing/autosave, scope switching, close/reopen, reload and conflict draft retention. Notebook HTTP responses were mocked for that browser proof; the separate API regression uses real application storage/routes. No live campaign or provider calls were used. Privacy review classified the sole email match as a reserved synthetic example.invalid test identity; no personal data is included.
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Docs and release impact
Localized UI/help text and Unreleased changelog included. No release metadata or user-facing docs under docs/ changed.
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue openedUI evidence (if applicable)
Browser fixtures use synthetic notes. Private campaigns, screenshots, local paths and credentials are excluded.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.