Use dotenv parsing to distinguish comments from secret content, mask shadowed populated definitions, and resolve editor masks against current disk values instead of stale snapshots.
Treat missing stores as empty, reject unreadable-store edits, and retain an unavailable value through settings normalization so unrelated updates cannot erase secrets, even after a transient read failure recovers. Cover failed reads, recovery, rotation, and masked round trips.
Separate reading the configured key value from selecting a runtime key.
Settings and key reveal retain the complete comma-separated list; model
calls keep the existing rotation and provider hooks. Runtime-only OAuth
placeholders are not treated as configured keys.
Keep the existing 6.5x Git-version-cache save optimization unchanged.
Verified 24 focused settings/profile tests, 30 model-key tests, and the
Docker framework getter/cache/OAuth suite, including alias preservation
and the configured-key versus runtime-hook boundary.