UAT: .bumpversion.cfg references wrong package name (stockstack instead of cleveragents) — automated version bumping is broken #4081

Open
opened 2026-04-06 10:09:01 +00:00 by freemo · 1 comment
Owner

Metadata

  • Branch: fix/bumpversion-cfg-wrong-package-name
  • Commit Message: fix(config): correct .bumpversion.cfg to reference cleveragents package and pyproject.toml
  • Milestone: (backlog — see note below)
  • Parent Epic: (orphan — needs manual linking, see comment)

Background and Context

The .bumpversion.cfg file at the project root contains stale references to a package named stockstack and files (setup.py, docs/conf.py) that do not exist in this project. The actual package is cleveragents at src/cleveragents/__init__.py, and the project uses pyproject.toml for version management. As a result, running bump2version to increment the project version will fail silently or update the wrong file, leaving the actual package version (__version__) unchanged and breaking the semantic versioning policy described in CONTRIBUTING.md.

Current Behavior

Current .bumpversion.cfg content:

[bumpversion]
current_version = 0.1.0
commit = True
tag = True

[bumpversion:file:setup.py]

[bumpversion:file:docs/conf.py]

[bumpversion:file:src/stockstack/__init__.py]

Problems identified:

  1. current_version = 0.1.0 — stale; actual version is 1.0.0 (in pyproject.toml and src/cleveragents/__init__.py)
  2. [bumpversion:file:src/stockstack/__init__.py] — wrong package name (stockstack vs cleveragents)
  3. [bumpversion:file:setup.py]setup.py does not exist (project uses pyproject.toml)
  4. [bumpversion:file:docs/conf.py]docs/conf.py does not exist
  5. pyproject.toml is not listed as a file to update

Expected Behavior

.bumpversion.cfg should reference the correct package file so that bump2version patch/minor/major correctly updates:

  1. pyproject.toml version field
  2. src/cleveragents/__init__.py __version__ field

Running bump2version patch should atomically update both files, commit, and tag the release — enabling the semantic versioning policy in CONTRIBUTING.md to be enforced automatically.

Steps to Reproduce

  1. Run bump2version patch (or bump2version minor)
  2. Observe that src/cleveragents/__init__.py is NOT updated
  3. Observe that pyproject.toml is NOT updated
  4. The version in the actual package remains 1.0.0 regardless of the bump command

Impact

  • Automated version bumping is broken — releases cannot be properly versioned
  • The semantic versioning policy described in CONTRIBUTING.md cannot be enforced automatically
  • Breaking changes cannot be properly tracked via MAJOR version increments
  • The project's version management is in an inconsistent state

Acceptance Criteria

  • .bumpversion.cfg current_version is updated to 1.0.0 (matching pyproject.toml and src/cleveragents/__init__.py)
  • [bumpversion:file:src/stockstack/__init__.py] is replaced with [bumpversion:file:src/cleveragents/__init__.py]
  • [bumpversion:file:setup.py] is removed (file does not exist)
  • [bumpversion:file:docs/conf.py] is removed (file does not exist)
  • [bumpversion:file:pyproject.toml] is added with correct search/replace patterns
  • Running bump2version patch in a clean working tree updates both pyproject.toml and src/cleveragents/__init__.py atomically
  • All nox stages pass after the fix

Suggested Fix

Update .bumpversion.cfg to:

[bumpversion]
current_version = 1.0.0
commit = True
tag = True

[bumpversion:file:pyproject.toml]
search = version = "{current_version}"
replace = version = "{new_version}"

[bumpversion:file:src/cleveragents/__init__.py]
search = __version__ = "{current_version}"
replace = __version__ = "{new_version}"

Code Location

  • .bumpversion.cfg — incorrect package references (fix target)
  • src/cleveragents/__init__.py — correct location for __version__
  • pyproject.toml — correct location for version

Subtasks

  • Verify current .bumpversion.cfg content and confirm all stale references
  • Update current_version to 1.0.0 in .bumpversion.cfg
  • Replace [bumpversion:file:src/stockstack/__init__.py] with [bumpversion:file:src/cleveragents/__init__.py]
  • Remove non-existent file entries (setup.py, docs/conf.py)
  • Add [bumpversion:file:pyproject.toml] with correct search/replace patterns
  • Verify bump2version patch (dry-run) correctly identifies both target files
  • Commit fix with message: fix(config): correct .bumpversion.cfg to reference cleveragents package and pyproject.toml

