Expand description
Staged global simplification.
plan.md §4.1 calls for “stage-wise simplification” — running a
lightweight local simplifier every N rounds during a long-running
computation rather than only at the end. Per parallel_review §1
the SimplifyConfig knob existed but had no implementation;
run_staged_simplification supplies it.
The loop is intentionally simple:
- Caller passes a
DagBuilderand a rootDagNodeId. - We invoke the heuristic engine once per round, threading the rewritten root through.
- Each round goes through the full dedup-aware engine, so even aggressive multi-round configurations cannot leak duplicates.
Structs§
- Simplify
Config - Staged simplification configuration parameters.
- Thread
Local State - Per-thread telemetry for staged simplification.
Functions§
- run_
staged_ simplification - Runs the heuristic engine
cfg.intermediate_roundstimes againstroot, threading each round’s output back into the next.