Fix an EmptySection false positive and grade DuplicateSession (1.0.1) #8
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/lint-false-positives"
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?
What does this PR do?
Fixes two problems found by using the tooling on real checkpoints rather than on the fixtures it was built against. Releases 1.0.1.
EmptySectionfalse positive. The body capture stopped at the next heading of any level, so a section whose content begins with a subheading was reported as empty. A real checkpoint with## Accomplishedfollowed by### Security workwas flagged despite being well formed. It now captures up to the next heading of the same or higher level.DuplicateSessionwas ungraded. It reported High whenever an identifier appeared in more than one file. Agent sessions are long lived, and a session resumed across days legitimately writes one file per day, so the check fired on correct usage. A check that fires on correct usage teaches people to ignore it. It now reports High only when the files share a date, which is the actual violation and the signature of an identifier copied forward from a restored checkpoint, and Low with an accurate message when they span days.The rule behind the check was also wrong.
SKILL.mdsaid one file per session. It now says one file per day, and explains why the two diverge: a session can be resumed for weeks, and a file covering three weeks is a diary rather than resumable state.references/anti-patterns.mdentry 4 is reframed around the same day, and entry 2 now records that a shared identifier alone is not evidence of copying; what gives copying away is a file describing "previous sessions" while claiming to be one of them.Version bumped to 1.0.1 in all four manifests. The catalog's own
metadata.versionis deliberately left at 1.0.0, because it versions the marketplace catalog and not the plugin.How was this tested?
./scripts/Invoke-RepoChecks.ps1passes with no findingsEmptySection, andDuplicateSessionat Low reading "spans 13 days"EmptySectionTest-Checkpoint.ps1parsesNeither check was weakened to silence the warning; both still detect the cases they were written for.
Checklist
references/anti-patterns.mdhas a real observed example behind it