Skip to content

Your phone, on your command. Gotcha is world's first fully on-device AI copilot for Android that turns natural language into real device actions — safely.

feat(podcast): transcribe_file, saved audio to text without touching it

Durganshu Mishra01e49f325672
diff --git a/app/src/main/java/com/gotcha/tools/ToolDefinitions.kt b/app/src/main/java/com/gotcha/tools/ToolDefinitions.kt
index d7bc656..f3268bc 100644
--- a/app/src/main/java/com/gotcha/tools/ToolDefinitions.kt
+++ b/app/src/main/java/com/gotcha/tools/ToolDefinitions.kt
@@ -1598,6 +1598,46 @@ object ToolDefinitions {
}
)
+ val transcribeFile = tool(
+ "transcribe_file",
+ "Transcribe an audio file already on disk to text, using the configured Speech-to-Text API. The " +
+ "file is read and uploaded to the STT endpoint but never modified or deleted. Accepts .m4a, " +
+ ".mp3, .wav, .ogg, .opus, .flac, .aac, .mp4 and .webm up to 25MB — trim or split longer " +
+ "recordings with media_edit first. This is how a saved voice memo becomes text: record with " +
+ "start_audio_recording using an explicit output_path (without one the recording lands behind a " +
+ "MediaStore URI this tool cannot reach), stop it, then transcribe the file. Needs an API-based " +
+ "STT provider (Samosa AI or External API) in Settings → Speech — Android's SpeechRecognizer " +
+ "only listens to the microphone.",
+ schema {
+ putJsonObject("properties") {
+ putJsonObject("path") {
+ put("type", "string")
+ put(
+ "description",
+ "Path of the audio file to transcribe, e.g. '/sdcard/Gotcha/Recordings/memo.m4a'."
+ )
+ }
+ putJsonObject("model") {
+ put("type", "string")
+ put(
+ "description",
+ "STT model id to use. Defaults to the model configured in Settings → Speech, then " +
+ "to the first STT model the API advertises."
+ )
+ }
+ putJsonObject("language") {
+ put("type", "string")
+ put(
+ "description",
+ "ISO language hint for the recording, e.g. 'en' or 'hi'. Defaults to the " +
+ "configured STT language; leave unset to let the model detect it."
+ )
+ }
+ }
+ putJsonArray("required") { add("path") }
+ }
+ )
+
val edit = tool(
"edit",
"Replace exact text in a file, for surgical edits without rewriting it. oldString " +
@@ -2833,6 +2873,8 @@ object ToolDefinitions {
mediaConvert,
// Script-to-speech podcast synthesis (Operator only)
synthesizePodcast, synthesizePodcastDialogue,
+ // Audio-file transcription via the STT API (Operator only)
+ transcribeFile,
// Content search and file discovery
glob, grep,
// Web search + fetch
diff --git a/app/src/main/java/com/gotcha/tools/ToolExecutor.kt b/app/src/main/java/com/gotcha/tools/ToolExecutor.kt
index 8443828..2bc2328 100644
--- a/app/src/main/java/com/gotcha/tools/ToolExecutor.kt
+++ b/app/src/main/java/com/gotcha/tools/ToolExecutor.kt
@@ -66,6 +66,7 @@ class ToolExecutor(
private val mediaEditTool = MediaEditTool(appContext)
private val mediaConvertTool = MediaConvertTool(appContext)
private val podcastTool = PodcastTool(appContext)
+ private val transcribeTool = TranscribeTool(appContext)
private val globTool = GlobTool(appContext)
private val grepTool = GrepTool(appContext)
private val accessibilityTool = AccessibilityTool(appContext)
@@ -266,6 +267,11 @@ class ToolExecutor(
format = args.requireString("format"),
overwrite = args.requireBoolean("overwrite") ?: false
)
+ "transcribe_file" -> transcribeTool.transcribe(
+ path = args.requireString("path") ?: return missing("path"),
+ model = args.requireString("model"),
+ language = args.requireString("language")
+ )
"synthesize_podcast" -> podcastTool.synthesize(
script = args.requireString("script") ?: return missing("script"),
outputName = args.requireString("output_name") ?: return missing("output_name"),
diff --git a/app/src/main/java/com/gotcha/tools/TranscribeTool.kt b/app/src/main/java/com/gotcha/tools/TranscribeTool.kt
new file mode 100644
index 0000000..ff264f4
--- /dev/null
+++ b/app/src/main/java/com/gotcha/tools/TranscribeTool.kt
@@ -0,0 +1,173 @@
+package com.gotcha.tools
+
+import android.content.Context
+import com.gotcha.audio.AudioApi
+import com.gotcha.audio.AudioModel
+import com.gotcha.audio.AudioProvider
+import com.gotcha.audio.ModelCategory
+import com.gotcha.data.Settings
+import com.gotcha.data.SettingsRepository
+import java.io.File
+
+/**
+ * Transcribes an audio file already on disk through the configured STT API.
+ *
+ * This is the missing middle of the voice-memo-to-podcast flow:
+ * `start_audio_recording(output_path=…)` puts a recording on disk,
+ * `synthesize_podcast` wants a script, and nothing in between could read a
+ * saved file back as text — [com.gotcha.audio.SttEngine] only transcribes
+ * recordings it made itself, and its `transcribeApi` *deletes its input* after
+ * upload (its files are its own throwaways). This tool wraps
+ * [AudioApi.transcribe] directly, which reads the file and touches nothing.
+ *
+ * Requires an API-based STT provider: Android's `SpeechRecognizer` listens to
+ * the microphone and has no file input. Only available to Operator — the file
+ * content leaves the device for the configured STT endpoint.
+ */
+class TranscribeTool(
+ private val context: Context,
+ private val loadSettings: () -> Settings = { SettingsRepository(context).load() },
+ private val sttBackendFactory: (baseUrl: String, apiKey: String) -> SttBackend = { url, key ->
+ ApiSttBackend(AudioApi(url, key, timeoutSeconds = STT_TIMEOUT_SECONDS))
+ }
+) {
+
+ /** The two calls transcription needs from the STT API, extracted for tests. */
+ interface SttBackend {
+ fun listModels(): List<AudioModel>
+ fun transcribe(file: File, model: String, language: String?, contentType: String): Result<String>
+ }
+
+ private class ApiSttBackend(private val api: AudioApi) : SttBackend {
+ override fun listModels(): List<AudioModel> = api.listAudioModels()
+ override fun transcribe(file: File, model: String, language: String?, contentType: String): Result<String> =
+ api.transcribe(file, model, language, contentType)
+ }
+
+ private val resolver = FileResolver(context)
+
+ companion object {
+ /**
+ * Upload ceiling. Matches the common OpenAI-compatible transcription
+ * limit; a bigger file should be trimmed or split with media_edit
+ * first rather than bounced by the server after a slow upload.
+ */
+ const val MAX_INPUT_BYTES = 25L * 1024 * 1024
+
+ /** Transcripts are pasted into the conversation; past this they drown it. */
+ const val MAX_TRANSCRIPT_CHARS = 30_000
+
+ private const val STT_TIMEOUT_SECONDS = 300L
+ private const val ERROR_DETAIL_CHARS = 200
+
+ /** Extension → MIME type for the multipart upload. Also the supported-format list. */
+ private val CONTENT_TYPES = mapOf(
+ "m4a" to "audio/m4a",
+ "mp4" to "audio/mp4",
+ "aac" to "audio/aac",
+ "mp3" to "audio/mpeg",
+ "wav" to "audio/wav",
+ "ogg" to "audio/ogg",
+ "opus" to "audio/ogg",
+ "flac" to "audio/flac",
+ "webm" to "audio/webm"
+ )
+ }
+
+ @Suppress("ReturnCount")
+ fun transcribe(path: String, model: String? = null, language: String? = null): ToolResult {
+ val settings = loadSettings()
+ credentialError(settings)?.let { return it }
+
+ val file = when (val r = resolver.resolveForRead(path)) {
+ is FileResolver.ResolveResult.PermissionNeeded -> return r.result
+ is FileResolver.ResolveResult.Error -> return ToolResult.error(r.message)
+ is FileResolver.ResolveResult.Ok -> r.file
+ }
+ resolver.checkReadPermission(file)?.let { return it }
+ fileError(file, path)?.let { return it }
+ val contentType = CONTENT_TYPES[file.extension.lowercase()]
+ ?: return ToolResult.error(
+ "'.${file.extension}' is not a format this tool can send for transcription. Supported: " +
+ CONTENT_TYPES.keys.sorted().joinToString(", ") { ".$it" } +
+ ". Convert it first with media_convert."
+ )
+
+ val backend = sttBackendFactory(settings.effectiveSttBaseUrl, settings.effectiveSttApiKey)
+ val resolvedModel = resolveModel(model, settings, backend)
+ ?: return ToolResult.error(
+ "No STT model is configured and none could be discovered from the API. Pass model " +
+ "explicitly, or ask the user to pick one in Settings → Speech → Speech-to-Text."
+ )
+ val resolvedLanguage = (language ?: settings.sttLanguage).trim().ifBlank { null }
+
+ val transcript = backend.transcribe(file, resolvedModel, resolvedLanguage, contentType)
+ .getOrElse { e ->
+ return ToolResult.error(
+ "Transcription failed: ${e.message?.take(ERROR_DETAIL_CHARS) ?: "no detail"}. " +
+ "The file was not modified."
+ )
+ }
+ if (transcript.isBlank()) {
+ return ToolResult.error(
+ "The STT endpoint returned an empty transcript for '${file.name}' — the file may contain " +
+ "no speech, or the model/language may not match it."
+ )
+ }
+ val clipped = transcript.length > MAX_TRANSCRIPT_CHARS
+ val text = if (clipped) transcript.take(MAX_TRANSCRIPT_CHARS) else transcript
+ val truncationNote = if (clipped) {
+ "\n\n[Transcript truncated at $MAX_TRANSCRIPT_CHARS characters — the audio continues beyond " +
+ "this point. Trim the file with media_edit and transcribe the rest separately if needed.]"
+ } else {
+ ""
+ }
+ return ToolResult.ok(
+ "Transcript of '${file.name}' (${resolver.formatSize(file.length())}, spoken content sent to " +
+ "the configured STT API; the file itself was not modified):\n\n$text$truncationNote"
+ )
+ }
+
+ private fun credentialError(settings: Settings): ToolResult? {
+ if (!settings.sttProvider.isApiBased()) {
+ return ToolResult.error(
+ "The Speech-to-Text provider is '${settings.sttProvider.label}', which only listens to the " +
+ "microphone — it cannot read an audio file. Ask the user to set Settings → Speech → " +
+ "Speech-to-Text to Samosa AI or External API, then try again."
+ )
+ }
+ if (settings.effectiveSttBaseUrl.isBlank()) {
+ return ToolResult.error(
+ if (settings.sttProvider == AudioProvider.SAMOSA_AI) {
+ "STT is set to Samosa AI but there is no active session. Ask the user to sign in again " +
+ "in Settings, then retry."
+ } else {
+ "STT is set to External API but no base URL is configured. Ask the user to complete " +
+ "Settings → Speech → Speech-to-Text, then retry."
+ }
+ )
+ }
+ return null
+ }
+
+ private fun fileError(file: File, path: String): ToolResult? = when {
+ !file.exists() -> ToolResult.error(
+ "'$path' does not exist (resolved: ${file.canonicalPath}). You may use list_files or glob to find it."
+ )
+ !file.isFile -> ToolResult.error("'$path' is not a regular file.")
+ file.length() == 0L -> ToolResult.error("'${file.name}' is empty — there is nothing to transcribe.")
+ file.length() > MAX_INPUT_BYTES -> ToolResult.error(
+ "'${file.name}' is ${resolver.formatSize(file.length())}; the transcription limit is " +
+ "${resolver.formatSize(MAX_INPUT_BYTES)}. Trim it into parts with media_edit and " +
+ "transcribe each part."
+ )
+ else -> null
+ }
+
+ private fun resolveModel(modelArg: String?, settings: Settings, backend: SttBackend): String? {
+ val explicit = (modelArg ?: settings.sttApiModel).trim()
+ if (explicit.isNotBlank()) return explicit
+ return runCatching { backend.listModels() }.getOrDefault(emptyList())
+ .firstOrNull { it.category == ModelCategory.STT }?.id
+ }
+}
diff --git a/app/src/test/java/com/gotcha/tools/TranscribeToolTest.kt b/app/src/test/java/com/gotcha/tools/TranscribeToolTest.kt
new file mode 100644
index 0000000..6c47b7a
--- /dev/null
+++ b/app/src/test/java/com/gotcha/tools/TranscribeToolTest.kt
@@ -0,0 +1,219 @@
+package com.gotcha.tools
+
+import android.content.Context
+import androidx.test.core.app.ApplicationProvider
+import com.gotcha.audio.AudioModel
+import com.gotcha.audio.AudioProvider
+import com.gotcha.audio.ModelCategory
+import com.gotcha.data.Settings
+import com.gotcha.testsupport.ShadowExternalStorageManager
+import org.junit.After
+import org.junit.Assert.assertArrayEquals
+import org.junit.Assert.assertEquals
+import org.junit.Assert.assertFalse
+import org.junit.Assert.assertTrue
+import org.junit.Before
+import org.junit.Test
+import org.junit.runner.RunWith
+import org.robolectric.RobolectricTestRunner
+import org.robolectric.annotation.Config
+import java.io.File
+import java.io.IOException
+
+/**
+ * `transcribe_file`'s guards, and the property that justifies its existence:
+ * unlike `SttEngine.transcribeApi`, which deletes its input after upload,
+ * this tool must leave the user's recording exactly as it found it.
+ */
+@RunWith(RobolectricTestRunner::class)
+@Config(sdk = [34], shadows = [ShadowExternalStorageManager::class])
+class TranscribeToolTest {
+
+ private lateinit var context: Context
+ private lateinit var audioDir: File
+
+ private class FakeBackend(
+ var models: List<AudioModel> = emptyList(),
+ var answer: () -> Result<String> = { Result.failure(IOException("unreachable")) }
+ ) : TranscribeTool.SttBackend {
+ val calls = mutableListOf<Triple<File, String, String?>>()
+ override fun listModels(): List<AudioModel> = models
+ override fun transcribe(
+ file: File,
+ model: String,
+ language: String?,
+ contentType: String
+ ): Result<String> {
+ calls.add(Triple(file, model, language))
+ return answer()
+ }
+ }
+
+ private val apiSettings = Settings(
+ sttProvider = AudioProvider.API,
+ sttApiBaseUrl = "http://localhost:8880/v1",
+ sttApiModel = "whisper-1"
+ )
+
+ @Before
+ fun setUp() {
+ ShadowExternalStorageManager.granted = true
+ context = ApplicationProvider.getApplicationContext()
+ audioDir = File(context.filesDir, "memos").apply {
+ deleteRecursively()
+ mkdirs()
+ }
+ }
+
+ @After
+ fun tearDown() {
+ ShadowExternalStorageManager.resetGranted()
+ }
+
+ private fun tool(
+ settings: Settings = apiSettings,
+ backend: FakeBackend = FakeBackend()
+ ): TranscribeTool = TranscribeTool(context, loadSettings = { settings }, sttBackendFactory = { _, _ -> backend })
+
+ private fun memo(name: String = "memo.m4a", bytes: ByteArray = ByteArray(2048) { it.toByte() }): File =
+ File(audioDir, name).apply { writeBytes(bytes) }
+
+ // ---- provider guards ----
+
+ @Test
+ fun `the Android provider is refused with directions to Settings`() {
+ val result = tool(settings = Settings(sttProvider = AudioProvider.ANDROID)).transcribe(memo().path)
+ assertFalse(result.success)
+ assertTrue(result.message.contains("Settings"))
+ }
+
+ @Test
+ fun `Samosa AI without a session asks for a sign-in`() {
+ val result = tool(settings = Settings(sttProvider = AudioProvider.SAMOSA_AI)).transcribe(memo().path)
+ assertFalse(result.success)
+ assertTrue(result.message.contains("sign in"))
+ }
+
+ // ---- file guards ----
+
+ @Test
+ fun `a missing file is reported with its resolved path`() {
+ val result = tool().transcribe(File(audioDir, "nope.m4a").path)
+ assertFalse(result.success)
+ assertTrue(result.message.contains("does not exist"))
+ }
+
+ @Test
+ fun `an empty file is refused before the backend is touched`() {
+ val backend = FakeBackend()
+ val result = tool(backend = backend).transcribe(memo(bytes = ByteArray(0)).path)
+ assertFalse(result.success)
+ assertTrue(backend.calls.isEmpty())
+ }
+
+ @Test
+ fun `an unsupported extension is refused and lists what is supported`() {
+ val backend = FakeBackend()
+ val result = tool(backend = backend).transcribe(memo(name = "video.mkv").path)
+ assertFalse(result.success)
+ assertTrue(result.message.contains(".m4a"))
+ assertTrue(backend.calls.isEmpty())
+ }
+
+ @Test
+ fun `an oversized file is refused with the limit stated`() {
+ val big = File(audioDir, "long.m4a")
+ big.outputStream().use { out ->
+ val chunk = ByteArray(1024 * 1024)
+ repeat(26) { out.write(chunk) }
+ }
+ val result = tool().transcribe(big.path)
+ assertFalse(result.success)
+ assertTrue(result.message.contains("25.0 MB"))
+ }
+
+ // ---- the survival property ----
+
+ @Test
+ fun `the input file survives transcription byte for byte`() {
+ val original = ByteArray(4096) { (it * 7).toByte() }
+ val file = memo(bytes = original)
+ val backend = FakeBackend(answer = { Result.success("hello from the memo") })
+
+ val result = tool(backend = backend).transcribe(file.path)
+
+ assertTrue(result.message, result.success)
+ assertTrue(result.message.contains("hello from the memo"))
+ assertTrue("input file was deleted", file.exists())
+ assertArrayEquals("input file was modified", original, file.readBytes())
+ }
+
+ @Test
+ fun `a failed upload also leaves the file in place`() {
+ val file = memo()
+ val backend = FakeBackend(answer = { Result.failure(IOException("HTTP 502")) })
+ val result = tool(backend = backend).transcribe(file.path)
+ assertFalse(result.success)
+ assertTrue(result.message.contains("HTTP 502"))
+ assertTrue(file.exists())
+ }
+
+ // ---- model and language resolution ----
+
+ @Test
+ fun `an explicit model beats the configured one`() {
+ val backend = FakeBackend(answer = { Result.success("ok") })
+ tool(backend = backend).transcribe(memo().path, model = "whisper-large")
+ assertEquals("whisper-large", backend.calls.single().second)
+ }
+
+ @Test
+ fun `with nothing configured the first advertised STT model is used`() {
+ val backend = FakeBackend(
+ models = listOf(
+ AudioModel(id = "kokoro", category = ModelCategory.TTS),
+ AudioModel(id = "parakeet", category = ModelCategory.STT)
+ ),
+ answer = { Result.success("ok") }
+ )
+ tool(settings = apiSettings.copy(sttApiModel = ""), backend = backend).transcribe(memo().path)
+ assertEquals("parakeet", backend.calls.single().second)
+ }
+
+ @Test
+ fun `no model anywhere is an actionable error, not a blank upload`() {
+ val backend = FakeBackend()
+ val result = tool(settings = apiSettings.copy(sttApiModel = ""), backend = backend).transcribe(memo().path)
+ assertFalse(result.success)
+ assertTrue(result.message.contains("model"))
+ assertTrue(backend.calls.isEmpty())
+ }
+
+ @Test
+ fun `a blank configured language is sent as no hint at all`() {
+ val backend = FakeBackend(answer = { Result.success("ok") })
+ tool(backend = backend).transcribe(memo().path)
+ assertEquals(null, backend.calls.single().third)
+ }
+
+ // ---- transcript handling ----
+
+ @Test
+ fun `an empty transcript is an error, not a silent success`() {
+ val backend = FakeBackend(answer = { Result.success(" ") })
+ val result = tool(backend = backend).transcribe(memo().path)
+ assertFalse(result.success)
+ assertTrue(result.message.contains("empty transcript"))
+ }
+
+ @Test
+ fun `an over-long transcript is truncated with an honest note`() {
+ val backend = FakeBackend(
+ answer = { Result.success("word ".repeat(TranscribeTool.MAX_TRANSCRIPT_CHARS)) }
+ )
+ val result = tool(backend = backend).transcribe(memo().path)
+ assertTrue(result.success)
+ assertTrue(result.message.contains("truncated"))
+ assertTrue(result.message.length < TranscribeTool.MAX_TRANSCRIPT_CHARS + 1000)
+ }
+}
diff --git a/app/src/test/resources/feature-test-coverage.json b/app/src/test/resources/feature-test-coverage.json
index 4529e8f..1815048 100644
--- a/app/src/test/resources/feature-test-coverage.json
+++ b/app/src/test/resources/feature-test-coverage.json
@@ -452,6 +452,14 @@
],
"notes": "shares synthesize_podcast's pipeline and its coverage, plus the dialogue-specific guards and mechanics: unknown-speaker refusal, empty-dialogue refusal, blank turns dropped after sanitising rather than synthesized as dead air, and the three-level host-voice resolution (explicit argument beats configured setting beats the first voice in the model's list that differs from host A). Silence-gap WAV generation is verified on the JVM to match the speech's own sample rate and channel count. The audible result — two distinguishable hosts with a natural pause between turns — is device-only and must be verified by hand"
},
+ {
+ "tool": "transcribe_file",
+ "tier": "ROBOLECTRIC",
+ "tests": [
+ "com.gotcha.tools.TranscribeToolTest"
+ ],
+ "notes": "every guard that runs before the upload — Android/unconfigured STT provider refusals with directions to Settings, missing/empty/oversized files, unsupported extensions refused before the backend is touched — plus the properties that make the tool safe to point at a user's only copy of a recording: the input file demonstrably survives transcription byte-for-byte (the deliberate contrast with SttEngine.transcribeApi, which deletes its input), model resolution (explicit argument beats configured setting beats the first STT model the API advertises), empty transcripts reported as errors rather than silence, and over-long transcripts truncated with an honest note. The upload itself needs a reachable STT endpoint, so a real memo round trip is device-only manual verification"
+ },
{
"tool": "glob",
"tier": "ROBOLECTRIC",
diff --git a/docs/FEATURE_TEST_COVERAGE.md b/docs/FEATURE_TEST_COVERAGE.md
index 300369b..f6a28c1 100644
--- a/docs/FEATURE_TEST_COVERAGE.md
+++ b/docs/FEATURE_TEST_COVERAGE.md
@@ -14,12 +14,12 @@ Every tool the assistant can call is listed below, together with how it is verif
| Tier | Tools | What it means |
|---|---:|---|
| `UNIT` | 24 | Plain JVM unit test — no Android framework needed. |
-| `ROBOLECTRIC` | 24 | JVM test against Robolectric's Android framework, often across several API levels. |
+| `ROBOLECTRIC` | 25 | JVM test against Robolectric's Android framework, often across several API levels. |
| `INSTRUMENTED` | 0 | Runs on a real device or emulator (`app/src/androidTest`). |
| `MANUAL_ONLY` | 64 | No automated test — verified by hand, see the checklist below. |
-| **Total** | **112** | |
+| **Total** | **113** | |
-**48 of 112** tools are covered by an automated test; the remaining 64 are manual-QA-only with a recorded reason.
+**49 of 113** tools are covered by an automated test; the remaining 64 are manual-QA-only with a recorded reason.
## Foreground tools (act on the screen)
@@ -144,6 +144,7 @@ Every tool the assistant can call is listed below, together with how it is verif
| `search_skills` | `MANUAL_ONLY` | Needs an Android Context and a system service with real device state; no JVM-tier coverage yet — scheduled for the Robolectric tier. |
| `sleep` | `MANUAL_ONLY` | Needs an Android Context and a system service with real device state; no JVM-tier coverage yet — scheduled for the Robolectric tier. |
| `todowrite` | `MANUAL_ONLY` | Pure UI round-trip: writes the visible todo list in the chat surface. |
+| `transcribe_file` | `ROBOLECTRIC` | `TranscribeToolTest` — every guard that runs before the upload — Android/unconfigured STT provider refusals with directions to Settings, missing/empty/oversized files, unsupported extensions refused before the backend is touched — plus the properties that make the tool safe to point at a user's only copy of a recording: the input file demonstrably survives transcription byte-for-byte (the deliberate contrast with SttEngine.transcribeApi, which deletes its input), model resolution (explicit argument beats configured setting beats the first STT model the API advertises), empty transcripts reported as errors rather than silence, and over-long transcripts truncated with an honest note. The upload itself needs a reachable STT endpoint, so a real memo round trip is device-only manual verification |
| `update_user_profile` | `UNIT` | `UpdateUserProfileTest` — merge semantics (modify-and-extend, never erase), the no-op guard, and the 250/50-word caps |
| `webfetch` | `UNIT` | `WebFetchToolTest` — HTML-to-text extraction, truncation, error handling |
| `websearch` | `MANUAL_ONLY` | Performs real network I/O against a search provider; exercising it in CI would make the suite non-hermetic. |