What happens
The documented invocation
model-cli validate local --model-path ./my-model
always outputs
→ Checking required annotations...
Missing required items:
- artifact path not specified
The annotation check only runs when the undocumented --artifact-path flag is given (it is not listed in validate local --help), and even then it is a placeholder: ✓ Required annotations check (simulated).
Cause
cmd/validate_local.go:24-36: --artifact-path is copied into modelPath when the latter is empty, but never the other way round, so SetCheckInfo(modelPath, artifactPath) gets an empty artifactPath.
internal/workflow/check.go:100-116: checkAnnotations bails out on empty artifactPath and otherwise only checks that the directory exists ("simulated").
Expected
--model-path alone is enough (default artifactPath to modelPath, or drop the separate flag).
- The annotation check parses
manifest.json in that directory and verifies the required CNCF annotations, instead of being simulated.
What happens
The documented invocation
always outputs
The annotation check only runs when the undocumented
--artifact-pathflag is given (it is not listed invalidate local --help), and even then it is a placeholder:✓ Required annotations check (simulated).Cause
cmd/validate_local.go:24-36:--artifact-pathis copied intomodelPathwhen the latter is empty, but never the other way round, soSetCheckInfo(modelPath, artifactPath)gets an emptyartifactPath.internal/workflow/check.go:100-116:checkAnnotationsbails out on emptyartifactPathand otherwise only checks that the directory exists ("simulated").Expected
--model-pathalone is enough (defaultartifactPathtomodelPath, or drop the separate flag).manifest.jsonin that directory and verifies the required CNCF annotations, instead of being simulated.