# kakaotechcampus-4/ktc4-kyungpook-3 architecture

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

- Interactive diagram: https://gitdiagram.com/kakaotechcampus-4/ktc4-kyungpook-3
- Repository: https://github.com/kakaotechcampus-4/ktc4-kyungpook-3

## Overview

Manager’s Manager turns meeting audio or transcripts into candidate tasks, then supports human review, task tracking, and Notion synchronization. Users upload meetings through the web app; the AI capture/transcription and extraction/judgment stages produce extraction items for the backend, where approvals and task services govern changes. The frontend also supports workspaces, onboarding, integrations, and meeting minutes. Source-index references and excerpts establish some internal links; unsampled API and UI wiring is not assumed.

Main entry points: [`backend/app/main.py`](https://github.com/kakaotechcampus-4/ktc4-kyungpook-3/blob/develop/backend/app/main.py) (HTTP API), [`backend/app/services/tasks.py`](https://github.com/kakaotechcampus-4/ktc4-kyungpook-3/blob/develop/backend/app/services/tasks.py) (Task history logic), [`backend/app/core/database.py`](https://github.com/kakaotechcampus-4/ktc4-kyungpook-3/blob/develop/backend/app/core/database.py) (Application database), [`ai/capture/recorder.py`](https://github.com/kakaotechcampus-4/ktc4-kyungpook-3/blob/develop/ai/capture/recorder.py) (Audio capture)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web application"]
  node_webapp["Web app<br/>[main.tsx]"]
  node_routes["Route access<br/>[routes.tsx]"]
  node_upload["Meeting upload"]
  node_minutes["Meeting minutes"]
end

subgraph group_ai["Meeting intelligence"]
  node_capture["Audio capture<br/>[recorder.py]"]
  node_speech["Speech transcription<br/>[batch.py]"]
  node_extract["Task extraction<br/>[llm.py]"]
  node_judgepath["Judgment routing<br/>[judge_path.py]"]
  node_judge["Candidate judgment<br/>[pipeline.py]"]
  node_draft["Task drafting<br/>[doc_draft.py]"]
  node_handoff["Backend handoff<br/>[handoff.py]"]
  node_schemas["Pipeline data types<br/>[schemas.py]"]
end

subgraph group_api["Backend services"]
  node_api["HTTP API<br/>[main.py]"]
  node_meetingapi["Meeting endpoints<br/>[meetings.py]"]
  node_extractionapi["Extraction gate<br/>[extractions.py]"]
  node_approvalapi["Approval workflow<br/>[approvals.py]"]
  node_taskapi["Task endpoints<br/>[tasks.py]"]
  node_taskservice["Task history logic<br/>[tasks.py]"]
  node_matching["Similar task search<br/>[embedding.py]"]
  node_database[("Application database<br/>[database.py]")]
end

subgraph group_integrations["External systems"]
  node_notionsync["Notion synchronization<br/>[notion_sync.py]"]
  node_notion["Notion"]
  node_llm["LLM service<br/>[llm.py]"]
end

node_user(("Workspace user"))

node_user -->|"uses"| node_webapp
node_webapp -->|"loads routes"| node_routes
node_routes -->|"routes to"| node_upload
node_routes -->|"routes to"| node_minutes
node_api -->|"registers"| node_meetingapi
node_api -->|"registers"| node_extractionapi
node_api -->|"registers"| node_approvalapi
node_api -->|"registers"| node_taskapi
node_upload -.->|"uploads meeting"| node_meetingapi
node_meetingapi -.->|"reads and writes"| node_database
node_capture -->|"transcribes audio"| node_speech
node_capture -->|"extracts tasks"| node_extract
node_capture -->|"routes judgment"| node_judgepath
node_judgepath -->|"invokes pipeline"| node_judge
node_judge -->|"requests draft"| node_draft
node_judge -.->|"uses model"| node_llm
node_handoff -->|"serializes data"| node_schemas
node_judgepath -->|"hands off results"| node_handoff
node_extractionapi -.->|"applies task changes"| node_taskservice
node_approvalapi -.->|"applies decisions"| node_taskservice
node_taskapi -->|"calls task logic"| node_taskservice
node_taskapi -->|"queries tasks"| node_database
node_taskservice -.->|"persists history"| node_database
node_matching -.->|"reads task data"| node_database
node_extractionapi -.->|"searches similar tasks"| node_matching
node_notionsync -.->|"syncs tasks"| node_notion

click node_webapp "https://github.com/kakaotechcampus-4/ktc4-kyungpook-3/blob/develop/frontend/src/main.tsx"
click node_routes "https://github.com/kakaotechcampus-4/ktc4-kyungpook-3/blob/develop/frontend/src/app/router/routes.tsx"
click node_upload "https://github.com/kakaotechcampus-4/ktc4-kyungpook-3/tree/develop/frontend/src/features/meeting-upload"
click node_minutes "https://github.com/kakaotechcampus-4/ktc4-kyungpook-3/tree/develop/frontend/src/widgets/meeting-minutes"
click node_capture "https://github.com/kakaotechcampus-4/ktc4-kyungpook-3/blob/develop/ai/capture/recorder.py"
click node_speech "https://github.com/kakaotechcampus-4/ktc4-kyungpook-3/blob/develop/ai/stt/batch.py"
click node_extract "https://github.com/kakaotechcampus-4/ktc4-kyungpook-3/blob/develop/ai/extract/llm.py"
click node_judgepath "https://github.com/kakaotechcampus-4/ktc4-kyungpook-3/blob/develop/ai/capture/judge_path.py"
click node_judge "https://github.com/kakaotechcampus-4/ktc4-kyungpook-3/blob/develop/ai/judge/pipeline.py"
click node_draft "https://github.com/kakaotechcampus-4/ktc4-kyungpook-3/blob/develop/ai/draft/doc_draft.py"
click node_handoff "https://github.com/kakaotechcampus-4/ktc4-kyungpook-3/blob/develop/ai/capture/handoff.py"
click node_schemas "https://github.com/kakaotechcampus-4/ktc4-kyungpook-3/blob/develop/ai/shared/schemas.py"
click node_api "https://github.com/kakaotechcampus-4/ktc4-kyungpook-3/blob/develop/backend/app/main.py"
click node_meetingapi "https://github.com/kakaotechcampus-4/ktc4-kyungpook-3/blob/develop/backend/app/api/meetings.py"
click node_extractionapi "https://github.com/kakaotechcampus-4/ktc4-kyungpook-3/blob/develop/backend/app/api/extractions.py"
click node_approvalapi "https://github.com/kakaotechcampus-4/ktc4-kyungpook-3/blob/develop/backend/app/api/approvals.py"
click node_taskapi "https://github.com/kakaotechcampus-4/ktc4-kyungpook-3/blob/develop/backend/app/api/tasks.py"
click node_taskservice "https://github.com/kakaotechcampus-4/ktc4-kyungpook-3/blob/develop/backend/app/services/tasks.py"
click node_matching "https://github.com/kakaotechcampus-4/ktc4-kyungpook-3/blob/develop/backend/app/services/embedding.py"
click node_database "https://github.com/kakaotechcampus-4/ktc4-kyungpook-3/blob/develop/backend/app/core/database.py"
click node_notionsync "https://github.com/kakaotechcampus-4/ktc4-kyungpook-3/blob/develop/backend/app/services/notion_sync.py"
click node_llm "https://github.com/kakaotechcampus-4/ktc4-kyungpook-3/blob/develop/ai/llm.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_webapp,node_routes,node_upload,node_minutes,node_user toneBlue
class node_capture,node_speech,node_extract,node_judgepath,node_judge,node_draft,node_handoff,node_schemas toneAmber
class node_api,node_meetingapi,node_extractionapi,node_approvalapi,node_taskapi,node_taskservice,node_matching,node_database toneMint
class node_notionsync,node_notion,node_llm toneRose
```

## Components

### Web application

- [Web app](https://github.com/kakaotechcampus-4/ktc4-kyungpook-3/blob/develop/frontend/src/main.tsx): `frontend/src/main.tsx`
- [Route access](https://github.com/kakaotechcampus-4/ktc4-kyungpook-3/blob/develop/frontend/src/app/router/routes.tsx): `frontend/src/app/router/routes.tsx`
- [Meeting upload](https://github.com/kakaotechcampus-4/ktc4-kyungpook-3/tree/develop/frontend/src/features/meeting-upload): `frontend/src/features/meeting-upload`
- [Meeting minutes](https://github.com/kakaotechcampus-4/ktc4-kyungpook-3/tree/develop/frontend/src/widgets/meeting-minutes): `frontend/src/widgets/meeting-minutes`

### Meeting intelligence

- [Audio capture](https://github.com/kakaotechcampus-4/ktc4-kyungpook-3/blob/develop/ai/capture/recorder.py): `ai/capture/recorder.py`
- [Speech transcription](https://github.com/kakaotechcampus-4/ktc4-kyungpook-3/blob/develop/ai/stt/batch.py): `ai/stt/batch.py`
- [Task extraction](https://github.com/kakaotechcampus-4/ktc4-kyungpook-3/blob/develop/ai/extract/llm.py): `ai/extract/llm.py`
- [Judgment routing](https://github.com/kakaotechcampus-4/ktc4-kyungpook-3/blob/develop/ai/capture/judge_path.py): `ai/capture/judge_path.py`
- [Candidate judgment](https://github.com/kakaotechcampus-4/ktc4-kyungpook-3/blob/develop/ai/judge/pipeline.py): `ai/judge/pipeline.py`
- [Task drafting](https://github.com/kakaotechcampus-4/ktc4-kyungpook-3/blob/develop/ai/draft/doc_draft.py): `ai/draft/doc_draft.py`
- [Backend handoff](https://github.com/kakaotechcampus-4/ktc4-kyungpook-3/blob/develop/ai/capture/handoff.py): `ai/capture/handoff.py`
- [Pipeline data types](https://github.com/kakaotechcampus-4/ktc4-kyungpook-3/blob/develop/ai/shared/schemas.py): `ai/shared/schemas.py`

### Backend services

- [HTTP API](https://github.com/kakaotechcampus-4/ktc4-kyungpook-3/blob/develop/backend/app/main.py): `backend/app/main.py`
- [Meeting endpoints](https://github.com/kakaotechcampus-4/ktc4-kyungpook-3/blob/develop/backend/app/api/meetings.py): `backend/app/api/meetings.py`
- [Extraction gate](https://github.com/kakaotechcampus-4/ktc4-kyungpook-3/blob/develop/backend/app/api/extractions.py): `backend/app/api/extractions.py`
- [Approval workflow](https://github.com/kakaotechcampus-4/ktc4-kyungpook-3/blob/develop/backend/app/api/approvals.py): `backend/app/api/approvals.py`
- [Task endpoints](https://github.com/kakaotechcampus-4/ktc4-kyungpook-3/blob/develop/backend/app/api/tasks.py): `backend/app/api/tasks.py`
- [Task history logic](https://github.com/kakaotechcampus-4/ktc4-kyungpook-3/blob/develop/backend/app/services/tasks.py): `backend/app/services/tasks.py`
- [Similar task search](https://github.com/kakaotechcampus-4/ktc4-kyungpook-3/blob/develop/backend/app/services/embedding.py): `backend/app/services/embedding.py`
- [Application database](https://github.com/kakaotechcampus-4/ktc4-kyungpook-3/blob/develop/backend/app/core/database.py): `backend/app/core/database.py`

### External systems

- [Notion synchronization](https://github.com/kakaotechcampus-4/ktc4-kyungpook-3/blob/develop/backend/app/services/notion_sync.py): `backend/app/services/notion_sync.py`
- **Notion**
- [LLM service](https://github.com/kakaotechcampus-4/ktc4-kyungpook-3/blob/develop/ai/llm.py): `ai/llm.py`

### Other components

- **Workspace user**

## Connections

- Workspace user → Web app: uses
- Web app → Route access: loads routes (evidence: `frontend/src/main.tsx`)
- Route access → Meeting upload: routes to (evidence: `frontend/src/app/router/routes.tsx`)
- Route access → Meeting minutes: routes to (evidence: `frontend/src/app/router/routes.tsx`)
- HTTP API → Meeting endpoints: registers (evidence: `backend/app/main.py`)
- HTTP API → Extraction gate: registers (evidence: `backend/app/main.py`)
- HTTP API → Approval workflow: registers (evidence: `backend/app/main.py`)
- HTTP API → Task endpoints: registers (evidence: `backend/app/main.py`)
- Meeting upload → Meeting endpoints: uploads meeting
- Meeting endpoints → Application database: reads and writes
- Audio capture → Speech transcription: transcribes audio (evidence: `ai/capture/recorder.py`)
- Audio capture → Task extraction: extracts tasks (evidence: `ai/capture/recorder.py`)
- Audio capture → Judgment routing: routes judgment (evidence: `ai/capture/recorder.py`)
- Judgment routing → Candidate judgment: invokes pipeline (evidence: `ai/capture/judge_path.py`)
- Candidate judgment → Task drafting: requests draft (evidence: `ai/judge/pipeline.py`)
- Candidate judgment → LLM service: uses model (evidence: `ai/judge/pipeline.py`)
- Backend handoff → Pipeline data types: serializes data (evidence: `ai/capture/handoff.py`)
- Judgment routing → Backend handoff: hands off results (evidence: `ai/capture/judge_path.py`)
- Extraction gate → Task history logic: applies task changes
- Approval workflow → Task history logic: applies decisions
- Task endpoints → Task history logic: calls task logic (evidence: `backend/app/api/tasks.py`)
- Task endpoints → Application database: queries tasks (evidence: `backend/app/api/tasks.py`)
- Task history logic → Application database: persists history
- Similar task search → Application database: reads task data (evidence: `backend/app/services/embedding.py`)
- Extraction gate → Similar task search: searches similar tasks
- Notion synchronization → Notion: syncs tasks
