mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[GH-ISSUE #818] [Issue]: Review and clear standard and AI code quality findings #423
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#423
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 @SpicyMarinara on GitHub (Sep 13, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/818
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Review the repository's open standard Code Quality findings and AI suggestions against current staging. Fix valid findings with focused changes and document dismissals for stale findings or intentional code.
Affected package
Catalog/repository; the standard findings currently span Slurp, Noodle, Long-Term Memory, Pixelforge, Beholder, Gacha Forge, tests, and captured Engine sources.
Expected behavior
Current defects are fixed at their owning source and rebuilt where needed. Findings already fixed on staging, removed code, and intentional generated output are dismissed with auditable explanations.
Actual behavior
The standard dashboard has 63 open findings. Their reports include generated bundles and older source locations; each needs verification against staging before deciding whether a code change is warranted. AI suggestions also need review.
Steps to reproduce
Environment
cf74de0eLogs, screenshots, or video
Standard findings were inventoried through the authenticated GitHub API on 2026-09-13. AI dashboard access is pending an available signed-in browser window.
Additional context
Requested by SpicyMarinara; owned by SpicyMarinara/Codex for this audit. Existing draft PR #816 changes Slurp2's splash and does not cover these standard findings. Keep package fixes against staging and preserve contributors' ongoing work.
Template check
@SpicyMarinara commented on GitHub (Sep 13, 2026):
Staging status
PR #819 is merged into staging as
60c8ef0e909b2f309d4b75aae5262b656d2299b8. All required checks, package browser CI, and the actual CodeRabbit review passed. Its 37 verified code fixes are complete; implementation issue #820 is closed.This audit remains open: the 63 reviewed standard findings still need dashboard dismissal, and AI suggestions have not been readable because native Firefox has no accessible window (
cgWindowNotFound). No Agents finding has been dismissed yet.Reviewed all 63 open standard findings against staging
cf74de0e; verified fixes are in PR #819 (e4d66f12).Dashboard dismissals are pending an available signed-in Firefox window. AI suggestions have not yet been reviewed because that dashboard is unavailable through the current browser connection. This issue remains open for that work.
All baseline validation passes: maintained-source formatting/lint (zero errors), catalog lanes, locales, catalog/archive/hash checks, release-note checks, and diff checks. Focused proof covers Noodle desktop/mobile autocomplete, Long-Term Memory routes, Calls contracts, Beholder renderer/parity, Slurp schedule and multipart paths, and all six game move hooks.
Per-finding decisions
packages/slurp/src/engine/packages/server/src/routes/slurp.routes.ts—ee3237a746removed the unconditional return write.value that made the image detector unreachable on Aug25. Current reader validates the returned buffer before assigning media.tests/long-term-memory-routes.regression.ts— The fixture unregister callback usedvoid service || void name, whose left side is always undefined. Both parameters are already used to register storage. Return an explicit no-op callback (() => undefined).packages/slurp/src/engine/packages/server/src/routes/slurp.routes.ts— Same historical early-return defect as102, fixed byee3237a746. Current successful PNG assigns media, while field-only requests leave it null.packages/slurp/src/engine/packages/server/src/routes/slurp.routes.ts— Same historical early-return defect as102, fixed byee3237a746. Current media assignment at265 makes the duplicate-file branch reachable on a subsequent file part. Fastify also independently limits files to1.packages/noodle/src/engine/packages/client/src/components/noodle/NoodleHome.tsx— The entire inline composer is guarded by !composeOpen. Remove the redundant inner checks on tool popovers, mention aria attributes, and mention rendering; the outer gate and separate modal composer remain.packages/noodle/src/engine/packages/client/src/components/noodle/NoodleHome.tsx— The entire inline composer is guarded by !composeOpen. Remove the redundant inner checks on tool popovers, mention aria attributes, and mention rendering; the outer gate and separate modal composer remain.packages/noodle/src/engine/packages/client/src/components/noodle/NoodleHome.tsx— The entire inline composer is guarded by !composeOpen. Remove the redundant inner checks on tool popovers, mention aria attributes, and mention rendering; the outer gate and separate modal composer remain.packages/noodle/src/engine/packages/client/src/components/noodle/NoodleHome.tsx— The entire inline composer is guarded by !composeOpen. Remove the redundant inner checks on tool popovers, mention aria attributes, and mention rendering; the outer gate and separate modal composer remain.packages/gacha-forge/client.js— title:e&&e.title||"Combat" follows an early return for !e. Drop only redundant e&& in the owning source.packages/gacha-forge/client.js— rank:s&&s.rank follows if(!(s&&s.ok)) return; redundant s&& guard.packages/gacha-forge/client.js— h&&h.defaults occurs inside if(h&&h.ok&&Array.isArray(h.books)); redundant h&& guard.packages/gacha-forge/client.js— (e100>=10,(e100).toFixed(1)) discards a side-effect-free numeric comparison; output always uses one decimal. Remove obsolete comparison/duplicate formatting branch in owner source.packages/slurp/src/engine/packages/server/src/services/storage/slurp.storage.ts— Historical reported1581 maps to ensureRefreshSchedule1702, not the separate cleanup settings variable1597. ensureRefreshSchedule always reconciles with count0 and never reads its settings local. getSettings only reads and normalizes; no persisted side effects. All4 callers traced, only scheduler poll passed settings.packages/slurp/src/engine/packages/server/src/services/storage/slurp.storage.ts— clearNoodleRefreshFailure appeared only in the import list; the refresh-schedule module still has several live imports.packages/slurp/src/engine/packages/server/src/services/slurp/slurp-reply-generation.service.ts— createChatsStorage had no references beyond its import in slurp-reply-generation.service.ts.packages/slurp/src/engine/packages/server/src/services/slurp/slurp-generation.service.ts— createChatsStorage had no references beyond its import in slurp-generation.service.ts.packages/slurp/src/engine/packages/server/src/routes/slurp.routes.ts— NOODLE_IDENTITY_LOCK_BUSY had no references beyond its declaration.packages/slurp/src/engine/packages/client/src/hooks/use-slurp.ts— preservePollVotes was an unexported uncalled function. Its mergeNoodlePollVoteInteractions import was used only inside that function. Live hook behavior does not call either.packages/slurp/src/engine/packages/client/src/components/slurp/SlurpHome.tsx— useNoodleAccent appeared only in the SlurpHome import list; existing live accent helpers remain.packages/pixelforge/client.js— The world IIFE declares T=PF.TILE but never reads T; source and concatenated bundle represent one issue. Delete unused alias in source, then rebuild with scripts/build-pixelforge-package.mjs.packages/noodle/src/engine/packages/client/src/components/noodle/NoodleHome.tsx— textareaClass has no reference beyond its declaration. Remove the unused style string; actual textarea classes stay.packages/gacha-forge/client.js— c=e.materials&&e.materials.ascension||{} has no reads; confirmed by ESLint.packages/gacha-forge/client.js— i=e.relicBand||{} has no reads in its function; confirmed by ESLint no-unused-vars on current bundle.packages/gacha-forge/client.js— i=new Map(o.map(p=>[p.id,p])) has no reads; confirmed by ESLint.packages/gacha-forge/client.js— O=(l?.value||"").trim() is unused; confirmed by ESLint.packages/gacha-forge/client.js— I=(c?.value||"").trim() is unused; submitted configuration already comes through the form config/protagonist flow. Confirmed by ESLint.packages/gacha-forge/client.js— u=s("images.styleProfileId") is an unused wrapper lookup; the actual input g=r("images.styleProfileId") remains used. Confirmed by ESLint.packages/beholder/client.js— rowSide has no source callers. The package concatenates the source files verbatim; the report is the generated duplicate of this dead declaration. Delete only this declaration and its exclusively attached documentation; preserve used color synonyms/slot maps/renderers. Rebuild via scripts/build-beholder-package.mjs; existing renderer/parity proofs cover behavior.packages/beholder/client.js— formatSlotList has no source callers. The package concatenates the source files verbatim; the report is the generated duplicate of this dead declaration. Delete only this declaration and its exclusively attached documentation; preserve used color synonyms/slot maps/renderers. Rebuild via scripts/build-beholder-package.mjs; existing renderer/parity proofs cover behavior.packages/beholder/client.js— COLOR_PALETTE has no source callers. The package concatenates the source files verbatim; the report is the generated duplicate of this dead declaration. Delete only this declaration and its exclusively attached documentation; preserve used color synonyms/slot maps/renderers. Rebuild via scripts/build-beholder-package.mjs; existing renderer/parity proofs cover behavior.sources/engine/packages/client/src/components/chat/ConversationCallSurface.tsx— Calls playback sequence builder Remove only pauseSourceTurn assignment in the empty sequence branch; continue bypasses its only later read and the next iteration initializes it again. Keep the assignment at2021 and actual text-to-voice pause.packages/gacha-forge/client.js— The Aug25 generated bundle at the reported coordinate is combat replay cleanup callback return. esbuild legally omits semicolons before block/function boundaries. This is generated formatting, not an ASI behavior defect.packages/gacha-forge/client.js— The Aug25 generated bundle at the reported coordinate is combat replay default case break. esbuild legally omits semicolons before block/function boundaries. This is generated formatting, not an ASI behavior defect.packages/gacha-forge/client.js— The Aug25 generated bundle at the reported coordinate is combat replay revive case break. esbuild legally omits semicolons before block/function boundaries. This is generated formatting, not an ASI behavior defect.packages/gacha-forge/client.js— The Aug25 generated bundle at the reported coordinate is combat replay death case break. esbuild legally omits semicolons before block/function boundaries. This is generated formatting, not an ASI behavior defect.packages/gacha-forge/client.js— The Aug25 generated bundle at the reported coordinate is collection event binder returning an empty cleanup callback. esbuild legally omits semicolons before block/function boundaries. This is generated formatting, not an ASI behavior defect.packages/gacha-forge/client.js— The Aug25 generated bundle at the reported coordinate is portrait-crop final pointer-cancel listener. esbuild legally omits semicolons before block/function boundaries. This is generated formatting, not an ASI behavior defect.packages/gacha-forge/client.js— The Aug25 generated bundle at the reported coordinate is unit-feed pointer-release listener loop. esbuild legally omits semicolons before block/function boundaries. This is generated formatting, not an ASI behavior defect.packages/gacha-forge/client.js— The Aug25 generated bundle at the reported coordinate is skill-effect summary switch default return. esbuild legally omits semicolons before block/function boundaries. This is generated formatting, not an ASI behavior defect.packages/gacha-forge/client.js— The Aug25 generated bundle at the reported coordinate is target-description switch default return. esbuild legally omits semicolons before block/function boundaries. This is generated formatting, not an ASI behavior defect.packages/gacha-forge/client.js— The Aug25 generated bundle at the reported coordinate is combat simulation attack function final event-frame emission. esbuild legally omits semicolons before block/function boundaries. This is generated formatting, not an ASI behavior defect.packages/gacha-forge/client.js— The Aug25 generated bundle at the reported coordinate is chapter replay click listener at the end of a loop. esbuild legally omits semicolons before block/function boundaries. This is generated formatting, not an ASI behavior defect.tests/memory-nag-selection.regression.ts— memoryNagRoutes is declared as FastifyPluginAsync, whose calling contract receives the Fastify instance and options. The fixture supplies both; unused options inside this plugin do not make the typed plugin call invalid.packages/slurp/src/engine/packages/server/src/services/slurp/slurp-public-support.ts— logger appeared only in the slurp-public-support.ts import declaration. No logging operations were removed.packages/slurp/src/engine/packages/server/src/services/slurp/slurp-public-profiles.service.ts— parseRecord appeared only in the slurp-public-profiles.service.ts import list. The exported helper remains used by slurp-public-support.ts.packages/pixelforge/src/20-world.js— The world IIFE declares T=PF.TILE but never reads T; source and concatenated bundle represent one issue. Delete unused alias in source, then rebuild with scripts/build-pixelforge-package.mjs.packages/noodle/src/engine/packages/server/src/services/noodle/noodle-public-profiles.service.ts— parseRecord appears only in this import list. Remove that specifier, preserving the three used support helpers.packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/keyword-extract.ts— ltmKeywordKey appears only in this import list. Remove it; active-keyword and intent resolution remain unchanged.packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/MemoryVault.tsx— Current staging imports neither Braces nor Sparkles; the Memory Vault was updated since the reported source location.sources/engine/packages/server/src/services/prompt/assembler.ts— assemblePrompt Delete unused groupOrder JSON.parse local; preserve the preset interface and actual section/group ordering. Equivalent cleanup is already in Engine staging.sources/engine/packages/server/src/services/lorebook/keyword-scanner.ts— scanForActivatedEntries Remove unused currentMessageIndex destructured local, retain ScanOptions field and the separate activation-timing helper parameter. Equivalent cleanup exists in Engine staging.sources/engine/packages/server/src/services/conversation/schedule.service.ts— conversation schedule helpers Remove unused createLLMProvider import; current Engine staging already removed it. Keep BaseLLMProvider and provider-resolution helpers.sources/engine/packages/server/src/routes/conversation-calls.routes.ts— conversationCallsRoutes Remove llmFetch from mixed import; preserve ChatMediaAttachment/ChatMessage type imports.sources/engine/packages/client/src/hooks/use-uno.ts— useUnoMove declares qc but never reads it. Board imports the move hook, which updates its game store directly; start/resign hooks still use their own query-client bindings. Delete only the unused qc = useQueryClient() declaration in the move/throw hook; keep the import and all other callers.sources/engine/packages/client/src/hooks/use-tic-tac-toe.ts— useTicTacToeMove declares qc but never reads it. Board imports the move hook, which updates its game store directly; start/resign hooks still use their own query-client bindings. Delete only the unused qc = useQueryClient() declaration in the move/throw hook; keep the import and all other callers.sources/engine/packages/client/src/hooks/use-rock-paper-scissors.ts— useRockPaperScissorsThrow declares qc but never reads it. Board imports the move hook, which updates its game store directly; start/resign hooks still use their own query-client bindings. Delete only the unused qc = useQueryClient() declaration in the move/throw hook; keep the import and all other callers.sources/engine/packages/client/src/hooks/use-poker.ts— usePokerMove declares qc but never reads it. Board imports the move hook, which updates its game store directly; start/resign hooks still use their own query-client bindings. Delete only the unused qc = useQueryClient() declaration in the move/throw hook; keep the import and all other callers.sources/engine/packages/client/src/hooks/use-eightball.ts— useEightBallMove declares qc but never reads it. Board imports the move hook, which updates its game store directly; start/resign hooks still use their own query-client bindings. Delete only the unused qc = useQueryClient() declaration in the move/throw hook; keep the import and all other callers.sources/engine/packages/client/src/hooks/use-chess.ts— useChessMove declares qc but never reads it. Board imports the move hook, which updates its game store directly; start/resign hooks still use their own query-client bindings. Delete only the unused qc = useQueryClient() declaration in the move/throw hook; keep the import and all other callers.sources/engine/packages/shared/src/features/turn-games/eightball/physics.ts— runOuterStep Remove remaining=0 immediately before unconditional break; remaining is loop-local and not read after the loop. Regenerate physics.js from TypeScript rather than hand editing generated dist.sources/engine/packages/shared/dist/features/turn-games/eightball/physics.js— runOuterStep generated duplicate Duplicate of7: regenerate from physics.ts with matching TypeScript compiler options.sources/engine/packages/server/src/services/prompt/assembler.ts— assemblePrompt Remove never-read chatHistoryEndIdx declaration and assignment. All actual message/group construction remains. Equivalent cleanup already exists in Engine staging.sources/engine/packages/server/src/services/game/map-position.service.ts— ensureGameMapLocation Replace overwritten targetId initializer with definite string declaration; both branches assign before use. Equivalent cleanup already exists in Engine staging. No static import consumer found in current package/captured sources.