aaif-goose/goose · error
check {}: invalid filename
Error message
check {}: invalid filename What it means
Error "check {}: invalid filename" thrown in aaif-goose/goose.
Source
Thrown at crates/goose/src/checks/mod.rs:110
// Tolerate CRLF line endings before delegating to the shared splitter.
let normalized = trimmed.replace("\r\n", "\n");
let (frontmatter, body) = match parse_frontmatter::<CheckFrontmatter>(&normalized) {
Ok(Some(parsed)) => parsed,
Ok(None) => bail!(
"check {}: missing closing --- in frontmatter",
path.display()
),
Err(e) => {
return Err(anyhow!(e))
.with_context(|| format!("check {}: invalid frontmatter YAML", path.display()))
}
};
let file_stem = path
.file_stem()
.and_then(|s| s.to_str())
.ok_or_else(|| anyhow!("check {}: invalid filename", path.display()))?
.to_string();
let name = match frontmatter.name {
Some(declared) if !declared.is_empty() => declared,
_ => file_stem,
};
Ok(Check {
name,
description: frontmatter.description,
model: frontmatter.model,
turn_limit: frontmatter.turn_limit,
tools: frontmatter.tools,
severity_default: frontmatter.severity_default,
path: path.to_path_buf(),
scope_dir: String::new(),
body,
})View on GitHub (pinned to 3810898a74)
When it happens
Trigger: Thrown at crates/goose/src/checks/mod.rs:110 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of aaif-goose/goose@3810898a74 (2026-08-16).
Data as JSON: /api/errors/5c1d33d20681d2d6.
Report an issue: GitHub.