Skip to content

Adopt Code Guard and retire the repository LOC checker - #563

Merged
stef-k merged 2 commits into
mainfrom
chore/code-guard-adoption-523
Sep 4, 2026
Merged

Adopt Code Guard and retire the repository LOC checker#563
stef-k merged 2 commits into
mainfrom
chore/code-guard-adoption-523

Conversation

@stef-k

@stef-k stef-k commented Sep 4, 2026

Copy link
Copy Markdown
Owner

Replaces the repository LOC checker with published Agent Code Guard 0.3.1. Existing large source files retain their current sizes through 99 non-increasing LOC allowances; generated/vendor boundaries and all six shipped guards are preserved.

Closes #523

CI installs Code Guard in an isolated Python environment and checks the exact PR base SHA, including documentation-only PRs. The native implementation, old baseline, tests, solution/project references, and agent instructions are removed. Testing guidance documents installation, skill activation, exits, ratchet maintenance, and exclusions.

Validation:

  • Version and doctor: 0.3.1, healthy; active global skill matches the installed payload.
  • Both gates passed in initial CI run 33916319054 before native-tool deletion.
  • All 99 allowances independently match current nonblank counts; no recorded old allowance increased.
  • Temporary legacy-growth and new-601-line probes both failed as expected, preserving baseline bytes. Probes removed.
  • Final full audit: 1,035 analyzed files, REVIEW only, zero FAIL/INCOMPLETE. Baseline unchanged.
  • Complete changed scope: REVIEW only for cumulative changelog size and the established testing reference section; accepted as cohesive documentation.
  • Build: zero warnings/errors; remaining Tools test: 1 passed; diff check passed.
  • Generic global agent instructions updated separately; no project-specific exclusions/allowances copied globally.

No application behavior or database migration changes. Final PR CI remains the merge gate.

@stef-k
stef-k marked this pull request as ready for review September 4, 2026 20:32
@stef-k
stef-k merged commit 7c4c44a into main Sep 4, 2026
1 check passed
@stef-k
stef-k deleted the chore/code-guard-adoption-523 branch September 4, 2026 20:35
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.

Adopt Agent Code Guard and retire Wayfarer.LocCheck

1 participant