buzz icon indicating copy to clipboard operation
buzz copied to clipboard

Share persona and team catalog validation between Desktop and buzz-cli

Open blakemcanally opened this issue 1 month ago • 0 comments

Problem

buzz personas list and buzz teams catalog (added in #8793) check only that a persona or team has a non-blank name. Desktop applies much stricter validation when it adopts an entry, so the CLI can list an entry that Desktop then rejects. PR #8793 documents this gap in the CLI README and the nest agent skill. This issue tracks closing it.

Review threads that raised the gap:

  • https://github.com/block/buzz/pull/8793#discussion_r4428096112 (crates/buzz-cli/src/commands/personas.rs)
  • https://github.com/block/buzz/pull/8793#discussion_r4428096121 (crates/buzz-cli/src/commands/teams.rs)

What the CLI does not check today

Personas (desktop/src-tauri/src/persona_catalog.rs::parse_agent rejects an entry when any of these fail):

  • validate_agent_definition_text (managed_agents/definition_validation.rs)
  • validate_agent_description_text (managed_agents/definition_validation.rs)
  • validate_portable_acp_command (managed_agents/backend.rs)

Teams (validate_team_catalog_content in desktop/src-tauri/src/managed_agents/team_catalog.rs):

  • parallelism out of range
  • invalid respond_to
  • concealed text (Unicode default-ignorable or otherwise invisible characters)
  • oversized fields
  • a bad built-in reuse hash on a member projection

Proposal

Move these validators out of the Tauri crate into buzz-core, including the Unicode default-ignorable and visible-text check and the member-projection reuse-hash check. Call the shared implementation from both Desktop and buzz-cli, so a CLI listing matches what Desktop can adopt. Then remove or soften the "not an adoptability check" notes added in #8793.

Note: Desktop's validation uses regex, so this adds a regex dependency to buzz-core.

Open question

Decide whether the CLI should hide rejected entries or list them with a validation error, and keep the stderr naming of unreadable entries consistent with that choice.

🤖 Generated with Claude Code

blakemcanally avatar Oct 30 '26 20:10 blakemcanally