You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
rule: detect SafeDOMExample.res (banned ReScript dialect, should be .affine) #336
After today's otpiser#11 + 48-PR estate sweep, the dominant per-PR failure class is governance / Language / package anti-pattern policy firing on examples/SafeDOMExample.res. The canonical AffineScript version (examples/SafeDOMExample.affine) lives in burble/main; gitbot-fleet#208 ran a 125-repo sweep but template repos (rsr-template-repo, mtpc-template-repo, thunderbird-template-reloaded) plus a long tail of forks kept regenerating the .res variant.
Rule
Add to lib/rules/structural_drift.ex (or code_safety.ex if more appropriate):
defcheck_safedom_example_dialect(repo_tree,_opts\\[])dores_path="examples/SafeDOMExample.res"affine_path="examples/SafeDOMExample.affine"conddores_pathinrepo_treeandaffine_pathnot inrepo_tree->{:fail,%{rule: :safedom_example_dialect_mismatch,severity: :high,path: res_path,message: "SafeDOMExample.res lingers; .affine canonical required",fix: "Replace with examples/SafeDOMExample.affine (see burble/main)"}}res_pathinrepo_treeandaffine_pathinrepo_tree->{:warn,%{rule: :safedom_example_both_dialects,severity: :medium,path: res_path,message: "Both .res and .affine present; delete the .res copy"}}true->:okendend
Skip-list
Skip if the repo has substantive non-SafeDOM .res files (the migration is blocked on affinescript#57 Phase 2). Today's empirical skip-set:
Activity
hyperpolymath commentedon May 27, 2026
Now tracked under estate migration epic: affinescript#406.