[PR #1628] [MERGED] Clear staged ESLint tail rule findings #5160

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1628
Author: @Xelvanis
Created: 5/30/2026
Status: ✅ Merged
Merged: 5/30/2026
Merged by: @Xelvanis

Base: refactor ← Head: chore/eslint-tail-rules-cleanup-2026-05-30


📝 Commits (2)

  • 8534328 Clear staged ESLint tail rule findings
  • 87e381e Address tail cleanup review findings

📊 Changes

11 files changed (+50 additions, -17 deletions)

View changed files

📝 src/engine/agents-runtime/executor/agent-executor.ts (+1 -1)
📝 src/engine/contracts/constants/agent-prompts.ts (+2 -2)
📝 src/engine/generation/agent-runner.test.ts (+1 -0)
➕ src/engine/modes/chat/commands/character-commands.test.ts (+29 -0)
📝 src/engine/modes/chat/commands/character-commands.ts (+2 -2)
📝 src/engine/modes/chat/schedules/schedule.service.ts (+3 -3)
📝 src/engine/modes/game/prompts/gm-prompts.ts (+1 -1)
📝 src/engine/modes/game/state/session-summary-normalization.ts (+1 -1)
📝 src/engine/modes/game/turn/game-turn.service.test.ts (+1 -0)
📝 src/engine/shared/macros/macro-engine.ts (+8 -6)
📝 src/shared/lib/character-display.ts (+1 -1)

📄 Description

Linked issue

Part of #1619

Why this change

  • Continues the ESLint restoration plan by clearing the small recommended-rule tail bucket now that staged general linting is reproducible.

What changed

  • Removes syntax-equivalent unnecessary escapes from prompt strings and regex literals.
  • Reworks the macro trim-marker replacement to avoid no-control-regex while preserving the null-marker trimming behavior.
  • Keeps the persona-stats prompt schema example valid after removing unnecessary template-literal quote escapes.
  • Tightens assistant numeric command params to use a literal decimal point and delimiter boundary, with a regression test for malformed fractional params.
  • Makes two async-generator test doubles explicitly yield no chunks so require-yield is clean without changing their test contracts.
  • Converts one unchanged local binding from let to const.

Refactor impact

Primary owner:

tooling-driven engine/shared cleanup

Impact areas reviewed:

  • Engine prompt constants and prompt builders
  • Agent/runtime JSON repair helpers
  • Chat command and schedule parsing helpers
  • Game session summary normalization
  • Macro trim marker handling
  • Character display alias parsing
  • Existing generation and game-turn test doubles

Boundary notes:

  • No shared API, Rust, Tauri command, remote runtime, or UI behavior changed.
  • Behavior impact is limited to malformed assistant numeric command params such as talkativeness=0a5 no longer being partially accepted as valid numbers.

Pressure points touched:

  • none

Validation

  • pnpm check passes locally
  • pnpm typecheck passes locally
  • pnpm build passes locally
  • pnpm check:architecture passes locally
  • pnpm check:docs passes locally
  • cargo check --manifest-path src-tauri/Cargo.toml --workspace passes locally
  • Rust clippy/tests were run for Rust behavior changes
  • Browser or Tauri app manual verification completed
  • Playwright, screenshot, or recording evidence added for UI changes
  • Remote runtime smoke checked when relevant

Manual verification notes

  • pnpm lint:eslint:full-report -- --output .eslint-reports/eslint-full-report-before-tail-rules.json before the change: 28 errors, 25 warnings across 20 files.
  • pnpm lint:eslint:full-report -- --output .eslint-reports/eslint-full-report-after-tail-rules.json after the change: 0 errors, 25 warnings across 10 files; remaining findings are all react-hooks/exhaustive-deps warnings from the previous report-only hook signal PR.
  • pnpm lint
  • pnpm typecheck
  • pnpm check:architecture
  • pnpm check:docs
  • pnpm check:unused
  • pnpm test -- src/engine/modes/chat/commands/character-commands.test.ts src/engine/shared/macros/macro-engine.test.ts src/engine/generation/agent-runner.test.ts src/engine/modes/game/turn/game-turn.service.test.ts src/shared/lib/tracker-metadata.test.ts src/features/modes/game/api/game-api.test.ts src/engine/generation/prompt-assembly.test.ts passed: 7 files, 136 tests.
  • pnpm build passed; Vite emitted the existing large-chunk warning.

Docs and release impact

  • No docs changes needed
  • Updated README.md
  • Updated CONTRIBUTING.md
  • Updated docs/developer/
  • Updated repo skills or AGENTS.md
  • Confirmed this PR does not restore old staging/package-workspace/release claims

No changelog update: this is internal lint cleanup, and this branch does not currently have a CHANGELOG.md file.

UI evidence

N/A; no visible UI changes.


🔄 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/1628 **Author:** [@Xelvanis](https://github.com/Xelvanis) **Created:** 5/30/2026 **Status:** ✅ Merged **Merged:** 5/30/2026 **Merged by:** [@Xelvanis](https://github.com/Xelvanis) **Base:** `refactor` ← **Head:** `chore/eslint-tail-rules-cleanup-2026-05-30` --- ### 📝 Commits (2) - [`8534328`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8534328b742c3ba26e0148b8429f382fe24a5a9e) Clear staged ESLint tail rule findings - [`87e381e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/87e381e9a14daf1307490ae91c61338513bf5705) Address tail cleanup review findings ### 📊 Changes **11 files changed** (+50 additions, -17 deletions) <details> <summary>View changed files</summary> 📝 `src/engine/agents-runtime/executor/agent-executor.ts` (+1 -1) 📝 `src/engine/contracts/constants/agent-prompts.ts` (+2 -2) 📝 `src/engine/generation/agent-runner.test.ts` (+1 -0) ➕ `src/engine/modes/chat/commands/character-commands.test.ts` (+29 -0) 📝 `src/engine/modes/chat/commands/character-commands.ts` (+2 -2) 📝 `src/engine/modes/chat/schedules/schedule.service.ts` (+3 -3) 📝 `src/engine/modes/game/prompts/gm-prompts.ts` (+1 -1) 📝 `src/engine/modes/game/state/session-summary-normalization.ts` (+1 -1) 📝 `src/engine/modes/game/turn/game-turn.service.test.ts` (+1 -0) 📝 `src/engine/shared/macros/macro-engine.ts` (+8 -6) 📝 `src/shared/lib/character-display.ts` (+1 -1) </details> ### 📄 Description ## Linked issue Part of #1619 ## Why this change - Continues the ESLint restoration plan by clearing the small recommended-rule tail bucket now that staged general linting is reproducible. ## What changed - Removes syntax-equivalent unnecessary escapes from prompt strings and regex literals. - Reworks the macro trim-marker replacement to avoid `no-control-regex` while preserving the null-marker trimming behavior. - Keeps the persona-stats prompt schema example valid after removing unnecessary template-literal quote escapes. - Tightens assistant numeric command params to use a literal decimal point and delimiter boundary, with a regression test for malformed fractional params. - Makes two async-generator test doubles explicitly yield no chunks so `require-yield` is clean without changing their test contracts. - Converts one unchanged local binding from `let` to `const`. ## Refactor impact Primary owner: tooling-driven engine/shared cleanup Impact areas reviewed: - Engine prompt constants and prompt builders - Agent/runtime JSON repair helpers - Chat command and schedule parsing helpers - Game session summary normalization - Macro trim marker handling - Character display alias parsing - Existing generation and game-turn test doubles Boundary notes: - No shared API, Rust, Tauri command, remote runtime, or UI behavior changed. - Behavior impact is limited to malformed assistant numeric command params such as `talkativeness=0a5` no longer being partially accepted as valid numbers. Pressure points touched: - none ## Validation - [x] `pnpm check` passes locally - [x] `pnpm typecheck` passes locally - [x] `pnpm build` passes locally - [x] `pnpm check:architecture` passes locally - [x] `pnpm check:docs` passes locally - [ ] `cargo check --manifest-path src-tauri/Cargo.toml --workspace` passes locally - [ ] Rust clippy/tests were run for Rust behavior changes - [ ] Browser or Tauri app manual verification completed - [ ] Playwright, screenshot, or recording evidence added for UI changes - [ ] Remote runtime smoke checked when relevant ### Manual verification notes - `pnpm lint:eslint:full-report -- --output .eslint-reports/eslint-full-report-before-tail-rules.json` before the change: 28 errors, 25 warnings across 20 files. - `pnpm lint:eslint:full-report -- --output .eslint-reports/eslint-full-report-after-tail-rules.json` after the change: 0 errors, 25 warnings across 10 files; remaining findings are all `react-hooks/exhaustive-deps` warnings from the previous report-only hook signal PR. - `pnpm lint` - `pnpm typecheck` - `pnpm check:architecture` - `pnpm check:docs` - `pnpm check:unused` - `pnpm test -- src/engine/modes/chat/commands/character-commands.test.ts src/engine/shared/macros/macro-engine.test.ts src/engine/generation/agent-runner.test.ts src/engine/modes/game/turn/game-turn.service.test.ts src/shared/lib/tracker-metadata.test.ts src/features/modes/game/api/game-api.test.ts src/engine/generation/prompt-assembly.test.ts` passed: 7 files, 136 tests. - `pnpm build` passed; Vite emitted the existing large-chunk warning. ## Docs and release impact - [x] No docs changes needed - [ ] Updated `README.md` - [ ] Updated `CONTRIBUTING.md` - [ ] Updated `docs/developer/` - [ ] Updated repo skills or `AGENTS.md` - [x] Confirmed this PR does not restore old staging/package-workspace/release claims No changelog update: this is internal lint cleanup, and this branch does not currently have a `CHANGELOG.md` file. ## UI evidence N/A; no visible UI changes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:13:49 +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#5160
No description provided.