{
  "answers": {
    "c00": {
      "noul": 0.99,
      "type": "noul"
    },
    "c01": {
      "noul": 0.03,
      "type": "noul"
    },
    "c02": {
      "noul": 0.99,
      "type": "noul"
    },
    "c03": {
      "noul": 0.99,
      "type": "noul"
    },
    "c04": {
      "noul": 0.97,
      "type": "noul"
    },
    "c05": {
      "noul": 0.99,
      "type": "noul"
    },
    "c06": {
      "noul": 1.0,
      "type": "noul"
    },
    "c07": {
      "noul": 0.99,
      "type": "noul"
    },
    "c08": {
      "noul": 0.02,
      "type": "noul"
    },
    "c09": {
      "noul": 0.99,
      "type": "noul"
    },
    "c10": {
      "noul": 0.91,
      "type": "noul"
    },
    "c11": {
      "noul": 0.99,
      "type": "noul"
    },
    "c12": {
      "noul": 0.89,
      "type": "noul"
    },
    "c13": {
      "noul": 0.99,
      "type": "noul"
    },
    "c14": {
      "noul": 0.91,
      "type": "noul"
    },
    "c15": {
      "noul": 0.99,
      "type": "noul"
    },
    "c16": {
      "noul": 0.92,
      "type": "noul"
    },
    "c17": {
      "noul": 0.08,
      "type": "noul"
    },
    "w00": {
      "noul": 0.87,
      "type": "noul"
    },
    "w01": {
      "noul": 0.89,
      "type": "noul"
    },
    "w02": {
      "noul": 0.85,
      "type": "noul"
    },
    "w03": {
      "noul": 0.98,
      "type": "noul"
    },
    "w04": {
      "noul": 0.98,
      "type": "noul"
    },
    "w05": {
      "noul": 0.97,
      "type": "noul"
    },
    "w06": {
      "noul": 0.96,
      "type": "noul"
    },
    "w07": {
      "noul": 0.97,
      "type": "noul"
    },
    "w08": {
      "noul": 0.88,
      "type": "noul"
    }
  },
  "asked_at": "2026-11-23T04:49:26Z",
  "endpoint": "https://api.typesafe.ai/v1/systemone",
  "errors_helpful": [
    {
      "call": 0,
      "noul": 0.99,
      "question": "c00"
    },
    {
      "call": 1,
      "noul": 0.03,
      "question": "c01"
    },
    {
      "call": 2,
      "noul": 0.99,
      "question": "c02"
    },
    {
      "call": 3,
      "noul": 0.99,
      "question": "c03"
    },
    {
      "call": 4,
      "noul": 0.97,
      "question": "c04"
    },
    {
      "call": 5,
      "noul": 0.99,
      "question": "c05"
    },
    {
      "call": 6,
      "noul": 1.0,
      "question": "c06"
    },
    {
      "call": 7,
      "noul": 0.99,
      "question": "c07"
    },
    {
      "call": 8,
      "noul": 0.02,
      "question": "c08"
    },
    {
      "call": 9,
      "noul": 0.99,
      "question": "c09"
    },
    {
      "call": 10,
      "noul": 0.91,
      "question": "c10"
    },
    {
      "call": 11,
      "noul": 0.99,
      "question": "c11"
    },
    {
      "call": 12,
      "noul": 0.89,
      "question": "c12"
    },
    {
      "call": 13,
      "noul": 0.99,
      "question": "c13"
    },
    {
      "call": 14,
      "noul": 0.91,
      "question": "c14"
    },
    {
      "call": 15,
      "noul": 0.99,
      "question": "c15"
    },
    {
      "call": 16,
      "noul": 0.92,
      "question": "c16"
    },
    {
      "call": 17,
      "noul": 0.08,
      "question": "c17"
    }
  ],
  "format": "didrun.judgments.v1",
  "input_tokens": 39181,
  "method": "0.15.0",
  "model": "jev-1.14.0",
  "model_asked": "jev-1.14.0",
  "request": {
    "model": "jev-1.14.0",
    "questions": {
      "c00": {
        "criteria": {
          "false": "The reply does not point to `parameter`: for example a generic failure, an error about another argument, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply points to `parameter` or to its value and says the value has the wrong type or is not accepted."
        },
        "instructions": {
          "arguments_sent": {
            "expand": "not an array"
          },
          "parameter": "expand",
          "question": "Does `reply` tell the caller that `parameter` has a value the tool does not accept?",
          "reply": "{\n  \"error\": {\n    \"code\": \"invalid_arguments\",\n    \"message\": \"expand must be an array of strings.\",\n    \"fixHint\": \"Pass expand: [\\\"schema\\\" | \\\"capabilities.full\\\" | \\\"capabilities.advanced\\\"].\",\n    \"retryable\": false\n  }\n}",
          "tool": "getPlatformInfo"
        },
        "type": "noul"
      },
      "c01": {
        "criteria": {
          "false": "The reply does not point to `parameter`: for example a generic failure, an error about another argument, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply points to `parameter` or to its value and says the value has the wrong type or is not accepted."
        },
        "instructions": {
          "arguments_sent": {
            "from": {}
          },
          "parameter": "from",
          "question": "Does `reply` tell the caller that `parameter` has a value the tool does not accept?",
          "reply": "{\n  \"from\": \"meta_dat\",\n  \"approach\": \"full_cutover\",\n  \"coexistenceNote\": \"This is a FULL-CUTOVER guide — replace your DAT calls with Extentos primitives. Running raw DAT and Extentos side-by-side in one process is NOT supported today: the Meta DeviceSession is a single-owner handle and there is no public accessor to the DAT session underneath Extentos yet. Incremental / side-by-side adoption is a roadmap item, not a current capability. Migrate an app fully, or keep it on raw DAT.\",\n  \"plan\": [\n    \"1. Scaffold the bootstrap: run generateConnectionModule (it replaces Wearables.initialize/configure + your registration UI). Choose an ExtentosConnectionPage placement when prompted.\",\n    \"2. Derive permissions: run getPermissions with your capability list and apply the manifest/Info.plist entries — then delete your hand-maintained ones.\",\n    \"3. Swap call sites per the map below, area by area. For each, drill into getCapabilityGuide(feature) for the exact Kotlin/Swift idiom and getCodeExample(pattern) for a full composition to peel from.\",\n    \"4. Convert error handling: replace try/catch / runCatching around lifecycle ops with ExtentosResult pattern-matching.\",\n    \"5. Validate: run validateIntegration (manifest / deps / permissions / bootstrap wiring), then dogfood in the browser simulator (createSimulatorSession) — no glasses needed to prove the cutover.\"\n  ],\n  \"mappings\": [\n    {\n      \"area\": \"SDK initialization\",\n      \"datSymbols\": {\n        \"android\": [\n          \"Wearables.initialize(context)\"\n        ],\n        \"ios\": [\n          \"MWDATCore.Wearables.configure()\"\n        ]\n      },\n      \"extentosCall\": \"ExtentosGlasses.create(ExtentosConfig(...)) / Extentos.create(config:)\",\n      \"extentosFeature\": null,\n      \"whatChanges\": \"Stop initializing DAT yourself — the generated bootstrap module calls Extentos.create, which owns DAT init under the hood. Don't hand-write this; run generateConnectionModule to scaffold it.\",\n      \"drill\": {\n        \"tool\": \"gener",
          "tool": "getMigrationGuide"
        },
        "type": "noul"
      },
      "c02": {
        "criteria": {
          "false": "The reply names no argument of the tool: for example a generic failure, a stack trace with no argument named, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply names at least one argument of the tool that the call left out or got wrong, and so tells the caller what to change."
        },
        "instructions": {
          "arguments_sent": {},
          "question": "Does `reply` name an argument that the call must add or fix?",
          "reply": "{\n  \"error\": {\n    \"code\": \"invalid_arguments\",\n    \"message\": \"`appPackage` is required and must be a non-empty string (the app's package / bundle id).\",\n    \"fixHint\": \"Pass the developer's package/bundle id, e.g. com.example.myapp.\",\n    \"retryable\": false\n  }\n}",
          "tool": "regenerateConnectionPageFile"
        },
        "type": "noul"
      },
      "c03": {
        "criteria": {
          "false": "The reply does not point to `parameter`: for example a generic failure, an error about another argument, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply points to `parameter` or to its value and says the value has the wrong type or is not accepted."
        },
        "instructions": {
          "arguments_sent": {
            "appPackage": {}
          },
          "parameter": "appPackage",
          "question": "Does `reply` tell the caller that `parameter` has a value the tool does not accept?",
          "reply": "{\n  \"error\": {\n    \"code\": \"invalid_arguments\",\n    \"message\": \"`appPackage` is required and must be a non-empty string (the app's package / bundle id).\",\n    \"fixHint\": \"Pass the developer's package/bundle id, e.g. com.example.myapp.\",\n    \"retryable\": false\n  }\n}",
          "tool": "regenerateConnectionPageFile"
        },
        "type": "noul"
      },
      "c04": {
        "criteria": {
          "false": "The reply names no argument of the tool: for example a generic failure, a stack trace with no argument named, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply names at least one argument of the tool that the call left out or got wrong, and so tells the caller what to change."
        },
        "instructions": {
          "arguments_sent": {},
          "question": "Does `reply` name an argument that the call must add or fix?",
          "reply": "{\n  \"error\": {\n    \"code\": \"invalid_arguments\",\n    \"message\": \"`appPackage` is required and must be a non-empty string (the app's package / bundle id).\",\n    \"fixHint\": \"Pass the developer's package/bundle id, e.g. com.example.myapp.\",\n    \"retryable\": false\n  }\n}",
          "tool": "setAssistantConfig"
        },
        "type": "noul"
      },
      "c05": {
        "criteria": {
          "false": "The reply does not point to `parameter`: for example a generic failure, an error about another argument, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply points to `parameter` or to its value and says the value has the wrong type or is not accepted."
        },
        "instructions": {
          "arguments_sent": {
            "appPackage": {}
          },
          "parameter": "appPackage",
          "question": "Does `reply` tell the caller that `parameter` has a value the tool does not accept?",
          "reply": "{\n  \"error\": {\n    \"code\": \"invalid_arguments\",\n    \"message\": \"`appPackage` is required and must be a non-empty string (the app's package / bundle id).\",\n    \"fixHint\": \"Pass the developer's package/bundle id, e.g. com.example.myapp.\",\n    \"retryable\": false\n  }\n}",
          "tool": "setAssistantConfig"
        },
        "type": "noul"
      },
      "c06": {
        "criteria": {
          "false": "The reply names no argument of the tool: for example a generic failure, a stack trace with no argument named, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply names at least one argument of the tool that the call left out or got wrong, and so tells the caller what to change."
        },
        "instructions": {
          "arguments_sent": {},
          "question": "Does `reply` name an argument that the call must add or fix?",
          "reply": "{\n  \"error\": {\n    \"code\": \"invalid_arguments\",\n    \"message\": \"`appPackage` is required and must be a non-empty string (the app's package / bundle id).\",\n    \"fixHint\": \"Pass the developer's package/bundle id, e.g. com.example.myapp.\",\n    \"retryable\": false\n  }\n}",
          "tool": "getProjectAnalytics"
        },
        "type": "noul"
      },
      "c07": {
        "criteria": {
          "false": "The reply does not point to `parameter`: for example a generic failure, an error about another argument, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply points to `parameter` or to its value and says the value has the wrong type or is not accepted."
        },
        "instructions": {
          "arguments_sent": {
            "appPackage": {}
          },
          "parameter": "appPackage",
          "question": "Does `reply` tell the caller that `parameter` has a value the tool does not accept?",
          "reply": "{\n  \"error\": {\n    \"code\": \"invalid_arguments\",\n    \"message\": \"`appPackage` is required and must be a non-empty string (the app's package / bundle id).\",\n    \"fixHint\": \"Pass the developer's package/bundle id, e.g. com.example.myapp.\",\n    \"retryable\": false\n  }\n}",
          "tool": "getProjectAnalytics"
        },
        "type": "noul"
      },
      "c08": {
        "criteria": {
          "false": "The reply does not point to `parameter`: for example a generic failure, an error about another argument, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply points to `parameter` or to its value and says the value has the wrong type or is not accepted."
        },
        "instructions": {
          "arguments_sent": {
            "projectPath": {}
          },
          "parameter": "projectPath",
          "question": "Does `reply` tell the caller that `parameter` has a value the tool does not accept?",
          "reply": "{\n  \"valid\": false,\n  \"checks\": [\n    {\n      \"name\": \"manifest_exists\",\n      \"passed\": false,\n      \"severity\": \"error\",\n      \"details\": \"No manifest at /opt/server/extentos.manifest.json.\",\n      \"fix\": \"Run generateConnectionModule, then APPLY its files[] — extentos.manifest.json is emitted as a files[] entry, and writing that file is what this check needs. Re-running the tool alone does not create the file; you must write the emitted files.\"\n    }\n  ],\n  \"summary\": \"Integration not installed yet — run generateConnectionModule first.\"\n}",
          "tool": "validateIntegration"
        },
        "type": "noul"
      },
      "c09": {
        "criteria": {
          "false": "The reply names no argument of the tool: for example a generic failure, a stack trace with no argument named, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply names at least one argument of the tool that the call left out or got wrong, and so tells the caller what to change."
        },
        "instructions": {
          "arguments_sent": {},
          "question": "Does `reply` name an argument that the call must add or fix?",
          "reply": "{\n  \"error\": {\n    \"code\": \"invalid_arguments\",\n    \"message\": \"deviceCode (string) is required.\",\n    \"fixHint\": \"Pass the deviceCode from createSimulatorSession's auth_required response.\",\n    \"retryable\": false\n  }\n}",
          "tool": "completeAuthLink"
        },
        "type": "noul"
      },
      "c10": {
        "criteria": {
          "false": "The reply does not point to `parameter`: for example a generic failure, an error about another argument, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply points to `parameter` or to its value and says the value has the wrong type or is not accepted."
        },
        "instructions": {
          "arguments_sent": {
            "deviceCode": {}
          },
          "parameter": "deviceCode",
          "question": "Does `reply` tell the caller that `parameter` has a value the tool does not accept?",
          "reply": "{\n  \"error\": {\n    \"code\": \"invalid_arguments\",\n    \"message\": \"deviceCode (string) is required.\",\n    \"fixHint\": \"Pass the deviceCode from createSimulatorSession's auth_required response.\",\n    \"retryable\": false\n  }\n}",
          "tool": "completeAuthLink"
        },
        "type": "noul"
      },
      "c11": {
        "criteria": {
          "false": "The reply names no argument of the tool: for example a generic failure, a stack trace with no argument named, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply names at least one argument of the tool that the call left out or got wrong, and so tells the caller what to change."
        },
        "instructions": {
          "arguments_sent": {},
          "question": "Does `reply` name an argument that the call must add or fix?",
          "reply": "{\n  \"error\": {\n    \"code\": \"invalid_arguments\",\n    \"message\": \"sessionId (string) is required.\",\n    \"fixHint\": \"Pass the sessionId returned by createSimulatorSession.\",\n    \"retryable\": false\n  }\n}",
          "tool": "assertToolCalled"
        },
        "type": "noul"
      },
      "c12": {
        "criteria": {
          "false": "The reply does not point to `parameter`: for example a generic failure, an error about another argument, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply points to `parameter` or to its value and says the value has the wrong type or is not accepted."
        },
        "instructions": {
          "arguments_sent": {
            "name": "didrun",
            "sessionId": {}
          },
          "parameter": "sessionId",
          "question": "Does `reply` tell the caller that `parameter` has a value the tool does not accept?",
          "reply": "{\n  \"error\": {\n    \"code\": \"invalid_arguments\",\n    \"message\": \"sessionId (string) is required.\",\n    \"fixHint\": \"Pass the sessionId returned by createSimulatorSession.\",\n    \"retryable\": false\n  }\n}",
          "tool": "assertToolCalled"
        },
        "type": "noul"
      },
      "c13": {
        "criteria": {
          "false": "The reply names no argument of the tool: for example a generic failure, a stack trace with no argument named, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply names at least one argument of the tool that the call left out or got wrong, and so tells the caller what to change."
        },
        "instructions": {
          "arguments_sent": {},
          "question": "Does `reply` name an argument that the call must add or fix?",
          "reply": "{\n  \"error\": {\n    \"code\": \"invalid_arguments\",\n    \"message\": \"sessionId (string) is required.\",\n    \"fixHint\": \"Pass the sessionId returned by createSimulatorSession.\",\n    \"retryable\": false\n  }\n}",
          "tool": "setSimVideo"
        },
        "type": "noul"
      },
      "c14": {
        "criteria": {
          "false": "The reply does not point to `parameter`: for example a generic failure, an error about another argument, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply points to `parameter` or to its value and says the value has the wrong type or is not accepted."
        },
        "instructions": {
          "arguments_sent": {
            "sessionId": {},
            "videoId": "didrun"
          },
          "parameter": "sessionId",
          "question": "Does `reply` tell the caller that `parameter` has a value the tool does not accept?",
          "reply": "{\n  \"error\": {\n    \"code\": \"invalid_arguments\",\n    \"message\": \"sessionId (string) is required.\",\n    \"fixHint\": \"Pass the sessionId returned by createSimulatorSession.\",\n    \"retryable\": false\n  }\n}",
          "tool": "setSimVideo"
        },
        "type": "noul"
      },
      "c15": {
        "criteria": {
          "false": "The reply names no argument of the tool: for example a generic failure, a stack trace with no argument named, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply names at least one argument of the tool that the call left out or got wrong, and so tells the caller what to change."
        },
        "instructions": {
          "arguments_sent": {},
          "question": "Does `reply` name an argument that the call must add or fix?",
          "reply": "{\n  \"error\": {\n    \"code\": \"invalid_arguments\",\n    \"message\": \"sessionId (string) is required.\",\n    \"fixHint\": \"Pass the sessionId returned by createSimulatorSession.\",\n    \"retryable\": false\n  }\n}",
          "tool": "injectHardwareButton"
        },
        "type": "noul"
      },
      "c16": {
        "criteria": {
          "false": "The reply does not point to `parameter`: for example a generic failure, an error about another argument, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply points to `parameter` or to its value and says the value has the wrong type or is not accepted."
        },
        "instructions": {
          "arguments_sent": {
            "sessionId": {}
          },
          "parameter": "sessionId",
          "question": "Does `reply` tell the caller that `parameter` has a value the tool does not accept?",
          "reply": "{\n  \"error\": {\n    \"code\": \"invalid_arguments\",\n    \"message\": \"sessionId (string) is required.\",\n    \"fixHint\": \"Pass the sessionId returned by createSimulatorSession.\",\n    \"retryable\": false\n  }\n}",
          "tool": "injectHardwareButton"
        },
        "type": "noul"
      },
      "c17": {
        "criteria": {
          "false": "The reply does not say the tool is missing: for example a generic failure, a crash, or a normal answer.",
          "true": "The reply says the tool is unknown, not found, or does not exist."
        },
        "instructions": {
          "arguments_sent": {},
          "question": "Does `reply` tell the caller that there is no tool named `tool`?",
          "reply": "{\n  \"error\": {\n    \"code\": \"not_implemented\",\n    \"message\": \"Tool \\\"unknown_tool:didrun_unknown_tool\\\" is a Phase 0 stub — MCP surface is wired but behavior is not implemented yet.\",\n    \"fixHint\": \"Wait for Phase 1+ implementation; see docs/MCP_IMPLEMENTATION_PLAN.md for the per-phase tool rollout.\",\n    \"retryable\": false\n  }\n}",
          "tool": "didrun_unknown_tool"
        },
        "type": "noul"
      },
      "w00": {
        "criteria": {
          "false": "The tool replies show an error, a missing or different result, or nothing about the task; or only the agent's final answer claims the task was done.",
          "true": "The tool replies in `steps` show the result that `done_when` describes. The result came from the server's tools, not only from the agent's own words."
        },
        "instructions": {
          "agent_final_answer": "## Generated scaffold\n\nI requested the Android voice-only scaffold for `com.example.voicenotes` with `transcription_incremental` and `speak`. The generator returned a bootstrap file and an integration manifest; it did **not** write them into a project in this sandbox.\n\nThe voice path uses the phone’s Bluetooth audio routing. It does not require a Meta DAT connection page, Meta developer credentials, or a vendor pairing flow.\n\n### Bootstrap\n\nThe generated file is `app/src/main/java/com/example/voicenotes/extentos/ExtentosBootstrap.kt`. Its functional code is shown below; I’ve omitted the generator’s explanatory comments:\n\n```kotlin\n// EXTENTOS-GENERATED — do not edit manually.\n// Regenerate via generateConnectionModule.\npackage com.example.voicenotes.extentos\n\nimport android.app.Application\nimport android.util.Log\nimport com.example.voicenotes.BuildConfig\nimport com.extentos.glasses.core.CapabilityKind\nimport com.extentos.glasses.core.ExtentosConfig\nimport com.extentos.glasses.core.ExtentosGlasses\nimport com.extentos.glasses.core.ExtentosResult\nimport kotlinx.coroutines.CoroutineScope\nimport kotlinx.coroutines.Dispatchers\nimport kotlinx.coroutines.SupervisorJob\nimport kotlinx.coroutines.launch\n\nopen class ExtentosBootstrap : Application() {\n    lateinit var glasses: ExtentosGlasses\n        private set\n\n    private val appScope = CoroutineScope(SupervisorJob() + Dispatchers.Main)\n\n    override fun onCreate() {\n        super.onCreate()\n        glasses = ExtentosGlasses.create(\n            ExtentosConfig(\n                applicationContext = this,\n                appId = \"com.example.voicenotes\",\n                debug = BuildConfig.DEBUG,\n                usedCapabilities = setOf(\n                    CapabilityKind.Microphone,\n                    CapabilityKind.Speaker,\n                ),\n            )\n        )\n\n        appScope.launch {\n            when (val result = glasses.connection.connect()) {\n                is ExtentosResult.Ok -> Unit\n                is Extento",
          "done_when": "The tool reply shows the Android voice-only scaffold for the specified package and capabilities, including its generated configuration and permissions.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {
                "appPackage": "com.example.voicenotes",
                "capabilities": [
                  "transcription_incremental",
                  "speak"
                ],
                "glasses": "meta",
                "platform": "android",
                "responseFormat": "detailed"
              },
              "reply": "{\n  \"files\": [\n    {\n      \"path\": \"app/src/main/java/com/example/voicenotes/extentos/ExtentosBootstrap.kt\",\n      \"action\": \"create\",\n      \"content\": \"// EXTENTOS-GENERATED — do not edit manually. Regenerate via generateConnectionModule.\\npackage com.example.voicenotes.extentos\\n\\nimport android.app.Application\\nimport android.util.Log\\nimport com.example.voicenotes.BuildConfig\\nimport com.extentos.glasses.core.CapabilityKind\\nimport com.extentos.glasses.core.ExtentosConfig\\nimport com.extentos.glasses.core.ExtentosGlasses\\nimport com.extentos.glasses.core.ExtentosResult\\nimport kotlinx.coroutines.CoroutineScope\\nimport kotlinx.coroutines.Dispatchers\\nimport kotlinx.coroutines.SupervisorJob\\nimport kotlinx.coroutines.launch\\n\\n/**\\n * Application subclass that instantiates the Extentos SDK and opens the\\n * transport on app start. Reference `(application as ExtentosBootstrap).glasses`\\n * from your Activity / Composable / Handler classes to subscribe to SDK\\n * primitives.\\n *\\n * Declared `open` so customer code can subclass this when it needs to run\\n * additional init logic in Application.onCreate() — e.g. a connection-state\\n * observer or DI wiring. Pattern:\\n *\\n *     class MyApp : ExtentosBootstrap() {\\n *         override fun onCreate() {\\n *             super.onCreate()         // wires `glasses` first\\n *             // ⚠️ Do NOT start a mic/camera capture handler here. Subscribing to\\n *             // glasses.audio.transcriptions() / recordDiscrete() / audioChunks()\\n *             // (or starting the foreground service) needs the RECORD_AUDIO runtime\\n *             // permission — NOT granted at Application start, so it throws\\n *             // SecurityException and the app dies before the first Activity draws.\\n *             // Start capture handlers from an Activity AFTER the permission-grant\\n *             // callback (see getPermissions + getProductionChecklist).\\n *         }\\n *     }\\n *\\n * If you subclass, set `android:name` in AndroidManifest.xml to your\\n * subclass (e.g. `.MyApp`) instead of `.extentos.ExtentosBootstrap`.\\n * If you don't need extra init, leave the manifest pointing at this class.\\n *\\n * ── ⚠️ Field-init constraint ──────────────────────────────────────────\\n * Top-level property initializers on Application subclasses run BEFORE\\n * `attachBaseContext` wires the Context, so any field-init that touches\\n * Context methods (`getFilesDir`, `getCacheDir`, `getSharedPreferences`,\\n * etc., directly or via classes that take `this` in their constructor)\\n * crashes the app at start with NullPointerException.\\n *\\n *     // ❌ DOES NOT WORK — NPE at app launch:\\n *     class MyApp : ExtentosBootstrap() {\\n *         val library = LibraryStore(this)         // LibraryStore.<init> → getFilesDir() → NPE\\n *         val prefs = getSharedPreferences(\\\"…\\\", 0) // same\\n *     }\\n *\\n *     // ✓ Use `by lazy` (first read happens after super.onCreate()):\\n *     class MyApp : ExtentosBootstrap() {\\n *         val library: LibraryStore by lazy { LibraryStore(this) }\\n *         override fun onCreate() {\\n *             super.onCreate()\\n *             library.someMethod() // ← first read; lazy initializer fires here, Context is live\\n *         }\\n *     }\\n *\\n *     // ✓ Or initialize inside onCreate(), after super.onCreate():\\n *     class MyApp : ExtentosBootstrap() {\\n *         lateinit var library: LibraryStore; private set\\n *         override fun onCreate() {\\n *             super.onCreate()\\n *             library = LibraryStore(this)\\n *         }\\n *     }\\n *\\n * The `appScope` field below works because `CoroutineScope(...)` doesn't\\n * touch `Context` at construction — keep that pattern (init objects that\\n * don't reference `this` Context) for any peer field you add.\\n */\\nopen class ExtentosBootstrap : Application() {\\n    lateinit var glasses: ExtentosGlasses\\n        private set\\n\\n    private val appScope = CoroutineScope(SupervisorJob() + Dispatchers.Main)\\n\\n    override fun onCreate() {\\n        super.onCreate()\\n        glasses = ExtentosGlasses.create(\\n            ExtentosConfig(\\n                applicationContext = this,\\n                // The Extentos project identity, decoupled from the store\\n                // applicationId. Set the SAME appId on your iOS app to share\\n                // one Extentos project even when the store bundle ids differ\\n                // (they're often locked to different values on shipped apps).\\n                appId = \\\"com.example.voicenotes\\\",\\n                debug = BuildConfig.DEBUG,\\n                usedCapabilities = setOf(\\n                    CapabilityKind.Microphone,\\n                    CapabilityKind.Speaker,\\n                ),\\n            )\\n        )\\n\\n        appScope.launch {\\n            // connect() returns an ExtentosResult — pattern-match it. Do NOT wrap\\n            // in runCatching: lifecycle ops report failure via the Err variant\\n            // (not a thrown exception), and runCatching would also swallow the\\n            // CancellationException that cancels appScope (RDQ #29).\\n            when (val result = glasses.connection.connect()) {\\n                is ExtentosResult.Ok -> Unit\\n                is ExtentosResult.Err ->\\n                    Log.e(EXTENTOS_TAG, \\\"glasses.connection.connect() failed: \\\" + result.error)\\n            }\\n        }\\n    }\\n\\n    private companion object {\\n        const val EXTENTOS_TAG = \\\"Extentos\\\"\\n    }\\n}\\n\"\n    },\n    {\n      \"path\": \"extentos.manifest.json\",\n      \"action\": \"create\",\n      \"content\": \"{\\n  \\\"manifestVersion\\\": 2,\\n  \\\"platform\\\": \\\"android\\\",\\n  \\\"glasses\\\": \\\"meta\\\",\\n  \\\"appPackage\\\": \\\"com.example.voicenotes\\\",\\n  \\\"extentos\\\": {\\n    \\\"libraryVersion\\\": \\\"2.8.0\\\",\\n    \\\"installedAt\\\": \\\"2026-11-23T04:43:03.143Z\\\",\\n    \\\"lastUpdatedAt\\\": \\\"2026-11-23T04:43:03.143Z\\\"\\n  },\\n  \\\"generatedFiles\\\": [\\n    {\\n      \\\"path\\\": \\\"app/src/main/java/com/example/voicenotes/extentos/ExtentosBootstrap.kt\\\",\\n      \\\"template\\\": \\\"connection_module\\\",\\n      \\\"hash\\\": \\\"sha256:352722c48adfb39eb4f39a8cc495061e4f48522ba520e04a807b7a803f7b6ebe\\\",\\n      \\\"generatedAt\\\": \\\"2026-11-23T04:43:03.143Z\\\",\\n      \\\"generatedByTool\\\": \\\"generateConnectionModule\\\"\\n    }\\n  ],\\n  \\\"permissions\\\": [\\n    \\\"android.permission.FOREGROUND_SERVICE\\\",\\n    \\\"android.permission.FOREGROUND_SERVICE_MICROPHONE\\\",\\n    \\\"android.permission.INTERNET\\\",\\n    \\\"android.permission.RECORD_AUDIO\\\"\\n  ],\\n  \\\"capabilities\\\": [\\n    \\\"transcription_incremental\\\",\\n    \\\"speak\\\"\\n  ],\\n  \\\"handlerNames\\\": [],\\n  \\\"gradle\\\": {\\n    \\\"coordinate\\\": \\\"com.extentos:glasses:2.8.0\\\",\\n    \\\"buildFile\\\": \\\"app/build.gradle.kts\\\",\\n    \\\"additionalArtifacts\\\": [\\n      {\\n        \\\"coordinate\\\": \\\"com.extentos:glasses-ui:2.8.0\\\",\\n        \\\"configuration\\\": \\\"implementation\\\"\\n      }\\n    ],\\n    \\\"minimumAgpVersion\\\": \\\"8.6.0\\\",\\n    \\\"minimumGradleVersion\\\": \\\"8.7\\\"\\n  }\\n}\"\n    }\n  ],\n  \"manifest\": {\n    \"path\": \"extentos.manifest.json\",\n    \"content\": {\n      \"manifestVersion\": 2,\n      \"platform\": \"android\",\n      \"glasses\": \"meta\",\n      \"appPackage\": \"com.example.voicenotes\",\n      \"extentos\": {\n        \"libraryVersion\": \"2.8.0\",\n        \"installedAt\": \"2026-11-23T04:43:03.143Z\",\n        \"lastUpdatedAt\": \"2026-11-23T04:43:03.143Z\"\n      },\n      \"generatedFiles\": [\n        {\n          \"path\": \"app/src/main/java/com/example/voicenotes/extentos/ExtentosBootstrap.kt\",\n          \"template\": \"connection_module\",\n          \"hash\": \"sha256:352722c48adfb39eb4f39a8cc495061e4f48522ba520e04a807b7a803f7b6ebe\",\n          \"generatedAt\": \"2026-11-23T04:43:03.143Z\",\n          \"generatedByTool\": \"generateConnectionModule\"\n        }\n      ],\n      \"permissions\": [\n        \"android.permission.FOREGROUND_SERVICE\",\n        \"android.permission.FOREGROUND_SERVICE_MICROPHONE\",\n        \"android.permission.INTERNET\",\n        \"android.permission.RECORD_AUDIO\"\n      ],\n      \"capabilities\": [\n        \"transcription_incremental\",\n      ",
              "tool": "generateConnectionModule"
            },
            {
              "arguments": {
                "capabilities": [
                  "transcription_incremental",
                  "speak"
                ],
                "platform": "android"
              },
              "reply": "{\n  \"android\": {\n    \"permissions\": [\n      \"android.permission.FOREGROUND_SERVICE\",\n      \"android.permission.FOREGROUND_SERVICE_MICROPHONE\",\n      \"android.permission.INTERNET\",\n      \"android.permission.RECORD_AUDIO\"\n    ],\n    \"manifestEntries\": [\n      \"<uses-permission android:name=\\\"android.permission.FOREGROUND_SERVICE\\\" />\",\n      \"<uses-permission android:name=\\\"android.permission.FOREGROUND_SERVICE_MICROPHONE\\\" />\",\n      \"<uses-permission android:name=\\\"android.permission.INTERNET\\\" />\",\n      \"<uses-permission android:name=\\\"android.permission.RECORD_AUDIO\\\" />\"\n    ],\n    \"foregroundService\": {\n      \"required\": true,\n      \"types\": [\n        \"microphone\"\n      ],\n      \"declaration\": \"<!-- F-R4-11: glasses-core's AndroidManifest declares\\n     com.extentos.glasses.core.service.GlassesForegroundService with\\n     foregroundServiceType=\\\"microphone\\\". You inherit it via manifest-merger —\\n     no <service> entry needed in your AndroidManifest.xml. Start the service\\n     from an Activity AFTER RECORD_AUDIO is granted at runtime:\\n        GlassesForegroundService.start(context)                       // defaults\\n        GlassesForegroundService.start(context, title = \\\"MyApp\\\",\\n                                       text = \\\"Listening for voice commands\\\")\\n        GlassesForegroundService.stop(context)                        // on teardown\\n     Foreground-only apps can skip starting it entirely. -->\",\n      \"devInstructions\": \"F-R4-11: glasses-core's AndroidManifest already declares `com.extentos.glasses.core.service.GlassesForegroundService` with `foregroundServiceType=\\\"microphone\\\"` — you inherit it via manifest-merger, so you do NOT need to add a <service> entry to your AndroidManifest.xml.\\n\\nStart the library service with one call:\\n\\n  GlassesForegroundService.start(context)                      // defaults\\n  GlassesForegroundService.start(context, title = \\\"MyApp\\\",\\n                                 text = \\\"Listening for voice commands\\\")\\n  GlassesForegroundService.stop(context)                       // on teardown\\n\\n**Timing (Android 14 / targetSdk 34+) — F-R4-12.** DO NOT start the service from `Application.onCreate`. The OS requires `RECORD_AUDIO` to be **granted by the user** before `startForeground(..., FOREGROUND_SERVICE_TYPE_MICROPHONE)` runs; otherwise it throws `SecurityException` at service-create time and kills the app before the first Activity draws. Start the service from an Activity (or a ViewModel scoped to one) inside the permission-grant callback returned by `ActivityResultContracts.RequestMultiplePermissions`, OR check `ContextCompat.checkSelfPermission(this, Manifest.permission.RECORD_AUDIO) == PackageManager.PERMISSION_GRANTED` first.\\n\\nThis service is only needed for **background-surviving** capture (screen off / user pressed home). Foreground-only apps can skip starting it entirely; Android's foreground-while-visible exemption covers the mic / camera access. validateIntegration's `background_execution_declared` check signals which path you're on.\"\n    },\n    \"notificationListener\": {\n      \"required\": false,\n      \"declaration\": null,\n      \"devInstructions\": null\n    },\n    \"minimumSdk\": 31,\n    \"compileSdk\": 35,\n    \"targetSdk\": 34\n  },\n  \"ios\": {\n    \"plistKeys\": [\n      {\n        \"key\": \"NSMicrophoneUsageDescription\",\n        \"value\": \"Used to capture audio from your glasses for voice commands.\",\n        \"reason\": \"record_audio / capture_video_with_audio / voice_command / wake_word / push_to_talk / audio_chunks / transcription_incremental / outgoing_audio_stream.\"\n      },\n      {\n        \"key\": \"NSSpeechRecognitionUsageDescription\",\n        \"value\": \"Used to transcribe voice commands from your glasses.\",\n        \"reason\": \"voice_command / wake_word / push_to_talk / record_audio / transcription_incremental / audio_chunks.\"\n      }\n    ]\n  },\n  \"metaDat\": {\n    \"scopes\": [],\n    \"registrationRequired\": false,\n    \"registrationSteps\": [\n      \"Create an app in the Meta Wearables Developer Center (https://wearables.developer.meta.com/).\",\n      \"Enable the Meta Wearables Developer Access Toolkit (DAT) product.\",\n      \"Add your Android package / iOS bundle ID to the app settings.\",\n      \"Copy the Meta App ID and Client Token into the platform config that generateConnectionModule emits: on Android app/src/main/res/values/extentos_meta_credentials.xml plus the two AndroidManifest.xml <meta-data> entries; on iOS the MWDAT dict in Info.plist. NOT extentos.manifest.json — that file has no field for them and never has (the schema carries none), which this step used to claim as an MVP shortcut long after the shortcut was gone. They are per-developer secrets: never commit them.\"\n    ]\n  },\n  \"runtimeGrants\": {\n    \"grants\": [\n      {\n        \"permission\": \"android.permission.RECORD_AUDIO\",\n        \"requestedBy\": \"app\",\n        \"call\": \"ActivityResultContracts.RequestMultiplePermissions() from an Activity\",\n        \"ifMissing\": \"Capture yields nothing, and on targetSdk 34+ starting the microphone foreground service before the grant throws SecurityException at service-create time.\"\n      },\n      {\n        \"permission\": \"android.permission.BLUETOOTH_CONNECT (declared by the SDK)\",\n        \"requestedBy\": \"sdk\",\n        \"ifMissing\": \"Nothing for you to do — com.extentos:glasses declares it and requests it at runtime when it first needs the device. Listed because it lands in YOUR merged manifest and is a dangerous permission, so it must appear in your Play data-safety answers even though you never wrote it.\"\n      },\n      {\n        \"permission\": \"android.permission.BLUETOOTH_SCAN (declared by the SDK)\",\n        \"requestedBy\": \"sdk\",\n        \"ifMissing\": \"Same as BLUETOOTH_CONNECT — SDK-declared, SDK-requested, dangerous, and yours to disclose. Add android:usesPermissionFlags=\\\"neverForLocation\\\" in your manifest if you want to avoid the location-inference disclosure.\"\n      },\n      {\n        \"permission\": \"android.permission.MODIFY_AUDIO_SETTINGS (declared by the SDK)\",\n        \"requestedBy\": \"sdk\",\n        \"ifMissing\": \"Nothing to do — normal-protection, so it is granted at install with no prompt. It is what lets the SDK route the glasses mic and speaker over Bluetooth SCO/HFP; without it Android denies setMode/startBluetoothSco and an awake assistant hears silence.\"\n      }\n    ],\n    \"note\": \"Manifest entries alone are not enough: the OS grants nothing until the app asks at runtime. Entries marked requestedBy:\\\"app\\\" are YOUR call to make, before starting the assistant or any capture.\"\n  },\n  \"integrationConfig\": [\n    {\n      \"key\": \"EXTENTOS_PROJECT_KEY\",\n      \"where\": \"app/build.gradle.kts — buildConfigField(\\\"String\\\", \\\"EXTENTOS_PROJECT_KEY\\\", …) inside defaultConfig\",\n      \"source\": \"generateConnectionModule mints it, bound to your Extentos account, and writes it into the build. It is the ONLY source — there is no dashboard field to copy it from and no format you can construct by hand. It mints one even for a voice-only app that emits no connection page.\",\n      \"ifMissing\": \"No build error, on either platform. A BROWSER-SIMULATOR session keeps working, because it authenticates with its own backend-minted token — note this is about the transport, not about where the app runs: an app pinned to a non-sim transport uses the baked key even when running in the platform simulator, so it fails there too. Real hardware and every shipped build fail at runtime with AssistantError.NoApiKey, and the usage never appears in your dashboard, so billing and analytics read as silently empty.\"\n    }\n  ],\n  \"summary\": \"Android: 4 permissions (min SDK 31, target 34). Foreground service needed IF capture must survive backgrounding (types: microphone); a foreground-only app can skip it. Meta DAT registration not required (0 scopes). 1 runtime grant the APP must request: android.permission.RECORD_AUDIO. 1 Extentos config value the build must ALSO carry: EXTENTOS_PROJECT_KEY — minted by generateConnectionModule, which is ",
              "tool": "getPermissions"
            },
            {
              "arguments": {
                "appPackage": "com.example.voicenotes",
                "capabilities": [
                  "transcription_incremental",
                  "speak"
                ],
                "glasses": "meta",
                "platform": "android",
                "responseFormat": "concise"
              },
              "reply": "{\n  \"files\": [\n    {\n      \"path\": \"app/src/main/java/com/example/voicenotes/extentos/ExtentosBootstrap.kt\",\n      \"action\": \"create\",\n      \"content\": \"// EXTENTOS-GENERATED — do not edit manually. Regenerate via generateConnectionModule.\\npackage com.example.voicenotes.extentos\\n\\nimport android.app.Application\\nimport android.util.Log\\nimport com.example.voicenotes.BuildConfig\\nimport com.extentos.glasses.core.CapabilityKind\\nimport com.extentos.glasses.core.ExtentosConfig\\nimport com.extentos.glasses.core.ExtentosGlasses\\nimport com.extentos.glasses.core.ExtentosResult\\nimport kotlinx.coroutines.CoroutineScope\\nimport kotlinx.coroutines.Dispatchers\\nimport kotlinx.coroutines.SupervisorJob\\nimport kotlinx.coroutines.launch\\n\\n/**\\n * Application subclass that instantiates the Extentos SDK and opens the\\n * transport on app start. Reference `(application as ExtentosBootstrap).glasses`\\n * from your Activity / Composable / Handler classes to subscribe to SDK\\n * primitives.\\n *\\n * Declared `open` so customer code can subclass this when it needs to run\\n * additional init logic in Application.onCreate() — e.g. a connection-state\\n * observer or DI wiring. Pattern:\\n *\\n *     class MyApp : ExtentosBootstrap() {\\n *         override fun onCreate() {\\n *             super.onCreate()         // wires `glasses` first\\n *             // ⚠️ Do NOT start a mic/camera capture handler here. Subscribing to\\n *             // glasses.audio.transcriptions() / recordDiscrete() / audioChunks()\\n *             // (or starting the foreground service) needs the RECORD_AUDIO runtime\\n *             // permission — NOT granted at Application start, so it throws\\n *             // SecurityException and the app dies before the first Activity draws.\\n *             // Start capture handlers from an Activity AFTER the permission-grant\\n *             // callback (see getPermissions + getProductionChecklist).\\n *         }\\n *     }\\n *\\n * If you subclass, set `android:name` in AndroidManifest.xml to your\\n * subclass (e.g. `.MyApp`) instead of `.extentos.ExtentosBootstrap`.\\n * If you don't need extra init, leave the manifest pointing at this class.\\n *\\n * ── ⚠️ Field-init constraint ──────────────────────────────────────────\\n * Top-level property initializers on Application subclasses run BEFORE\\n * `attachBaseContext` wires the Context, so any field-init that touches\\n * Context methods (`getFilesDir`, `getCacheDir`, `getSharedPreferences`,\\n * etc., directly or via classes that take `this` in their constructor)\\n * crashes the app at start with NullPointerException.\\n *\\n *     // ❌ DOES NOT WORK — NPE at app launch:\\n *     class MyApp : ExtentosBootstrap() {\\n *         val library = LibraryStore(this)         // LibraryStore.<init> → getFilesDir() → NPE\\n *         val prefs = getSharedPreferences(\\\"…\\\", 0) // same\\n *     }\\n *\\n *     // ✓ Use `by lazy` (first read happens after super.onCreate()):\\n *     class MyApp : ExtentosBootstrap() {\\n *         val library: LibraryStore by lazy { LibraryStore(this) }\\n *         override fun onCreate() {\\n *             super.onCreate()\\n *             library.someMethod() // ← first read; lazy initializer fires here, Context is live\\n *         }\\n *     }\\n *\\n *     // ✓ Or initialize inside onCreate(), after super.onCreate():\\n *     class MyApp : ExtentosBootstrap() {\\n *         lateinit var library: LibraryStore; private set\\n *         override fun onCreate() {\\n *             super.onCreate()\\n *             library = LibraryStore(this)\\n *         }\\n *     }\\n *\\n * The `appScope` field below works because `CoroutineScope(...)` doesn't\\n * touch `Context` at construction — keep that pattern (init objects that\\n * don't reference `this` Context) for any peer field you add.\\n */\\nopen class ExtentosBootstrap : Application() {\\n    lateinit var glasses: ExtentosGlasses\\n        private set\\n\\n    private val appScope = CoroutineScope(SupervisorJob() + Dispatchers.Main)\\n\\n    override fun onCreate() {\\n        super.onCreate()\\n        glasses = ExtentosGlasses.create(\\n            ExtentosConfig(\\n                applicationContext = this,\\n                // The Extentos project identity, decoupled from the store\\n                // applicationId. Set the SAME appId on your iOS app to share\\n                // one Extentos project even when the store bundle ids differ\\n                // (they're often locked to different values on shipped apps).\\n                appId = \\\"com.example.voicenotes\\\",\\n                debug = BuildConfig.DEBUG,\\n                usedCapabilities = setOf(\\n                    CapabilityKind.Microphone,\\n                    CapabilityKind.Speaker,\\n                ),\\n            )\\n        )\\n\\n        appScope.launch {\\n            // connect() returns an ExtentosResult — pattern-match it. Do NOT wrap\\n            // in runCatching: lifecycle ops report failure via the Err variant\\n            // (not a thrown exception), and runCatching would also swallow the\\n            // CancellationException that cancels appScope (RDQ #29).\\n            when (val result = glasses.connection.connect()) {\\n                is ExtentosResult.Ok -> Unit\\n                is ExtentosResult.Err ->\\n                    Log.e(EXTENTOS_TAG, \\\"glasses.connection.connect() failed: \\\" + result.error)\\n            }\\n        }\\n    }\\n\\n    private companion object {\\n        const val EXTENTOS_TAG = \\\"Extentos\\\"\\n    }\\n}\\n\"\n    },\n    {\n      \"path\": \"extentos.manifest.json\",\n      \"action\": \"create\",\n      \"content\": \"{\\n  \\\"manifestVersion\\\": 2,\\n  \\\"platform\\\": \\\"android\\\",\\n  \\\"glasses\\\": \\\"meta\\\",\\n  \\\"appPackage\\\": \\\"com.example.voicenotes\\\",\\n  \\\"extentos\\\": {\\n    \\\"libraryVersion\\\": \\\"2.8.0\\\",\\n    \\\"installedAt\\\": \\\"2026-11-23T04:43:05.774Z\\\",\\n    \\\"lastUpdatedAt\\\": \\\"2026-11-23T04:43:05.774Z\\\"\\n  },\\n  \\\"generatedFiles\\\": [\\n    {\\n      \\\"path\\\": \\\"app/src/main/java/com/example/voicenotes/extentos/ExtentosBootstrap.kt\\\",\\n      \\\"template\\\": \\\"connection_module\\\",\\n      \\\"hash\\\": \\\"sha256:352722c48adfb39eb4f39a8cc495061e4f48522ba520e04a807b7a803f7b6ebe\\\",\\n      \\\"generatedAt\\\": \\\"2026-11-23T04:43:05.774Z\\\",\\n      \\\"generatedByTool\\\": \\\"generateConnectionModule\\\"\\n    }\\n  ],\\n  \\\"permissions\\\": [\\n    \\\"android.permission.FOREGROUND_SERVICE\\\",\\n    \\\"android.permission.FOREGROUND_SERVICE_MICROPHONE\\\",\\n    \\\"android.permission.INTERNET\\\",\\n    \\\"android.permission.RECORD_AUDIO\\\"\\n  ],\\n  \\\"capabilities\\\": [\\n    \\\"transcription_incremental\\\",\\n    \\\"speak\\\"\\n  ],\\n  \\\"handlerNames\\\": [],\\n  \\\"gradle\\\": {\\n    \\\"coordinate\\\": \\\"com.extentos:glasses:2.8.0\\\",\\n    \\\"buildFile\\\": \\\"app/build.gradle.kts\\\",\\n    \\\"additionalArtifacts\\\": [\\n      {\\n        \\\"coordinate\\\": \\\"com.extentos:glasses-ui:2.8.0\\\",\\n        \\\"configuration\\\": \\\"implementation\\\"\\n      }\\n    ],\\n    \\\"minimumAgpVersion\\\": \\\"8.6.0\\\",\\n    \\\"minimumGradleVersion\\\": \\\"8.7\\\"\\n  }\\n}\"\n    }\n  ],\n  \"manifest\": {\n    \"path\": \"extentos.manifest.json\",\n    \"content\": {\n      \"manifestVersion\": 2,\n      \"platform\": \"android\",\n      \"glasses\": \"meta\",\n      \"appPackage\": \"com.example.voicenotes\",\n      \"extentos\": {\n        \"libraryVersion\": \"2.8.0\",\n        \"installedAt\": \"2026-11-23T04:43:05.774Z\",\n        \"lastUpdatedAt\": \"2026-11-23T04:43:05.774Z\"\n      },\n      \"generatedFiles\": [\n        {\n          \"path\": \"app/src/main/java/com/example/voicenotes/extentos/ExtentosBootstrap.kt\",\n          \"template\": \"connection_module\",\n          \"hash\": \"sha256:352722c48adfb39eb4f39a8cc495061e4f48522ba520e04a807b7a803f7b6ebe\",\n          \"generatedAt\": \"2026-11-23T04:43:05.774Z\",\n          \"generatedByTool\": \"generateConnectionModule\"\n        }\n      ],\n      \"permissions\": [\n        \"android.permission.FOREGROUND_SERVICE\",\n        \"android.permission.FOREGROUND_SERVICE_MICROPHONE\",\n        \"android.permission.INTERNET\",\n        \"android.permission.RECORD_AUDIO\"\n      ],\n      \"capabilities\": [\n        \"transcription_incremental\",\n      ",
              "tool": "generateConnectionModule"
            }
          ],
          "task": "Generate a detailed Android bootstrap scaffold for a new Meta glasses voice-only app with package com.example.voicenotes, using transcription_incremental and speak. Show the generated configuration and permissions."
        },
        "type": "noul"
      },
      "w01": {
        "criteria": {
          "false": "The tool replies show an error, a missing or different result, or nothing about the task; or only the agent's final answer claims the task was done.",
          "true": "The tool replies in `steps` show the result that `done_when` describes. The result came from the server's tools, not only from the agent's own words."
        },
        "instructions": {
          "agent_final_answer": "## Android voice-only bootstrap\n\nI called the scaffold generator for `com.example.voicenotes` with `transcription_incremental` and `speak`, and checked the resulting Android permissions. The tool returned file contents; **it did not write them to a project**. The response was truncated after part of the integration manifest, so the build changes below include only values visible in the returned output.\n\nThis is the **voice-only path**: glasses audio uses the phone’s Bluetooth audio routing. No Meta DAT registration, vendor credentials, connection page, or pairing flow is required for these capabilities.\n\n### 1. Bootstrap\n\nThe generator returned this bootstrap at:\n\n`app/src/main/java/com/example/voicenotes/extentos/ExtentosBootstrap.kt`\n\nThe following is its executable code, with the generated explanatory comments shortened:\n\n```kotlin\n// EXTENTOS-GENERATED — do not edit manually. Regenerate via generateConnectionModule.\npackage com.example.voicenotes.extentos\n\nimport android.app.Application\nimport android.util.Log\nimport com.example.voicenotes.BuildConfig\nimport com.extentos.glasses.core.CapabilityKind\nimport com.extentos.glasses.core.ExtentosConfig\nimport com.extentos.glasses.core.ExtentosGlasses\nimport com.extentos.glasses.core.ExtentosResult\nimport kotlinx.coroutines.CoroutineScope\nimport kotlinx.coroutines.Dispatchers\nimport kotlinx.coroutines.SupervisorJob\nimport kotlinx.coroutines.launch\n\nopen class ExtentosBootstrap : Application() {\n    lateinit var glasses: ExtentosGlasses\n        private set\n\n    private val appScope = CoroutineScope(SupervisorJob() + Dispatchers.Main)\n\n    override fun onCreate() {\n        super.onCreate()\n        glasses = ExtentosGlasses.create(\n            ExtentosConfig(\n                applicationContext = this,\n                appId = \"com.example.voicenotes\",\n                debug = BuildConfig.DEBUG,\n                usedCapabilities = setOf(\n                    CapabilityKind.Microphone,\n                    CapabilityKind.Speaker,",
          "done_when": "The tool reply shows the Android voice-only scaffold for the specified package and capabilities, including its generated configuration and permissions.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {
                "appPackage": "com.example.voicenotes",
                "capabilities": [
                  "transcription_incremental",
                  "speak"
                ],
                "glasses": "meta",
                "platform": "android",
                "responseFormat": "detailed"
              },
              "reply": "{\n  \"files\": [\n    {\n      \"path\": \"app/src/main/java/com/example/voicenotes/extentos/ExtentosBootstrap.kt\",\n      \"action\": \"create\",\n      \"content\": \"// EXTENTOS-GENERATED — do not edit manually. Regenerate via generateConnectionModule.\\npackage com.example.voicenotes.extentos\\n\\nimport android.app.Application\\nimport android.util.Log\\nimport com.example.voicenotes.BuildConfig\\nimport com.extentos.glasses.core.CapabilityKind\\nimport com.extentos.glasses.core.ExtentosConfig\\nimport com.extentos.glasses.core.ExtentosGlasses\\nimport com.extentos.glasses.core.ExtentosResult\\nimport kotlinx.coroutines.CoroutineScope\\nimport kotlinx.coroutines.Dispatchers\\nimport kotlinx.coroutines.SupervisorJob\\nimport kotlinx.coroutines.launch\\n\\n/**\\n * Application subclass that instantiates the Extentos SDK and opens the\\n * transport on app start. Reference `(application as ExtentosBootstrap).glasses`\\n * from your Activity / Composable / Handler classes to subscribe to SDK\\n * primitives.\\n *\\n * Declared `open` so customer code can subclass this when it needs to run\\n * additional init logic in Application.onCreate() — e.g. a connection-state\\n * observer or DI wiring. Pattern:\\n *\\n *     class MyApp : ExtentosBootstrap() {\\n *         override fun onCreate() {\\n *             super.onCreate()         // wires `glasses` first\\n *             // ⚠️ Do NOT start a mic/camera capture handler here. Subscribing to\\n *             // glasses.audio.transcriptions() / recordDiscrete() / audioChunks()\\n *             // (or starting the foreground service) needs the RECORD_AUDIO runtime\\n *             // permission — NOT granted at Application start, so it throws\\n *             // SecurityException and the app dies before the first Activity draws.\\n *             // Start capture handlers from an Activity AFTER the permission-grant\\n *             // callback (see getPermissions + getProductionChecklist).\\n *         }\\n *     }\\n *\\n * If you subclass, set `android:name` in AndroidManifest.xml to your\\n * subclass (e.g. `.MyApp`) instead of `.extentos.ExtentosBootstrap`.\\n * If you don't need extra init, leave the manifest pointing at this class.\\n *\\n * ── ⚠️ Field-init constraint ──────────────────────────────────────────\\n * Top-level property initializers on Application subclasses run BEFORE\\n * `attachBaseContext` wires the Context, so any field-init that touches\\n * Context methods (`getFilesDir`, `getCacheDir`, `getSharedPreferences`,\\n * etc., directly or via classes that take `this` in their constructor)\\n * crashes the app at start with NullPointerException.\\n *\\n *     // ❌ DOES NOT WORK — NPE at app launch:\\n *     class MyApp : ExtentosBootstrap() {\\n *         val library = LibraryStore(this)         // LibraryStore.<init> → getFilesDir() → NPE\\n *         val prefs = getSharedPreferences(\\\"…\\\", 0) // same\\n *     }\\n *\\n *     // ✓ Use `by lazy` (first read happens after super.onCreate()):\\n *     class MyApp : ExtentosBootstrap() {\\n *         val library: LibraryStore by lazy { LibraryStore(this) }\\n *         override fun onCreate() {\\n *             super.onCreate()\\n *             library.someMethod() // ← first read; lazy initializer fires here, Context is live\\n *         }\\n *     }\\n *\\n *     // ✓ Or initialize inside onCreate(), after super.onCreate():\\n *     class MyApp : ExtentosBootstrap() {\\n *         lateinit var library: LibraryStore; private set\\n *         override fun onCreate() {\\n *             super.onCreate()\\n *             library = LibraryStore(this)\\n *         }\\n *     }\\n *\\n * The `appScope` field below works because `CoroutineScope(...)` doesn't\\n * touch `Context` at construction — keep that pattern (init objects that\\n * don't reference `this` Context) for any peer field you add.\\n */\\nopen class ExtentosBootstrap : Application() {\\n    lateinit var glasses: ExtentosGlasses\\n        private set\\n\\n    private val appScope = CoroutineScope(SupervisorJob() + Dispatchers.Main)\\n\\n    override fun onCreate() {\\n        super.onCreate()\\n        glasses = ExtentosGlasses.create(\\n            ExtentosConfig(\\n                applicationContext = this,\\n                // The Extentos project identity, decoupled from the store\\n                // applicationId. Set the SAME appId on your iOS app to share\\n                // one Extentos project even when the store bundle ids differ\\n                // (they're often locked to different values on shipped apps).\\n                appId = \\\"com.example.voicenotes\\\",\\n                debug = BuildConfig.DEBUG,\\n                usedCapabilities = setOf(\\n                    CapabilityKind.Microphone,\\n                    CapabilityKind.Speaker,\\n                ),\\n            )\\n        )\\n\\n        appScope.launch {\\n            // connect() returns an ExtentosResult — pattern-match it. Do NOT wrap\\n            // in runCatching: lifecycle ops report failure via the Err variant\\n            // (not a thrown exception), and runCatching would also swallow the\\n            // CancellationException that cancels appScope (RDQ #29).\\n            when (val result = glasses.connection.connect()) {\\n                is ExtentosResult.Ok -> Unit\\n                is ExtentosResult.Err ->\\n                    Log.e(EXTENTOS_TAG, \\\"glasses.connection.connect() failed: \\\" + result.error)\\n            }\\n        }\\n    }\\n\\n    private companion object {\\n        const val EXTENTOS_TAG = \\\"Extentos\\\"\\n    }\\n}\\n\"\n    },\n    {\n      \"path\": \"extentos.manifest.json\",\n      \"action\": \"create\",\n      \"content\": \"{\\n  \\\"manifestVersion\\\": 2,\\n  \\\"platform\\\": \\\"android\\\",\\n  \\\"glasses\\\": \\\"meta\\\",\\n  \\\"appPackage\\\": \\\"com.example.voicenotes\\\",\\n  \\\"extentos\\\": {\\n    \\\"libraryVersion\\\": \\\"2.8.0\\\",\\n    \\\"installedAt\\\": \\\"2026-11-23T04:43:33.382Z\\\",\\n    \\\"lastUpdatedAt\\\": \\\"2026-11-23T04:43:33.382Z\\\"\\n  },\\n  \\\"generatedFiles\\\": [\\n    {\\n      \\\"path\\\": \\\"app/src/main/java/com/example/voicenotes/extentos/ExtentosBootstrap.kt\\\",\\n      \\\"template\\\": \\\"connection_module\\\",\\n      \\\"hash\\\": \\\"sha256:352722c48adfb39eb4f39a8cc495061e4f48522ba520e04a807b7a803f7b6ebe\\\",\\n      \\\"generatedAt\\\": \\\"2026-11-23T04:43:33.382Z\\\",\\n      \\\"generatedByTool\\\": \\\"generateConnectionModule\\\"\\n    }\\n  ],\\n  \\\"permissions\\\": [\\n    \\\"android.permission.FOREGROUND_SERVICE\\\",\\n    \\\"android.permission.FOREGROUND_SERVICE_MICROPHONE\\\",\\n    \\\"android.permission.INTERNET\\\",\\n    \\\"android.permission.RECORD_AUDIO\\\"\\n  ],\\n  \\\"capabilities\\\": [\\n    \\\"transcription_incremental\\\",\\n    \\\"speak\\\"\\n  ],\\n  \\\"handlerNames\\\": [],\\n  \\\"gradle\\\": {\\n    \\\"coordinate\\\": \\\"com.extentos:glasses:2.8.0\\\",\\n    \\\"buildFile\\\": \\\"app/build.gradle.kts\\\",\\n    \\\"additionalArtifacts\\\": [\\n      {\\n        \\\"coordinate\\\": \\\"com.extentos:glasses-ui:2.8.0\\\",\\n        \\\"configuration\\\": \\\"implementation\\\"\\n      }\\n    ],\\n    \\\"minimumAgpVersion\\\": \\\"8.6.0\\\",\\n    \\\"minimumGradleVersion\\\": \\\"8.7\\\"\\n  }\\n}\"\n    }\n  ],\n  \"manifest\": {\n    \"path\": \"extentos.manifest.json\",\n    \"content\": {\n      \"manifestVersion\": 2,\n      \"platform\": \"android\",\n      \"glasses\": \"meta\",\n      \"appPackage\": \"com.example.voicenotes\",\n      \"extentos\": {\n        \"libraryVersion\": \"2.8.0\",\n        \"installedAt\": \"2026-11-23T04:43:33.382Z\",\n        \"lastUpdatedAt\": \"2026-11-23T04:43:33.382Z\"\n      },\n      \"generatedFiles\": [\n        {\n          \"path\": \"app/src/main/java/com/example/voicenotes/extentos/ExtentosBootstrap.kt\",\n          \"template\": \"connection_module\",\n          \"hash\": \"sha256:352722c48adfb39eb4f39a8cc495061e4f48522ba520e04a807b7a803f7b6ebe\",\n          \"generatedAt\": \"2026-11-23T04:43:33.382Z\",\n          \"generatedByTool\": \"generateConnectionModule\"\n        }\n      ],\n      \"permissions\": [\n        \"android.permission.FOREGROUND_SERVICE\",\n        \"android.permission.FOREGROUND_SERVICE_MICROPHONE\",\n        \"android.permission.INTERNET\",\n        \"android.permission.RECORD_AUDIO\"\n      ],\n      \"capabilities\": [\n        \"transcription_incremental\",\n      ",
              "tool": "generateConnectionModule"
            },
            {
              "arguments": {
                "capabilities": [
                  "transcription_incremental",
                  "speak"
                ],
                "platform": "android"
              },
              "reply": "{\n  \"android\": {\n    \"permissions\": [\n      \"android.permission.FOREGROUND_SERVICE\",\n      \"android.permission.FOREGROUND_SERVICE_MICROPHONE\",\n      \"android.permission.INTERNET\",\n      \"android.permission.RECORD_AUDIO\"\n    ],\n    \"manifestEntries\": [\n      \"<uses-permission android:name=\\\"android.permission.FOREGROUND_SERVICE\\\" />\",\n      \"<uses-permission android:name=\\\"android.permission.FOREGROUND_SERVICE_MICROPHONE\\\" />\",\n      \"<uses-permission android:name=\\\"android.permission.INTERNET\\\" />\",\n      \"<uses-permission android:name=\\\"android.permission.RECORD_AUDIO\\\" />\"\n    ],\n    \"foregroundService\": {\n      \"required\": true,\n      \"types\": [\n        \"microphone\"\n      ],\n      \"declaration\": \"<!-- F-R4-11: glasses-core's AndroidManifest declares\\n     com.extentos.glasses.core.service.GlassesForegroundService with\\n     foregroundServiceType=\\\"microphone\\\". You inherit it via manifest-merger —\\n     no <service> entry needed in your AndroidManifest.xml. Start the service\\n     from an Activity AFTER RECORD_AUDIO is granted at runtime:\\n        GlassesForegroundService.start(context)                       // defaults\\n        GlassesForegroundService.start(context, title = \\\"MyApp\\\",\\n                                       text = \\\"Listening for voice commands\\\")\\n        GlassesForegroundService.stop(context)                        // on teardown\\n     Foreground-only apps can skip starting it entirely. -->\",\n      \"devInstructions\": \"F-R4-11: glasses-core's AndroidManifest already declares `com.extentos.glasses.core.service.GlassesForegroundService` with `foregroundServiceType=\\\"microphone\\\"` — you inherit it via manifest-merger, so you do NOT need to add a <service> entry to your AndroidManifest.xml.\\n\\nStart the library service with one call:\\n\\n  GlassesForegroundService.start(context)                      // defaults\\n  GlassesForegroundService.start(context, title = \\\"MyApp\\\",\\n                                 text = \\\"Listening for voice commands\\\")\\n  GlassesForegroundService.stop(context)                       // on teardown\\n\\n**Timing (Android 14 / targetSdk 34+) — F-R4-12.** DO NOT start the service from `Application.onCreate`. The OS requires `RECORD_AUDIO` to be **granted by the user** before `startForeground(..., FOREGROUND_SERVICE_TYPE_MICROPHONE)` runs; otherwise it throws `SecurityException` at service-create time and kills the app before the first Activity draws. Start the service from an Activity (or a ViewModel scoped to one) inside the permission-grant callback returned by `ActivityResultContracts.RequestMultiplePermissions`, OR check `ContextCompat.checkSelfPermission(this, Manifest.permission.RECORD_AUDIO) == PackageManager.PERMISSION_GRANTED` first.\\n\\nThis service is only needed for **background-surviving** capture (screen off / user pressed home). Foreground-only apps can skip starting it entirely; Android's foreground-while-visible exemption covers the mic / camera access. validateIntegration's `background_execution_declared` check signals which path you're on.\"\n    },\n    \"notificationListener\": {\n      \"required\": false,\n      \"declaration\": null,\n      \"devInstructions\": null\n    },\n    \"minimumSdk\": 31,\n    \"compileSdk\": 35,\n    \"targetSdk\": 34\n  },\n  \"ios\": {\n    \"plistKeys\": [\n      {\n        \"key\": \"NSMicrophoneUsageDescription\",\n        \"value\": \"Used to capture audio from your glasses for voice commands.\",\n        \"reason\": \"record_audio / capture_video_with_audio / voice_command / wake_word / push_to_talk / audio_chunks / transcription_incremental / outgoing_audio_stream.\"\n      },\n      {\n        \"key\": \"NSSpeechRecognitionUsageDescription\",\n        \"value\": \"Used to transcribe voice commands from your glasses.\",\n        \"reason\": \"voice_command / wake_word / push_to_talk / record_audio / transcription_incremental / audio_chunks.\"\n      }\n    ]\n  },\n  \"metaDat\": {\n    \"scopes\": [],\n    \"registrationRequired\": false,\n    \"registrationSteps\": [\n      \"Create an app in the Meta Wearables Developer Center (https://wearables.developer.meta.com/).\",\n      \"Enable the Meta Wearables Developer Access Toolkit (DAT) product.\",\n      \"Add your Android package / iOS bundle ID to the app settings.\",\n      \"Copy the Meta App ID and Client Token into the platform config that generateConnectionModule emits: on Android app/src/main/res/values/extentos_meta_credentials.xml plus the two AndroidManifest.xml <meta-data> entries; on iOS the MWDAT dict in Info.plist. NOT extentos.manifest.json — that file has no field for them and never has (the schema carries none), which this step used to claim as an MVP shortcut long after the shortcut was gone. They are per-developer secrets: never commit them.\"\n    ]\n  },\n  \"runtimeGrants\": {\n    \"grants\": [\n      {\n        \"permission\": \"android.permission.RECORD_AUDIO\",\n        \"requestedBy\": \"app\",\n        \"call\": \"ActivityResultContracts.RequestMultiplePermissions() from an Activity\",\n        \"ifMissing\": \"Capture yields nothing, and on targetSdk 34+ starting the microphone foreground service before the grant throws SecurityException at service-create time.\"\n      },\n      {\n        \"permission\": \"android.permission.BLUETOOTH_CONNECT (declared by the SDK)\",\n        \"requestedBy\": \"sdk\",\n        \"ifMissing\": \"Nothing for you to do — com.extentos:glasses declares it and requests it at runtime when it first needs the device. Listed because it lands in YOUR merged manifest and is a dangerous permission, so it must appear in your Play data-safety answers even though you never wrote it.\"\n      },\n      {\n        \"permission\": \"android.permission.BLUETOOTH_SCAN (declared by the SDK)\",\n        \"requestedBy\": \"sdk\",\n        \"ifMissing\": \"Same as BLUETOOTH_CONNECT — SDK-declared, SDK-requested, dangerous, and yours to disclose. Add android:usesPermissionFlags=\\\"neverForLocation\\\" in your manifest if you want to avoid the location-inference disclosure.\"\n      },\n      {\n        \"permission\": \"android.permission.MODIFY_AUDIO_SETTINGS (declared by the SDK)\",\n        \"requestedBy\": \"sdk\",\n        \"ifMissing\": \"Nothing to do — normal-protection, so it is granted at install with no prompt. It is what lets the SDK route the glasses mic and speaker over Bluetooth SCO/HFP; without it Android denies setMode/startBluetoothSco and an awake assistant hears silence.\"\n      }\n    ],\n    \"note\": \"Manifest entries alone are not enough: the OS grants nothing until the app asks at runtime. Entries marked requestedBy:\\\"app\\\" are YOUR call to make, before starting the assistant or any capture.\"\n  },\n  \"integrationConfig\": [\n    {\n      \"key\": \"EXTENTOS_PROJECT_KEY\",\n      \"where\": \"app/build.gradle.kts — buildConfigField(\\\"String\\\", \\\"EXTENTOS_PROJECT_KEY\\\", …) inside defaultConfig\",\n      \"source\": \"generateConnectionModule mints it, bound to your Extentos account, and writes it into the build. It is the ONLY source — there is no dashboard field to copy it from and no format you can construct by hand. It mints one even for a voice-only app that emits no connection page.\",\n      \"ifMissing\": \"No build error, on either platform. A BROWSER-SIMULATOR session keeps working, because it authenticates with its own backend-minted token — note this is about the transport, not about where the app runs: an app pinned to a non-sim transport uses the baked key even when running in the platform simulator, so it fails there too. Real hardware and every shipped build fail at runtime with AssistantError.NoApiKey, and the usage never appears in your dashboard, so billing and analytics read as silently empty.\"\n    }\n  ],\n  \"summary\": \"Android: 4 permissions (min SDK 31, target 34). Foreground service needed IF capture must survive backgrounding (types: microphone); a foreground-only app can skip it. Meta DAT registration not required (0 scopes). 1 runtime grant the APP must request: android.permission.RECORD_AUDIO. 1 Extentos config value the build must ALSO carry: EXTENTOS_PROJECT_KEY — minted by generateConnectionModule, which is ",
              "tool": "getPermissions"
            },
            {
              "arguments": {
                "appPackage": "com.example.voicenotes",
                "capabilities": [
                  "transcription_incremental",
                  "speak"
                ],
                "glasses": "meta",
                "platform": "android",
                "responseFormat": "concise"
              },
              "reply": "{\n  \"files\": [\n    {\n      \"path\": \"app/src/main/java/com/example/voicenotes/extentos/ExtentosBootstrap.kt\",\n      \"action\": \"create\",\n      \"content\": \"// EXTENTOS-GENERATED — do not edit manually. Regenerate via generateConnectionModule.\\npackage com.example.voicenotes.extentos\\n\\nimport android.app.Application\\nimport android.util.Log\\nimport com.example.voicenotes.BuildConfig\\nimport com.extentos.glasses.core.CapabilityKind\\nimport com.extentos.glasses.core.ExtentosConfig\\nimport com.extentos.glasses.core.ExtentosGlasses\\nimport com.extentos.glasses.core.ExtentosResult\\nimport kotlinx.coroutines.CoroutineScope\\nimport kotlinx.coroutines.Dispatchers\\nimport kotlinx.coroutines.SupervisorJob\\nimport kotlinx.coroutines.launch\\n\\n/**\\n * Application subclass that instantiates the Extentos SDK and opens the\\n * transport on app start. Reference `(application as ExtentosBootstrap).glasses`\\n * from your Activity / Composable / Handler classes to subscribe to SDK\\n * primitives.\\n *\\n * Declared `open` so customer code can subclass this when it needs to run\\n * additional init logic in Application.onCreate() — e.g. a connection-state\\n * observer or DI wiring. Pattern:\\n *\\n *     class MyApp : ExtentosBootstrap() {\\n *         override fun onCreate() {\\n *             super.onCreate()         // wires `glasses` first\\n *             // ⚠️ Do NOT start a mic/camera capture handler here. Subscribing to\\n *             // glasses.audio.transcriptions() / recordDiscrete() / audioChunks()\\n *             // (or starting the foreground service) needs the RECORD_AUDIO runtime\\n *             // permission — NOT granted at Application start, so it throws\\n *             // SecurityException and the app dies before the first Activity draws.\\n *             // Start capture handlers from an Activity AFTER the permission-grant\\n *             // callback (see getPermissions + getProductionChecklist).\\n *         }\\n *     }\\n *\\n * If you subclass, set `android:name` in AndroidManifest.xml to your\\n * subclass (e.g. `.MyApp`) instead of `.extentos.ExtentosBootstrap`.\\n * If you don't need extra init, leave the manifest pointing at this class.\\n *\\n * ── ⚠️ Field-init constraint ──────────────────────────────────────────\\n * Top-level property initializers on Application subclasses run BEFORE\\n * `attachBaseContext` wires the Context, so any field-init that touches\\n * Context methods (`getFilesDir`, `getCacheDir`, `getSharedPreferences`,\\n * etc., directly or via classes that take `this` in their constructor)\\n * crashes the app at start with NullPointerException.\\n *\\n *     // ❌ DOES NOT WORK — NPE at app launch:\\n *     class MyApp : ExtentosBootstrap() {\\n *         val library = LibraryStore(this)         // LibraryStore.<init> → getFilesDir() → NPE\\n *         val prefs = getSharedPreferences(\\\"…\\\", 0) // same\\n *     }\\n *\\n *     // ✓ Use `by lazy` (first read happens after super.onCreate()):\\n *     class MyApp : ExtentosBootstrap() {\\n *         val library: LibraryStore by lazy { LibraryStore(this) }\\n *         override fun onCreate() {\\n *             super.onCreate()\\n *             library.someMethod() // ← first read; lazy initializer fires here, Context is live\\n *         }\\n *     }\\n *\\n *     // ✓ Or initialize inside onCreate(), after super.onCreate():\\n *     class MyApp : ExtentosBootstrap() {\\n *         lateinit var library: LibraryStore; private set\\n *         override fun onCreate() {\\n *             super.onCreate()\\n *             library = LibraryStore(this)\\n *         }\\n *     }\\n *\\n * The `appScope` field below works because `CoroutineScope(...)` doesn't\\n * touch `Context` at construction — keep that pattern (init objects that\\n * don't reference `this` Context) for any peer field you add.\\n */\\nopen class ExtentosBootstrap : Application() {\\n    lateinit var glasses: ExtentosGlasses\\n        private set\\n\\n    private val appScope = CoroutineScope(SupervisorJob() + Dispatchers.Main)\\n\\n    override fun onCreate() {\\n        super.onCreate()\\n        glasses = ExtentosGlasses.create(\\n            ExtentosConfig(\\n                applicationContext = this,\\n                // The Extentos project identity, decoupled from the store\\n                // applicationId. Set the SAME appId on your iOS app to share\\n                // one Extentos project even when the store bundle ids differ\\n                // (they're often locked to different values on shipped apps).\\n                appId = \\\"com.example.voicenotes\\\",\\n                debug = BuildConfig.DEBUG,\\n                usedCapabilities = setOf(\\n                    CapabilityKind.Microphone,\\n                    CapabilityKind.Speaker,\\n                ),\\n            )\\n        )\\n\\n        appScope.launch {\\n            // connect() returns an ExtentosResult — pattern-match it. Do NOT wrap\\n            // in runCatching: lifecycle ops report failure via the Err variant\\n            // (not a thrown exception), and runCatching would also swallow the\\n            // CancellationException that cancels appScope (RDQ #29).\\n            when (val result = glasses.connection.connect()) {\\n                is ExtentosResult.Ok -> Unit\\n                is ExtentosResult.Err ->\\n                    Log.e(EXTENTOS_TAG, \\\"glasses.connection.connect() failed: \\\" + result.error)\\n            }\\n        }\\n    }\\n\\n    private companion object {\\n        const val EXTENTOS_TAG = \\\"Extentos\\\"\\n    }\\n}\\n\"\n    },\n    {\n      \"path\": \"extentos.manifest.json\",\n      \"action\": \"create\",\n      \"content\": \"{\\n  \\\"manifestVersion\\\": 2,\\n  \\\"platform\\\": \\\"android\\\",\\n  \\\"glasses\\\": \\\"meta\\\",\\n  \\\"appPackage\\\": \\\"com.example.voicenotes\\\",\\n  \\\"extentos\\\": {\\n    \\\"libraryVersion\\\": \\\"2.8.0\\\",\\n    \\\"installedAt\\\": \\\"2026-11-23T04:43:36.128Z\\\",\\n    \\\"lastUpdatedAt\\\": \\\"2026-11-23T04:43:36.128Z\\\"\\n  },\\n  \\\"generatedFiles\\\": [\\n    {\\n      \\\"path\\\": \\\"app/src/main/java/com/example/voicenotes/extentos/ExtentosBootstrap.kt\\\",\\n      \\\"template\\\": \\\"connection_module\\\",\\n      \\\"hash\\\": \\\"sha256:352722c48adfb39eb4f39a8cc495061e4f48522ba520e04a807b7a803f7b6ebe\\\",\\n      \\\"generatedAt\\\": \\\"2026-11-23T04:43:36.128Z\\\",\\n      \\\"generatedByTool\\\": \\\"generateConnectionModule\\\"\\n    }\\n  ],\\n  \\\"permissions\\\": [\\n    \\\"android.permission.FOREGROUND_SERVICE\\\",\\n    \\\"android.permission.FOREGROUND_SERVICE_MICROPHONE\\\",\\n    \\\"android.permission.INTERNET\\\",\\n    \\\"android.permission.RECORD_AUDIO\\\"\\n  ],\\n  \\\"capabilities\\\": [\\n    \\\"transcription_incremental\\\",\\n    \\\"speak\\\"\\n  ],\\n  \\\"handlerNames\\\": [],\\n  \\\"gradle\\\": {\\n    \\\"coordinate\\\": \\\"com.extentos:glasses:2.8.0\\\",\\n    \\\"buildFile\\\": \\\"app/build.gradle.kts\\\",\\n    \\\"additionalArtifacts\\\": [\\n      {\\n        \\\"coordinate\\\": \\\"com.extentos:glasses-ui:2.8.0\\\",\\n        \\\"configuration\\\": \\\"implementation\\\"\\n      }\\n    ],\\n    \\\"minimumAgpVersion\\\": \\\"8.6.0\\\",\\n    \\\"minimumGradleVersion\\\": \\\"8.7\\\"\\n  }\\n}\"\n    }\n  ],\n  \"manifest\": {\n    \"path\": \"extentos.manifest.json\",\n    \"content\": {\n      \"manifestVersion\": 2,\n      \"platform\": \"android\",\n      \"glasses\": \"meta\",\n      \"appPackage\": \"com.example.voicenotes\",\n      \"extentos\": {\n        \"libraryVersion\": \"2.8.0\",\n        \"installedAt\": \"2026-11-23T04:43:36.128Z\",\n        \"lastUpdatedAt\": \"2026-11-23T04:43:36.128Z\"\n      },\n      \"generatedFiles\": [\n        {\n          \"path\": \"app/src/main/java/com/example/voicenotes/extentos/ExtentosBootstrap.kt\",\n          \"template\": \"connection_module\",\n          \"hash\": \"sha256:352722c48adfb39eb4f39a8cc495061e4f48522ba520e04a807b7a803f7b6ebe\",\n          \"generatedAt\": \"2026-11-23T04:43:36.128Z\",\n          \"generatedByTool\": \"generateConnectionModule\"\n        }\n      ],\n      \"permissions\": [\n        \"android.permission.FOREGROUND_SERVICE\",\n        \"android.permission.FOREGROUND_SERVICE_MICROPHONE\",\n        \"android.permission.INTERNET\",\n        \"android.permission.RECORD_AUDIO\"\n      ],\n      \"capabilities\": [\n        \"transcription_incremental\",\n      ",
              "tool": "generateConnectionModule"
            }
          ],
          "task": "Generate a detailed Android bootstrap scaffold for a new Meta glasses voice-only app with package com.example.voicenotes, using transcription_incremental and speak. Show the generated configuration and permissions."
        },
        "type": "noul"
      },
      "w02": {
        "criteria": {
          "false": "The tool replies show an error, a missing or different result, or nothing about the task; or only the agent's final answer claims the task was done.",
          "true": "The tool replies in `steps` show the result that `done_when` describes. The result came from the server's tools, not only from the agent's own words."
        },
        "instructions": {
          "agent_final_answer": "## Generated Android voice-only scaffold\n\nThe generator returned a scaffold for `com.example.voicenotes` using Extentos **2.8.0**, with `transcription_incremental` and `speak`. This is the **voice-only path**: audio is routed through the phone’s Bluetooth audio connection. No Meta DAT registration, Meta credentials, or connection page is required for these capabilities.\n\nThe tool returned file contents; it did **not** write them to a project. Its response was truncated, so the complete Gradle patch and any generated project-key configuration were not visible in the result I received.\n\n### Bootstrap configuration\n\nCreate `app/src/main/java/com/example/voicenotes/extentos/ExtentosBootstrap.kt` with the generated initialization pattern:\n\n```kotlin\npackage com.example.voicenotes.extentos\n\nimport android.app.Application\nimport android.util.Log\nimport com.example.voicenotes.BuildConfig\nimport com.extentos.glasses.core.CapabilityKind\nimport com.extentos.glasses.core.ExtentosConfig\nimport com.extentos.glasses.core.ExtentosGlasses\nimport com.extentos.glasses.core.ExtentosResult\nimport kotlinx.coroutines.CoroutineScope\nimport kotlinx.coroutines.Dispatchers\nimport kotlinx.coroutines.SupervisorJob\nimport kotlinx.coroutines.launch\n\nopen class ExtentosBootstrap : Application() {\n    lateinit var glasses: ExtentosGlasses\n        private set\n\n    private val appScope = CoroutineScope(SupervisorJob() + Dispatchers.Main)\n\n    override fun onCreate() {\n        super.onCreate()\n\n        glasses = ExtentosGlasses.create(\n            ExtentosConfig(\n                applicationContext = this,\n                appId = \"com.example.voicenotes\",\n                debug = BuildConfig.DEBUG,\n                usedCapabilities = setOf(\n                    CapabilityKind.Microphone,\n                    CapabilityKind.Speaker,\n                ),\n            )\n        )\n\n        appScope.launch {\n            when (val result = glasses.connection.connect()) {\n                is ExtentosResult.Ok -> Unit",
          "done_when": "The tool reply shows the Android voice-only scaffold for the specified package and capabilities, including its generated configuration and permissions.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {
                "appPackage": "com.example.voicenotes",
                "capabilities": [
                  "transcription_incremental",
                  "speak"
                ],
                "glasses": "meta",
                "platform": "android",
                "responseFormat": "detailed"
              },
              "reply": "{\n  \"files\": [\n    {\n      \"path\": \"app/src/main/java/com/example/voicenotes/extentos/ExtentosBootstrap.kt\",\n      \"action\": \"create\",\n      \"content\": \"// EXTENTOS-GENERATED — do not edit manually. Regenerate via generateConnectionModule.\\npackage com.example.voicenotes.extentos\\n\\nimport android.app.Application\\nimport android.util.Log\\nimport com.example.voicenotes.BuildConfig\\nimport com.extentos.glasses.core.CapabilityKind\\nimport com.extentos.glasses.core.ExtentosConfig\\nimport com.extentos.glasses.core.ExtentosGlasses\\nimport com.extentos.glasses.core.ExtentosResult\\nimport kotlinx.coroutines.CoroutineScope\\nimport kotlinx.coroutines.Dispatchers\\nimport kotlinx.coroutines.SupervisorJob\\nimport kotlinx.coroutines.launch\\n\\n/**\\n * Application subclass that instantiates the Extentos SDK and opens the\\n * transport on app start. Reference `(application as ExtentosBootstrap).glasses`\\n * from your Activity / Composable / Handler classes to subscribe to SDK\\n * primitives.\\n *\\n * Declared `open` so customer code can subclass this when it needs to run\\n * additional init logic in Application.onCreate() — e.g. a connection-state\\n * observer or DI wiring. Pattern:\\n *\\n *     class MyApp : ExtentosBootstrap() {\\n *         override fun onCreate() {\\n *             super.onCreate()         // wires `glasses` first\\n *             // ⚠️ Do NOT start a mic/camera capture handler here. Subscribing to\\n *             // glasses.audio.transcriptions() / recordDiscrete() / audioChunks()\\n *             // (or starting the foreground service) needs the RECORD_AUDIO runtime\\n *             // permission — NOT granted at Application start, so it throws\\n *             // SecurityException and the app dies before the first Activity draws.\\n *             // Start capture handlers from an Activity AFTER the permission-grant\\n *             // callback (see getPermissions + getProductionChecklist).\\n *         }\\n *     }\\n *\\n * If you subclass, set `android:name` in AndroidManifest.xml to your\\n * subclass (e.g. `.MyApp`) instead of `.extentos.ExtentosBootstrap`.\\n * If you don't need extra init, leave the manifest pointing at this class.\\n *\\n * ── ⚠️ Field-init constraint ──────────────────────────────────────────\\n * Top-level property initializers on Application subclasses run BEFORE\\n * `attachBaseContext` wires the Context, so any field-init that touches\\n * Context methods (`getFilesDir`, `getCacheDir`, `getSharedPreferences`,\\n * etc., directly or via classes that take `this` in their constructor)\\n * crashes the app at start with NullPointerException.\\n *\\n *     // ❌ DOES NOT WORK — NPE at app launch:\\n *     class MyApp : ExtentosBootstrap() {\\n *         val library = LibraryStore(this)         // LibraryStore.<init> → getFilesDir() → NPE\\n *         val prefs = getSharedPreferences(\\\"…\\\", 0) // same\\n *     }\\n *\\n *     // ✓ Use `by lazy` (first read happens after super.onCreate()):\\n *     class MyApp : ExtentosBootstrap() {\\n *         val library: LibraryStore by lazy { LibraryStore(this) }\\n *         override fun onCreate() {\\n *             super.onCreate()\\n *             library.someMethod() // ← first read; lazy initializer fires here, Context is live\\n *         }\\n *     }\\n *\\n *     // ✓ Or initialize inside onCreate(), after super.onCreate():\\n *     class MyApp : ExtentosBootstrap() {\\n *         lateinit var library: LibraryStore; private set\\n *         override fun onCreate() {\\n *             super.onCreate()\\n *             library = LibraryStore(this)\\n *         }\\n *     }\\n *\\n * The `appScope` field below works because `CoroutineScope(...)` doesn't\\n * touch `Context` at construction — keep that pattern (init objects that\\n * don't reference `this` Context) for any peer field you add.\\n */\\nopen class ExtentosBootstrap : Application() {\\n    lateinit var glasses: ExtentosGlasses\\n        private set\\n\\n    private val appScope = CoroutineScope(SupervisorJob() + Dispatchers.Main)\\n\\n    override fun onCreate() {\\n        super.onCreate()\\n        glasses = ExtentosGlasses.create(\\n            ExtentosConfig(\\n                applicationContext = this,\\n                // The Extentos project identity, decoupled from the store\\n                // applicationId. Set the SAME appId on your iOS app to share\\n                // one Extentos project even when the store bundle ids differ\\n                // (they're often locked to different values on shipped apps).\\n                appId = \\\"com.example.voicenotes\\\",\\n                debug = BuildConfig.DEBUG,\\n                usedCapabilities = setOf(\\n                    CapabilityKind.Microphone,\\n                    CapabilityKind.Speaker,\\n                ),\\n            )\\n        )\\n\\n        appScope.launch {\\n            // connect() returns an ExtentosResult — pattern-match it. Do NOT wrap\\n            // in runCatching: lifecycle ops report failure via the Err variant\\n            // (not a thrown exception), and runCatching would also swallow the\\n            // CancellationException that cancels appScope (RDQ #29).\\n            when (val result = glasses.connection.connect()) {\\n                is ExtentosResult.Ok -> Unit\\n                is ExtentosResult.Err ->\\n                    Log.e(EXTENTOS_TAG, \\\"glasses.connection.connect() failed: \\\" + result.error)\\n            }\\n        }\\n    }\\n\\n    private companion object {\\n        const val EXTENTOS_TAG = \\\"Extentos\\\"\\n    }\\n}\\n\"\n    },\n    {\n      \"path\": \"extentos.manifest.json\",\n      \"action\": \"create\",\n      \"content\": \"{\\n  \\\"manifestVersion\\\": 2,\\n  \\\"platform\\\": \\\"android\\\",\\n  \\\"glasses\\\": \\\"meta\\\",\\n  \\\"appPackage\\\": \\\"com.example.voicenotes\\\",\\n  \\\"extentos\\\": {\\n    \\\"libraryVersion\\\": \\\"2.8.0\\\",\\n    \\\"installedAt\\\": \\\"2026-11-23T04:44:07.621Z\\\",\\n    \\\"lastUpdatedAt\\\": \\\"2026-11-23T04:44:07.621Z\\\"\\n  },\\n  \\\"generatedFiles\\\": [\\n    {\\n      \\\"path\\\": \\\"app/src/main/java/com/example/voicenotes/extentos/ExtentosBootstrap.kt\\\",\\n      \\\"template\\\": \\\"connection_module\\\",\\n      \\\"hash\\\": \\\"sha256:352722c48adfb39eb4f39a8cc495061e4f48522ba520e04a807b7a803f7b6ebe\\\",\\n      \\\"generatedAt\\\": \\\"2026-11-23T04:44:07.621Z\\\",\\n      \\\"generatedByTool\\\": \\\"generateConnectionModule\\\"\\n    }\\n  ],\\n  \\\"permissions\\\": [\\n    \\\"android.permission.FOREGROUND_SERVICE\\\",\\n    \\\"android.permission.FOREGROUND_SERVICE_MICROPHONE\\\",\\n    \\\"android.permission.INTERNET\\\",\\n    \\\"android.permission.RECORD_AUDIO\\\"\\n  ],\\n  \\\"capabilities\\\": [\\n    \\\"transcription_incremental\\\",\\n    \\\"speak\\\"\\n  ],\\n  \\\"handlerNames\\\": [],\\n  \\\"gradle\\\": {\\n    \\\"coordinate\\\": \\\"com.extentos:glasses:2.8.0\\\",\\n    \\\"buildFile\\\": \\\"app/build.gradle.kts\\\",\\n    \\\"additionalArtifacts\\\": [\\n      {\\n        \\\"coordinate\\\": \\\"com.extentos:glasses-ui:2.8.0\\\",\\n        \\\"configuration\\\": \\\"implementation\\\"\\n      }\\n    ],\\n    \\\"minimumAgpVersion\\\": \\\"8.6.0\\\",\\n    \\\"minimumGradleVersion\\\": \\\"8.7\\\"\\n  }\\n}\"\n    }\n  ],\n  \"manifest\": {\n    \"path\": \"extentos.manifest.json\",\n    \"content\": {\n      \"manifestVersion\": 2,\n      \"platform\": \"android\",\n      \"glasses\": \"meta\",\n      \"appPackage\": \"com.example.voicenotes\",\n      \"extentos\": {\n        \"libraryVersion\": \"2.8.0\",\n        \"installedAt\": \"2026-11-23T04:44:07.621Z\",\n        \"lastUpdatedAt\": \"2026-11-23T04:44:07.621Z\"\n      },\n      \"generatedFiles\": [\n        {\n          \"path\": \"app/src/main/java/com/example/voicenotes/extentos/ExtentosBootstrap.kt\",\n          \"template\": \"connection_module\",\n          \"hash\": \"sha256:352722c48adfb39eb4f39a8cc495061e4f48522ba520e04a807b7a803f7b6ebe\",\n          \"generatedAt\": \"2026-11-23T04:44:07.621Z\",\n          \"generatedByTool\": \"generateConnectionModule\"\n        }\n      ],\n      \"permissions\": [\n        \"android.permission.FOREGROUND_SERVICE\",\n        \"android.permission.FOREGROUND_SERVICE_MICROPHONE\",\n        \"android.permission.INTERNET\",\n        \"android.permission.RECORD_AUDIO\"\n      ],\n      \"capabilities\": [\n        \"transcription_incremental\",\n      ",
              "tool": "generateConnectionModule"
            },
            {
              "arguments": {
                "capabilities": [
                  "transcription_incremental",
                  "speak"
                ],
                "platform": "android"
              },
              "reply": "{\n  \"android\": {\n    \"permissions\": [\n      \"android.permission.FOREGROUND_SERVICE\",\n      \"android.permission.FOREGROUND_SERVICE_MICROPHONE\",\n      \"android.permission.INTERNET\",\n      \"android.permission.RECORD_AUDIO\"\n    ],\n    \"manifestEntries\": [\n      \"<uses-permission android:name=\\\"android.permission.FOREGROUND_SERVICE\\\" />\",\n      \"<uses-permission android:name=\\\"android.permission.FOREGROUND_SERVICE_MICROPHONE\\\" />\",\n      \"<uses-permission android:name=\\\"android.permission.INTERNET\\\" />\",\n      \"<uses-permission android:name=\\\"android.permission.RECORD_AUDIO\\\" />\"\n    ],\n    \"foregroundService\": {\n      \"required\": true,\n      \"types\": [\n        \"microphone\"\n      ],\n      \"declaration\": \"<!-- F-R4-11: glasses-core's AndroidManifest declares\\n     com.extentos.glasses.core.service.GlassesForegroundService with\\n     foregroundServiceType=\\\"microphone\\\". You inherit it via manifest-merger —\\n     no <service> entry needed in your AndroidManifest.xml. Start the service\\n     from an Activity AFTER RECORD_AUDIO is granted at runtime:\\n        GlassesForegroundService.start(context)                       // defaults\\n        GlassesForegroundService.start(context, title = \\\"MyApp\\\",\\n                                       text = \\\"Listening for voice commands\\\")\\n        GlassesForegroundService.stop(context)                        // on teardown\\n     Foreground-only apps can skip starting it entirely. -->\",\n      \"devInstructions\": \"F-R4-11: glasses-core's AndroidManifest already declares `com.extentos.glasses.core.service.GlassesForegroundService` with `foregroundServiceType=\\\"microphone\\\"` — you inherit it via manifest-merger, so you do NOT need to add a <service> entry to your AndroidManifest.xml.\\n\\nStart the library service with one call:\\n\\n  GlassesForegroundService.start(context)                      // defaults\\n  GlassesForegroundService.start(context, title = \\\"MyApp\\\",\\n                                 text = \\\"Listening for voice commands\\\")\\n  GlassesForegroundService.stop(context)                       // on teardown\\n\\n**Timing (Android 14 / targetSdk 34+) — F-R4-12.** DO NOT start the service from `Application.onCreate`. The OS requires `RECORD_AUDIO` to be **granted by the user** before `startForeground(..., FOREGROUND_SERVICE_TYPE_MICROPHONE)` runs; otherwise it throws `SecurityException` at service-create time and kills the app before the first Activity draws. Start the service from an Activity (or a ViewModel scoped to one) inside the permission-grant callback returned by `ActivityResultContracts.RequestMultiplePermissions`, OR check `ContextCompat.checkSelfPermission(this, Manifest.permission.RECORD_AUDIO) == PackageManager.PERMISSION_GRANTED` first.\\n\\nThis service is only needed for **background-surviving** capture (screen off / user pressed home). Foreground-only apps can skip starting it entirely; Android's foreground-while-visible exemption covers the mic / camera access. validateIntegration's `background_execution_declared` check signals which path you're on.\"\n    },\n    \"notificationListener\": {\n      \"required\": false,\n      \"declaration\": null,\n      \"devInstructions\": null\n    },\n    \"minimumSdk\": 31,\n    \"compileSdk\": 35,\n    \"targetSdk\": 34\n  },\n  \"ios\": {\n    \"plistKeys\": [\n      {\n        \"key\": \"NSMicrophoneUsageDescription\",\n        \"value\": \"Used to capture audio from your glasses for voice commands.\",\n        \"reason\": \"record_audio / capture_video_with_audio / voice_command / wake_word / push_to_talk / audio_chunks / transcription_incremental / outgoing_audio_stream.\"\n      },\n      {\n        \"key\": \"NSSpeechRecognitionUsageDescription\",\n        \"value\": \"Used to transcribe voice commands from your glasses.\",\n        \"reason\": \"voice_command / wake_word / push_to_talk / record_audio / transcription_incremental / audio_chunks.\"\n      }\n    ]\n  },\n  \"metaDat\": {\n    \"scopes\": [],\n    \"registrationRequired\": false,\n    \"registrationSteps\": [\n      \"Create an app in the Meta Wearables Developer Center (https://wearables.developer.meta.com/).\",\n      \"Enable the Meta Wearables Developer Access Toolkit (DAT) product.\",\n      \"Add your Android package / iOS bundle ID to the app settings.\",\n      \"Copy the Meta App ID and Client Token into the platform config that generateConnectionModule emits: on Android app/src/main/res/values/extentos_meta_credentials.xml plus the two AndroidManifest.xml <meta-data> entries; on iOS the MWDAT dict in Info.plist. NOT extentos.manifest.json — that file has no field for them and never has (the schema carries none), which this step used to claim as an MVP shortcut long after the shortcut was gone. They are per-developer secrets: never commit them.\"\n    ]\n  },\n  \"runtimeGrants\": {\n    \"grants\": [\n      {\n        \"permission\": \"android.permission.RECORD_AUDIO\",\n        \"requestedBy\": \"app\",\n        \"call\": \"ActivityResultContracts.RequestMultiplePermissions() from an Activity\",\n        \"ifMissing\": \"Capture yields nothing, and on targetSdk 34+ starting the microphone foreground service before the grant throws SecurityException at service-create time.\"\n      },\n      {\n        \"permission\": \"android.permission.BLUETOOTH_CONNECT (declared by the SDK)\",\n        \"requestedBy\": \"sdk\",\n        \"ifMissing\": \"Nothing for you to do — com.extentos:glasses declares it and requests it at runtime when it first needs the device. Listed because it lands in YOUR merged manifest and is a dangerous permission, so it must appear in your Play data-safety answers even though you never wrote it.\"\n      },\n      {\n        \"permission\": \"android.permission.BLUETOOTH_SCAN (declared by the SDK)\",\n        \"requestedBy\": \"sdk\",\n        \"ifMissing\": \"Same as BLUETOOTH_CONNECT — SDK-declared, SDK-requested, dangerous, and yours to disclose. Add android:usesPermissionFlags=\\\"neverForLocation\\\" in your manifest if you want to avoid the location-inference disclosure.\"\n      },\n      {\n        \"permission\": \"android.permission.MODIFY_AUDIO_SETTINGS (declared by the SDK)\",\n        \"requestedBy\": \"sdk\",\n        \"ifMissing\": \"Nothing to do — normal-protection, so it is granted at install with no prompt. It is what lets the SDK route the glasses mic and speaker over Bluetooth SCO/HFP; without it Android denies setMode/startBluetoothSco and an awake assistant hears silence.\"\n      }\n    ],\n    \"note\": \"Manifest entries alone are not enough: the OS grants nothing until the app asks at runtime. Entries marked requestedBy:\\\"app\\\" are YOUR call to make, before starting the assistant or any capture.\"\n  },\n  \"integrationConfig\": [\n    {\n      \"key\": \"EXTENTOS_PROJECT_KEY\",\n      \"where\": \"app/build.gradle.kts — buildConfigField(\\\"String\\\", \\\"EXTENTOS_PROJECT_KEY\\\", …) inside defaultConfig\",\n      \"source\": \"generateConnectionModule mints it, bound to your Extentos account, and writes it into the build. It is the ONLY source — there is no dashboard field to copy it from and no format you can construct by hand. It mints one even for a voice-only app that emits no connection page.\",\n      \"ifMissing\": \"No build error, on either platform. A BROWSER-SIMULATOR session keeps working, because it authenticates with its own backend-minted token — note this is about the transport, not about where the app runs: an app pinned to a non-sim transport uses the baked key even when running in the platform simulator, so it fails there too. Real hardware and every shipped build fail at runtime with AssistantError.NoApiKey, and the usage never appears in your dashboard, so billing and analytics read as silently empty.\"\n    }\n  ],\n  \"summary\": \"Android: 4 permissions (min SDK 31, target 34). Foreground service needed IF capture must survive backgrounding (types: microphone); a foreground-only app can skip it. Meta DAT registration not required (0 scopes). 1 runtime grant the APP must request: android.permission.RECORD_AUDIO. 1 Extentos config value the build must ALSO carry: EXTENTOS_PROJECT_KEY — minted by generateConnectionModule, which is ",
              "tool": "getPermissions"
            }
          ],
          "task": "Generate a detailed Android bootstrap scaffold for a new Meta glasses voice-only app with package com.example.voicenotes, using transcription_incremental and speak. Show the generated configuration and permissions."
        },
        "type": "noul"
      },
      "w03": {
        "criteria": {
          "false": "The tool replies show an error, a missing or different result, or nothing about the task; or only the agent's final answer claims the task was done.",
          "true": "The tool replies in `steps` show the result that `done_when` describes. The result came from the server's tools, not only from the agent's own words."
        },
        "instructions": {
          "agent_final_answer": "The check found issues with all three proposed triggers: **two errors and one ambiguity warning**.\n\n| Proposed trigger | Finding |\n|---|---|\n| **“hey meta”** | **Error:** Conflicts with Meta AI’s wake word. Drop the wake word; the tool suggests using an action phrase such as “describe.” |\n| **“take a photo”** | **Error — exact collision:** Duplicates the existing trigger “take a photo.” |\n| **“start recording”** | **Warning — prefix ambiguity:** Shares the two-word prefix “start recording” with the existing “start recording video,” so speech recognition may trigger the wrong command. This is not an exact collision. |\n\nFix the two errors before wiring the triggers, and make the recording phrases more distinct.\n\nThe tool also reported that anonymous usage telemetry is enabled by default. To opt out, set `EXTENTOS_TELEMETRY=0` or run `npx @extentos/mcp-server@latest decline-privacy`.",
          "done_when": "The tool reply analyzes all three proposed phrases against the supplied existing phrases and reports the resulting issues and collisions.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {
                "existingPhrases": [
                  "take a photo",
                  "start recording video"
                ],
                "phrases": [
                  "hey meta",
                  "take a photo",
                  "start recording"
                ]
              },
              "reply": "{\n  \"results\": [\n    {\n      \"phrase\": \"hey meta\",\n      \"issues\": [\n        {\n          \"severity\": \"error\",\n          \"rule\": \"meta_wake_word_overlap\",\n          \"message\": \"Phrase starts with Meta's wake word \\\"hey meta\\\" — will conflict with Meta AI. Drop the wake word.\"\n        }\n      ],\n      \"suggestions\": [\n        \"Use an action verb: \\\"describe\\\".\"\n      ],\n      \"collisions\": []\n    },\n    {\n      \"phrase\": \"take a photo\",\n      \"issues\": [\n        {\n          \"severity\": \"error\",\n          \"rule\": \"collision\",\n          \"message\": \"Exact duplicate of \\\"take a photo\\\".\"\n        }\n      ],\n      \"suggestions\": [],\n      \"collisions\": [\n        \"take a photo\"\n      ]\n    },\n    {\n      \"phrase\": \"start recording\",\n      \"issues\": [\n        {\n          \"severity\": \"warning\",\n          \"rule\": \"disambiguation\",\n          \"message\": \"Shares a 2-word prefix with \\\"start recording video\\\" — STT may trigger the wrong one.\"\n        }\n      ],\n      \"suggestions\": [],\n      \"collisions\": []\n    }\n  ],\n  \"generalGuidance\": \"Analyzed 3 phrases; 3 had issues. Errors present — fix the listed phrases before wiring them into your transcript consumer. On Meta Ray-Ban, custom phrases run through the phone STT (Android SpeechRecognizer / iOS SFSpeechRecognizer), not Meta's on-device model. Keep phrases short, distinctive, and free of homophones.\",\n  \"summary\": \"Analyzed 3 phrases: 3 issues (2 errors). Fix errors before wiring these phrases.\",\n  \"privacyPolicy\": {\n    \"url\": \"https://extentos.com/privacy\",\n    \"version\": \"2026-04\",\n    \"note\": \"First call on this install — Extentos collects anonymous usage telemetry by default to improve the tool. Your installId tags telemetry events; no source code or personal data is collected. Opt out: run `npx @extentos/mcp-server@latest decline-privacy`, or set EXTENTOS_TELEMETRY=0. This note is shown once per install.\"\n  }\n}",
              "tool": "getVoiceCommandGuidance"
            }
          ],
          "task": "Check these proposed voice triggers for problems: “hey meta”, “take a photo”, and “start recording”; the existing triggers are “take a photo” and “start recording video”. Report the findings and any collisions."
        },
        "type": "noul"
      },
      "w04": {
        "criteria": {
          "false": "The tool replies show an error, a missing or different result, or nothing about the task; or only the agent's final answer claims the task was done.",
          "true": "The tool replies in `steps` show the result that `done_when` describes. The result came from the server's tools, not only from the agent's own words."
        },
        "instructions": {
          "agent_final_answer": "The trigger checker found **three issues: two errors and one warning**.\n\n| Proposed trigger | Finding | Collision |\n|---|---|---|\n| **“hey meta”** | **Error:** Conflicts with Meta AI’s wake word. Drop the wake word; the tool suggests an action verb such as “describe.” | No exact duplicate reported. |\n| **“take a photo”** | **Error:** Exactly duplicates an existing trigger. | “take a photo” |\n| **“start recording”** | **Warning:** Shares a two-word prefix with an existing trigger, so speech recognition may trigger the wrong one. Choose more distinctive phrases. | No exact duplicate; ambiguous with “start recording video.” |\n\nFix the two errors before wiring the triggers. The tool also recommends keeping phrases short, distinctive, and free of homophones.\n\nThe tool reports that anonymous usage telemetry is enabled by default. You can opt out with `EXTENTOS_TELEMETRY=0` or by running `npx @extentos/mcp-server@latest decline-privacy`.",
          "done_when": "The tool reply analyzes all three proposed phrases against the supplied existing phrases and reports the resulting issues and collisions.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {
                "existingPhrases": [
                  "take a photo",
                  "start recording video"
                ],
                "phrases": [
                  "hey meta",
                  "take a photo",
                  "start recording"
                ]
              },
              "reply": "{\n  \"results\": [\n    {\n      \"phrase\": \"hey meta\",\n      \"issues\": [\n        {\n          \"severity\": \"error\",\n          \"rule\": \"meta_wake_word_overlap\",\n          \"message\": \"Phrase starts with Meta's wake word \\\"hey meta\\\" — will conflict with Meta AI. Drop the wake word.\"\n        }\n      ],\n      \"suggestions\": [\n        \"Use an action verb: \\\"describe\\\".\"\n      ],\n      \"collisions\": []\n    },\n    {\n      \"phrase\": \"take a photo\",\n      \"issues\": [\n        {\n          \"severity\": \"error\",\n          \"rule\": \"collision\",\n          \"message\": \"Exact duplicate of \\\"take a photo\\\".\"\n        }\n      ],\n      \"suggestions\": [],\n      \"collisions\": [\n        \"take a photo\"\n      ]\n    },\n    {\n      \"phrase\": \"start recording\",\n      \"issues\": [\n        {\n          \"severity\": \"warning\",\n          \"rule\": \"disambiguation\",\n          \"message\": \"Shares a 2-word prefix with \\\"start recording video\\\" — STT may trigger the wrong one.\"\n        }\n      ],\n      \"suggestions\": [],\n      \"collisions\": []\n    }\n  ],\n  \"generalGuidance\": \"Analyzed 3 phrases; 3 had issues. Errors present — fix the listed phrases before wiring them into your transcript consumer. On Meta Ray-Ban, custom phrases run through the phone STT (Android SpeechRecognizer / iOS SFSpeechRecognizer), not Meta's on-device model. Keep phrases short, distinctive, and free of homophones.\",\n  \"summary\": \"Analyzed 3 phrases: 3 issues (2 errors). Fix errors before wiring these phrases.\",\n  \"privacyPolicy\": {\n    \"url\": \"https://extentos.com/privacy\",\n    \"version\": \"2026-04\",\n    \"note\": \"First call on this install — Extentos collects anonymous usage telemetry by default to improve the tool. Your installId tags telemetry events; no source code or personal data is collected. Opt out: run `npx @extentos/mcp-server@latest decline-privacy`, or set EXTENTOS_TELEMETRY=0. This note is shown once per install.\"\n  }\n}",
              "tool": "getVoiceCommandGuidance"
            }
          ],
          "task": "Check these proposed voice triggers for problems: “hey meta”, “take a photo”, and “start recording”; the existing triggers are “take a photo” and “start recording video”. Report the findings and any collisions."
        },
        "type": "noul"
      },
      "w05": {
        "criteria": {
          "false": "The tool replies show an error, a missing or different result, or nothing about the task; or only the agent's final answer claims the task was done.",
          "true": "The tool replies in `steps` show the result that `done_when` describes. The result came from the server's tools, not only from the agent's own words."
        },
        "instructions": {
          "agent_final_answer": "The check found **three issues: two errors and one warning**.\n\n| Proposed trigger | Finding | Collision |\n|---|---|---|\n| **“hey meta”** | **Error:** Conflicts with Meta AI’s wake word. Drop the wake word and use a distinctive action phrase instead. | No exact duplicate reported. |\n| **“take a photo”** | **Error:** Already exists as a trigger. | Exact collision with **“take a photo.”** |\n| **“start recording”** | **Warning:** Shares a two-word prefix with an existing trigger, so speech recognition may trigger the wrong one. | Prefix ambiguity with **“start recording video,”** but not an exact duplicate. |\n\nFix the two errors before wiring the triggers, and choose more distinctive recording phrases to resolve the ambiguity.\n\nThe tool also reported that anonymous usage telemetry is enabled by default. To opt out, set `EXTENTOS_TELEMETRY=0` or run `npx @extentos/mcp-server@latest decline-privacy`.",
          "done_when": "The tool reply analyzes all three proposed phrases against the supplied existing phrases and reports the resulting issues and collisions.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {
                "existingPhrases": [
                  "take a photo",
                  "start recording video"
                ],
                "phrases": [
                  "hey meta",
                  "take a photo",
                  "start recording"
                ]
              },
              "reply": "{\n  \"results\": [\n    {\n      \"phrase\": \"hey meta\",\n      \"issues\": [\n        {\n          \"severity\": \"error\",\n          \"rule\": \"meta_wake_word_overlap\",\n          \"message\": \"Phrase starts with Meta's wake word \\\"hey meta\\\" — will conflict with Meta AI. Drop the wake word.\"\n        }\n      ],\n      \"suggestions\": [\n        \"Use an action verb: \\\"describe\\\".\"\n      ],\n      \"collisions\": []\n    },\n    {\n      \"phrase\": \"take a photo\",\n      \"issues\": [\n        {\n          \"severity\": \"error\",\n          \"rule\": \"collision\",\n          \"message\": \"Exact duplicate of \\\"take a photo\\\".\"\n        }\n      ],\n      \"suggestions\": [],\n      \"collisions\": [\n        \"take a photo\"\n      ]\n    },\n    {\n      \"phrase\": \"start recording\",\n      \"issues\": [\n        {\n          \"severity\": \"warning\",\n          \"rule\": \"disambiguation\",\n          \"message\": \"Shares a 2-word prefix with \\\"start recording video\\\" — STT may trigger the wrong one.\"\n        }\n      ],\n      \"suggestions\": [],\n      \"collisions\": []\n    }\n  ],\n  \"generalGuidance\": \"Analyzed 3 phrases; 3 had issues. Errors present — fix the listed phrases before wiring them into your transcript consumer. On Meta Ray-Ban, custom phrases run through the phone STT (Android SpeechRecognizer / iOS SFSpeechRecognizer), not Meta's on-device model. Keep phrases short, distinctive, and free of homophones.\",\n  \"summary\": \"Analyzed 3 phrases: 3 issues (2 errors). Fix errors before wiring these phrases.\",\n  \"privacyPolicy\": {\n    \"url\": \"https://extentos.com/privacy\",\n    \"version\": \"2026-04\",\n    \"note\": \"First call on this install — Extentos collects anonymous usage telemetry by default to improve the tool. Your installId tags telemetry events; no source code or personal data is collected. Opt out: run `npx @extentos/mcp-server@latest decline-privacy`, or set EXTENTOS_TELEMETRY=0. This note is shown once per install.\"\n  }\n}",
              "tool": "getVoiceCommandGuidance"
            }
          ],
          "task": "Check these proposed voice triggers for problems: “hey meta”, “take a photo”, and “start recording”; the existing triggers are “take a photo” and “start recording video”. Report the findings and any collisions."
        },
        "type": "noul"
      },
      "w06": {
        "criteria": {
          "false": "The tool replies show an error, a missing or different result, or nothing about the task; or only the agent's final answer claims the task was done.",
          "true": "The tool replies in `steps` show the result that `done_when` describes. The result came from the server's tools, not only from the agent's own words."
        },
        "instructions": {
          "agent_final_answer": "I checked the permissions for an iOS app using `capture_photo`, `transcription_incremental`, and `speak`.\n\n### iOS Info.plist keys\n\nAdd these to the app target, with descriptions appropriate to your app:\n\n| Key | Purpose |\n|---|---|\n| `NSBluetoothAlwaysUsageDescription` | Connect to the glasses over Bluetooth. |\n| `NSCameraUsageDescription` | Capture photos from the glasses. |\n| `NSMicrophoneUsageDescription` | Capture audio for transcription. |\n| `NSSpeechRecognitionUsageDescription` | Transcribe speech. |\n\n### Runtime grants\n\n- **Microphone — your app requests it** before starting transcription or capture. On iOS 17+:\n  ```swift\n  let granted = await AVAudioApplication.requestRecordPermission()\n  ```\n  Handle a denial before starting. Without this request, the tool warns that transcription can fail silently on hardware, even if it works in the simulator.\n- **Speech recognition — the SDK requests it** when its speech-to-text engine starts. You can call `Extentos.requestSpeechRecognitionAuthorization()` yourself if you want to control when the prompt appears.\n- **Camera — no phone-camera runtime grant for this flow.** The photo is captured by the glasses and delivered over the vendor transport; the tool says the phone camera is not opened. The plist key is still required.\n\n### Meta DAT\n\nBecause the app uses the glasses camera, the tool also returned Meta DAT scopes **`glasses.camera.photo`** and **`glasses.connection`**, with registration required. The returned setup calls for a Meta Wearables Developer Center app, the iOS bundle ID, and the Meta App ID and Client Token in the generated iOS `MWDAT` configuration.",
          "done_when": "The tool reply shows the derived permission information and runtime grants for the three specified capabilities with iOS framing.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {
                "capabilities": [
                  "capture_photo",
                  "transcription_incremental",
                  "speak"
                ],
                "platform": "ios"
              },
              "reply": "{\n  \"android\": {\n    \"permissions\": [\n      \"android.permission.BLUETOOTH_CONNECT\",\n      \"android.permission.BLUETOOTH_SCAN\",\n      \"android.permission.CAMERA\",\n      \"android.permission.FOREGROUND_SERVICE\",\n      \"android.permission.FOREGROUND_SERVICE_MICROPHONE\",\n      \"android.permission.INTERNET\",\n      \"android.permission.RECORD_AUDIO\"\n    ],\n    \"manifestEntries\": [\n      \"<uses-permission android:name=\\\"android.permission.BLUETOOTH_CONNECT\\\" />\",\n      \"<uses-permission android:name=\\\"android.permission.BLUETOOTH_SCAN\\\" />\",\n      \"<uses-permission android:name=\\\"android.permission.CAMERA\\\" />\",\n      \"<uses-permission android:name=\\\"android.permission.FOREGROUND_SERVICE\\\" />\",\n      \"<uses-permission android:name=\\\"android.permission.FOREGROUND_SERVICE_MICROPHONE\\\" />\",\n      \"<uses-permission android:name=\\\"android.permission.INTERNET\\\" />\",\n      \"<uses-permission android:name=\\\"android.permission.RECORD_AUDIO\\\" />\"\n    ],\n    \"foregroundService\": {\n      \"required\": true,\n      \"types\": [\n        \"microphone\"\n      ],\n      \"declaration\": \"<!-- F-R4-11: glasses-core's AndroidManifest declares\\n     com.extentos.glasses.core.service.GlassesForegroundService with\\n     foregroundServiceType=\\\"microphone\\\". You inherit it via manifest-merger —\\n     no <service> entry needed in your AndroidManifest.xml. Start the service\\n     from an Activity AFTER RECORD_AUDIO is granted at runtime:\\n        GlassesForegroundService.start(context)                       // defaults\\n        GlassesForegroundService.start(context, title = \\\"MyApp\\\",\\n                                       text = \\\"Listening for voice commands\\\")\\n        GlassesForegroundService.stop(context)                        // on teardown\\n     Foreground-only apps can skip starting it entirely. -->\",\n      \"devInstructions\": \"F-R4-11: glasses-core's AndroidManifest already declares `com.extentos.glasses.core.service.GlassesForegroundService` with `foregroundServiceType=\\\"microphone\\\"` — you inherit it via manifest-merger, so you do NOT need to add a <service> entry to your AndroidManifest.xml.\\n\\nStart the library service with one call:\\n\\n  GlassesForegroundService.start(context)                      // defaults\\n  GlassesForegroundService.start(context, title = \\\"MyApp\\\",\\n                                 text = \\\"Listening for voice commands\\\")\\n  GlassesForegroundService.stop(context)                       // on teardown\\n\\n**Timing (Android 14 / targetSdk 34+) — F-R4-12.** DO NOT start the service from `Application.onCreate`. The OS requires `RECORD_AUDIO` to be **granted by the user** before `startForeground(..., FOREGROUND_SERVICE_TYPE_MICROPHONE)` runs; otherwise it throws `SecurityException` at service-create time and kills the app before the first Activity draws. Start the service from an Activity (or a ViewModel scoped to one) inside the permission-grant callback returned by `ActivityResultContracts.RequestMultiplePermissions`, OR check `ContextCompat.checkSelfPermission(this, Manifest.permission.RECORD_AUDIO) == PackageManager.PERMISSION_GRANTED` first.\\n\\nThis service is only needed for **background-surviving** capture (screen off / user pressed home). Foreground-only apps can skip starting it entirely; Android's foreground-while-visible exemption covers the mic / camera access. validateIntegration's `background_execution_declared` check signals which path you're on.\"\n    },\n    \"notificationListener\": {\n      \"required\": false,\n      \"declaration\": null,\n      \"devInstructions\": null\n    },\n    \"minimumSdk\": 31,\n    \"compileSdk\": 35,\n    \"targetSdk\": 34\n  },\n  \"ios\": {\n    \"plistKeys\": [\n      {\n        \"key\": \"NSBluetoothAlwaysUsageDescription\",\n        \"value\": \"Required to connect to your glasses over Bluetooth.\",\n        \"reason\": \"Required by Meta DAT SDK for all glasses connections.\"\n      },\n      {\n        \"key\": \"NSCameraUsageDescription\",\n        \"value\": \"Used to capture photos and video from your glasses.\",\n        \"reason\": \"capture_photo / capture_video / video_frames / outgoing_video_stream.\"\n      },\n      {\n        \"key\": \"NSMicrophoneUsageDescription\",\n        \"value\": \"Used to capture audio from your glasses for voice commands.\",\n        \"reason\": \"record_audio / capture_video_with_audio / voice_command / wake_word / push_to_talk / audio_chunks / transcription_incremental / outgoing_audio_stream.\"\n      },\n      {\n        \"key\": \"NSSpeechRecognitionUsageDescription\",\n        \"value\": \"Used to transcribe voice commands from your glasses.\",\n        \"reason\": \"voice_command / wake_word / push_to_talk / record_audio / transcription_incremental / audio_chunks.\"\n      }\n    ]\n  },\n  \"metaDat\": {\n    \"scopes\": [\n      \"glasses.camera.photo\",\n      \"glasses.connection\"\n    ],\n    \"registrationRequired\": true,\n    \"registrationSteps\": [\n      \"Create an app in the Meta Wearables Developer Center (https://wearables.developer.meta.com/).\",\n      \"Enable the Meta Wearables Developer Access Toolkit (DAT) product.\",\n      \"Add your Android package / iOS bundle ID to the app settings.\",\n      \"Copy the Meta App ID and Client Token into the platform config that generateConnectionModule emits: on Android app/src/main/res/values/extentos_meta_credentials.xml plus the two AndroidManifest.xml <meta-data> entries; on iOS the MWDAT dict in Info.plist. NOT extentos.manifest.json — that file has no field for them and never has (the schema carries none), which this step used to claim as an MVP shortcut long after the shortcut was gone. They are per-developer secrets: never commit them.\"\n    ]\n  },\n  \"runtimeGrants\": {\n    \"grants\": [\n      {\n        \"permission\": \"Microphone (AVAudioSession record permission)\",\n        \"requestedBy\": \"app\",\n        \"call\": \"await AVAudioApplication.requestRecordPermission()  // iOS 17+\",\n        \"ifMissing\": \"Silent and total: no prompt, no error, no transcripts. Wake phrases and voice commands do nothing on hardware while working in the simulator. The SDK reads this grant (SystemAudioBridge.hasMicPermission) but never requests it and never reports it.\"\n      },\n      {\n        \"permission\": \"Speech recognition (SFSpeechRecognizer)\",\n        \"requestedBy\": \"sdk\",\n        \"ifMissing\": \"Handled for you — PlatformSttEngine requests authorization when the STT engine starts. Call Extentos.requestSpeechRecognitionAuthorization() yourself only if you want to control WHEN the prompt appears.\"\n      }\n    ],\n    \"note\": \"Manifest entries alone are not enough: the OS grants nothing until the app asks at runtime. Entries marked requestedBy:\\\"app\\\" are YOUR call to make, before starting the assistant or any capture. CAMERA is deliberately absent from this list even though it is a manifest entry above: the photo is taken by the GLASSES and arrives over the vendor transport, so the phone's camera is never opened and the SDK never requests the grant. The one case where it becomes a runtime grant is a foreground service declared with `camera` type — see getProductionChecklist for that path.\"\n  },\n  \"integrationConfig\": [\n    {\n      \"key\": \"EXTENTOS_APP_ID\",\n      \"where\": \"Info.plist (app target) — but read by YOUR BOOTSTRAP, not by the SDK. The generated ExtentosBootstrap does `ExtentosConfig(appId: Bundle.main.infoDictionary?[\\\"EXTENTOS_APP_ID\\\"] as? String)`. If you write your own bootstrap you must read it yourself or pass `appId:` directly; the SDK only ever sees `config.appId`.\",\n      \"source\": \"Your Extentos project identity, reverse-DNS. You choose it and pass it to generateConnectionModule as appPackage. Deliberately decoupled from your store bundle id, and the SAME value on both platforms so one project covers both.\",\n      \"ifMissing\": \"It does NOT fail loudly. `config.appId` falls back to Bundle.main.bundleIdentifier, so the app keeps running under whatever its store bundle id happens to be. That is fine when the two match and silently wrong when they do not: dashboard Agent settings, sounds and analytics are keyed to the id you minted again",
              "tool": "getPermissions"
            }
          ],
          "task": "For an iOS glasses app using capture_photo, transcription_incremental, and speak, derive the required permissions and runtime grants."
        },
        "type": "noul"
      },
      "w07": {
        "criteria": {
          "false": "The tool replies show an error, a missing or different result, or nothing about the task; or only the agent's final answer claims the task was done.",
          "true": "The tool replies in `steps` show the result that `done_when` describes. The result came from the server's tools, not only from the agent's own words."
        },
        "instructions": {
          "agent_final_answer": "For the iOS app using `capture_photo`, `transcription_incremental`, and `speak`, the permissions tool returned the following requirements.\n\n### Info.plist usage descriptions\n\nAdd these keys to the **app target’s** `Info.plist`, with descriptions appropriate to your app:\n\n| Key | Purpose |\n|---|---|\n| `NSBluetoothAlwaysUsageDescription` | Connect to the glasses over Bluetooth. |\n| `NSCameraUsageDescription` | Capture photos from the glasses. |\n| `NSMicrophoneUsageDescription` | Capture audio for transcription. |\n| `NSSpeechRecognitionUsageDescription` | Transcribe speech. |\n\n### Runtime grants\n\n- **Microphone — requested by your app.** Request it before starting audio capture or the assistant:\n  ```swift\n  let granted = await AVAudioApplication.requestRecordPermission() // iOS 17+\n  ```\n  The SDK does not request this grant. Without it, the tool warns that transcription can fail silently on hardware, even if it works in the simulator.\n\n- **Speech recognition — requested by the SDK** when its speech-to-text engine starts. You can call `Extentos.requestSpeechRecognitionAuthorization()` yourself if you want to control when the prompt appears.\n\n- **Phone camera — no runtime grant for glasses photo capture.** The photo is taken by the glasses and delivered over the vendor transport; the phone camera is not opened. The usage-description key is still required by the returned configuration.\n\n### Meta DAT\n\nBecause the app uses the glasses **camera**, the tool also returned Meta DAT scopes `glasses.camera.photo` and `glasses.connection`, with Meta developer registration required. The camera integration—not transcription or speech output alone—is what makes the vendor integration relevant.",
          "done_when": "The tool reply shows the derived permission information and runtime grants for the three specified capabilities with iOS framing.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {
                "capabilities": [
                  "capture_photo",
                  "transcription_incremental",
                  "speak"
                ],
                "platform": "ios"
              },
              "reply": "{\n  \"android\": {\n    \"permissions\": [\n      \"android.permission.BLUETOOTH_CONNECT\",\n      \"android.permission.BLUETOOTH_SCAN\",\n      \"android.permission.CAMERA\",\n      \"android.permission.FOREGROUND_SERVICE\",\n      \"android.permission.FOREGROUND_SERVICE_MICROPHONE\",\n      \"android.permission.INTERNET\",\n      \"android.permission.RECORD_AUDIO\"\n    ],\n    \"manifestEntries\": [\n      \"<uses-permission android:name=\\\"android.permission.BLUETOOTH_CONNECT\\\" />\",\n      \"<uses-permission android:name=\\\"android.permission.BLUETOOTH_SCAN\\\" />\",\n      \"<uses-permission android:name=\\\"android.permission.CAMERA\\\" />\",\n      \"<uses-permission android:name=\\\"android.permission.FOREGROUND_SERVICE\\\" />\",\n      \"<uses-permission android:name=\\\"android.permission.FOREGROUND_SERVICE_MICROPHONE\\\" />\",\n      \"<uses-permission android:name=\\\"android.permission.INTERNET\\\" />\",\n      \"<uses-permission android:name=\\\"android.permission.RECORD_AUDIO\\\" />\"\n    ],\n    \"foregroundService\": {\n      \"required\": true,\n      \"types\": [\n        \"microphone\"\n      ],\n      \"declaration\": \"<!-- F-R4-11: glasses-core's AndroidManifest declares\\n     com.extentos.glasses.core.service.GlassesForegroundService with\\n     foregroundServiceType=\\\"microphone\\\". You inherit it via manifest-merger —\\n     no <service> entry needed in your AndroidManifest.xml. Start the service\\n     from an Activity AFTER RECORD_AUDIO is granted at runtime:\\n        GlassesForegroundService.start(context)                       // defaults\\n        GlassesForegroundService.start(context, title = \\\"MyApp\\\",\\n                                       text = \\\"Listening for voice commands\\\")\\n        GlassesForegroundService.stop(context)                        // on teardown\\n     Foreground-only apps can skip starting it entirely. -->\",\n      \"devInstructions\": \"F-R4-11: glasses-core's AndroidManifest already declares `com.extentos.glasses.core.service.GlassesForegroundService` with `foregroundServiceType=\\\"microphone\\\"` — you inherit it via manifest-merger, so you do NOT need to add a <service> entry to your AndroidManifest.xml.\\n\\nStart the library service with one call:\\n\\n  GlassesForegroundService.start(context)                      // defaults\\n  GlassesForegroundService.start(context, title = \\\"MyApp\\\",\\n                                 text = \\\"Listening for voice commands\\\")\\n  GlassesForegroundService.stop(context)                       // on teardown\\n\\n**Timing (Android 14 / targetSdk 34+) — F-R4-12.** DO NOT start the service from `Application.onCreate`. The OS requires `RECORD_AUDIO` to be **granted by the user** before `startForeground(..., FOREGROUND_SERVICE_TYPE_MICROPHONE)` runs; otherwise it throws `SecurityException` at service-create time and kills the app before the first Activity draws. Start the service from an Activity (or a ViewModel scoped to one) inside the permission-grant callback returned by `ActivityResultContracts.RequestMultiplePermissions`, OR check `ContextCompat.checkSelfPermission(this, Manifest.permission.RECORD_AUDIO) == PackageManager.PERMISSION_GRANTED` first.\\n\\nThis service is only needed for **background-surviving** capture (screen off / user pressed home). Foreground-only apps can skip starting it entirely; Android's foreground-while-visible exemption covers the mic / camera access. validateIntegration's `background_execution_declared` check signals which path you're on.\"\n    },\n    \"notificationListener\": {\n      \"required\": false,\n      \"declaration\": null,\n      \"devInstructions\": null\n    },\n    \"minimumSdk\": 31,\n    \"compileSdk\": 35,\n    \"targetSdk\": 34\n  },\n  \"ios\": {\n    \"plistKeys\": [\n      {\n        \"key\": \"NSBluetoothAlwaysUsageDescription\",\n        \"value\": \"Required to connect to your glasses over Bluetooth.\",\n        \"reason\": \"Required by Meta DAT SDK for all glasses connections.\"\n      },\n      {\n        \"key\": \"NSCameraUsageDescription\",\n        \"value\": \"Used to capture photos and video from your glasses.\",\n        \"reason\": \"capture_photo / capture_video / video_frames / outgoing_video_stream.\"\n      },\n      {\n        \"key\": \"NSMicrophoneUsageDescription\",\n        \"value\": \"Used to capture audio from your glasses for voice commands.\",\n        \"reason\": \"record_audio / capture_video_with_audio / voice_command / wake_word / push_to_talk / audio_chunks / transcription_incremental / outgoing_audio_stream.\"\n      },\n      {\n        \"key\": \"NSSpeechRecognitionUsageDescription\",\n        \"value\": \"Used to transcribe voice commands from your glasses.\",\n        \"reason\": \"voice_command / wake_word / push_to_talk / record_audio / transcription_incremental / audio_chunks.\"\n      }\n    ]\n  },\n  \"metaDat\": {\n    \"scopes\": [\n      \"glasses.camera.photo\",\n      \"glasses.connection\"\n    ],\n    \"registrationRequired\": true,\n    \"registrationSteps\": [\n      \"Create an app in the Meta Wearables Developer Center (https://wearables.developer.meta.com/).\",\n      \"Enable the Meta Wearables Developer Access Toolkit (DAT) product.\",\n      \"Add your Android package / iOS bundle ID to the app settings.\",\n      \"Copy the Meta App ID and Client Token into the platform config that generateConnectionModule emits: on Android app/src/main/res/values/extentos_meta_credentials.xml plus the two AndroidManifest.xml <meta-data> entries; on iOS the MWDAT dict in Info.plist. NOT extentos.manifest.json — that file has no field for them and never has (the schema carries none), which this step used to claim as an MVP shortcut long after the shortcut was gone. They are per-developer secrets: never commit them.\"\n    ]\n  },\n  \"runtimeGrants\": {\n    \"grants\": [\n      {\n        \"permission\": \"Microphone (AVAudioSession record permission)\",\n        \"requestedBy\": \"app\",\n        \"call\": \"await AVAudioApplication.requestRecordPermission()  // iOS 17+\",\n        \"ifMissing\": \"Silent and total: no prompt, no error, no transcripts. Wake phrases and voice commands do nothing on hardware while working in the simulator. The SDK reads this grant (SystemAudioBridge.hasMicPermission) but never requests it and never reports it.\"\n      },\n      {\n        \"permission\": \"Speech recognition (SFSpeechRecognizer)\",\n        \"requestedBy\": \"sdk\",\n        \"ifMissing\": \"Handled for you — PlatformSttEngine requests authorization when the STT engine starts. Call Extentos.requestSpeechRecognitionAuthorization() yourself only if you want to control WHEN the prompt appears.\"\n      }\n    ],\n    \"note\": \"Manifest entries alone are not enough: the OS grants nothing until the app asks at runtime. Entries marked requestedBy:\\\"app\\\" are YOUR call to make, before starting the assistant or any capture. CAMERA is deliberately absent from this list even though it is a manifest entry above: the photo is taken by the GLASSES and arrives over the vendor transport, so the phone's camera is never opened and the SDK never requests the grant. The one case where it becomes a runtime grant is a foreground service declared with `camera` type — see getProductionChecklist for that path.\"\n  },\n  \"integrationConfig\": [\n    {\n      \"key\": \"EXTENTOS_APP_ID\",\n      \"where\": \"Info.plist (app target) — but read by YOUR BOOTSTRAP, not by the SDK. The generated ExtentosBootstrap does `ExtentosConfig(appId: Bundle.main.infoDictionary?[\\\"EXTENTOS_APP_ID\\\"] as? String)`. If you write your own bootstrap you must read it yourself or pass `appId:` directly; the SDK only ever sees `config.appId`.\",\n      \"source\": \"Your Extentos project identity, reverse-DNS. You choose it and pass it to generateConnectionModule as appPackage. Deliberately decoupled from your store bundle id, and the SAME value on both platforms so one project covers both.\",\n      \"ifMissing\": \"It does NOT fail loudly. `config.appId` falls back to Bundle.main.bundleIdentifier, so the app keeps running under whatever its store bundle id happens to be. That is fine when the two match and silently wrong when they do not: dashboard Agent settings, sounds and analytics are keyed to the id you minted again",
              "tool": "getPermissions"
            }
          ],
          "task": "For an iOS glasses app using capture_photo, transcription_incremental, and speak, derive the required permissions and runtime grants."
        },
        "type": "noul"
      },
      "w08": {
        "criteria": {
          "false": "The tool replies show an error, a missing or different result, or nothing about the task; or only the agent's final answer claims the task was done.",
          "true": "The tool replies in `steps` show the result that `done_when` describes. The result came from the server's tools, not only from the agent's own words."
        },
        "instructions": {
          "agent_final_answer": "For your iOS app, the permission tool returned four **Info.plist usage descriptions**:\n\n| Key | Purpose | Example description |\n|---|---|---|\n| `NSBluetoothAlwaysUsageDescription` | Connect to the glasses through Meta DAT | “Required to connect to your glasses over Bluetooth.” |\n| `NSCameraUsageDescription` | Declare photo capture | “Used to capture photos from your glasses.” |\n| `NSMicrophoneUsageDescription` | Capture audio for transcription | “Used to capture audio from your glasses for transcription.” |\n| `NSSpeechRecognitionUsageDescription` | Transcribe speech | “Used to transcribe speech from your glasses.” |\n\n### Runtime grants\n\n- **Microphone — your app must request it** before starting transcription or audio capture. On iOS 17+:\n  ```swift\n  let granted = await AVAudioApplication.requestRecordPermission()\n  ```\n  Handle denial before starting capture. The SDK does not request this grant; without it, the tool reports that hardware transcription can fail silently, even if it works in the simulator.\n\n- **Speech recognition — the SDK requests it** when its speech-to-text engine starts. You can call `Extentos.requestSpeechRecognitionAuthorization()` yourself if you want to control when the prompt appears.\n\n- **Phone camera — no runtime camera grant for glasses photo capture.** The photo is taken by the glasses and delivered over the vendor transport; the phone camera is not opened. Keep the camera usage description above.\n\n### Meta DAT\n\nBecause the app uses `capture_photo`, the tool also returned the Meta DAT scopes **`glasses.camera.photo`** and **`glasses.connection`**, with registration required. The tool’s setup guidance places Meta credentials at the real-hardware milestone; simulator development can proceed without them.",
          "done_when": "The tool reply shows the derived permission information and runtime grants for the three specified capabilities with iOS framing.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {
                "capabilities": [
                  "capture_photo",
                  "transcription_incremental",
                  "speak"
                ],
                "platform": "ios"
              },
              "reply": "{\n  \"android\": {\n    \"permissions\": [\n      \"android.permission.BLUETOOTH_CONNECT\",\n      \"android.permission.BLUETOOTH_SCAN\",\n      \"android.permission.CAMERA\",\n      \"android.permission.FOREGROUND_SERVICE\",\n      \"android.permission.FOREGROUND_SERVICE_MICROPHONE\",\n      \"android.permission.INTERNET\",\n      \"android.permission.RECORD_AUDIO\"\n    ],\n    \"manifestEntries\": [\n      \"<uses-permission android:name=\\\"android.permission.BLUETOOTH_CONNECT\\\" />\",\n      \"<uses-permission android:name=\\\"android.permission.BLUETOOTH_SCAN\\\" />\",\n      \"<uses-permission android:name=\\\"android.permission.CAMERA\\\" />\",\n      \"<uses-permission android:name=\\\"android.permission.FOREGROUND_SERVICE\\\" />\",\n      \"<uses-permission android:name=\\\"android.permission.FOREGROUND_SERVICE_MICROPHONE\\\" />\",\n      \"<uses-permission android:name=\\\"android.permission.INTERNET\\\" />\",\n      \"<uses-permission android:name=\\\"android.permission.RECORD_AUDIO\\\" />\"\n    ],\n    \"foregroundService\": {\n      \"required\": true,\n      \"types\": [\n        \"microphone\"\n      ],\n      \"declaration\": \"<!-- F-R4-11: glasses-core's AndroidManifest declares\\n     com.extentos.glasses.core.service.GlassesForegroundService with\\n     foregroundServiceType=\\\"microphone\\\". You inherit it via manifest-merger —\\n     no <service> entry needed in your AndroidManifest.xml. Start the service\\n     from an Activity AFTER RECORD_AUDIO is granted at runtime:\\n        GlassesForegroundService.start(context)                       // defaults\\n        GlassesForegroundService.start(context, title = \\\"MyApp\\\",\\n                                       text = \\\"Listening for voice commands\\\")\\n        GlassesForegroundService.stop(context)                        // on teardown\\n     Foreground-only apps can skip starting it entirely. -->\",\n      \"devInstructions\": \"F-R4-11: glasses-core's AndroidManifest already declares `com.extentos.glasses.core.service.GlassesForegroundService` with `foregroundServiceType=\\\"microphone\\\"` — you inherit it via manifest-merger, so you do NOT need to add a <service> entry to your AndroidManifest.xml.\\n\\nStart the library service with one call:\\n\\n  GlassesForegroundService.start(context)                      // defaults\\n  GlassesForegroundService.start(context, title = \\\"MyApp\\\",\\n                                 text = \\\"Listening for voice commands\\\")\\n  GlassesForegroundService.stop(context)                       // on teardown\\n\\n**Timing (Android 14 / targetSdk 34+) — F-R4-12.** DO NOT start the service from `Application.onCreate`. The OS requires `RECORD_AUDIO` to be **granted by the user** before `startForeground(..., FOREGROUND_SERVICE_TYPE_MICROPHONE)` runs; otherwise it throws `SecurityException` at service-create time and kills the app before the first Activity draws. Start the service from an Activity (or a ViewModel scoped to one) inside the permission-grant callback returned by `ActivityResultContracts.RequestMultiplePermissions`, OR check `ContextCompat.checkSelfPermission(this, Manifest.permission.RECORD_AUDIO) == PackageManager.PERMISSION_GRANTED` first.\\n\\nThis service is only needed for **background-surviving** capture (screen off / user pressed home). Foreground-only apps can skip starting it entirely; Android's foreground-while-visible exemption covers the mic / camera access. validateIntegration's `background_execution_declared` check signals which path you're on.\"\n    },\n    \"notificationListener\": {\n      \"required\": false,\n      \"declaration\": null,\n      \"devInstructions\": null\n    },\n    \"minimumSdk\": 31,\n    \"compileSdk\": 35,\n    \"targetSdk\": 34\n  },\n  \"ios\": {\n    \"plistKeys\": [\n      {\n        \"key\": \"NSBluetoothAlwaysUsageDescription\",\n        \"value\": \"Required to connect to your glasses over Bluetooth.\",\n        \"reason\": \"Required by Meta DAT SDK for all glasses connections.\"\n      },\n      {\n        \"key\": \"NSCameraUsageDescription\",\n        \"value\": \"Used to capture photos and video from your glasses.\",\n        \"reason\": \"capture_photo / capture_video / video_frames / outgoing_video_stream.\"\n      },\n      {\n        \"key\": \"NSMicrophoneUsageDescription\",\n        \"value\": \"Used to capture audio from your glasses for voice commands.\",\n        \"reason\": \"record_audio / capture_video_with_audio / voice_command / wake_word / push_to_talk / audio_chunks / transcription_incremental / outgoing_audio_stream.\"\n      },\n      {\n        \"key\": \"NSSpeechRecognitionUsageDescription\",\n        \"value\": \"Used to transcribe voice commands from your glasses.\",\n        \"reason\": \"voice_command / wake_word / push_to_talk / record_audio / transcription_incremental / audio_chunks.\"\n      }\n    ]\n  },\n  \"metaDat\": {\n    \"scopes\": [\n      \"glasses.camera.photo\",\n      \"glasses.connection\"\n    ],\n    \"registrationRequired\": true,\n    \"registrationSteps\": [\n      \"Create an app in the Meta Wearables Developer Center (https://wearables.developer.meta.com/).\",\n      \"Enable the Meta Wearables Developer Access Toolkit (DAT) product.\",\n      \"Add your Android package / iOS bundle ID to the app settings.\",\n      \"Copy the Meta App ID and Client Token into the platform config that generateConnectionModule emits: on Android app/src/main/res/values/extentos_meta_credentials.xml plus the two AndroidManifest.xml <meta-data> entries; on iOS the MWDAT dict in Info.plist. NOT extentos.manifest.json — that file has no field for them and never has (the schema carries none), which this step used to claim as an MVP shortcut long after the shortcut was gone. They are per-developer secrets: never commit them.\"\n    ]\n  },\n  \"runtimeGrants\": {\n    \"grants\": [\n      {\n        \"permission\": \"Microphone (AVAudioSession record permission)\",\n        \"requestedBy\": \"app\",\n        \"call\": \"await AVAudioApplication.requestRecordPermission()  // iOS 17+\",\n        \"ifMissing\": \"Silent and total: no prompt, no error, no transcripts. Wake phrases and voice commands do nothing on hardware while working in the simulator. The SDK reads this grant (SystemAudioBridge.hasMicPermission) but never requests it and never reports it.\"\n      },\n      {\n        \"permission\": \"Speech recognition (SFSpeechRecognizer)\",\n        \"requestedBy\": \"sdk\",\n        \"ifMissing\": \"Handled for you — PlatformSttEngine requests authorization when the STT engine starts. Call Extentos.requestSpeechRecognitionAuthorization() yourself only if you want to control WHEN the prompt appears.\"\n      }\n    ],\n    \"note\": \"Manifest entries alone are not enough: the OS grants nothing until the app asks at runtime. Entries marked requestedBy:\\\"app\\\" are YOUR call to make, before starting the assistant or any capture. CAMERA is deliberately absent from this list even though it is a manifest entry above: the photo is taken by the GLASSES and arrives over the vendor transport, so the phone's camera is never opened and the SDK never requests the grant. The one case where it becomes a runtime grant is a foreground service declared with `camera` type — see getProductionChecklist for that path.\"\n  },\n  \"integrationConfig\": [\n    {\n      \"key\": \"EXTENTOS_APP_ID\",\n      \"where\": \"Info.plist (app target) — but read by YOUR BOOTSTRAP, not by the SDK. The generated ExtentosBootstrap does `ExtentosConfig(appId: Bundle.main.infoDictionary?[\\\"EXTENTOS_APP_ID\\\"] as? String)`. If you write your own bootstrap you must read it yourself or pass `appId:` directly; the SDK only ever sees `config.appId`.\",\n      \"source\": \"Your Extentos project identity, reverse-DNS. You choose it and pass it to generateConnectionModule as appPackage. Deliberately decoupled from your store bundle id, and the SAME value on both platforms so one project covers both.\",\n      \"ifMissing\": \"It does NOT fail loudly. `config.appId` falls back to Bundle.main.bundleIdentifier, so the app keeps running under whatever its store bundle id happens to be. That is fine when the two match and silently wrong when they do not: dashboard Agent settings, sounds and analytics are keyed to the id you minted again",
              "tool": "getPermissions"
            }
          ],
          "task": "For an iOS glasses app using capture_photo, transcription_incremental, and speak, derive the required permissions and runtime grants."
        },
        "type": "noul"
      }
    },
    "state": {
      "about": "Replies of an MCP server to tool calls that were sent with bad input on purpose, to see whether its error messages help a caller fix the call."
    }
  },
  "run_id": "01M838ZMQQE0FYB4FN00X8HRBE",
  "works_done": [
    {
      "attempt": 0,
      "noul": 0.87,
      "question": "w00"
    },
    {
      "attempt": 1,
      "noul": 0.89,
      "question": "w01"
    },
    {
      "attempt": 2,
      "noul": 0.85,
      "question": "w02"
    },
    {
      "attempt": 3,
      "noul": 0.98,
      "question": "w03"
    },
    {
      "attempt": 4,
      "noul": 0.98,
      "question": "w04"
    },
    {
      "attempt": 5,
      "noul": 0.97,
      "question": "w05"
    },
    {
      "attempt": 6,
      "noul": 0.96,
      "question": "w06"
    },
    {
      "attempt": 7,
      "noul": 0.97,
      "question": "w07"
    },
    {
      "attempt": 8,
      "noul": 0.88,
      "question": "w08"
    }
  ]
}
