1.7 KiB
1.7 KiB
Local Development Setup
This runbook covers setting up a local development environment for
molecule-hitl.
Prerequisites
- Python 3.11+
ghCLI authenticated- Write access to
Molecule-AI/molecule-ai-plugin-molecule-hitl
Clone & Bootstrap
git clone https://git.moleculesai.app/molecule-ai/molecule-ai-plugin-molecule-hitl.git
cd molecule-ai-plugin-molecule-hitl
Validating Plugin Structure
# YAML structure
python3 -c "import yaml; yaml.safe_load(open('plugin.yaml'))"
echo "plugin.yaml OK"
Testing HITL Gates Locally
The builtin_tools/hitl.py harness wrapper is not in this repo — it is
provided by the Molecule AI platform at runtime. To test:
-
Install the plugin in a test workspace:
mol workspace plugin install molecule-hitl --workspace <test-wsid> -
Configure channels in workspace
config.yaml:hitl: enabled: true channels: dashboard: true slack: false email: false default_policy: warn -
Trigger an approval-required action and verify the notification appears
-
Approve/deny and verify the task resumes or remains paused
Troubleshooting
Approval request not appearing
- Check
hitl.enabled: truein workspaceconfig.yaml - Verify the harness provides
builtin_tools/hitl.py - Check Slack webhook is set if
channels.slack: true
Task hangs after approval
- The
@requires_approvaldecorator may not be connected to the harness - Verify the workspace runtime supports LangChain primitives (required by hitl.py)
Related
builtin_tools/hitl.py— the platform-provided HITL implementationskills/hitl-gates/SKILL.md— skill documentation