[GH-ISSUE #4894] [Issue]: Manual Agent retries diverge from normal settings and tool resolution #2713

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

Originally created by @Xelvanis on GitHub (Aug 11, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4894

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Manual Agent retries resolve settings and tool access through retry-specific copies of normal-generation policy. As those paths drift, a retried Agent can use stale/default settings differently or lose permitted custom and built-in tools that are available during the original generation.

Expected behavior

For the same chat and Agent configuration, manual retries should use normal generation's current effective settings and Agent-only tool/context policy while retaining retry-specific history, target-character/lorebook scope, approvals, Spotify verification/fallback, SSE, persistence, and image behavior.

Actual behavior

The retry route independently reparses settings and attaches only selected tool families. This can diverge from normal generation's manifest defaults, stored overrides, retired-tool cleanup, Music-source overlays, context size, custom-tool validation/allowlisting, and permitted built-in tool composition.

Steps to reproduce

  1. Configure an Agent with current settings plus a permitted custom or built-in tool, then run normal generation in a chat.
  2. Manually rerun that Agent through the retry-agents flow for the generated assistant message.
  3. Compare the resolved settings, tool definitions/context, and resulting behavior between the original run and retry.

Depending on the Agent, the retry can omit a permitted tool or consume settings that do not match the original generation path.

Environment

  • Marinara Engine version: 2.4.2 source checkout; observed on staging before the prepared fix (db0c598e3b32c29170d0c865a735fde8c624dd19)
  • Install type: source
  • OS + version: not environment-specific; server resolution path
  • Browser or app shell: not environment-specific

Logs, screenshots, or video

No provider or UI log is required to expose the policy drift. A deterministic provider-free regression reproduces the settings and tool/context mismatch at the production resolution boundaries.

Additional context

Narrower historical retry inconsistencies were tracked in closed issues #2990, #2994, and #2998. This issue covers the current broader divergence between normal generation's canonical settings/Agent-tool owners and manual retry.

Acceptance criteria

  • Manual retry consumes the canonical effective Agent settings for defaults, overrides, tool retirement, Music source, context size, and chat overlays.
  • Manual retry uses normal generation's permitted Agent-only tool definitions, context, authorization, and execution policy without enabling unrelated main-chat tools.
  • Retry-specific phase context, selected target identity/lorebook scope, approvals, Spotify verification/fallback, SSE, persistence, and image behavior remain unchanged.
  • Deterministic provider-free regression coverage protects positive, denial, schema, allowlist, context, and Spotify ordering behavior.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @Xelvanis on GitHub (Aug 11, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4894 Originally assigned to: @SpicyMarinara on GitHub. <!-- task-id: manual-agent-retry-resolution-parity --> ## Summary Manual Agent retries resolve settings and tool access through retry-specific copies of normal-generation policy. As those paths drift, a retried Agent can use stale/default settings differently or lose permitted custom and built-in tools that are available during the original generation. ## Expected behavior For the same chat and Agent configuration, manual retries should use normal generation's current effective settings and Agent-only tool/context policy while retaining retry-specific history, target-character/lorebook scope, approvals, Spotify verification/fallback, SSE, persistence, and image behavior. ## Actual behavior The retry route independently reparses settings and attaches only selected tool families. This can diverge from normal generation's manifest defaults, stored overrides, retired-tool cleanup, Music-source overlays, context size, custom-tool validation/allowlisting, and permitted built-in tool composition. ## Steps to reproduce 1. Configure an Agent with current settings plus a permitted custom or built-in tool, then run normal generation in a chat. 2. Manually rerun that Agent through the retry-agents flow for the generated assistant message. 3. Compare the resolved settings, tool definitions/context, and resulting behavior between the original run and retry. Depending on the Agent, the retry can omit a permitted tool or consume settings that do not match the original generation path. ## Environment - Marinara Engine version: 2.4.2 source checkout; observed on `staging` before the prepared fix (`db0c598e3b32c29170d0c865a735fde8c624dd19`) - Install type: source - OS + version: not environment-specific; server resolution path - Browser or app shell: not environment-specific ## Logs, screenshots, or video No provider or UI log is required to expose the policy drift. A deterministic provider-free regression reproduces the settings and tool/context mismatch at the production resolution boundaries. ## Additional context Narrower historical retry inconsistencies were tracked in closed issues [#2990](https://github.com/Pasta-Devs/Marinara-Engine/issues/2990), [#2994](https://github.com/Pasta-Devs/Marinara-Engine/issues/2994), and [#2998](https://github.com/Pasta-Devs/Marinara-Engine/issues/2998). This issue covers the current broader divergence between normal generation's canonical settings/Agent-tool owners and manual retry. ### Acceptance criteria - Manual retry consumes the canonical effective Agent settings for defaults, overrides, tool retirement, Music source, context size, and chat overlays. - Manual retry uses normal generation's permitted Agent-only tool definitions, context, authorization, and execution policy without enabling unrelated main-chat tools. - Retry-specific phase context, selected target identity/lorebook scope, approvals, Spotify verification/fallback, SSE, persistence, and image behavior remain unchanged. - Deterministic provider-free regression coverage protects positive, denial, schema, allowlist, context, and Spotify ordering behavior. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:53:37 +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#2713
No description provided.