Class: Insika::Refinement::Gate::Report
- Inherits:
-
Data
- Object
- Data
- Insika::Refinement::Gate::Report
- 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
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
-
#baseline_cases ⇒ Object
readonly
Returns the value of attribute baseline_cases.
-
#cached ⇒ Object
readonly
Returns the value of attribute cached.
-
#candidate_id ⇒ Object
readonly
Returns the value of attribute candidate_id.
-
#cases ⇒ Object
readonly
Returns the value of attribute cases.
-
#passed ⇒ Object
readonly
Returns the value of attribute passed.
-
#passed_cases ⇒ Object
readonly
Returns the value of attribute passed_cases.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
-
#regressions ⇒ Object
readonly
Returns the value of attribute regressions.
-
#report ⇒ Object
readonly
Returns the value of attribute report.
-
#tokens ⇒ Object
readonly
Returns the value of attribute tokens.
Instance Method Summary collapse
Instance Attribute Details
#baseline_cases ⇒ Object (readonly)
Returns the value of attribute baseline_cases
33 34 35 |
# File 'lib/insika/refinement/gate.rb', line 33 def baseline_cases @baseline_cases end |
#cached ⇒ Object (readonly)
Returns the value of attribute cached
33 34 35 |
# File 'lib/insika/refinement/gate.rb', line 33 def cached @cached end |
#candidate_id ⇒ Object (readonly)
Returns the value of attribute candidate_id
33 34 35 |
# File 'lib/insika/refinement/gate.rb', line 33 def candidate_id @candidate_id end |
#cases ⇒ Object (readonly)
Returns the value of attribute cases
33 34 35 |
# File 'lib/insika/refinement/gate.rb', line 33 def cases @cases end |
#passed ⇒ Object (readonly)
Returns the value of attribute passed
33 34 35 |
# File 'lib/insika/refinement/gate.rb', line 33 def passed @passed end |
#passed_cases ⇒ Object (readonly)
Returns the value of attribute passed_cases
33 34 35 |
# File 'lib/insika/refinement/gate.rb', line 33 def passed_cases @passed_cases end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason
33 34 35 |
# File 'lib/insika/refinement/gate.rb', line 33 def reason @reason end |
#regressions ⇒ Object (readonly)
Returns the value of attribute regressions
33 34 35 |
# File 'lib/insika/refinement/gate.rb', line 33 def regressions @regressions end |
#report ⇒ Object (readonly)
Returns the value of attribute report
33 34 35 |
# File 'lib/insika/refinement/gate.rb', line 33 def report @report end |
#tokens ⇒ Object (readonly)
Returns the value of attribute tokens
33 34 35 |
# File 'lib/insika/refinement/gate.rb', line 33 def tokens @tokens end |
Instance Method Details
#to_h ⇒ Object
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 |