[GH-ISSUE #3493] [Issue]: Agent-facing docs (.instructions.md, CONTRIBUTING.md) contain outdated guidance #1892

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

Originally created by @kolacheee on GitHub (Jul 11, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3493

Originally assigned to: @kolacheee on GitHub.

Summary

packages/client/.instructions.md and CONTRIBUTING.md contain guidance that is no longer true. These files are read as ground truth by every AI agent (and many humans) working on the client, so errors here multiply across all future work.

Why this is a problem: steering documents are trusted more than code comments. A false architecture claim in .instructions.md mis-aims every agent that reads it, on every task.
What it negatively affects: all agent-assisted client work: wrong persistence assumptions, wrong utility choices, wrong mental map of the source tree.

Expected behavior

Agent-facing steering docs describe the current architecture.

Actual behavior

  • packages/client/.instructions.md:263 — claims "only extensions remain browser-local." False: extensions are now server-synced. use-extensions.ts (headed "server-synced") has full /extensions CRUD plus a one-shot migration hook that moves them out of localStorage. An agent following this would build new extension features on localStorage.
  • packages/client/.instructions.md:314 — advertises wrapInXml() as THE XML wrapping utility. That function is dead (zero call sites; the live path is format-engine.ts). This doc line actively lures agents into wiring new code to dead code. (The deletion itself is tracked in the dead-code catalogue issue.)
  • packages/client/.instructions.md:15 and CONTRIBUTING.md:13 — say "Vite 6.x" / "Vite 6"; package.json pins ^7.3.2.
  • packages/client/.instructions.md:92 — the directory map says hooks/ has "20 files" (actual: 57-58) and stores/ has "6" (actual: 16), and omits components/game/, game-assets/, dice/, noodle/, diagnostics/, music/, spotify/, and the entire src/features/ tree.

Steps to reproduce

Compare each referenced line with the code: use-extensions.ts for the sync model, package.json for Vite, and a directory listing for the source map.

Environment

  • Marinara Engine version: 2.2.0 (staging @ 45b650de9)
  • Install type: source
  • OS + version: N/A
  • Browser or app shell: N/A

Logs, screenshots, or video

N/A.

Additional context

Found by a repo-wide read-only sweep that included a dedicated audit of agent-facing meta files; adversarially re-verified before filing. Given how many agents read .instructions.md, this is one of the highest-leverage small fixes in the set. Part of a coordinated set of sweep catalogue issues filed together.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @kolacheee on GitHub (Jul 11, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3493 Originally assigned to: @kolacheee on GitHub. ## Summary `packages/client/.instructions.md` and `CONTRIBUTING.md` contain guidance that is no longer true. These files are read as ground truth by every AI agent (and many humans) working on the client, so errors here multiply across all future work. **Why this is a problem:** steering documents are trusted more than code comments. A false architecture claim in `.instructions.md` mis-aims every agent that reads it, on every task. **What it negatively affects:** all agent-assisted client work: wrong persistence assumptions, wrong utility choices, wrong mental map of the source tree. ## Expected behavior Agent-facing steering docs describe the current architecture. ## Actual behavior - [ ] `packages/client/.instructions.md:263` — claims "only extensions remain browser-local." False: extensions are now server-synced. `use-extensions.ts` (headed "server-synced") has full `/extensions` CRUD plus a one-shot migration hook that moves them out of localStorage. An agent following this would build new extension features on localStorage. - [ ] `packages/client/.instructions.md:314` — advertises `wrapInXml()` as THE XML wrapping utility. That function is dead (zero call sites; the live path is `format-engine.ts`). This doc line actively lures agents into wiring new code to dead code. (The deletion itself is tracked in the dead-code catalogue issue.) - [ ] `packages/client/.instructions.md:15` and `CONTRIBUTING.md:13` — say "Vite 6.x" / "Vite 6"; `package.json` pins `^7.3.2`. - [ ] `packages/client/.instructions.md:92` — the directory map says `hooks/` has "20 files" (actual: 57-58) and `stores/` has "6" (actual: 16), and omits `components/game/`, `game-assets/`, `dice/`, `noodle/`, `diagnostics/`, `music/`, `spotify/`, and the entire `src/features/` tree. ## Steps to reproduce Compare each referenced line with the code: `use-extensions.ts` for the sync model, `package.json` for Vite, and a directory listing for the source map. ## Environment - Marinara Engine version: 2.2.0 (staging @ 45b650de9) - Install type: source - OS + version: N/A - Browser or app shell: N/A ## Logs, screenshots, or video N/A. ## Additional context Found by a repo-wide read-only sweep that included a dedicated audit of agent-facing meta files; adversarially re-verified before filing. Given how many agents read `.instructions.md`, this is one of the highest-leverage small fixes in the set. Part of a coordinated set of sweep catalogue issues filed together. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
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#1892
No description provided.