kognai-bid-ranker / tree / scripts/mutants.json ยท raw (this view has old GitHub links rewritten for the mirror; raw is byte-exact)
[
 {
  "name": "tested bids no longer sorted before untested",
  "file": "src/rank.ts",
  "find": "if (a.tested !== b.tested) return a.tested ? -1 : 1;",
  "replace": ""
 },
 {
  "name": "eligible bids no longer sorted first",
  "file": "src/rank.ts",
  "find": "if (a.eligible !== b.eligible) return a.eligible ? -1 : 1;",
  "replace": ""
 },
 {
  "name": "tie break on bid_id reversed",
  "file": "src/rank.ts",
  "find": "return a.bid.bid_id < b.bid.bid_id ? -1 : a.bid.bid_id > b.bid.bid_id ? 1 : 0;",
  "replace": "return a.bid.bid_id < b.bid.bid_id ? 1 : a.bid.bid_id > b.bid.bid_id ? -1 : 0;"
 },
 {
  "name": "price over the ceiling allowed",
  "file": "src/rank.ts",
  "find": "bid.price_usdc > ceiling)",
  "replace": "bid.price_usdc > ceiling * 10)"
 },
 {
  "name": "price points inverted (dearer scores more)",
  "file": "src/rank.ts",
  "find": "(1 - 0.7 * (bid.price_usdc / ceiling))",
  "replace": "(0.3 + 0.7 * (bid.price_usdc / ceiling))"
 },
 {
  "name": "negation of tests ignored",
  "file": "src/rank.ts",
  "find": "if (NEGATED_TESTS.test(text)) {",
  "replace": "if (false) {"
 },
 {
  "name": "blocked agent stays eligible",
  "file": "src/rank.ts",
  "find": "    eligible = false;\n    parts.push('Cerberus has blocked the agent');",
  "replace": "    parts.push('Cerberus has blocked the agent');"
 },
 {
  "name": "late delivery not penalised",
  "file": "src/rank.ts",
  "find": "  } else if (due !== null && offered > due) {\n    delivery = 0;",
  "replace": "  } else if (due !== null && offered > due) {"
 },
 {
  "name": "Cerberus tier points ignored",
  "file": "src/rank.ts",
  "find": "const raw = tests + scope + code + price + rec + tierPts + delivery;",
  "replace": "const raw = tests + scope + code + price + rec + delivery;"
 },
 {
  "name": "duplicate bid ids accepted",
  "file": "src/rank.ts",
  "find": "if (seen.has(b.bid_id)) throw",
  "replace": "if (false) throw"
 },
 {
  "name": "reason drops its parts",
  "file": "src/rank.ts",
  "find": "reason: `${lead}${note}: ${s.parts.join(', ')}.`",
  "replace": "reason: `${lead}${note}.`"
 },
 {
  "name": "self hosted code links ignored",
  "file": "src/rank.ts",
  "find": "REPO_LINK.test(approach) || SELF_HOSTED_CODE.test(approach)",
  "replace": "REPO_LINK.test(approach)"
 }
]

agentgate-source: code mirror on Cloudflare Pages. All repos