Awesome Reviewers

Reviewer · Configurations

Config option design

When introducing new config keys, profile settings, or CLI flags, design their value space and defaults deliberately rather than ad-hoc: - Base the set of allowed values on concrete, demonstrated use cases rather than enumerating every theoretically possible combination (e.g. collapsing `trim-paths` to `"none"`, `"object"`, `"all"` instead of exposing...

Instruction

When introducing new config keys, profile settings, or CLI flags, design their value space and defaults deliberately rather than ad-hoc:

  • Base the set of allowed values on concrete, demonstrated use cases rather than enumerating every theoretically possible combination (e.g. collapsing trim-paths to "none", "object", "all" instead of exposing every granular scope, while documenting why each remaining option exists, such as object for local debuggability vs. all for hermetic/reproducible builds).
  • Avoid choosing names/defaults that lock in current implementation details that may later change. If an option mirrors an internal mechanism that could evolve (e.g. mtime-based fingerprinting), prefer forward-looking names like "auto" over implementation-specific ones like "mtime", so the default behavior can be swapped without a breaking rename.
  • Keep value-parsing formats consistent with existing similar options (e.g. duration formats shared between global-min-publish-age and cache.auto-clean-frequency), and explicitly document edge-case semantics (DST handling, singular vs. plural units, alternative standards like ISO 8601) even if full support is deferred to a follow-up issue.
  • Precisely document default values/paths and the assumptions behind them (e.g. clarify that a default lockfile path is relative to the workspace root, not the current working directory), so users don’t have to infer behavior.

Applying this reduces churn from stabilizing an option prematurely, prevents ambiguous docs, and keeps the configuration surface consistent and extensible over time.