Skip to content
This repository was archived by the owner on Jan 28, 2026. It is now read-only.

VATFIX: add VERSION_LOCK.json + immutability check #5

VATFIX: add VERSION_LOCK.json + immutability check

VATFIX: add VERSION_LOCK.json + immutability check #5

Workflow file for this run

name: VATFIX Core CI
on:
push:
branches: [ "main" ]
workflow_dispatch:
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: bash scripts/validate_core.sh
- run: test -f SEMANTICS_LOCK.json
- run: test -f FAILURE_CODES_LOCK.json
- run: test -f VERSION_LOCK.json
- name: Verify version immutability
run: |
set -euo pipefail
VERSION=$(cat VERSION)
LOCK_VERSION=$(cat VERSION_LOCK.json | python3 -c "import json,sys; print(json.load(sys.stdin)['version'])")
test "$VERSION" = "$LOCK_VERSION" || { echo "FAIL: Version mismatch"; exit 1; }
echo "PASS: Version locked"
identity:
uses: vatfix/REGISTRY/.github/workflows/identity-check.yml@main
with:
expected_id: SYS-004