utils/file_length
Krzysztof kuhy Rudnicki f8dded33c7 Exempt frozen session artifacts from the 250-line cap
An implementation plan under docs/superpowers/plans/ and an append-only log
under docs/superpowers/sessions/ are frozen records of one past session. They
are read whole or not at all, so splitting one rewrites a historical record
for no reading benefit -- the same reason generated files are exempt.

Scoped deliberately: specs/ and contracts/ stay capped, because those are
living documents that get re-read and edited.

is_session_artifact() is kept separate from is_vendored() so the gate reports
an accurate reason -- these are kuhy's own files, not third-party code.

Relaxes the gate only, so no already-wired repo can newly fail. Verified:
~/todo still exits 0 on --all; testsAndMisc drops 198 -> 197 violations
(plans/ exempt, specs/ still caught) in both absolute and relative modes.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011w2Pj4Ek3ZNMQVYcFHgXDY
2026-08-16 15:06:42 +02:00
..
__init__.py Add shared 250-line file-length gate 2026-08-14 14:24:57 +02:00
baseline-2026-08-14.json Skip git-ignored files in the length gate, and vendored skill bundles 2026-08-14 15:58:46 +02:00
check.py Exempt frozen session artifacts from the 250-line cap 2026-08-16 15:06:42 +02:00
config.py Exempt frozen session artifacts from the 250-line cap 2026-08-16 15:06:42 +02:00
SURVEY-2026-08-14.txt Add file-length survey baseline (2026-08-14) 2026-08-14 14:35:42 +02:00