Skip to content

fix: room document missing sections for note/insight/reference/event types (#547) - #559

Merged
ajianaz merged 1 commit into
developfrom
fix/issue-547-room-document-empty-sections
Jul 4, 2026
Merged

ajianaz merged 1 commit into
developfrom
fix/issue-547-room-document-empty-sections

Conversation

@ajianaz

@ajianaz ajianaz commented Jul 4, 2026

Copy link
Copy Markdown
Collaborator

Closes

Root Cause

room_document() only mapped 5 memory types to document sections:

Key Section
decision Decisions
fact Research & Facts
procedure Procedures
preference Preferences
context Context & Discussion

But MemoryType::infer_from_content() produces 9 types. The remaining 4 types (note, insight, reference, event) had no matching section — their memories vanished silently from the document.

Since note is the default fallback type (when content doesn't match any pattern), rooms with generic content like "Technical review needed" or "Budget approved" would all infer as note and no section matched — resulting in sections: [].

Fix

  1. Added dedicated sections for insight, reference, and event types
  2. Added catch-all "Notes & General" section that captures any memory not yet assigned to a typed section — covers the note type and any future types
  3. Section ordering: Pinned, Decisions, Facts, Procedures, Preferences, Context, Insights, References, Events, Notes & General

…types (#547)

room_document() only mapped 5 memory types to sections (decision, fact,
procedure, preference, context). But MemoryType::infer_from_content produces
9 types — note, insight, reference, and event memories vanished silently
from documents, causing sections: [] for rooms whose memories defaulted to
the 'note' type.

Fix:
- Add dedicated sections for insight, reference, and event types
- Add catch-all 'Notes & General' section for any unassigned memories
  (covers 'note' type and any future types)
@github-actions

github-actions Bot commented Jul 4, 2026

Copy link
Copy Markdown

🔍 Cora AI Code Review

✅ No issues found. Code looks good!


Review powered by cora-cli · BYOK · MIT

@ajianaz
ajianaz merged commit a2c9f95 into develop Jul 4, 2026
8 checks passed
@ajianaz
ajianaz deleted the fix/issue-547-room-document-empty-sections branch July 9, 2026 14:27
ajianaz added a commit that referenced this pull request Aug 13, 2026
…empty-sections

fix: room document missing sections for note/insight/reference/event types (#547)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant