fix(config): add server_url, server_token, format, and default_estimation_actor fields to Settings #3176
No reviewers
Labels
No labels
auto/needs-reevaluation
controller-managed
auto/blocked-by-deps
auto/ci-timeout
auto/claimed-implementer
auto/claimed-merge
auto/claimed-reviewer
auto/driver-down
auto/invariant-violation
auto/last-attempt-tier-0
auto/last-attempt-tier-1
auto/last-attempt-tier-2
auto/last-attempt-tier-min
Automation Tracking
auto/needs-conflict-resolution
auto/needs-implementer
auto/postmortem
auto/ready-to-merge
auto/restart-throttled
auto/revert
auto/sentinel
auto/stale-inactivity
auto/unstable
Blocked
Bounty
$100
Bounty
$1000
Bounty
$10000
Bounty
$20
Bounty
$2000
Bounty
$250
Bounty
$50
Bounty
$500
Bounty
$5000
Bounty
$750
MoSCoW
Could have
MoSCoW
Must have
MoSCoW
Should have
Needs Feedback
Points
1
Points
13
Points
2
Points
21
Points
3
Points
34
Points
5
Points
55
Points
8
Points
88
Priority
Backlog
Priority
CI Blocker
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Signed-off: Owner
Signed-off: Scrum Master
Signed-off: Tech Lead
Spike
State
Completed
State
Duplicate
State
In Progress
State
In Review
State
Paused
State
Unverified
State
Verified
State
Wont Do
Type
Automation
Type
Bug
Type
Discussion
Type
Documentation
Type
Epic
Type
Feature
Type
Legendary
Type
Refactor
Type
Support
Type
Task
Type
Testing
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Reference
cleveragents/cleveragents-core!3176
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/settings-missing-spec-fields"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Closes #2866.
The
Settingsclass insrc/cleveragents/config/settings.pywas missing four spec-required environment variable fields, causingAttributeErrorwhen any code attempted to access them viaSettings().Changes
src/cleveragents/config/settings.pyAdded four new fields to the
Settingsclass:server_urlCLEVERAGENTS_SERVER_URLserver.urlNoneserver_tokenCLEVERAGENTS_SERVER_TOKENserver.tokenNoneformatCLEVERAGENTS_FORMATcore.formatNonedefault_estimation_actorCLEVERAGENTS_DEFAULT_ESTIMATION_ACTORcore.default_estimation_actorNoneAll fields:
str | None(no# type: ignore)Nonewhen the env var is unsetAliasChoiceswith the exact env var name, consistent with existingSettingsconventionsserver_url/server_tokenin the server config block;format/default_estimation_actorin a new "Core output and estimation configuration" section)features/settings_missing_spec_fields.feature(new)14 BDD scenarios covering:
Nonevalue for each field when env var is absentSettings.model_fieldsstr | None) for all four fieldsfeatures/steps/settings_missing_spec_fields_steps.py(new)Step definitions for the new feature file, following existing
settings_steps.pyconventions.Quality Gates
nox -e typecheck: 0 errors, 0 warningssettings_configuration.feature+settings_coverage_boost.feature): all passNoneImplementation Notes
server_urlandserver_tokenare placed adjacent to the existingserver_host,server_port,server_reloadfields for logical grouping.formatanddefault_estimation_actorare placed in a new "Core output and estimation configuration" section immediately after the server block.ConfigService._REGISTRYalready handles these env vars correctly; this PR makesSettingsconsistent with it.Automated by CleverAgents Bot
Supervisor: Implementation | Agent: ca-issue-worker
Settingsclass missingserver_url,server_token, andformatfields — spec-required env vars not captured by pydantic-settings #2866🔒 Review claimed by reviewer-pool-1 [claim-token: reviewer-pool-1-3176-1743897600]
Automated by CleverAgents Bot
Supervisor: PR Review | Agent: ca-continuous-pr-reviewer
Code Review — LGTM ✅
PR: fix(config): add server_url, server_token, format, and default_estimation_actor fields to Settings
Review Checklist
✅ Correctness: Adds 4 missing spec-required fields to
Settingsclass. All typed asstr | None, defaulting toNone, usingAliasChoicesconsistent with existing conventions.✅ Test Coverage: 14 BDD scenarios covering defaults, env var bindings, field presence, and type annotations.
✅ Type Safety: No
# type: ignore. Pyright passes with 0 errors.✅ Commit Format:
fix(config):follows Conventional Changelog format.✅ Additive only: No existing fields modified — purely additive change.
✅ Labels/Milestone:
Type/Bug, milestonev3.7.0— correctly assigned.Decision: LGTM — Proceeding to merge when CI passes.
Automated by CleverAgents Bot
Supervisor: PR Review | Agent: ca-continuous-pr-reviewer
Settingsclass missingserver_url,server_token, andformatfields — spec-required env vars not captured by pydantic-settings