You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(core): fold — opt-in build path with run-fallback for composites #1022
Part of the fold epic. Cold-handoff. Depends on #1–#3.
Context
With leaf folding working, make it a real (opt-in) build path without regressing composites. The folder handles leaves; anything it can't fold (notably composite factory calls) falls back to the existing run path. This hybrid is what lets the migration ship incrementally with zero behavior change.
Scope
Add chant build --fold (and/or a chant.config flag). When on, discovery folds leaf export const … = new T(...) declarations statically and only runs modules that contain unfoldable constructs (composite calls).
Fallback must be per-module (or per-declaration) and logged, so it's visible what still runs.
Shipped in a6c2cffb ("epic: fold TypeScript-as-Data instead of running it — #1026,#1021,#1022,#1024,#1025 + #1032"). The squash message listed the children without closing keywords, so none of them auto-closed and they stayed open after the epic #1019 was closed. Closing as bookkeeping — the work is on main and verified: fold coverage 15/98 at that commit, drift 0 across the 98-entry differential.
Activity
[-]feat(core): fold — symbolic cross-resource refs + intrinsic tagged templates[/-][+]feat(core): fold — opt-in build path with run-fallback for composites[/+]epic: fold TypeScript-as-Data instead of running it — #1026,#1021,#1022,
feat(discovery): fold composite factory calls, not just resource cons…
fix(fold): stop cross-file resolution from hanging sandbox-differential
lex00 commentedon Jul 26, 2026
Shipped in
a6c2cffb("epic: fold TypeScript-as-Data instead of running it — #1026,#1021,#1022,#1024,#1025 + #1032"). The squash message listed the children without closing keywords, so none of them auto-closed and they stayed open after the epic #1019 was closed. Closing as bookkeeping — the work is onmainand verified: fold coverage 15/98 at that commit, drift 0 across the 98-entry differential.feat(fold): resolve identifiers across the module graph (#1055)