Skip to content
ExplanationUnreviewed

0003: Runtime configuration layering

Recorded 2026-11-23. Checked-in runtime templates (infra/runtime/*.example.toml) define portable schema defaults, while untracked local files (infra/runtime/*.toml, .env) bind machine paths, GPU endpoints, and credentials outside experiment configs.

Context

Embedding local disk paths, bucket URLs, or API tokens directly inside research/ experiment TOML files breaks reproducibility across developer laptops, Modal containers, and SkyPilot nodes and risks leaking secrets into commits.

Decision

  1. Check portable example templates (infra/runtime/local.example.toml, modal.example.toml, skypilot.example.toml) and shared environment defaults (SKYPILOT_PROJECT_CONFIG in .envrc) into version control.
  2. Keep instantiated infra/runtime/*.toml files and .env secrets untracked, binding every training or data CLI call explicitly via --runtime.

Consequences and revisit conditions

  • The same experiment config runs unchanged across local workstation, Modal, and SkyPilot environments by switching --runtime.
  • Revisit this split only if a future remote runner replaces file-based runtime profiles with centralized secret injection.

Type to search…

↑↓ navigate↵ selectEsc close