# aishveercode/loackypkm architecture

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

- Interactive diagram: https://gitdiagram.com/aishveercode/loackypkm
- Repository: https://github.com/aishveercode/loackypkm

## Overview

This repository is an Obsidian-based personal knowledge vault with Python tools for ingesting and enriching notes, finding related knowledge, and auditing vault health. A typical flow starts with a person adding source material or a YouTube link; the ingestion tool stages and enriches it before it becomes a vault note. Later, search retrieves relevant notes, while governance and summary tools maintain metadata and surface problems. The source excerpts show some internal calls, but not the full implementations or README documentation, so uncertain subsystem connections are omitted.

Main entry points: [`Lorenzo/99 - Meta/Scripts/brain_ingest.py`](https://github.com/aishveercode/loackypkm/blob/main/Lorenzo/99%20-%20Meta/Scripts/brain_ingest.py) (Ingestion engine), [`Lorenzo/99 - Meta/Scripts/brain_health.py`](https://github.com/aishveercode/loackypkm/blob/main/Lorenzo/99%20-%20Meta/Scripts/brain_health.py) (Vault governance), [`Atlas`](https://github.com/aishveercode/loackypkm/tree/main/Atlas) (Obsidian vault), [`Lorenzo/99 - Meta/Scripts/youtube_helper.py`](https://github.com/aishveercode/loackypkm/blob/main/Lorenzo/99%20-%20Meta/Scripts/youtube_helper.py) (YouTube extraction)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ingest["Note Ingestion"]
  node_ingest_engine["Ingestion engine<br/>[brain_ingest.py]"]
  node_youtube["YouTube extraction<br/>[youtube_helper.py]"]
end

subgraph group_knowledge["Vault Knowledge"]
  node_vault[("Obsidian vault")]
  node_moc["Maps of content"]
  node_inbox["Inbox and drafts"]
  node_blog["Blog notes"]
end

subgraph group_maintenance["Vault Maintenance"]
  node_health["Vault governance<br/>[brain_health.py]"]
  node_dashboard["Health dashboard"]
  node_backfill["Summary backfill"]
end

subgraph group_retrieval["Knowledge Retrieval"]
  node_recall["Hybrid recall<br/>[recall_engine.py]"]
end

node_person(("Vault user"))
node_ai_cli["AI CLI"]
node_youtube_service["YouTube"]

node_person -->|"submits sources"| node_ingest_engine
node_ingest_engine -->|"extracts video"| node_youtube
node_ingest_engine -->|"requests enrichment"| node_ai_cli
node_ingest_engine -->|"stages drafts"| node_inbox
node_ingest_engine -->|"stages notes"| node_vault
node_youtube -->|"fetches media"| node_youtube_service
node_youtube -->|"writes transcripts"| node_inbox
node_person -->|"searches notes"| node_recall
node_recall -->|"indexes notes"| node_vault
node_person -->|"runs governance"| node_health
node_health -->|"audits notes"| node_vault
node_health -->|"generates report"| node_dashboard
node_person -->|"requests summaries"| node_backfill
node_backfill -->|"generates summaries"| node_ai_cli
node_backfill -->|"updates metadata"| node_vault
node_recall -->|"uses note parsing"| node_health

click node_ingest_engine "https://github.com/aishveercode/loackypkm/blob/main/Lorenzo/99%20-%20Meta/Scripts/brain_ingest.py"
click node_youtube "https://github.com/aishveercode/loackypkm/blob/main/Lorenzo/99%20-%20Meta/Scripts/youtube_helper.py"
click node_vault "https://github.com/aishveercode/loackypkm/tree/main/Atlas"
click node_moc "https://github.com/aishveercode/loackypkm/tree/main/Lorenzo/01%20-%20Map%20of%20Content"
click node_inbox "https://github.com/aishveercode/loackypkm/tree/main/Lorenzo/02%20-%20Inbox"
click node_blog "https://github.com/aishveercode/loackypkm/tree/main/Lorenzo/04%20-%20Blog"
click node_health "https://github.com/aishveercode/loackypkm/blob/main/Lorenzo/99%20-%20Meta/Scripts/brain_health.py"
click node_dashboard "https://github.com/aishveercode/loackypkm/blob/main/Lorenzo/99%20-%20Meta/Vault%20Health%20Dashboard.md"
click node_backfill "https://github.com/aishveercode/loackypkm/blob/main/Lorenzo/99%20-%20Meta/Scripts/backfill_summaries.py"
click node_recall "https://github.com/aishveercode/loackypkm/blob/main/Lorenzo/99%20-%20Meta/Scripts/recall_engine.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_ingest_engine,node_youtube,node_person toneBlue
class node_vault,node_moc,node_inbox,node_blog toneAmber
class node_health,node_dashboard,node_backfill toneMint
class node_recall toneRose
class node_ai_cli,node_youtube_service toneIndigo
```

## Components

### Note Ingestion

- [Ingestion engine](https://github.com/aishveercode/loackypkm/blob/main/Lorenzo/99%20-%20Meta/Scripts/brain_ingest.py): `Lorenzo/99 - Meta/Scripts/brain_ingest.py`
- [YouTube extraction](https://github.com/aishveercode/loackypkm/blob/main/Lorenzo/99%20-%20Meta/Scripts/youtube_helper.py): `Lorenzo/99 - Meta/Scripts/youtube_helper.py`

### Vault Knowledge

- [Obsidian vault](https://github.com/aishveercode/loackypkm/tree/main/Atlas): `Atlas`
- [Maps of content](https://github.com/aishveercode/loackypkm/tree/main/Lorenzo/01%20-%20Map%20of%20Content): `Lorenzo/01 - Map of Content`
- [Inbox and drafts](https://github.com/aishveercode/loackypkm/tree/main/Lorenzo/02%20-%20Inbox): `Lorenzo/02 - Inbox`
- [Blog notes](https://github.com/aishveercode/loackypkm/tree/main/Lorenzo/04%20-%20Blog): `Lorenzo/04 - Blog`

### Vault Maintenance

- [Vault governance](https://github.com/aishveercode/loackypkm/blob/main/Lorenzo/99%20-%20Meta/Scripts/brain_health.py): `Lorenzo/99 - Meta/Scripts/brain_health.py`
- [Health dashboard](https://github.com/aishveercode/loackypkm/blob/main/Lorenzo/99%20-%20Meta/Vault%20Health%20Dashboard.md): `Lorenzo/99 - Meta/Vault Health Dashboard.md`
- [Summary backfill](https://github.com/aishveercode/loackypkm/blob/main/Lorenzo/99%20-%20Meta/Scripts/backfill_summaries.py): `Lorenzo/99 - Meta/Scripts/backfill_summaries.py`

### Knowledge Retrieval

- [Hybrid recall](https://github.com/aishveercode/loackypkm/blob/main/Lorenzo/99%20-%20Meta/Scripts/recall_engine.py): `Lorenzo/99 - Meta/Scripts/recall_engine.py`

### Other components

- **Vault user**
- **AI CLI**
- **YouTube**

## Connections

- Vault user → Ingestion engine: submits sources (evidence: `Lorenzo/99 - Meta/Scripts/brain_ingest.py`)
- Ingestion engine → YouTube extraction: extracts video (evidence: `Lorenzo/99 - Meta/Scripts/brain_ingest.py`)
- Ingestion engine → AI CLI: requests enrichment (evidence: `Lorenzo/99 - Meta/Scripts/brain_ingest.py`)
- Ingestion engine → Inbox and drafts: stages drafts (evidence: `Lorenzo/99 - Meta/Scripts/brain_ingest.py`)
- Ingestion engine → Obsidian vault: stages notes (evidence: `Lorenzo/99 - Meta/Scripts/brain_ingest.py`)
- YouTube extraction → YouTube: fetches media (evidence: `Lorenzo/99 - Meta/Scripts/youtube_helper.py`)
- YouTube extraction → Inbox and drafts: writes transcripts (evidence: `Lorenzo/99 - Meta/Scripts/youtube_helper.py`)
- Vault user → Hybrid recall: searches notes (evidence: `Lorenzo/99 - Meta/Scripts/recall_engine.py`)
- Hybrid recall → Obsidian vault: indexes notes (evidence: `Lorenzo/99 - Meta/Scripts/recall_engine.py`)
- Vault user → Vault governance: runs governance (evidence: `Lorenzo/99 - Meta/Scripts/brain_health.py`)
- Vault governance → Obsidian vault: audits notes (evidence: `Lorenzo/99 - Meta/Scripts/brain_health.py`)
- Vault governance → Health dashboard: generates report (evidence: `Lorenzo/99 - Meta/Scripts/brain_health.py`)
- Vault user → Summary backfill: requests summaries (evidence: `Lorenzo/99 - Meta/Scripts/backfill_summaries.py`)
- Summary backfill → AI CLI: generates summaries (evidence: `Lorenzo/99 - Meta/Scripts/backfill_summaries.py`)
- Summary backfill → Obsidian vault: updates metadata (evidence: `Lorenzo/99 - Meta/Scripts/backfill_summaries.py`)
- Hybrid recall → Vault governance: uses note parsing (evidence: `Lorenzo/99 - Meta/Scripts/recall_engine.py`)
