Context
Follow-up from PR #7776 (exegraph) review — wbreza Pass 3, finding M1.
Problem
\saveMu\ in \pkg/environment/manager.go\ serializes Save/Reload. Parallel hooks invoke \�zd env set\ subprocesses which acquire the same lock chain. With many concurrent hook goroutines, inconsistent acquisition ordering is theoretically possible.
Cross-process flock + in-process mutex ordering should be documented explicitly.
Acceptance Criteria
Related
Context
Follow-up from PR #7776 (exegraph) review — wbreza Pass 3, finding M1.
Problem
\saveMu\ in \pkg/environment/manager.go\ serializes Save/Reload. Parallel hooks invoke \�zd env set\ subprocesses which acquire the same lock chain. With many concurrent hook goroutines, inconsistent acquisition ordering is theoretically possible.
Cross-process flock + in-process mutex ordering should be documented explicitly.
Acceptance Criteria
Related