Repository navigation
Description
Active implementation checkpoint — 19 September 2026
Exact upstream heads are WebScene 450df119008faa15ac90b38fd08f0c736cf3f7b6 and AppScene fc3961f43bbcef4fab7cab473269933c450d1f87; unchanged Code OSS is 645f29cc3176500b4b5762ba887cf2a7f0ffdf2c. Local vscode-demo is ed793f2c and remains intentionally unpushed with Actions disabled.
Merged Linux stack: WebScene exact factory/device/instance queries #645/#647, #646/#648 and #649/#650 plus synchronized queue access #651/#652; AppScene allocator #260/#261, presenter ownership #262/#263, exact-instance Xlib surface #264/#266, and pinned Linux Skia Graphite+Vulkan profile/allocator/context #265/#267. WebScene v3 now holds the same Dawn DeviceGuard used by Vulkan submit and present.
Only one subagent is active on WebScene #653, a native child of #227. It is splitting the 22,060-byte editor web-platform bootstrap literal below the existing 15,000-byte portability ceiling to recover Linux/macOS NuGet package configuration without changing features, install order, descriptors or realm behavior. AppScene v3 consumption and clipboard are paused behind this focused CI repair.
Consolidations remain open and unmerged: WebScene #76 at 133a2b66, AppScene #65 at c79c2b6, and vscode-demo #1. WebScene current-main runs 35438473752, 35438473809, and 35438473810 are retained for #652; superseded PR and consolidation jobs were cancellation-requested. AppScene current-main Linux SDK run 35437689910 is retained for #267.
Ordered next work: merge #653; consume WebScene v3 in AppScene to complete external-image import, Graphite queue submission, swapchain acquire/present/private completion and loss-safe retirement as the sole lane; then resume clipboard. Physical Linux evidence and the recorded desktop-service/cross-platform backlog remain open.
Parent: #28. AppScene consumers: SceneTech/AppScene#265 and SceneTech/AppScene#264. Exact-device predecessors: #646/#648 and #649/#650.
Problem
WebScene v2 exposes Dawn's exact borrowed VkInstance, VkPhysicalDevice, VkDevice, VkQueue, queue family, instance resolver and Xlib presentation state. AppScene can now construct Skia's Vulkan Graphite context and recorder on that tuple.
Vulkan requires host access to a VkQueue to be externally synchronized. Skia Graphite calls vkQueueSubmit internally, while Dawn can submit to the same queue from its own scheduler. The v2 contract exposes the raw queue but no critical section or submission broker shared with Dawn. Calling Graphite submit directly would therefore be invalid even though the handles match.
Scope
- Add an additive, versioned native ABI for balanced external access to the exact Dawn Vulkan queue, or an equivalent submission critical section used by Dawn itself.
- Validate the live registry and exact WGPUDevice identity before every private Dawn dereference, as Add exact Dawn Vulkan device query #648/Add exact Dawn Vulkan instance query #650 do.
- Retain the public wgpu device for the full access token lifetime and reject foreign, stale, closing and lost devices before granting access.
- Serialize the complete external operation containing Graphite Context::insertRecording, Context::submit and native present ordering against every Dawn submission that targets the same VkQueue.
- Define thread, nesting, loss, teardown and callback rules so an active access token cannot outlive the exact device and teardown cannot deadlock.
- Export the contract through the pinned graphics SDK public header, symbol allowlist, cache/hash/source contract and validation documentation.
- Do not expose a second Vulkan queue/device and do not move Dawn private headers into AppScene.
Acceptance
- A stress probe interleaves Dawn WebGPU submissions and externally synchronized native submissions on the exact VkQueue without validation errors, races or reordering.
- Foreign/stale/lost/closing handles fail before private dereference.
- Device loss and teardown with an active or waiting access request are bounded and leak-free.
- AppScene Complete ServiceWorker control and client lifecycle for Code OSS webviews #265 can hold the access scope around Graphite submit and Vulkan present, then retire imported images from its private completion primitive.
Activity