[PR #1287] [MERGED] fix(relationship-tracker): 0.6.4 describe the persona baseline to the model #1384

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

📋 Pull Request Information

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

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


📝 Commits (2)

  • af70997 fix(relationship-tracker): 0.6.4 describe the persona baseline to the model
  • a7a00a2 Merge branch 'staging' into fix/relationship-tracker-0.6.4

📊 Changes

10 files changed (+50 additions, -23 deletions)

View changed files

➕ artifacts/relationship-tracker-0.6.4.zip (+0 -0)
📝 catalog/catalog.json (+6 -6)
📝 catalog/notes.json (+6 -0)
📝 catalog/v2/catalog.json (+6 -6)
📝 catalog/v2/notes.json (+6 -0)
📝 catalog/v3/catalog.json (+6 -6)
📝 catalog/v3/notes.json (+6 -0)
📝 packages/relationship-tracker/CHANGELOG.md (+6 -0)
📝 packages/relationship-tracker/manifest.json (+3 -3)
📝 packages/relationship-tracker/persona-tracking.mjs (+5 -2)

📄 Description

Pull request

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 #1286

Why this change

  • A user reported on Discord that Update from History keeps failing with "The history update model returned an invalid relationship delta: Persona update 1 must contain exactly five values."
  • The tracker sends the active persona's current perceptions as [characterAlias,state,label,perception,colorCategory,locked], but no prompt describes that shape (the card baseline is described). Models copy the six-value baseline into p. History rejects the whole run, as its contract requires. Automatic drops each malformed entry, so persona perceptions also quietly stopped updating there.

What changed

  • relationship-tracker 0.6.3 → 0.6.4 (patch; CHANGELOG entry marked [highlight] because History was failing outright for affected users).
  • persona-tracking.mjs: the shared persona instructions, used by both History and Automatic, now describe the baseline. They require exactly five positional values per p item and say never to copy the lock flag or the activePersona alias into p.
  • The rejection now names the five fields and how many values it received, so a future report shows what the model sent.
  • History stays strict: a malformed tuple still rejects the whole result before any write.
  • Generated: artifacts/relationship-tracker-0.6.4.zip (206,865 bytes, SHA-256 2b434aa0e34e744a221f70ff9bbe22570865f2650f3118e021d1142492101037), plus this package's entry and release notes in the published v2/v3 lanes and the legacy alias. No other package or catalog entry changes; the preview overlay is untouched.

Package and security impact

  • Affected package IDs: relationship-tracker
  • Engine compatibility impact: none. Engine 2.4.4 inclusive to <4.0.0 and Capability API 1.14 are unchanged. No Engine changes are required.
  • New or changed permissions/entrypoints: none. Only persona-tracking.mjs changes (model instructions and one error message).
  • Restart, storage, update, or uninstall impact: none beyond a normal package update. The saved default prompt in agents.json is unchanged, so live configs need no migration. Card state v1, persona state v1, routes and the public read API are unchanged.

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

  • Automated checks run on my machine with Claude Code: npm run check (0 errors; its 809 warnings are already on staging and none are in this package), 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, and git diff --check all pass. A second run of node scripts/build-relationship-tracker-package.mjs produces no changes.
  • Package test suite (kept in the package's source tree): 174/174 pass. New regressions check that the History and Automatic instructions describe the six-value baseline, and that a History result echoing that shape still rejects before any write. These fail on 0.6.3 and pass here.
  • Not done: the package was not installed or updated through Marinara Engine, and the fix was not tried against a live model. The user's exact model output was not available; a six-value echo of the baseline is the most likely cause, and the new error text will show the count if it recurs.

Documentation impact

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

Package CHANGELOG updated; README unchanged.

UI evidence (if applicable)

N/A (no UI change).

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Bug Fixes
    • Fixed persona perception updates that could fail when updating from history or running automatically because returned values had an unexpected format.
    • When the format is still incorrect, error messages now show how many values were received, making the issue clearer.
    • Updates now follow a consistent five-value format and use supported character aliases, helping prevent mismatches during persona perception updates.

🔄 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/1287 **Author:** [@NoblezDomain](https://github.com/NoblezDomain) **Created:** 10/9/2026 **Status:** ✅ Merged **Merged:** 10/9/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/relationship-tracker-0.6.4` --- ### 📝 Commits (2) - [`af70997`](https://github.com/Pasta-Devs/Marinara-Agents/commit/af70997e46c28c542010f7b29ba4310e5e87a6ed) fix(relationship-tracker): 0.6.4 describe the persona baseline to the model - [`a7a00a2`](https://github.com/Pasta-Devs/Marinara-Agents/commit/a7a00a242471879ba76adcd1facb54c26affee12) Merge branch 'staging' into fix/relationship-tracker-0.6.4 ### 📊 Changes **10 files changed** (+50 additions, -23 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/relationship-tracker-0.6.4.zip` (+0 -0) 📝 `catalog/catalog.json` (+6 -6) 📝 `catalog/notes.json` (+6 -0) 📝 `catalog/v2/catalog.json` (+6 -6) 📝 `catalog/v2/notes.json` (+6 -0) 📝 `catalog/v3/catalog.json` (+6 -6) 📝 `catalog/v3/notes.json` (+6 -0) 📝 `packages/relationship-tracker/CHANGELOG.md` (+6 -0) 📝 `packages/relationship-tracker/manifest.json` (+3 -3) 📝 `packages/relationship-tracker/persona-tracking.mjs` (+5 -2) </details> ### 📄 Description # Pull request > [!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 #1286 ## Why this change - A user reported on Discord that **Update from History** keeps failing with "The history update model returned an invalid relationship delta: Persona update 1 must contain exactly five values." - The tracker sends the active persona's current perceptions as `[characterAlias,state,label,perception,colorCategory,locked]`, but no prompt describes that shape (the card baseline is described). Models copy the six-value baseline into `p`. History rejects the whole run, as its contract requires. Automatic drops each malformed entry, so persona perceptions also quietly stopped updating there. ## What changed - `relationship-tracker` 0.6.3 → 0.6.4 (patch; CHANGELOG entry marked `[highlight]` because History was failing outright for affected users). - `persona-tracking.mjs`: the shared persona instructions, used by both History and Automatic, now describe the baseline. They require exactly five positional values per `p` item and say never to copy the lock flag or the `activePersona` alias into `p`. - The rejection now names the five fields and how many values it received, so a future report shows what the model sent. - History stays strict: a malformed tuple still rejects the whole result before any write. - Generated: `artifacts/relationship-tracker-0.6.4.zip` (206,865 bytes, SHA-256 `2b434aa0e34e744a221f70ff9bbe22570865f2650f3118e021d1142492101037`), plus this package's entry and release notes in the published v2/v3 lanes and the legacy alias. No other package or catalog entry changes; the preview overlay is untouched. ## Package and security impact - Affected package IDs: `relationship-tracker` - Engine compatibility impact: none. Engine 2.4.4 inclusive to <4.0.0 and Capability API 1.14 are unchanged. No Engine changes are required. - New or changed permissions/entrypoints: none. Only `persona-tracking.mjs` changes (model instructions and one error message). - Restart, storage, update, or uninstall impact: none beyond a normal package update. The saved default prompt in `agents.json` is unchanged, so live configs need no migration. Card state v1, persona state v1, routes and the public read API are unchanged. ## 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 - Automated checks run on my machine with Claude Code: `npm run check` (0 errors; its 809 warnings are already on staging and none are in this package), `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`, and `git diff --check` all pass. A second run of `node scripts/build-relationship-tracker-package.mjs` produces no changes. - Package test suite (kept in the package's source tree): 174/174 pass. New regressions check that the History and Automatic instructions describe the six-value baseline, and that a History result echoing that shape still rejects before any write. These fail on 0.6.3 and pass here. - Not done: the package was not installed or updated through Marinara Engine, and the fix was not tried against a live model. The user's exact model output was not available; a six-value echo of the baseline is the most likely cause, and the new error text will show the count if it recurs. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation Package CHANGELOG updated; README unchanged. ## UI evidence (if applicable) N/A (no UI change). 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Fixed persona perception updates that could fail when updating from history or running automatically because returned values had an unexpected format. * When the format is still incorrect, error messages now show how many values were received, making the issue clearer. * Updates now follow a consistent five-value format and use supported character aliases, helping prevent mismatches during persona perception updates. <!-- 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-21 05:10:11 +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#1384
No description provided.