pub fn auto_chain_active(root: &Path) -> Result<bool, GsdConfigError>Expand description
Whether workflow._auto_chain_active is currently set under root.
Deliberately mirrors GSD’s own defensive-default idiom
(check-command-router.cjs:95-111): any shape this module does not
recognise — no workflow object, a workflow that is not an object, a
non-boolean value — reads as the inactive default. Never index; indexing
a missing key panics, and a panic here would kill an unattended run over a
hand-edited config file (ASVS V5).
§Errors
Returns GsdConfigError::Missing when no config file exists and
GsdConfigError::Json when the file is not valid JSON. A file that parses
but lacks the key is NOT an error — that is the defensive default above.