Definition of Done

  • All subtasks above are checked
  • .bumpversion.cfg references only files that exist in the repository
  • bump2version patch --dry-run exits 0 and shows correct file updates
  • All nox stages pass
  • Coverage >= 97%
  • Commit created with message fix(config): correct .bumpversion.cfg to reference cleveragents package and pyproject.toml
  • Commit pushed to branch fix/bumpversion-cfg-wrong-package-name
  • Associated Pull Request merged

Backlog note: This issue was discovered during autonomous operation
on milestone v3.2.0. It does not block milestone completion and has been
placed in the backlog for human review and future milestone assignment.


Automated by CleverAgents Bot
Supervisor: UAT Testing | Agent: ca-new-issue-creator

## Metadata - **Branch**: `fix/bumpversion-cfg-wrong-package-name` - **Commit Message**: `fix(config): correct .bumpversion.cfg to reference cleveragents package and pyproject.toml` - **Milestone**: *(backlog — see note below)* - **Parent Epic**: *(orphan — needs manual linking, see comment)* ## Background and Context The `.bumpversion.cfg` file at the project root contains stale references to a package named `stockstack` and files (`setup.py`, `docs/conf.py`) that do not exist in this project. The actual package is `cleveragents` at `src/cleveragents/__init__.py`, and the project uses `pyproject.toml` for version management. As a result, running `bump2version` to increment the project version will fail silently or update the wrong file, leaving the actual package version (`__version__`) unchanged and breaking the semantic versioning policy described in CONTRIBUTING.md. ## Current Behavior Current `.bumpversion.cfg` content: ```ini [bumpversion] current_version = 0.1.0 commit = True tag = True [bumpversion:file:setup.py] [bumpversion:file:docs/conf.py] [bumpversion:file:src/stockstack/__init__.py] ``` Problems identified: 1. `current_version = 0.1.0` — stale; actual version is `1.0.0` (in `pyproject.toml` and `src/cleveragents/__init__.py`) 2. `[bumpversion:file:src/stockstack/__init__.py]` — wrong package name (`stockstack` vs `cleveragents`) 3. `[bumpversion:file:setup.py]` — `setup.py` does not exist (project uses `pyproject.toml`) 4. `[bumpversion:file:docs/conf.py]` — `docs/conf.py` does not exist 5. `pyproject.toml` is not listed as a file to update ## Expected Behavior `.bumpversion.cfg` should reference the correct package file so that `bump2version patch/minor/major` correctly updates: 1. `pyproject.toml` `version` field 2. `src/cleveragents/__init__.py` `__version__` field Running `bump2version patch` should atomically update both files, commit, and tag the release — enabling the semantic versioning policy in CONTRIBUTING.md to be enforced automatically. ## Steps to Reproduce 1. Run `bump2version patch` (or `bump2version minor`) 2. Observe that `src/cleveragents/__init__.py` is NOT updated 3. Observe that `pyproject.toml` is NOT updated 4. The version in the actual package remains `1.0.0` regardless of the bump command ## Impact - Automated version bumping is broken — releases cannot be properly versioned - The semantic versioning policy described in CONTRIBUTING.md cannot be enforced automatically - Breaking changes cannot be properly tracked via MAJOR version increments - The project's version management is in an inconsistent state ## Acceptance Criteria - [ ] `.bumpversion.cfg` `current_version` is updated to `1.0.0` (matching `pyproject.toml` and `src/cleveragents/__init__.py`) - [ ] `[bumpversion:file:src/stockstack/__init__.py]` is replaced with `[bumpversion:file:src/cleveragents/__init__.py]` - [ ] `[bumpversion:file:setup.py]` is removed (file does not exist) - [ ] `[bumpversion:file:docs/conf.py]` is removed (file does not exist) - [ ] `[bumpversion:file:pyproject.toml]` is added with correct `search`/`replace` patterns - [ ] Running `bump2version patch` in a clean working tree updates both `pyproject.toml` and `src/cleveragents/__init__.py` atomically - [ ] All nox stages pass after the fix ## Suggested Fix Update `.bumpversion.cfg` to: ```ini [bumpversion] current_version = 1.0.0 commit = True tag = True [bumpversion:file:pyproject.toml] search = version = "{current_version}" replace = version = "{new_version}" [bumpversion:file:src/cleveragents/__init__.py] search = __version__ = "{current_version}" replace = __version__ = "{new_version}" ``` ## Code Location - `.bumpversion.cfg` — incorrect package references (fix target) - `src/cleveragents/__init__.py` — correct location for `__version__` - `pyproject.toml` — correct location for `version` ## Subtasks - [ ] Verify current `.bumpversion.cfg` content and confirm all stale references - [ ] Update `current_version` to `1.0.0` in `.bumpversion.cfg` - [ ] Replace `[bumpversion:file:src/stockstack/__init__.py]` with `[bumpversion:file:src/cleveragents/__init__.py]` - [ ] Remove non-existent file entries (`setup.py`, `docs/conf.py`) - [ ] Add `[bumpversion:file:pyproject.toml]` with correct search/replace patterns - [ ] Verify `bump2version patch` (dry-run) correctly identifies both target files - [ ] Commit fix with message: `fix(config): correct .bumpversion.cfg to reference cleveragents package and pyproject.toml` ## Definition of Done - [ ] All subtasks above are checked - [ ] `.bumpversion.cfg` references only files that exist in the repository - [ ] `bump2version patch --dry-run` exits 0 and shows correct file updates - [ ] All nox stages pass - [ ] Coverage >= 97% - [ ] Commit created with message `fix(config): correct .bumpversion.cfg to reference cleveragents package and pyproject.toml` - [ ] Commit pushed to branch `fix/bumpversion-cfg-wrong-package-name` - [ ] Associated Pull Request merged > **Backlog note:** This issue was discovered during autonomous operation > on milestone v3.2.0. It does not block milestone completion and has been > placed in the backlog for human review and future milestone assignment. --- **Automated by CleverAgents Bot** Supervisor: UAT Testing | Agent: ca-new-issue-creator
Author
Owner

