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 }}
This repository was archived by the owner on Oct 23, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Oct 23, 2026. It is now read-only.
Fixing: custom callback or DSL, and can we align with Speakeasy and Vacuum #23
Fixing: can a rule carry a custom JavaScript callback, or does this want a DSL — and can we align with Speakeasy and Vacuum rather than inventing a third answer?
From the investigations list in the working document, office hours 2026-08-14 (#19).
The question as it was raised
Can this be done with a custom JavaScript callback for each rule, or a DSL? How do Speakeasy and Vacuum do this, and can we align. Do they support custom rulesets doing this or just their core rulesets?
That last clause is the sharp one. There is a large difference between an engine that can auto-fix its own built-in rules and an engine where anyone writing a ruleset can ship a fix alongside a rule. The first is a product feature. The second is a format feature, and only the second is worth putting in a specification.
Why fixing is its own thing
Auto-fix carries its own vocabulary — it is not a property you bolt onto a rule and move on. A fix has to say what it changes, whether it is safe to apply unattended, whether it is idempotent, what happens when two fixes touch the same node, and whether applying it can create a new violation. None of that vocabulary exists in the format today.
This was the read on the call as well: it is its own space with its own terms, and it should be treated that way rather than as a flag on given/then.
What this issue is asking for
Survey how the other engines actually do it — Speakeasy and Vacuum specifically. Not marketing claims: whether custom rulesets can carry fixes, what the fix is expressed as, and what safety guarantees are stated.
Decide callback vs. DSL — a JavaScript callback per rule is the low-friction option and immediately breaks runtime portability (Runtime portability is a normative requirement, not a preference #11), since a fix expressed as JS cannot run in an engine that is not JS. A declarative fix expression is more work and stays portable. That trade-off should be made deliberately and written down.
Align where alignment is possible. Three engines with three incompatible fix models is the worst outcome for users, and this project has no interest in being the third one. If there is a shape the others could adopt, propose it here first.
Constraint from the runtime portability requirement
#11 makes runtime portability normative. That very likely rules out "arbitrary JS callback" as the specified mechanism, whatever individual engines choose to support as an extension. Worth settling that early, because it determines the shape of everything else here.
Activity