# upcominggit/veda-advisor architecture

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

- Interactive diagram: https://gitdiagram.com/upcominggit/veda-advisor
- Repository: https://github.com/upcominggit/veda-advisor

## Overview

Veda combines assistant-guided investment analysis with local portfolio data, research and decision-support scripts, and a read-only dashboard. The graph follows the documented user workflow and includes major research, market-data, allocation, tax, and review capabilities. Some script-to-script links are supported by the SOURCE INDEX; unsampled runtime wiring is omitted rather than inferred.

Main entry points: [`dashboard/app.py`](https://github.com/upcominggit/veda-advisor/blob/main/dashboard/app.py) (Read-only dashboard), [`SKILL.md`](https://github.com/upcominggit/veda-advisor/blob/main/SKILL.md) (Veda advisor), [`scripts/ledger.py`](https://github.com/upcominggit/veda-advisor/blob/main/scripts/ledger.py) (Transaction ledger), [`scripts/research_feed.py`](https://github.com/upcominggit/veda-advisor/blob/main/scripts/research_feed.py) (Research feed)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_assistant["Advisor guidance"]
  node_veda_skill["Veda advisor<br/>[SKILL.md]"]
  node_framework_router["Framework routing"]
  node_investor_frameworks["Investor frameworks"]
end

subgraph group_portfolio["Portfolio operations"]
  node_profile["Investor profile"]
  node_broker_holdings["Broker holdings<br/>[kite.py]"]
  node_portfolio_ledger[("Transaction ledger<br/>[ledger.py]")]
  node_portfolio_nav["Portfolio valuation<br/>[nav.py]"]
end

subgraph group_research["Research intelligence"]
  node_live_quotes["Live quotes<br/>[fetch_quote.py]"]
  node_company_fundamentals["Fundamentals and valuation"]
  node_research_feed["Research feed<br/>[research_feed.py]"]
  node_company_workspace["Company workspaces<br/>[company_view.py]"]
  node_company_calendar["Company calendars<br/>[calendar_feed.py]"]
end

subgraph group_decision["Decision support"]
  node_portfolio_formation["Portfolio formation"]
  node_concentration["Concentration analysis<br/>[concentration.py]"]
  node_tax_awareness["Tax awareness<br/>[tax.py]"]
  node_decision_review["Decision review"]
end

subgraph group_dashboard["Local dashboard"]
  node_dashboard_app["Read-only dashboard<br/>[app.py]"]
  node_dashboard_readers["Workspace readers<br/>[readers.py]"]
  node_dashboard_derived["Derived views<br/>[derived.py]"]
  node_dashboard_formatters["Display formatters<br/>[formatters.py]"]
end

node_investor(("Investor"))
node_assistant_host["AI assistant"]

node_investor -->|"asks questions"| node_assistant_host
node_assistant_host -->|"uses advisor"| node_veda_skill
node_veda_skill -->|"personalizes advice"| node_profile
node_veda_skill -->|"pulls holdings"| node_broker_holdings
node_veda_skill -.->|"routes frameworks"| node_framework_router
node_framework_router -.->|"selects framework"| node_investor_frameworks
node_investor -.->|"records transactions"| node_portfolio_ledger
node_portfolio_ledger -->|"supplies transactions"| node_tax_awareness
node_portfolio_ledger -.->|"tracks portfolio"| node_portfolio_nav
node_investor -->|"requests current prices"| node_live_quotes
node_live_quotes -.->|"provides market data"| node_company_fundamentals
node_assistant_host -->|"reads research"| node_research_feed
node_research_feed -->|"classifies coverage"| node_portfolio_formation
node_research_feed -->|"informs company view"| node_company_workspace
node_investor -->|"reviews thesis"| node_company_workspace
node_investor -->|"checks events"| node_company_calendar
node_portfolio_formation -->|"uses concentration"| node_concentration
node_investor -->|"checks tax impact"| node_tax_awareness
node_investor -->|"reviews past calls"| node_decision_review
node_investor -->|"opens local view"| node_dashboard_app
node_dashboard_app -->|"reads workspace"| node_dashboard_readers
node_dashboard_app -->|"computes views"| node_dashboard_derived
node_dashboard_derived -->|"uses reader data"| node_dashboard_readers
node_dashboard_app -->|"registers filters"| node_dashboard_formatters
node_dashboard_app -->|"requests quote"| node_live_quotes

click node_veda_skill "https://github.com/upcominggit/veda-advisor/blob/main/SKILL.md"
click node_framework_router "https://github.com/upcominggit/veda-advisor/blob/main/routing/framework-router.md"
click node_investor_frameworks "https://github.com/upcominggit/veda-advisor/tree/main/frameworks"
click node_profile "https://github.com/upcominggit/veda-advisor/blob/main/setup/profile.template.md"
click node_broker_holdings "https://github.com/upcominggit/veda-advisor/blob/main/scripts/kite.py"
click node_portfolio_ledger "https://github.com/upcominggit/veda-advisor/blob/main/scripts/ledger.py"
click node_portfolio_nav "https://github.com/upcominggit/veda-advisor/blob/main/scripts/nav.py"
click node_live_quotes "https://github.com/upcominggit/veda-advisor/blob/main/scripts/fetch_quote.py"
click node_company_fundamentals "https://github.com/upcominggit/veda-advisor/blob/main/redundant/scripts/fetch_fundamentals.py"
click node_research_feed "https://github.com/upcominggit/veda-advisor/blob/main/scripts/research_feed.py"
click node_company_workspace "https://github.com/upcominggit/veda-advisor/blob/main/scripts/company_view.py"
click node_company_calendar "https://github.com/upcominggit/veda-advisor/blob/main/scripts/calendar_feed.py"
click node_portfolio_formation "https://github.com/upcominggit/veda-advisor/blob/main/scripts/portfolio_formation.py"
click node_concentration "https://github.com/upcominggit/veda-advisor/blob/main/scripts/concentration.py"
click node_tax_awareness "https://github.com/upcominggit/veda-advisor/blob/main/scripts/tax.py"
click node_decision_review "https://github.com/upcominggit/veda-advisor/blob/main/scripts/review_decisions.py"
click node_dashboard_app "https://github.com/upcominggit/veda-advisor/blob/main/dashboard/app.py"
click node_dashboard_readers "https://github.com/upcominggit/veda-advisor/blob/main/dashboard/readers.py"
click node_dashboard_derived "https://github.com/upcominggit/veda-advisor/blob/main/dashboard/derived.py"
click node_dashboard_formatters "https://github.com/upcominggit/veda-advisor/blob/main/dashboard/formatters.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_veda_skill,node_framework_router,node_investor_frameworks toneBlue
class node_profile,node_broker_holdings,node_portfolio_ledger,node_portfolio_nav toneAmber
class node_live_quotes,node_company_fundamentals,node_research_feed,node_company_workspace,node_company_calendar toneMint
class node_portfolio_formation,node_concentration,node_tax_awareness,node_decision_review toneRose
class node_dashboard_app,node_dashboard_readers,node_dashboard_derived,node_dashboard_formatters,node_investor,node_assistant_host toneIndigo
```

## Components

### Advisor guidance

- [Veda advisor](https://github.com/upcominggit/veda-advisor/blob/main/SKILL.md): `SKILL.md`
- [Framework routing](https://github.com/upcominggit/veda-advisor/blob/main/routing/framework-router.md): `routing/framework-router.md`
- [Investor frameworks](https://github.com/upcominggit/veda-advisor/tree/main/frameworks): `frameworks`

### Portfolio operations

- [Investor profile](https://github.com/upcominggit/veda-advisor/blob/main/setup/profile.template.md): `setup/profile.template.md`
- [Broker holdings](https://github.com/upcominggit/veda-advisor/blob/main/scripts/kite.py): `scripts/kite.py`
- [Transaction ledger](https://github.com/upcominggit/veda-advisor/blob/main/scripts/ledger.py): `scripts/ledger.py`
- [Portfolio valuation](https://github.com/upcominggit/veda-advisor/blob/main/scripts/nav.py): `scripts/nav.py`

### Research intelligence

- [Live quotes](https://github.com/upcominggit/veda-advisor/blob/main/scripts/fetch_quote.py): `scripts/fetch_quote.py`
- [Fundamentals and valuation](https://github.com/upcominggit/veda-advisor/blob/main/redundant/scripts/fetch_fundamentals.py): `redundant/scripts/fetch_fundamentals.py`
- [Research feed](https://github.com/upcominggit/veda-advisor/blob/main/scripts/research_feed.py): `scripts/research_feed.py`
- [Company workspaces](https://github.com/upcominggit/veda-advisor/blob/main/scripts/company_view.py): `scripts/company_view.py`
- [Company calendars](https://github.com/upcominggit/veda-advisor/blob/main/scripts/calendar_feed.py): `scripts/calendar_feed.py`

### Decision support

- [Portfolio formation](https://github.com/upcominggit/veda-advisor/blob/main/scripts/portfolio_formation.py): `scripts/portfolio_formation.py`
- [Concentration analysis](https://github.com/upcominggit/veda-advisor/blob/main/scripts/concentration.py): `scripts/concentration.py`
- [Tax awareness](https://github.com/upcominggit/veda-advisor/blob/main/scripts/tax.py): `scripts/tax.py`
- [Decision review](https://github.com/upcominggit/veda-advisor/blob/main/scripts/review_decisions.py): `scripts/review_decisions.py`

### Local dashboard

- [Read-only dashboard](https://github.com/upcominggit/veda-advisor/blob/main/dashboard/app.py): `dashboard/app.py`
- [Workspace readers](https://github.com/upcominggit/veda-advisor/blob/main/dashboard/readers.py): `dashboard/readers.py`
- [Derived views](https://github.com/upcominggit/veda-advisor/blob/main/dashboard/derived.py): `dashboard/derived.py`
- [Display formatters](https://github.com/upcominggit/veda-advisor/blob/main/dashboard/formatters.py): `dashboard/formatters.py`

### Other components

- **Investor**
- **AI assistant**

## Connections

- Investor → AI assistant: asks questions (evidence: `README.md`)
- AI assistant → Veda advisor: uses advisor (evidence: `README.md`)
- Veda advisor → Investor profile: personalizes advice (evidence: `README.md`)
- Veda advisor → Broker holdings: pulls holdings (evidence: `README.md`)
- Veda advisor → Framework routing: routes frameworks
- Framework routing → Investor frameworks: selects framework
- Investor → Transaction ledger: records transactions
- Transaction ledger → Tax awareness: supplies transactions (evidence: `scripts/tax.py`)
- Transaction ledger → Portfolio valuation: tracks portfolio
- Investor → Live quotes: requests current prices (evidence: `README.md`)
- Live quotes → Fundamentals and valuation: provides market data
- AI assistant → Research feed: reads research (evidence: `README.md`)
- Research feed → Portfolio formation: classifies coverage (evidence: `scripts/portfolio_formation.py`)
- Research feed → Company workspaces: informs company view (evidence: `scripts/company_view.py`)
- Investor → Company workspaces: reviews thesis (evidence: `README.md`)
- Investor → Company calendars: checks events (evidence: `README.md`)
- Portfolio formation → Concentration analysis: uses concentration (evidence: `scripts/portfolio_formation.py`)
- Investor → Tax awareness: checks tax impact (evidence: `README.md`)
- Investor → Decision review: reviews past calls (evidence: `scripts/review_decisions.py`)
- Investor → Read-only dashboard: opens local view (evidence: `README.md`)
- Read-only dashboard → Workspace readers: reads workspace (evidence: `dashboard/app.py`)
- Read-only dashboard → Derived views: computes views (evidence: `dashboard/app.py`)
- Derived views → Workspace readers: uses reader data (evidence: `dashboard/derived.py`)
- Read-only dashboard → Display formatters: registers filters (evidence: `dashboard/app.py`)
- Read-only dashboard → Live quotes: requests quote (evidence: `dashboard/app.py`)
