[GH-ISSUE #2163] [Issue]: Built-in interval agents (Chat Summary, Card Evolution Auditor) lost their cadence gating and run every turn #1071

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

Originally created by @Romuromylus on GitHub (Jun 4, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2163

Originally assigned to: @cha1latte on GitHub.

Summary

The legacy app gated two built-in post-processing agents by message cadence: Automated Chat Summary ran at most once every N user messages (default 5), and Card Evolution Auditor ran at most once every N assistant messages (default 8). On the refactor branch the unified cadence gate only recognizes director and illustrator; neither chat-summary nor card-evolution-auditor is gated, so both fire their LLM call every turn.

Expected behavior

chat-summary should be skipped until runInterval (default 5) user messages have accumulated since its last successful run; card-evolution-auditor should be skipped until runInterval (default 8) assistant messages have accumulated. The user-facing "Triggers After" / "Run Interval" controls should take effect.

Actual behavior

automaticIntervalGate returns null for any built-in agent not in ASSISTANT_INTERVAL_AGENT_TYPES = {director, illustrator}, so chat-summary and card-evolution-auditor are never throttled and run on every post_processing turn. The defaults still exist in metadata (BUILT_IN_AGENT_RUN_INTERVAL_DEFAULTS, agent-cadence UI labels) but nothing consumes them for these agents.

Steps to reproduce

  1. Enable Automated Chat Summary and/or Card Evolution Auditor with default intervals.
  2. Send several turns.
  3. Observe both agents fire every turn (extra LLM cost/latency; card-edit proposals every turn) instead of every 5/8 messages.

Impact area

  • React-free engine behavior, contracts, agents, or capability ports

Environment

  • Branch or commit: refactor @ 93555d4b
  • Run mode: Tauri desktop
  • OS + version: Windows 11
  • Node + pnpm versions: n/a (static parity audit, main vs refactor)
  • Rust version, if relevant: n/a
  • Remote Runtime URL configured? not relevant

Regression notes

Worked in legacy (main @ c49f1d95). main: chat-summary gate at packages/server/src/routes/generate.routes.ts:5656-5692, card-evolution-auditor gate at :5694-5714. refactor @ 93555d4b: src/engine/generation/agent-runner.ts:127 (ASSISTANT_INTERVAL_AGENT_TYPES = {director, illustrator}) + :657-691 (automaticIntervalGate returns null for other built-ins) + :944-947 (gate consumption). A secondary loss: main's summaryContextSize override on the chat-summary gate path is also gone.

Originally created by @Romuromylus on GitHub (Jun 4, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2163 Originally assigned to: @cha1latte on GitHub. ## Summary The legacy app gated two built-in post-processing agents by message cadence: Automated Chat Summary ran at most once every N user messages (default 5), and Card Evolution Auditor ran at most once every N assistant messages (default 8). On the refactor branch the unified cadence gate only recognizes `director` and `illustrator`; neither chat-summary nor card-evolution-auditor is gated, so both fire their LLM call every turn. ## Expected behavior chat-summary should be skipped until `runInterval` (default 5) user messages have accumulated since its last successful run; card-evolution-auditor should be skipped until `runInterval` (default 8) assistant messages have accumulated. The user-facing "Triggers After" / "Run Interval" controls should take effect. ## Actual behavior `automaticIntervalGate` returns `null` for any built-in agent not in `ASSISTANT_INTERVAL_AGENT_TYPES = {director, illustrator}`, so chat-summary and card-evolution-auditor are never throttled and run on every post_processing turn. The defaults still exist in metadata (`BUILT_IN_AGENT_RUN_INTERVAL_DEFAULTS`, agent-cadence UI labels) but nothing consumes them for these agents. ## Steps to reproduce 1. Enable Automated Chat Summary and/or Card Evolution Auditor with default intervals. 2. Send several turns. 3. Observe both agents fire every turn (extra LLM cost/latency; card-edit proposals every turn) instead of every 5/8 messages. ## Impact area - [x] React-free engine behavior, contracts, agents, or capability ports ## Environment - Branch or commit: refactor @ 93555d4b - Run mode: Tauri desktop - OS + version: Windows 11 - Node + pnpm versions: n/a (static parity audit, main vs refactor) - Rust version, if relevant: n/a - Remote Runtime URL configured? not relevant ## Regression notes Worked in legacy (main @ c49f1d95). main: chat-summary gate at `packages/server/src/routes/generate.routes.ts:5656-5692`, card-evolution-auditor gate at `:5694-5714`. refactor @ 93555d4b: `src/engine/generation/agent-runner.ts:127` (ASSISTANT_INTERVAL_AGENT_TYPES = {director, illustrator}) + `:657-691` (automaticIntervalGate returns null for other built-ins) + `:944-947` (gate consumption). A secondary loss: main's `summaryContextSize` override on the chat-summary gate path is also gone.
bsakaguchi 2026-10-21 05:26:20 +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#1071
No description provided.