fix(webdriver): keep a session's own artifact lookup and provider id after release

Draft
IA
10d ago
+215-7

Summary

A released lease now lists artifacts through the lookup its prepared session bound, with the same provider and WebDriver session ids the active path passes; providers without one keep the runtime-wide lookup. A prepared session can read the hub's create-session answer through describeCreatedSession: its own provider session id, for hubs that key jobs by another id, and the allocated model, while the device keeps the requested name commands select it by. An empty id counts as absent. If anything after the hub created the session throws, the allocation deletes that session and runs provider cleanup, keeping the original error.

Part of #5121. Needed by the Sauce Labs plugin PR; no bundled provider sets the new hook.

Before / after

No observable change for BrowserStack, AWS Device Farm or TestMu AI: none binds a per-session lookup or sets describeCreatedSession. The new paths are covered by runtime-session tests.

Validation

Tested at 3691aca: provider-webdriver unit tests 349 pass; cloud-webdriver provider scenarios 34 pass; typecheck clean. The regression tests fail without the session delete and without the runtime-wide fallback.
CI obligations: full unit, provider-integration, gates.
Risks: none known.


Start Proof
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.