feat(install): install.sh reports asb's agents, asks for the default agent, and uninstalls them (#6) #386
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.45) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 289 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.339
Shallow Review Depth
shallow_review_depth
0.289
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #386"
general
weight: 0.35
pearu
Fifth of the PRs that make asb install its agents itself (#6): install.sh reports the agents asb installed, asks for the default agent, and uninstalls them.
The agents report. For an agent with an install recipe, one line:
An agent without a recipe keeps today's PATH line. An install or a re-run never installs, updates or removes an agent and downloads nothing, so a re-run after a new pin only reports it;
asb --install AGENTmoves to it. The line that told a recipe agent's user to put it on PATH is gone.The default agent. At a terminal, when asb can run several agents and no default is set, install.sh asks which one is the default:
An empty answer leaves it unset. The answer is written by the installed engine,
asb --set-default-agent NAME, the one writer. Without a terminal, with--yes, or with a default already set, it does not ask and says the current default and how to change it.Uninstall now removes the agents asb installed,
<state>/<profile>/install/with every version, listed in the plan beforehand (a symlinkedinstall/is left alone). The rest of asb's state is kept as before, and the plan now names it: role stores, transcripts, and each account's login under<profile>/accounts/NAME/, with how to remove them.It also fixes install.sh aborting under a terminal with
TERMunset,dumborvt100: colours are used only whentputcan give them.Docs: README install section, install.sh's header and
--help, docs/updating.md, docs/troubleshooting.md, CHANGELOG.Tests:
tests/unit/installer.batsfor the report, the question (answers, a real pseudo-terminal, every case where it is not asked) and the uninstall;tests/e2e/install.batsfor the report line and an installed agent removed by--uninstallwith the state kept.scripts/check.shand the e2e suite pass locally.---
_🤖 Drafted by Claude Code (an AI agent) and reviewed & approved by pearu._