Skills: retract uninstalled skills from the mid-session catalogue (symmetric to install announcement)
Follow-up tracked from review of #3722.
Context
#3722 added a mid-session skill refresh: installing a skill mid-conversation surfaces it to the model via a one-shot [skills update] user-turn announcement (the system-prompt ## Installed Skills block is frozen at turn 1 for KV-cache stability, so the announcement is the surfacing mechanism — mirroring the integration/MCP pattern).
Gap
The path is asymmetric: install is announced, but uninstall is not retracted. After a mid-session uninstall:
- the frozen
## Installed Skillsblock still advertises the removed skill, and run_skillagainst it fails at the worker (skill_executorcan't load a SKILL.md that's gone).
refresh_workflows already detects removals (the id-set diff shrinks); it just doesn't queue a retraction note. This matches the current integration/MCP announcements, which also only announce additions — so a shared fix could cover all three.
Proposed
Queue a one-shot [skills update] removed: <id> note on the next user turn when refresh_workflows sees an id drop (parallel to pending_skill_announcement for adds), telling the model the skill is no longer available and not to call run_skill against it. Consider generalizing to the integration/MCP announcement helpers.
Acceptance
- Uninstalling a skill mid-session produces a removal note on the next user turn.
- A unit test asserts the removal note fires (mirror of the install-announcement test).
Picking this one up. Going to mirror the install-side announcement so uninstalled skills get retracted from the live catalogue on the next turn too.