DEFAULT_COMMAND_AUTHORIZATION_POLICY (src/settings/command-authorization.ts:3) enumerates the roles allowed to invoke each maintainer command; MAINTAINER_ONLY_DEFAULT_COMMANDS is derived from its keys (:24) and the normalizer clamps spoofable roles off those commands (:144). The new #1960 verbs need conservative default entries so they behave as maintainer/collaborator-only out of the box and get the author-role clamp. PURE config + normalizer tests — no handler/dispatch changes.
Deliverables
References
src/settings/command-authorization.ts:3 (DEFAULT_COMMAND_AUTHORIZATION_POLICY)
src/settings/command-authorization.ts:24 (MAINTAINER_ONLY_DEFAULT_COMMANDS)
src/settings/command-authorization.ts:144 (normalizeCommandRoleList clamp)
test/unit/command-authorization.test.ts
#1960
Part of #1960.
size: XS · held for later release (gittensor:bug once activated)
DEFAULT_COMMAND_AUTHORIZATION_POLICY (src/settings/command-authorization.ts:3) enumerates the roles allowed to invoke each maintainer command; MAINTAINER_ONLY_DEFAULT_COMMANDS is derived from its keys (:24) and the normalizer clamps spoofable roles off those commands (:144). The new #1960 verbs need conservative default entries so they behave as maintainer/collaborator-only out of the box and get the author-role clamp. PURE config + normalizer tests — no handler/dispatch changes.
Deliverables
References
src/settings/command-authorization.ts:3 (DEFAULT_COMMAND_AUTHORIZATION_POLICY)src/settings/command-authorization.ts:24 (MAINTAINER_ONLY_DEFAULT_COMMANDS)src/settings/command-authorization.ts:144 (normalizeCommandRoleList clamp)test/unit/command-authorization.test.ts#1960Part of #1960.
size: XS · held for later release (gittensor:bug once activated)