Has there already been a proposal to add scripting functionality to Unicode itself? Seems to me we're not very far from that anymore...
Edit—the OP uses this exact use case, Urdu typesetting, to justify WASM in Harfbuzz (video around 6:00); seems like Urdu has really become the posterchild for typographic complexity these days
Maybe you meant adding it to OpenType?