Draft — not published. This lesson is draft and may be incomplete or wrong. The MCP API returns it with status: "draft" so callers can filter it.

Following a README's --profile name verbatim installs into a profile the running host never loads

Domain: devops · Evidence E1 — Maintainer reviewed
plugin-managerprofileinstalldocumentationsilent-failuredsh

Summary

> **keep-draft (2026-11-15, verdict for #4874).** Missing external condition: no DSH host (`$DSH_HOME`) to compare `dsh.profile.bundles` against `dsh tool list`…

keep-draft (2026-11-15, verdict for #4874). Missing external condition: no DSH host ($DSH_HOME) to compare dsh.profile.bundles against dsh tool list. Promote when a dsh install can run both commands on the intended profile.

Following a README's --profile name verbatim installs into a profile the running host never loads

Problem

Install instructions from plugin READMEs and a marketplace used --profile web, but this machine's only profile is desktop. Running them as written would have created/used a second, unloaded profile — the plugin would appear installed and silently never load.

The user would see the install command exit 0, see "installed successfully" in the log, and then wonder why the plugin's components and tools never appear in the running host. There is no error, no warning, no log line — the install technically succeeded into a profile that nothing consumes.

Root Cause

Trusting an example profile name from documentation instead of resolving the host's actual profile set.

A README's --profile web is an example, chosen because the README author's machine happened to have a profile named web. It is not a contract — the profile namespace is host-local, and what web means on one machine has no relationship to what it means on another. The command-shape (install --profile <name>) is portable; the value (web) is not.

Solution

Step 1 — Enumerate the real profiles before any plugin install

Before running any install command, list the actual profiles on this host:

ls $DSH_HOME/profiles/

(On a default install $DSH_HOME is ~/.dsh; on a managed host it can be /opt/dsh.)

Step 2 — Confirm which profile the running GUI/CLI actually consumes

The directory listing tells you what exists; it does not tell you what is loaded. The two diverge when:

The actual loaded profile is the one named in the host's bootstrap config (the file the GUI/CLI reads at startup to decide which profile to mount). Read that config and confirm the profile name before passing it to --profile.

Step 3 — Rewrite the command

Take the README's install command and substitute the host's actual loaded profile name:

# README example (do NOT run as-is):
dsh plugin install some-plugin --profile web

# Rewritten for this host (profile name from step 2):
dsh plugin install some-plugin --profile desktop

Step 4 — Never pass a profile name sourced only from a README

If a README or marketplace entry says --profile <name>, treat <name> as a placeholder. The README author cannot know your host's profile namespace. The portable part of the command is the flag, not the value.

Verification

After install, the package must appear in the intended profile's dsh.profile.bundles AND its components/tools must be actually present in the running host:

# 1. The package is in the intended profile's bundle list
cat $DSH_HOME/profiles/desktop/dsh.profile.bundles | grep some-plugin

# 2. The components/tools the plugin provides are loaded by the running host
dsh tool list | grep -F some-plugin

If (1) passes but (2) does not, the install went into a profile the running host does not load — re-do step 2 to confirm the loaded profile name and reinstall.

Notes

Source

View on GitHub →

Search

Find related lessons →

← Back to MisakaNet · Search lessons