Cover manifest.py lazy (on-disk) loader branches #308

Merged
didericis-claude merged 1 commits from cover-manifest-lazy-loader into main 2026-06-26 21:19:32 -04:00

1 Commits

Author SHA1 Message Date
didericis 284307a3e9 test(manifest): cover lazy (on-disk) loader branches
lint / lint (push) Successful in 2m23s
test / unit (pull_request) Successful in 58s
test / integration (pull_request) Successful in 26s
test / coverage (pull_request) Successful in 1m18s
The eager from_json_obj path is unit-tested; the lazy resolve()/
from_md_dirs path was only hit by the integration suite, so a critical
module relied on Docker for branch coverage. Add tmp-dir tests driving:
all_agent_names with a cwd overlay, load_for_agent on unknown and
malformed-frontmatter agent files, and require_agent's names-only
file-existence checks (home + cwd).

manifest.py: 86% -> 99%. The one remaining line is the OSError branch on
an unreadable agent file (not reliably triggerable cross-environment).

Closes #304

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NkwFXLFff9PYPy4wgVBJp9
2026-06-26 20:40:50 -04:00