The Singularity/Apptainer backend (tools/environments/singularity.py) now ships
as the official 'singularity' plugin in NousResearch/hermes-official-plugins,
registered through the terminal-environment provider seam under the same
backend name and config keys (terminal.backend: singularity,
terminal.singularity_image / TERMINAL_SINGULARITY_IMAGE, terminal.container_*).
- 'singularity' leaves BUILTIN_BACKEND_NAMES so the plugin can register it;
every hardcoded classification set drops it (the provider declares
is_remote/is_container/supports_streams instead).
- LEFT_CORE gains a singularity row: homes whose terminal.backend (or .env
TERMINAL_ENV) is singularity get the catalog plugin once, on hermes update
or agent/gateway start. An unknown-backend error for 'singularity' names
the install command (new row field terminal_backend).
- A plugin backend receives its per-task '<backend>_image' override; batch
runs register one for the active backend.
- BaseEnvironment's sudo-probe knob is renamed _passwordless_sudo_probe_supported:
plugin backends set it, and the old spelling trips the install scanner.
- Core's scratch-dir disk warning and process-exit sweep were Singularity-only
and move to the plugin; the singularity setup row, dashboard probe/row and
config defaults/bridges go too. Docs point at the plugin.
Main's classic CLI registered set_secret_capture_callback in process: skill_view of a
skill whose required_environment_variables were missing opened the masked "Skill Setup
Required" panel and saved the answer to the profile .env. On the session authority the
skill runs in the gateway, where a gateway surface only returned the "secure secret
entry is not available" hint.
Gateway (generic, no CLI naming; usable by the TUI/Desktop too):
- gateway/session_secret_prompt.py: for a local viewer's turn the runner binds a
turn-scoped capture callback (tools.skills_tool.bind_turn_secret_capture, a ContextVar
so tool workers started with propagate_context_to_thread inherit it). It sends main's
`secret` server→client request (SecretRequestParams -> ValueResult) through the same
request/response machinery as the sudo prompt (session_sudo_prompt.ask_viewer), saves a
non-empty answer with save_env_value_secure in the gateway, and returns main's result.
- tools/skills_tool_setup: a bound turn callback wins over the gateway-surface hint and
the process-global slot. Messaging turns bind nothing: hint unchanged.
CLI: GatewayAgent answers a `secret` request with main's own panel (prompt_for_secret,
same lines) and returns the value in the JSON-RPC response; the panel's local .env save
is captured, so this process never writes .env.
LEDGER: CB-021, IPS-049 (W4).
(cherry picked from commit 23d28512108bc0469af2c7423f9c6e8e68e87258)