core, and core imports no other package.

Components, one per package
Packages
Dependency rules
coredefines the interfaces (Source,Extractor,GraphStore,EmbedderandResolver, incore/pipeline.py). The other packages implement them.llm/base.pydefinesLlmClient,decision/base.pydefinesDecider, andretrieval/searcher.pydefinesConceptSource. Each interface is aProtocol, so a test can pass a fake.- Every external service sits behind one adapter: the database in
sources/sql.py, models inllm/,embedding/anddecision/, and the index instores/. nerimports no other package of ours. Its interface and helpers import no model SDK.ner/litert_gliner.pyimports numpy, and importsai_edge_litertandtokenizersonly when a real model is built. It does not import torch orglinerunless you ask for that fallback.llm/litert.pyimportslitert_lmonly when it first needs the engine.authoringis a leaf: nothing imports it, and it imports no model or gateway library. It reaches a model only through theclaudeCLI and a URL you configure. You run that endpoint yourself, outside ladyGraph.- Each package that talks to a model or a database ships a fake (
llm/fake.py,embedding/fake.py,decision/fake.pyandstores/memory.py). That is how the test suite runs offline.
How it works
The indexing and search paths that these packages implement.