|
18 | 18 | # inheritance predicates in `crates/velnor-actions-cli/tests/fixtures/`). |
19 | 19 | # |
20 | 20 | # Schema: alint config model (`version` + `rules`, each rule with |
21 | | -# id/kind/level). The top-level `command` rule is trusted and checks only |
22 | | -# each AGENTS.md's sibling CLAUDE.md mirror file, which Alint has no native |
23 | | -# byte-equality rule to express. Its `pair` rule checks existence only; |
24 | | -# the command below checks the regular-file type and identical bytes on the |
25 | | -# CI Linux runner. Generated trees must not emit symlinks: plugin |
26 | | -# installers reject packages that contain symlink entries. |
| 21 | +# id/kind/level). The retired `.github/CLAUDE.md` path uses the native |
| 22 | +# `file_absent` rule: the generator no longer emits it (plugin installers |
| 23 | +# reject symlink entries, and a second instruction copy next to AGENTS.md |
| 24 | +# carries no benefit), regeneration deletes stale copies, and the rule |
| 25 | +# fails closed on any recurrence. |
27 | 26 | # Validate with the pinned alint binary: `alint validate-config`. |
28 | 27 | # The 80-line function/method limit (§5, "using Clippy accounting") is NOT |
29 | 28 | # expressed here — alint ships no function-level rule kind. It is enforced |
@@ -69,25 +68,14 @@ rules: |
69 | 68 | level: error |
70 | 69 | message: "Repo-shape file is missing (rust-quality-contract §1)" |
71 | 70 |
|
72 | | - # Run against each real AGENTS.md and check its sibling. `pair` only checks |
73 | | - # partner existence and cannot enforce file type or byte equality; this |
74 | | - # trusted command requires a regular (non-symlink) file with bytes |
75 | | - # identical to AGENTS.md. `.github/` is generated output owned by the |
76 | | - # pinned generator and verified byte-exact by the generation-diff job, |
77 | | - # so it stays out of this maintained-file rule. |
78 | | - - id: claude-is-agents-copy |
79 | | - kind: command |
| 71 | + # The generator retired `.github/CLAUDE.md` (see the policy header); |
| 72 | + # this native absence rule fails closed on any recurrence, file or link. |
| 73 | + - id: no-github-claude-md |
| 74 | + kind: file_absent |
80 | 75 | paths: |
81 | | - include: ["**/AGENTS.md"] |
82 | | - exclude: [".github/**"] |
83 | | - command: |
84 | | - - sh |
85 | | - - -c |
86 | | - - 'dir=$(dirname "$1") && test -f "$dir/CLAUDE.md" && test ! -L "$dir/CLAUDE.md" && cmp -s "$dir/CLAUDE.md" "$1"' |
87 | | - - alint-claude-mirror |
88 | | - - "{path}" |
| 76 | + include: [".github/CLAUDE.md"] |
89 | 77 | level: error |
90 | | - message: "Each AGENTS.md must have a sibling CLAUDE.md regular file with identical bytes" |
| 78 | + message: ".github/CLAUDE.md is retired; AGENTS.md is the single instruction file" |
91 | 79 |
|
92 | 80 | # Keep instruction files concise so they fit in agent context by default. |
93 | 81 | - id: agent-instructions-max-lines |
|
0 commit comments