Files
cleveragents-core/features
HAL9000 082b39db79
CI / lint (pull_request) Successful in 45s
CI / push-validation (pull_request) Successful in 20s
CI / typecheck (pull_request) Successful in 1m2s
CI / build (pull_request) Successful in 47s
CI / helm (pull_request) Successful in 53s
CI / quality (pull_request) Successful in 1m8s
CI / security (pull_request) Successful in 1m11s
CI / unit_tests (pull_request) Successful in 7m21s
CI / docker (pull_request) Successful in 1m35s
CI / integration_tests (pull_request) Successful in 10m46s
CI / coverage (pull_request) Successful in 8m15s
CI / status-check (pull_request) Successful in 2s
fix(cli): repair config get JSON envelope and step staleness
The previous attempt left three CI-breaking issues:

- features/steps/config_cli_safety_net_coverage_steps.py imported
  _env_var_for_key/_normalize_key from config.py, but those helpers
  moved to _config_helpers.py and were never re-exported. Import
  from _config_helpers directly (matches where the symbols live).

- features/steps/config_get_spec_output_steps.py defined two when-
  steps whose default-parse {key} placeholders made the longer step
  ambiguous against the shorter one (behave raised AmbiguousStep on
  load). Switch those two patterns to the re matcher with [^"]+ so
  the quoted argument can't swallow ` with format "..."`.

- The same step file cached parsed JSON on context._spec_json with
  no invalidation. Behave layers context attributes — a value set at
  one scenario's layer remained visible to later scenarios, so the
  assertion read stale JSON from an earlier scenario's get. Parse
  fresh each call.

- src/cleveragents/cli/commands/config.py built a spec-correct JSON
  envelope and then passed it through format_output, which wraps its
  input in another envelope — the outer envelope's data field was
  the inner envelope, so data.type / data.source / data.overridden
  were absent. Emit the manually-built envelope directly via
  json.dumps / yaml.safe_dump so the started timing field and all
  spec data fields appear at the correct depth.

ISSUES CLOSED: #3423
2026-06-01 23:37:30 -04:00
..