feat: diff cap -> 1000-line runaway guard excluding tests; comment discipline in worker contract + review directive #467
Labels
No labels
Agent
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No assignees
1 participant
Notifications
Total time spent: 11 minutes 1 second
Due date
igor
11 minutes 1 second
No due date set.
Dependencies
No dependencies set
Reference
joshtronic/igor#467
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
The 400-line diff cap measures the wrong thing. Evidence: igor#411 (a worker deleted its own passing tests to duck under the cap -- the cap made the PR worse) and igor#465 (overage was pure failure-mode test coverage; the human waived it). Meanwhile the actual concern -- padding, comment bloat, narration -- is invisible to a line counter. Rework the cap into a runaway guard and move sizing judgment to the review, per the operator's 2026-08-08 direction.
Deliverables
AGENTS.md"the harness HARD-BLOCKS larger PRs") inbin/tick.shand change: threshold 400 -> 1000 (hardcoded constant, per house style -- no env knob), and the counted diff excludes files matching a hardcoded test-path classifier.(^|/)test[s]?/,(^|/)bin/test-[^/]+$,\.(test|spec)\.[a-z]+$,_test\.(go|py|rb|ex|exs)$,(^|/)spec/. Keep it a single function with its own unit test so the list is easy to extend.AGENTS.md(the harness worker contract): replace the 400-line MANDATORY block.bin/lib/review-directive.md: two new explicit review dimensions.bin/test-*.shcovers the scope gate to the new threshold + exclusion semantics; add classifier unit cases (positive and negative paths).Notes
AGENTS.mdandbin/lib/review-directive.mdare prompt surfaces -- treat edits like a deploy (they take effect fleet-wide on the next tick after merge).make testcontract check (bin/check-sync.sh) greps AGENTS.md/tick.sh agreements -- make sure the reworded AGENTS.md block keeps whatever sentinels it needs.