Skip to content

TOOLS-145: Make doctor automatic and attention-first - #182

Merged
averycrespi merged 3 commits into
avery/tools-147-retire-maintenancefrom
avery/tools-145-attention-first-doctor
Nov 3, 2026
Merged

averycrespi merged 3 commits into
avery/tools-147-retire-maintenancefrom
avery/tools-145-attention-first-doctor

Conversation

@averycrespi

Copy link
Copy Markdown
Owner

Context

TOOLS-145 completes stack 146 → 147 → 145. Target: avery/tools-147-retire-maintenance, not main. Doctor should answer whether the selected installation is usable and what needs attention without performing repair or dispatching upstream work.

Changes

  • Automatically combine bounded readiness and administrator-authenticated status, adopting live evidence only after selected-installation correlation.
  • Lead human output with running/reachable state and actionable problems/setup tasks; retain supporting facts in verbose/JSON output with explicit summary and exit semantics.
  • Reuse domain-owned credential setup facts and current server/storage/history status. Disabled resources stay inactive; external client CA trust stays unverified.
  • Remove --online and --verify-storage; stopped metadata uses the existing no-create lock and immutable reads, never integrity scans, repair, token refresh, OAuth, subprocesses or tool execution.
  • Align public status contracts, operator/design guidance, Docker adapters and real CLI regressions. Preserve both stores, identities and historical artifacts.

Review Notes

Incremental change is against immutable creation base e856ddd536328e372cfaa86cbdf8e1e537ffcab0. Authenticated installation/root evidence is correlation under the existing trusted-local/forwarding model, not cryptographic authentication of a malicious listener. Older/unmatched listeners remain unverified. The shared browser status decoder and generated bundle accept the new bounded optional status metadata without changing presentation; affected Chromium desktop/narrow states were exercised and inspected. No merge, deployment, installed-resource changes or cleanup.

Test Plan

  • Passed make -C agent-gateway verify and ordinary commit hooks.
  • Passed npm run format:check and root make test-ci (85 tests).
  • Passed focused race-enabled count-one doctor/storage/setup/status regressions and full CLI/contract/API packages.
  • Passed affected real-binary E2E owners, including first-run, status, authority lifecycle, output canaries, executable names and retained artifacts.
  • Passed frontend typecheck, deterministic build/generated verification, 189 Node tests, affected Overview/System Chromium scenarios and actual producer/browser canary plus the real-Gateway accessibility owner. Inspected desktop/narrow light/dark healthy, degraded/loading and stale/error states.
  • Required exact-head CI remains the publication qualification gate, including real Docker and Linux/macOS owners. Local source tests do not qualify installed hosts, client CA adoption or power-loss behavior.

@averycrespi
averycrespi marked this pull request as ready for review November 2, 2026 07:52
@averycrespi
averycrespi added this pull request to stack #183 November 3, 2026 22:10
@averycrespi
averycrespi merged commit 0f90d09 into main Nov 3, 2026
19 checks passed
@averycrespi
averycrespi deleted the avery/tools-145-attention-first-doctor branch November 3, 2026 22:12
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