By: Michael Lynch <git@mtlynch.io>
Postprocess design doc TOC with a Python script Move the TOC rewrite logic out of render-design-doc so the shell script stays focused on rendering and asset copying. Replace the inline Perl post-processing with a standalone Python helper that inserts the flattened TOC under a Contents section after Metadata.
| Time to Start | Worker time | Duration | Time to finish | Idle | |
| Config | 2s | 7s | 7s | 9s | 2s |
| Eval | 8s | 50s | 50s | 58s | 0s |
| Build | 13s | 6m32s | 1m03s | 1m16s | 0s |
| Suite | 2s | 7m30s | 1m13s | 1m16s | 2s |