Native "skip if a result exists for this key" condition for steps and stages
M
Minimum Caterpillar
Please add a native condition, usable in when: on steps and stages, that evaluates to true when a successful result already exists for a given key (for example a content hash or a dependency checksum). Today the Harness-hosted Restore Cache step exposes a cacheHit output, but other cache steps and Cache Intelligence do not, and there is no way to ask "was a verified result recorded for this key" for anything that is not a cache restore.
Teams work around this with a restore step plus a script or a status check on an ignored failure, which is easy to get wrong, for instance when a cache miss is reported as a failure. A first-class condition that works the same way across cache types and verification records would make selective skipping readable and safe, while security scans, approvals and deploy stages still always run.