{"record":{"id":"a174d24f1de6ccbb","repo":"ruvnet/ruflo","slug":"bootstrapelevate-target-level-must-be-verified-pr","errorCode":null,"errorMessage":"bootstrapElevate target level must be VERIFIED..PRIVILEGED, got ${newLevel}","messagePattern":"bootstrapElevate target level must be VERIFIED\\.\\.PRIVILEGED, got (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"v3/@claude-flow/plugin-agent-federation/src/application/trust-evaluator.ts","lineNumber":195,"sourceCode":"   * its inputs and only performs the elevation + audit construction.\n   *\n   * @returns audit entry tagged `bootstrap_elevation` ready to be persisted.\n   */\n  bootstrapElevate(\n    node: FederationNode,\n    newLevel: TrustLevel,\n    reason: string,\n  ): BootstrapElevationAuditEntry {\n    if (typeof reason !== 'string' || reason.trim().length === 0) {\n      throw new Error('bootstrapElevate requires a non-empty reason');\n    }\n    if (\n      newLevel !== TrustLevel.VERIFIED &&\n      newLevel !== TrustLevel.ATTESTED &&\n      newLevel !== TrustLevel.TRUSTED &&\n      newLevel !== TrustLevel.PRIVILEGED\n    ) {\n      throw new Error(`bootstrapElevate target level must be VERIFIED..PRIVILEGED, got ${newLevel}`);\n    }\n    const previousLevel = node.trustLevel;\n    node.updateTrustLevel(newLevel);\n\n    const result: TrustTransitionResult = {\n      previousLevel,\n      newLevel,\n      score: 0,\n      components: { successRate: 0, uptime: 0, threatPenalty: 0, dataIntegrityScore: 0 },\n      reason: `Bootstrap elevation: ${reason}`,\n      requiresHumanApproval: false,\n    };\n    this.deps.onTrustChange?.(node.nodeId, result);\n\n    return {\n      tag: 'bootstrap_elevation',\n      nodeId: node.nodeId,\n      previousLevel,","sourceCodeStart":177,"sourceCodeEnd":213,"githubUrl":"https://github.com/ruvnet/ruflo/blob/fa13ee4ad60ac2090b1480656eb233521790d640/v3/@claude-flow/plugin-agent-federation/src/application/trust-evaluator.ts#L177-L213","documentation":"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.","triggerScenarios":"bootstrapElevate is called with a target trust level outside the VERIFIED..PRIVILEGED range.","commonSituations":"Caller attempts to bootstrap directly to a level below VERIFIED or above PRIVILEGED, or uses an invalid enum value.","solutions":["Choose a target level between VERIFIED and PRIVILEGED inclusive.","Validate the requested level against the trust-level enum before calling."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"fa13ee4ad60ac2090b1480656eb233521790d640","analyzedAt":"2026-08-18T21:34:22.708Z","contentChangedAt":"2026-08-18T21:34:22.708Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}