Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

title 3. ADR-0046 drift scanner
status Concluded
topics
evaluation
tooling

3. ADR-0046 drift scanner

A Python CLI tool that detects Tekton task steps drifting from ADR-0046 (common task runner image) by comparing step images against a config-driven allowlist.

See RESULTS.md for hypothesis, results, and analysis.

Usage

cd experiments/adr46-scanner
pip install -e ".[dev]"
adr46-scan --config config.yaml /path/to/build-definitions

What it does

Parses Tekton task YAML files, extracts step images, and flags any that don't match the task runner image or an explicitly exempt image. Config-driven — the allowlist and scan paths are declared in config.yaml.

Limitations

This scanner uses deterministic string matching. It validates that mechanical drift detection works, but doesn't generalize to ADRs that express design intent rather than concrete image requirements. See Experiment 002 for the LLM-based approach.