Class: Textus::Doctor::Check::ProposalTargets

Inherits:
Textus::Doctor::Check show all
Defined in:
lib/textus/doctor/check/proposal_targets.rb

Overview

Flags pending proposals whose ‘proposal.target_key` cannot ever be accepted: it points at a non-canon zone or resolves to no declared entry (ADR 0035). Reads the live queue zone; silent when there is no queue zone. Warnings, not errors — they are stale junk, not store corruption (the accept gate already refuses them).

Instance Method Summary collapse

Methods inherited from Textus::Doctor::Check

#initialize, name_key

Constructor Details

This class inherits a constructor from Textus::Doctor::Check

Instance Method Details

#callObject



10
11
12
13
14
15
# File 'lib/textus/doctor/check/proposal_targets.rb', line 10

def call
  queue = manifest.policy.queue_zone
  return [] unless queue

  dispatch(:list, zone: queue).filter_map { |row| issue_for(row["key"]) }
end