feat(server): install provider CLI updates in the background #17585
main fromt3/background-provider-updatesopened View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
juliusmarminge added labelsmacroscope-review
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:L
- apps/server/src/orchestration-v2/ProjectionStore.ts lines 577 to 580OutdatedResolvedby coderabbitai[bot](GitHub profile, opens in a new tab)@@ -564,3 +567,14 @@564567 )565568 );566569 }570+ case "active-work":571+ return (572+ projection.runs.some(573+ (run) =>574+ ["preparing", "starting", "running", "waiting"].includes(run.status) ||575+ (run.status === "queued" && run.queueHeld !== true),576+ ) ||577+ projection.runtimeRequests.some((request) => request.status === "pending") ||578+ projection.providerThreads.some(579+ (thread) =>580+ thread.status === "active" || (thread.pendingBackgroundTasks?.length ?? 0) > 0,apps/server/src/orchestration-v2/ProjectionStore.ts lines 578 to 580OutdatedResolvedby coderabbitai[bot](GitHub profile, opens in a new tab)@@ -564,3 +567,14 @@564567 )565568 );566569 }570+ case "active-work":571+ return (572+ projection.runs.some(573+ (run) =>574+ ["preparing", "starting", "running", "waiting"].includes(run.status) ||575+ (run.status === "queued" && run.queueHeld !== true),576+ ) ||577+ projection.runtimeRequests.some((request) => request.status === "pending") ||578+ projection.providerThreads.some(579+ (thread) =>580+ thread.status === "active" || (thread.pendingBackgroundTasks?.length ?? 0) > 0,apps/server/src/updates/UpdateWindow.ts lines 174 to 179OutdatedResolvedby coderabbitai[bot](GitHub profile, opens in a new tab)@@ -0,0 +159,21 @@159+ );160+ if (Option.isNone(tasks)) {161+ return { open: false, blockers };162+ }163+ for (const task of tasks.value.tasks) {164+ if (task.lastRunStatus === "running") {165+ blockers.push({166+ type: "scheduled-task",167+ taskId: task.id,168+ title: task.title,169+ runsAt: null,170+ });171+ continue;172+ }173+ if (!task.enabled || task.nextRunAt === null) continue;174+ if (175+ task.schedule.type === "interval" &&176+ task.schedule.everyMs < Duration.toMillis(FREQUENT_TASK_INTERVAL)177+ ) {178+ continue;179+ }apps/server/src/updates/UpdateWindow.ts lines 191 to 195OutdatedResolvedby coderabbitai[bot](GitHub profile, opens in a new tab)@@ -0,0 +175,21 @@175+ task.schedule.type === "interval" &&176+ task.schedule.everyMs < Duration.toMillis(FREQUENT_TASK_INTERVAL)177+ ) {178+ continue;179+ }180+ const runsAt = DateTime.make(task.nextRunAt);181+ if (Option.isSome(runsAt) && !DateTime.isGreaterThan(runsAt.value, horizon)) {182+ blockers.push({183+ type: "scheduled-task",184+ taskId: task.id,185+ title: task.title,186+ runsAt: runsAt.value,187+ });188+ }189+ }190+191+ const settings = yield* serverSettings.getSettings.pipe(Effect.option);192+ if (Option.isSome(settings) && settings.value.autoResumeLimitedThreads) {193+ const limited = yield* projections194+ .getLimitRecoveryCandidates({ now: horizon, autoResume: true, snooze: false })195+ .pipe(Effect.orElseSucceed(() => []));
github-actions[bot](GitHub profile, opens in a new tab) removed labelssize:L
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:XL
- apps/server/src/provider/providerMaintenanceCommandCoordinator.ts lines 16 to 22OutdatedResolvedby coderabbitai[bot](GitHub profile, opens in a new tab)@@ -2,2 +2,21 @@2+import * as Context from "effect/Context";23 import * as Effect from "effect/Effect";4+import * as Layer from "effect/Layer";35 import * as Ref from "effect/Ref";6+import * as Semaphore from "effect/Semaphore";7+8+/** Shares background install admission with provider startup, before either touches a CLI. */9+export class ProviderMaintenanceAdmission extends Context.Service<10+ ProviderMaintenanceAdmission,11+ {12+ readonly withPermit: <A, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>;13+ }14+>()("t3/provider/providerMaintenanceCommandCoordinator/ProviderMaintenanceAdmission") {}15+16+// Keep one layer reference so the update window and turn startup share its permit.17+export const admissionLayer = Layer.effect(18+ ProviderMaintenanceAdmission,19+ Effect.map(Semaphore.make(1), (permit) =>20+ ProviderMaintenanceAdmission.of({ withPermit: permit.withPermits(1) }),21+ ),22+);
github-actions[bot](GitHub profile, opens in a new tab) removed labelssize:XL
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:XXL
github-actions[bot](GitHub profile, opens in a new tab) removed labelssize:XXL
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:L
- @@ -3595,3 +3614,18 @@35953614 )35963615 ELSE 0 END35973616 `;3617+ case "active-work":3618+ return sql`3619+ SELECT thread_id FROM orchestration_v2_projection_runs3620+ WHERE status IN ('preparing', 'starting', 'running', 'waiting')3621+ UNION3622+ SELECT threads.thread_id FROM orchestration_v2_projection_provider_threads AS threads3623+ WHERE CASE WHEN json_valid(threads.payload_json)3624+ THEN json_array_length(threads.payload_json, '$.pendingBackgroundTasks') > 03625+ ELSE 0 END3626+ AND EXISTS (3627+ SELECT 1 FROM orchestration_v2_projection_provider_session_bindings AS bindings3628+ CROSS JOIN orchestration_v2_projection_provider_sessions AS sessions3629+ ON sessions.provider_session_id = bindings.provider_session_id3630+ WHERE bindings.thread_id = threads.thread_id3631+ AND sessions.status NOT IN ('stopped', 'error')
github-actions[bot](GitHub profile, opens in a new tab) removed labelssize:L
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:XL
- apps/server/src/textGeneration/TextGeneration.ts line 64OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -56,3 +57,8 @@5657 export const make = Effect.gen(function* () {5758 const registry = yield* ProviderInstanceRegistry.ProviderInstanceRegistry;5859 const sourceControl = yield* SourceControlProviderRegistry.SourceControlProviderRegistry;60+ const admission = yield* ProviderMaintenanceCoordinator.ProviderMaintenanceAdmission;61+ // Waits out a background install so a provider CLI is never launched mid-replacement.62+ const instanceFor = (operation: TextGenerationOp, instanceId: ProviderInstanceId) =>63+ admission64+ .withPermit(Effect.void)
github-actions[bot](GitHub profile, opens in a new tab) removed labelssize:XL
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:XXL
- apps/server/src/provider/ProviderMaintenanceHostLock.ts line 258OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +238,21 @@238+ let readFile: string | undefined;239+ const registerRead = Effect.sync(() => {240+ const file = NodePath.join(readers, `${process.pid}-${NodeCrypto.randomUUID()}`);241+ NodeFS.writeFileSync(file, processIdentity(process.pid) ?? "", { flag: "wx" });242+ return file;243+ });244+ // A provider can launch helper CLIs while its turn holds a read lease.245+ // Joining that lease must not wait behind an installer draining this turn.246+ const acquireRead = Effect.flatMap(HeldWrite, (held) =>247+ held?.owner === owner && held.active248+ ? // A scoped verification can outlive the install. Its own reader remains249+ // visible to the next writer without admitting unrelated launches here.250+ registerRead.pipe(251+ Effect.map((file) => Effect.sync(() => NodeFS.rmSync(file, { force: true }))),252+ )253+ : Effect.acquireUseRelease(254+ Effect.interruptible(readPermit.take(1)),255+ () =>256+ Effect.uninterruptible(257+ Effect.gen(function* () {258+ if (readCount === 0) {packages/provider-core/src/server/maintenanceResolver.ts line 501OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -411,10 +482,20 @@482+ });483+ }484+ // Vite+ package shims resolve to vp itself, not the installed package.485+ if (/\/vp(?:\.exe)?$/.test(normalizeCommandPath(context.realCommandPath))) return manual;411486 if (commandPaths.some(isVitePlusGlobalCommandPath)) {412487 return makeProviderMaintenanceCapabilities({413488 provider: definition.provider,489+ env: context.env,490+ platform: context.platform,491+ installationKey: keyFor(rootAt("/.vite-plus/")),414492 packageName,415493 updateExecutable: "vp",416494 updateArgs: ["i", "-g", packageName],417495 updateLockKey: "vite-plus-global",418496 });419497 }420- if (commandPaths.some(isBunGlobalCommandPath)) {498+ const bunBin = context.env.BUN_INSTALL?.trim().replace(/[\\/]+$/, "");499+ if (500+ commandPaths.some(isBunGlobalCommandPath) ||501+ (bunBin &&apps/server/src/provider/ProviderInstallSupervisor.ts line 271OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +251,21 @@251+ try {252+ const size = NodeFS.fstatSync(fd).size;253+ const buffer = Buffer.alloc(Math.min(size, 10_000));254+ NodeFS.readSync(fd, buffer, 0, buffer.length, Math.max(0, size - buffer.length));255+ if (size > buffer.length) truncated.add(suffix);256+ if (size > 20_000) {257+ NodeFS.ftruncateSync(fd, 0);258+ NodeFS.writeSync(fd, buffer, 0, buffer.length, 0);259+ }260+ return { text: buffer.toString("utf8"), truncated: truncated.has(suffix) };261+ } finally {262+ NodeFS.closeSync(fd);263+ }264+ };265+ let heartbeat: NodeJS.Timeout | undefined;266+ let ownsGate = false;267+ let installerFinished = false;268+ const beat = (format: (line: string) => string | null) => {269+ NodeFS.utimesSync(lease, new Date(), new Date());270+ NodeFS.utimesSync(NodePath.join(receipt.directory, "gate.lock"), new Date(), new Date());271+ const text = output(".stderr").text || output(".stdout").text;apps/web/src/components/ProviderUpdatePrimaryNotification.tsx line 263OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -242,3 +252,12 @@242252 void (async () => {243253 const results = [];244254 for (const provider of oneClickProviders) {255+ const current = latestProvidersRef.current.find(256+ (candidate) => candidate.instanceId === provider.instanceId,257+ );258+ if (259+ !current ||260+ !isProviderUpdateCandidate(current) ||261+ !canOneClickUpdateProviderCandidate(current, latestProvidersRef.current)262+ ) {263+ continue;
- packages/provider-core/src/server/maintenanceResolver.ts lines 584 to 584OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -478,3 +581,4 @@478581 `${packageName}@latest`,479582 ],480583 updateLockKey: `npm-global:${normalizeCommandPath(npmPrefix)}`,584+ installationKey: `${packageName}:${identity(npmPrefix)}`,apps/server/src/orchestration-v2/ProviderSessionManager.ts line 1789OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -1696,0 +1769,21 @@1769+ providerSessionId,1770+ busyTurnKey(input.providerThread.id, input.runOrdinal),1771+ ),1772+ ),1773+ () =>1774+ hostLock.withRead(1775+ (compact ? runtime.compactThread!(input) : runtime.startTurn(input)).pipe(1776+ turnMetrics("send", input.modelSelection.model),1777+ ),1778+ hostLeases.get(runtime),1779+ ),1780+ (_, exit) =>1781+ Exit.isFailure(exit)1782+ ? observeActivity(1783+ providerSessionId,1784+ markIdle(providerSessionId, input.providerThread.id, input.runOrdinal),1785+ )1786+ : Effect.void,1787+ ),1788+ ),1789+ hostLock.withRead,apps/server/src/provider/ProviderMaintenanceHostLock.ts line 175OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +155,21 @@155+ realpath: false,156+ stale: 120_000,157+ update: 10_000,158+ fs: {159+ ...NodeFS,160+ rmdir: (161+ path: NodeFS.PathLike,162+ callback: (error: NodeJS.ErrnoException | null) => void,163+ ) => {164+ if (preserve) callback(null);165+ else NodeFS.rmdir(path, callback);166+ },167+ },168+ onCompromised: (error) =>169+ Effect.runSyncWith(services)(Deferred.die(compromised, error)),170+ }),171+ ).pipe(Effect.result);172+ if (result._tag === "Success") {173+ // An installer may have registered after our first check, before its174+ // server died and this gate's heartbeat expired.175+ if (yield* Effect.sync(() => installIsAlive(directory))) {
- apps/server/src/provider/ProviderMaintenanceHostLock.ts line 71OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +51,21 @@51+ error instanceof Error &&52+ "code" in error &&53+ (error.code === "ESRCH" || error.code === "ENOENT")54+ )55+ return false;56+ throw error;57+ }58+};59+60+/** A dead supervisor's installer still owns admission until its entire process group exits. */61+export const installIsAlive = (directory: string): boolean => {62+ const file = installLeasePath(directory);63+ let pid: number;64+ try {65+ pid = Number(NodeFS.readFileSync(file, "utf8"));66+ } catch (error) {67+ if (error instanceof Error && "code" in error && error.code === "ENOENT") return false;68+ throw error;69+ }70+ if (!Number.isSafeInteger(pid) || pid <= 0) throw new Error("Invalid provider install lease");71+ if (isProcessAlive(pid)) return true;
- apps/server/src/provider/ProviderMaintenanceHostLock.ts line 150OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +130,21 @@130+export const installChildrenAreAlive = (pid: number): boolean => {131+ const windows = NodeOS.platform() === "win32";132+ const scan = windows133+ ? NodeChildProcess.spawnSync(134+ "powershell.exe",135+ [136+ "-NoProfile",137+ "-NonInteractive",138+ "-Command",139+ 'Get-CimInstance Win32_Process -ErrorAction Stop | ForEach-Object { Write-Output "$($_.ProcessId)|$($_.ParentProcessId)" }',140+ ],141+ { encoding: "utf8", timeout: 10_000, windowsHide: true },142+ )143+ : NodeChildProcess.spawnSync("ps", ["-ax", "-o", "pid=", "-o", "pgid=", "-o", "stat="], {144+ encoding: "utf8",145+ timeout: 10_000,146+ });147+ if (scan.error || scan.status !== 0)148+ throw new Error("Could not inspect provider installer processes");149+ if (windows) {150+ const descendants = new Set([pid]);apps/server/src/provider/ProviderInstallSupervisor.ts lines 177 to 183OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +163,21 @@163+ // before this write cannot authorize a late installer to start.164+ yield* Effect.try(() =>165+ NodeFS.writeFileSync(`${file}.start`, receipt.id, { mode: 0o600 }),166+ );167+ started = true;168+ }169+ if (current.progress && current.progress !== progress) {170+ progress = current.progress;171+ if (input.onProgress) yield* input.onProgress(progress);172+ }173+ if (!started && (yield* Clock.currentTimeMillis) >= deadline)174+ return yield* Effect.fail(175+ new ProviderInstallError({ message: "Provider install supervisor did not start." }),176+ );177+ if (started && !(yield* Effect.sync(() => HostLock.installIsAlive(host.directory)))) {178+ return yield* Effect.fail(179+ new ProviderInstallError({180+ message: "Provider install supervisor exited without a result.",181+ }),182+ );183+ }apps/server/src/provider/ProviderMaintenanceHostLock.ts line 359OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +339,21 @@339+ }),340+ );341+ const withRead = <A, E, R>(342+ effect: Effect.Effect<A, E, R>,343+ inheritedRelease?: Effect.Effect<void>,344+ ) => {345+ const inherited = inheritedRelease === undefined ? undefined : readTokens.get(inheritedRelease);346+ const read = Effect.acquireUseRelease(347+ acquireRead,348+ (release) => effect.pipe(Effect.provideService(HeldRead, readTokens.get(release)!)),349+ (release) => release,350+ );351+ return inherited === undefined ? read : read.pipe(Effect.provideService(HeldRead, inherited));352+ };353+ const drained = Effect.sync(() => {354+ let busy = false;355+ for (const file of NodeFS.readdirSync(readers)) {356+ const pid = Number(file.split("-")[0]);357+ try {358+ process.kill(pid, 0);359+ const identity = processIdentity(pid);
github-actions[bot](GitHub profile, opens in a new tab) removed labelssize:XXL
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:XL
maria-rcks changed the title
- apps/server/src/provider/ProviderInstallLock.ts line 111OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +91,21 @@91+ // The file holds one pid: this server's, then its installer's once spawned.92+ const pid = Number.parseInt(yield* fileSystem.readFileString(file), 10);93+ return Number.isNaN(pid) || isPidAlive(pid);94+ });95+96+ const writePid = (file: string, pid: number, flag: "w" | "wx") =>97+ fileSystem.writeFileString(file, String(pid), { flag });98+99+ /** Creates the lock file exclusively; false when it exists and is held. A stale one is reclaimed once. */100+ const acquire = Effect.fn("ProviderInstallLock.acquire")(function* (file: string) {101+ yield* fileSystem.makeDirectory(directory, { recursive: true });102+ const create = writePid(file, process.pid, "wx").pipe(103+ Effect.as(true),104+ Effect.catchTags({105+ PlatformError: (error) =>106+ error.reason._tag === "AlreadyExists" ? Effect.succeed(false) : Effect.fail(error),107+ }),108+ );109+ if (yield* create) return true;110+ if (yield* isHeld(file).pipe(ignoreNotFound(false))) return false;111+ yield* fileSystem.remove(file, { force: true });apps/server/src/provider/providerMaintenanceRunner.ts line 185OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -201,0 +165,21 @@165+ const { spawned, exited } = yield* Effect.try({166+ try: () => {167+ const child = spawnProcess(resolved.command, resolved.args, {168+ shell: resolved.shell,169+ detached: true,170+ windowsHide: true,171+ stdio: ["ignore", logFd, logFd],172+ ...(input.env ? { env: { ...environment, ...input.env } } : {}),173+ });174+ const spawned = Deferred.makeUnsafe<number, Error>();175+ const exited = Deferred.makeUnsafe<number | null>();176+ child.on("error", (cause) => Deferred.doneUnsafe(spawned, Effect.fail(toError(cause))));177+ child.once("spawn", () => Deferred.doneUnsafe(spawned, Effect.succeed(child.pid ?? 0)));178+ child.once("exit", (code) => Deferred.doneUnsafe(exited, Effect.succeed(code)));179+ child.unref();180+ return { spawned, exited };181+ },182+ catch: toError,183+ });184+ const pid = yield* Deferred.await(spawned);185+ yield* input.recordChildPid(pid);
- apps/server/src/provider/ProviderInstallLock.ts line 125OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +105,21 @@105+ Effect.catchTags({106+ PlatformError: (error) =>107+ error.reason._tag === "AlreadyExists" ? Effect.succeed(false) : Effect.fail(error),108+ }),109+ );110+111+ /** Takes the short-lived sentinel that serializes reclaimers; one left by a crashed process is removed. */112+ const claimSentinel = Effect.fn("ProviderInstallLock.claimSentinel")(function* (113+ sentinel: string,114+ ) {115+ if (yield* createExclusively(sentinel)) return true;116+ const info = yield* fileSystem.stat(sentinel).pipe(ignoreNotFound(undefined));117+ if (info !== undefined) {118+ const modifiedAt = Option.match(info.mtime, {119+ onNone: () => 0,120+ onSome: (date) => date.getTime(),121+ });122+ if ((yield* Clock.currentTimeMillis) - modifiedAt < Duration.toMillis(MAX_SENTINEL_AGE)) {123+ return false;124+ }125+ yield* fileSystem.remove(sentinel, { force: true });
- apps/server/src/background/BackgroundPolicy.ts line 278OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -266,3 +275,4 @@266275 expiresAt,267276 };268277 yield* Ref.update(leasesRef, (leases) => upsertClientActivityLease(leases, lease, now));278+ if (input.recentlyInteracted) {
github-actions[bot](GitHub profile, opens in a new tab) removed labelssize:XL
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:XXL
- apps/web/src/components/settings/SettingsPanels.tsx line 2837OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -2802,0 +2817,21 @@2817+ status={2818+ !supportsAutomaticUpdates2819+ ? "All selected connected environments must support automatic updates."2820+ : undefined2821+ }2822+ resetAction={2823+ supportsAutomaticUpdates &&2824+ settings.automaticUpdates !== DEFAULT_UNIFIED_SETTINGS.automaticUpdates ? (2825+ <SettingResetButton2826+ label="automatic updates"2827+ onClick={() =>2828+ updateSettings({ automaticUpdates: DEFAULT_UNIFIED_SETTINGS.automaticUpdates })2829+ }2830+ />2831+ ) : null2832+ }2833+ control={2834+ <ScopedSwitch2835+ settingKeys={["automaticUpdates"]}2836+ checked={settings.automaticUpdates}2837+ disabled={!supportsAutomaticUpdates}
- apps/server/src/provider/providerMaintenanceRunner.ts lines 635 to 635OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -470,3 +623,13 @@470623 }),471624 );472625 }626+ const compareVersions = fresh.compareVersions ?? compareSemverVersions;627+ if (background && candidateVersion) {628+ // Re-probe under the lock: another server or a manual update may have won.629+ const current = (yield* providerRegistry.refreshInstance(instanceId)).find(630+ (candidate) => candidate.instanceId === instanceId,631+ );632+ if (633+ !current?.enabled ||634+ !current.installed ||635+ (current.version && compareVersions(current.version, candidateVersion) >= 0)
- @@ -0,0 +151,21 @@151+ key: string,152+ contents: string,153+ owner: string,154+ ) {155+ yield* fileSystem.makeDirectory(directory, { recursive: true });156+ // Older servers wrote an unnumbered lock with the same age cap.157+ if (yield* isHeld(path.join(directory, key)).pipe(ignoreNotFound(false))) return undefined;158+ const previous = (yield* generations).filter((entry) => entry.key === key);159+ const highest = previous.reduce((max, entry) => Math.max(max, entry.generation), 0);160+ const previousFile = highest > 0 ? path.join(directory, `${key}.${highest}`) : undefined;161+ const previousRecord =162+ previousFile === undefined163+ ? undefined164+ : yield* readRecord(previousFile).pipe(ignoreNotFound(undefined));165+ if (previousRecord?.held) return undefined;166+ const next = highest + 1;167+ const file = path.join(directory, `${key}.${next}`);168+ if (!(yield* createExclusively(file, contents, owner))) return undefined;169+ // Our directory snapshot may predate a successor that already pruned this170+ // number. A recreated lower generation must never run an installer.171+ if ((yield* generations).some((entry) => entry.key === key && entry.generation > next)) {
Sign in to join this conversation.





Approvability#
Verdict: Needs Human Approval
Macroscope's review found this PR requires human approval — This enables unattended provider CLI updates by default, replacing host-shared installations during idle windows with install-lock safeguards. Human review is required for that default change and the added file-level static-analysis diagnostic suppression.
You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).