Skip to content

docs(agents): name the skip and truncation contract - #370

Open
DeryFerd wants to merge 1 commit into
qybaihe:mainfrom
DeryFerd:docs/agents-skip-contract
Open

DeryFerd wants to merge 1 commit into
qybaihe:mainfrom
DeryFerd:docs/agents-skip-contract

Conversation

@DeryFerd

@DeryFerd DeryFerd commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Summary

AGENTS.md lists the contracts a change has to keep, and the rule about unfinished scans was the one contract that lived only in commit messages. Nothing in the file said that a lint stopping at its scan window, or a walk that could not read a file, has to show up in the report. A new lint could therefore return an empty finding list for a scan it never finished without contradicting anything written down, and a reviewer had no line to point at.

What changed

  • AGENTS.md: one bullet in "Contracts worth keeping" that says a skipped or truncated scan has to stay visible in the report (truncated, unreadableFiles, walkSkipped), that an empty finding list must not stand in for an unfinished scan, and names the two suites that pin the behaviour.

Why it matters

Agents read this file as the operating manual for the repo, and lints are the part of BLA that decides whether a project ships. The rule is already enforced in code and in test names across several modules, but it was only discoverable by reading history. Making it explicit gives the next lint or walker a line to check against, and gives a reviewer something concrete to ask for when a report is silent about a file it did not read.

Validation

npx vitest run tests/agents-inventory-drift.test.ts

3 tests pass. The change is one bullet in the contracts list; the module map, shield inventory and counters stay untouched, which is what that suite checks.

Compatibility

Docs only. No code, schema, or report shape changes.

The honesty rule these fixes enforce lives only in the commit messages of qybaihe#283, qybaihe#310 and qybaihe#332, so a new lint can still ship a silent skip. State it next to the other contracts, with the tests that pin it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant