Debug TOML Section Scoping Errors When a TOML parser reports unexpected type errors (e.g., "expected boolean, got string"), check if key-value pairs are accidentally nested inside a header where they don't belong. In TOML, all keys after a section header belong to that table until the next header appears. Remove duplicate keys that should only exist at the top-level scope, or move them above the section header if they're needed in the parent context. ---