mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2163] [Issue]: Built-in interval agents (Chat Summary, Card Evolution Auditor) lost their cadence gating and run every turn #1071
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#1071
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 @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
directorandillustrator; 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 untilrunInterval(default 8) assistant messages have accumulated. The user-facing "Triggers After" / "Run Interval" controls should take effect.Actual behavior
automaticIntervalGatereturnsnullfor any built-in agent not inASSISTANT_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
Impact area
Environment
93555d4bRegression notes
Worked in legacy (main @
c49f1d95). main: chat-summary gate atpackages/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'ssummaryContextSizeoverride on the chat-summary gate path is also gone.