inspect_repository#
Let a model keep its own tools and notes in a repository on disk. See the guide.
- zett_agent.jit_harness.manifest.inspect_repository(directory, *, tools=None)[source]#
Read the repository’s raw declarations and report every problem with them.
Nothing is imported: this is file work, so it answers for a directory no session has opened.
- Parameters:
directory (str | Path) – Repository root, the directory holding
__init__.py.tools (Iterable[str] | None) – Names the repository defines.
Nonemeans they are not known yet, so only the rules that depend on the files are checked; pass the names — an empty iterable included — to check them against the bans and to compare them with the declaration.
- Returns:
A
RepositoryPolicyholding the parsed manifest, the ban list, and one message per problem.RepositoryPolicy.okis false when there are any.- Return type: