[PR #706] [MERGED] Fix card evolution auditor cadence #4736

Closed
opened 2026-10-22 04:10:14 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/706
Author: @cha1latte
Created: 5/11/2026
Status: ✅ Merged
Merged: 5/11/2026
Merged by: @cha1latte

Base: main ← Head: fix/issue-690-card-evo-auditor


📝 Commits (1)

  • d08faef Gate card evolution auditor cadence

📊 Changes

3 files changed (+29 additions, -0 deletions)

View changed files

📝 packages/client/src/lib/agent-cadence.ts (+8 -0)
📝 packages/server/src/routes/generate.routes.ts (+20 -0)
📝 packages/shared/src/types/agent.ts (+1 -0)

📄 Description

Linked issue

Closes #690

Why this change

  • The Card Evolution Auditor was able to run on every automatic post-processing pass once enabled. Because it proposes sensitive character-card edits, that made it too easy for repeated audits to surface marginal updates and bloat cards over time.

What changed

  • Added a default runInterval of 8 assistant messages for the built-in Card Evolution Auditor.
  • Added automatic generation-route cadence gating so the auditor skips post-processing turns until the interval has elapsed since its last successful run.
  • Exposed the same Card Evolution Auditor cadence metadata in the client agent cadence UI.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

Codex-run proof:

  • Before-fix repro against upstream/main: node scratch\issue-690-card-evo-cadence.mjs upstream/main failed all cadence checks:
    • FAIL default run interval exists
    • FAIL generation route gates auditor by last successful run
    • FAIL client exposes built-in cadence control
  • After-fix verification: node scratch\issue-690-card-evo-cadence.mjs passed all cadence checks:
    • PASS default run interval exists
    • PASS generation route gates auditor by last successful run
    • PASS client exposes built-in cadence control
  • Baseline: pnpm check passed locally, including impeccable context check, shared/server/client lint, and shared/server/client build.
  • Edge cases considered:
    • Manual retry path remains ungated on purpose, so a user can deliberately rerun the auditor.
    • Setting runInterval to 1 still allows every-turn auditor checks for users who explicitly opt in.

No true human-only verification is required for the core claim.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

No docs, release, schema, or version files changed.

UI evidence (if applicable)

N/A - backend/shared cadence behavior with a small client metadata addition; no visible UI layout changed.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/706 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/11/2026 **Status:** ✅ Merged **Merged:** 5/11/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `main` ← **Head:** `fix/issue-690-card-evo-auditor` --- ### 📝 Commits (1) - [`d08faef`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d08faefcc5a3d909403329561473dd4d2d12d044) Gate card evolution auditor cadence ### 📊 Changes **3 files changed** (+29 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/lib/agent-cadence.ts` (+8 -0) 📝 `packages/server/src/routes/generate.routes.ts` (+20 -0) 📝 `packages/shared/src/types/agent.ts` (+1 -0) </details> ### 📄 Description ## Linked issue <!-- Every PR should reference a feature request or issue report. If there isn't one yet, open one first to gather opinions: --> <!-- https://github.com/Pasta-Devs/Marinara-Engine/issues/new/choose --> Closes #690 ## Why this change <!-- What user problem, bug, or goal does this solve? --> - The Card Evolution Auditor was able to run on every automatic post-processing pass once enabled. Because it proposes sensitive character-card edits, that made it too easy for repeated audits to surface marginal updates and bloat cards over time. ## What changed <!-- List the key changes in this PR --> - Added a default `runInterval` of 8 assistant messages for the built-in Card Evolution Auditor. - Added automatic generation-route cadence gating so the auditor skips post-processing turns until the interval has elapsed since its last successful run. - Exposed the same Card Evolution Auditor cadence metadata in the client agent cadence UI. ## Validation <!-- Required: include commands run and/or manual checks performed --> - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes <!-- Describe exactly what you tested in a real browser/app, step by step. --> <!-- ⚠️ If an AI agent filled out or ticked these boxes for you, treat them --> <!-- as a TO-DO LIST, not as proof the work is done. Verify each item yourself --> <!-- before submitting. If you haven't verified it, untick the box. --> Codex-run proof: - Before-fix repro against `upstream/main`: `node scratch\issue-690-card-evo-cadence.mjs upstream/main` failed all cadence checks: - `FAIL default run interval exists` - `FAIL generation route gates auditor by last successful run` - `FAIL client exposes built-in cadence control` - After-fix verification: `node scratch\issue-690-card-evo-cadence.mjs` passed all cadence checks: - `PASS default run interval exists` - `PASS generation route gates auditor by last successful run` - `PASS client exposes built-in cadence control` - Baseline: `pnpm check` passed locally, including impeccable context check, shared/server/client lint, and shared/server/client build. - Edge cases considered: - Manual retry path remains ungated on purpose, so a user can deliberately rerun the auditor. - Setting `runInterval` to 1 still allows every-turn auditor checks for users who explicitly opt in. No true human-only verification is required for the core claim. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) No docs, release, schema, or version files changed. ## UI evidence (if applicable) N/A - backend/shared cadence behavior with a small client metadata addition; no visible UI layout changed. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:10:14 +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#4736
No description provided.