Compatibility & migration
RAIQL 1.0 defines explicit project, language, plugin and output contracts. Supported 0.20–0.23 project metadata can be migrated to the stable 1.0 contract without silently rewriting valid source.
Three versions, three responsibilities
RAIQL now distinguishes the CLI/compiler release, the project schema version and the language contract used by a project.
{
"version": "1.0",
"languageVersion": "1.0",
"compatibility": {
"mode": "compatible",
"pluginApi": "1"
}
}version controls project metadata, languageVersion records the language contract, and pluginApi pins the extension interface independently.
Inspect compatibility
raiql compatibilityThe command checks project schema support, language compatibility, configured plugin API versions and registry plugin RAIQL ranges. It exits non-zero for incompatible contracts.
Migration preview
raiql migrate --dry-run
raiql migrate --check--dry-run prints the plan without writing. --check is CI-friendly: it exits non-zero when the project still needs migration.
Apply migration
raiql migrateRAIQL writes a backup of the previous config and a machine-readable migration report under .raiql/migrations/. Supported metadata migrations preserve source whenever the grammar is already compatible; the 0.23 → 1.0 migration is metadata-only for valid programs.
Generated compatibility manifest
Every generated project now includes raiql.compatibility.json containing the language contract, generating CLI, plugin API and core-output contract. This gives CI, plugins and future migration tooling a stable file to inspect without reverse-engineering generated source.
Strict mode
"compatibility": { "mode": "strict", "pluginApi": "1" }Strict mode requires the project language contract to match the current compiler. Compatible mode allows supported older contracts and reports upgrade guidance instead.