Skip to content

fix: resolve lab config through active environment for scoring - #405

Merged
mwendigg merged 1 commit into
dreadnode:mainfrom
l50:upstream/score-resolved-lab-config
Aug 3, 2026
Merged

fix: resolve lab config through active environment for scoring#405
mwendigg merged 1 commit into
dreadnode:mainfrom
l50:upstream/score-resolved-lab-config

Conversation

@l50

@l50 l50 commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Key Changes:

  • Scoring and scoreboard commands now honor the active environment when resolving the default GOAD config path
  • Replaced hardcoded ad/GOAD/data/config.json path with cfg.ResolvedLabConfigPath() so overlays and variant labs are scored correctly
  • Updated CLI flag help text to reflect the new environment-aware default

Changed:

  • Default config resolution in runScoreGenerateKey - Replaced the hardcoded ad/GOAD/data/config.json fallback with cfg.ResolvedLabConfigPath(), ensuring the selected --env, overlays, and variant labs are honored instead of always scoring the base lab (cli/cmd/score.go)
  • Default config resolution in runScoreboardDemo - Applied the same environment-aware resolution so demo scoring matches the active environment (cli/cmd/scoreboard.go)
  • Flag help text - Updated the --config flag descriptions across the score generate-key, scoreboard generate-key alias, and scoreboard demo commands to describe the new default as "the active environment's resolved lab config" (cli/cmd/score.go, cli/cmd/scoreboard.go)

**Changed:**

- Score key generation now resolves the GOAD config via the active environment's `ResolvedLabConfigPath()` instead of hardcoding `ad/GOAD/data/config.json`, so overlays and variant labs are honored for the selected `--env` - `cli/cmd/score.go`
- Scoreboard demo and generate-key alias commands use the same environment-resolved config path, ensuring the correct lab is scored - `cli/cmd/scoreboard.go`
- Updated flag help text for `--config` to describe the new default as the active environment's resolved lab config
@mwendigg
mwendigg added this pull request to the merge queue Aug 3, 2026
Merged via the queue into dreadnode:main with commit f65dac1 Aug 3, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants