[PR #3496] [MERGED] docs(comments): correct comments and agent docs that make false claims about current behavior (#3489, #3493) #5961

Closed
opened 2026-10-23 04:05:39 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/3496
Author: @kolacheee
Created: 7/11/2026
Status: ✅ Merged
Merged: 7/12/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/3489-3493-comment-truth


📝 Commits (2)

  • 921c563 docs(comments): correct comments that make false claims about current behavior
  • f329c6c docs(comments): fix two follow-up inaccuracies from review

📊 Changes

28 files changed (+71 additions, -52 deletions)

View changed files

📝 CONTRIBUTING.md (+1 -1)
📝 packages/client/.instructions.md (+16 -5)
📝 packages/client/src/components/agents/AgentEditor.tsx (+1 -1)
📝 packages/client/src/components/bot-browser/BotBrowserView.tsx (+2 -2)
📝 packages/client/src/components/characters/CharacterEditor.tsx (+1 -1)
📝 packages/client/src/components/chat/ChatMessage.tsx (+2 -2)
📝 packages/client/src/components/chat/ChatSetupWizard.tsx (+2 -2)
📝 packages/client/src/components/game/GameCombatUI.tsx (+1 -1)
📝 packages/client/src/components/personas/PersonaEditor.tsx (+1 -1)
📝 packages/client/src/hooks/use-agents.ts (+1 -1)
📝 packages/client/src/hooks/use-generate.ts (+1 -1)
📝 packages/server/src/db/schema/game-engine-state.ts (+4 -3)
📝 packages/server/src/lib/logger.ts (+4 -2)
📝 packages/server/src/routes/chats.routes.ts (+1 -1)
📝 packages/server/src/routes/connections.routes.ts (+4 -3)
📝 packages/server/src/routes/game.routes.ts (+2 -2)
📝 packages/server/src/routes/turn-games.routes.ts (+1 -1)
📝 packages/server/src/services/conversation/awareness.service.ts (+1 -1)
📝 packages/server/src/services/conversation/schedule.service.ts (+2 -2)
📝 packages/server/src/services/game/morale.service.ts (+2 -2)

...and 8 more files

📄 Description

Linked issue

Fixes #3489
Fixes #3493

Why this change

Stale comments are how agents ship wrong code: PR #3348 happened because an agent trusted a comment claiming lorebook folders were flat. Issues #3489 and #3493 catalogued the remaining comments and agent-facing doc lines that make false claims about current behavior. This PR corrects them so the written word matches the code again. Both issues are the same kind of change (prose-only, zero runtime surface), so they ship together; the two #3489 entries that come with real code fixes (lorebook folders #3483, uninstaller #3484) are deliberately NOT here.

What changed

  • 27 code-comment corrections across 26 .ts/.tsx files (the #3489 checklist, minus the two items owned by #3483/#3484). Each replacement states what the code does today.
  • 4 agent-doc corrections (#3493): packages/client/.instructions.md now says extensions are server-synced (not browser-local), points XML-wrapping guidance at the live format-engine.ts path instead of the dead wrapInXml(), corrects the Vite version (also in CONTRIBUTING.md), and re-enumerates the directory map from the actual tree (missing dirs added, stale counts fixed).

How correctness was enforced (this PR's whole risk is "a correction that introduces a new false claim"):

  1. Every item was re-verified against the current staging code before editing; the fixer read the implementation the comment describes rather than trusting the original finding. (Two findings had drifted line numbers since the sweep; both were re-located and re-confirmed.)
  2. An independent adversarial review of the complete diff checked every hunk for (a) comment-only-ness and (b) factual correctness of the NEW text. It caught exactly one problem — the rewritten .instructions.md stores list briefly named a "mini-game" store that does not exist — which was corrected against the real stores/ listing (the per-game uno/chess/poker/eightball-game stores are now named individually).
  3. A mechanical audit of git diff -U0 asserts that zero changed lines in .ts/.tsx files are anything but comment text. Result: 0 non-comment changed lines across all 28 files.

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

This diff has no runtime surface: it changes only comments and markdown prose (verified mechanically, see above), so there is no app behavior to click through. Review-wise, the useful check is spot-reading corrections against the code they describe; every entry in #3489/#3493 lists the file, the old claim, and the verifying code location.

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)

(CONTRIBUTING.md Vite version and packages/client/.instructions.md are the doc updates; user-facing docs/ is untouched.)

UI evidence (if applicable)

N/A — comment and documentation text only.

Summary by CodeRabbit

  • Documentation
    • Updated contributor and frontend architecture guidance for current build tooling, project structure, themes, and content processing.
    • Clarified available character, persona, combat, chat, and bot-browser options.
    • Expanded documentation for turn-based game APIs, connection diagnostics, game state, morale, skill checks, and deterministic 8-ball behavior.
    • Corrected references covering logging, prompt handling, image generation, music selection, UNO moves, and conversation timing.
    • Refined versioning and development workflow notes.

🔄 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/3496 **Author:** [@kolacheee](https://github.com/kolacheee) **Created:** 7/11/2026 **Status:** ✅ Merged **Merged:** 7/12/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/3489-3493-comment-truth` --- ### 📝 Commits (2) - [`921c563`](https://github.com/Pasta-Devs/Marinara-Engine/commit/921c5637581f5e12e7666af422effef2c9c44cb8) docs(comments): correct comments that make false claims about current behavior - [`f329c6c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f329c6cbedb884fe7f8158e345e211ee6ca27dbc) docs(comments): fix two follow-up inaccuracies from review ### 📊 Changes **28 files changed** (+71 additions, -52 deletions) <details> <summary>View changed files</summary> 📝 `CONTRIBUTING.md` (+1 -1) 📝 `packages/client/.instructions.md` (+16 -5) 📝 `packages/client/src/components/agents/AgentEditor.tsx` (+1 -1) 📝 `packages/client/src/components/bot-browser/BotBrowserView.tsx` (+2 -2) 📝 `packages/client/src/components/characters/CharacterEditor.tsx` (+1 -1) 📝 `packages/client/src/components/chat/ChatMessage.tsx` (+2 -2) 📝 `packages/client/src/components/chat/ChatSetupWizard.tsx` (+2 -2) 📝 `packages/client/src/components/game/GameCombatUI.tsx` (+1 -1) 📝 `packages/client/src/components/personas/PersonaEditor.tsx` (+1 -1) 📝 `packages/client/src/hooks/use-agents.ts` (+1 -1) 📝 `packages/client/src/hooks/use-generate.ts` (+1 -1) 📝 `packages/server/src/db/schema/game-engine-state.ts` (+4 -3) 📝 `packages/server/src/lib/logger.ts` (+4 -2) 📝 `packages/server/src/routes/chats.routes.ts` (+1 -1) 📝 `packages/server/src/routes/connections.routes.ts` (+4 -3) 📝 `packages/server/src/routes/game.routes.ts` (+2 -2) 📝 `packages/server/src/routes/turn-games.routes.ts` (+1 -1) 📝 `packages/server/src/services/conversation/awareness.service.ts` (+1 -1) 📝 `packages/server/src/services/conversation/schedule.service.ts` (+2 -2) 📝 `packages/server/src/services/game/morale.service.ts` (+2 -2) _...and 8 more files_ </details> ### 📄 Description ## Linked issue Fixes #3489 Fixes #3493 ## Why this change Stale comments are how agents ship wrong code: PR #3348 happened because an agent trusted a comment claiming lorebook folders were flat. Issues #3489 and #3493 catalogued the remaining comments and agent-facing doc lines that make false claims about current behavior. This PR corrects them so the written word matches the code again. Both issues are the same kind of change (prose-only, zero runtime surface), so they ship together; the two #3489 entries that come with real code fixes (lorebook folders #3483, uninstaller #3484) are deliberately NOT here. ## What changed - 27 code-comment corrections across 26 `.ts`/`.tsx` files (the #3489 checklist, minus the two items owned by #3483/#3484). Each replacement states what the code does today. - 4 agent-doc corrections (#3493): `packages/client/.instructions.md` now says extensions are server-synced (not browser-local), points XML-wrapping guidance at the live `format-engine.ts` path instead of the dead `wrapInXml()`, corrects the Vite version (also in `CONTRIBUTING.md`), and re-enumerates the directory map from the actual tree (missing dirs added, stale counts fixed). How correctness was enforced (this PR's whole risk is "a correction that introduces a new false claim"): 1. Every item was re-verified against the current staging code before editing; the fixer read the implementation the comment describes rather than trusting the original finding. (Two findings had drifted line numbers since the sweep; both were re-located and re-confirmed.) 2. An independent adversarial review of the complete diff checked every hunk for (a) comment-only-ness and (b) factual correctness of the NEW text. It caught exactly one problem — the rewritten `.instructions.md` stores list briefly named a "mini-game" store that does not exist — which was corrected against the real `stores/` listing (the per-game `uno/chess/poker/eightball-game` stores are now named individually). 3. A mechanical audit of `git diff -U0` asserts that zero changed lines in `.ts`/`.tsx` files are anything but comment text. Result: 0 non-comment changed lines across all 28 files. ## Validation - [x] `pnpm check` passes locally - [x] Container (Docker / Podman) built and ran without issue - [x] Ran the app, clicked through the changes manually - [x] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [x] Above manual verification completed (describe below) - [x] Read and followed `CONTRIBUTING.md` ### Manual verification notes This diff has no runtime surface: it changes only comments and markdown prose (verified mechanically, see above), so there is no app behavior to click through. Review-wise, the useful check is spot-reading corrections against the code they describe; every entry in #3489/#3493 lists the file, the old claim, and the verifying code location. ## Docs and release impact - [ ] No docs changes needed - [x] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) (`CONTRIBUTING.md` Vite version and `packages/client/.instructions.md` are the doc updates; user-facing docs/ is untouched.) ## UI evidence (if applicable) N/A — comment and documentation text only. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Documentation** - Updated contributor and frontend architecture guidance for current build tooling, project structure, themes, and content processing. - Clarified available character, persona, combat, chat, and bot-browser options. - Expanded documentation for turn-based game APIs, connection diagnostics, game state, morale, skill checks, and deterministic 8-ball behavior. - Corrected references covering logging, prompt handling, image generation, music selection, UNO moves, and conversation timing. - Refined versioning and development workflow notes. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:05:39 +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#5961
No description provided.