MCPcopy Create free account
hub / github.com/EvoMap/evolver / escalate

Function escalate

scripts/recall-verify-report.js:123–125  ·  view source on GitHub ↗
(current, candidate)

Source from the content-addressed store, hash-verified

121 // RANK is the comparison ordinal: GREEN(0) < YELLOW(1) < RED(2).
122 const RANK = { GREEN: 0, YELLOW: 1, RED: 2 };
123 function escalate(current, candidate) {
124 return RANK[candidate] > RANK[current] ? candidate : current;
125 }
126 let gate = 'GREEN';
127 if (rows.length === 0) gate = 'RED';
128 else {

Callers 1

aggregateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected