Repository navigation
Description
Problem to solve
--env-mode is a closed list of Harbor-native backends plus local. Teams that run Tier 3 on infrastructure Harbor does not ship (for example an organization's internal sandbox service) have two options today: fork SkillEvaluator, or bypass it and call harbor run --env <import path> directly. A fork drifts from upstream. Calling Harbor directly loses SkillEvaluator's kwarg, credential, and runtime_env policy, plus doctor.
Harbor 0.24 already loads an environment class from an import path, and SkillEvaluator already uses that path for local, docker, and gke. What is missing is a supported way for another package to name a new mode.
Proposed approach
Add an entry-point group, skillevaluator.env_modes. The entry-point name is the mode name. Its value names an EnvModePlugin (or a function that returns one) that declares:
import_path: the HarborBaseEnvironmentsubclass, passed toharbor run --envenvironment_kwargs,required_environment_kwargs,reserved_environment_kwargs: what--ekaccepts and requireshost_env_vars: backend settings forwarded to the Harbor processagent_import_paths: optional per-agent Harbor agent classes, for example ones that use CLIs already present in the backend imagesupports_docker_compose: whether Compose sidecar tasks can runprerequisites: an optionalfn(environment_kwargs) -> list[str]thatdoctorruns before Harbor'spreflight()install_hint
Plugin modes reuse the existing Harbor-native policy:
- Runtime-policy and secret-bearing kwargs are rejected.
- Only declared host variables reach Harbor, and a skill's
runtime_envcannot set them. - A plugin may not forward agent credentials, judge settings, or process-control variables.
Built-in mode names cannot be replaced. Listing modes reads package metadata only, and the plugin module is imported only when its mode is selected. SKILLEVALUATOR_DISABLE_ENV_MODE_PLUGINS=1 ignores every installed plugin.
Alternatives considered:
- An
--environment-import-pathflag. It is simpler, but SkillEvaluator would know nothing about the backend's kwargs or credentials, so its policy checks could not apply. - Adding each backend upstream. That does not work for internal or proprietary services.
Additional context
I have an implementation with tests and docs ready and will link the PR here.
Activity
rmalani-nv commentedon Oct 19, 2026
Implementation: #215
[-][FEA]: Let installed packages register --env-mode plugins[/-][+][FEA]: Let installed packages add custom execution backends (--env-mode)[/+]