Rename LINT_EPOCH to CHECK_EPOCH in Dockerfile.lint (blocked on a policy ruling)
#32
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Dockerfile.lint(landed by #30) names its cache-busting build argLINT_EPOCH, while the mainDockerfileusesCHECK_EPOCH.Functionally this is fine — both are fail-closed guards and both provably bust their layers. The cost is not correctness, it is verifiability across repos: the canonical policy fixes the name at
CHECK_EPOCHprecisely so that a single grep can prove every image in every repo busts its cache, and a second name is invisible to that grep.Blocked
Do not implement this yet. The proposed policy wording is in sneak/prompts#43 and the question — whether the epoch arg name is uniform across files or per-file — is open on sneak/prompts#40. If the ruling is per-file, this issue closes as wontfix.
Definition of done, if the ruling is "uniform"
Dockerfile.lintandscript/lintuseCHECK_EPOCH.script/lintwith no build arg still fails closed — an unsetARGis the empty string, which is a perfectly stable cache key, so the guard must reject it rather than serve a cached green.make checkgreen;script/cibuildgreen and shown to have actually executed rather than been served from cache.Not a 1.0.0 blocker.