From fb407d606cdb67786f136f5145d341bc09ad63c8 Mon Sep 17 00:00:00 2001 From: Jason Stedwell Date: Tue, 28 Jul 2026 21:59:39 -0500 Subject: [PATCH] Add the 1.6.0 lint regression test (missed in the release commit staging) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Seeds archive/notes/README.md and asserts vault_lint flags retired-path — fails against the pre-1.6.0 linter, passes with the retired-first check. Co-Authored-By: Claude Fable 5 --- eval/test_features.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/eval/test_features.py b/eval/test_features.py index 281eaf9..3046a5c 100644 --- a/eval/test_features.py +++ b/eval/test_features.py @@ -298,6 +298,14 @@ def main(): check("v1.5 sweep backfills the kind tag", "tags: [company]" in drift or '' in drift, drift) + # 16b. lint blind spot (1.6.0): a seed README inside a retired tree must be + # flagged retired-path — previously the permissive leaf-readme route matched + # first and absolved it, so retired dirs holding only a README went unflagged. + h.seed("archive/notes/README.md", "This folder holds archived notes.\n") + r = h.echo(LINT) + check("v1.6 lint flags a README inside a retired tree", + "archive/notes/README.md: retired location" in r.stdout, r.stdout[-800:]) + # 17. hooks: stop-hook nudges once on a substantive session, then stays quiet. import tempfile tdir = Path(tempfile.mkdtemp())