Create a stable graph-compiler cache key from operations and shapes, and flag dynamic dimensions that may recompile.
Required APIdef compile_cache_key(operations, shapes):
return {'key': ..., 'dynamic': ...}BehaviorThink through the mechanism first if you want the extra reasoning step. It never blocks the editor.
compile_cache_key(['matmul', 'relu'], [(2, 4), (2,)])the same graph and shapes reuse compiled work
compile_cache_key(['matmul'], [(-1, 4)])['dynamic']dynamic dimensions change compilation policy
2 hidden edge tests run after the visible contract passes.
Run Tests to see the contract verdicts here.