# foysal-a-al/it2-bim-dt architecture

> Architecture diagram of the GitHub repository foysal-a-al/it2-bim-dt, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/foysal-a-al/it2-bim-dt
- Repository: https://github.com/foysal-a-al/it2-bim-dt

## Overview

IT2 is a local IFC integrity workspace and research toolkit. The main user flow is to select or upload IFC data, extract an inventory and geometry fingerprints, inspect explicit-port topology, compare identities across revisions, review findings and mappings, then export evidence. Separate workspace capabilities include model comparison, point-binding continuity, project acceptance policies, controlled experiments and preserved study results. The graph includes the sampled analysis and runtime layers; several UI routes and integrations are documented but their implementations were not sampled, so those relationships are cited to the README rather than treated as inspected code.

Main entry points: [`app/workspace.py`](https://github.com/foysal-a-al/it2-bim-dt/blob/main/app/workspace.py) (Analysis Workspaces), [`app/dashboard.py`](https://github.com/foysal-a-al/it2-bim-dt/blob/main/app/dashboard.py) (Inspection Workspace), [`it2/worker.py`](https://github.com/foysal-a-al/it2-bim-dt/blob/main/it2/worker.py) (Isolated IFC Worker), [`app/app.py`](https://github.com/foysal-a-al/it2-bim-dt/blob/main/app/app.py) (App Entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workspace["IFC Workspace"]
  node_app_entry["App Entry<br/>[app.py]"]
  node_dashboard["Inspection Workspace<br/>[dashboard.py]"]
  node_workspace_routes["Analysis Workspaces<br/>[workspace.py]"]
  node_theme["Workspace Theme<br/>[theme.py]"]
  node_uploads["Upload Handling<br/>[uploads.py]"]
  node_viewer["IFC Geometry Viewer<br/>[viewer.py]"]
  node_cad_viewer["Viewer Integration<br/>[cad_viewer.py]"]
end

subgraph group_analysis["IFC Analysis"]
  node_session_storage[("Session Storage<br/>[storage.py]")]
  node_runtime["Runtime Limits<br/>[runtime.py]"]
  node_worker["Isolated IFC Worker<br/>[worker.py]"]
  node_features["Fingerprint Extraction<br/>[features.py]"]
  node_topology["Topology Audit<br/>[topology.py]"]
  node_graph["Port Graph<br/>[graph.py]"]
  node_inspection["Finding Inspection<br/>[inspection.py]"]
end

subgraph group_identity["Identity Review"]
  node_checker["Operational Checker<br/>[checker.py]"]
  node_matching["Experimental Matcher<br/>[matching.py]"]
  node_operational["Gated Assignment<br/>[operational.py]"]
  node_review_matching["Review Matcher<br/>[review_matching.py]"]
end

subgraph group_evidence["Evidence And Policy"]
  node_review["Review Decisions<br/>[review.py]"]
  node_reporting["Evidence Reports<br/>[reporting.py]"]
  node_policy["Acceptance Policy<br/>[policy.py]"]
end

subgraph group_research["Research Toolkit"]
  node_experiments["Controlled Experiments<br/>[experiments.py]"]
  node_presentation["Study Presentation<br/>[presentation.py]"]
  node_reproduction["Study Scripts<br/>[_common.py]"]
end

node_user(("Engineer"))

node_user -->|"opens"| node_app_entry
node_app_entry -->|"routes to"| node_dashboard
node_app_entry -->|"routes to"| node_workspace_routes
node_app_entry -->|"configures"| node_theme
node_app_entry -->|"uses"| node_uploads
node_uploads -->|"stores uploads"| node_session_storage
node_dashboard -->|"loads findings"| node_inspection
node_dashboard -->|"records decisions"| node_review
node_dashboard -->|"exports evidence"| node_reporting
node_dashboard -->|"loads geometry"| node_viewer
node_dashboard -->|"renders viewer"| node_cad_viewer
node_workspace_routes -->|"submits analysis"| node_worker
node_workspace_routes -->|"runs checks"| node_checker
node_workspace_routes -->|"evaluates policy"| node_policy
node_workspace_routes -->|"runs experiments"| node_experiments
node_worker -->|"uses limits"| node_runtime
node_worker -->|"extracts inventory"| node_features
node_worker -->|"builds topology"| node_graph
node_worker -->|"produces inspection"| node_inspection
node_worker -->|"builds reports"| node_reporting
node_inspection -->|"uses graph"| node_graph
node_topology -->|"uses graph policy"| node_graph
node_checker -->|"assigns candidates"| node_operational
node_checker -->|"uses review matching"| node_review_matching
node_checker -->|"uses matcher settings"| node_matching
node_experiments -->|"runs protocols"| node_matching
node_experiments -->|"uses fingerprints"| node_features
node_experiments -->|"creates results"| node_reporting
node_workspace_routes -->|"exports comparisons"| node_reporting
node_user -->|"selects IFC"| node_workspace_routes
node_workspace_routes -->|"audits connectivity"| node_topology
node_workspace_routes -->|"compares revisions"| node_matching
node_workspace_routes -->|"reviews mappings"| node_review
node_workspace_routes -->|"exports results"| node_reporting
node_workspace_routes -.->|"shows study evidence"| node_presentation
node_workspace_routes -.->|"supports reproduction"| node_reproduction

click node_app_entry "https://github.com/foysal-a-al/it2-bim-dt/blob/main/app/app.py"
click node_dashboard "https://github.com/foysal-a-al/it2-bim-dt/blob/main/app/dashboard.py"
click node_workspace_routes "https://github.com/foysal-a-al/it2-bim-dt/blob/main/app/workspace.py"
click node_theme "https://github.com/foysal-a-al/it2-bim-dt/blob/main/app/theme.py"
click node_uploads "https://github.com/foysal-a-al/it2-bim-dt/blob/main/app/uploads.py"
click node_session_storage "https://github.com/foysal-a-al/it2-bim-dt/blob/main/it2/storage.py"
click node_runtime "https://github.com/foysal-a-al/it2-bim-dt/blob/main/it2/runtime.py"
click node_worker "https://github.com/foysal-a-al/it2-bim-dt/blob/main/it2/worker.py"
click node_features "https://github.com/foysal-a-al/it2-bim-dt/blob/main/it2/features.py"
click node_topology "https://github.com/foysal-a-al/it2-bim-dt/blob/main/it2/topology.py"
click node_graph "https://github.com/foysal-a-al/it2-bim-dt/blob/main/it2/graph.py"
click node_inspection "https://github.com/foysal-a-al/it2-bim-dt/blob/main/it2/inspection.py"
click node_viewer "https://github.com/foysal-a-al/it2-bim-dt/blob/main/it2/viewer.py"
click node_cad_viewer "https://github.com/foysal-a-al/it2-bim-dt/blob/main/app/cad_viewer.py"
click node_checker "https://github.com/foysal-a-al/it2-bim-dt/blob/main/it2/checker.py"
click node_matching "https://github.com/foysal-a-al/it2-bim-dt/blob/main/it2/matching.py"
click node_operational "https://github.com/foysal-a-al/it2-bim-dt/blob/main/it2/operational.py"
click node_review_matching "https://github.com/foysal-a-al/it2-bim-dt/blob/main/it2/review_matching.py"
click node_review "https://github.com/foysal-a-al/it2-bim-dt/blob/main/it2/review.py"
click node_reporting "https://github.com/foysal-a-al/it2-bim-dt/blob/main/it2/reporting.py"
click node_policy "https://github.com/foysal-a-al/it2-bim-dt/blob/main/it2/policy.py"
click node_experiments "https://github.com/foysal-a-al/it2-bim-dt/blob/main/it2/experiments.py"
click node_presentation "https://github.com/foysal-a-al/it2-bim-dt/blob/main/it2/presentation.py"
click node_reproduction "https://github.com/foysal-a-al/it2-bim-dt/blob/main/scripts/_common.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app_entry,node_dashboard,node_workspace_routes,node_theme,node_uploads,node_viewer,node_cad_viewer toneBlue
class node_session_storage,node_runtime,node_worker,node_features,node_topology,node_graph,node_inspection toneAmber
class node_checker,node_matching,node_operational,node_review_matching toneMint
class node_review,node_reporting,node_policy toneRose
class node_experiments,node_presentation,node_reproduction,node_user toneIndigo
```

## Components

### IFC Workspace

- [App Entry](https://github.com/foysal-a-al/it2-bim-dt/blob/main/app/app.py): `app/app.py`
- [Inspection Workspace](https://github.com/foysal-a-al/it2-bim-dt/blob/main/app/dashboard.py): `app/dashboard.py`
- [Analysis Workspaces](https://github.com/foysal-a-al/it2-bim-dt/blob/main/app/workspace.py): `app/workspace.py`
- [Workspace Theme](https://github.com/foysal-a-al/it2-bim-dt/blob/main/app/theme.py): `app/theme.py`
- [Upload Handling](https://github.com/foysal-a-al/it2-bim-dt/blob/main/app/uploads.py): `app/uploads.py`
- [IFC Geometry Viewer](https://github.com/foysal-a-al/it2-bim-dt/blob/main/it2/viewer.py): `it2/viewer.py`
- [Viewer Integration](https://github.com/foysal-a-al/it2-bim-dt/blob/main/app/cad_viewer.py): `app/cad_viewer.py`

### IFC Analysis

- [Session Storage](https://github.com/foysal-a-al/it2-bim-dt/blob/main/it2/storage.py): `it2/storage.py`
- [Runtime Limits](https://github.com/foysal-a-al/it2-bim-dt/blob/main/it2/runtime.py): `it2/runtime.py`
- [Isolated IFC Worker](https://github.com/foysal-a-al/it2-bim-dt/blob/main/it2/worker.py): `it2/worker.py`
- [Fingerprint Extraction](https://github.com/foysal-a-al/it2-bim-dt/blob/main/it2/features.py): `it2/features.py`
- [Topology Audit](https://github.com/foysal-a-al/it2-bim-dt/blob/main/it2/topology.py): `it2/topology.py`
- [Port Graph](https://github.com/foysal-a-al/it2-bim-dt/blob/main/it2/graph.py): `it2/graph.py`
- [Finding Inspection](https://github.com/foysal-a-al/it2-bim-dt/blob/main/it2/inspection.py): `it2/inspection.py`

### Identity Review

- [Operational Checker](https://github.com/foysal-a-al/it2-bim-dt/blob/main/it2/checker.py): `it2/checker.py`
- [Experimental Matcher](https://github.com/foysal-a-al/it2-bim-dt/blob/main/it2/matching.py): `it2/matching.py`
- [Gated Assignment](https://github.com/foysal-a-al/it2-bim-dt/blob/main/it2/operational.py): `it2/operational.py`
- [Review Matcher](https://github.com/foysal-a-al/it2-bim-dt/blob/main/it2/review_matching.py): `it2/review_matching.py`

### Evidence And Policy

- [Review Decisions](https://github.com/foysal-a-al/it2-bim-dt/blob/main/it2/review.py): `it2/review.py`
- [Evidence Reports](https://github.com/foysal-a-al/it2-bim-dt/blob/main/it2/reporting.py): `it2/reporting.py`
- [Acceptance Policy](https://github.com/foysal-a-al/it2-bim-dt/blob/main/it2/policy.py): `it2/policy.py`

### Research Toolkit

- [Controlled Experiments](https://github.com/foysal-a-al/it2-bim-dt/blob/main/it2/experiments.py): `it2/experiments.py`
- [Study Presentation](https://github.com/foysal-a-al/it2-bim-dt/blob/main/it2/presentation.py): `it2/presentation.py`
- [Study Scripts](https://github.com/foysal-a-al/it2-bim-dt/blob/main/scripts/_common.py): `scripts/_common.py`

### Other components

- **Engineer**

## Connections

- Engineer → App Entry: opens
- App Entry → Inspection Workspace: routes to (evidence: `app/app.py`)
- App Entry → Analysis Workspaces: routes to (evidence: `app/app.py`)
- App Entry → Workspace Theme: configures (evidence: `app/app.py`)
- App Entry → Upload Handling: uses (evidence: `app/app.py`)
- Upload Handling → Session Storage: stores uploads (evidence: `app/uploads.py`)
- Inspection Workspace → Finding Inspection: loads findings (evidence: `app/dashboard.py`)
- Inspection Workspace → Review Decisions: records decisions (evidence: `app/dashboard.py`)
- Inspection Workspace → Evidence Reports: exports evidence (evidence: `app/dashboard.py`)
- Inspection Workspace → IFC Geometry Viewer: loads geometry (evidence: `app/dashboard.py`)
- Inspection Workspace → Viewer Integration: renders viewer (evidence: `app/dashboard.py`)
- Analysis Workspaces → Isolated IFC Worker: submits analysis (evidence: `app/workspace.py`)
- Analysis Workspaces → Operational Checker: runs checks (evidence: `app/workspace.py`)
- Analysis Workspaces → Acceptance Policy: evaluates policy (evidence: `app/workspace.py`)
- Analysis Workspaces → Controlled Experiments: runs experiments (evidence: `app/workspace.py`)
- Isolated IFC Worker → Runtime Limits: uses limits (evidence: `it2/worker.py`)
- Isolated IFC Worker → Fingerprint Extraction: extracts inventory (evidence: `it2/worker.py`)
- Isolated IFC Worker → Port Graph: builds topology (evidence: `it2/worker.py`)
- Isolated IFC Worker → Finding Inspection: produces inspection (evidence: `it2/worker.py`)
- Isolated IFC Worker → Evidence Reports: builds reports (evidence: `it2/worker.py`)
- Finding Inspection → Port Graph: uses graph (evidence: `it2/inspection.py`)
- Topology Audit → Port Graph: uses graph policy (evidence: `it2/topology.py`)
- Operational Checker → Gated Assignment: assigns candidates (evidence: `it2/checker.py`)
- Operational Checker → Review Matcher: uses review matching (evidence: `it2/checker.py`)
- Operational Checker → Experimental Matcher: uses matcher settings (evidence: `it2/checker.py`)
- Controlled Experiments → Experimental Matcher: runs protocols (evidence: `it2/experiments.py`)
- Controlled Experiments → Fingerprint Extraction: uses fingerprints (evidence: `it2/experiments.py`)
- Controlled Experiments → Evidence Reports: creates results (evidence: `it2/experiments.py`)
- Analysis Workspaces → Evidence Reports: exports comparisons (evidence: `app/workspace.py`)
- Engineer → Analysis Workspaces: selects IFC
- Analysis Workspaces → Topology Audit: audits connectivity
- Analysis Workspaces → Experimental Matcher: compares revisions (evidence: `app/workspace.py`)
- Analysis Workspaces → Review Decisions: reviews mappings (evidence: `app/workspace.py`)
- Analysis Workspaces → Evidence Reports: exports results (evidence: `app/workspace.py`)
- Analysis Workspaces → Study Presentation: shows study evidence
- Analysis Workspaces → Study Scripts: supports reproduction
