Moss · Boot errors

Invalid charter

At boot, Moss checks the charter with verifyCharter from @niscorp/charter, against every action id, grant and variant id the app has, and does not serve if the report contains an error. verifyApp reports the same errors, under the check charter. Example: manager extends ushers, a role that does not exist, and the verifier reports Unknown role "ushers" once for each section.

Manager role
{
  manager: {
    extends: ['ushers'],
    actions: { allow: ['*'], deny: ['welcome', 'me.*'] },
    data: ['*.read'],
  },
}
Charter roles
['guest', 'member', 'usher', 'manager']
Errors
charter: resolution: actions: Unknown role "ushers"
charter: resolution: data: Unknown role "ushers"
charter: resolution: layouts: Unknown role "ushers"
Output matches the expected value

Computed when this site was built, by the installed package, which does not run in a browser. The site’s checks recompute it on every change.