Azure: D4 and the wrong-deployment run

Framed boxes are the app's own views, rendered off-screen by AzureScenarioRenderTests (d4Label, wrongDeployment) with fake settings; only the words differ between today and proposed. Hatched boxes are commentary. Follows your light or dark setting. Nothing here is built; both are owner calls.

1. D4: the Azure status label

Proposal (docs/design-azure-connection.md §6, L1): on any Azure failure the label reads Not connected instead of Invalid key. It is chosen from the failure's sentence key, so ProviderStatus gains no case, the red dot stays, and other providers keep “Invalid key”. VoiceOver must speak the same label (ValidationAnnouncement builds it from the status alone today).

Cost: one new key in 21 locales (frames here patch the English value for the render only).

Deployment name wrong (404 DeploymentNotFound)

Settings ▸ LLM Provider (Mac)today
today-deploymentNotFound
Settings ▸ LLM Provider (Mac)proposed
d4-deploymentNotFound

The case that started D4: the label says the key is bad, the sentence under it says the key is fine.

Wrong URL pasted (generic 404)

Settings ▸ LLM Provider (Mac)today
today-wrongURLPasted
Settings ▸ LLM Provider (Mac)proposed
d4-wrongURLPasted

Same sentence, same contradiction. Azure answers a portal URL, a classic URL and an http endpoint the same way.

Key rejected (401)

Settings ▸ LLM Provider (Mac)today
today-keyRejected
Settings ▸ LLM Provider (Mac)proposed
d4-keyRejected

Included in D4 on purpose: Azure's own 401 says “invalid subscription key or wrong API endpoint”, so the key is never certain.

Endpoint without https://

Settings ▸ LLM Provider (Mac)today
today-noScheme
Settings ▸ LLM Provider (Mac)proposed
d4-noScheme

Decided before any request is sent; today it is also labelled “Invalid key”.

Nothing answers (mistyped resource)

Settings ▸ LLM Provider (Mac)today
today-unreachable
Settings ▸ LLM Provider (Mac)proposed
d4-unreachable

Unchanged by D4 as rendered: this is the “Unavailable” status, not “Invalid key”. The design lists host-not-found under D4; see question 2.

2. A run with a wrong deployment name

Sidebar row and its popover (Mac)today
deploy-today sidebardeploy-today popover
Option A: shipped wordsproposed
deploy-a sidebardeploy-a popover
Option B: an Azure sentence (S2)proposed
deploy-b sidebardeploy-b popover

Why it says “Something went wrong” today. The pre-run check stops the run before its events log opens, so the Mac sorts the failure from the printed output. The line reads Azure OpenAI rejected (Deployment 'research-gpt41mini' not found), the terminal wraps it after not, and no pattern in PipelineRunner.categoriseFailure matches either form. A rejected key at the same check is already right (“Your Azure OpenAI key was rejected.”).

Option A, no new words. One pattern, deployment '[^']*' not\s+found, sends it to Model unavailable. The sentence is true but its remedy is for other providers: “Choose another” model, where Azure's fix is the deployment name. It does point at the right Settings pane.

Option B, an Azure sentence. The same pattern, plus an Azure leaf at FailureMessage's extension point using the design's sentence S2, with the name read from the line. One new key in 21 locales; pairs with D4's string batch.

Either way the sidebar row still reads “Run failed” and the category under the sentence becomes “Model unavailable”. Neither needs Python changes. The fuller fix, the pre-run check writing a structured cause the Mac reads instead of the text, is a larger change and not drawn.

Questions

  1. D4: “Not connected” on every Azure failure, 401 included? (Design recommends yes.)
  2. Host not found and timeouts show “Unavailable” (orange). Leave them, or bring them under “Not connected” too? Throttling and outages share that status, so this would need the label chosen per sentence there as well.
  3. Wrong deployment: A now (no new words, fits the reliability phase), B with the D4 strings, or both in sequence?
KeyEnglishNeeded by
desktop.llmSettings.status.azureNotConnected (proposed name)Not connectedD4
desktop.pipeline.failure.azureDeploymentNotFound (proposed name)No deployment named “{{name}}” on this resource. Key and endpoint are fine; check the name.Option B