Orchestrata code reference

This is the generated code reference for Orchestrata. A generator reads the source and writes one page per Python module and one index page per package. Each module page has a prose section, an at-a-glance table (source link, size, internal imports, importers and the tests that import it), class and dependency diagrams, the API tables, and the code listing. Each package page lists its subpackages and modules with their sizes. The hand-written prose sections are kept when the pages are regenerated; everything outside them is rewritten.

The reference is organised into groups, shown in the package table below.

Use it together with the curated pages. The architecture overview, the component DAG and the per-package narratives under modules (for example core and di) explain why the system is shaped as it is and how a request moves through it. The reference answers the exact questions: what a module defines, who imports it, which tests cover it, and what its signatures are. Package pages link to the curated narrative when one exists. A good route is to read the narrative first, then follow its module names into the reference.

To regenerate the pages, run the script scripts/gen-reference.py from the knowledge-wiki repository with the project option set to orchestrata; the command is given in the "How to regenerate" section below. Add the check option to see whether anything would change, and the component-modules option to also emit per-module pages for the components. The revision section records the source commit, and the permalinks in the pages use a second commit, as shown there.

Generated pages: one per Python module, with a class diagram, dependency diagram, API table, and the code listing. Package pages summarise each directory. Prose slots on every page are preserved on regeneration.

Revision

Revision 8a2cb42ad (permalinks use a4cbc2bdf)
Repository https://gitlab.com/MSamy/orchestrata-ultimate-architecture
Generated 2026-10-23
Modules 1,151 with pages, 1,790 component modules listed at package level
Lines of code 566,437
Classes 3,508
Functions 6,162

Packages

Package Modules LOC
orchestrata_ast 7 2,258
orchestrata_tools 60 9,885
orchestrata_tools.backcompat 5 246
orchestrata_tools.complexity 2 136
orchestrata_tools.context 6 448
orchestrata_tools.dependency 3 106
orchestrata_tools.diagram 4 961
orchestrata_tools.models 3 328
orchestrata_tools.parser 4 787
orchestrata_tools.query 3 132
orchestrata_tools.reviewer 4 395
orchestrata_tools.test_analyzer 5 1,238
orchestrata_tools.test_generator 18 4,909
orchestrata_tools.utils 1 0
orchestrata_ultimate 902 242,957
orchestrata_ultimate.agents 78 27,430
orchestrata_ultimate.context 11 1,445
orchestrata_ultimate.core 92 18,404
orchestrata_ultimate.cxp 37 9,628
orchestrata_ultimate.di 2 918
orchestrata_ultimate.domaingen 7 738
orchestrata_ultimate.drivers 12 2,784
orchestrata_ultimate.factory 74 13,812
orchestrata_ultimate.gates 5 2,686
orchestrata_ultimate.gateway 49 12,376
orchestrata_ultimate.governance 28 6,865
orchestrata_ultimate.harness 20 4,131
orchestrata_ultimate.infra 3 1,253
orchestrata_ultimate.integrations 4 1,099
orchestrata_ultimate.kernel 51 19,600
orchestrata_ultimate.knowledge_graph 55 21,436
orchestrata_ultimate.llm 5 1,894
orchestrata_ultimate.memory 8 1,754
orchestrata_ultimate.openspec 7 723
orchestrata_ultimate.orchestrator 42 15,904
orchestrata_ultimate.planning 2 389
orchestrata_ultimate.plugin 14 3,882
orchestrata_ultimate.postman 31 11,199
orchestrata_ultimate.promotion 23 4,089
orchestrata_ultimate.providers 16 2,722
orchestrata_ultimate.refactor 50 12,684
orchestrata_ultimate.semantic_graph 20 5,437
orchestrata_ultimate.session 63 14,958
orchestrata_ultimate.tools 20 13,457
orchestrata_ultimate.verification 66 9,151
scripts 182 93,066
scripts.migration 1 73

Components (packages/*/src)

Component Modules LOC
contracts 403 18,083
gateway 73 13,439
governance 254 24,486
kernel 411 59,309
knowledge_graph 161 28,253
session 59 12,755
tools 28 14,503
volks 401 47,443

How to regenerate

cd /home/mohamed/workspace/knowledge-wiki && /home/mohamed/workspace/knowledge-wiki/.venv/bin/python scripts/gen-reference.py --project orchestrata

Add --check to verify nothing would change (exit 1 if it would), and --component-modules to also emit per-module pages for the component packages.