-
-
Notifications
You must be signed in to change notification settings - Fork 0
ESC-01: AffineScript has no raw/FFI escape — %%raw port target (Refs 229) #245
Copy link
Copy link
Open
Labels
enhancementNew capability or improvement to existing behaviourNew capability or improvement to existing behaviourfeeds:valence-shellFeeds valence-shell's proofs/engineering (D127): judge progress by what it contributes thereFeeds valence-shell's proofs/engineering (D127): judge progress by what it contributes therepriority:p1High - schedule nextHigh - schedule nextscope:estateAffects many or all repos across the estateAffects many or all repos across the estate
Description
Activity
Metadata
Metadata
Assignees
Labels
enhancementNew capability or improvement to existing behaviourNew capability or improvement to existing behaviourfeeds:valence-shellFeeds valence-shell's proofs/engineering (D127): judge progress by what it contributes thereFeeds valence-shell's proofs/engineering (D127): judge progress by what it contributes therepriority:p1High - schedule nextHigh - schedule nextscope:estateAffects many or all repos across the estateAffects many or all repos across the estate
Problem
ReScript
%%raw("<host source>")(and%raw) has no clean AffineScripttarget. The only host bridge in the language is typed
extern fn/extern type(lib/parser.mly:185+) — host-supplied, typed, with noarbitrary-source escape hatch. 14 occurrences across the estate
.affinecorpus carry
%%raw(post-#228 re-audit; seedocs/RESCRIPT-ELIMINATION.adocTier-3 ESC-01).This is escalated language-side rather than patched divergently across N
repos — the same bidirectional-evidence discipline that produced #228.
Decision needed
One of:
%%rawis ported to a typedexterndeclaration (host-supplied, checked). Document this as the canonical
target in
docs/RESCRIPT-ELIMINATION.adocanddocs/spec.md.extern raw/intrinsicblock) with an ADR, if untyped host source is genuinely required for
some estate ports.
Option 1 is the affine-discipline-preserving default; #229 cannot complete
the
%%raw-bearing files until this is settled.Context
docs/RESCRIPT-ELIMINATION.adoc).tools/estate-rs-audit/.