Skip to content

gaia knowledge CLI handler is untested — the BudgetConfig(block=not args.no_block) wiring and TavilyBudgetExceeded/TavilyConfigError → exit(1) mapping have no coverage #2000

Closed as not planned

Description

@github-actions

Inverting the block flag would silently disable the Tavily spend cap (real user cost); tests/unit/test_tavily_wrapper.py covers only the client, never this handler.

Where: src/gaia/cli.py · handle_knowledge_command
Dimension: tests Severity: 🟢

To turn this into a PR: a maintainer applies the bug label and the existing
auto-fix job opens the fix PR. This issue is intentionally not auto-triggered.

Activity

  1. added
    weekly-audit
    on Jul 10, 2026
  2. kovtcharov-amd commented on Sep 2, 2026

    @kovtcharov-amd
    Collaborator

    Closing as a duplicate of #2988.

    A test-coverage gap — missing test, stub test, or a test asserting a reimplementation rather than the real code path. #2988 is the existing tracking issue for these.

    This is one defect, not several. The nightly audit reports findings per affected file rather than per root cause, and does not search existing issues before filing, so a single problem arrives as many issues. A backlog audit found the audit cohort collapses from 129 issues to 55 distinct defects. Fixing #2988 resolves this one — track it there.

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

    weekly-audit

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions