{"record":{"id":"4a0b4b7507a5f4c0","repo":"ruvnet/ruflo","slug":"unknown-scheme-v-tournament-tournament-nd","errorCode":null,"errorMessage":"unknown scheme \"${v}\" (tournament | tournament_nd | gumbel)","messagePattern":"unknown scheme \"(.+?)\" \\(tournament \\| tournament_nd \\| gumbel\\)","errorType":"exception","errorClass":"RangeError","httpStatus":null,"severity":"error","filePath":"v3/@claude-flow/watermark/web/index.mjs","lineNumber":43,"sourceCode":"}\n\n/** True once `init()` has completed. */\nexport function isReady() {\n  return _ready;\n}\n\nfunction assertReady() {\n  if (!_ready) throw new Error('@claude-flow/watermark/web: call `await init()` before use');\n}\n\nconst SCHEMES = new Set(['tournament', 'tournament_nd', 'gumbel']);\nconst enc = new TextEncoder();\nconst toKeyBytes = (k) => (typeof k === 'string' ? enc.encode(k) : k);\nconst toU32 = (a) => (a instanceof Uint32Array ? a : Uint32Array.from(a));\nconst toF32 = (a) => (a instanceof Float32Array ? a : Float32Array.from(a));\nfunction normScheme(s) {\n  const v = s || 'gumbel';\n  if (!SCHEMES.has(v)) throw new RangeError(`unknown scheme \"${v}\" (tournament | tournament_nd | gumbel)`);\n  return v;\n}\nfunction shape(r) {\n  const out = {\n    zScore: r.z_score,\n    pValue: r.p_value,\n    log10P: r.log10_p,\n    scoredPositions: r.scored_positions,\n    isWatermarked(alpha = 1e-6) {\n      return out.log10P <= Math.log10(alpha);\n    },\n  };\n  r.free();\n  return out;\n}\n\n/** Streaming watermarked sampler (call `await init()` first). */\nexport class Watermarker {","sourceCodeStart":25,"sourceCodeEnd":61,"githubUrl":"https://github.com/ruvnet/ruflo/blob/fa13ee4ad60ac2090b1480656eb233521790d640/v3/@claude-flow/watermark/web/index.mjs#L25-L61","documentation":"normScheme() found the supplied watermarking scheme string is not one of the supported set (tournament, tournament_nd, gumbel). The empty string defaults to gumbel, so this specifically means a non-empty unrecognized scheme name was passed.","triggerScenarios":"Thrown at v3/@claude-flow/watermark/web/index.mjs:43 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use one of the supported schemes listed in the message (tournament, tournament_nd, gumbel)."],"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-14T05:17:10.506Z"}