Class: Insika::Refinement::Gate::Report

Inherits:
Data
  • Object
show all
Defined in:
lib/insika/refinement/gate.rb

Overview

The verdict for one candidate. passed is the only field the caller acts on; the rest is what an operator reads to decide whether the loop earns its keep. tokens is what the replay SENT, cache included, as the deployment reported it — nil when no turn carried usage. cached is how much of that came from the prompt cache, kept separate because it is what explains one candidate costing 8× another over the same cases. tokens is what the panel's budget (§3.9) spends and what the operator reads on the run: a gate is the expensive half of refinement and a loop whose cost is invisible is one nobody can decide to keep.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#baseline_casesObject (readonly)

Returns the value of attribute baseline_cases

Returns:

  • (Object)

    the current value of baseline_cases



33
34
35
# File 'lib/insika/refinement/gate.rb', line 33

def baseline_cases
  @baseline_cases
end

#cachedObject (readonly)

Returns the value of attribute cached

Returns:

  • (Object)

    the current value of cached



33
34
35
# File 'lib/insika/refinement/gate.rb', line 33

def cached
  @cached
end

#candidate_idObject (readonly)

Returns the value of attribute candidate_id

Returns:

  • (Object)

    the current value of candidate_id



33
34
35
# File 'lib/insika/refinement/gate.rb', line 33

def candidate_id
  @candidate_id
end

#casesObject (readonly)

Returns the value of attribute cases

Returns:

  • (Object)

    the current value of cases



33
34
35
# File 'lib/insika/refinement/gate.rb', line 33

def cases
  @cases
end

#passedObject (readonly)

Returns the value of attribute passed

Returns:

  • (Object)

    the current value of passed



33
34
35
# File 'lib/insika/refinement/gate.rb', line 33

def passed
  @passed
end

#passed_casesObject (readonly)

Returns the value of attribute passed_cases

Returns:

  • (Object)

    the current value of passed_cases



33
34
35
# File 'lib/insika/refinement/gate.rb', line 33

def passed_cases
  @passed_cases
end

#reasonObject (readonly)

Returns the value of attribute reason

Returns:

  • (Object)

    the current value of reason



33
34
35
# File 'lib/insika/refinement/gate.rb', line 33

def reason
  @reason
end

#regressionsObject (readonly)

Returns the value of attribute regressions

Returns:

  • (Object)

    the current value of regressions



33
34
35
# File 'lib/insika/refinement/gate.rb', line 33

def regressions
  @regressions
end

#reportObject (readonly)

Returns the value of attribute report

Returns:

  • (Object)

    the current value of report



33
34
35
# File 'lib/insika/refinement/gate.rb', line 33

def report
  @report
end

#tokensObject (readonly)

Returns the value of attribute tokens

Returns:

  • (Object)

    the current value of tokens



33
34
35
# File 'lib/insika/refinement/gate.rb', line 33

def tokens
  @tokens
end

Instance Method Details

#to_hObject



35
36
37
38
39
40
# File 'lib/insika/refinement/gate.rb', line 35

def to_h
  { "candidate_id" => candidate_id, "passed" => passed, "reason" => reason,
    "cases" => cases, "passed_cases" => passed_cases, "baseline_cases" => baseline_cases,
    "regressions" => regressions, "report" => report, "tokens" => tokens,
    "cached" => cached }
end