Skip to content

doctor: let installed agents repair Argus - #47

Merged
lbx154 merged 1 commit into
mainfrom
feat/doctor-agent-repair
Aug 15, 2026
Merged

doctor: let installed agents repair Argus#47
lbx154 merged 1 commit into
mainfrom
feat/doctor-agent-repair

Conversation

@lbx154

@lbx154 lbx154 commented Aug 15, 2026

Copy link
Copy Markdown
Owner

What changed

  • Turn argus doctor into an active repair command: it launches a locally installed Agent CLI with real tools and Argus-scoped repair access instead of merely returning advice.
  • Let the Agent inspect/fix the installation, runtime state, configuration, and dependencies, then run non-recursive deterministic verification.
  • Verify after every Agent attempt and feed current remaining findings to the next installed backend when fallback is needed.
  • Retry stale configured binaries through PATH and support public backends including Qoder and dsh.
  • Require actual tool activity; an Agent that only explains commands does not count as repair.
  • Fail Doctor when requested Agent repair is unavailable/unverified; --advisor none remains deterministic-only.
  • Keep full repair capability while omitting untrusted logs/raw evidence from the prompt, validating Argus-owned paths, and redacting environment/custom-life-dir vault secrets from prompts, raw Agent I/O logs, and output.

Validation

  • Public targeted Doctor/backend/CLI/install suite and Ruff passed.
  • Private broad regression suite passed; full non-baseline run reached only a stale generated release identity, then release artifacts were rebuilt and release tests passed.
  • Focused Mypy and git diff --check pass.
  • Clean macOS uv tool wheel install with real Pi 0.84.1 used tools to create missing house rules/path memory, executed argus doctor --advisor none --verify --json, and returned ok: true with no remaining findings.
  • Multiple read-only review passes found and closed fallback, verification, prompt-injection, path-ownership, custom-vault secret, output-redaction, and per-call secret-refresh issues; final review had no remaining blocker.

Run Doctor through a real tool-enabled local Agent repair turn, verify after every attempt, and fall back across installed backends. Keep repairs scoped to validated Argus paths while redacting known secrets from prompts, logs, and output.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@lbx154
lbx154 merged commit 343c5c7 into main Aug 15, 2026
5 checks passed
@lbx154
lbx154 deleted the feat/doctor-agent-repair branch August 15, 2026 00:49
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