fogserv.cloud Workflows
Status: Active
Last Updated: August 14, 2026
Tags: workflows, runbook, planning, validation, documentation
Summary
The unified operational runbook for fogserv.cloud: how planning, implementation, validation, and documentation loop together. Every task — site feature, infra change, KB article — flows through the same four loops.
1. Planning Loop
- Pick from
tasks.md— the roadmap is truth. Never start work that isn't tracked there; add the task first if it's new. - Open a ticket / branch — GitOps is Law: every change gets a branch named after the ticket/task (
feat/<slug>,fix/<slug>,kb/<slug>for documentation). - Scope check — confirm prerequisites are complete (see
tasks.mdphase gates) and identify affected surfaces: website (src/), schema (prisma/), infra, and KB entries.
2. Implementation Loop
- Environment: dev server runs in tmux session
fogserv-devonhttp://localhost:5173/. Secrets come from dotenvx (.env→.env.production); never commit secrets. - Code standards: TypeScript strict, type-check must pass with 0 errors before handoff (
bun run typecheck/tsc --noEmit). Build withNODE_OPTIONS=--max-old-space-size=4096— default heap OOMs on SvelteKit/vite-class builds. - Data changes: edit
prisma/schema.prisma, generate client, write a migration; updatedatabases/schema-overview.mdin the same change. - Small commits, real messages — one logical change per commit so rollback stays trivial.
3. Validation Loop
- Type-check passes clean (0 errors).
- Feature verified against the running dev server (manual smoke test or route-level check).
- Auth-touching changes: verify permission checks on every endpoint (register, verify-email, profile, post CRUD).
- Email-touching changes: verify webhook endpoints respond correctly without valid Mailgun credentials (dry-run mode).
- Infra changes: plan/diff reviewed before apply; drift check afterwards (see
infrastructure/drift-detection.md).
4. Documentation Loop
Documentation is Memory — no change is done until it is written down:
- KB entry: create or update the relevant
/kb/article following the store layout inREADME.md(Title + metadata, Summary, Context, Implementation, Next Steps, Sources & Related, Change Log). - Change Log: append a timestamped entry describing what changed and which ticket/session triggered it.
- Cross-link: point to at least one related KB article; update the directory map if a new topic was created.
- Session log: record insights in
lessons-learned.mdand any bug + root cause inproblems-solved.md. - Handoff: if ending a session mid-phase, update
tasks.mdQuick Status and add a dated Change Log entry describing where the next agent should pick up.
Related
- TELOS — pillars behind these loops
- tasks — current roadmap state
- agent — full operating context
- implementations — architecture decisions
- README — KB store layout
Change Log
- 2026-08-14 — Created
workflows.md; file was referenced byREADME.md,index.md, andtasks.mdbut had never been written (audit finding). Content reconstructed from tasks.md session logs and TELOS mandates. - Phase 6 (Staging/Rollback/Backup): see kb/artifacts/phase6/staging-rollback-backup.md — GitOps staging deploy workflow, rollback runbook with kubectl undo + git revert, restic-to-MinIO backup script + systemd timer.