Skip to content

fix(uteke): accept category:title room ids in uteke_recall and uteke_document - #719

Merged
ajianaz merged 1 commit into
developfrom
fix/uteke-room-ids
Nov 14, 2026
Merged

ajianaz merged 1 commit into
developfrom
fix/uteke-room-ids

Conversation

@ajianaz

@ajianaz ajianaz commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

What

uteke_recall and uteke_document now accept uteke 0.24 category:title room ids (for example project:qa-check) as well as today's ids.

Why

Both tools only allowed [a-zA-Z0-9-_], so any room id with a colon was refused before uteke was spawned and tole could not create or use a new-style room.

Changes

  • One shared validate_room_id in crates/tole-core/src/uteke.rs, used by both call sites. It accepts the legacy charset unchanged (no leading hyphen, non-empty) and uteke's category:title grammar, mirrored from uteke's room_naming.rs: ^[a-z][a-z0-9-]*:[a-z0-9][a-z0-9._-]*$, exactly one colon, at most 64 bytes.
  • Flag-shaped values (-x, --json, -a:b), a second colon, uppercase in the new form, a leading or trailing colon and over-long colon ids are refused. Legacy ids keep today's behaviour (no new length cap).
  • The room is still passed as a positional value after room recall / room add-document; a colon id always starts with a letter, so it cannot become a flag.
  • Docs note in docs/architecture.md and a CHANGELOG entry under 0.11.0 / Fixed. The built-in repo-*, profile-* and agent-* rooms keep their names; migration is a follow-up (uteke room aliases keep old ids working).

Testing

  • Unit tests pin the grammar boundary at both call sites, the validator (including the 64-byte limit), and that a colon id cannot become a flag; the existing room tests were updated.
  • cargo fmt, cargo clippy --workspace --all-targets --all-features -- -D warnings, cargo test --workspace and cargo test -p tole-core --no-default-features pass.
  • Live check against a uteke binary not run (none installed in this environment).

Closes #716

@github-actions

Copy link
Copy Markdown

🔍 Cora AI Code Review

✅ No issues found. Code looks good!


Review powered by cora-code · BYOK · MIT

@ajianaz
ajianaz merged commit d8bb4be into develop Nov 14, 2026
19 checks passed
@ajianaz
ajianaz deleted the fix/uteke-room-ids branch November 20, 2026 08:39
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.

uteke_document/uteke_recall reject uteke 0.24 category:title room ids (charset lacks ':')

2 participants