mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #7043] [Issue]: Profile restores bypass the active LTM vault lock and cache invalidation #3942
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#3942
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 4, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7043
Originally assigned to: @Promansis on GitHub.
Summary
Native profile restore publishes Long-Term Memory (LTM) vault files without coordinating with the active downloadable package. Its in-memory initialization/snapshot caches can continue describing the pre-restore vault, and package reads/rebuilds are not serialized with publication or rollback.
Expected behavior
When a profile import touches an active LTM vault, Engine should delegate coordination to the package's existing private
withVaultMutationruntime-service hook. After success, the package should read the restored disk state; after failure, it should read the rolled-back state. No package operation should observe a partially published vault.Actual behavior
importProfileStorageSnapshotstages assets, enters the profile lifecycle lock and database transaction, promotes the files, and rolls them back on failure. The backup asset set includeslong-term-memory, but this path never invokes the LTM runtime hook. Filesystem rollback exists; package lock/cache coordination is missing.Steps to reproduce
Helper-level reproduction previously exercised during investigation; a full browser/HTTP profile-import reproduction has not been run:
Environment
staging, source inspected at35621d44bbe7bf3336943e1076e4e8065a8b835a; no release-build reproduction claimed.Logs, screenshots, or video
No browser screenshots or full-route logs were collected. Earlier helper characterization confirmed disk publication, stale active snapshot text, and successful disk rollback. That historical fixture was not rerun for this filing; current upstream source still lacks the integration.
Current source references:
Additional context
Related package work: Marinara-Agents #1179, implemented by PR #1192. The runtime service already exposes
withVaultMutation; this issue is the missing Engine caller.Implementation boundary:
Persistence-sensitive validation required during implementation: active/inactive/older-package paths; successful publication; transaction/publication failure and rollback; rollback failure; concurrent recall/rebuild; lock ordering/release; cache invalidation on both success and error. Reuse the existing profile-import and capability-runtime regression infrastructure and run repository-required validation. None of these post-fix gates has been run for this filing.
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: