Skip to content
This repository was archived by the owner on Jun 21, 2026. It is now read-only.

Latest commit

 

History

History
115 lines (93 loc) · 4.58 KB

File metadata and controls

115 lines (93 loc) · 4.58 KB

Distributed Task Observatory - Session Summary

Last Updated: 2025-12-28 Phases Completed: 0-32 (Phase 32: Docs Directory Refactor)

Objective

Implement a complete, production-grade distributed task processing system demonstrating modern microservice architecture, observability, and contract-first design principles.

Technology Stack

Build & Runtime

  • Kubernetes: kind (local cluster)
  • Container Runtime: Docker Desktop
  • Build System: Docker-native with Bazel for Go/Rust
  • Container Registry: Docker Hub (oddessentials/odto-*)

Languages & Frameworks

Service Language Framework
Gateway Node.js/TypeScript Express
Processor Python pika, psycopg2
Metrics Engine Go amqp091-go, go-redis, mongo-driver
Read Model Go net/http, go-redis, lib/pq
Web Terminal Rust/JS web-pty-server, xterm.js
TUI Rust ratatui 0.24 (modular architecture)
Tests TypeScript Vitest (strict mode), Playwright

Infrastructure

  • Message Bus: RabbitMQ 3.12
  • Database: PostgreSQL 15
  • Cache: Redis 7
  • Document Store: MongoDB
  • Ingress: nginx-ingress

Observability

  • Metrics: Prometheus
  • Dashboards: Grafana
  • Alerting: Alertmanager

Key Features

One-Click Startup

  • TUI launcher mode with cluster detection
  • Guided Prerequisites Setup - Automatic detection with clipboard copy
  • scripts/start-all.ps1 automation script
  • Parallel Docker builds
  • Automatic port-forwarding

Interfaces

  • TUI: Modular 7-file architecture, guided setup, Add Task (N), UI Launcher (U)
  • Web Terminal: xterm.js PTY mirror with auto-reconnect, fallback dashboard
    • Split K8s: web-ui-http (nginx) + web-pty-ws (PTY broker)
    • Session reconnect tokens, read-only mode, auth support

Distribution (Phase 14)

  • Binary: odd-dashboard (production release binary)
  • Install scripts: install.sh (Linux/macOS), install.ps1 (Windows)
  • npm shim: @oddessentials/odd-dashboard
  • Release workflow: Multi-platform builds with checksums

TUI Architecture (Phase 15)

  • Refactored from 2710-line monolith to 7 modules
  • 49 unit tests passing
  • Clipboard support via arboard crate

Testing

  • Unit tests for all services
  • Integration gate v2 with MongoDB validation
  • Contract validation scripts
  • Gateway Coverage Improvements - 80%+ via lib/ refactoring
  • TUI Lib Coverage - 35%+ lib-only coverage (excludes main.rs event loop), 132 unit tests
  • Integration Hardening (Phase 18) - Self-contained Docker Compose harness, 4 proof paths, 120s budget, I3-I6 invariants
  • Docker Hub Images (Phase 19) - Pre-built images for faster CI, multi-stage Dockerfiles, dual tagging
  • Web Terminal Modernization (Phase 20) - PTY Multiplexer, xterm.js mirror, split K8s deployments
  • Visual Regression Tests - Playwright screenshot tests, CI-triggered on web terminal changes
  • PTY State Preservation (Phase 21) - Session state machine, ring buffer, replay protocol, 47 unit tests
  • PTY Server Coverage - 81% (47 unit tests)
  • Tiered Visual Test Strategy (Phase 31.5) - Nightly workflow, server-side failure injection, deterministic fallback testing
  • CI Docker Build Context Fix (Phase 31.6) - Fixed CI contexts, added validate-dockerfile-context.py prevention script
  • Mermaid Animator Expansion (Phase 31.7) - Multi-tokenizer architecture for 20+ Mermaid types, 110+ passing unit tests
  • Docs Viewer & E2E Tests (Phase 31.8) - GitHub Pages experiment viewer with comparison mode, Playwright E2E tests
  • Docs Directory Refactor (Phase 32) - Moved 7 .md files to docs/agents/, enhanced README documentation section

Quick Start

# Using TUI (recommended) - guided setup for missing prerequisites
cd src/interfaces/tui && cargo run --release
# or use installed binary: odd-dashboard

# Using script (if prerequisites installed)
.\scripts\start-all.ps1

Access Points

Service URL
Web Terminal http://localhost:8081
Gateway API http://localhost:3000
Read Model API http://localhost:8080
RabbitMQ http://localhost:15672
Grafana http://localhost:3002
Prometheus http://localhost:9090

Artifacts in This Folder

File Description
complete-session-audit.md Comprehensive technical audit
task.md Phase-by-phase task checklist
walkthrough.md Implementation walkthrough
session-summary.md This document