What to build
Add the side-effectful and machine-readable variants of doctor per PRD §6.6:
--repair: autofix every FAIL the tool knows how to fix in place
--json: machine-readable output for agents
Reuses the upload paths from setup (#6).
Acceptance criteria
Blocked by
Originally created in OpenCode session ID: ses_17ca8efd8ffexLcFSysAMDVNBQ
What to build
Add the side-effectful and machine-readable variants of
doctorper PRD §6.6:--repair: autofix every FAIL the tool knows how to fix in place--json: machine-readable output for agentsReuses the upload paths from
setup(#6).Acceptance criteria
--repairre-uploads the discovery doc and JWKS when they are missing, malformed, or don't match what would be computed now--repairre-enables static website hosting if it was disabledPrimaryEndpoints.Webmismatch with configissuer— the user is told to usesetup --force-issuer-rewrite(this is the flag introduced in Slice 6: jotsmith setup #6's AC)--jsonemits a single JSON object on stdout:{"checks":[{name, status, message, repaired?}], "summary":{"pass": N, "warn": N, "fail": N, "repaired": N}}; the pretty stderr report is suppressed in--jsonmode--jsonand--repairmay be combined; the JSON shows which checks were repaired//go:build integrationBlocked by
setupOriginally created in OpenCode session ID: ses_17ca8efd8ffexLcFSysAMDVNBQ