Skip to content

Commit 6d31ac6

Browse files
hyperpolymathclaude
andcommitted
chore: retire ReScript guidance text → AffineScript (Estate Item 9)
Estate language policy: RS/TS/JS → AffineScript → typed-wasm. This rewrites guidance/policy text that recommended ReScript as the TypeScript/Python replacement so it now points at AffineScript. Scope guard (deliberate): rescript-named paths and ReScript adapters are NOT touched — that work is preserved intact for the ReScript ecosystem. Only the forward-looking "use ReScript instead" recommendation is updated. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 7118c99 commit 6d31ac6

10 files changed

Lines changed: 12 additions & 12 deletions

File tree

.claude/CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ The following files in `.machine_readable/` contain structured project metadata:
4343
| Bun | Deno |
4444
| pnpm/yarn | Deno |
4545
| Go | Rust |
46-
| Python | Julia/Rust/ReScript |
46+
| Python | Julia/Rust/AffineScript |
4747
| Java/Kotlin | Rust/Tauri/Dioxus |
4848
| Swift | Tauri/Dioxus |
4949
| React Native | Tauri/Dioxus |

.github/workflows/language-guard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
run: |
3333
# TypeScript files (not allowed)
3434
if find . -name "*.ts" -o -name "*.tsx" | grep -q .; then
35-
echo "::error::TypeScript files detected. Use ReScript instead."
35+
echo "::error::TypeScript files detected. Use AffineScript instead."
3636
exit 1
3737
fi
3838

.github/workflows/rsr-antipattern.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ jobs:
168168
- name: Check for tsconfig
169169
run: |
170170
if [ -f "tsconfig.json" ]; then
171-
echo "❌ tsconfig.json detected - use ReScript instead"
171+
echo "❌ tsconfig.json detected - use AffineScript instead"
172172
exit 1
173173
fi
174174
echo "✅ No tsconfig.json"

.github/workflows/ts-blocker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
NEW_JS=$(git diff --name-only --diff-filter=A HEAD~1 2>/dev/null | grep -E '\.(js|jsx)$' | grep -v '\.res\.js$' | grep -v '\.gen\.' | grep -v 'node_modules' || true)
1919
2020
if [ -n "$NEW_TS" ] || [ -n "$NEW_JS" ]; then
21-
echo "❌ New TS/JS files detected. Use ReScript instead."
21+
echo "❌ New TS/JS files detected. Use AffineScript instead."
2222
[ -n "$NEW_TS" ] && echo "$NEW_TS"
2323
[ -n "$NEW_JS" ] && echo "$NEW_JS"
2424
exit 1

src/contract/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,7 @@ impl ContractRunner {
796796
};
797797

798798
let remediation = match language.to_lowercase().as_str() {
799-
"typescript" => Some("Use ReScript instead of TypeScript".to_string()),
799+
"typescript" => Some("Use AffineScript instead of TypeScript".to_string()),
800800
"python" => {
801801
Some("Python is only allowed in salt/ for SaltStack configs".to_string())
802802
}

templates/CONTRIBUTING.adoc.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ This project follows the **Rhodium Standard Repository** (RSR) conventions.
3333
|===
3434
| Technology | Reason | Status
3535

36-
| TypeScript | Use ReScript instead | ❌ Blocked
36+
| TypeScript | Use AffineScript instead | ❌ Blocked
3737
| Go | Use Rust/WASM instead | ❌ Blocked
3838
| Python | Use Guile/Deno (except SaltStack) | ❌ Blocked
3939
| npm/yarn | Use Deno instead | ❌ Blocked

templates/hooks/pre-commit.template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ TS_FILES=$(git diff --cached --name-only --diff-filter=ACM | grep -E '\.(ts|tsx)
6262
if [ -n "$TS_FILES" ]; then
6363
echo_fail "Prohibited TypeScript files detected:"
6464
echo "$TS_FILES" | sed 's/^/ /'
65-
echo " → Use ReScript instead"
65+
echo " → Use AffineScript instead"
6666
FAILED=1
6767
fi
6868

@@ -71,7 +71,7 @@ JS_FILES=$(git diff --cached --name-only --diff-filter=ACM | grep -E '\.js$' | g
7171
if [ -n "$JS_FILES" ]; then
7272
echo_fail "Prohibited JavaScript files detected:"
7373
echo "$JS_FILES" | sed 's/^/ /'
74-
echo " → Use ReScript instead"
74+
echo " → Use AffineScript instead"
7575
FAILED=1
7676
fi
7777

templates/pre-commit.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ STAGED=$(git diff --cached --name-only --diff-filter=ACM)
2121
# Check for TypeScript files
2222
TS_FILES=$(echo "$STAGED" | grep -E '\.(ts|tsx)$' || true)
2323
if [ -n "$TS_FILES" ]; then
24-
echo -e "${RED}❌ TypeScript files detected (use ReScript instead):${NC}"
24+
echo -e "${RED}❌ TypeScript files detected (use AffineScript instead):${NC}"
2525
echo "$TS_FILES" | sed 's/^/ /'
2626
ERRORS=$((ERRORS + 1))
2727
fi

templates/rsr-antipattern.yml.template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Check for TypeScript
2222
run: |
2323
if find . -name "*.ts" -o -name "*.tsx" | grep -v node_modules | grep -q .; then
24-
echo "❌ TypeScript files detected - use ReScript instead"
24+
echo "❌ TypeScript files detected - use AffineScript instead"
2525
find . -name "*.ts" -o -name "*.tsx" | grep -v node_modules
2626
exit 1
2727
fi
@@ -57,7 +57,7 @@ jobs:
5757
- name: Check for tsconfig
5858
run: |
5959
if [ -f "tsconfig.json" ]; then
60-
echo "❌ tsconfig.json detected - use ReScript instead"
60+
echo "❌ tsconfig.json detected - use AffineScript instead"
6161
exit 1
6262
fi
6363
echo "✅ No tsconfig.json"

training/violations/12-language-policy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
- Julia - Scientific computing
2626

2727
**Forbidden:**
28-
- TypeScript - Use ReScript instead
28+
- TypeScript - Use AffineScript instead
2929
- Python - Only for Salt configs and ML training scripts
3030
- Go - Design philosophy conflicts
3131
- Java/C# - Enterprise complexity

0 commit comments

Comments
 (0)