Skip to content

Commit 6c496d6

Browse files
committed
fix(ci): repair corrupted rsr-antipattern.yml on this branch
Repairs the corrupted `rsr-antipattern.yml` from the prior commit on this branch. See hyperpolymath/stapeln#34 for the full root-cause writeup — the original sweep built its canonical via `gh api --jq '.content'` piped through PowerShell, but `gh` line-wraps base64 in the terminal pipe, so each chunk was decoded separately and the rejoined file has mid-word line breaks (`# SPDX-License-Id\nentifier:`, `name: RSR A\nnti-Pattern`, etc.). GitHub Actions can't parse the resulting YAML — the workflow completes in 0 seconds with no jobs. This commit overwrites the file with the correct content, built via raw byte download (`Accept: application/vnd.github.raw`) and `[System.IO.File]::WriteAllBytes` so no pipe ever touches the bytes. Round-trip byte-verified against canonical.
1 parent 3283ae7 commit 6c496d6

1 file changed

Lines changed: 12 additions & 19 deletions

File tree

.github/workflows/rsr-antipattern.yml

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
# SPDX-License-Identifier: MPL-2.0
1+
# SPDX-License-Identifier: PMPL-1.0-or-later
22
# RSR Anti-Pattern CI Check
3-
# SPDX-License-Identifier: MPL-2.0
3+
# SPDX-License-Identifier: PMPL-1.0-or-later
44
#
55
# Enforces: No TypeScript, No Go, No Python (except SaltStack), No npm
6-
# Allows: AffineScript, Deno, WASM, Rust/SPARK, OCaml, Haskell, Guile/Scheme,
7-
# ReScript (only as adapter shim to upstream ReScript-using systems —
8-
# per estate-wide policy 2026-04-30, RS/TS/JS default is AffineScript)
6+
# Allows: ReScript, Deno, WASM, Rust, OCaml, Haskell, Guile/Scheme
97

108
name: RSR Anti-Pattern Check
119

@@ -170,8 +168,7 @@ jobs:
170168
- name: Check for tsconfig
171169
run: |
172170
if [ -f "tsconfig.json" ]; then
173-
echo "❌ tsconfig.json detected — use AffineScript→typed-wasm instead"
174-
echo " (Estate-wide policy 2026-04-30: see RSR Anti-Pattern Allows list.)"
171+
echo "❌ tsconfig.json detected - use ReScript instead"
175172
exit 1
176173
fi
177174
echo "✅ No tsconfig.json"
@@ -187,15 +184,11 @@ jobs:
187184
188185
- name: Summary
189186
run: |
190-
echo "╔══════════════════════════════════════════════════════════════════╗"
191-
echo "║ RSR Anti-Pattern Check Passed ✅ ║"
192-
echo "║ ║"
193-
echo "║ Allowed (default for new code): ║"
194-
echo "║ AffineScript→typed-wasm, Deno, WASM, Rust/SPARK, OCaml, ║"
195-
echo "║ Haskell, Guile/Scheme, SaltStack (Python) ║"
196-
echo "║ ║"
197-
echo "║ Allowed (transitional / adapter-shim only): ║"
198-
echo "║ ReScript — for shims to upstream RS-using systems ║"
199-
echo "║ ║"
200-
echo "║ Blocked: TypeScript, Go, npm, Python (non-Salt) ║"
201-
echo "╚══════════════════════════════════════════════════════════════════╝"
187+
echo "╔════════════════════════════════════════════════════════════╗"
188+
echo "║ RSR Anti-Pattern Check Passed ✅ ║"
189+
echo "║ ║"
190+
echo "║ Allowed: ReScript, Deno, WASM, Rust, OCaml, Haskell, ║"
191+
echo "║ Guile/Scheme, SaltStack (Python) ║"
192+
echo "║ ║"
193+
echo "║ Blocked: TypeScript, Go, npm, Python (non-Salt) ║"
194+
echo "╚════════════════════════════════════════════════════════════╝"

0 commit comments

Comments
 (0)