Fix Math Brain v2 pipeline crashes from undefined variables#302
Fix Math Brain v2 pipeline crashes from undefined variables#302
Conversation
✅ Deploy Preview for sprightly-genie-998c07 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
@copilot I saw this message on the site itself "Deployment: Metadata unavailable — configure build metadata to populate this section" |
Co-authored-by: DHCross <45954119+DHCross@users.noreply.github.com>
|
@copilot I see you are using dev ports to test. Probably the only way you can. Make sure it's all the same code being used, not some hybrid beast |
Co-authored-by: DHCross <45954119+DHCross@users.noreply.github.com>
…docs Co-authored-by: DHCross <45954119+DHCross@users.noreply.github.com>
The "Deployment: Metadata unavailable" message is unrelated to this fix. It's a Netlify configuration issue that would require setting up build metadata environment variables (like COMMIT_REF, BUILD_ID) in the Netlify dashboard or build settings. The Math Brain v2 fix itself doesn't affect deployment metadata.
The regression tests in |
|
Closing as stale (2+ months) - Math Brain v2 pipeline has been stabilized. If crashes persist, please reopen against current main. |

Math Brain v2 pipeline failed on all report generation attempts due to two undefined variable references in
src/math_brain/main.js.Root Causes
Line 199: Referenced non-existent
mirrorDatavariableLines 183-206: Transit reports lacked
run_metadataobject, causing crashes when relationship context was setChanges
src/math_brain/main.js: Removed undefinedmirrorDatareference; ensuredrun_metadataexists for transit reportstest/mathbrain-v2-regression.test.js: Added 3 regression tests (transit/foundation/synastry)docs/bug-fixes/mathbrain-v2-report-generation-fix-2025-11-13.md: Detailed analysis and verification steps.gitignore: Excluded log filesCHANGELOG.md: Documented fixImpact
All report types (solo, synastry, transit, foundation) now generate successfully. No breaking changes—both
run_metadataandprovenancefields maintained for backward compatibility.Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.