Six post-deployment issues resolved on the Core Diun notifier: - Portainer bcrypt dollar-sign interpolation eliminated via full deprecation - High-concurrency registry scan mitigated via WORKERS=6 + JITTER=30s - Local-build image exemptions decentralized to Sites/* via diun.enable=false - Startup socket-proxy race accepted as benign transient noise - Unauthenticated port-25 spam flagging resolved by migrating to port 465 SMTPS - Dedicated notifier@roadtotech.me service account provisioned via SOPS Result: 19 upstream images monitored cleanly (0 failures), mail delivered authenticated and landing directly in INBOX with auth=pass.
6.7 KiB
type, project, date, tags
| type | project | date | tags | |||||||
|---|---|---|---|---|---|---|---|---|---|---|
| journal | praxis | 2026-09-24 |
|
Daily Journal: 2026-09-24
Wins
Praxis Project Inception & Workspace Scaffolding
- Initialized and scaffolded the brand-new workout execution and habit-tracking project Praxis at
~/Projects/active/praxis. - Configured canonical upstream Git forge on self-hosted Gitea (
ssh://git@gitea.roadtotech.me:2223/kiskaadee/praxis.git, Gitea repository) with GitHub (kiskaadee/praxis) configured as automated push mirror. - Configured local development environment with Python 3.12,
uvpackage manager (pyproject.toml,uv.lock),.envrc, and clean hexagonal architecture structure.
Domain Design & Architectural Specifications
- Established the foundational Three-Layer Temporal Model:
- Prescription: Reusable
Routinetemplates, weekly schedules, target exercises, and multi-weekProgression Phases. - Performance: Concrete
WorkoutSessionexecution instances freezing an immutableSessionPrescriptionSnapshotwhile granting total runtime autonomy. - Analysis: Pure deterministic derivation of adherence rates, metric-dependent workload volumes, and factual exercise histories without mutable counters.
- Prescription: Reusable
- Codified key domain contracts and invariants:
- Snapshot vs. Execution Mutability: Frozen prescription snapshot upon session initiation; execution remains mutable until finalization (
Completed,Partially_Completed,Skipped). - Substitution History Isolation: Substituted movements contribute strictly to the performed exercise history, preserving audit linkage to the planned exercise.
- Set-Intent Completion Policy & Factual Adherence: Consistency tracked via distribution metrics (
Completed,Partially_Completed,Skipped, and Set Adherence Rate) rather than fragile streak mechanics. - Decoupled Identity: Internal
UserIddomain abstraction isolated behind anAuthProviderport (supporting Authelia ForwardAuth headers and LLDAP).
- Snapshot vs. Execution Mutability: Frozen prescription snapshot upon session initiation; execution remains mutable until finalization (
Knowledge Graph Curation
- Established new canonical project directory in the Brain at
projects/praxis/. - Curated and validated foundational documents from
inbox/:- Active baseline: Praxis Software Requirements Specification (SRS) v1.0.2
- Active baseline: Praxis Domain Model & OOP Design Specification v1.0.1
- Archived comparison drafts: Praxis SRS v1.0.0 and Praxis Domain Model v1.0.0
- Pruned staging files from
inbox/, maintaining a clean capture zone.
Planning & Specifications
- Praxis Software Requirements Specification (SRS) v1.0.2
- Software requirements baseline detailing functional specifications across identity, exercise catalogs, routines, session execution, completion semantics, and analytical metrics.
- Praxis Domain Model & OOP Design Specification v1.0.1
- Detailed object-oriented and DDD specification detailing aggregate roots (
Routine,WorkoutSession,Exercise), entities, value objects, behavioral contracts, state transition matrices, and hexagonal port interfaces.
- Detailed object-oriented and DDD specification detailing aggregate roots (
Architecture & Design Decisions
Snapshot Immutability vs. In-Flight Execution Autonomy
Routine templates must represent aspirational intent, not immutable dogma. Freezing a SessionPrescriptionSnapshot at workout initiation decouples past performance from subsequent template edits, while allowing the user to adapt on the fly (reordering exercises, adjusting weights or rep ranges, swapping machines, or logging ad-hoc sets) without polluting the routine definition.
Factual Adherence over Gamified Streaks
Conventional fitness applications encourage dishonesty and cognitive stress by imposing fragile binary streak counters that reset on missed days. Praxis models adherence as factual distribution rates over sliding windows, separating set-level completion intent from binary day attendance.
Phase 0 Complete: Praxis Implementation Readiness
Toolchain Hardening & Blueprint (v0.2.0)
Session completed a full Phase 0 implementation-readiness pass on the Praxis repository:
- Blueprint v0.2.0 finalised: translated SRS v1.0.2 + Domain Model v1.0.1 into concrete Python decisions — package structure, dependency direction, immutability strategy (
@dataclass(frozen=True)value objects,@dataclass(eq=False)entities), ID representation (newtype frozen dataclasses overuuid.UUID), andSetDataas explicit frozen VO to preventrecord_set()/MetricValidationPolicydivergence. - Resolved all Phase-1-blocking ambiguities (OQ-2:
Phase.end_week = None→ return last phase;ValueErroron empty phases list). Remaining OQs (OQ-1, 3, 4, 5) formally deferred. - Established
pyproject.tomltoolchain:ruff(E/W/F/I/UP/B/C4/SIM/RUF/N/ANN/PT/TCH, line 100, Python 3.13),pyrightstrict mode,pytestwith--strict-markersand 90% branch coverage gate. - Implemented Git hooks:
pre-commit(ruff format + check + re-stage),pre-push(pyright strict +pytest -m unit), and one-shotinstall-hooks.sh. - Expanded
AGENTS.mdwith §5 Toolchain & Static Analysis Constraints, §6 Git Hook Workflow, and tightened §7 Rules of Engagement.
Repository now at Phase 1 start: identifiers → enums → measurement → RepRange → SetData → Exercise → Routine → MetricValidationPolicy → SessionSnapshotFactory → WorkoutSession → CompletionPolicy → WorkloadCalculator → AdherenceCalculator.
📋 Praxis Implementation Blueprint (v0.2.0)
Incidents & Debugging
- Diun Load-Shaping, Workload Exemption & Authenticated SMTPS Delivery (2026-09-24): Resolved 6 classes of post-deployment issues on the Core Diun notifier. Root causes: bcrypt
$interpolation from deprecated Portainer secrets (resolved by full Portainer deprecation), high-concurrency registry scan load factor mitigated viaDIUN_WATCH_WORKERS=6+DIUN_WATCH_JITTER=30s, local-build image exemptions decentralized toSites/*compose manifests viadiun.enable=false, and authenticated SMTPS delivery migrated from unauthenticated port 25 to port 465 with dedicatednotifier@roadtotech.meservice account projected via SOPS. All 19 upstream images now scan cleanly with zero failures; mail lands inINBOXwithauth=pass.