Verify the native cutover and complete the implementation roadmap

This commit is contained in:
2026-11-22 07:11:50 +00:00
parent 633ebd282f
commit 75444b8ef3
8 changed files with 102 additions and 31 deletions

View File

@@ -274,15 +274,15 @@ func TestImportBoundaryRules(t *testing.T) {
wantError: true,
},
{
name: "chunkplan production may import framework",
filename: "internal/framework/chunkplan/store.go",
sourcePackage: "chunkplan",
name: "artifact cache production may import framework",
filename: "internal/framework/artifactcache/filesystem.go",
sourcePackage: "artifactcache",
importPath: internalImportPrefix + "framework/contracts",
},
{
name: "chunkplan production cannot import modules",
filename: "internal/framework/chunkplan/store.go",
sourcePackage: "chunkplan",
name: "artifact cache production cannot import modules",
filename: "internal/framework/artifactcache/filesystem.go",
sourcePackage: "artifactcache",
importPath: moduleImportPrefix + "dnd",
wantError: true,
},
@@ -424,9 +424,6 @@ func validateImport(filename string, sourcePackage string, importPath string) er
if strings.HasPrefix(filename, "internal/core/source/") && strings.HasPrefix(importPath, moduleImportPrefix) {
return importBoundaryViolation(filename, importPath, "core/source production code must not import framework or module implementations")
}
if strings.HasPrefix(filename, "internal/framework/chunkplan/") && strings.HasPrefix(importPath, moduleImportPrefix) {
return importBoundaryViolation(filename, importPath, "framework/chunkplan production code must not import module implementations")
}
if strings.HasPrefix(filename, "internal/framework/") || strings.HasPrefix(filename, "internal/core/") {
return importBoundaryViolation(filename, importPath, "core and framework production code must not import module implementations")
}