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
fix(save): persist internal N-network flows via deferred processing
Internal flows (interface→subsystem, subsystem↔subsystem) previously
caused silent panics or were silently dropped because save.rs processed
flows before subsystems were registered in entity_to_id.
Solution: Deferred flow pattern
- Add DeferredFlow struct to capture flows with unregistered targets
- Early-exit check in flow loop detects unregistered subsystem targets
- process_deferred_flows() runs after all subsystems registered
- Reuses existing build_interaction() for consistent JSON output
The fix is additive - doesn't restructure existing phases, preserving
the implicit contract between save.rs and load.rs.
Fixes: interface→subsystem flow save crash
Fixes: direct subsystem↔subsystem flow persistence
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
0 commit comments