# s-chukwu/praxis architecture

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

- Interactive diagram: https://gitdiagram.com/s-chukwu/praxis
- Repository: https://github.com/s-chukwu/praxis

## Overview

Praxis is a workforce-transition assessment product: candidates complete a support task, reviewers assess it, and candidates receive a targeted learning plan. The web app serves candidate, reviewer, and admin workflows; the Go API handles authentication, attempts, reviews, persistence, and signed assessment-service calls. The Python service provides assessment, scoring, comparison, catalog, and plan capabilities. README statements support the service-level flow; source excerpts show API routing, review persistence, and assessment scoring. Several UI and backend subsystems are represented at directory level because their implementation details were not sampled.

Main entry points: [`AI_Assessment/service/praxis_assessment/api/routes.py`](https://github.com/s-chukwu/praxis/blob/main/AI_Assessment/service/praxis_assessment/api/routes.py) (Assessment API), [`backend/internal/httpapi/router.go`](https://github.com/s-chukwu/praxis/blob/main/backend/internal/httpapi/router.go) (HTTP API routes), [`frontend/app`](https://github.com/s-chukwu/praxis/tree/main/frontend/app) (Web application), [`frontend/app/path`](https://github.com/s-chukwu/praxis/tree/main/frontend/app/path) (Candidate journey)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Candidate and reviewer web"]
  node_webapp["Web application"]
  node_authui["Sign-in and onboarding<br/>[AuthScreen.tsx]"]
  node_candidatejourney["Candidate journey"]
  node_baselineclient["Baseline client<br/>[baseline.ts]"]
  node_learningui["Learning plan<br/>[page.tsx]"]
  node_reviewui["Review workspace"]
  node_reviewclient["Review client<br/>[reviewer.ts]"]
  node_adminui["Admin tools<br/>[page.tsx]"]
end

subgraph group_backend["Praxis API and workflow"]
  node_backendapi["HTTP API routes<br/>[router.go]"]
  node_authservice["Identity verification<br/>[authenticator.go]"]
  node_attemptworkflow["Attempt workflow<br/>[attempts.go]"]
  node_reviewhandlers["Review handling<br/>[reviews.go]"]
  node_reviewstore["Review persistence<br/>[reviews.go]"]
  node_postgres[("Postgres")]
  node_aiclient["Signed AI client<br/>[client.go]"]
end

subgraph group_assessment["Assessment service"]
  node_assessmentapi["Assessment API<br/>[routes.py]"]
  node_hmacauth["HMAC authorization<br/>[auth.py]"]
  node_capstone["Capstone task<br/>[capstone.py]"]
  node_scoring["Attempt scoring<br/>[scoring.py]"]
  node_comparison["Baseline comparison<br/>[comparison.py]"]
  node_allocation["Learning allocation<br/>[allocation.py]"]
end

subgraph group_content["Assessment content"]
  node_registry["Content registry<br/>[registry.py]"]
  node_contentmodels["Versioned content models<br/>[models.py]"]
  node_scenarioexamples["Scenario examples<br/>[examples.py]"]
end

node_candidate(("Candidate"))
node_reviewer(("Reviewer"))
node_admin(("Admin"))

node_candidate -->|"uses"| node_webapp
node_reviewer -->|"uses"| node_webapp
node_admin -->|"uses"| node_webapp
node_webapp -.->|"presents"| node_authui
node_webapp -.->|"presents"| node_candidatejourney
node_candidatejourney -->|"requests progress"| node_baselineclient
node_candidatejourney -.->|"submits candidate work"| node_backendapi
node_candidatejourney -.->|"shows plan"| node_learningui
node_reviewui -->|"loads review data"| node_reviewclient
node_reviewclient -->|"requests review actions"| node_backendapi
node_admin -.->|"manages"| node_adminui
node_adminui -.->|"uses admin routes"| node_backendapi
node_backendapi -.->|"verifies identity"| node_authservice
node_backendapi -.->|"registers attempt routes"| node_attemptworkflow
node_backendapi -->|"registers review routes"| node_reviewhandlers
node_reviewhandlers -.->|"persists review"| node_reviewstore
node_reviewstore -->|"reads and writes"| node_postgres
node_backendapi -->|"configures AI calls"| node_aiclient
node_aiclient -->|"calls assessment service"| node_assessmentapi
node_assessmentapi -->|"authenticates internal requests"| node_hmacauth
node_assessmentapi -->|"reads catalog"| node_registry
node_registry -->|"validates content"| node_contentmodels
node_assessmentapi -->|"documents request examples"| node_scenarioexamples
node_assessmentapi -.->|"runs task assessment"| node_capstone
node_assessmentapi -->|"scores attempt"| node_scoring
node_assessmentapi -->|"compares attempts"| node_comparison
node_assessmentapi -.->|"allocates learning"| node_allocation
node_reviewer -->|"reviews work"| node_reviewui
node_reviewui -->|"finalizes review"| node_reviewclient
node_reviewclient -->|"requests learning plan"| node_learningui

click node_webapp "https://github.com/s-chukwu/praxis/tree/main/frontend/app"
click node_authui "https://github.com/s-chukwu/praxis/blob/main/frontend/components/auth/AuthScreen.tsx"
click node_candidatejourney "https://github.com/s-chukwu/praxis/tree/main/frontend/app/path"
click node_baselineclient "https://github.com/s-chukwu/praxis/blob/main/frontend/lib/baseline.ts"
click node_learningui "https://github.com/s-chukwu/praxis/blob/main/frontend/app/learn/%5Bcode%5D/page.tsx"
click node_reviewui "https://github.com/s-chukwu/praxis/tree/main/frontend/app/reviewer"
click node_reviewclient "https://github.com/s-chukwu/praxis/blob/main/frontend/lib/reviewer.ts"
click node_adminui "https://github.com/s-chukwu/praxis/blob/main/frontend/app/reviewer/admin/page.tsx"
click node_backendapi "https://github.com/s-chukwu/praxis/blob/main/backend/internal/httpapi/router.go"
click node_authservice "https://github.com/s-chukwu/praxis/blob/main/backend/internal/auth/authenticator.go"
click node_attemptworkflow "https://github.com/s-chukwu/praxis/blob/main/backend/internal/workflow/attempts.go"
click node_reviewhandlers "https://github.com/s-chukwu/praxis/blob/main/backend/internal/httpapi/reviews.go"
click node_reviewstore "https://github.com/s-chukwu/praxis/blob/main/backend/internal/store/reviews.go"
click node_aiclient "https://github.com/s-chukwu/praxis/blob/main/backend/internal/aiclient/client.go"
click node_assessmentapi "https://github.com/s-chukwu/praxis/blob/main/AI_Assessment/service/praxis_assessment/api/routes.py"
click node_hmacauth "https://github.com/s-chukwu/praxis/blob/main/AI_Assessment/service/praxis_assessment/api/auth.py"
click node_registry "https://github.com/s-chukwu/praxis/blob/main/AI_Assessment/service/praxis_assessment/content/registry.py"
click node_contentmodels "https://github.com/s-chukwu/praxis/blob/main/AI_Assessment/service/praxis_assessment/content/models.py"
click node_scenarioexamples "https://github.com/s-chukwu/praxis/blob/main/AI_Assessment/service/praxis_assessment/api/examples.py"
click node_capstone "https://github.com/s-chukwu/praxis/blob/main/AI_Assessment/service/praxis_assessment/domain/capstone.py"
click node_scoring "https://github.com/s-chukwu/praxis/blob/main/AI_Assessment/service/praxis_assessment/domain/scoring.py"
click node_comparison "https://github.com/s-chukwu/praxis/blob/main/AI_Assessment/service/praxis_assessment/domain/comparison.py"
click node_allocation "https://github.com/s-chukwu/praxis/blob/main/AI_Assessment/service/praxis_assessment/domain/allocation.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_authui,node_candidatejourney,node_baselineclient,node_learningui,node_reviewui,node_reviewclient,node_adminui,node_reviewer toneBlue
class node_backendapi,node_authservice,node_attemptworkflow,node_reviewhandlers,node_reviewstore,node_postgres,node_aiclient toneAmber
class node_assessmentapi,node_hmacauth,node_capstone,node_scoring,node_comparison,node_allocation toneMint
class node_registry,node_contentmodels,node_scenarioexamples toneRose
class node_candidate,node_admin toneIndigo
```

## Components

### Candidate and reviewer web

- [Web application](https://github.com/s-chukwu/praxis/tree/main/frontend/app): `frontend/app`
- [Sign-in and onboarding](https://github.com/s-chukwu/praxis/blob/main/frontend/components/auth/AuthScreen.tsx): `frontend/components/auth/AuthScreen.tsx`
- [Candidate journey](https://github.com/s-chukwu/praxis/tree/main/frontend/app/path): `frontend/app/path`
- [Baseline client](https://github.com/s-chukwu/praxis/blob/main/frontend/lib/baseline.ts): `frontend/lib/baseline.ts`
- [Learning plan](https://github.com/s-chukwu/praxis/blob/main/frontend/app/learn/%5Bcode%5D/page.tsx): `frontend/app/learn/[code]/page.tsx`
- [Review workspace](https://github.com/s-chukwu/praxis/tree/main/frontend/app/reviewer): `frontend/app/reviewer`
- [Review client](https://github.com/s-chukwu/praxis/blob/main/frontend/lib/reviewer.ts): `frontend/lib/reviewer.ts`
- [Admin tools](https://github.com/s-chukwu/praxis/blob/main/frontend/app/reviewer/admin/page.tsx): `frontend/app/reviewer/admin/page.tsx`

### Praxis API and workflow

- [HTTP API routes](https://github.com/s-chukwu/praxis/blob/main/backend/internal/httpapi/router.go): `backend/internal/httpapi/router.go`
- [Identity verification](https://github.com/s-chukwu/praxis/blob/main/backend/internal/auth/authenticator.go): `backend/internal/auth/authenticator.go`
- [Attempt workflow](https://github.com/s-chukwu/praxis/blob/main/backend/internal/workflow/attempts.go): `backend/internal/workflow/attempts.go`
- [Review handling](https://github.com/s-chukwu/praxis/blob/main/backend/internal/httpapi/reviews.go): `backend/internal/httpapi/reviews.go`
- [Review persistence](https://github.com/s-chukwu/praxis/blob/main/backend/internal/store/reviews.go): `backend/internal/store/reviews.go`
- **Postgres**
- [Signed AI client](https://github.com/s-chukwu/praxis/blob/main/backend/internal/aiclient/client.go): `backend/internal/aiclient/client.go`

### Assessment service

- [Assessment API](https://github.com/s-chukwu/praxis/blob/main/AI_Assessment/service/praxis_assessment/api/routes.py): `AI_Assessment/service/praxis_assessment/api/routes.py`
- [HMAC authorization](https://github.com/s-chukwu/praxis/blob/main/AI_Assessment/service/praxis_assessment/api/auth.py): `AI_Assessment/service/praxis_assessment/api/auth.py`
- [Capstone task](https://github.com/s-chukwu/praxis/blob/main/AI_Assessment/service/praxis_assessment/domain/capstone.py): `AI_Assessment/service/praxis_assessment/domain/capstone.py`
- [Attempt scoring](https://github.com/s-chukwu/praxis/blob/main/AI_Assessment/service/praxis_assessment/domain/scoring.py): `AI_Assessment/service/praxis_assessment/domain/scoring.py`
- [Baseline comparison](https://github.com/s-chukwu/praxis/blob/main/AI_Assessment/service/praxis_assessment/domain/comparison.py): `AI_Assessment/service/praxis_assessment/domain/comparison.py`
- [Learning allocation](https://github.com/s-chukwu/praxis/blob/main/AI_Assessment/service/praxis_assessment/domain/allocation.py): `AI_Assessment/service/praxis_assessment/domain/allocation.py`

### Assessment content

- [Content registry](https://github.com/s-chukwu/praxis/blob/main/AI_Assessment/service/praxis_assessment/content/registry.py): `AI_Assessment/service/praxis_assessment/content/registry.py`
- [Versioned content models](https://github.com/s-chukwu/praxis/blob/main/AI_Assessment/service/praxis_assessment/content/models.py): `AI_Assessment/service/praxis_assessment/content/models.py`
- [Scenario examples](https://github.com/s-chukwu/praxis/blob/main/AI_Assessment/service/praxis_assessment/api/examples.py): `AI_Assessment/service/praxis_assessment/api/examples.py`

### Other components

- **Candidate**
- **Reviewer**
- **Admin**

## Connections

- Candidate → Web application: uses (evidence: `README.md`)
- Reviewer → Web application: uses (evidence: `README.md`)
- Admin → Web application: uses (evidence: `README.md`)
- Web application → Sign-in and onboarding: presents
- Web application → Candidate journey: presents
- Candidate journey → Baseline client: requests progress
- Candidate journey → HTTP API routes: submits candidate work (evidence: `README.md`)
- Candidate journey → Learning plan: shows plan (evidence: `README.md`)
- Review workspace → Review client: loads review data (evidence: `frontend/lib/reviewer.ts`)
- Review client → HTTP API routes: requests review actions (evidence: `frontend/lib/reviewer.ts`)
- Admin → Admin tools: manages
- Admin tools → HTTP API routes: uses admin routes
- HTTP API routes → Identity verification: verifies identity (evidence: `backend/internal/httpapi/router.go`)
- HTTP API routes → Attempt workflow: registers attempt routes (evidence: `backend/internal/httpapi/router.go`)
- HTTP API routes → Review handling: registers review routes (evidence: `backend/internal/httpapi/router.go`)
- Review handling → Review persistence: persists review
- Review persistence → Postgres: reads and writes (evidence: `backend/internal/store/reviews.go`)
- HTTP API routes → Signed AI client: configures AI calls (evidence: `backend/internal/httpapi/router.go`)
- Signed AI client → Assessment API: calls assessment service (evidence: `README.md`)
- Assessment API → HMAC authorization: authenticates internal requests (evidence: `AI_Assessment/service/praxis_assessment/api/routes.py`)
- Assessment API → Content registry: reads catalog (evidence: `AI_Assessment/service/praxis_assessment/api/routes.py`)
- Content registry → Versioned content models: validates content (evidence: `AI_Assessment/service/praxis_assessment/content/registry.py`)
- Assessment API → Scenario examples: documents request examples (evidence: `AI_Assessment/service/praxis_assessment/api/routes.py`)
- Assessment API → Capstone task: runs task assessment (evidence: `AI_Assessment/service/praxis_assessment/api/routes.py`)
- Assessment API → Attempt scoring: scores attempt (evidence: `AI_Assessment/service/praxis_assessment/api/routes.py`)
- Assessment API → Baseline comparison: compares attempts (evidence: `AI_Assessment/service/praxis_assessment/api/routes.py`)
- Assessment API → Learning allocation: allocates learning (evidence: `AI_Assessment/service/praxis_assessment/api/routes.py`)
- Reviewer → Review workspace: reviews work (evidence: `README.md`)
- Review workspace → Review client: finalizes review (evidence: `frontend/lib/reviewer.ts`)
- Review client → Learning plan: requests learning plan (evidence: `frontend/lib/reviewer.ts`)
