[GH-ISSUE #4861] [Issue]: Simplify duplicate internal utilities and fix prompt regression assertion #2689

Closed
opened 2026-10-21 05:53:05 +07:00 by bsakaguchi · 0 comments
Owner

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:prompt should accept normal multiline formatting while still requiring the intended awaited retry-batch call.

Actual behavior

  • cardPromptText has duplicate implementations and ownership surfaces.
  • The feature-registry generator keeps a configurable writer used by one fixed recipe.
  • TERRAIN_DATA is exported twice from the tactical-combat barrel.
  • A server-local inline-thinking file only forwards shared exports.
  • The prompt regression requires executeRetryBatches( and agentContext to be on the same line, so the aggregate lane fails on the current multiline call.

Steps to reproduce

  1. Check the duplicate implementations/forwarders and the tactical-combat barrel on current staging.
  2. Run pnpm regression:prompt.
  3. Observe the source assertion failure at scripts/regressions/prompt.regression.ts:5264 despite the awaited call being present with agentContext as its first argument.

Environment

  • Marinara Engine version: staging at e8f6885b160b1239c012ff5431af0eaa64338588
  • Install type: source
  • OS + version: Windows
  • Browser or app shell: not applicable; internal source and regression maintenance

Logs, screenshots, or video

The prompt regression reports that /await executeRetryBatches\(agentContext/u does not match the valid multiline call in retry-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

  • I DID NOT read this template and provide the requested details.
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. <!-- task-id: internal-simplification-batch-2026-08 --> ## 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:prompt` should accept normal multiline formatting while still requiring the intended awaited retry-batch call. ## Actual behavior - `cardPromptText` has duplicate implementations and ownership surfaces. - The feature-registry generator keeps a configurable writer used by one fixed recipe. - `TERRAIN_DATA` is exported twice from the tactical-combat barrel. - A server-local inline-thinking file only forwards shared exports. - The prompt regression requires `executeRetryBatches(` and `agentContext` to be on the same line, so the aggregate lane fails on the current multiline call. ## Steps to reproduce 1. Check the duplicate implementations/forwarders and the tactical-combat barrel on current `staging`. 2. Run `pnpm regression:prompt`. 3. Observe the source assertion failure at `scripts/regressions/prompt.regression.ts:5264` despite the awaited call being present with `agentContext` as its first argument. ## Environment - Marinara Engine version: `staging` at `e8f6885b160b1239c012ff5431af0eaa64338588` - Install type: source - OS + version: Windows - Browser or app shell: not applicable; internal source and regression maintenance ## Logs, screenshots, or video The prompt regression reports that `/await executeRetryBatches\(agentContext/u` does not match the valid multiline call in `retry-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 - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:53:05 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#2689
No description provided.