Execute the codegen phase: run mj codegen, verify artifacts, retry if needed,
then run the post-codegen pipeline (manifest regen + known-issue patches).
Codegen input with directory, emitter, and fast-mode flag.
Codegen result with success status, artifact verification, and retry flag.
Run known-issue diagnostic checks against the target directory.
Used by mj doctor to detect issues that the installer would
automatically patch during a fresh install.
Returns an array of diagnostic results — one per known issue that was detected (or confirmed absent) in the target directory.
Phase H — Runs MJ CodeGen, verifies artifacts, and applies post-codegen fixups.
This is the most complex phase in the install pipeline. After code generation succeeds, it runs a 4-step post-codegen pipeline to ensure class registration manifests are current and known source-level issues are patched.
Example