mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #4861] [Issue]: Simplify duplicate internal utilities and fix prompt regression assertion #2689
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#2689
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 @Xelvanis on GitHub (Aug 10, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4861
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Several small internal maintenance problems remain on
staging: duplicated card-text normalization, single-use or forwarding abstractions, a redundant shared export, and a prompt regression assertion that fails when a valid call is formatted across lines.Expected behavior
Each internal capability should have one clear owner, generated tool output and public bindings should remain unchanged, and
pnpm regression:promptshould accept normal multiline formatting while still requiring the intended awaited retry-batch call.Actual behavior
cardPromptTexthas duplicate implementations and ownership surfaces.TERRAIN_DATAis exported twice from the tactical-combat barrel.executeRetryBatches(andagentContextto be on the same line, so the aggregate lane fails on the current multiline call.Steps to reproduce
staging.pnpm regression:prompt.scripts/regressions/prompt.regression.ts:5264despite the awaited call being present withagentContextas its first argument.Environment
stagingate8f6885b160b1239c012ff5431af0eaa64338588Logs, screenshots, or video
The prompt regression reports that
/await executeRetryBatches\(agentContext/udoes not match the valid multiline call inretry-agents-route.ts.Additional context
The intended change is behavior-preserving: consolidate exact copies, remove only redundant forwarding/export surfaces, preserve byte-identical generated registry output, and let the regression assertion tolerate whitespace before the unchanged first argument.
Template check