JuliusBrussee/caveman · error

native pack: invalid identity

Error message

native pack: invalid identity

What it means

Native-pack validation found an invalid identity: schema is not 'caveman.native-pack.v1', or ID, Version, or Protocol is empty/zero. The loader rejects packs that do not declare a known schema and complete identity before any skill is trusted.

Solutions

  1. Set schema to caveman.native-pack.v1 with non-empty id and version
  2. Bump the protocol field to a positive version matching the loader
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at proxy/internal/nativepack/pack.go:93 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of JuliusBrussee/caveman@766dce6b13 (2026-08-18). Data as JSON: /api/errors/ea172fa700fb7be4. Report an issue: GitHub.

Appendix: source

Thrown at proxy/internal/nativepack/pack.go:93

	}
	taskType = strings.ToLower(strings.TrimSpace(taskType))
	var selected Skill
	found := false
	for _, skill := range pack.Skills {
		for _, candidate := range skill.TaskTypes {
			if candidate == taskType {
				if !found || skill.Precedence > selected.Precedence {
					selected, found = skill, true
				}
			}
		}
	}
	return selected, found
}

func validate(pack Pack) error {
	if pack.Schema != "caveman.native-pack.v1" || pack.ID == "" || pack.Version == "" || pack.Protocol < 1 {
		return errors.New("native pack: invalid identity")
	}
	if !pack.Core.Mandatory || pack.Core.Instructions == "" || pack.Core.EstimatedTokens > pack.Core.PromptTokenBudget {
		return errors.New("native pack: invalid Core budget or instructions")
	}
	owners := map[string][]Skill{}
	ids := map[string]bool{}
	for _, skill := range pack.Skills {
		if skill.ID == "" || ids[skill.ID] || skill.Activation != "classified" || skill.Instructions == "" || len(skill.Instructions) > skill.PromptByteBudget {
			return fmt.Errorf("native pack: invalid skill %q", skill.ID)
		}
		ids[skill.ID] = true
		for _, taskType := range skill.TaskTypes {
			owners[taskType] = append(owners[taskType], skill)
		}
	}
	for _, skill := range pack.Skills {
		for _, conflict := range skill.Conflicts {
			if !ids[conflict] {

View on GitHub (pinned to 766dce6b13)