ruvnet/ruflo · error

bootstrapElevate target level must be VERIFIED..PRIVILEGED,

Error message

bootstrapElevate target level must be VERIFIED..PRIVILEGED, got ${newLevel}

What it means

bootstrapElevate() only permits hand-promotion into the VERIFIED, ATTESTED, TRUSTED, or PRIVILEGED levels; the requested newLevel was outside that set (e.g. UNVERIFIED or an out-of-range value). The invalid level is echoed in the message; the caller trusts inputs and only performs the elevation + audit construction.

Source

Thrown at v3/@claude-flow/plugin-agent-federation/src/application/trust-evaluator.ts:195

   * its inputs and only performs the elevation + audit construction.
   *
   * @returns audit entry tagged `bootstrap_elevation` ready to be persisted.
   */
  bootstrapElevate(
    node: FederationNode,
    newLevel: TrustLevel,
    reason: string,
  ): BootstrapElevationAuditEntry {
    if (typeof reason !== 'string' || reason.trim().length === 0) {
      throw new Error('bootstrapElevate requires a non-empty reason');
    }
    if (
      newLevel !== TrustLevel.VERIFIED &&
      newLevel !== TrustLevel.ATTESTED &&
      newLevel !== TrustLevel.TRUSTED &&
      newLevel !== TrustLevel.PRIVILEGED
    ) {
      throw new Error(`bootstrapElevate target level must be VERIFIED..PRIVILEGED, got ${newLevel}`);
    }
    const previousLevel = node.trustLevel;
    node.updateTrustLevel(newLevel);

    const result: TrustTransitionResult = {
      previousLevel,
      newLevel,
      score: 0,
      components: { successRate: 0, uptime: 0, threatPenalty: 0, dataIntegrityScore: 0 },
      reason: `Bootstrap elevation: ${reason}`,
      requiresHumanApproval: false,
    };
    this.deps.onTrustChange?.(node.nodeId, result);

    return {
      tag: 'bootstrap_elevation',
      nodeId: node.nodeId,
      previousLevel,

View on GitHub (pinned to fa13ee4ad6)

Solutions

  1. Choose a target level between VERIFIED and PRIVILEGED inclusive.
  2. Validate the requested level against the trust-level enum before calling.
Defensive patterns

Strategy: validation

When it happens

Trigger: bootstrapElevate is called with a target trust level outside the VERIFIED..PRIVILEGED range.

Common situations: Caller attempts to bootstrap directly to a level below VERIFIED or above PRIVILEGED, or uses an invalid enum value.


AI-assisted analysis of ruvnet/ruflo@fa13ee4ad6 (2026-08-18). Data as JSON: /api/errors/a174d24f1de6ccbb. Report an issue: GitHub.