[PR #1622] [MERGED] fix(relationship-tracker): 0.7.2 match Korean, Japanese and Chinese names without spaces #1631

Closed
opened 2026-10-25 04:02:18 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/1622
Author: @NoblezDomain
Created: 10/23/2026
Status: ✅ Merged
Merged: 10/23/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/relationship-tracker-0.7.2


📝 Commits (6)

  • 2439f55 fix(relationship-tracker): 0.7.2 match Korean, Japanese and Chinese names without spaces
  • 18a573f fix(relationship-tracker): 0.7.2 keep one-syllable Korean names out of ordinary words
  • 450835f Merge branch 'staging' into fix/relationship-tracker-0.7.2
  • 63d26bc Merge branch 'staging' into fix/relationship-tracker-0.7.2
  • e450657 Merge branch 'staging' into fix/relationship-tracker-0.7.2
  • 91c9e78 Merge branch 'staging' into fix/relationship-tracker-0.7.2

📊 Changes

15 files changed (+181 additions, -110 deletions)

View changed files

➕ artifacts/relationship-tracker-0.7.2.zip (+0 -0)
📝 catalog/catalog.json (+14 -14)
📝 catalog/notes.json (+6 -0)
📝 catalog/v2/catalog.json (+14 -14)
📝 catalog/v2/notes.json (+6 -0)
📝 catalog/v3/catalog.json (+14 -14)
📝 catalog/v3/notes.json (+6 -0)
📝 packages/relationship-tracker/CHANGELOG.md (+6 -0)
📝 packages/relationship-tracker/README.md (+1 -0)
📝 packages/relationship-tracker/history.mjs (+9 -9)
📝 packages/relationship-tracker/manifest.json (+11 -11)
📝 packages/relationship-tracker/persona-tracking.mjs (+7 -5)
📝 packages/relationship-tracker/prompt.mjs (+4 -6)
📝 packages/relationship-tracker/state.mjs (+61 -9)
📝 packages/relationship-tracker/tracking.mjs (+22 -28)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #1620

Why this change

  • In Korean chats, Update from History couldn't save the model's own grammatical suggestions, and Save kept failing. Korean attaches particles to names (김민수는, 박지은을), but every name check treated a name as ended only by a space or punctuation, so 김민수는 didn't count as 김민수. The only workaround was to write 김민수 는.
  • The same rule broke more than the persona check named in the issue. Relationship perspectives were rejected with "must name character B", and Scene-only presence almost never detected a Korean name. Japanese and Chinese, which use no spaces at all, failed the same way.

What changed

  • One shared name matcher (state.mjs) now backs every name check: persona perceptions, relationship perspectives and descriptions, the History review, alias detection, and Scene-only presence.
    • Hangul may follow a name (Korean particles). Han, Hiragana and Katakana may touch a name on either side (Japanese, Chinese). Latin names written in these languages work too (Alice는, Carolは).
    • Every other script still needs a space or punctuation next to a name, so English matching is unchanged.
    • A one-character Chinese or Japanese name such as 明 keeps the strict rule, because single characters appear inside ordinary words (明天).
    • A one-syllable Korean name such as 준 may be followed directly only by a particle (준은, 준을, 준아,), so it doesn't match inside 준비는. This was Dottore's finding on the first commit.
    • A name glued inside another card's longer name never counts (김민 in 김민수, リス in アリス). A space-separated one, like Ann in Mary Ann, still counts, as before.
  • In Automatic and History perspectives:
    • text the model wrote touching the name stays attached (김민수는 …, not 김민수 는 …);
    • a trailing 。!? is stripped like .!?;
    • a full-width ; is rejected like ;.
  • Persona errors now say which name was expected. The History review shows "Start with “…”" and "Mention … by name" as separate problems.
  • The persona name list is built once per call instead of once per entry.
  • Generated outputs: artifacts/relationship-tracker-0.7.2.zip (251,318 bytes, sha256 faa02caace5a115aef46b4f9f5f57089bc7a2dad37d03af93242a721d99bc911), the three catalog lanes, and the notes sidecars, all rebuilt with node scripts/build-relationship-tracker-package.mjs.

Package and security impact

  • Affected package IDs: relationship-tracker (0.7.1 → 0.7.2)
  • Engine compatibility impact: none. The Engine range (2.4.4 to below 4.0.0) and Capability API 1.14 are unchanged, and there are no Engine changes.
  • New or changed permissions/entrypoints: none. No new routes, and the public read API is unchanged.
  • Restart, storage, update, or uninstall impact: restart required, as before. No storage schema change and no migration.

Validation

  • node scripts/validate-catalog.mjs passes locally
  • git diff --check passes locally
  • Rebuilt every affected manifest, payload, artifact, and catalog entry
  • Installed or updated the affected package through Marinara Engine
  • Checked supported modes, restart behavior, and uninstall cleanup
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • Run locally, all passing:
    • npm run check;
    • node scripts/test-catalog-lanes.mjs;
    • node scripts/validate-package-locales.mjs;
    • node scripts/validate-catalog.mjs;
    • node scripts/tests/catalog-release-notes.regression.mjs;
    • git diff --check.
  • Rerunning the builder left no diff.
  • In the Relationship Tracker source tree, node validate-phase5.mjs passes 208/208 regression tests. 15 are new:
    • Korean, Japanese and Chinese in persona perceptions, relationship perspectives and descriptions, and Scene-only presence;
    • the one-character guard, the one-syllable Korean particle rule (준비는 and 이야기 don't match; 준은, 준을 and 준아, do), longer-name exclusion and full-width punctuation;
    • the plain-words review messages;
    • two tests showing English matching is unchanged.
  • The 13 language tests fail on the 0.7.1 code. The 2 English tests pass on both 0.7.1 and 0.7.2. The 2 one-syllable tests also fail on this PR's first commit.
  • Not done: installing or updating through Marinara Engine, or any run in a real chat. I can't test Korean, Japanese or Chinese myself, so testing in real chats is deferred to native speakers.
  • Known limits:
    • a Chinese card name that is also a common word can still match inside ordinary text;
    • one-character Chinese or Japanese names still need a space or punctuation next to them;
    • a one-syllable Korean name still matches a word that begins with a particle syllable, such as 별 in 별로;
    • if the model leaves out the character's own name, it is added back with a space (アリス ボブを…);
    • descriptions built from two perspectives still join them with ASCII ; and end with ..

Documentation impact

  • No documentation changes needed
  • Updated this README catalog and package guidance
  • Updated linked Marinara Engine documentation

Package README and CHANGELOG updated; no catalog README or Engine documentation changes.

UI evidence (if applicable)

No UI changes.

🤖 Generated with Claude Code


🔄 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-Agents/pull/1622 **Author:** [@NoblezDomain](https://github.com/NoblezDomain) **Created:** 10/23/2026 **Status:** ✅ Merged **Merged:** 10/23/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/relationship-tracker-0.7.2` --- ### 📝 Commits (6) - [`2439f55`](https://github.com/Pasta-Devs/Marinara-Agents/commit/2439f55173cd698c25d15445cc53972382d68aa3) fix(relationship-tracker): 0.7.2 match Korean, Japanese and Chinese names without spaces - [`18a573f`](https://github.com/Pasta-Devs/Marinara-Agents/commit/18a573f9a7d4031a011c58f2bf32ccb028c1408c) fix(relationship-tracker): 0.7.2 keep one-syllable Korean names out of ordinary words - [`450835f`](https://github.com/Pasta-Devs/Marinara-Agents/commit/450835f36cd3abd0a7ca9b82f353c34ab0d855b7) Merge branch 'staging' into fix/relationship-tracker-0.7.2 - [`63d26bc`](https://github.com/Pasta-Devs/Marinara-Agents/commit/63d26bcc8012ae4558e8b3ff03761d3ea60d45c8) Merge branch 'staging' into fix/relationship-tracker-0.7.2 - [`e450657`](https://github.com/Pasta-Devs/Marinara-Agents/commit/e45065788c02091ed8113a4bfcd1957f277b36a3) Merge branch 'staging' into fix/relationship-tracker-0.7.2 - [`91c9e78`](https://github.com/Pasta-Devs/Marinara-Agents/commit/91c9e783172a959095e367277c7a518472365918) Merge branch 'staging' into fix/relationship-tracker-0.7.2 ### 📊 Changes **15 files changed** (+181 additions, -110 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/relationship-tracker-0.7.2.zip` (+0 -0) 📝 `catalog/catalog.json` (+14 -14) 📝 `catalog/notes.json` (+6 -0) 📝 `catalog/v2/catalog.json` (+14 -14) 📝 `catalog/v2/notes.json` (+6 -0) 📝 `catalog/v3/catalog.json` (+14 -14) 📝 `catalog/v3/notes.json` (+6 -0) 📝 `packages/relationship-tracker/CHANGELOG.md` (+6 -0) 📝 `packages/relationship-tracker/README.md` (+1 -0) 📝 `packages/relationship-tracker/history.mjs` (+9 -9) 📝 `packages/relationship-tracker/manifest.json` (+11 -11) 📝 `packages/relationship-tracker/persona-tracking.mjs` (+7 -5) 📝 `packages/relationship-tracker/prompt.mjs` (+4 -6) 📝 `packages/relationship-tracker/state.mjs` (+61 -9) 📝 `packages/relationship-tracker/tracking.mjs` (+22 -28) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issue Closes #1620 ## Why this change - In Korean chats, Update from History couldn't save the model's own grammatical suggestions, and Save kept failing. Korean attaches particles to names (`김민수는`, `박지은을`), but every name check treated a name as ended only by a space or punctuation, so `김민수는` didn't count as `김민수`. The only workaround was to write `김민수 는`. - The same rule broke more than the persona check named in the issue. Relationship perspectives were rejected with "must name character B", and Scene-only presence almost never detected a Korean name. Japanese and Chinese, which use no spaces at all, failed the same way. ## What changed - One shared name matcher (`state.mjs`) now backs every name check: persona perceptions, relationship perspectives and descriptions, the History review, alias detection, and Scene-only presence. - Hangul may follow a name (Korean particles). Han, Hiragana and Katakana may touch a name on either side (Japanese, Chinese). Latin names written in these languages work too (`Alice는`, `Carolは`). - Every other script still needs a space or punctuation next to a name, so English matching is unchanged. - A one-character Chinese or Japanese name such as `明` keeps the strict rule, because single characters appear inside ordinary words (`明天`). - A one-syllable Korean name such as `준` may be followed directly only by a particle (`준은`, `준을`, `준아,`), so it doesn't match inside `준비는`. This was Dottore's finding on the first commit. - A name glued inside another card's longer name never counts (`김민` in `김민수`, `リス` in `アリス`). A space-separated one, like `Ann` in `Mary Ann`, still counts, as before. - In Automatic and History perspectives: - text the model wrote touching the name stays attached (`김민수는 …`, not `김민수 는 …`); - a trailing `。!?` is stripped like `.!?`; - a full-width `;` is rejected like `;`. - Persona errors now say which name was expected. The History review shows "Start with “…”" and "Mention … by name" as separate problems. - The persona name list is built once per call instead of once per entry. - Generated outputs: `artifacts/relationship-tracker-0.7.2.zip` (251,318 bytes, sha256 `faa02caace5a115aef46b4f9f5f57089bc7a2dad37d03af93242a721d99bc911`), the three catalog lanes, and the notes sidecars, all rebuilt with `node scripts/build-relationship-tracker-package.mjs`. ## Package and security impact - Affected package IDs: `relationship-tracker` (0.7.1 → 0.7.2) - Engine compatibility impact: none. The Engine range (2.4.4 to below 4.0.0) and Capability API 1.14 are unchanged, and there are no Engine changes. - New or changed permissions/entrypoints: none. No new routes, and the public read API is unchanged. - Restart, storage, update, or uninstall impact: restart required, as before. No storage schema change and no migration. ## Validation - [x] `node scripts/validate-catalog.mjs` passes locally - [x] `git diff --check` passes locally - [x] Rebuilt every affected manifest, payload, artifact, and catalog entry - [ ] Installed or updated the affected package through Marinara Engine - [ ] Checked supported modes, restart behavior, and uninstall cleanup - [x] Read and followed `CONTRIBUTING.md` ### Manual verification notes - Run locally, all passing: - `npm run check`; - `node scripts/test-catalog-lanes.mjs`; - `node scripts/validate-package-locales.mjs`; - `node scripts/validate-catalog.mjs`; - `node scripts/tests/catalog-release-notes.regression.mjs`; - `git diff --check`. - Rerunning the builder left no diff. - In the Relationship Tracker source tree, `node validate-phase5.mjs` passes 208/208 regression tests. 15 are new: - Korean, Japanese and Chinese in persona perceptions, relationship perspectives and descriptions, and Scene-only presence; - the one-character guard, the one-syllable Korean particle rule (`준비는` and `이야기` don't match; `준은`, `준을` and `준아,` do), longer-name exclusion and full-width punctuation; - the plain-words review messages; - two tests showing English matching is unchanged. - The 13 language tests fail on the 0.7.1 code. The 2 English tests pass on both 0.7.1 and 0.7.2. The 2 one-syllable tests also fail on this PR's first commit. - **Not done:** installing or updating through Marinara Engine, or any run in a real chat. I can't test Korean, Japanese or Chinese myself, so testing in real chats is deferred to native speakers. - Known limits: - a Chinese card name that is also a common word can still match inside ordinary text; - one-character Chinese or Japanese names still need a space or punctuation next to them; - a one-syllable Korean name still matches a word that begins with a particle syllable, such as `별` in `별로`; - if the model leaves out the character's own name, it is added back with a space (`アリス ボブを…`); - descriptions built from two perspectives still join them with ASCII `; ` and end with `.`. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation Package README and CHANGELOG updated; no catalog README or Engine documentation changes. ## UI evidence (if applicable) No UI changes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-25 04:02:18 +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-Agents#1631
No description provided.