feat(deploy): gate claims on pinned runtime readiness
Assistant: codex Assistant-Model: gpt-5.6-sol Assistant-Session: 01a06ba0-10aa-7ea0-b20a-4f3fac39efe9
This commit is contained in:
parent
d00ffcb402
commit
4310c15eac
17 changed files with 757 additions and 10 deletions
|
|
@ -9,6 +9,9 @@ ENV_DIR="${HOME}/.config/rein-aharness"
|
|||
BIN_DIR="${HOME}/bin"
|
||||
mkdir -p "${UNIT_DIR}" "${ENV_DIR}" "${BIN_DIR}"
|
||||
|
||||
# Refuse to install a service unit over accidental mutable sibling revisions.
|
||||
python3 "${ROOT}/scripts/verify_runtime_lock.py"
|
||||
|
||||
cp -f "${ROOT}/deploy/systemd/rein-aharness-claim-loop.service" "${UNIT_DIR}/"
|
||||
# Durable env loader + k8s:// ClusterIP resolution (no port-forward)
|
||||
install -m 755 "${ROOT}/deploy/scripts/rein-aharness-claim" "${BIN_DIR}/rein-aharness-claim"
|
||||
|
|
@ -24,10 +27,13 @@ fi
|
|||
|
||||
# Ensure package entrypoint exists
|
||||
if [[ ! -x "${ROOT}/.venv/bin/rein-aharness" ]]; then
|
||||
echo "warning: ${ROOT}/.venv/bin/rein-aharness missing; install the worker environment first"
|
||||
echo "error: ${ROOT}/.venv/bin/rein-aharness missing" >&2
|
||||
echo "run ${ROOT}/deploy/scripts/install-pinned-runtime.sh first" >&2
|
||||
exit 2
|
||||
elif ! "${ROOT}/.venv/bin/python" -c 'import glas_harness, sandboxer' >/dev/null 2>&1; then
|
||||
echo "warning: profiled ops runs require sibling runtimes; install with:"
|
||||
echo " ${ROOT}/.venv/bin/pip install -e ${ROOT}/../sand-boxer -e ${ROOT}/../glas-harness"
|
||||
echo "error: pinned profiled runtime packages are unavailable" >&2
|
||||
echo "run ${ROOT}/deploy/scripts/install-pinned-runtime.sh first" >&2
|
||||
exit 2
|
||||
fi
|
||||
|
||||
systemctl --user daemon-reload
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue