Class: KairosMcp::DriftDetection::CorrespondenceChecker::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/kairos_mcp/drift_detection/correspondence_checker.rb

Overview

Result of a single correspondence check.

status:

:match            live artifact corresponds to recorded provenance
:mismatch         live content diverged from recorded provenance (silent edit)
:missing_record   live artifact relied upon, but no recorded provenance exists
:missing_artifact recorded/expected artifact is absent at the reliance point
:error            the check itself could not complete (not a correspondence claim)

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#active_digestObject

Returns the value of attribute active_digest

Returns:

  • (Object)

    the current value of active_digest



34
35
36
# File 'lib/kairos_mcp/drift_detection/correspondence_checker.rb', line 34

def active_digest
  @active_digest
end

#messageObject

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



34
35
36
# File 'lib/kairos_mcp/drift_detection/correspondence_checker.rb', line 34

def message
  @message
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



34
35
36
# File 'lib/kairos_mcp/drift_detection/correspondence_checker.rb', line 34

def name
  @name
end

#recorded_digestObject

Returns the value of attribute recorded_digest

Returns:

  • (Object)

    the current value of recorded_digest



34
35
36
# File 'lib/kairos_mcp/drift_detection/correspondence_checker.rb', line 34

def recorded_digest
  @recorded_digest
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



34
35
36
# File 'lib/kairos_mcp/drift_detection/correspondence_checker.rb', line 34

def status
  @status
end

Instance Method Details

#corresponds?Boolean

Returns:

  • (Boolean)


38
39
40
# File 'lib/kairos_mcp/drift_detection/correspondence_checker.rb', line 38

def corresponds?
  status == :match
end

#divergence?Boolean

A surfaced non-correspondence per INV-A (divergence, not an internal error).

Returns:

  • (Boolean)


43
44
45
# File 'lib/kairos_mcp/drift_detection/correspondence_checker.rb', line 43

def divergence?
  %i[mismatch missing_record missing_artifact].include?(status)
end