Install Levelsdoc/{zh,en}/design/install-levels.md

Install Levels for Skills and Plugins

Status: proposal (2026-11-19); slices S6a (skills at four levels), S6b (plugins below the system level, from the CLI) and S6c (installing from a chat, approvals by level, plugin co

Status: proposal (2026-11-19); slices S6a (skills at four levels), S6b (plugins below the system level, from the CLI) and S6c (installing from a chat, approvals by level, plugin configure) built 2026-11-20/21, see section 8; per-runtime levels for skills and plugin workspaces on remote machines are not implemented. Part of the release, installation and runtime layout design, replacing its earlier "one plugin store plus enablement records" plan. The owner's decisions of 2026-11-19: skills and plugins can be installed and used at every level; the workspace level lives in the workspace's .orquelo/skills and .orquelo/plugins; given an address, a bare skill installs directly, and the user chooses the level.

1. Four levels

LevelSkillsPluginsWho sees itWho may install
System~/.orquelo/skills/<name>/; default skills shipped with a release in releases/<version>/skills/~/.orquelo/plugins/<name>/; shipped ones in releases/<version>/plugins/every user of every tenantHost admins, the operator's CLI
Tenantdata/tenants/<t>/shared/skills/<name>/data/tenants/<t>/shared/plugins/<name>/the tenant's usersthe tenant's admins
Userdata/tenants/<t>/users/<u>/skills/<name>/data/tenants/<t>/users/<u>/plugins/<name>/only that userthe user themselves
Workspace<workspace>/.orquelo/skills/<name>/<workspace>/.orquelo/plugins/<name>/only runs in that workspacewhoever may write the workspace (its owner for a personal one, the conversation's members for a group one)
  • ◆Provenance marker (confirmed by the owner on 2026-11-19): at the system level, items from Orquelo's official catalog install directly into skills/<name>/ and plugins/<name>/; every other source (user-developed, Claude Code marketplaces, any git repository, local directories) is third-party and goes into skills/third-party/<name>/ and plugins/third-party/<name>/. Items at the other levels are by definition provided by users or tenants; their source is recorded in the database and shown by list, with no extra directory. A directory is only a marker for people and grants nothing.
  • ◆A skill is a directory with SKILL.md; a plugin is a directory with plugin.yaml (manifest, process, or a plugin carrying skills), as today.

2. Installing: one command, a chosen level

sh
orquelo skill install SOURCE [--to system|tenant|user|workspace] [--tenant T] [--user CONN:USER] [--workspace PATH]
orquelo plugin install SOURCE [--to …]      # the existing command plus --to, default system as today
  • ◆Sources are those of today's plugin install: a GitHub directory link, git+URL#<commit>[:dir], an https archive with its sha256, a local directory, a catalog name. Branches and tags are first pinned to a commit (the existing resolve).
  • ◆Bare skills: a source directory with SKILL.md and no plugin.yaml installs as a skill, without being wrapped in a plugin first. Claude Code and Codex packages are converted by the existing importer.
  • ◆In a conversation: a user says "install this skill https://github.com/…/skills/foo". The Agent resolves the source and sends a card with the name, description, pinned commit, file list and, to choose from, the levels the sender may install to (user always; workspace when there is one; tenant for tenant admins; system for Host admins), with the user level preselected. Choosing on the card is the confirmation; the model never decides to install on its own.
  • ◆Steps: resolve and pin the source → download into cache/ → validate (skill validate, the manifest check) → name check (section 4) → approvals per section 3 → copy into the chosen level's directory → record the install (kind, name, level, owning tenant/user/workspace, source, commit, digest, installer, time) → a skill is visible from the next run; a plugin triggers a reload.

3. Approvals

SkillsPlugins
Systema Host admina Host admin
Tenanta tenant admina tenant admin, plus a Host admin approving the code
Usernone (decided 2026-11-19)a Host admin approving the code
Workspacetrusted once by the workspace ownertrusted by the workspace owner, plus a Host admin approving the code
  • ◆Plugin code needs a Host admin's approval by digest at every level: it runs as the Host's OS user and can read the whole HOME. A digest already approved (installed at another level, say) is not asked again.
  • ◆Workspace trust: a workspace's .orquelo/ may come from a git pull or be written by the model during a run. The first time a run meets it, the owner gets a card "this workspace has N skills and M plugins; trust them?"; trust is recorded by digest. Any later change keeps the changed item from loading until it is confirmed again, so files the model wrote never become instructions for later runs.

4. Visibility and names

  • ◆A run sees: the system level + its tenant's level + its user's level + its workspace's level.
  • ◆Names are unique within what one run can see. An install whose name is already used at a visible level is refused. A conflict can still arise at run time (a pulled repository brings a skill of the same name): the higher level wins (system > tenant > user > workspace), the lower one is hidden, and skill list says why. System wins so a repository cannot replace a system skill with one of the same name.
  • ◆A runtime's configuration may limit the levels it accepts: levels: {skills: [system, tenant, user, workspace], plugins: [system, tenant, user, workspace]}, all four by default; an operator may switch one off (such as workspace plugins when serving the public).

5. Instances of plugins below the system level

System-level plugins keep their instances declared in the configuration file, as today. For a tenant, user or workspace plugin the Host creates an implicit instance for its owner, recorded in the database rather than the configuration file:

  • ◆The instance ID is <name>@<level>; its configuration takes the manifest's defaults; options and secrets that differ per user use per-principal secrets (Caller.GetSecret, built).
  • ◆It applies only to its owner's runs and joins what a runtime accepting that level may use; its data directory follows the scopes of the runtime layout section 8.
  • ◆Levels, implicit instances, Caller.Dir and the workspace reading interface go together into ADR 0010.

6. Workspaces

  • ◆Layout: .orquelo/skills/<name>/SKILL.md and .orquelo/plugins/<name>/plugin.yaml, which can be committed with the repository and shared by a team.
  • ◆A workspace belongs to its tool plugin (such as localenv, possibly on a remote machine), so the Host does not read its files directly: the tool role gains an optional interface WorkspaceFiles through which the Host lists and reads what is under .orquelo/ (needs the ADR).
  • ◆--to workspace writes the files into the workspace, where they show in git status; committing them is the user's choice.

7. Listing and uninstalling

  • ◆orquelo skill list [--level L] and orquelo plugin list [--level L] list by level with source and installer; /skills in a conversation shows the same levels.
  • ◆orquelo skill uninstall NAME --from L and orquelo plugin uninstall NAME --from L: only those who may install at that level may uninstall.
  • ◆Deleting a user deletes their level; exporting a tenant includes its level; the workspace level goes with the workspace.

8. Relation to what is built

  • ◆Today skills arrive only through plugins: skills/ inside a package, skilldir, learned-skills; there are no tenant or user levels, and workspace skills are explicitly excluded (skill design). This design has one builtin skill source read the four levels by caller, replacing learned-skills and covering what skilldir does; the workspace exclusion becomes "usable once trusted", and the skill design is updated to match.
  • ◆The workshop lets the user choose the level when publishing (user by default) instead of always publishing to the Host level.
  • ◆The existing plugin install, importer, digest trust and resolve stay. Migration: the skills in data/feishu/installed/learned-skills move to ~/.orquelo/skills/.

Built in S6a (2026-11-20). Skills only, from the operator's CLI:

  • ◆orquelo skill install SOURCE [--to L] [--tenant T] [--user CONN:USER] [--workspace DIR] [--name NAME] takes the sources of plugin install. System installs go to skills/third-party/ (nothing installs from Orquelo's catalog yet). The skill is checked like skill validate. A name visible to the target is refused, as is one a lower level already uses for those the new skill would reach. --name installs under another name; a skill is known by its directory's name. --user registers a person not yet seen in --tenant and refuses one already in another tenant.
  • ◆orquelo skill uninstall NAME --from L [...]; orquelo skill trust DIR records the digest of each skill in DIR/.orquelo/skills (table skill_trust). orquelo skill list adds an installed: section: every level, with the owner and, with --workspace DIR, trusted, untrusted or changed.
  • ◆The builtin skill source skills (default: enabled, so orquelo init adds it to the runtime's uses) reads the levels on every call through a Host port, Env.Levels (plugin.SkillLevels), given only to builtin skill sources. A higher level hides the same name below. A workspace skill loads only while its trusted digest matches, and only for runs whose workspace is a path (CallContext.Workspace.Path). The WorkspaceFiles interface of section 6, remote workspaces and the trust card are not built.
  • ◆Not built: the chat install card, the approvals of section 3 (the CLI is the operator), plugins at levels (S6b), per-runtime levels, the install record, and replacing learned-skills.

Built in S6b (2026-11-20). Plugins below the system level, from the operator's CLI (ADR 0010, addendum):

  • ◆orquelo plugin install SOURCE --to tenant|user|workspace [--tenant T] [--user CONN:USER] [--workspace DIR]. --to tenant requires --tenant. --to user uses the person's own tenant. A name that is already a builtin, a system plugin, or visible at another level for the same target is refused. The install is recorded in the database (plugin_levels).
  • ◆orquelo plugin approve NAME --level L [...]: a Host admin approves the current content. Approval is by name and digest (plugin_approvals), so it survives uninstall, and the same content at another level is not asked again. orquelo plugin trust DIR: the workspace's owner trusts its plugins as they are (plugin_workspace_trust). orquelo plugin uninstall NAME --from L [...].
  • ◆The Host makes an implicit instance of each, <name>@<level>.<owner> (for example notes@user.us_…; the owner part keeps two owners' copies apart and is a valid directory name). Each instance serves only its owner's calls (the tenant's users, the one user, runs in that workspace), and every runtime uses it unless its levels: {plugins: [...]} leaves that level out. It does not load while unapproved, then, for a workspace plugin, untrusted or changed. orquelo plugins shows the status and owner, and orquelo plugin list shows each package's level and owner.
  • ◆Not built in S6b (S6c below covers the chat install, approvals and configure): levels for skills.

Built in S6c (2026-11-21).

  • ◆From a chat: the admin plugin's tool install_request(source) asks the Host (plugin.LevelInstaller, offered with the manage grant) to fetch, pin and check the source under state_dir/cache/install/<id> (kept for a day). The Host reads the sender's role and tenant from its own records, never from the call, and lists the levels the sender may use: user always, workspace for a run with a path workspace, tenant for tenant admins and Host admins, system for Host admins. The sender picks one on a card, user first and localized by the run's CallContext.Locale; that choice is the confirmation. The Host checks the level again, and refuses a prepared install from anyone but its preparer. A plugin below the system level then goes to the Host admins on an approval card (Approver: admin); the Host accepts that approval only from a principal whose role is admin. An admin's own install needs no second approval.
  • ◆Process plugins may be installed below the system level. Like every plugin there, they stay unapproved and do not start until a Host admin approves their digest; the card says that they run as the Host's user. The install makes the declared process.command executable, which an archive or a copy may have lost.
  • ◆orquelo plugin configure NAME --level L [...] KEY=VALUE... sets an installed plugin's declared options and its config (checked against config_schema; a plugin without one takes no config), stored with its install record and applied at the next load. A sensitive option, or a config key the Host treats as a secret (by its name or writeOnly, as configuration masking does), is refused and points to orquelo secret set INSTANCE NAME, which accepts the implicit instance; the Host fills such config keys from that secret when it loads the instance. The value is never printed. --level is accepted for --to and --from too.

9. Acceptance (slice S6)

  • ◆From Feishu, given a GitHub address, a bare skill installs to the user, workspace, tenant and system levels in turn; the card lists only the levels the sender may use.
  • ◆A visibility matrix of two tenants with two users each and one workspace: each level is visible only to those it belongs to.
  • ◆An install whose name a visible level uses is refused; a run-time conflict hides the lower level, system first.
  • ◆After the model edits a workspace skill during a run, the next run does not load it until the owner confirms again.
  • ◆A user-level plugin does not load before a Host admin approves it; a second install of the same digest asks no approval.
  • ◆Uninstalling at each level is open only to those entitled to it.