formulateNumberedLookup = (formulaNumber, hubId, petNamePath) => {
    /** @type {LookupFormula} */
    const formula = {
      type: 'lookup',
      hub: hubId,
      path: petNamePath,
    };

    return /** @type {FormulateResult<EndoWorker>} */ (
      formulate(formulaNumber, formula)
    );
  }
Formulates a `lookup` formula and synchronously adds it to the formula graph.
The returned promise is resolved after the formula is persisted.
@param {string} formulaNumber - The lookup formula's number.
@param {string} hubId - The formula identifier of the naming
hub to call `lookup` on. A "naming hub" is an objected with a variadic
lookup method. It includes objects such as guests and hosts.
@param {string[]} petNamePath - The pet name path to look up.
@returns {Promise<{ id: string, value: EndoWorker }>}