Translates SRS v1.0.2 + Domain Model v1.0.1 into concrete Python decisions: package structure, dependency direction, immutability strategy, ID representation, SetData VO, resolved ambiguities (OQ-2 and five others), toolchain config (ruff, pyright strict, pytest 90% branch coverage gate), Git hooks (pre-commit / pre-push), and Phase 1 implementation order. Phase 0 complete. Repository ready for domain-first TDD in Phase 1.
6.0 KiB
type, status, tags
| type | status | tags | ||||||
|---|---|---|---|---|---|---|---|---|
| project | active |
|
🏋️ Praxis
Praxis (from Greek/Latin for "the practical application of a plan") is a self-hosted workout execution and habit-tracking platform designed for homelab deployment.
Unlike conventional fitness apps that conflate planned routines with actual performance or impose punitive streak mechanics, Praxis is built around a strict Three-Layer Temporal Model and a clean hexagonal architecture.
🏛️ Overview & System Topology
Praxis is architected around a strict separation of concerns across three temporal layers:
flowchart TD
subgraph Layer1["1. Prescription (What was planned)"]
R[Routine Template] --> WD[Workout Day]
WD --> EP[Exercise Prescription]
WD --> SA[Session Activity]
R -.-> PH[Progression Phases]
end
subgraph Layer2["2. Performance (What actually happened)"]
SW[Scheduled Workout Projection] -->|Initiate| WS[Workout Session]
WS --> SPS[SessionPrescriptionSnapshot]
WS --> EPF[Exercise Performance]
EPF --> SPF[Set Performance]
WS --> APF[Activity Performance]
WS --> ST[Status: In_Progress / Completed / Partially_Completed / Skipped]
end
subgraph Layer3["3. Analysis (What can be derived)"]
ADH[Adherence & Consistency Rates]
WKL[Metric-Dependent Workload]
HST[Factual Exercise History]
TRN[Longitudinal Progression]
end
Layer1 -->|Project into calendar| SW
Layer2 -->|Pure deterministic derivation| Layer3
- Prescription Layer (What was planned):
- Reusable
Routinetemplates defining weekly schedules (Monday–Sunday), target exercises, reps/ranges, weights, durations, activities (warm-ups, cardio), and calendar-week progression phases.
- Reusable
- Performance Layer (What actually happened):
- Concrete
WorkoutSessioninstances created upon initiation. Each session freezes an immutableSessionPrescriptionSnapshotwhile providing total runtime autonomy to log sets, adjust weights/reps, swap exercises, or add unscheduled movements without mutating the routine template.
- Concrete
- Analysis Layer (What can be derived):
- Factual, deterministic observations (adherence rates, workload volumes, progression curves) derived purely from historical session logs rather than mutable counters.
Core Domain Invariants
- Snapshot Immutability: When a session is initiated, its prescribed targets are frozen. Future modifications to routines never alter past or in-progress workouts.
- Session Autonomy: The routine is a guide, not a tyrant. Users can adjust sets/reps on the fly, substitute movements, or record ad-hoc workouts.
- Substituted History Isolation: Substituted exercises contribute strictly to the history of the performed movement, leaving the originally planned exercise clean while preserving the substitution audit trail.
- Factual Adherence: Consistency is measured via distribution rates (
Completed,Partially_Completed,Skipped, andSet Adherence Rate) rather than fragile binary streaks. - Decoupled Identity: Business logic depends only on internal
UserId. External authentication (Authelia forward-auth headers, LLDAP) is isolated behind anAuthProviderport.
📍 Source Code & Locations
| Target | Location / URL | Description |
|---|---|---|
| Primary Forge (Upstream) | Gitea (praxis) | Canonical upstream Git repository hosted on Homelab Gitea |
| GitHub Mirror | GitHub (praxis) | Automated public push mirror on GitHub |
| Clone (SSH) | ssh://git@gitea.roadtotech.me:2223/kiskaadee/praxis.git |
Developer clone URL via Gitea SSH (port 2223) |
| Workstation Path | ~/Projects/active/praxis |
Active development checkout on local workstation |
| Deployment Target | Homelab Micro-Server | Dockerized application stack integrated with Traefik & Authelia SSO |
💬 Open Discussions
Currently no open discussions. Architectural evaluations regarding domain boundaries, snapshot mutability semantics, and metric models have been consolidated into the active specifications below.
🚧 Work in Progress (Active Plans)
Implementation roadmaps and specifications currently active (status: active):
- 🟡 Praxis Software Requirements Specification (SRS) v1.0.2
[Active]- Baseline requirements defining the Three-Layer Temporal Model, multi-modal logging, session snapshot lifecycle, set-intent completion policies, and factual adherence metrics.
- 🟡 Praxis Domain Model & OOP Design Specification v1.0.1
[Active]- Approved domain aggregates (
Routine,WorkoutSession,Exercise), value objects, behavioral contracts, state transition matrices, and hexagonal port interfaces (AuthProvider, SQL repositories).
- Approved domain aggregates (
- 🟡 Praxis Implementation Blueprint (v0.2.0 — Phase 0 Complete)
[Active — Phase 1 Start]- Concrete Python decisions translating SRS + Domain Model: package structure, dependency direction, immutability strategy, ID representation, resolved ambiguities, toolchain configuration (ruff, pyright, pytest, 90% coverage gate), Git hooks, and Phase 1 implementation order.
🛠️ Canonical Guides & Runbooks
Operational runbooks and developer setup guides will be established during the implementation phase.
🏛️ Completed Milestones & Resolved Discussions
Archived baseline drafts preserved for historical reference and comparison:
- Praxis Software Requirements Specification v1.0.0 (Archived Baseline) — Initial draft prior to snapshot mutability refinement and activity formalization.
- Praxis Domain Model & OOP Design Specification v1.0.0 (Archived Baseline) — Initial domain model draft prior to exercise aggregate root promotion and snapshot consolidation.