Class: Textus::Doctor::Check::GeneratorDrift
- Inherits:
-
Check
- Object
- Check
- Textus::Doctor::Check::GeneratorDrift
- Defined in:
- lib/textus/doctor/check/generator_drift.rb
Overview
ADR 0079: generator/build drift — a derived/external entry whose sources
changed since its generated.at. Dependency-based (not age-based), so it
stays OUT of the lifecycle/freshness unification and lives here as a
health signal. This is the surviving home for what the removed stale
verb reported.
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/textus/doctor/check/generator_drift.rb', line 10 def call detector = Textus::Store::Freshness::DriftDetector.new( manifest: manifest, file_stat: Textus::Port::Storage::FileStat.new, clock: Textus::Port::Clock.new, ) manifest.data.entries.flat_map { |m| detector.drift_rows(m) }.map do |row| { "code" => "generator_drift", "level" => "warning", "subject" => row["key"], "message" => row["reason"], "fix" => "rematerialize the entry: `textus drain`", } end end |