Skip to content

Warn when a config sets a key removed in 1.0 - #163

Merged
DevMortimer merged 16 commits into
mainfrom
carvel/deckhand-b/approval-context
Oct 1, 2026
Merged

DevMortimer merged 16 commits into
mainfrom
carvel/deckhand-b/approval-context

Conversation

@DevMortimer

Copy link
Copy Markdown
Owner

conscience.loadThreshold and learning.adaptiveThresholds were documented in 0.74.1 and removed since; no code reads them. A config file that still sets one loaded without a word, so a user could believe the setting still worked.

Change

  • src/config.ts: a user file or a project file that sets either key now adds one config warning for that key. The warning names the key, says it was removed in 1.0 and is ignored, and says what happens now: no score loads a skill by itself (the conscience names a skill and asks the agent to load it; conscience.skills.mode is the only switch), and thresholds never change on their own (/warden recommend suggests changes from hold history).
  • The two other removed learning keys (minHoldsForAdaptive, adaptationRate) were never documented and give no warning.
  • docs/configuration.md: a "Removed in 1.0" note. CHANGELOG.md: 0.90.0.

Tests

Each key gives exactly one warning from the user file and one from a project file; a config without them gives none. The existing test for a file that sets the removed keys now expects the two warnings. npm run check passes (1,413 tests).

@DevMortimer
DevMortimer merged commit a3427a3 into main Oct 1, 2026
6 checks passed
@DevMortimer
DevMortimer deleted the carvel/deckhand-b/approval-context branch October 1, 2026 03:34
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.

1 participant