diff --git a/.agents/skills/ten-tts-review/SKILL.md b/.agents/skills/ten-tts-review/SKILL.md index 0a593f34bb..842783577b 100644 --- a/.agents/skills/ten-tts-review/SKILL.md +++ b/.agents/skills/ten-tts-review/SKILL.md @@ -80,6 +80,28 @@ small number of high-confidence findings over a broad checklist report. touched extension and subtitle hook gaps where subtitles are supported. Verify each finding against surrounding code; do not flag style, preferences, or purely hypothetical risks. +13. Treat extension metadata as part of the implementation contract. When an + existing extension has an implementation, configuration, manifest, or + dependency change, compare the extension version in `manifest.json` and + `pyproject.toml` + with the merge base. Require both files to exist when the extension uses + them, to agree exactly, and to be bumped for the release. A routine change + normally increments the final (patch) component; a substantial or breaking + change should increment the middle (minor) component. Report an unchanged, + mismatched, or implausibly small bump when the changed behavior warrants a + release update. Do not demand a bump for README-only or otherwise out-of-scope + changes. +14. Reconcile new Python imports with extension packaging. For every added + import, classify it as standard library, an in-repository TEN module, or an + external package. Every newly introduced external runtime package must be + declared in the extension's `pyproject.toml` dependencies with a compatible + version constraint. Check import names against package names (including + packages whose distribution name differs), and report a missing or + incompatible declaration when a clean extension install would fail. Do not + require declarations for standard-library or repository-local imports, and do + not flag dependencies already inherited through an explicit project + dependency unless the new import adds a direct package requirement under the + repository's packaging convention. ## Evidence standard diff --git a/.agents/skills/ten-tts-review/references/common.md b/.agents/skills/ten-tts-review/references/common.md index 7016c37c51..ece5522c69 100644 --- a/.agents/skills/ten-tts-review/references/common.md +++ b/.agents/skills/ten-tts-review/references/common.md @@ -131,6 +131,31 @@ Verify: - Dump writers write emitted PCM, are isolated per request, and flush on every terminal path without path traversal through request IDs. +## Release metadata and dependency reconciliation + +Treat release metadata and packaging as part of every changed extension's +runtime contract. For any in-scope implementation, configuration, manifest, or +dependency change, compare `manifest.json` and `pyproject.toml` with the merge +base: + +- The extension version in both files must be present where applicable, match + exactly, and advance when the extension behavior or shipped files change. +- Use a patch (final component) bump for routine fixes and a minor (middle + component) bump for substantial or breaking changes. A missing, unchanged, + mismatched, or clearly undersized bump is an actionable finding. README-only + changes do not require a release bump. +- Inspect every added Python import. Classify it as standard library, + repository-local TEN code, or an external distribution. Each new external + runtime distribution must appear in the extension's `pyproject.toml` + dependencies with a compatible constraint, accounting for import-name versus + distribution-name differences. A clean install must be able to resolve every + external import. + +Do not report standard-library or repository-local imports as missing +dependencies. Do not require a redundant direct declaration when the import is +already covered by an explicit project dependency and the repository's packaging +convention treats that dependency as sufficient. + ## Extension-local tests Apply the complete merge-gating matrix in [tests.md](tests.md). The suite must diff --git a/ai_agents/agents/ten_packages/extension/rime_tts/manifest.json b/ai_agents/agents/ten_packages/extension/rime_tts/manifest.json index d7aa310847..11cf39af1d 100644 --- a/ai_agents/agents/ten_packages/extension/rime_tts/manifest.json +++ b/ai_agents/agents/ten_packages/extension/rime_tts/manifest.json @@ -1,7 +1,7 @@ { "type": "extension", "name": "rime_tts", - "version": "0.4.14", + "version": "0.4.15", "dependencies": [ { "type": "system", diff --git a/ai_agents/agents/ten_packages/extension/rime_tts/pyproject.toml b/ai_agents/agents/ten_packages/extension/rime_tts/pyproject.toml index 0765676985..f59dc9bc44 100644 --- a/ai_agents/agents/ten_packages/extension/rime_tts/pyproject.toml +++ b/ai_agents/agents/ten_packages/extension/rime_tts/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "rime-tts" -version = "0.4.14" +version = "0.4.15" requires-python = ">=3.10" dependencies = [ "websockets>=14.0", diff --git a/ai_agents/agents/ten_packages/extension/rime_tts/rime_tts.py b/ai_agents/agents/ten_packages/extension/rime_tts/rime_tts.py index b0bb56da51..c19a33a8dc 100644 --- a/ai_agents/agents/ten_packages/extension/rime_tts/rime_tts.py +++ b/ai_agents/agents/ten_packages/extension/rime_tts/rime_tts.py @@ -197,7 +197,11 @@ async def _process_websocket(self) -> None: finally: if self.ws: await self.ws.close() - if self.on_connection_disconnected: + # A deliberate shutdown (for example extension on_stop calling + # close()) must not be reported as a fatal disconnect. The normal + # websocket close code is handled by the caller; this callback is + # only for an unexpected end of the connection-processing task. + if self.on_connection_disconnected and not self._session_closing: await self.on_connection_disconnected( code=int(ModuleErrorCode.FATAL_ERROR), message="closed",