mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #3649] [MERGED] Prevent capability package downgrades #6031
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#6031
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/3649
Author: @thetopham
Created: 7/15/2026
Status: ✅ Merged
Merged: 7/15/2026
Merged by: @SpicyMarinara
Base:
staging← Head:agent/capability-version-direction-3648📝 Commits (1)
a85c584Prevent capability package downgrades📊 Changes
4 files changed (+71 additions, -17 deletions)
View changed files
📝
packages/client/src/components/agents/AgentCatalogView.tsx(+15 -3)📝
packages/server/src/services/capability-packages/package-manager.service.ts(+15 -14)📝
packages/shared/src/schemas/capability-package.schema.ts(+32 -0)📝
scripts/regressions/capability-package-lifecycle.regression.ts(+9 -0)📄 Description
Linked issue
Closes #3648
Why this change
The Agent Catalog treated every installed/catalog version mismatch as an available update. A locally installed Hierarchical Maps 1.0.1 therefore appeared as
Agent v1.0.0with an Update button while the published catalog was still older. With privileged access, that action could select the 1.0.0 artifact and downgrade the working package.What changed
Validation
Automated evidence:
pnpm regression:issuespassed, including capability lifecycle and version-ordering cases.pnpm checkpassed, including Impeccable context, TypeScript, ESLint, server build, client build, and PWA generation.Live post-build restart kept Hierarchical Maps 1.0.1 active and ready with overall capability health
ok.The rebuilt Agent Catalog chunk containing the installed/catalog labels returned HTTP 200.
The production server build contains the downgrade refusal path.
pnpm checkpasses locallyContainer (Docker / Podman) built and ran without issue
Ran the app, clicked through the changes manually
Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
Above manual verification completed (describe below)
Read and followed
CONTRIBUTING.mdManual verification notes
Installed v1.0.1andCatalog v1.0.0 (older)with no Update button.Docs and release impact
UI evidence (if applicable)
Small state-copy correction only. No layout, theme, or responsive structure changes.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.