feat(plugin): molecule-hitl — opt-in HITL gates (#257) - #262
Merged
Conversation
Closes #257. Thin manifest + skill doc that activates the existing builtin_tools/hitl.py primitives as a per-workspace opt-in plugin. The Python implementation (@requires_approval decorator, pause_task / resume_task tools, multi-channel notification, RBAC bypass roles) is already in every runtime image — this plugin is the policy layer that tells agents *when* to call them. - plugins/molecule-hitl/plugin.yaml — runtimes: langgraph, claude_code, deepagents; skills: hitl-gates - plugins/molecule-hitl/skills/hitl-gates/SKILL.md — documents the 5 classes of action that need a gate (deployment / irreversible FS / public message / production mutation / cross-workspace destructive), decorator pattern, pause/resume pattern, config shape, 4 anti-patterns, 5-step test plan No Python code — all implementation already exists. Install per workspace via POST /workspaces/:id/plugins. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
HongmingWang-Rabbit
pushed a commit
that referenced
this pull request
Apr 15, 2026
Tick 32 (manual) merged a large batch of PRs — the test counts in CLAUDE.md were drifting behind reality by enough to matter: - platform: 816 → 818 (YAML injection fix + sanitizeRuntime allowlist) - canvas: 453 → 482 (12 CookieConsent + 17 PricingTable/billing) - workspace-template: 1180 → 1179 (Hermes Phase 2a/2b dispatch tests landed but the test_hermes_providers env-var-leak fix removed a fragile flake-path count; net -1) This is measured not guessed: running the full suites on fresh main. Not in this sync but worth mentioning for the next retrospective: - controlplane repo received the full GDPR/admin/usage/consent/email stack (#29-#34) — that work sits in molecule-controlplane, not monorepo CLAUDE.md - monorepo picked up /pricing route, cookie consent banner, molecule- hitl plugin (#262), Hermes Phase 2a native Anthropic + 2b Gemini Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This was referenced Apr 15, 2026
This was referenced Apr 16, 2026
molecule-ai Bot
pushed a commit
that referenced
this pull request
Apr 21, 2026
feat(plugin): molecule-hitl — opt-in HITL gates (#257)
molecule-ai Bot
pushed a commit
that referenced
this pull request
Apr 21, 2026
Tick 32 (manual) merged a large batch of PRs — the test counts in CLAUDE.md were drifting behind reality by enough to matter: - platform: 816 → 818 (YAML injection fix + sanitizeRuntime allowlist) - canvas: 453 → 482 (12 CookieConsent + 17 PricingTable/billing) - workspace-template: 1180 → 1179 (Hermes Phase 2a/2b dispatch tests landed but the test_hermes_providers env-var-leak fix removed a fragile flake-path count; net -1) This is measured not guessed: running the full suites on fresh main. Not in this sync but worth mentioning for the next retrospective: - controlplane repo received the full GDPR/admin/usage/consent/email stack (#29-#34) — that work sits in molecule-controlplane, not monorepo CLAUDE.md - monorepo picked up /pricing route, cookie consent banner, molecule- hitl plugin (#262), Hermes Phase 2a native Anthropic + 2b Gemini Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #257.
Summary
Thin plugin that activates `builtin_tools/hitl.py` primitives as an opt-in per-workspace policy layer. The Python implementation (`@requires_approval` decorator, `pause_task` / `resume_task` tools, multi-channel notification, RBAC bypass) is already in every runtime image — this plugin is the when to use them layer.
Files
No Python code
All runtime primitives already exist. This PR is pure manifest + documentation — the policy of WHEN to gate, not the mechanics of HOW.
Test plan
Unblocks
🤖 Generated with Claude Code