repositories / pi-ext

pi-ext

bugabingas pi extensions

owned by bugabinga

remove schema-version checks from phase preflight

3da24108a1cc3dffde75345cb153f4aae11938b6

Oliver Jan Krylow <oliver@bugabinga.net> ·

SSH signature · not checked

Browse filesCompare with HEAD

The phase preflight only needs to pin prefix and title identity; schema
mismatches are already rejected through /system init and doctor, so the
duplicated preflight checks blocked legal config mutations.

Changed files (1)

extensions/the-system/system.ts

Modified
216 216 const candidate = parseSystemConfig(candidateContent(target, kind, input));
218 218 candidate.prefix !== current.prefix ||
219 - candidate.schemaVersion !== current.schemaVersion ||
220 219 candidate.title !== current.title
222 221 return blocked(
223 222 "The System config mutation may only change currentPhase.",
225 - if (candidate.schemaVersion !== SCHEMA_VERSION)
226 - return blocked(
227 - `The System schema must be ${SCHEMA_VERSION} before selecting a phase.`,
228 - );
229 224 if (candidate.currentPhase === current.currentPhase)
230 225 return blocked(
231 226 candidate.currentPhase