Draft — not published. This lesson is draft and may be incomplete or wrong. The MCP API returns it with status: "draft" so callers can filter it.

A compatibility-gate rejection is a verdict, not something to overwrite with --accept-risk

Domain: devops · Evidence E1 — Maintainer reviewed
plugin-managercompatibilitygateaccept-risksupply-chain

Summary

> **keep-draft (2026-11-15, verdict for #4874).** Missing external condition: no DSH host on the verifying machine, so the plugin compatibility gate cannot be e…

keep-draft (2026-11-15, verdict for #4874). Missing external condition: no DSH host on the verifying machine, so the plugin compatibility gate cannot be exercised. Promote when a dsh install can show the gate rejecting and the rejected package staying out of profile dependencies.

A compatibility-gate rejection is a verdict, not something to overwrite with --accept-risk

Problem

The harness plugin manager rejected dsh-compaction-instant@0.1.4 and @anysearch/anysearch-dsh@0.1.6 as incompatible with the host version, printing nothing was installed. The agent read that as zero risk confirmed and presented the user an option to self-grant dsh plugin allow-version ... --accept-risk to force the install.

Root Cause

Conflating the failed attempt had no side effect with bypassing the gate is safe. The gate answers a compatibility question and says nothing about whether an override is safe. Compounding it, the agent had already been corrected once for calling a command zero-risk when its success branch had real, unapproved effects.

Solution

Step 1 — Report the gate's verdict verbatim and stop

When the plugin manager prints nothing was installed + an incompatibility reason, report that to the user as the verdict. Do not:

Step 2 — Do not self-grant a version exemption

The allow-version ... --accept-risk command exists for the user to explicitly accept a known incompatibility. The agent should never invoke it on the user's behalf — the exemption must be the user's own explicit risk acceptance, labelled as such.

Step 3 — If the user still wants the package, label the risk explicitly

If the user asks to force the install after seeing the rejection, present the rejection reason, the potential consequences (crashes, data loss, silent corruption), and the exact command. Let the user run it themselves.

Verification

Confirm the rejected package is absent from the profile dependencies afterwards. In this incident the gate held — the package never entered dependencies.

Notes

Source

View on GitHub →

Search

Find related lessons →

← Back to MisakaNet · Search lessons