Skip to content

fix: clear five review-flagged quick wins#9

Merged
akesling merged 1 commit into
mainfrom
akesling/improvements
May 8, 2026
Merged

fix: clear five review-flagged quick wins#9
akesling merged 1 commit into
mainfrom
akesling/improvements

Conversation

@akesling
Copy link
Copy Markdown
Contributor

@akesling akesling commented May 8, 2026

Summary

Closes 5 of the 22 active review-flagged annotations in the repo. Each change has a regression test; the corresponding annotation has been resolved with a record explaining the fix.

  • Cargo.toml — drop unused petgraph (graph engine was yanked in 0.5). ccfe88fa
  • agents subcommand — return Err(Validation) for unknown topics instead of process::exit(2). Exit code is now 1 with the standard qualifier: prefix that every other validation error uses. 436a095a
  • review (freshness) — resolve project root from canonical CWD before discovery, and join the root with each subject when checking span freshness. qualifier review now works from any subdirectory; previously it returned "no .qual files found" except from the project root. 65a84bf7
  • config::load — now returns Result; cli::run validates config eagerly and exits non-zero on malformed .qualifier.toml or QUALIFIER_* env vars instead of silently falling back to defaults. 8773c911
  • config user path — falls back to USERPROFILE when HOME is unset, so Windows users get the user-level config too. fe766001

Two annotations called out as quick-win candidates were skipped: da1fabb9 (ls --unqualified stub) was kept open after second-thought — the flag answers a real "where's coverage weak?" question and should be implemented separately rather than removed.

Test plan

  • cargo test — 195 tests pass (3 new integration tests, one per behavior change)
  • Each new test was watched failing before the fix landed (TDD red→green)
  • qualifier review from a nested subdir now reports FRESH, not "no .qual files found"
  • qualifier agents bogus-topic exits 1 with qualifier: no such topic ...
  • Malformed .qualifier.toml causes any qualifier command to exit non-zero with a config error
  • qualifier review from project root shows the 5 resolved annotations dropped from the active set (22 → 17)

View in Codesmith
Need help on this PR? Tag @codesmith with what you need.

  • Let Codesmith autofix CI failures and bot reviews

- drop unused petgraph dep (graph engine was yanked in 0.5)
- agents subcommand: return Err(Validation) for unknown topic instead
  of process::exit(2), so exit code is 1 with the standard "qualifier:"
  prefix like every other validation error
- review (freshness): resolve project root from canonical CWD before
  discovery, and join the root with each subject when checking spans —
  review now works from any subdirectory
- config::load returns Result; cli::run validates config eagerly and
  exits non-zero on malformed .qualifier.toml or QUALIFIER_* env vars
- user-config path falls back to USERPROFILE when HOME is unset (Windows)

Resolves annotations ccfe88fa, 436a095a, 65a84bf7, 8773c911, fe766001.
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 8, 2026

🔍 Preview deployed: https://66acb7f4.qualifier-dev.pages.dev

@akesling akesling merged commit 5242b8c into main May 8, 2026
2 checks passed
@akesling akesling deleted the akesling/improvements branch May 8, 2026 13:29
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.

1 participant