Skip to content

test: lint app-reachable text for terminal commands and removed features - #7340

Merged
kovtcharov-amd merged 2 commits into
amd:mainfrom
kovtcharov:kalin/ci-user-facing-text-lint
Nov 12, 2026
Merged

kovtcharov-amd merged 2 commits into
amd:mainfrom
kovtcharov:kalin/ci-user-facing-text-lint

Conversation

@kovtcharov

Copy link
Copy Markdown
Contributor

The rc18 desktop app told users to run gaia connectors connect google and pip install amd-gaia[browser]. A desktop install has neither command, so the user was left with nothing they could do; it also offered an agent list in a product that is one agent. This adds a lint, in the style of test_amd_gaia_urls.py, over every string the desktop app or the TUI can show, so the next such message fails the PR that adds it.

It flags a gaia <subcommand> written as something to type (the subcommands are read from the parser, so a new one is covered), pip install, lemonade-server serve, and the removed features: an agent list, an agent catalog, an Agent Hub, the standalone email agent. The TUI is a terminal, so only the last three rules apply there.

What it found on main: 66 strings, counted per file with the issue that tracks them. The count is exact both ways: a new string fails, and fixing one fails until its number is lowered, so the list can only shrink.

Class Strings Issue
Tells the user to type a gaia ... or pip install ... command 53 #7338 (new; #7209 covers only the browser hint)
Names an Agent Hub, an agent catalog or gaia hub 7 #7339 (new)
Names the standalone email agent 6 #4825, removed by #7108

Eight more matches are not text for a user (a table of commands GAIA holds for approval, developer API schema text) and are listed separately with the reason.

A fix PR that changes one of these strings (#7164, #7261, #7108) will need to lower the matching count when it lands after this.

Test plan

  • python -m pytest tests/unit/test_user_facing_text.py -q passes (5 tests)
  • Add "Run \gaia init` to fix this."to any file undersrc/gaia/agents/tools/` and the test fails naming the file and line
  • Runs in the existing unit job (test_unit.yml runs tests/unit/); no workflow change needed
🔍 Technical details
  • Python strings come from the AST, minus docstrings and logging calls, under src/gaia/ui, src/gaia/agents and hub/agents/gaia/python/gaia_agent. The Agent UI is covered by its English locale file (0 violations today). Go string literals are read with comments blanked out.
  • test_the_rules_catch_what_rc18_shipped pins the exact rc18 strings so a rule cannot be loosened to get green, and test_the_rules_leave_ordinary_text_alone pins prose such as "the gaia daemon".

The rc18 desktop app told users to run `gaia connectors connect google` and
`pip install amd-gaia[browser]`. A desktop install has neither command, so
the user had nothing to do. It also offered an agent list in a product that
is one agent.

In the style of test_amd_gaia_urls.py, this scans every string the agent, its
tools and the Agent UI backend can produce, the Agent UI's English strings,
and the TUI's strings, for: a `gaia <subcommand>` to type (subcommands read
from the parser), pip, `lemonade-server serve`, and the Agent Hub, agent
catalog, agent list and standalone email agent.

The 66 existing violations are counted per file with their issue (amd#7338,
amd#7339, amd#4825). The count is exact both ways, so a new string fails and a
fixed one has to lower its number.
@kovtcharov-amd
kovtcharov-amd added this pull request to the merge queue Nov 12, 2026
Merged via the queue into amd:main with commit c7e9f8e Nov 12, 2026
23 of 25 checks passed
@kovtcharov-amd
kovtcharov-amd deleted the kalin/ci-user-facing-text-lint branch November 12, 2026 10:58
@github-actions github-actions Bot mentioned this pull request Nov 12, 2026
5 of 8 tasks
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.

2 participants