makeInspector = (type, number, record) =>
  makeExo(`Inspector (${type} ${number})`, InspectorInterface, {
    lookup: async petName => {
      if (!Object.hasOwn(record, petName)) {
        return undefined;
      }
      return record[petName];
    },
    list: () => Object.keys(record),
  })
Creates an inspector object for a formula.

@param {string} type - The formula type.
@param {string} number - The formula number.
@param {Record<string, unknown>} record - A mapping from special names to formula values.
@returns {EndoInspector} The inspector for the given formula.