From 7d3a3dc42c9c2f71e0afd73d1cf3853c178ff035 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 13 Sep 2026 17:52:15 +0200 Subject: [PATCH] Let the CultNet contract drift guard pass on a clean tree git grep exits 1 when it finds nothing, and the GitHub pwsh step wrapper ends the step with that $LASTEXITCODE, so the guard failed on exactly the clean tree it should accept. End the step with an explicit exit 0 after the checks; a real drift still throws first. REC-032. Co-Authored-By: Claude Opus 5 --- .github/workflows/cultnet-interop.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/cultnet-interop.yml b/.github/workflows/cultnet-interop.yml index 4000cc1c..5f8936bf 100644 --- a/.github/workflows/cultnet-interop.yml +++ b/.github/workflows/cultnet-interop.yml @@ -87,6 +87,9 @@ jobs: if ($stray -or $oldNamespace) { throw "CultNet schema contracts drifted out of contracts/cultnet/ (REC-032). See CultLib/contracts/cultnet/ and rewrite any `$id back to https://github.com/GameCult/CultLib/contracts/cultnet/." } + # git grep exits 1 when nothing matches, and the runner's pwsh wrapper + # ends the step with that $LASTEXITCODE; a clean tree must pass. + exit 0 - name: Install Node dependencies run: npm install --no-package-lock