Class: KairosMcp::Daemon::WAL::StepEntry
- Inherits:
-
Struct
- Object
- Struct
- KairosMcp::Daemon::WAL::StepEntry
- Defined in:
- lib/kairos_mcp/daemon/wal.rb
Overview
StepEntry — in-memory representation of a single step rebuilt from WAL. ‘finalized?` gates recovery: finalized steps are not re-processed.
Constant Summary collapse
- FINALIZED =
%w[completed failed abandoned].freeze
Instance Attribute Summary collapse
-
#error_class ⇒ Object
Returns the value of attribute error_class.
-
#error_msg ⇒ Object
Returns the value of attribute error_msg.
-
#evidence ⇒ Object
Returns the value of attribute evidence.
-
#expected_post_hash ⇒ Object
Returns the value of attribute expected_post_hash.
-
#idem_key ⇒ Object
Returns the value of attribute idem_key.
-
#observed_pre_hash ⇒ Object
Returns the value of attribute observed_pre_hash.
-
#params_hash ⇒ Object
Returns the value of attribute params_hash.
-
#plan_id ⇒ Object
Returns the value of attribute plan_id.
-
#post_hash ⇒ Object
Returns the value of attribute post_hash.
-
#pre_hash ⇒ Object
Returns the value of attribute pre_hash.
-
#recovered ⇒ Object
Returns the value of attribute recovered.
-
#result_hash ⇒ Object
Returns the value of attribute result_hash.
-
#status ⇒ Object
Returns the value of attribute status.
-
#step_id ⇒ Object
Returns the value of attribute step_id.
-
#tool ⇒ Object
Returns the value of attribute tool.
Instance Method Summary collapse
Instance Attribute Details
#error_class ⇒ Object
Returns the value of attribute error_class
40 41 42 |
# File 'lib/kairos_mcp/daemon/wal.rb', line 40 def error_class @error_class end |
#error_msg ⇒ Object
Returns the value of attribute error_msg
40 41 42 |
# File 'lib/kairos_mcp/daemon/wal.rb', line 40 def error_msg @error_msg end |
#evidence ⇒ Object
Returns the value of attribute evidence
40 41 42 |
# File 'lib/kairos_mcp/daemon/wal.rb', line 40 def evidence @evidence end |
#expected_post_hash ⇒ Object
Returns the value of attribute expected_post_hash
40 41 42 |
# File 'lib/kairos_mcp/daemon/wal.rb', line 40 def expected_post_hash @expected_post_hash end |
#idem_key ⇒ Object
Returns the value of attribute idem_key
40 41 42 |
# File 'lib/kairos_mcp/daemon/wal.rb', line 40 def idem_key @idem_key end |
#observed_pre_hash ⇒ Object
Returns the value of attribute observed_pre_hash
40 41 42 |
# File 'lib/kairos_mcp/daemon/wal.rb', line 40 def observed_pre_hash @observed_pre_hash end |
#params_hash ⇒ Object
Returns the value of attribute params_hash
40 41 42 |
# File 'lib/kairos_mcp/daemon/wal.rb', line 40 def params_hash @params_hash end |
#plan_id ⇒ Object
Returns the value of attribute plan_id
40 41 42 |
# File 'lib/kairos_mcp/daemon/wal.rb', line 40 def plan_id @plan_id end |
#post_hash ⇒ Object
Returns the value of attribute post_hash
40 41 42 |
# File 'lib/kairos_mcp/daemon/wal.rb', line 40 def post_hash @post_hash end |
#pre_hash ⇒ Object
Returns the value of attribute pre_hash
40 41 42 |
# File 'lib/kairos_mcp/daemon/wal.rb', line 40 def pre_hash @pre_hash end |
#recovered ⇒ Object
Returns the value of attribute recovered
40 41 42 |
# File 'lib/kairos_mcp/daemon/wal.rb', line 40 def recovered @recovered end |
#result_hash ⇒ Object
Returns the value of attribute result_hash
40 41 42 |
# File 'lib/kairos_mcp/daemon/wal.rb', line 40 def result_hash @result_hash end |
#status ⇒ Object
Returns the value of attribute status
40 41 42 |
# File 'lib/kairos_mcp/daemon/wal.rb', line 40 def status @status end |
#step_id ⇒ Object
Returns the value of attribute step_id
40 41 42 |
# File 'lib/kairos_mcp/daemon/wal.rb', line 40 def step_id @step_id end |
#tool ⇒ Object
Returns the value of attribute tool
40 41 42 |
# File 'lib/kairos_mcp/daemon/wal.rb', line 40 def tool @tool end |
Instance Method Details
#finalized? ⇒ Boolean
51 52 53 |
# File 'lib/kairos_mcp/daemon/wal.rb', line 51 def finalized? FINALIZED.include?(status) end |
#pending? ⇒ Boolean
55 56 57 |
# File 'lib/kairos_mcp/daemon/wal.rb', line 55 def pending? status.nil? || status == 'pending' end |