Skip to content

refactor: delete the names that #4849 leaves dead #6493

Open

Description

@devops-cli-service

Split from #5148.

Problem: _VERSION_RANGE_MARKERS and _VERSION_WILDCARD in src/devops_cli/ai/review/pipeline.py, _VAULT_AUTH_LOGIN_PATH in src/devops_cli/security/vault_lease.py, and EmbeddingCost and EmbeddingResult in src/devops_cli/ai/rag/embeddings.py lose their last callers when #4849 merges. Why deferred: #4849 has not merged, so the callers still exist and a deletion now breaks the build. Acceptance criteria: each of the five names is absent from src; a test imports each module and asserts that hasattr is False; uv run pytest tests/ai/agents/test_ai_agent_capabilities.py passes after the rows at lines 73-100 that use the two embedding models go. The work waits on #4849.

Proposed design

Problem statement

Delete the five names that #4849 leaves dead, after #4849 merges. The names are _VERSION_RANGE_MARKERS and _VERSION_WILDCARD in src/devops_cli/ai/review/pipeline.py, _VAULT_AUTH_LOGIN_PATH in src/devops_cli/security/vault_lease.py, and EmbeddingCost and EmbeddingResult in src/devops_cli/ai/rag/embeddings.py. Remove the rows at lines 73-100 of tests/ai/agents/test_ai_agent_capabilities.py that use the two embedding models. The work waits on #4849.

Acceptance criteria

Requirement: Dead names removed

The five dead names SHALL be absent from src.

Scenario: Import checks

  • WHEN a test imports devops_cli.ai.review.pipeline, devops_cli.security.vault_lease and devops_cli.ai.rag.embeddings
  • THEN hasattr returns False for _VERSION_RANGE_MARKERS, _VERSION_WILDCARD, _VAULT_AUTH_LOGIN_PATH, EmbeddingCost and EmbeddingResult.

Requirement: Capability test updated

The capability test file SHALL drop the rows at lines 73-100 that use the two embedding models and pass its test run.

Scenario: Capability test passes

  • WHEN uv run pytest tests/ai/agents/test_ai_agent_capabilities.py runs after the rows at lines 73-100 are removed
  • THEN the command exits 0.

Existing Tool Considered

No alternatives check has run. The item is a refactor that deletes five private names. No open, maintained tool or library covers the need, and the item builds no new code.

Key questions

None.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    type/refactor
    source/agent
    status/new
    on Nov 20, 2026
  2. devops-cli-service commented on Nov 20, 2026

    @devops-cli-service
    ContributorAuthor
  3. added
    value/medium
    effort/low
    priority/p2-medium
    on Nov 20, 2026
  4. devops-cli-service commented on Nov 20, 2026

    @devops-cli-service
    ContributorAuthor

    Next step: the alternatives check records a verdict. See the section Proposed design of the body.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lowpriority/p2-mediumsource/agentstatus/newtype/refactorvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions