Skip to content

fix(verify/doctor): count missing externals as failures - #623

Merged
plind-junior merged 2 commits into
vouchdev:testfrom
kurosawareiji7007-hub:fix/verify-missing-external
Jul 30, 2026
Merged

fix(verify/doctor): count missing externals as failures#623
plind-junior merged 2 commits into
vouchdev:testfrom
kurosawareiji7007-hub:fix/verify-missing-external

Conversation

@kurosawareiji7007-hub

Copy link
Copy Markdown
Contributor

Summary

  • verify_all now includes external_status=missing in the audit failed set (alongside drift), matching CLI vouch source verify.
  • health.doctor emits a warning source_missing when an upstream file locator is gone/unreadable, so doctor can no longer report ok: true while the CLI fails for the same KB.

Test plan

  • tests/test_verify.py::test_verify_all_counts_missing_external_as_failed
  • tests/test_health.py::test_doctor_warns_on_missing_external_file
  • CI green on test

Fixes #622

@github-actions github-actions Bot added docs documentation, specs, examples, and repo guidance tests tests and fixtures size: S 50-199 changed non-doc lines labels Jul 30, 2026
@plind-junior
plind-junior enabled auto-merge (squash) July 30, 2026 10:36
verify_all and doctor only treated external_status=drift as a problem,
while vouch source verify already marked missing as !. deleted upstream
files could leave doctor ok:true while the CLI failed. include missing
in the failed set and emit a source_missing warning.

Fixes vouchdev#622
auto-merge was automatically disabled July 30, 2026 11:09

Head branch was pushed to by a user without write access

@kurosawareiji7007-hub
kurosawareiji7007-hub force-pushed the fix/verify-missing-external branch from ef930e5 to d250260 Compare July 30, 2026 11:09
@plind-junior

Copy link
Copy Markdown
Member

Nice catch! Verdict approved

@plind-junior
plind-junior enabled auto-merge July 30, 2026 13:07
@plind-junior
plind-junior merged commit b03a1ce into vouchdev:test Jul 30, 2026
16 checks passed
@github-actions github-actions Bot added the ci: passing ci is green label Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci: passing ci is green docs documentation, specs, examples, and repo guidance size: S 50-199 changed non-doc lines tests tests and fixtures

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants