Class: KairosMcp::DriftDetection::CorrespondenceChecker::Result
- Inherits:
-
Struct
- Object
- Struct
- KairosMcp::DriftDetection::CorrespondenceChecker::Result
- 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
-
#active_digest ⇒ Object
Returns the value of attribute active_digest.
-
#message ⇒ Object
Returns the value of attribute message.
-
#name ⇒ Object
Returns the value of attribute name.
-
#recorded_digest ⇒ Object
Returns the value of attribute recorded_digest.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
- #corresponds? ⇒ Boolean
-
#divergence? ⇒ Boolean
A surfaced non-correspondence per INV-A (divergence, not an internal error).
Instance Attribute Details
#active_digest ⇒ Object
Returns the value of attribute active_digest
34 35 36 |
# File 'lib/kairos_mcp/drift_detection/correspondence_checker.rb', line 34 def active_digest @active_digest end |
#message ⇒ Object
Returns the value of attribute message
34 35 36 |
# File 'lib/kairos_mcp/drift_detection/correspondence_checker.rb', line 34 def @message end |
#name ⇒ Object
Returns the value of attribute name
34 35 36 |
# File 'lib/kairos_mcp/drift_detection/correspondence_checker.rb', line 34 def name @name end |
#recorded_digest ⇒ Object
Returns the value of attribute recorded_digest
34 35 36 |
# File 'lib/kairos_mcp/drift_detection/correspondence_checker.rb', line 34 def recorded_digest @recorded_digest end |
#status ⇒ Object
Returns the value of attribute status
34 35 36 |
# File 'lib/kairos_mcp/drift_detection/correspondence_checker.rb', line 34 def status @status end |
Instance Method Details
#corresponds? ⇒ 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).
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 |