Local K8s Cluster Release Notes & Ship Ledger



> Canonical Local Domain: http://quest.joymify.local.com (Alias: http://joyquest.joymify.local.com) > SSO Target: http://auth.joymify.local.com (user-api.default.svc.cluster.local:80) > Cluster Engine: OrbStack / Kubernetes (namespace: joyquest) > Deployment Manifests: [k8s/local/all-in-one.yaml](file:///Users/pasitnusso/workspace/joy-quest/k8s/local/all-in-one.yaml)

---

1. Local Cluster Architecture & Invariant Rules



In accordance with platform conventions, the local Kubernetes environment strictly obeys these rules:

1. Domain Suffix Invariant:
  • Always use *.joymify.local.com (e.g. joyquest.joymify.local.com, auth.joymify.local.com).
  • Never use or mix .joymify.local.
  • 2. Explicit APP_ORIGIN:
  • Constructed directly as http://joyquest.joymify.local.com in dev/local manifests.
  • Never trust the ingress X-Forwarded-Proto: https header in local HTTP clusters.
  • 3. SSO Identity & Token Exchange:
  • Unauthenticated learners redirect to:
  • ${AUTH_LOGIN_URL}/login?redirect_uri=http://joyquest.joymify.local.com/auth/callback
  • SvelteKit server-side hook exchanges ?token= via internal cluster DNS:
  • http://user-api.default.svc.cluster.local:80/auth/exchange
  • Cookie minted: joy_session (httpOnly, sameSite: lax).
  • Default local admin credentials: montionugera@gmail.com / password.
  • 4. Least-Privilege Database Access:
  • joyquest-migrate runs schema migrations as joyquest_owner.
  • joyquest-api and joyquest-worker run as joyquest_app.


  • ---

    2. Ship Quality Gate Protocol



    Every ship to the local K8s cluster must satisfy all 5 gates before being deemed complete:

    flowchart LR
        G1["Gate 1: Verification<br/>go test -race + vitest"]
        G2["Gate 2: Container Build<br/>api + web docker images"]
        G3["Gate 3: Migration Job<br/>goose up as owner"]
        G4["Gate 4: Rollout Status<br/>kubectl rollout status"]
        G5["Gate 5: Endpoint Verification<br/>curl /healthz (200 OK)"]

    G1 --> G2 --> G3 --> G4 --> G5


    ---

    3. Release Notes by Ship



    📦 Ship v0.3.0 (2026-10-30) — Adaptive Personalization & 24/7 UltraCode Engine

  • Git Commit: Current main
  • Release Horizon: Horizon 2 (Adaptive Personalization)
  • Primary Highlights:
  • 1. Knowledge Graph DAG Engine ([server/internal/personalization/graph.go](file:///Users/pasitnusso/workspace/joy-quest/server/internal/personalization/graph.go)):
  • Added 4-tier cognitive hierarchy (Invariants, Mental Models, Algorithms, Applied Workflows).
  • Cycle detection via 3-color DFS and dynamic frontier extraction for personalized learning paths.
  • 2. FSRS-v4 Spaced Repetition Scheduler ([server/internal/personalization/fsrs.go](file:///Users/pasitnusso/workspace/joy-quest/server/internal/personalization/fsrs.go)):
  • Mathematical formulation calculating memory stability ($S$), difficulty ($D$), and retrievability ($R$) to guarantee long-term retention.
  • 3. Diagnostic Misconception Radar ([server/internal/personalization/diagnostic.go](file:///Users/pasitnusso/workspace/joy-quest/server/internal/personalization/diagnostic.go)):
  • Multi-choice distractor evaluation linking errors to specific cognitive fallacies and targeted micro-remediation.
  • 4. Product Wiki & Engineering Hub ([docs/wiki/](file:///Users/pasitnusso/workspace/joy-quest/docs/wiki/README.md)):
  • Full documentation suite established at FTS step first across architecture, mental models, roadmaps, and workflows.
  • 5. 24/7 UltraCode Continuous Iteration Pipeline ([scripts/ultracode-runner.sh](file:///Users/pasitnusso/workspace/joy-quest/scripts/ultracode-runner.sh)):
  • Autonomous runner supporting single-pass and daemon loops with fault isolation and live state tracking.
  • Local K8s Manifests Added:
  • k8s/local/all-in-one.yaml: Deployment, Service, and Ingress for joyquest-api and joyquest-web.
  • Verification Evidence:
  • Go unit & race tests: ok github.com/montionugera/joy-quest/server/internal/personalization (0.00s)
  • Svelte check: 0 errors, 0 warnings
  • Vitest test suite: 17 test files passed, 92 tests passed (632ms)
  • UltraCode continuous iterations: 12+ consecutive verified cycles.


  • ---

    📦 Ship v0.2.0 (2026-09-16) — Admin Observability & Security Rate Limits

  • Git Commit: 4b83415, d85cb56
  • Release Horizon: Horizon 1 (Admin & Observability)
  • Primary Highlights:
  • 1. Admin Suite (/admin):
  • Health dashboard tracking Postgres connection pool, worker job queues, and AI error rates.
  • View-As functionality for admin auditing without session pollution.
  • 2. Security Rate Limits (HIGH-2, HIGH-3):
  • Atomic rate caps on topic creation and AI grilling endpoints.
  • HTTP rate-limiting middleware protecting unauthenticated paths.
  • 3. Audit Log System:
  • Immutable event logging in Postgres for all administrative operations.
  • Database Migrations:
  • 00007_admin_audit_logs.sql: Created audit_logs table and indexes.
  • Rollout Verification:
  • kubectl rollout status deployment/joyquest-api -n joyquest $\to$ successfully rolled out.


  • ---

    📦 Ship v0.1.0 (2026-09-14) — Core Learner Monolith & Bauhaus Design System

  • Git Commit: 0f77354, 2a45236, a8f0e3b
  • Release Horizon: Horizon 1 (Core Foundation)
  • Primary Highlights:
  • 1. Catalog & Enrolments:
  • Topic discovery, search by difficulty and duration, one-click enrolment.
  • 2. Topic Dashboard & Study View:
  • Next lesson pointer, streak tracking, study minutes, lesson markdown reader.
  • 3. Quiz & Server-Side Grading:
  • Multiple-choice questions with server-side grading and immediate feedback.
  • 4. Bauhaus Design System:
  • Built with Svelte 5 runes ($state, $derived, $props) using crisp geometric visual tokens.
  • 5. Shared SSO Identity:
  • OAuth login and token exchange with auth.joymify.com / user-api.
  • Database Migrations:
  • 00001_init.sql through 00006_quizzes.sql: Schema for members, topics, modules, lessons, notes, and quizzes.


  • ---

    4. Local K8s Deployment Commands



    1. Build local container images

    docker build -t ghcr.io/montionugera/joyquest-api:local ./server docker build -t ghcr.io/montionugera/joyquest-web:local ./web

    2. Apply local Kubernetes manifests

    kubectl apply -f k8s/local/all-in-one.yaml

    3. Verify rollout status

    kubectl rollout status deployment/joyquest-api -n joyquest --timeout=60s kubectl rollout status deployment/joyquest-web -n joyquest --timeout=60s

    4. Verify live ingress response

    curl -f http://joyquest.joymify.local.com/healthz


    ---

    5. Standard Release Notes Template (For Future Ships)



    When minting a new ship, copy this template and append it to §3 above:

    📦 Ship vX.Y.Z (YYYY-MM-DD) — <Title>

  • Git Commit: <sha>
  • Release Horizon: Horizon <N> (<Name>)
  • Primary Highlights:
  • 1. <Feature 1>: <Description & file paths> 2. <Feature 2>: <Description & file paths> 3. <Bug Fixes / Hardening>: <Details>
  • Database Migrations:
  • <migration_file>.sql: <Summary of schema diff>
  • K8s Manifest Changes:
  • <file>: <Env vars, resource limits, or ingress changes>
  • Verification Evidence:
  • Test command output: <summary>
  • Rollout status: kubectl rollout status deployment/... -> OK
  • Live check: curl -f http://joyquest.joymify.local.com/healthz -> 200 OK