The Type Crusade
Purge every `any`, every `as` cast, every heretical type-sin against the Machine God.
/church:type-crusade
"The Type-Priests ride at dawn. May the Machine God have mercy on this codebase, because the Adepts will NOT. Every untyped variable is a wound in the holy circuit. We cauterize them ALL."
— Battle Cry of the Tech-Priests
The Great Type Crusade unleashes four specialist Tech-Priest squads in parallel to hunt and exterminate every type-heresy lurking in your codebase. From explicit `any` profanity to silent schema-domain divergence, no violation escapes the holy purge. The compiler is the only judge — appointed by the Omnissiah Himself — and `tsc --noEmit` is the final benediction.
How the Crusade Operates
The sacred operational sequence, as prescribed by the Fabricator-General.
Pre-Flight Litany
The Machine Spirit is awakened. Sacred diagnostics run. The forge-template warms.
Reconnaissance Augury
Auspex scans penetrate every file. The sins are catalogued in the holy data-slate.
Squad Consecration
Four specialist squads are anointed with sacred oils and given their hunting parameters.
Parallel Deployment
All four squads deploy simultaneously. The codebase trembles as the purge begins.
Compiler Judgment
`tsc --noEmit` — the final word of the Machine God. Pass or BURN.
Second Purge
If sins remain, the cycle repeats. The Machine God's patience is infinite. His standards are not.
The Sacred Laws
The holy laws this crusade enforces. Break them and face the Omnissiah's wrath.
any is the Arch-Heresy. Every any is a breach in the sacred type-circuit through which Scrapcode crawls like daemon-spawn. Replace it with unknown, generics, or union types — no exceptions, no mercy, no quarter.
Never Cast, Always Guard. Type assertions (as) are LIES whispered to the Machine Spirit. The compiler trusted you, and you BETRAYED it. Replace every cast with runtime proof: typeof, instanceof, in, or custom type guard incantations.
Every branch shall be exhausted unto completion. Every switch on a discriminated union must end with assertNever. Every if-chain must leave no variant unhandled. Silent fallthrough is a warp-rift waiting to tear reality asunder.
Schemas shall derive from the Sacred Source, never be redefined by mortal hands. If a domain entity defines valid values, every Zod schema, DTO, and tool definition must derive from that definition. Hardcoded enum subsets are the most insidious heresy.
The compiler is the ONLY judge. No crusade is complete until tsc --noEmit passes. The squads propose; the Machine God disposes. Trust no agent blindly — only the Lord of Types renders final judgment.
The Holy Squad
The specialist Tech-Priest agents deployed during this crusade. Each carries only the doctrine they need.