phacility/phabricator · error · PhabricatorProjectTriggerCorruptionException

Trigger ruleset is corrupt: rule (at index "%s") is not a va

Error message

Trigger ruleset is corrupt: rule (at index "%s") is not a valid rule specification: %s

What it means

Error "Trigger ruleset is corrupt: rule (at index "%s") is not a valid rule specification: %s" thrown in phacility/phabricator.

Source

Thrown at src/applications/project/storage/PhabricatorProjectTrigger.php:157

    foreach ($list as $key => $rule) {
      if (!is_array($rule)) {
        throw new PhabricatorProjectTriggerCorruptionException(
          pht(
            'Trigger ruleset is corrupt: rule (at index "%s") should be a '.
            'rule specification, but is actually "%s".',
            $key,
            phutil_describe_type($rule)));
      }

      try {
        PhutilTypeSpec::checkMap(
          $rule,
          array(
            'type' => 'string',
            'value' => 'wild',
          ));
      } catch (PhutilTypeCheckException $ex) {
        throw new PhabricatorProjectTriggerCorruptionException(
          pht(
            'Trigger ruleset is corrupt: rule (at index "%s") is not a '.
            'valid rule specification: %s',
            $key,
            $ex->getMessage()));
      }

      $record = id(new PhabricatorProjectTriggerRuleRecord())
        ->setType(idx($rule, 'type'))
        ->setValue(idx($rule, 'value'));

      if (!isset($rule_map[$record->getType()])) {
        if (!$allow_invalid) {
          throw new PhabricatorProjectTriggerCorruptionException(
            pht(
              'Trigger ruleset is corrupt: rule type "%s" is unknown.',
              $record->getType()));
        }

View on GitHub (pinned to 5720a38cfe)

When it happens

Trigger: Thrown at src/applications/project/storage/PhabricatorProjectTrigger.php:157 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of phacility/phabricator@5720a38cfe (2026-08-21). Data as JSON: /api/errors/fe9c276e94d0f49b. Report an issue: GitHub.