mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6861] [MERGED] fix: address staging security and quality findings #7356
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#7356
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/6861
Author: @SpicyMarinara
Created: 9/29/2026
Status: ✅ Merged
Merged: 9/29/2026
Merged by: @SpicyMarinara
Base:
staging← Head:codex/staging-security-quality📝 Commits (4)
1a9e517chore: track staging security and quality fixes05889d8fix: harden shared inputs and address quality findings0161a8aMerge staging and preserve both changelog entries50967a7docs: scope provider detection claim to hosted APIs📊 Changes
18 files changed (+198 additions, -66 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)📝
packages/client/src/components/characters/CharacterLibraryView.tsx(+1 -1)📝
packages/client/src/components/chat/ChatSettingsDrawer.tsx(+2 -2)📝
packages/client/src/components/panels/CharactersPanel.tsx(+1 -1)📝
packages/server/src/routes/generate.routes.ts(+1 -1)📝
packages/shared/src/constants/model-lists.ts(+24 -20)📝
packages/shared/src/features/rulesets/sheet-prompt.ts(+7 -3)📝
packages/shared/src/features/tactical-combat/grid-gen.ts(+2 -1)📝
scripts/regressions/capability-gm-verb-runtime.regression.ts(+0 -2)📝
scripts/regressions/fixtures/posix-terminal-shutdown.py(+2 -0)📝
scripts/regressions/gallery-file-lifecycle.regression.ts(+1 -1)📝
scripts/regressions/mari-polish.regression.ts(+0 -1)➕
scripts/regressions/model-source-hosts.regression.ts(+56 -0)📝
scripts/regressions/one-request-dice-pool.regression.ts(+0 -1)📝
scripts/regressions/open-issues.regression.ts(+1 -4)📝
scripts/regressions/prompt.regression.ts(+28 -26)➕
scripts/regressions/shared-game-input-security.regression.ts(+68 -0)📝
scripts/run-server.mjs(+2 -2)📄 Description
Linked issue
Addresses #6860
Why this change
Provider names embedded in unrelated URLs could select the wrong image/video API. Malformed direct-library inputs could also enter a Game command hint or coerce a tactical-grid property key. This fixes those boundaries and removes the valid small issues in the current quality backlog.
What changed
Validation
Merged to staging as
ff59af37eeb110ca6e8be767b733f444b55f33c7after every required GitHub check and CodeRabbit passed on final head50967a738b6c78997d29b5ee32de5746a49937ae. Both review threads are resolved. Human checkboxes remain unchecked.pnpm checkpasses locallyCONTRIBUTING.mdAutomated evidence:
pnpm checkpassed, including localization, formatting, lint, types and production build.pnpm audit --json: zero vulnerabilities at all severities. The five Dependabot patches already exist on staging via #6830; no redundant dependency bump is included here.sha256:3179e67716684e9b751b6a195ade7c219d2fa226846b0bc1746ff0adf68cb1f6built and ran: health, production shell/assets, multiplayer gates and inert guest document verified. Temporary containers removed.pnpm checkand the shared Game security proof passed again on the integrated branch.50967a738; the final hosted review passed.Finding dispositions
Security #520, #532 and #535 have landed source fixes and runnable regression proof. After verifying the staging merge, these alerts were dismissed as
mitigatedat the maintainer's request, with the merge and pending main release noted. The refreshed staging alert query returns zero open findings. The follow-up #580 is a confirmed false positive: CodeQL 2.27.1 does not modelNumber.isIntegeras a number guard. The reported publicplaceSpawnspath rejects coercible objects and passes the regression; the evidence is recorded in the resolved review thread and the alert was dismissed.Quality fixes: #2569–2570, #2576–2590 (17 findings).
Confirmed quality false positives:
@ts-expect-errorwithout executing them.Dependabot and the standard Code Quality backlog track default
main, not staging. The maintainer explicitly deferred main changes to the next release and requested dismissal once remediation is verified on staging. Dependabot #48–52 are now dismissed asfix_started, with comments naming #6830, the patched versions, and the pending main release. Main remains unchanged. A final API refresh confirms zero open Dependabot alerts and 25 still-open Code Quality findings. Code Quality dismissals require the GitHub website; the documented API has no dismissal endpoint and browser access is unavailable in this session. Its 17 valid findings have staging fixes and eight false positives have evidence above. No query suppression or security-check configuration changes are included.Manual verification notes
No new manual UI path: the client edits remove redundant operands without changing rendering. Browser regressions exercise the affected existing surfaces. Physical-device testing was not performed for this internal cleanup.
Docs and release impact
One Unreleased changelog entry. No user-facing documentation, app version or storage-format change. No main promotion or release included.
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue openedUI evidence (if applicable)
No visible interface change; screenshot evidence is not applicable to these equivalent-expression cleanups.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.