| id | 2606162213 |
|---|---|
| title | Document internal/checker and internal/rulelayer; remove engine shim |
| status | ✅ |
| model | sonnet |
| depends-on | |
| summary | Two new production packages from the lazy-parse series are absent from the architecture docs, and an unexported forwarding shim survives in internal/engine/check.go. |
Closes two entries from the 2026-06-16 audit:
internal/checkerandinternal/rulelayerabsent from architecture docs.internal/engine/check.goresidual shim.
Add both packages to the architecture docs.
Delete the check.go forwarding shim.
-
In
docs/development/architecture/go.md, add to the SRP table:- `internal/checker` — shared rule-checking primitives (classify, dispatch, filter) used by both `internal/engine` and `internal/fix`. - `internal/rulelayer` — maps each rule ID to its lazy-parse layer (Layer 0 vs. AST-required) from the embedded rule-walk audit manifest.
-
In
docs/development/architecture/index.md, add both packages to the layering diagram underinternal/engine's dependency list. -
In
internal/engine/runner.go, find the call tocheckRulesWithIntraFile. Replace it with a direct call tochecker.CheckRulesWithIntraFile. Add theinternal/checkerimport. -
Delete
internal/engine/check.go. -
Run
go build ./...andgo test ./...to confirm no breakage. -
Run
go run ./cmd/mdsmith fix .from the workspace root to refresh catalogs.
-
go.mdSRP table includes entries for bothinternal/checkerandinternal/rulelayer. -
index.mdlayering diagram lists both packages. -
internal/engine/check.godoes not exist. -
runner.gocallschecker.CheckRulesWithIntraFiledirectly (no intermediary function). -
go test ./...passes. -
go build ./...succeeds. -
go run ./cmd/mdsmith check .reports 0 failures.