Agentic Hub Docs
Portal & Workflows

Workflows

Workflow Architecture

20 workflows organized in 4 layers. Design principle: Composable & Atomic (SC5) — each does ONE thing, complex operations compose atomics.

Created: A122 (2026-03-21)

System Map — 4 Layers

┌───────────────────────────────────────────────────────────────┐
│  ⚡ ATOMIC — do one thing, no side effects                    │
│                                                               │
│  /commit       commit & push (conventional commits)           │
│  /log          log file + D1 log + D1 velocity                │
│  /ongoing      add/update/remove ongoing.md entries           │
│  /discuss       discussion mode (no execution)                 │
│  /hub-status   read-only daily pulse                          │
│  /hub-clean    data hygiene: logs, tasks, git                 │
│  /hub-archive  archive done tasks + old logs + reports        │
│  /skill        create new skill                               │
└───────────────────────────────────────────────────────────────┘

┌───────────────────────────────────────────────────────────────┐
│  🔵 TASK LIFECYCLE — track work from start to finish          │
│                                                               │
│  /task start   config → folder? → D1? → comments? → go       │
│  /task save    /commit → D1 sync → audit comment → /log       │
│  /task done    mark done + ongoing + D1 + audit (atomic)      │
│  /task archive move to archive                                │
│  /task spawn   full work package for later                    │
└───────────────────────────────────────────────────────────────┘

┌───────────────────────────────────────────────────────────────┐
│  🟠 SESSION LIFECYCLE — capture, assess, transition           │
│                                                               │
│  /session save     full reasoning trail (by topic)            │
│  /session summary  quick session status (chat)                │
│  /session health   subjective quality gauge                   │
│                    → if <60%: suggest /handoff                 │
│  /session quality  rate smoothness + hypotheses               │
│  /handoff          save state → next-session.md               │
│                    → consider /task spawn                      │
│                    → suggest /wrapup                           │
└───────────────────────────────────────────────────────────────┘

┌───────────────────────────────────────────────────────────────┐
│  🎯 ORCHESTRATOR — compose atomics into sequences             │
│                                                               │
│  /wrapup session                                              │
│    0.5  handoff check   (if degraded → /handoff first)        │
│    1.   /session save   (if discussion)                       │
│    2.   /learn          (if learnings)                         │
│    3.   /learn scan     (if KB-worthy)                        │
│    4.   /hub-evolve     (if hub changed)                      │
│    5.   /task done|save (always)                              │
│    6.   /log            (always)                              │
│    7.   /commit         (always)                              │
│    8.   wellness check  (always)                              │
│                                                               │
│  /wrapup day                                                  │
│    → run /wrapup session for each active task                  │
└───────────────────────────────────────────────────────────────┘

Composition Map — Who Calls Who

/wrapup ─────┬─ /session save
             ├─ /learn
             ├─ /learn scan
             ├─ /hub-evolve
             ├─ /task done ─── /ongoing
             ├─ /log
             └─ /commit

/handoff ────┬─ /task spawn   (if scope grew)
             └─ suggests → /wrapup

/task save ──┬─ /commit
             └─ /log

Strategic Workflows

Alignment — Three Zoom Levels

ZoomWorkflowCadenceQuestion
🔭 LIFE/vision alignQuarterlyStress? Energy? Life balance?
📅 WEEK/claraWeeklyWhich tasks this week? Triage inbox?
🎯 WORK/visionPer-taskDoes this serve the vision chain?

Assessment

WorkflowScopeOutput
/clarityProject/domainHow crystallized is the context?
/hub-auditHub systemQuality inspection against principles
/hub-statusDailyRead-only pulse check

Knowledge & Learning

WorkflowPurpose
/learnExtract and store session learnings → rules/memory
/hub-evolveSync stale docs/architecture after hub changes
/learn scanScan for content worthy of centralized KB

Decision Flow — "What Do I Call?"

Session ending?
├─ YES → Context degraded?
│         ├─ YES → /handoff → /wrapup
│         └─ NO  → /wrapup

└─ NO  → What am I doing?
          ├─ Working        → /task save  or  /commit
          ├─ Need direction → /vision align (life) | /clara (week) | /vision (task)
          ├─ Quick pulse    → /hub-status
          ├─ Discussion     → /discuss
          └─ Process inbox  → /clara

Task Start Decision Matrix

Local FolderD1 RecordAction
Resume — read README, go
Resume + create D1 record
Fresh start with D1 context
Fully new — ask user

Design Decisions (A122)

#DecisionRationale
D1Atomic vs Orchestrator splitEach workflow does ONE thing; /wrapup composes them
D2/handoff as first-classClean exit path when context degrades
D3Task start: folder-first + commentsPrevent duplicate folders, leverage D1 audit trail
D4Subjective health over token mathToken % gives false confidence; trust the feeling
D5Three alignment zoom levelsLIFE / WEEK / WORK — clear when to use which
D6/clarity simplified 4→3 modesMerged next into report

On this page