Skip to content

BUG: room document (CLI) returns empty sections — works via uteke-serve #547

Closed

Description

@ajianaz

Description

uteke room document --namespace <ns> <room-slug> returns sections: [] (empty document) even when the room contains multiple memories. The same room, when accessed via coordination.py through uteke-serve (localhost:8767), correctly generates document sections.

This proves the document generation logic works at the server level but the CLI command does not properly invoke it or process the result.

Environment

  • Uteke version: 0.6.1 (CLI binary)
  • uteke-serve: v0.2.0+ (schema v7) at localhost:8767
  • Reproducibility: Consistent

Steps to Reproduce

# Setup: Create room with cross-agent memories
uteke room create --namespace cto "disc:cross-agent-test"
uteke remember --namespace cto --room "disc:cross-agent-test" --author cto-agent "Technical review needed"
uteke remember --namespace cfo --room "disc:cross-agent-test" --author cfo-agent "Budget approved"
uteke remember --namespace cmo --room "disc:cross-agent-test" --author cmo-agent "Marketing plan ready"

# CLI: room document (broken)
uteke room document --namespace cto "disc:cross-agent-test"
# Output: { slug: "disc:cross-agent-test", sections: [], title: null }

# uteke-serve via coordination.py (works)
python3 -c "
from coordination import Coord
c = Coord()
doc = c.get_discussion_document('disc:cross-agent-test')
print(doc)  # Returns proper sections: Decisions, Action Items, etc.

Expected Behavior

uteke room document should return the same document structure as coordination.py — with sections containing grouped memories, decisions, and action items.

Actual Behavior

CLI returns sections: [] (empty). No error, just empty output.

Impact

  • CLI users cannot generate room documents
  • Only uteke-serve + coordination.py users get document generation
  • Inconsistent behavior between CLI and server API

Suggested Fix

  1. The CLI room document command likely does not call the same document generation logic as coordination.py
  2. Verify the CLI command invokes the room document endpoint properly
  3. Ensure the document generation algorithm (clustering, section extraction) is shared between CLI and server paths

Activity

  1. added
    bug
    scope:cli
    on Jul 3, 2026
  2. added a commit that references this issue on Jul 4, 2026
  3. ajianaz commented on Jul 4, 2026

    @ajianaz
    CollaboratorAuthor

    Fixed in PR #559. Root cause: room_document only mapped 5 of 9 MemoryType variants to sections. The default fallback type 'note' had no section — causing sections: [] for rooms with generic content. Added dedicated sections for insight/reference/event types plus a catch-all 'Notes & General' section.

  4. added 2 commits that reference this issue on Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpriority:mediumscope:cli

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions