# syedjafri06193/call-intelligence-summarizer-proj architecture

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

- Interactive diagram: https://gitdiagram.com/syedjafri06193/call-intelligence-summarizer-proj
- Repository: https://github.com/syedjafri06193/call-intelligence-summarizer-proj

## Overview

Call Intelligence Summarizer processes sales discovery calls into grounded qualification scores and reviewable CRM updates. Its principal workflow gates processing on participant consent before audio fetch, ingests speaker-attributed tracks, transcribes and redacts the transcript, extracts and reconciles cited claims, scores them against a versioned rubric, and prepares CRM notes and confirmed tasks. The transcript model is the internal evidence layer supporting citation validation. The README documents the overall workflow; source excerpts and the SOURCE INDEX support several module links, but unsampled implementation details are not asserted.

Main entry points: [`v1/src/cis/workflows/pipeline.py`](https://github.com/syedjafri06193/call-intelligence-summarizer-proj/blob/main/v1/src/cis/workflows/pipeline.py) (Call workflow), [`v1/src/cis/score/anchors.py`](https://github.com/syedjafri06193/call-intelligence-summarizer-proj/blob/main/v1/src/cis/score/anchors.py) (Anchor scoring), [`v1/src/cis/extract/grounded.py`](https://github.com/syedjafri06193/call-intelligence-summarizer-proj/blob/main/v1/src/cis/extract/grounded.py) (Grounded extraction), [`v1/src/cis/crm/writeback.py`](https://github.com/syedjafri06193/call-intelligence-summarizer-proj/blob/main/v1/src/cis/crm/writeback.py) (CRM write-back)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_consent["Consent and ingest"]
  node_consent_model["Consent records<br/>[model.py]"]
  node_consent_gate["Consent gate<br/>[gate.py]"]
  node_ingest["Track ingest<br/>[tracks.py]"]
  node_vocabulary["ASR vocabulary<br/>[vocabulary.py]"]
end

subgraph group_transcript["Transcript and privacy"]
  node_transcript["Transcript model<br/>[model.py]"]
  node_redact["PII redaction<br/>[pii.py]"]
end

subgraph group_analysis["Extraction and scoring"]
  node_chunk["Transcript chunking<br/>[chunk.py]"]
  node_extract["Grounded extraction<br/>[grounded.py]"]
  node_reconcile["Claim reconciliation<br/>[reconcile.py]"]
  node_framework["Framework loader<br/>[framework.py]"]
  node_scoring["Anchor scoring<br/>[anchors.py]"]
end

subgraph group_crm["CRM handoff"]
  node_tasks["Confirmed tasks<br/>[tasks.py]"]
  node_writeback["CRM write-back<br/>[writeback.py]"]
  node_idempotency["Idempotency<br/>[idempotency.py]"]
end

subgraph group_evaluation["Evaluation"]
  node_agreement["Rater agreement<br/>[agreement.py]"]
end

node_rep(("Sales rep"))
node_cli["CLI<br/>[cli.py]"]
node_pipeline["Call workflow<br/>[pipeline.py]"]
node_asr{{"Transcriber"}}
node_crm_service{{"CRM"}}

node_rep -->|"runs commands"| node_cli
node_cli -->|"runs workflow"| node_pipeline
node_pipeline -->|"checks consent"| node_consent_gate
node_consent_gate -->|"evaluates records"| node_consent_model
node_pipeline -->|"fetches tracks"| node_ingest
node_ingest -->|"revalidates decision"| node_consent_gate
node_pipeline -->|"builds hints"| node_vocabulary
node_pipeline -->|"transcribes tracks"| node_asr
node_asr -->|"returns transcript"| node_transcript
node_pipeline -->|"redacts PII"| node_redact
node_pipeline -->|"chunks transcript"| node_chunk
node_pipeline -->|"extracts claims"| node_extract
node_extract -->|"locates quotes"| node_chunk
node_extract -->|"validates spans"| node_transcript
node_pipeline -->|"reconciles claims"| node_reconcile
node_pipeline -->|"loads rubric"| node_framework
node_pipeline -->|"scores claims"| node_scoring
node_scoring -->|"uses anchors"| node_framework
node_scoring -->|"uses claims"| node_reconcile
node_scoring -->|"resolves speakers"| node_transcript
node_pipeline -->|"proposes tasks"| node_tasks
node_pipeline -.->|"writes CRM notes"| node_writeback
node_writeback -->|"checks duplicates"| node_idempotency
node_writeback -.->|"syncs records"| node_crm_service
node_cli -->|"reports agreement"| node_agreement

click node_cli "https://github.com/syedjafri06193/call-intelligence-summarizer-proj/blob/main/v1/src/cis/cli.py"
click node_pipeline "https://github.com/syedjafri06193/call-intelligence-summarizer-proj/blob/main/v1/src/cis/workflows/pipeline.py"
click node_consent_model "https://github.com/syedjafri06193/call-intelligence-summarizer-proj/blob/main/v1/src/cis/consent/model.py"
click node_consent_gate "https://github.com/syedjafri06193/call-intelligence-summarizer-proj/blob/main/v1/src/cis/consent/gate.py"
click node_ingest "https://github.com/syedjafri06193/call-intelligence-summarizer-proj/blob/main/v1/src/cis/ingest/tracks.py"
click node_vocabulary "https://github.com/syedjafri06193/call-intelligence-summarizer-proj/blob/main/v1/src/cis/asr/vocabulary.py"
click node_transcript "https://github.com/syedjafri06193/call-intelligence-summarizer-proj/blob/main/v1/src/cis/transcript/model.py"
click node_redact "https://github.com/syedjafri06193/call-intelligence-summarizer-proj/blob/main/v1/src/cis/redact/pii.py"
click node_chunk "https://github.com/syedjafri06193/call-intelligence-summarizer-proj/blob/main/v1/src/cis/extract/chunk.py"
click node_extract "https://github.com/syedjafri06193/call-intelligence-summarizer-proj/blob/main/v1/src/cis/extract/grounded.py"
click node_reconcile "https://github.com/syedjafri06193/call-intelligence-summarizer-proj/blob/main/v1/src/cis/extract/reconcile.py"
click node_framework "https://github.com/syedjafri06193/call-intelligence-summarizer-proj/blob/main/v1/src/cis/score/framework.py"
click node_scoring "https://github.com/syedjafri06193/call-intelligence-summarizer-proj/blob/main/v1/src/cis/score/anchors.py"
click node_tasks "https://github.com/syedjafri06193/call-intelligence-summarizer-proj/blob/main/v1/src/cis/crm/tasks.py"
click node_writeback "https://github.com/syedjafri06193/call-intelligence-summarizer-proj/blob/main/v1/src/cis/crm/writeback.py"
click node_idempotency "https://github.com/syedjafri06193/call-intelligence-summarizer-proj/blob/main/v1/src/cis/crm/idempotency.py"
click node_agreement "https://github.com/syedjafri06193/call-intelligence-summarizer-proj/blob/main/v1/eval/agreement.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_consent_model,node_consent_gate,node_ingest,node_vocabulary toneBlue
class node_transcript,node_redact toneAmber
class node_chunk,node_extract,node_reconcile,node_framework,node_scoring toneMint
class node_tasks,node_writeback,node_idempotency toneRose
class node_agreement,node_rep,node_asr,node_crm_service toneIndigo
class node_cli,node_pipeline toneTeal
```

## Components

### Consent and ingest

- [Consent records](https://github.com/syedjafri06193/call-intelligence-summarizer-proj/blob/main/v1/src/cis/consent/model.py): `v1/src/cis/consent/model.py`
- [Consent gate](https://github.com/syedjafri06193/call-intelligence-summarizer-proj/blob/main/v1/src/cis/consent/gate.py): `v1/src/cis/consent/gate.py`
- [Track ingest](https://github.com/syedjafri06193/call-intelligence-summarizer-proj/blob/main/v1/src/cis/ingest/tracks.py): `v1/src/cis/ingest/tracks.py`
- [ASR vocabulary](https://github.com/syedjafri06193/call-intelligence-summarizer-proj/blob/main/v1/src/cis/asr/vocabulary.py): `v1/src/cis/asr/vocabulary.py`

### Transcript and privacy

- [Transcript model](https://github.com/syedjafri06193/call-intelligence-summarizer-proj/blob/main/v1/src/cis/transcript/model.py): `v1/src/cis/transcript/model.py`
- [PII redaction](https://github.com/syedjafri06193/call-intelligence-summarizer-proj/blob/main/v1/src/cis/redact/pii.py): `v1/src/cis/redact/pii.py`

### Extraction and scoring

- [Transcript chunking](https://github.com/syedjafri06193/call-intelligence-summarizer-proj/blob/main/v1/src/cis/extract/chunk.py): `v1/src/cis/extract/chunk.py`
- [Grounded extraction](https://github.com/syedjafri06193/call-intelligence-summarizer-proj/blob/main/v1/src/cis/extract/grounded.py): `v1/src/cis/extract/grounded.py`
- [Claim reconciliation](https://github.com/syedjafri06193/call-intelligence-summarizer-proj/blob/main/v1/src/cis/extract/reconcile.py): `v1/src/cis/extract/reconcile.py`
- [Framework loader](https://github.com/syedjafri06193/call-intelligence-summarizer-proj/blob/main/v1/src/cis/score/framework.py): `v1/src/cis/score/framework.py`
- [Anchor scoring](https://github.com/syedjafri06193/call-intelligence-summarizer-proj/blob/main/v1/src/cis/score/anchors.py): `v1/src/cis/score/anchors.py`

### CRM handoff

- [Confirmed tasks](https://github.com/syedjafri06193/call-intelligence-summarizer-proj/blob/main/v1/src/cis/crm/tasks.py): `v1/src/cis/crm/tasks.py`
- [CRM write-back](https://github.com/syedjafri06193/call-intelligence-summarizer-proj/blob/main/v1/src/cis/crm/writeback.py): `v1/src/cis/crm/writeback.py`
- [Idempotency](https://github.com/syedjafri06193/call-intelligence-summarizer-proj/blob/main/v1/src/cis/crm/idempotency.py): `v1/src/cis/crm/idempotency.py`

### Evaluation

- [Rater agreement](https://github.com/syedjafri06193/call-intelligence-summarizer-proj/blob/main/v1/eval/agreement.py): `v1/eval/agreement.py`

### Other components

- **Sales rep**
- [CLI](https://github.com/syedjafri06193/call-intelligence-summarizer-proj/blob/main/v1/src/cis/cli.py): `v1/src/cis/cli.py`
- [Call workflow](https://github.com/syedjafri06193/call-intelligence-summarizer-proj/blob/main/v1/src/cis/workflows/pipeline.py): `v1/src/cis/workflows/pipeline.py`
- **Transcriber**
- **CRM**

## Connections

- Sales rep → CLI: runs commands (evidence: `v1/src/cis/cli.py`)
- CLI → Call workflow: runs workflow (evidence: `v1/src/cis/cli.py`)
- Call workflow → Consent gate: checks consent (evidence: `v1/src/cis/workflows/pipeline.py`)
- Consent gate → Consent records: evaluates records (evidence: `v1/src/cis/consent/gate.py`)
- Call workflow → Track ingest: fetches tracks (evidence: `v1/src/cis/workflows/pipeline.py`)
- Track ingest → Consent gate: revalidates decision (evidence: `v1/src/cis/ingest/tracks.py`)
- Call workflow → ASR vocabulary: builds hints (evidence: `v1/src/cis/workflows/pipeline.py`)
- Call workflow → Transcriber: transcribes tracks (evidence: `v1/src/cis/workflows/pipeline.py`)
- Transcriber → Transcript model: returns transcript
- Call workflow → PII redaction: redacts PII (evidence: `v1/src/cis/workflows/pipeline.py`)
- Call workflow → Transcript chunking: chunks transcript (evidence: `v1/src/cis/workflows/pipeline.py`)
- Call workflow → Grounded extraction: extracts claims (evidence: `v1/src/cis/workflows/pipeline.py`)
- Grounded extraction → Transcript chunking: locates quotes (evidence: `v1/src/cis/extract/grounded.py`)
- Grounded extraction → Transcript model: validates spans (evidence: `v1/src/cis/extract/grounded.py`)
- Call workflow → Claim reconciliation: reconciles claims (evidence: `v1/src/cis/workflows/pipeline.py`)
- Call workflow → Framework loader: loads rubric (evidence: `v1/src/cis/workflows/pipeline.py`)
- Call workflow → Anchor scoring: scores claims (evidence: `v1/src/cis/workflows/pipeline.py`)
- Anchor scoring → Framework loader: uses anchors (evidence: `v1/src/cis/score/anchors.py`)
- Anchor scoring → Claim reconciliation: uses claims (evidence: `v1/src/cis/score/anchors.py`)
- Anchor scoring → Transcript model: resolves speakers (evidence: `v1/src/cis/score/anchors.py`)
- Call workflow → Confirmed tasks: proposes tasks (evidence: `v1/src/cis/workflows/pipeline.py`)
- Call workflow → CRM write-back: writes CRM notes (evidence: `README.md`)
- CRM write-back → Idempotency: checks duplicates (evidence: `v1/src/cis/crm/writeback.py`)
- CRM write-back → CRM: syncs records (evidence: `README.md`)
- CLI → Rater agreement: reports agreement (evidence: `v1/src/cis/cli.py`)
