Skip to content

Add optional version field to global agents.config.yaml#14

Draft
larohra with Copilot wants to merge 2 commits into
mainfrom
copilot/add-version-to-global-config
Draft

Add optional version field to global agents.config.yaml#14
larohra with Copilot wants to merge 2 commits into
mainfrom
copilot/add-version-to-global-config

Conversation

Copilot AI commented May 19, 2026

Copy link
Copy Markdown
Contributor

Allow tracking changes to the global configuration file by adding a version identifier.

Changes

  • Schema (config/schema.py): Added optional version: str | None = None to GlobalConfig. A mode="before" validator coerces numeric YAML literals (1, 1.0) to strings and rejects booleans. extra="forbid" is preserved.
  • Tests (test_config_loader.py): Updated the empty-dump assertion; added cases for explicit string and numeric-coerced versions.
  • Docs (docs/front-matter-spec.md): Listed version in the global optional-properties reference and described its purpose.
  • Samples: Added version: "1.0" to the three sample agents.config.yaml files.

Example

# agents.config.yaml
version: "1.0"
model: gpt-4o
timeout: 900

The field is fully optional — existing configs without version continue to load unchanged. No semantics are attached to the value; it is informational metadata for users to track config evolution.

Copilot AI linked an issue May 19, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Add a version to global config file for tracking changes Add optional version field to global agents.config.yaml May 19, 2026
Copilot AI requested a review from larohra May 19, 2026 20:20
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.

Add a Version to Global config file

2 participants