# tagman45/investigator architecture

> Architecture diagram of the GitHub repository tagman45/investigator, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/tagman45/investigator
- Repository: https://github.com/tagman45/investigator

## Overview

This repository is identified only as “investigator”; the supplied README does not describe an audit-product workflow. The sampled runtime is a small periodic Git synchronization utility: it checks and stages changes in two configured local repositories, commits when needed, pushes commits ahead of origin/main, and logs outcomes. Audit files appear in the tree, but their contents and any workflow connecting them to this utility were not sampled, so they are not mapped as runtime components.

Main entry points: [`tools/auto_commit_push.py`](https://github.com/tagman45/investigator/blob/main/tools/auto_commit_push.py) (Git sync loop)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_timer(("Periodic timer"))
node_sync["Git sync loop"]
node_git["Git CLI"]
node_investigator[("Investigator repository")]
node_xdna[("XDNA2 repository")]
node_origin["Git origin"]
node_log["Sync log"]

node_timer -->|"starts loop"| node_sync
node_sync -->|"runs commands"| node_git
node_git -->|"syncs changes"| node_investigator
node_git -->|"syncs changes"| node_xdna
node_git -->|"checks and pushes"| node_origin
node_sync -->|"records outcomes"| node_log

click node_sync "https://github.com/tagman45/investigator/blob/main/tools/auto_commit_push.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_timer,node_git,node_origin,node_log toneIndigo
class node_sync toneTeal
class node_investigator,node_xdna toneAmber
```

## Components

### Other components

- **Periodic timer**
- [Git sync loop](https://github.com/tagman45/investigator/blob/main/tools/auto_commit_push.py): `tools/auto_commit_push.py`
- **Git CLI**
- **Investigator repository**
- **XDNA2 repository**
- **Git origin**
- **Sync log**

## Connections

- Periodic timer → Git sync loop: starts loop (evidence: `tools/auto_commit_push.py`)
- Git sync loop → Git CLI: runs commands (evidence: `tools/auto_commit_push.py`)
- Git CLI → Investigator repository: syncs changes
- Git CLI → XDNA2 repository: syncs changes
- Git CLI → Git origin: checks and pushes
- Git sync loop → Sync log: records outcomes (evidence: `tools/auto_commit_push.py`)
