Skip to content

devcloud: a host's plugin installs follow its marketplace copy (0.15.2) - #458

Merged
SSFSKIM merged 2 commits into
mainfrom
devcloud-plugin-updates
Nov 4, 2026
Merged

SSFSKIM merged 2 commits into
mainfrom
devcloud-plugin-updates

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Nov 4, 2026

Copy link
Copy Markdown
Owner

A devcloud host refreshes its marketplace copy (/var/lib/devcloud/marketplaces/doperpowers) every 30 minutes, but nothing installed from it. The engine installs new versions only at a session's start, and the reload mod's fetch, which keeps running sessions current on the Macs, only covers git marketplaces. A host whose one session kept running therefore stayed on old versions. Example: one VM was still on doperpowers 7.210.0 and to-human 0.7.1 a week after main moved to 7.216.0 and 0.7.2.

After each refresh (step 10, and a pull-config with no new configuration commit), plugins.update now runs claude plugin update <key> --scope <its scope> as the user. It does this for every install of a plugin the copy carries in its own tree, at user or managed scope, whose version is not the copy's, dependencies first. A running interactive session's reload mod then sees installed_plugins.json change and reloads, as on a Mac.

  • Scope kept. The engine's startup update records the three plugins the managed settings enable at scope managed, so each update keeps its record's scope.
  • Left alone. Project and local records belong to a directory and are left to the sessions there. Plugins from another source, such as ci-kit (a git URL), are left to the engine.
  • Failures. A failed update is named in the step's detail and never fails the job.
  • Reach. Only hosts made after this lands get it, because a host keeps the boot code its image installed.

Tests: unit tests for the version reading, dependency order, scopes, failures, and both call sites. Also checked against the real CLI (2.1.318) in an isolated config: a directory marketplace whose checkout moved from e540389 to 1794493, one record at user scope and one at managed. Both updated and kept their scope.

Spec: Decision Log entry dated 2026-11-04 in docs/doperpowers/specs/2026-10-21-devcloud-vm-driver-design.md. devcloud 0.15.2.

Sminos-Session: devcloud setup#639ca648 (macbook on macbook)

The copy was refreshed every 30 minutes, but nothing installed from it:
the engine installs new versions only at a session's start, and the
reload mod's fetch covers git marketplaces only. A host whose one session
ran on kept the versions it started with (dc-linux171: doperpowers
7.210.0, to-human 0.7.1, a week behind main). After each refresh, step
10 and the pull now run claude plugin update, as the user, for every
install of a copy's plugin at user or managed scope whose version is not
the copy's, dependencies first; a running session's reload mod loads it.

Sminos-Session: devcloud setup#639ca648 (macbook on macbook)
Keep both install scopes, use validated catalog names and manifest metadata, and normalize same-marketplace dependencies. Share a five-minute deadline across updates and report process failures without aborting the host job.

Sminos-Session: devcloud setup#639ca648 (macbook on macbook)
@SSFSKIM
SSFSKIM merged commit 5b19f50 into main Nov 4, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant