NW-DISCUSS: Jobs-to-be-Done Analysis, UX Journey Design, and Requirements Gathering…
Jump to turn (10)
- User
Wave: DISCUSS (wave 2 of 6) | Agent: Luna (nw-product-owner) | Command: /nw:discuss
Execute DISCUSS wave through Luna's integrated workflow: JTBD analysis|UX journey discovery|emotional arc design|shared artifact tracking|requirements gathering|user story creation|acceptance criteria definition. Luna uncovers jobs users accomplish, maps to journeys and requirements, handles complete lifecycle from user motivations through DoR-validated stories ready for DESIGN. Establishes ATDD foundation.
For greenfield projects (no src/ code, no docs/feature/ history), Luna proposes Walking Skeleton as Feature 0.
Question: What type of feature is this? Options:
Question: Should we start with a walking skeleton? Options:
Question: Priority for UX research depth? Options:
Question: How many distinct jobs are your users trying to accomplish with this feature? Options:
@nw-product-owner
Execute *jtbd-analysis for {feature-name}, then *journey informed by JTBD artifacts, then *gather-requirements informed by both.
Context files: see Context Files Required and Previous Artifacts above.
Configuration:
Phase 1 -- Jobs-to-be-Done Analysis (REQUIRED):
Grounds all subsequent artifacts in real user motivations.
| Artifact | Path |
|---|---|
| Job Stories | docs/ux/{epic}/jtbd-job-stories.md |
| Four Forces | docs/ux/{epic}/jtbd-four-forces.md |
| Opportunity Scores | docs/ux/{epic}/jtbd-opportunity-scores.md (when multiple jobs) |
Phase 2 -- Journey Design:
Luna runs deep discovery (mental model|emotional arc|shared artifacts|error paths) informed by JTBD, produces visual journey + YAML schema + Gherkin scenarios. Each journey maps to one or more identified jobs.
| Artifact | Path |
|---|---|
| Visual Journey | docs/ux/{epic}/journey-{name}-visual.md |
| Journey Schema | docs/ux/{epic}/journey-{name}.yaml |
| Gherkin Scenarios | docs/ux/{epic}/journey-{name}.feature |
| Artifact Registry | docs/ux/{epic}/shared-artifacts-registry.md |
Phase 3 -- Requirements and User Stories:
Luna crafts LeanUX stories informed by JTBD + journey artifacts. Every story traces to at least one job story. Validates against DoR, invokes peer review, prepares handoff.
| Artifact | Path |
|---|---|
| Requirements | docs/requirements/requirements.md |
| User Stories | docs/requirements/user-stories.md |
| Acceptance Criteria | docs/requirements/acceptance-criteria.md |
| DoR Checklist | docs/requirements/dor-checklist.md |
Handoff To: nw-solution-architect (DESIGN wave) Deliverables: JTBD artifacts (job stories|four forces|opportunity scores) + journey artifacts (visual|YAML|Gherkin|artifact registry) + requirements (stories|acceptance criteria|DoR validation|peer review)
docs/ux/{epic}/
jtbd-job-stories.md
jtbd-four-forces.md
jtbd-opportunity-scores.md (when multiple jobs)
journey-{name}-visual.md
journey-{name}.yaml
journey-{name}.feature
shared-artifacts-registry.md
docs/requirements/
requirements.md
user-stories.md (each story traces to a job)
acceptance-criteria.md
dor-checklist.md
/nw:discuss first-time-setup
Orchestrator asks Decision 1-4. User selects "User-facing", "No skeleton", "Comprehensive", "Multiple jobs". Luna starts with JTBD analysis: discovers jobs like "When I first open the app, I want to feel productive immediately, so I can justify the purchase." Maps four forces for each job. Scores opportunities. Then runs journey discovery informed by JTBD, produces visual journey + YAML + Gherkin. Finally crafts stories where each traces to a job, validates DoR, and prepares handoff.
/nw:discuss --phase=jtbd onboarding-flow
Runs only Luna's JTBD analysis phase (job discovery + dimensions + four forces + opportunity scoring). Produces JTBD artifacts without proceeding to journey design or requirements. Useful for early discovery when you need to understand user motivations before committing to UX design.
/nw:discuss --phase=journey release-nwave
Runs only Luna's journey design phases (discovery + visualization + coherence validation). Produces journey artifacts without proceeding to requirements crafting. Useful when JTBD is already done and journey design needs standalone iteration.
/nw:discuss --phase=requirements new-plugin-system
Runs only Luna's requirements phases (gathering + crafting + DoR validation). Assumes JTBD and journey artifacts already exist or are not needed (e.g., backend feature).
ARGUMENTS: extend observer agent with llm based reasoning
Let me first understand the current observer agent before starting the discussion.
Excellent. I now have a thorough understanding of the current observer agent. Let me start the DISCUSS wave.
The observer agent today is purely deterministic — pattern matching, string comparisons, threshold checks. It handles 5 event types across a verification pipeline and a graph scan. The ToolLoopAgent scaffolding exists in agents/observer/ but isn't wired to any LLM.
Before diving into JTBD analysis, I need your input on four decisions:
Decision 1 — Feature Type: This is clearly cross-cutting (LLM reasoning touches the verification pipeline, graph scan, agent layer, and potentially new observation types). Does that match your thinking, or do you see it differently?
Decision 2 — Walking Skeleton: The observer already has a working deterministic implementation with 34 tests. I'd recommend no skeleton — we extend brownfield. Agree?
Decision 3 — UX Research Depth: Given this is an agent-layer feature (no direct UI changes), I'd suggest lightweight — focus on the happy path of LLM-enhanced verification. Or do you want comprehensive coverage of edge cases (hallucination, cost, latency)?
Decision 4 — Number of User Jobs: I see at least 2-3 distinct jobs the LLM reasoning would serve. Do you have a sense, or should I discover them through interview?
From studying the codebase, the deterministic observer has clear gaps that LLM reasoning would address:
Semantic contradiction detection — Today's graph scan does string matching ("tRPC" vs "REST"). An LLM could detect semantic contradictions ("we decided to minimize dependencies" vs "task: add 5 new npm packages").
Richer peer review — Today's observation peer review is shallow (cross-checks status fields). An LLM could evaluate whether an observation's reasoning is sound.
Pattern synthesis — The graph scan finds individual anomalies. An LLM could synthesize patterns across multiple signals ("3 tasks blocked on the same decision — this decision is a bottleneck").
Natural language verdicts — Current observation text is template-based. LLM reasoning could produce contextual, actionable explanations.
Do these resonate? What's driving your interest in adding LLM reasoning — is it one of these, or something else entirely?
/context context
yes these makes sense
Good. Let me run the full JTBD analysis based on these confirmed directions.
Decisions locked: Cross-cutting | No skeleton | Lightweight | Multiple jobs (I'll score the 4 identified)
| # | Job Story |
|---|---|
| J1 | When the observer detects a state transition, I want it to understand semantic meaning beyond string matching, so I can catch contradictions that no regex would find. |
| J2 | When another agent creates an observation, I want the observer to evaluate the reasoning quality, so I can trust that surfaced signals are sound, not noise. |
| J3 | When multiple anomalies accumulate in a workspace, I want the observer to synthesize cross-signal patterns, so I can act on systemic issues instead of chasing individual symptoms. |
| J4 | When the observer creates an observation, I want it to produce contextual, actionable explanations, so I can understand the "so what" without digging into raw graph data. |
| Job | Functional | Emotional | Social |
|---|---|---|---|
| J1 | Detect semantic contradictions between decisions and implementation | Confidence that nothing slips through the cracks | Team sees the system as genuinely intelligent |
| J2 | Validate observation reasoning against graph evidence | Trust in the signal-to-noise ratio | Other agents' work is held accountable |
| J3 | Correlate multiple signals into higher-order patterns | Relief from cognitive overload of tracking many threads | Organization sees bottlenecks before they escalate |
| J4 | Generate human-readable, contextual verdicts | Clarity — no mental translation needed | Observations are useful to non-technical stakeholders too |
J1 — Semantic Contradiction Detection
| Force | Description |
|---|
/context context
yes
Moving to Phase 2 (Journey Design) and Phase 3 (Requirements). I'll write all artifacts to disk.
Now writing Phase 2 (Journey Design) and Phase 3 (Requirements) artifacts.
Now Phase 3 — Requirements and User Stories.
Now running peer review on the DISCUSS artifacts.
The reviewer rejected pending revisions — 4 of 8 DoR items failed. The key issues are legitimate. Let me address the critical findings.
Addressing the reviewer's critical findings across all artifacts.
Phase 1 — JTBD Analysis:
docs/ux/observer-llm-reasoning/jtbd-job-stories.mddocs/ux/observer-llm-reasoning/jtbd-four-forces.mddocs/ux/observer-llm-reasoning/jtbd-opportunity-scores.mdPhase 2 — Journey Design:
docs/ux/observer-llm-reasoning/journey-semantic-verification-visual.mddocs/ux/observer-llm-reasoning/journey-pattern-synthesis-visual.mddocs/ux/observer-llm-reasoning/journey-semantic-verification.yamldocs/ux/observer-llm-reasoning/journey-semantic-verification.featuredocs/ux/observer-llm-reasoning/shared-artifacts-registry.mdPhase 3 — Requirements:
docs/requirements/observer-llm-reasoning/requirements.md — 10 requirements (R1-R10 incl. NFRs)docs/requirements/observer-llm-reasoning/user-stories.md — 6 stories (US-1, US-2, US-3a, US-3b, US-4, US-5)docs/requirements/observer-llm-reasoning/acceptance-criteria.md — 18 testable ACdocs/requirements/observer-llm-reasoning/dor-checklist.md — 10/10 items pass| Finding | Resolution |
|---|---|
| Solution-first story titles | Renamed to outcome-led: "Surface contradictions..." |
| Generic personas | Added Marcus Santos, Jamie Park, PM Agent with specific characteristics |
| Sparse domain examples | Added concrete examples with real decision text, commit context, timelines per story |
| US-3 too large | Split into US-3a (synthesis, M) and US-3b (dedup, S) |
| Missing NFRs | Added R8 (latency SLA), R9 (cost controls), R10 (large workspace handling) |
| Ambiguous thresholds | Quantified: confidence 0.5, peer review 0.7/0.4, related decisions max 20, signals = 2 entities |
| Non-testable ACs | Added observable assertions, SELECT count() verifiers, field-value tables |
| Alternatives not documented | Added alternatives table with rejection rationale |
Ready for DESIGN (/nw:design) — architecture, component boundaries, and technology selection for the LLM reasoning integration.
"Cost-Optimized LLM Invocation" make this configurable so that the end user can decide whether or not to enable this
Good call. Let me update the requirements and acceptance criteria to make the LLM skip optimization configurable.
Updated across all three files:
OBSERVER_SKIP_DETERMINISTIC (default: true). When false, LLM runs on every event regardless of deterministic result.Continue from where you left off.
No response requested.
/context context
No response requested.
/context context
commit
Committed 6d523ad9 — 12 files, 1144 lines. DISCUSS wave artifacts for observer LLM reasoning.
| Push | String matching misses "minimize dependencies" vs "add 5 packages". Real contradictions go undetected. |
| Pull | LLM reads intent behind decisions and compares against implementation reality. Catches what humans would catch. |
| Anxiety | LLM hallucination could create false contradictions → alert fatigue. Cost per verification call. |
| Habit | Users currently rely on manual review or ignore subtle contradictions entirely. |
J2 — Reasoning-Quality Peer Review
| Force | Description |
|---|---|
| Push | Current peer review only checks field-level status. A well-structured but logically wrong observation passes. |
| Pull | LLM evaluates whether the observation's claim follows from the evidence in the graph. |
| Anxiety | Observer reviewing other agents' work feels like overhead. Could the LLM disagree incorrectly? |
| Habit | Users treat all observations equally — no quality signal on the observation itself. |
J3 — Cross-Signal Pattern Synthesis
| Force | Description |
|---|---|
| Push | Graph scan finds individual anomalies. User must mentally correlate "3 tasks blocked on decision X" themselves. |
| Pull | LLM identifies bottleneck patterns, cascading risks, and systemic themes across the workspace. |
| Anxiety | Synthesized patterns could be speculative. How to distinguish insight from LLM confabulation? |
| Habit | Users do periodic manual triage, scanning feed for clusters. Works at small scale, breaks at 50+ entities. |
J4 — Contextual Natural Language Verdicts
| Force | Description |
|---|---|
| Push | Template-based observation text is repetitive and lacks "so what". Users skim past it. |
| Pull | Each observation reads like a brief from a knowledgeable colleague — specific, contextual, actionable. |
| Anxiety | Verbose LLM output could be worse than templates. Latency increase on observation creation. |
| Habit | Users read observation text once, then look at severity/type badges for triage. |
| Job | Importance (1-10) | Current Satisfaction (1-10) | Opportunity Gap | Rank |
|---|---|---|---|---|
| J1 — Semantic contradictions | 9 | 3 | 6 | 1st |
| J3 — Pattern synthesis | 8 | 2 | 6 | 2nd |
| J2 — Reasoning peer review | 7 | 4 | 3 | 3rd |
| J4 — NL verdicts | 6 | 5 | 1 | 4th |
Priority call: J1 and J3 have the highest opportunity gap. J1 is the natural starting point — it extends the existing verification pipeline with LLM reasoning on a per-event basis. J3 builds on it by reasoning across multiple signals during graph scan.
J2 and J4 are valuable but lower urgency — J4 in particular is almost "free" once LLM reasoning is in the loop (you get better text as a side effect).
Does this opportunity ranking match your intuition? Should I proceed to Phase 2 (Journey Design) focusing primarily on J1 and J3, with J2/J4 as secondary paths?