We could analyze whether a component actually implements a well defined pattern (e.g. a repository, a service, etc.) as defined by some document or public knowledge
Find out, whether the domain layer actually implements the rules that have been defined in the requirements
Ask the AI questions regarding the assessed architecture
There are some use cases, where it might be useful for gavel to ingest code or entire components and use an AI model to analyze them.
Recent post on the Martin Fowler Blog: https://martinfowler.com/articles/legacy-modernization-gen-ai.html
An approach may be to include an optional dependency on a llamafile such as: https://github.com/Mozilla-Ocho/llamafile
Some ideas I have in mind: