Oracle Setup
Provision the ML inference environment.
When NOT To Use
- The daemon is already provisioned and only needs to be used
- Evaluating skill quality itself (use
abstract:skills-eval)
What This Does
- Creates a Python 3.11+ virtual environment using uv
- Installs pyyaml into the venv (onnxruntime waits for an ONNX model)
- Verifies the installation
Prerequisites
- uv must be installed
- Internet connection for initial download
Steps
- Run provisioning:
cd plugins/oracle && uv run python -c "
from oracle.provision import provision_venv, get_venv_path
result = provision_venv(get_venv_path())
print(result.message)
"
- Report result to the user.
- If successful, tell the user the daemon starts on the next
session once a models/ directory exists in the plugin. None
ships yet, so until then the hook logs "models directory
missing" to daemon.log and consumers use local scoring.
- If failed, show the error and suggest checking uv and network.
Exit Criteria
- [ ]
provision_venv()returns a result with a non-errormessage
and the venv path exists on disk under plugins/oracle/
- [ ]
yamlis importable inside the provisioned venv; verified by
running the venv's python with -c "import yaml" and exit code 0
- [ ] User receives a success message that states the daemon needs a
models/ directory to start, or a failure message citing the
specific error and whether it is a uv or network issue
- [ ] On failure, no partial venv left in a broken state that would
prevent a clean retry