\begin{tikzpicture} \node[initial] (start) at (0,0) {}; \node[activity] (discover) at (0,-1) {Discover candidates / staged updates}; \node[activity] (validate) at (0,-2.5) {Validate metadata, API/data/capabilities; resolve explicit choices}; \node[choice] (compatible) at (0,-4.4) {Compatible choice?}; \node[activitySide] (inactive) at (-6.2,-4.4) {Keep candidate inactive; explain; retain working version}; \node[activity] (active) at (0,-6.3) {Activate at safe point; retain while document/gesture/work depends on provider}; \node[activity] (update) at (0,-8) {Update found during session: stage separately and validate}; \node[choice] (used) at (0,-10) {Provider in use?}; \node[activitySide] (notify) at (6.2,-10) {Nonmodal Later / Restart and update; keep active version}; \node[activity] (recheck) at (0,-12) {Recheck unused; safely activate validated update}; \node[choice] (success) at (0,-14) {Activation succeeds?}; \node[activitySide] (failure) at (-6.2,-14) {Retain prior version, source and choices; report reason}; \node[final] (end) at (0,-16) {}; \draw[flow] (start)--(discover);\draw[flow] (discover)--(validate);\draw[flow] (validate)--(compatible); \draw[flow] (compatible.west)--node[above,font=\footnotesize]{[no]}(inactive.east); \draw[flow] (compatible.south)--node[right,font=\footnotesize]{[yes]}(active.north); \draw[flow] (active)--(update);\draw[flow] (update)--(used); \draw[flow] (used.east)--node[above,font=\footnotesize]{[yes]}(notify.west); \draw[flow] (used.south)--node[right,font=\footnotesize]{[no]}(recheck.north); \draw[flow] (recheck)--(success); \draw[flow] (success.south)--node[right,font=\footnotesize]{[yes]}(end.north); \draw[flow] (success.west)--node[above,font=\footnotesize]{[no]}(failure.east); \draw[flow] (failure.south) |- (end.west); \draw[flow] (notify.east) -- ++(0.8,0) |- (end.east); \draw[flow] (inactive.west) -- ++(-0.8,0) |- (end.west); \node[font=\footnotesize,align=left,text width=3.7cm] at (6.2,-13.5) {Deferred: next startup. Restart: normal unsaved-work guard. No live replacement while in use.}; \node[font=\footnotesize,align=left,text width=3.7cm] at (-6.2,-10) {Planned policy only. Staging differs from activation. Distribution and recovery mechanisms remain open.}; \end{tikzpicture}