rein-aharness/scripts/verify-recovery-contracts.sh
tegwick e5396bda51
Some checks failed
Governed runtime contract / contract (push) Has been cancelled
Record fixture recovery, rate, and queue-injection evidence.
Admission of the protected runtime still does not deploy or start a paid request. T05 stays wait on the unanswered activity-core lease expiry and a live tariff.

Assistant: grok
Assistant-Session: 01a11b05-37d4-7390-b2df-72297bb7ce1f
2026-10-08 12:28:56 +02:00

26 lines
1.3 KiB
Bash
Executable file

#!/usr/bin/env bash
# Deterministic recovery gate; live host drills remain separately required.
set -euo pipefail
REPO_ROOT="$(cd "$(dirname "$0")/.." && pwd)"
cd "${REPO_ROOT}"
PYTHON_BIN="${REIN_CONTRACT_PYTHON:-${REPO_ROOT}/.venv/bin/python}"
"${PYTHON_BIN}" -c 'import glas_harness.contract, llm_connect, sandboxer.models'
PYTHONPATH="${REPO_ROOT}:${REPO_ROOT}/../llm-connect" \
"${PYTHON_BIN}" -m pytest \
tests/test_native_limits.py \
tests/test_spend_admission.py \
tests/test_request_admission.py \
tests/test_messages_owner.py \
tests/test_owner_bootstrap.py \
tests/test_admission_boundaries.py \
tests/test_claim_loop.py::test_process_one_initial_heartbeat_rejection_refuses_dispatch \
tests/test_claim_loop.py::test_process_one_lease_loss_cancels_registered_adapter_process \
tests/test_claim_loop.py::test_profiled_close_failure_happens_after_repository_lock_release \
tests/test_claim_loop.py::test_response_lost_close_replays_without_reexecuting_workload \
tests/test_claim_loop.py::test_pending_close_failure_blocks_new_claim \
tests/test_claim_loop.py::test_permanent_close_refusal_is_quarantined_before_claim \
tests/test_repository_transaction.py::test_exception_releases_lock_for_next_transaction \
tests/test_glas_execution.py::test_profiled_run_refuses_success_if_cancelled_during_gateway \
-q