Class: Insika::RefinementStore::Run
- Inherits:
-
Data
- Object
- Data
- Insika::RefinementStore::Run
- Defined in:
- lib/insika/refinement_store.rb
Overview
candidate/gate are the WINNER — the one proposal a human is asked about, and
the only thing ResolveRefinement ever applies. candidates is the whole panel
(RFC-0013 §3.9, phase D): every candidate that was built, who wrote it, and how
it scored, including the ones that lost and the ones the budget never gated. A
phase-C run recorded one candidate and no panel; it still reads back correctly,
because a panel of one is the same shape.
Instance Attribute Summary collapse
-
#agent_id ⇒ Object
readonly
Returns the value of attribute agent_id.
-
#candidate ⇒ Object
readonly
Returns the value of attribute candidate.
-
#candidates ⇒ Object
readonly
Returns the value of attribute candidates.
-
#cost ⇒ Object
readonly
Returns the value of attribute cost.
-
#decision ⇒ Object
readonly
Returns the value of attribute decision.
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#excluded ⇒ Object
readonly
Returns the value of attribute excluded.
-
#findings ⇒ Object
readonly
Returns the value of attribute findings.
-
#finished_at ⇒ Object
readonly
Returns the value of attribute finished_at.
-
#gate ⇒ Object
readonly
Returns the value of attribute gate.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#started_at ⇒ Object
readonly
Returns the value of attribute started_at.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#window ⇒ Object
readonly
Returns the value of attribute window.
Instance Method Summary collapse
-
#awaiting_approval? ⇒ Boolean
Is there a gated proposal waiting for a human? The one question the Studio and the apply command both ask.
- #edits ⇒ Object
- #findings_count ⇒ Object
- #gate_passed? ⇒ Boolean
- #panel ⇒ Object
- #terminal? ⇒ Boolean
Instance Attribute Details
#agent_id ⇒ Object (readonly)
Returns the value of attribute agent_id
57 58 59 |
# File 'lib/insika/refinement_store.rb', line 57 def agent_id @agent_id end |
#candidate ⇒ Object (readonly)
Returns the value of attribute candidate
57 58 59 |
# File 'lib/insika/refinement_store.rb', line 57 def candidate @candidate end |
#candidates ⇒ Object (readonly)
Returns the value of attribute candidates
57 58 59 |
# File 'lib/insika/refinement_store.rb', line 57 def candidates @candidates end |
#cost ⇒ Object (readonly)
Returns the value of attribute cost
57 58 59 |
# File 'lib/insika/refinement_store.rb', line 57 def cost @cost end |
#decision ⇒ Object (readonly)
Returns the value of attribute decision
57 58 59 |
# File 'lib/insika/refinement_store.rb', line 57 def decision @decision end |
#error ⇒ Object (readonly)
Returns the value of attribute error
57 58 59 |
# File 'lib/insika/refinement_store.rb', line 57 def error @error end |
#excluded ⇒ Object (readonly)
Returns the value of attribute excluded
57 58 59 |
# File 'lib/insika/refinement_store.rb', line 57 def excluded @excluded end |
#findings ⇒ Object (readonly)
Returns the value of attribute findings
57 58 59 |
# File 'lib/insika/refinement_store.rb', line 57 def findings @findings end |
#finished_at ⇒ Object (readonly)
Returns the value of attribute finished_at
57 58 59 |
# File 'lib/insika/refinement_store.rb', line 57 def finished_at @finished_at end |
#gate ⇒ Object (readonly)
Returns the value of attribute gate
57 58 59 |
# File 'lib/insika/refinement_store.rb', line 57 def gate @gate end |
#id ⇒ Object (readonly)
Returns the value of attribute id
57 58 59 |
# File 'lib/insika/refinement_store.rb', line 57 def id @id end |
#started_at ⇒ Object (readonly)
Returns the value of attribute started_at
57 58 59 |
# File 'lib/insika/refinement_store.rb', line 57 def started_at @started_at end |
#status ⇒ Object (readonly)
Returns the value of attribute status
57 58 59 |
# File 'lib/insika/refinement_store.rb', line 57 def status @status end |
#window ⇒ Object (readonly)
Returns the value of attribute window
57 58 59 |
# File 'lib/insika/refinement_store.rb', line 57 def window @window end |
Instance Method Details
#awaiting_approval? ⇒ Boolean
Is there a gated proposal waiting for a human? The one question the Studio and the apply command both ask.
65 |
# File 'lib/insika/refinement_store.rb', line 65 def awaiting_approval? = status == :awaiting_approval |
#edits ⇒ Object
67 |
# File 'lib/insika/refinement_store.rb', line 67 def edits = (candidate || {})["edits"] || [] |
#findings_count ⇒ Object
61 |
# File 'lib/insika/refinement_store.rb', line 61 def findings_count = findings.size |
#gate_passed? ⇒ Boolean
66 |
# File 'lib/insika/refinement_store.rb', line 66 def gate_passed? = gate.is_a?(Hash) && gate["passed"] == true |
#panel ⇒ Object
68 |
# File 'lib/insika/refinement_store.rb', line 68 def panel = Array(candidates) |
#terminal? ⇒ Boolean
60 |
# File 'lib/insika/refinement_store.rb', line 60 def terminal? = !OPEN.include?(status) |