Repository navigation
fix(long-term-memory): 1.4.6 — keep local character memories Roleplay-only instead of failing the import (#1226) - #1238
Conversation
…-only instead of failing the import (Pasta-Devs#1226) Extraction created every new note with all selected availability modes. A new local character subject with Conversation or Game selected therefore failed the Roleplay-only note validator, and the whole source failed. New local character notes are now created with Roleplay only and a `local_character_restricted_to_roleplay` warning. When Roleplay is not selected, those units are dropped before event-graph closure with a `local_character_requires_roleplay` diagnostic and are counted as validation rejections. The rest of the source is still proposed. The Roleplay-only validator is unchanged, and trusted character and persona subjects keep every selected mode. Regression: local-characters covers both cases plus trusted and persona subjects. Rebuilt manifest, bundle, artifact, catalog, and notes from source. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
⛔ Files ignored due to path filters (2)
📒 Files selected for processing (12)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughLong-Term Memory now restricts new local-character memories to Roleplay availability or skips them with a diagnostic when Roleplay is not selected. Other source memories remain proposed. The package and its catalog entries are updated to version 1.4.6. ChangesLong-Term Memory local-character import
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Bug fix · Severity of issue fixed: Medium Sequence Diagram(s)sequenceDiagram
participant compileEvidenceUnitExtraction
participant dropLocalCharactersOutsideRoleplay
participant sourceEventGraph
compileEvidenceUnitExtraction->>dropLocalCharactersOutsideRoleplay: Filter deduplicated units by selected modes
dropLocalCharactersOutsideRoleplay-->>compileEvidenceUnitExtraction: Return retained units and rejection details
compileEvidenceUnitExtraction->>sourceEventGraph: Close graph with retained units
Merge Risk: ⚪ Minimal · up to No concrete issue remains that prevents merging after normal checks. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 20.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 5 functions across 4 files. (8 skipped: 8 unsupported.)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Pull request
Important
Contributions target
staging. OnlySpicyMarinaramay promote this repository'sstagingbranch tomain.Outside and first-time contributors also require an approving review from
SpicyMarinara.Linked issue
Closes #1226
Why this change
local_character:subject. The compiler gave every new note all of the selected availability modes. With Conversation or Game also selected, the note failed the Roleplay-only validator, and the whole source failed (requested 1, wrote 1, succeeded 0, failed 1). Retrying failed the same way.What changed
long-term-memory1.4.6. Source changes are inevidence-unit-compiler.tsandevidence-unit-extraction.ts. A regression test is added intests/long-term-memory-local-characters.regression.ts.local_character_requires_roleplaydropped candidate and diagnostic, and counted undervalidationRejections. The other memories from the same source are still proposed.server.mjs,artifacts/long-term-memory-1.4.6.zip, and the catalogs and release notes (root, v2, v3). The CHANGELOG has a 1.4.6 entry.Package and security impact
long-term-memory>=2.4.1 <4.0.0.Validation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdManual verification notes
Agent-run checks, not manual verification. All ran on
fd866dfe2with an explicitMARINARA_AGENTS_ROOTandMARINARA_ENGINE_ROOT:local-characterscase failed with the issue's error:ZodError [{ code: "custom", path: ["note","modes"], message: "Local character subjects are available only in Roleplay mode." }]local-characters,extraction-graph,extraction-reliability,conversation-summary-import,routes-imports,candidate-reconciliationtest-fast.sh,npm run check,typecheck:packagestest-catalog-lanes,validate-package-locales,validate-catalog,catalog-release-notesgit diff --checkRegression cases:
Not run: an install or update through Marinara Engine, browser checks, and the full
test-ltm.sh allsuite.Merge danger
Door: two-way. Drafts are only proposals, and no stored data is migrated.
Blast radius: narrow. Only LTM extraction drafts that create a new local character note change.
Documentation impact
UI evidence (if applicable)
Not applicable. The diagnostics appear through the existing extraction outcome UI.
🤖 Generated with Claude Code
Summary by CodeRabbit