diff --git a/scripts/check-executables-allow-sync.sh b/scripts/check-executables-allow-sync.sh
index 5769b6b..6300a3a 100755
--- a/scripts/check-executables-allow-sync.sh
+++ b/scripts/check-executables-allow-sync.sh
@@ -385,7 +385,9 @@ expected_key() {
# Per-package checks
# ---------------------------------------------------------------------------
# EXPECTED: plugin dir names whose manifest is usable; the key each needs is
-# '
#' because a usable manifest's name: equals its dir name.
+# '#'. The dir name is what finds the identity: it is
+# matched against the `path: plugins/` of a root dependency entry, which
+# is why a usable manifest's name: must equal it.
EXPECTED=()
for plugin in ${READABLE[@]+"${READABLE[@]}"}; do
error="$(fact e "$plugin")"
@@ -403,8 +405,9 @@ for plugin in ${READABLE[@]+"${READABLE[@]}"}; do
if [[ "$name" != "$plugin" ]]; then
echo "FAIL: plugins/$plugin/apm.yml declares name: '${name}', which does not match its directory '$plugin'." >&2
- echo " Why: executables.allow keys use the package name; with the two disagreeing this gate" >&2
- echo " cannot tell which '#' key root apm.yml should carry." >&2
+ echo " Why: the '#' key is found through the directory name, which this gate" >&2
+ echo " matches against root apm.yml's 'path: plugins/' entry; with name: disagreeing" >&2
+ echo " it cannot tell which package the key should be for." >&2
echo " Fix: make plugins/$plugin/apm.yml's name: equal '$plugin', or rename the directory (read by $READER)." >&2
FAILED=1
continue