#!/bin/sh # Workflow: __NAME__ # # Runs with the repository root as the working directory. Available # environment: EECO_REPO_ROOT, EECO_WORKSPACE, EECO_PROFILE, EECO_AI. # # Contract — exit with one of: # 0 clean # 1 finding / failure # 2 blocked (a required tool is missing) # 3 AI pass deferred (EECO_AI=false and an AI pass was wanted) # # Write nothing outside "$EECO_WORKSPACE". Use the queue for decisions. set -eu if ! command -v python3 >/dev/null 2>&1; then echo "__NAME__: blocked — python3 not on PATH" >&2 exit 2 fi # Python-profile default: byte-compile every .py file under the repo # (read-only, no network, no writes outside __pycache__). Replace with # the real check this workflow is meant to perform. python3 -m compileall -q .