Skip to content

refactor(engine): drop the last re-export shim (safety) - #318

Merged
Patel230 merged 1 commit into
mainfrom
refactor/engine-safety-shim
Sep 15, 2026
Merged

Patel230 merged 1 commit into
mainfrom
refactor/engine-safety-shim

Conversation

@Patel230

Copy link
Copy Markdown
Contributor

Removes safety_reexports.go, the final internal/engine/*_reexports.go shim. Internal and external callers now import internal/engine/safety directly (safety.PermissionRequest, safety.AutonomyLevel, safety.ParseAutonomyLevel, …).

With this, no engine re-export shims remain — the engine namespace no longer flattens its sub-packages, so the true dependency graph is visible to the compiler and to readers.

Verified: go build ./..., go vet, golangci-lint (0 issues), full go test ./..., make boundaries.

Remove safety_reexports.go; internal and external callers now import
internal/engine/safety directly (e.g. safety.PermissionRequest,
safety.AutonomyLevel, safety.ParseAutonomyLevel). No engine re-export shims
remain, so the engine namespace no longer flattens its sub-packages.

Verified: go build ./..., go vet, golangci-lint (0 issues), full go test ./...,
make boundaries.
@Patel230
Patel230 merged commit d7205ce into main Sep 15, 2026
25 checks passed
@Patel230
Patel230 deleted the refactor/engine-safety-shim branch September 15, 2026 17:59
Patel230 added a commit that referenced this pull request Oct 2, 2026
Remove safety_reexports.go; internal and external callers now import
internal/engine/safety directly (e.g. safety.PermissionRequest,
safety.AutonomyLevel, safety.ParseAutonomyLevel). No engine re-export shims
remain, so the engine namespace no longer flattens its sub-packages.

Verified: go build ./..., go vet, golangci-lint (0 issues), full go test ./...,
make boundaries.
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