⚠️ Orphan Issue — Needs Manual Parent Epic Linking

This issue was created without a specified parent Epic. Per CONTRIBUTING.md, orphan issues are not permitted — every issue must be linked to a parent Epic using Forgejo's dependency system (child blocks parent).

Action required by a maintainer: Please identify the appropriate parent Epic for this issue (likely an Epic covering CI tooling, release management, or project configuration hygiene) and create the dependency link so that this issue blocks the parent Epic.

To link manually via the Forgejo UI: open the parent Epic → Dependencies → add this issue (#4081) as a dependency.

To link via API (child blocks parent):

curl -s -X POST "https://git.cleverthis.com/api/v1/repos/cleveragents/cleveragents-core/issues/4081/blocks" \
  -H "Authorization: token <PAT>" \
  -H "Content-Type: application/json" \
  -d '{"owner": "cleveragents", "repo": "cleveragents-core", "index": <PARENT_EPIC_NUMBER>}'

Automated by CleverAgents Bot
Supervisor: UAT Testing | Agent: ca-new-issue-creator

⚠️ **Orphan Issue — Needs Manual Parent Epic Linking** This issue was created without a specified parent Epic. Per CONTRIBUTING.md, orphan issues are not permitted — every issue must be linked to a parent Epic using Forgejo's dependency system (child **blocks** parent). **Action required by a maintainer:** Please identify the appropriate parent Epic for this issue (likely an Epic covering CI tooling, release management, or project configuration hygiene) and create the dependency link so that this issue **blocks** the parent Epic. To link manually via the Forgejo UI: open the parent Epic → *Dependencies* → add this issue (#4081) as a dependency. To link via API (child blocks parent): ```bash curl -s -X POST "https://git.cleverthis.com/api/v1/repos/cleveragents/cleveragents-core/issues/4081/blocks" \ -H "Authorization: token <PAT>" \ -H "Content-Type: application/json" \ -d '{"owner": "cleveragents", "repo": "cleveragents-core", "index": <PARENT_EPIC_NUMBER>}' ``` --- **Automated by CleverAgents Bot** Supervisor: UAT Testing | Agent: ca-new-issue-creator
HAL9000 added this to the v3.5.0 milestone 2026-04-09 03:11:17 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
cleveragents/cleveragents-core#4081
No description provided.