# dharmadpi/myagent_copiedfromjayanthi architecture

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

- Interactive diagram: https://gitdiagram.com/dharmadpi/myagent_copiedfromjayanthi
- Repository: https://github.com/dharmadpi/myagent_copiedfromjayanthi

## Overview

This small utility supports two related workflows: masking database identifiers in spreadsheet metadata, then using the reverse mapping to restore identifiers in test-case YAML and render SQL. The README provides no additional capability detail, and the data files shown in the tree are not evidence of runtime calls; only the source-level workflow is mapped.

Main entry points: [`src/masking.py`](https://github.com/dharmadpi/myagent_copiedfromjayanthi/blob/main/src/masking.py) (Masking entry point), [`src/unmasking.py`](https://github.com/dharmadpi/myagent_copiedfromjayanthi/blob/main/src/unmasking.py) (Unmasking entry point)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_mask["Metadata masking"]
  node_mask_run["Masking entry point<br/>[masking.py]"]
  node_metadata["Spreadsheet metadata<br/>[masking.py]"]
  node_identifiers["Identifier mappings<br/>[masking.py]"]
  node_mask_documents["Masked documents<br/>[masking.py]"]
end

subgraph group_restore["Test-case restoration"]
  node_restore_run["Unmasking entry point<br/>[unmasking.py]"]
  node_test_cases["Test-case YAML<br/>[unmasking.py]"]
  node_reverse_mapping["Reverse mappings<br/>[unmasking.py]"]
  node_restore_documents["Restored YAML and SQL<br/>[unmasking.py]"]
end

node_user(("Operator"))

node_user -->|"runs"| node_mask_run
node_mask_run -->|"loads spreadsheet"| node_metadata
node_mask_run -->|"creates mappings"| node_identifiers
node_mask_run -->|"builds and writes"| node_mask_documents
node_user -->|"runs"| node_restore_run
node_restore_run -->|"loads YAML"| node_test_cases
node_restore_run -->|"loads mapping"| node_reverse_mapping
node_restore_run -->|"builds and writes"| node_restore_documents
node_reverse_mapping -->|"replaces identifiers"| node_restore_documents

click node_mask_run "https://github.com/dharmadpi/myagent_copiedfromjayanthi/blob/main/src/masking.py"
click node_metadata "https://github.com/dharmadpi/myagent_copiedfromjayanthi/blob/main/src/masking.py"
click node_identifiers "https://github.com/dharmadpi/myagent_copiedfromjayanthi/blob/main/src/masking.py"
click node_mask_documents "https://github.com/dharmadpi/myagent_copiedfromjayanthi/blob/main/src/masking.py"
click node_restore_run "https://github.com/dharmadpi/myagent_copiedfromjayanthi/blob/main/src/unmasking.py"
click node_test_cases "https://github.com/dharmadpi/myagent_copiedfromjayanthi/blob/main/src/unmasking.py"
click node_reverse_mapping "https://github.com/dharmadpi/myagent_copiedfromjayanthi/blob/main/src/unmasking.py"
click node_restore_documents "https://github.com/dharmadpi/myagent_copiedfromjayanthi/blob/main/src/unmasking.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_mask_run,node_metadata,node_identifiers,node_mask_documents toneBlue
class node_restore_run,node_test_cases,node_reverse_mapping,node_restore_documents toneAmber
class node_user toneIndigo
```

## Components

### Metadata masking

- [Masking entry point](https://github.com/dharmadpi/myagent_copiedfromjayanthi/blob/main/src/masking.py): `src/masking.py`
- [Spreadsheet metadata](https://github.com/dharmadpi/myagent_copiedfromjayanthi/blob/main/src/masking.py): `src/masking.py`
- [Identifier mappings](https://github.com/dharmadpi/myagent_copiedfromjayanthi/blob/main/src/masking.py): `src/masking.py`
- [Masked documents](https://github.com/dharmadpi/myagent_copiedfromjayanthi/blob/main/src/masking.py): `src/masking.py`

### Test-case restoration

- [Unmasking entry point](https://github.com/dharmadpi/myagent_copiedfromjayanthi/blob/main/src/unmasking.py): `src/unmasking.py`
- [Test-case YAML](https://github.com/dharmadpi/myagent_copiedfromjayanthi/blob/main/src/unmasking.py): `src/unmasking.py`
- [Reverse mappings](https://github.com/dharmadpi/myagent_copiedfromjayanthi/blob/main/src/unmasking.py): `src/unmasking.py`
- [Restored YAML and SQL](https://github.com/dharmadpi/myagent_copiedfromjayanthi/blob/main/src/unmasking.py): `src/unmasking.py`

### Other components

- **Operator**

## Connections

- Operator → Masking entry point: runs (evidence: `src/masking.py`)
- Masking entry point → Spreadsheet metadata: loads spreadsheet (evidence: `src/masking.py`)
- Masking entry point → Identifier mappings: creates mappings (evidence: `src/masking.py`)
- Masking entry point → Masked documents: builds and writes (evidence: `src/masking.py`)
- Operator → Unmasking entry point: runs (evidence: `src/unmasking.py`)
- Unmasking entry point → Test-case YAML: loads YAML (evidence: `src/unmasking.py`)
- Unmasking entry point → Reverse mappings: loads mapping (evidence: `src/unmasking.py`)
- Unmasking entry point → Restored YAML and SQL: builds and writes (evidence: `src/unmasking.py`)
- Reverse mappings → Restored YAML and SQL: replaces identifiers (evidence: `src/unmasking.py`)
