Hmbown/CodeWhale · error
skill ' ' has unknown package digest; refusing mutation
Error message
skill '{name}' has unknown package digest; refusing mutation What it means
Every mutation of an owned skill requires a known content digest so the library can verify the package has not changed since it was audited. When the catalog's DigestState for the matched skill is not Known (digest computation failed, was never recorded, or the package is in an unreadable state), the resolver refuses to proceed rather than mutating unverified content.
Solutions
- Re-list/re-scan the catalog so digests are recomputed, then retry the mutation
- Fix read permissions on the skill package directory so the digest can be computed
- Re-import the skill into the owned root to rebuild a complete, digested package entry
- Remove the broken package and install it fresh
Defensive patterns
Strategy: validation
Validate before calling
fn digest_is_known(catalog: &SkillCatalog, name: &str) -> bool {
matches!(catalog.digest_state_for(name), Some(DigestState::Known(_)))
} Type guard
fn known_digest(state: &DigestState) -> Option<&str> {
match state { DigestState::Known(d) => Some(d), _ => None }
} Try / catch
if !digest_is_known(&catalog, name) {
catalog.rescan()?; // force digest recomputation before mutating
} Prevention
- Re-scan the catalog after any change to skill package directories
- Fix read permissions on skill packages so digests can be computed
- Re-import hand-created or partially written skill packages to establish a valid digest
When it happens
Trigger: execute/execute_sync with a name-based request where exactly one owned-root skill matches the name but its digest state is DigestState other than Known — e.g. the package directory is unreadable, digest computation previously errored, or the catalog entry predates digest tracking.
Common situations: A partially-written or corrupted skill package; a skill directory created by hand rather than via import; permission problems preventing the digest from being computed; a catalog cache written by an older version without digests.
Understand the failure class
Background: Checksum mismatch errors: "checksum verification failed", "digest mismatch", "expected vs actual checksum" — what they mean and how to fix them — this error's family across 41 libraries.
Related errors
- skill content changed since audit
- imported content digest mismatch after copy; aborted
- installed package failed content digest validation
- skill ' ' not found in Codewhale-owned project/global roots
- audited owned root does not match mutation target
AI-assisted analysis of Hmbown/CodeWhale@73e0f67d83 (2026-09-22).
Data as JSON: /api/errors/bbf04c19bccbbe53.
Report an issue: GitHub.
Appendix: source
Thrown at crates/tui/src/skills/mutation.rs:502
ctx.home,
ctx.configured_skills_dir,
SkillAuditMode::Compatible,
None,
);
if compatible.skills.iter().any(|s| {
s.id.canonical_name == canonical
&& s.source_kind == SkillSourceKind::CompatibleExternal
}) {
bail!(
"skill '{name}' exists only in a compatible external root; \
import it with /skills (refusing to write external harness directories)"
);
}
bail!("skill '{name}' not found in Codewhale-owned project/global roots");
}
[only] => {
let DigestState::Known(digest) = &only.digest else {
bail!("skill '{name}' has unknown package digest; refusing mutation");
};
Ok(ResolvedOwnedSkill {
id: only.id.clone(),
digest: digest.clone(),
})
}
_ => bail!(
"skill '{name}' exists in both project and global Codewhale roots; \
specify --project or --global"
),
}
}
fn find_audited_skill(
ctx: &MutationContext<'_>,
skill_id: &AuditedSkillId,
) -> Result<(AuditedSkill, PathBuf)> {
let snap = scan_with_configured(View on GitHub (pinned to 73e0f67d83)