Class: KairosMcp::Daemon::WAL::StepEntry

Inherits:
Struct
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#error_classObject

Returns the value of attribute error_class

Returns:

  • (Object)

    the current value of error_class



40
41
42
# File 'lib/kairos_mcp/daemon/wal.rb', line 40

def error_class
  @error_class
end

#error_msgObject

Returns the value of attribute error_msg

Returns:

  • (Object)

    the current value of error_msg



40
41
42
# File 'lib/kairos_mcp/daemon/wal.rb', line 40

def error_msg
  @error_msg
end

#evidenceObject

Returns the value of attribute evidence

Returns:

  • (Object)

    the current value of evidence



40
41
42
# File 'lib/kairos_mcp/daemon/wal.rb', line 40

def evidence
  @evidence
end

#expected_post_hashObject

Returns the value of attribute expected_post_hash

Returns:

  • (Object)

    the current value of expected_post_hash



40
41
42
# File 'lib/kairos_mcp/daemon/wal.rb', line 40

def expected_post_hash
  @expected_post_hash
end

#idem_keyObject

Returns the value of attribute idem_key

Returns:

  • (Object)

    the current value of idem_key



40
41
42
# File 'lib/kairos_mcp/daemon/wal.rb', line 40

def idem_key
  @idem_key
end

#observed_pre_hashObject

Returns the value of attribute observed_pre_hash

Returns:

  • (Object)

    the current value of observed_pre_hash



40
41
42
# File 'lib/kairos_mcp/daemon/wal.rb', line 40

def observed_pre_hash
  @observed_pre_hash
end

#params_hashObject

Returns the value of attribute params_hash

Returns:

  • (Object)

    the current value of params_hash



40
41
42
# File 'lib/kairos_mcp/daemon/wal.rb', line 40

def params_hash
  @params_hash
end

#plan_idObject

Returns the value of attribute plan_id

Returns:

  • (Object)

    the current value of plan_id



40
41
42
# File 'lib/kairos_mcp/daemon/wal.rb', line 40

def plan_id
  @plan_id
end

#post_hashObject

Returns the value of attribute post_hash

Returns:

  • (Object)

    the current value of post_hash



40
41
42
# File 'lib/kairos_mcp/daemon/wal.rb', line 40

def post_hash
  @post_hash
end

#pre_hashObject

Returns the value of attribute pre_hash

Returns:

  • (Object)

    the current value of pre_hash



40
41
42
# File 'lib/kairos_mcp/daemon/wal.rb', line 40

def pre_hash
  @pre_hash
end

#recoveredObject

Returns the value of attribute recovered

Returns:

  • (Object)

    the current value of recovered



40
41
42
# File 'lib/kairos_mcp/daemon/wal.rb', line 40

def recovered
  @recovered
end

#result_hashObject

Returns the value of attribute result_hash

Returns:

  • (Object)

    the current value of result_hash



40
41
42
# File 'lib/kairos_mcp/daemon/wal.rb', line 40

def result_hash
  @result_hash
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



40
41
42
# File 'lib/kairos_mcp/daemon/wal.rb', line 40

def status
  @status
end

#step_idObject

Returns the value of attribute step_id

Returns:

  • (Object)

    the current value of step_id



40
41
42
# File 'lib/kairos_mcp/daemon/wal.rb', line 40

def step_id
  @step_id
end

#toolObject

Returns the value of attribute tool

Returns:

  • (Object)

    the current value of tool



40
41
42
# File 'lib/kairos_mcp/daemon/wal.rb', line 40

def tool
  @tool
end

Instance Method Details

#finalized?Boolean

Returns:

  • (Boolean)


51
52
53
# File 'lib/kairos_mcp/daemon/wal.rb', line 51

def finalized?
  FINALIZED.include?(status)
end

#pending?Boolean

Returns:

  • (Boolean)


55
56
57
# File 'lib/kairos_mcp/daemon/wal.rb', line 55

def pending?
  status.nil? || status == 'pending'
end