Repository navigation
refactor(vega): ship Vega OS as a platform plugin - #4828
Conversation
Size Report
Startup median (7 runs, lower is better):
|
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Apex Sentinel: 2 new findings on 42129a8. The verdict and the full list are in the summary comment.
Live run: Vega Virtual DeviceRun 2026-11-20 on the macOS host with Vega CLI 1.3.2 / SDK 0.23.9221, from the branch worktree at head
Key JSON from step 1 (typed absence): {
"success": false,
"error": {
"code": "UNSUPPORTED_PLATFORM",
"message": "Vega platform requires the @agent-device/vega plugin.",
"hint": "Install:\n agent-device plugins add @agent-device/vega@nightly-0.22\n...",
"details": {
"reason": "plugin-not-installed",
"family": "vega",
"package": "@agent-device/vega",
"installCommand": "agent-device plugins add @agent-device/vega@nightly-0.22"
}
}
}Open app: the VVD image ships the Vega SDK sample app Environment notes (not PR defects):
|
|
This PR is ready at 42129a8. The plugin boundary holds, the live run at this head passed, all checks pass, and there are no conflicts. Not blocking, take or leave:
The two inline threads on Not verified here: |
3803b69 to
db5f122
Compare
Move the Vega family out of packed core into the managed platform plugin @agent-device/vega, mirroring what the web plugin did. The package contributes one platform setup that supplies the inventory and runtime modules, the host-bound interactor factory, request-scoped provider entry, and the doctor's toolchainCheck operation. Core keeps family identity, the TV remote vocabulary and key mapping, the vegaToolProvider resolver key, help and schema text, and the daemon tv-remote handler. Absent plugin answers through the one absence reporter with the install hint; unfiltered discovery skips Vega silently. References #4672, #4591.
Two review findings on #4828: - request-providers: the vegaToolProvider descriptor now gates on the Vega selection before calling the resolver, so a request for a family this process does not serve never opens a provider it cannot scope or close. The request still ends in the typed plugin-not-installed outcome at the runtime and interactor lookups it then performs. The parity table and the optional-family test now pin resolverAsked === false. - host diagnostics: doctor --platform vega reports a failing toolchain row built from the composition's own absence report when the plugin is absent or failed to load, so the row names the install command; a store plugin whose load failed reports its own code, message, and reason. Unfiltered doctor keeps no Vega toolchain row. - doctor inventory: the unscoped per-family sweep drops a typed plugin-not-installed failure instead of reporting a device-vega warn row, matching how unscoped devices skips an optional family the user did not install. An explicitly selected family keeps its typed outcome. References #4672, #4591.
42129a8 to
0a4f6f3
Compare
Apex Sentinel · ✅ Approve · review of
|
| Where | Finding |
|---|---|
packages/daemon/src/sessions/handlers/session-doctor-device.ts:178 |
🆕 Doctor's plugin-absence filter matches the reason as a raw string, not the typed constant |
Not in the reviewers' prompt (1 file)
pnpm-lock.yaml: generated or a lockfile, so its lines were left out
Reviewed with this repository's own Sentinel configuration (faa3c82ec103).
💬 Talking to Sentinel
In a finding's thread, reply with:
| Command | What it does |
|---|---|
@apex-sentinel-staging note <context> |
Adds context; Sentinel re-checks the cited code |
@apex-sentinel-staging pivot <why> |
Says the finding is wrong; Sentinel re-checks the cited code |
@apex-sentinel-staging like |
Marks the finding as useful |
@apex-sentinel-staging dislike <why> |
Marks it as not useful, so it is not raised again |
On this conversation, comment @apex-sentinel-staging review to run a full review once again.
There was a problem hiding this comment.
Apex Sentinel: 1 new finding on 0a4f6f3. The verdict and the full list are in the summary comment.
* refactor(vega): ship Vega OS as a platform plugin Move the Vega family out of packed core into the managed platform plugin @agent-device/vega, mirroring what the web plugin did. The package contributes one platform setup that supplies the inventory and runtime modules, the host-bound interactor factory, request-scoped provider entry, and the doctor's toolchainCheck operation. Core keeps family identity, the TV remote vocabulary and key mapping, the vegaToolProvider resolver key, help and schema text, and the daemon tv-remote handler. Absent plugin answers through the one absence reporter with the install hint; unfiltered discovery skips Vega silently. References #4672, #4591. * refactor(vega): keep absent-family request scope and doctor row honest Two review findings on #4828: - request-providers: the vegaToolProvider descriptor now gates on the Vega selection before calling the resolver, so a request for a family this process does not serve never opens a provider it cannot scope or close. The request still ends in the typed plugin-not-installed outcome at the runtime and interactor lookups it then performs. The parity table and the optional-family test now pin resolverAsked === false. - host diagnostics: doctor --platform vega reports a failing toolchain row built from the composition's own absence report when the plugin is absent or failed to load, so the row names the install command; a store plugin whose load failed reports its own code, message, and reason. Unfiltered doctor keeps no Vega toolchain row. - doctor inventory: the unscoped per-family sweep drops a typed plugin-not-installed failure instead of reporting a device-vega warn row, matching how unscoped devices skips an optional family the user did not install. An explicitly selected family keeps its typed outcome. References #4672, #4591. * refactor(doctor): read the plugin-not-installed reason from its typed table
* refactor(vega): ship Vega OS as a platform plugin Move the Vega family out of packed core into the managed platform plugin @agent-device/vega, mirroring what the web plugin did. The package contributes one platform setup that supplies the inventory and runtime modules, the host-bound interactor factory, request-scoped provider entry, and the doctor's toolchainCheck operation. Core keeps family identity, the TV remote vocabulary and key mapping, the vegaToolProvider resolver key, help and schema text, and the daemon tv-remote handler. Absent plugin answers through the one absence reporter with the install hint; unfiltered discovery skips Vega silently. References #4672, #4591. * refactor(vega): keep absent-family request scope and doctor row honest Two review findings on #4828: - request-providers: the vegaToolProvider descriptor now gates on the Vega selection before calling the resolver, so a request for a family this process does not serve never opens a provider it cannot scope or close. The request still ends in the typed plugin-not-installed outcome at the runtime and interactor lookups it then performs. The parity table and the optional-family test now pin resolverAsked === false. - host diagnostics: doctor --platform vega reports a failing toolchain row built from the composition's own absence report when the plugin is absent or failed to load, so the row names the install command; a store plugin whose load failed reports its own code, message, and reason. Unfiltered doctor keeps no Vega toolchain row. - doctor inventory: the unscoped per-family sweep drops a typed plugin-not-installed failure instead of reporting a device-vega warn row, matching how unscoped devices skips an optional family the user did not install. An explicitly selected family keeps its typed outcome. References #4672, #4591. * refactor(doctor): read the plugin-not-installed reason from its typed table
* refactor(vega): ship Vega OS as a platform plugin Move the Vega family out of packed core into the managed platform plugin @agent-device/vega, mirroring what the web plugin did. The package contributes one platform setup that supplies the inventory and runtime modules, the host-bound interactor factory, request-scoped provider entry, and the doctor's toolchainCheck operation. Core keeps family identity, the TV remote vocabulary and key mapping, the vegaToolProvider resolver key, help and schema text, and the daemon tv-remote handler. Absent plugin answers through the one absence reporter with the install hint; unfiltered discovery skips Vega silently. References #4672, #4591. * refactor(vega): keep absent-family request scope and doctor row honest Two review findings on #4828: - request-providers: the vegaToolProvider descriptor now gates on the Vega selection before calling the resolver, so a request for a family this process does not serve never opens a provider it cannot scope or close. The request still ends in the typed plugin-not-installed outcome at the runtime and interactor lookups it then performs. The parity table and the optional-family test now pin resolverAsked === false. - host diagnostics: doctor --platform vega reports a failing toolchain row built from the composition's own absence report when the plugin is absent or failed to load, so the row names the install command; a store plugin whose load failed reports its own code, message, and reason. Unfiltered doctor keeps no Vega toolchain row. - doctor inventory: the unscoped per-family sweep drops a typed plugin-not-installed failure instead of reporting a device-vega warn row, matching how unscoped devices skips an optional family the user did not install. An explicitly selected family keeps its typed outcome. References #4672, #4591. * refactor(doctor): read the plugin-not-installed reason from its typed table
* refactor(vega): ship Vega OS as a platform plugin Move the Vega family out of packed core into the managed platform plugin @agent-device/vega, mirroring what the web plugin did. The package contributes one platform setup that supplies the inventory and runtime modules, the host-bound interactor factory, request-scoped provider entry, and the doctor's toolchainCheck operation. Core keeps family identity, the TV remote vocabulary and key mapping, the vegaToolProvider resolver key, help and schema text, and the daemon tv-remote handler. Absent plugin answers through the one absence reporter with the install hint; unfiltered discovery skips Vega silently. References callstack#4672, callstack#4591. * refactor(vega): keep absent-family request scope and doctor row honest Two review findings on callstack#4828: - request-providers: the vegaToolProvider descriptor now gates on the Vega selection before calling the resolver, so a request for a family this process does not serve never opens a provider it cannot scope or close. The request still ends in the typed plugin-not-installed outcome at the runtime and interactor lookups it then performs. The parity table and the optional-family test now pin resolverAsked === false. - host diagnostics: doctor --platform vega reports a failing toolchain row built from the composition's own absence report when the plugin is absent or failed to load, so the row names the install command; a store plugin whose load failed reports its own code, message, and reason. Unfiltered doctor keeps no Vega toolchain row. - doctor inventory: the unscoped per-family sweep drops a typed plugin-not-installed failure instead of reporting a device-vega warn row, matching how unscoped devices skips an optional family the user did not install. An explicitly selected family keeps its typed outcome. References callstack#4672, callstack#4591. * refactor(doctor): read the plugin-not-installed reason from its typed table
* refactor(vega): ship Vega OS as a platform plugin Move the Vega family out of packed core into the managed platform plugin @agent-device/vega, mirroring what the web plugin did. The package contributes one platform setup that supplies the inventory and runtime modules, the host-bound interactor factory, request-scoped provider entry, and the doctor's toolchainCheck operation. Core keeps family identity, the TV remote vocabulary and key mapping, the vegaToolProvider resolver key, help and schema text, and the daemon tv-remote handler. Absent plugin answers through the one absence reporter with the install hint; unfiltered discovery skips Vega silently. References #4672, #4591. * refactor(vega): keep absent-family request scope and doctor row honest Two review findings on #4828: - request-providers: the vegaToolProvider descriptor now gates on the Vega selection before calling the resolver, so a request for a family this process does not serve never opens a provider it cannot scope or close. The request still ends in the typed plugin-not-installed outcome at the runtime and interactor lookups it then performs. The parity table and the optional-family test now pin resolverAsked === false. - host diagnostics: doctor --platform vega reports a failing toolchain row built from the composition's own absence report when the plugin is absent or failed to load, so the row names the install command; a store plugin whose load failed reports its own code, message, and reason. Unfiltered doctor keeps no Vega toolchain row. - doctor inventory: the unscoped per-family sweep drops a typed plugin-not-installed failure instead of reporting a device-vega warn row, matching how unscoped devices skips an optional family the user did not install. An explicitly selected family keeps its typed outcome. References #4672, #4591. * refactor(doctor): read the plugin-not-installed reason from its typed table
Summary
Ships Vega OS as the managed platform plugin
@agent-device/vega, the same shape #4792 gave web.packages/platform-veganow publishes as@agent-device/vega("private": true,apiVersion: 3,platform: "vega", single./agent-deviceexport) and contributes one{ kind: 'platform', family: 'vega', setup(host) }: inventory + runtime modules, the host-bound interactor factory, request-scoped provider entry, and the named operationtoolchainCheck(doctor). App lifecycle and the TV remote stay in the package's runtime/interactor; core keeps family identity, the TV remote vocabulary andtoVegaTvRemoteKey, thevegaToolProviderresolver key, help/schema text, and the daemon tv-remote handler.@agent-device/contracts/vega-tool-provider(contracts may not import host-kit or platform packages), mirroring@agent-device/contracts/web-provider.plugin-not-installedandagent-device plugins add @agent-device/vega; unfiltereddevicesskips Vega silently; help renders without it.vegajoins the forbidden list inscripts/check-package.ts(packed paths + implementation markers) andMANAGED_PLATFORMSin the platform-package layering policy; the managed-platform policy test gained a case that only the plugin scope resolves the managed Vega entry. Package tests moved with the package; core/daemon tests supply Vega as a plugin fixture (src/platform-runtime-vega-provider.fixtures.ts); thevega-tv-remoteprovider scenario now composes Vega through the plugin;packages/platform-vega/test/package-smoke.mjsproves the packed-install behavior (absent → typed hint, silent skip, install → active plugin) on any host.help tvnames it in its loop.Live verification ran on a Vega Virtual Device on a macOS host with Vega CLI 1.3.2 / SDK 0.23.9221: typed plugin absence, install, discovery,
openof the SDK sample app, atv-remotepress, the designedscreenshotrefusal,close, and the plugin-supplied doctor toolchain check all behave as specified. See the "Live run: Vega Virtual Device" comment for the per-step table and JSON.Closes #4672. Follows #4591 / #4792.
Validation
0a4f6f3609, baseorigin/0.22(db5f1225e3). The review follow-uprefactor(vega): keep absent-family request scope and doctor row honestis included..tmp/validation/run-GsVwxc/receipt.json:[passed] exactCommit=true— 42 checks passed, 28 skipped (no device lanes). unit 21,464 passed / 10 skipped / 0 failed; vitest-related 441; provider-integration 309; plus format, lint, typecheck, layering, package, docs, capability-matrix, mutation-model.pnpm typecheck,pnpm check:layering(499 pass),pnpm run check:package(tarball lint + installed-CLI probes),pnpm format,fallow audit --base origin/0.22(0 issues in 41 changed files) — all green.vegaToolProvideris gated on the active Vega selection, so a request for an unserved family never calls its resolver (resolverAsked === falseis pinned);doctor --platform veganow reports a failingtoolchainrow built from the composition's own absence report, namingagent-device plugins add @agent-device/vega, while an unfiltered doctor keeps no Vega toolchain row and its unscoped inventory sweep skips an uninstalled optional family. Verified on the device again at this head (typed absence, doctor absent row, unfiltered silence, discovery/open/tv-remote/screenshot refusal/close, plugin doctor pass).pnpm typecheckand the focused suites (host diagnostics, doctor device inventory, optional-family and provider-routing registries, the whole Vega package) are green locally; hosted CI backs the rest.Core tarball size
Same toolchain on both trees, measured at head
42129a867d(the review follow-up changes behaviour only, not the packed file set):5a9eb4252c42129a867dOpen in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.