Cover manifest.py lazy (on-disk) loader branches #308
Reference in New Issue
Block a user
Delete Branch "cover-manifest-lazy-loader"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #304.
Summary
The eager
from_json_objpath is unit-tested (test_manifest_validation.py), but the lazyresolve()/from_md_dirson-disk path was only exercised by the integration suite — so a critical module depended on Docker for branch coverage.Adds
test_manifest_lazy_loader.pywith temp-dir fixtures (.bot-bottle/agents/*.md+bottles/*.md) driving:all_agent_namesmerging a cwd agent overlay onto homeload_for_agenton an unknown agent and on a malformed-frontmatter agent file (tab-in-indent →YamlSubsetError→ManifestError)require_agent's names-only file-existence checks (home file, cwd-only file, unknown)Coverage
manifest.pyThe one remaining line is the
OSErrorbranch on an unreadable agent file (not reliably triggerable cross-environment —chmod 000is a no-op under root CI). 6 new tests; full suite (1482) passes; pyright clean; pylint 10.00.