Skip to content

docs(skills): stop daily-brief and the starter guide underclaiming TTS - #4322

Merged
kovtcharov-amd merged 1 commit into
amd:mainfrom
kovtcharov:docs/4252-daily-brief-capabilities
Sep 25, 2026
Merged

kovtcharov-amd merged 1 commit into
amd:mainfrom
kovtcharov:docs/4252-daily-brief-capabilities

Conversation

@kovtcharov

Copy link
Copy Markdown
Contributor

Summary

The daily-brief skill and the starter-skills guide both told the model text-to-speech doesn't exist as an agent tool, and that GAIA's Telegram morning-brief idea needs "text-to-speech as an agent tool" to work — but text_to_speech (Kokoro TTS) has been a registered ChatAgent tool all along. An agent following either doc underclaims what it can already do. The scheduling limitation in both docs (gaia schedule add --skill is rejected at creation time — #1019) is still accurate and is left unchanged.

Verified against code, not just the issue text: gaia schedule add --skill really does exit 1 today (src/gaia/cli.py), so that part of the "honest limits" claim stays as written — only the TTS claim was stale.

Test plan

  • pytest tests/unit/test_starter_skills.py -q — 189 passed (was 188; new test added), and the new test fails against the pre-fix docs, confirming it catches the regression
  • gaia eval agent — these are prompt-facing skill docs the model reads, but the change only affects a stated capability list, not tool selection or procedure, so a regression here is unlikely; flagging for a maintainer to decide if a run is warranted

Fixes #4252

Both told the model text-to-speech doesn't exist as an agent tool, when
text_to_speech has shipped in ChatAgent all along — so an agent following
either doc would tell a user it can't do something it actually can. The
scheduling limitation in both docs is still accurate (gaia schedule add
--skill is rejected, amd#1019) and is left as-is.

Fixes amd#4252
@github-actions github-actions Bot added documentation Documentation changes tests Test changes labels Sep 25, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Verdict: Approve

This fixes two docs that told the model text-to-speech didn't exist as an agent tool when it has been one all along, and adds a test so the stale claim can't come back. I checked both halves against the code: the text_to_speech tool really is registered for the profile the flagship agent runs, and the scheduling limitation the docs still claim really is still true (skill-backed schedules are rejected at creation time), so the corrected blocker counts in the guide line up.

No blocking issues. Two small things worth a look: the new test's docstring says the tool is "always" registered, which isn't quite right for the minimal conversation-only profile, and the test skips entirely — including the pure doc checks — if one optional package can't be imported.

On the unchecked eval item in the test plan: agreed it's low risk. This only removes a capability the model was told it lacked, so the worst case is the agent offering to speak a brief aloud, which is the intended behaviour.

Real-world evidence

N/A — docs and tests only; no CLI, API, MCP, or Agent UI surface changes, and no evidence bundle was produced for this run. The verdict rests on static review plus direct verification of the two claims against the source. I couldn't execute the new test here (pytest isn't installed in this lane), so the "189 passed" result in the description is taken at face value rather than reproduced.

🔍 Technical details

Verification performed

  • text_to_speech is registered unconditionally in ChatAgent._register_tools (hub/agents/chat/python/gaia_agent_chat/agent.py:2114) — not behind spec.web_tools or enable_sd_tools — and GaiaAgent defaults to prompt_profile = "full" and calls super()._register_tools(), so the flagship that runs skills does get the tool.
  • gaia schedule add --skill exits 1 with a message pointing at issue feat(skills): SKILL.md support — build, load, share agent skills via agentskills.io standard #1019 (src/gaia/cli.py:3323), so the retained scheduling claim and the issue link in hub/skills/daily-brief/SKILL.md:58 are accurate.
  • Grepped the rest of docs/ and hub/ for the same stale claim ("not exposed as an agent tool", "not a tool an agent can call", TTS-is-CLI-only) — no other copy survives, so CLAUDE.md's "update every doc that describes it" rule is satisfied.
  • The guide's morning-brief row correctly drops from "Four at once" to "Three at once" and lists exactly three blockers (docs/guides/starter-skills.mdx:276).

Issues Found

🟢 Docstring overstates registration (tests/unit/test_starter_skills.py:649) — the chat prompt profile hits the spec.early_return branch in _register_tools and registers only shell + external tools, so text_to_speech is not registered there. "Always-registered" is the one inaccuracy in a PR about inaccurate capability claims.

    ``text_to_speech`` is a real ChatAgent tool registered for every
    tool-bearing profile, including the flagship's ``full``
    (``gaia_agent_chat/agent.py``), so a doc listing it as a missing capability

🟢 importorskip skips the doc assertions too (tests/unit/test_starter_skills.py:655) — the two SKILL.md / .mdx checks are the point of the test and need no import, but they're gated behind the gaia_agent_chat import. The root conftest.py pins hub/agents/*/python onto sys.path, so this should never fire in practice; if it ever does, the regression guard vanishes silently instead of failing. Moving the import-dependent assertion to the end of the test keeps the doc checks unconditional.

🟢 Source-string guard is weaker than it looks (tests/unit/test_starter_skills.py:659) — "def text_to_speech(" in source stays green if the tool is later moved behind a profile flag or a config gate, which is exactly the state that would make the docs wrong again. Asserting the @tool decorator sits directly above it, or that the definition is at method-body indentation rather than inside a conditional, would catch the realistic regression. Optional — a full registry check would need an agent instance, which isn't worth it in a unit test.

Strengths

  • The correction is verified against the code rather than the issue text, and the parts that are still true were deliberately left alone — the docs stay honest in both directions instead of swinging to over-claiming.
  • Pinning the surviving limitation (assert "gaia schedule add --skill" in guide) is the right instinct: the test guards against a future edit deleting a real blocker just as much as against the stale one returning.
  • Per-document failure messages (f"{doc_name} still claims…") make a future failure self-explanatory without opening the test.

@kovtcharov-amd
kovtcharov-amd added this pull request to the merge queue Sep 25, 2026
Merged via the queue into amd:main with commit 0984028 Sep 25, 2026
28 of 29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Documentation changes tests Test changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs(skills): image-gen and daily-brief give stale instructions

2 participants