@ritualai/cli 0.25.0 → 0.36.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/dist/commands/build.js +89 -0
  2. package/dist/commands/build.js.map +1 -0
  3. package/dist/commands/init.js +93 -109
  4. package/dist/commands/init.js.map +1 -1
  5. package/dist/commands/uninstall.js +6 -1
  6. package/dist/commands/uninstall.js.map +1 -1
  7. package/dist/index.js +18 -0
  8. package/dist/index.js.map +1 -1
  9. package/dist/lib/agents/configure-mcp.js +63 -0
  10. package/dist/lib/agents/configure-mcp.js.map +1 -1
  11. package/dist/lib/agents/launch.js +70 -0
  12. package/dist/lib/agents/launch.js.map +1 -0
  13. package/dist/lib/agents/providers.js +8 -2
  14. package/dist/lib/agents/providers.js.map +1 -1
  15. package/dist/lib/final-cta-box.js +22 -10
  16. package/dist/lib/final-cta-box.js.map +1 -1
  17. package/dist/lib/help-style.js +65 -0
  18. package/dist/lib/help-style.js.map +1 -0
  19. package/dist/lib/onboarding-state.js +9 -8
  20. package/dist/lib/onboarding-state.js.map +1 -1
  21. package/dist/lib/uninstall-plan.js +18 -1
  22. package/dist/lib/uninstall-plan.js.map +1 -1
  23. package/dist/lib/workspace-explainer.js +42 -111
  24. package/dist/lib/workspace-explainer.js.map +1 -1
  25. package/dist/lib/workspace-flow.js +4 -1
  26. package/dist/lib/workspace-flow.js.map +1 -1
  27. package/package.json +1 -1
  28. package/skills/claude-code/ritual/.ritual-bundle.json +3 -2
  29. package/skills/claude-code/ritual/SKILL.md +11 -0
  30. package/skills/claude-code/ritual/references/build-flow.md +474 -414
  31. package/skills/claude-code/ritual/references/cli-output-contract.md +90 -34
  32. package/skills/claude-code/ritual/references/lite-flow.md +484 -421
  33. package/skills/codex/ritual/.ritual-bundle.json +3 -2
  34. package/skills/codex/ritual/SKILL.md +11 -0
  35. package/skills/codex/ritual/references/build-flow.md +474 -414
  36. package/skills/codex/ritual/references/cli-output-contract.md +90 -34
  37. package/skills/codex/ritual/references/lite-flow.md +484 -421
  38. package/skills/cursor/ritual/.ritual-bundle.json +3 -2
  39. package/skills/cursor/ritual/SKILL.md +11 -0
  40. package/skills/cursor/ritual/references/build-flow.md +474 -414
  41. package/skills/cursor/ritual/references/cli-output-contract.md +90 -34
  42. package/skills/cursor/ritual/references/lite-flow.md +484 -421
  43. package/skills/gemini/ritual/.ritual-bundle.json +3 -2
  44. package/skills/gemini/ritual/SKILL.md +11 -0
  45. package/skills/gemini/ritual/references/build-flow.md +474 -414
  46. package/skills/gemini/ritual/references/cli-output-contract.md +90 -34
  47. package/skills/gemini/ritual/references/lite-flow.md +484 -421
  48. package/skills/kiro/ritual/.ritual-bundle.json +3 -2
  49. package/skills/kiro/ritual/SKILL.md +11 -0
  50. package/skills/kiro/ritual/references/build-flow.md +474 -414
  51. package/skills/kiro/ritual/references/cli-output-contract.md +90 -34
  52. package/skills/kiro/ritual/references/lite-flow.md +484 -421
  53. package/skills/vscode/ritual/.ritual-bundle.json +3 -2
  54. package/skills/vscode/ritual/SKILL.md +11 -0
  55. package/skills/vscode/ritual/references/build-flow.md +474 -414
  56. package/skills/vscode/ritual/references/cli-output-contract.md +90 -34
  57. package/skills/vscode/ritual/references/lite-flow.md +484 -421
  58. package/dist/lib/build-flow-explainer.js +0 -226
  59. package/dist/lib/build-flow-explainer.js.map +0 -1
  60. package/dist/lib/persona-picker.js +0 -171
  61. package/dist/lib/persona-picker.js.map +0 -1
@@ -25,9 +25,10 @@ When the user says "tighten the scope," call `generate_problem_statement(...)` w
25
25
 
26
26
  Before running this flow, apply `references/cli-output-contract.md` and `references/async-polling.md`. Keep raw recon internal, pass the `codebase_context_packet` downstream, and show the user only the compact `recon_digest`.
27
27
 
28
- **Build rail is load-bearing.** Every top-level user-facing message below MUST begin with the 6-stage build rail per `references/cli-output-contract.md` § Build progress anchor. Examples in this file show the rail in context; the canonical stage table + `progressHeader(stage)` spec lives in the output contract. Do not drop the rail to save space.
28
+ <!-- skill-options:no-gate-change: deliverable-named rail stage labels + conditional Implementation stage only; no pause or option changes -->
29
+ **Build rail is load-bearing.** Every top-level user-facing message below MUST begin with the build rail per `references/cli-output-contract.md` § Build progress anchor — SIX stages for development jobs, FIVE for non-development jobs (no `Implementation` stage), with stage 5 named for the job's deliverable (`deliverableTemplate` from the Job gate). The literal `Build brief` in this file's examples is the generic-build label; substitute the confirmed job's deliverable name. Examples in this file show the rail in context; the canonical stage table + `progressHeader(stage)` spec lives in the output contract. Do not drop the rail to save space.
29
30
 
30
- For narrow/mobile chat surfaces, use the **compact progress anchor** defined in `references/cli-output-contract.md` § Build progress anchor (the `Ritual build · 1/5 Scope` chip) instead of forcing the full five-stage rail to wrap. Same contract, different rendering.
31
+ For narrow/mobile chat surfaces, use the **compact progress anchor** defined in `references/cli-output-contract.md` § Build progress anchor (the `Ritual build · 2/6 Scope` chip) instead of forcing the full six-stage rail to wrap. Same contract, different rendering.
31
32
 
32
33
  ### When to use
33
34
 
@@ -105,6 +106,58 @@ If the user types `always audit for this build` mid-flow at the Step 9.6 prompt,
105
106
 
106
107
  Persist `auditMode` to `Exploration.metadata.auditMode` at `create_exploration` time (additive JSONB key — no schema migration) so `/ritual resume <exploration-id>` picks up the same mode the original build started with, and `/ritual lineage <exploration-id>` can render which gates ran + their outcomes.
107
108
 
109
+ <!-- lite:keep-start -->
110
+ #### Step 0.7 — The Job gate: classify the job to be done
111
+
112
+ **The FIRST tool call of a fresh build.** The server — not you — classifies the user's raw ask into
113
+ one canonical job-to-be-done (the full catalog: development, product, marketing, prototyping). Your
114
+ job is to relay the result and get an explicit confirmation before ANYTHING else happens. This is the
115
+ `Job` stage of the build rail (see `references/cli-output-contract.md`).
116
+
117
+ When this gate runs:
118
+ - `/ritual build <ask text>` → run it IMMEDIATELY, before the workspace pick.
119
+ - Bare `/ritual build` (no ask) → proceed to Step 1/1.5 first; the moment a FRESH ask is captured
120
+ (the user describes what they want to build), run this gate before continuing.
121
+ - Resume paths (Step 1.5 → resume) → skip this gate entirely; the exploration's job is already set.
122
+
123
+ 1. **Call `mcp__ritual__classify_work_item`** with `raw_input` = the user's ask, verbatim. Do NOT
124
+ classify yourself, do NOT pre-filter to development jobs. It returns
125
+ `{ jtbd, workItemLabel, deliverableTemplate, why, personaCoverage }`.
126
+
127
+ 2. **Render the validation prompt** (rail stage `Job`):
128
+
129
+ ```text
130
+ Ritual build
131
+ ● Job ○ Scope ○ Discovery ○ Recommendations ○ {Deliverable} ○ Implementation (Your agent)
132
+
133
+ You're looking to: {restate the ask in one short clause}
134
+ The job to be done: {workItemLabel} — {why}
135
+ Deliverable: {deliverableTemplate}
136
+
137
+ Reply `proceed` to frame the problem (sub-problems + problem statement), or tell me what the
138
+ job actually is.
139
+ ```
140
+
141
+ Do not render `personaCoverage` — persona representation is handled server-side now; only surface
142
+ it if the user explicitly asks who's involved.
143
+
144
+ Rail naming (deliverable-named rail, 2026-06-11): render `{Deliverable}` as the PROPOSED job's
145
+ `deliverableTemplate` (e.g. `Launch Brief`, `PRD`, `Service Build Brief`; `Build brief` for the
146
+ generic `build-feature`), and OMIT the `Implementation (Your agent)` stage entirely when the
147
+ proposed job is not a development job — non-dev rails have FIVE stages ending at the deliverable.
148
+ A correction that changes the job updates the rail on the next render. Spec:
149
+ `references/cli-output-contract.md` § Canonical stage table.
150
+
151
+ 3. **[USER PAUSE]** — wait for the user's actual reply. Never infer confirmation from the original
152
+ ask, auto-mode, or silence. `proceed` / `yes` / `ok` confirms. ANY other substantive reply is a
153
+ correction: call `mcp__ritual__classify_work_item` AGAIN with the same `raw_input`, plus
154
+ `correction` (the user's words) and `previous_jtbd` (the rejected slug), then re-render step 2.
155
+ Loop until the user proceeds.
156
+
157
+ 4. **Remember the confirmed `jtbd`** — you pass it to `create_exploration` at Step 6. Only after the
158
+ user proceeds does the flow enter the `Scope` stage (workspace pick onward).
159
+ <!-- lite:keep-end -->
160
+
108
161
  #### Step 1 — Pick a workspace
109
162
 
110
163
  <!-- skill-options:no-gate-change: connection-freshness ping check is a non-interactive warn, adds no user-facing gate or option -->
@@ -135,7 +188,17 @@ Resolution order:
135
188
  > Override with `workspace: list`.
136
189
 
137
190
  Pause only if the file is missing/malformed, the workspace cannot be accessed (validation failed above), or the user explicitly asks to switch.
138
- 2. **List existing project workspaces.** If no `.ritual/config.json`, call `mcp__ritual__list_workspaces` — this returns project-type workspaces (the General workspace is excluded by default; agents never use it). Present as a numbered list (id, name). **[USER PAUSE]** for selection.
191
+ 2. **List existing project workspaces.** If no `.ritual/config.json`, call `mcp__ritual__list_workspaces` — this returns project-type workspaces (the General workspace is excluded by default; agents never use it). This path is usually a first-time user who has never been told what a workspace IS — open the render with the one-line explainer (same register as the CLI's `ritual init`), then the numbered list (id, name):
192
+
193
+ <!-- skill-options:no-gate-change: adds explainer prose to the existing workspace-pick gate; options and pause unchanged -->
194
+
195
+ > No `.ritual/config.json` found — this repo isn't bound to a workspace yet.
196
+ > A workspace is Ritual's memory for this codebase: the context and reasoning behind every build lands there, so the next build (by you, a teammate, or an agent) starts from what's already known.
197
+ >
198
+ > Which workspace should this exploration live in?
199
+ > {numbered list}
200
+
201
+ **[USER PAUSE]** for selection.
139
202
  3. **Create a new one if none exist or user wants a fresh one.** Call `mcp__ritual__create_workspace` with a name — convention is to name it after the repo (basename of cwd, or origin remote). Confirm the name with the user first. **[USER PAUSE]**
140
203
 
141
204
  Store `workspace_id` for the rest of the flow.
@@ -159,6 +222,7 @@ When you later see `.ritual/config.json` in `git status` output (modified or unt
159
222
 
160
223
  #### Step 1.1 — No-arg `/ritual build` entry
161
224
 
225
+ <!-- skill-options:no-gate-change: ask-copy gains example asks + the granularity teaching line; no pause or option changes -->
162
226
  If the user invokes `/ritual build` with no problem statement, set `raw_input = null` and **do not ask for a problem statement before checking the workspace**. A no-arg build is often a continuation or next-work discovery intent, so `resume` and `suggest high-leverage work` must remain available.
163
227
 
164
228
  After workspace selection, proceed into the existing-exploration check below. User-facing copy should avoid internal step labels and should offer these paths when applicable:
@@ -173,13 +237,16 @@ Reply with:
173
237
  - `suggest` to have me look for high-leverage candidates from repo + workspace history
174
238
  - a feature/problem description to start fresh
175
239
  - `none` to exit
240
+
241
+ e.g. "audit log for admin actions" — a few words works; discovery extracts
242
+ the detail. Constraints and exclusions you type become binding scope.
176
243
  ```
177
244
 
178
245
  If there are **zero existing explorations** and `raw_input = null`, do not say "starting fresh" and do not advance to template selection yet. Ask for the feature/problem first:
179
246
 
180
247
  ```text
181
248
  Ritual build
182
- ● Scope ○ Discovery ○ Recommendations ○ Build brief ○ Implementation (Your agent)
249
+ ✓ Job ● Scope ○ Discovery ○ Recommendations ○ Build brief ○ Implementation (Your agent)
183
250
 
184
251
  Heads-up: Ritual's build flow needs ~5 real decisions from you (workspace,
185
252
  scope, discovery picks, rec acceptance, implementation approval). If your
@@ -193,6 +260,15 @@ No Ritual history here yet.
193
260
 
194
261
  Next: start with a feature, or let Ritual suggest high-leverage work from the repo.
195
262
 
263
+ Any granularity works, and any job — not just code:
264
+ "audit log for admin actions"
265
+ "Add soft-delete for projects. Restorable 30 days, then purge via the
266
+ existing background-job system. Don't touch billing records; exports
267
+ must exclude deleted data."
268
+ "draft the launch brief for the new pricing tier"
269
+ A few words → discovery extracts the detail. Constraints and exclusions
270
+ you type become binding scope.
271
+
196
272
  Reply with a feature/problem description, `suggest`, `pulse <ask>`, or `none`.
197
273
  ```
198
274
 
@@ -480,7 +556,7 @@ Steps:
480
556
 
481
557
  #### Step 2 — Template selection (server-side, silent)
482
558
 
483
- > **Rewritten 2026-05-21 (CLI 0.9.0+).** Previously this section had three branches (persona-pinned / legacy-pinned / list-and-pick) that the SKILL had to navigate, and could optionally call `mcp__ritual__list_templates`. That tool is gone from the agent-facing MCP surface as of CLI 0.9.0. Template selection is now entirely server-side: when `create_exploration` is called without an explicit `template_id`, the server resolves the right SYSTEM template from `user.persona` (set by `ritual init` FTUE) → `workspace.defaultTemplateId` (team override) → system default, then forks it into a per-exploration Template atomically inside the same `create_exploration` request.
559
+ > **Rewritten 2026-05-21 (CLI 0.9.0+), chain updated 2026-06-11 (JTBD-first entry).** Previously this section had three branches (persona-pinned / legacy-pinned / list-and-pick) that the SKILL had to navigate, and could optionally call `mcp__ritual__list_templates`. That tool is gone from the agent-facing MCP surface as of CLI 0.9.0. Template selection is now entirely server-side: when `create_exploration` is called without an explicit `template_id`, the server resolves the right SYSTEM template from the exploration's `jtbd` (the job confirmed at the Step 0.7 Job gate) → `workspace.defaultTemplateId` (team override) → `user.persona` (legacy — the FTUE picker is gone; set only via `ritual init --persona`) → a designated generic fallback → system default, then forks it into a per-exploration Template atomically inside the same `create_exploration` request.
484
560
 
485
561
  **For the agent: there is no template-selection step. Skip this Step entirely and go to Step 3.** Don't read `.ritual/config.json` for persona, don't try to call `list_templates` (it's not registered), don't render a "Using persona X" confirmation.
486
562
 
@@ -491,9 +567,12 @@ Why no user-visible confirmation: a "do you want to continue with your persona?"
491
567
  ```
492
568
  1. Resolve PARENT template from the chain:
493
569
  explicit dto.templateId
570
+ → jtbd → the picked job's deliverable template
494
571
  → workspace.defaultTemplateId
495
- → user.persona via schema.id-matching SYSTEM template
496
- first SYSTEM template by createdAt
572
+ → user.persona via schema.id-matching SYSTEM template (legacy)
573
+ designated generic fallback (build-feature → Backend Service
574
+ (Implementation Brief); produce-deliverable → Product Brief)
575
+ → first SYSTEM template by createdAt (last resort)
497
576
  2. FORK the parent into a per-exploration Template row
498
577
  (type='EXPLORATION', parentTemplateId set, schema copied)
499
578
  3. CREATE the Exploration pointing at the forked template
@@ -508,273 +587,22 @@ All atomic in one HTTP request. See `apps/api/src/modules/explorations/explorati
508
587
 
509
588
  Recognized roles (use the role keyword the API returns, not a paraphrase): `engineering`, `product`, `design`, `marketing`, `delivery`, `operations`.
510
589
 
511
- If the user corrects the role mid-flow ("actually I'm building a PRD"), update internal role tracking. **Do not** re-pick the template — that requires re-creating the exploration, which is bigger than a mid-flow correction warrants. If the user genuinely wants a different template for this exploration, ask them to start over: `/ritual build` again, or `ritual init --persona <slug>` to change their default first.
590
+ If the user corrects the role mid-flow ("actually I'm building a PRD"), update internal role tracking. **Do not** re-pick the template — that requires re-creating the exploration, which is bigger than a mid-flow correction warrants. If the user genuinely wants a different template for this exploration, ask them to start over with `/ritual build` and correct the job at the Job gate (the jtbd drives the template now; `ritual init --persona <slug>` only changes the legacy personal default).
512
591
 
513
592
  Proceed to Step 3.
514
593
 
515
- #### Step 3 — Code reconnaissance
516
-
517
- **Skip only if the user explicitly asks ("just generate, don't read the code") OR if you're operating outside a codebase context.**
518
-
519
- Before generating considerations, gather codebase context so the sub-problems land specific to *this* code, not generic. The goal is not to show the user every fact you found; the goal is to ground downstream MCP calls and expose only decision-relevant findings in the CLI.
520
-
521
- **Capability Boundary Check (load-bearing):** If recon detects a mismatch between the user's ask and what THIS repo can actually implement — typically because the feature spans systems (backend service, mobile app, billing provider, email worker, schema migrations) that aren't present in the current checkout — DO NOT invent the missing systems and DO NOT continue as if the repo is complete. Run the boundary-check pause described in § 3.2 below before proceeding to scope. Frame the missing half as a normal architecture boundary, not a failure: *"This repo looks like the frontend side of a larger feature,"* not *"I could not find backend dependencies."* The user has not done anything wrong; the agent is asking how to scope the work.
522
-
523
- Common boundary mismatches to detect:
524
-
525
- - Full-stack feature ask + frontend-only repo (UI present, no API/service code)
526
- - Mobile feature ask + no API client contract or backend
527
- - Billing/payments feature + no payment service / subscription code
528
- - Email/notification feature + no worker / job / email-provider integration
529
- - Auth/session feature + no user mutation / session backend
530
- - Data/analytics feature + no schema, migration, or storage layer
531
-
532
- ##### 3.0 — Check for a pre-build context seed
594
+ #### Step 3 — Code reconnaissance moved (no step here)
533
595
 
534
- Before doing fresh recon, check whether the user already seeded one via `/ritual context-pulse`. Glob for `CONTEXT-*.md` at the repo root.
535
-
536
- If a `CONTEXT-<slug>.md` is found AND its `## The ask` section close-matches the current `raw_input`:
537
-
538
- - **Use it to seed `codebase_context_packet`.** Parse the file's `## Candidate files` list — those become the seed for `sources[]`. Parse `## Prior KG context` as evidence inside the packet, not as final prioritization.
539
- - **Skip fresh recon** unless the seed is stale or obviously incomplete. If you skip fresh recon, still normalize the seed into the packet structure below before calling MCP tools.
540
- - **Surface a compact note**:
541
- > Code recon
542
- > Found `CONTEXT-<slug>.md` from `/ritual context-pulse`.
543
- > Using {N} candidate files + {M} related prior exploration{s} as the recon base. Override with `recon: refresh`.
544
- - Proceed directly to 3.2.
545
-
546
- If no seed file is found, OR the seed's `## The ask` doesn't match the current `raw_input`, do fresh recon. For mismatch, mention the ignored seed in one line and do not delete it.
547
-
548
- ##### 3.1 — Fresh recon
549
-
550
- 1. **Read the README + top-level project structure.** Use `ls` / Glob to see top-level files. Identify the language, framework, key directories, and likely entry points.
551
-
552
- 2. **Glob for relevance.** Derive patterns from the user's problem. Examples:
553
- - User says "auth flow" → `**/auth/**`, `**/login*`, `**/user*`, `**/session*`
554
- - User says "checkout" → `**/checkout/**`, `**/cart/**`, `**/order/**`, `**/payment*`
555
- - User says "notifications" → `**/notif*`, `**/email/**`, `**/sms/**`, `**/push/**`
556
- Cap at ~15 hits per pattern.
557
-
558
- 3. **Skim 3–5 most-relevant files.** For each, read the first ~100 lines + scan for class/function names. Triangulate whether the behavior lives there or calls into another area.
559
-
560
- 4. **Build three recon artifacts.**
561
-
562
- A. `raw_recon_notes` — internal evidence only
563
- - files read and why they were selected
564
- - symbols/classes/functions inspected
565
- - relevant comments, schema details, tests, migrations, and config
566
- - KG hits, prior deferrals, and prior implementation references
567
- - uncertain observations, false leads, and things not found
568
- - do **not** show this by default and do **not** pass it as the main MCP planning input
569
-
570
- B. `codebase_context_packet` — downstream planning input
571
- - this is the synthesized artifact passed into `raw_input`, context pulses, and any MCP field named `recon_context`
572
- - it helps MCP understand what the coding agent observed locally without deciding the final considerations itself
573
- - separate factual observations from agent hypotheses
574
- - include confidence levels for hypotheses
575
- - use neutral labels like `agent_observed_scope_pressure` or `candidate_scope_pressure`, not `priority_considerations`
576
- - never present the packet as authoritative; MCP/tooling decides final sub-problems, recommendations, and scope
577
-
578
- C. `recon_digest` — **internal-only by default; NOT surfaced to the user.** Recon
579
- is silent plumbing inside Scope: we do NOT dump repo signals / constraints /
580
- a recon summary back to the user. Keep a compact digest in working memory for
581
- your own use (and to render ONLY if the user explicitly asks "what did you
582
- find?"), but by default show nothing — the user's first gate is the explore
583
- picker (§ 3.2, only when recon is genuinely ambiguous) or the problem frame
584
- (Step 5). The `codebase_context_packet` still feeds Step 4 silently.
585
- - keep it tight if ever shown: key surfaces, hard constraints, scope corrections
586
- - never list every file read; never quote non-load-bearing comments
587
-
588
- `codebase_context_packet` structure:
589
-
590
- ```markdown
591
- --- Codebase context packet ---
592
-
593
- ## User intent
594
- {verbatim or lightly normalized ask}
595
-
596
- ## Observed relevant surfaces
597
- - `path` — observed role in this feature or constraint
598
- - `path` — observed extension point, lifecycle, model, or integration seam
599
-
600
- ## Evidence
601
- - `path:symbol` — factual observation from code
602
- - Prior Ritual signal: {exploration / PR / RB / deferral}, if available
603
- - Missing or not-found evidence when it corrects the user's framing
604
-
605
- ## Agent hypotheses
606
- - This may make {candidate area} important because {evidence-backed reason}
607
- Confidence: low / medium / high
608
-
609
- ## Agent-observed scope pressure
610
- - Privacy / lifecycle / migration / compatibility / async / ownership / testing risk
611
- - Only include pressure that intersects with the feature intent and code evidence
612
-
613
- ## Scope corrections
614
- - The ask says X, but the code suggests Y
615
- - Missing fields, renamed concepts, or assumptions the code contradicts
616
-
617
- ## Open questions for discovery
618
- - Questions the code cannot answer and the user/Ritual exploration should resolve
619
- ```
620
-
621
- Example `codebase_context_packet` excerpt:
622
-
623
- ```markdown
624
- ## Observed relevant surfaces
625
- - `apps/conversions/abstract_models.py` — append-only conversion event model; lifecycle changes are modeled as follow-up rows.
626
- - `apps/conversions/outbox.py` — async publish/retry surface; payload shape may affect erasure semantics.
627
- - `apps/order/models.py` — raw guest email appears to live on the order side, not in conversion events.
628
-
629
- ## Agent hypotheses
630
- - Erasure semantics may need to cover both mutable raw PII and append-only pseudonymous digests.
631
- Confidence: high; supported by model fields and schema comments.
632
- - Outbox purge/replay behavior may be a scope pressure because retries can outlive the original conversion write.
633
- Confidence: medium; verify worker idempotency before scoping implementation.
634
-
635
- ## Scope corrections
636
- - No `guest_session_id` column was found in the inspected conversion models; scope may need to use the actual guest attribution identifiers.
637
- ```
638
-
639
- Example `recon_digest` — single-path case (low ambiguity):
640
-
641
- ```text
642
- Code recon
643
-
644
- Repo signals:
645
- - `apps/conversions/abstract_models.py` — append-only conversion events.
646
- - `apps/conversions/outbox.py` — async publish/retry lifecycle.
647
- - `apps/order/models.py` — raw guest email surface.
648
-
649
- Constraint:
650
- - Erasure likely needs to handle mutable raw PII separately from pseudonymous conversion digests.
651
-
652
- Scope correction:
653
- - I did not find `guest_session_id` in the inspected models.
654
-
655
- Pulse: Reasoning Readiness ~55% · Context Debt 45% (initial ask + code recon)
656
-
657
- Next: attach PRDs/tickets if they should shape scope, or `proceed` to continue.
658
- ```
659
-
660
- **Explore-directions picker — the ONLY user-visible recon output, and only when recon is genuinely ambiguous.**
661
-
662
- When (and ONLY when) recon surfaces two+ materially different directions for the same ask, present them as a **pick-one** headed **"What would you like to explore?"** — mark one recommended with a one-line reason, and pause with a concrete reply syntax. Do NOT preface it with a "Repo signals / Constraint" dump (recon is silent), and do NOT justify why the choice matters (no "picking the wrong one wastes scope" — just ask). Do not expose raw tier labels (use the translations from `references/cli-output-contract.md`).
663
-
664
- ```text
665
- Ritual build
666
- ● Scope ○ Discovery ○ Recommendations ○ Build brief ○ Implementation (Your agent)
667
-
668
- What would you like to explore?
669
-
670
- 1. Inline registration at checkout
671
- Let new customers register on the checkout page itself instead of
672
- being redirected to `/accounts/register/`.
673
-
674
- 2. Post-order account creation — recommended
675
- Let guests place the order as today, then claim the order by
676
- setting a password on the thank-you page. Preserves guest checkout
677
- and fits Oscar's `OrderPlacementMixin` / `post_checkout` hooks.
678
-
679
- Pulse: Reasoning Readiness ~35% · Context Debt 65% (scope not locked yet)
680
-
681
- Next: reply `2` for the recommended post-order path, `1` for inline
682
- registration, or describe a different intent. Reply `pause` to stop here.
683
- ```
684
-
685
- Notes on the explore-directions shape:
686
- - **Header is "What would you like to explore?"** — an invitation to pick a direction, NOT "Ambiguity to resolve." No preamble dump of repo signals/constraints; recon stays silent.
687
- - **No editorializing** about why the choice matters (no "wastes scope" / "picking wrong is costly"). The options + the recommendation carry the signal; just ask.
688
- - **Recommendation goes after the option name on the SAME line**, with a single concise reason on the line below. Keeps the options scannable.
689
- - **`Next:` is a single line** ending in a concrete reply syntax (`reply N`), not an open-ended question. Lead with the recommended default; the escape hatch comes last.
690
- - **The pulse line uses the user-facing label**, never the raw tier identifier.
691
- - On pick, feed the chosen direction + the `codebase_context_packet` into Step 4's `generate_considerations`.
692
-
693
- Capability Boundary Check (feature spans systems not in this repo) — **internal/packet-only; NOT displayed:**
694
-
695
- When the user's ask requires capabilities that aren't present in this repo (frontend-only repo asked for full-stack feature, mobile repo with no API contract, etc.), capture the boundary + the inferred default scope **into the `codebase_context_packet` only** — do **NOT** render it to the user (recon is silent). **Do not pause on this.** The packet drives `generate_considerations` to produce boundary-aware sub-problems against the repo's actual capability surface; the user's first real gate is the problem statement in Step 5, where they reshape scope if the default narrowing was wrong. NEVER continue as if the repo can implement the missing half; NEVER invent the missing systems. The block below is a **reference for what to capture in the packet**, not something to print.
696
-
697
- ```text
698
- Code recon
699
-
700
- Action needed
701
-
702
- This feature likely spans another repo or service.
703
- Add the backend/API context, or choose a narrower scope.
704
-
705
- Repo boundary:
706
- - This repo contains the checkout UI and guest checkout flow.
707
- - I found no backend account-creation endpoint, user/order linking
708
- mutation, email job, or migration layer.
709
- - So the full "join while booking" feature likely spans this repo plus
710
- an API/backend service.
711
-
712
- Can build here:
713
- - Checkout/thank-you page UI
714
- - Password capture or account-claim form
715
- - API client integration point
716
- - Mocked frontend tests
717
- - Empty/error/success states
718
-
719
- Needs outside context:
720
- - Endpoint that creates or claims the account
721
- - Contract for linking a guest order to a user
722
- - Auth/session behavior after claim
723
- - Email/verification behavior, if required
724
-
725
- Scoping inferred: contract-first (default for unsettled API)
726
-
727
- This repo can build: UI integration, API client surface, mocked tests
728
- This repo cannot build: account-creation endpoint, order-linking, email job
729
- Considerations will be scoped to what this repo can ship.
730
-
731
- Pulse: Reasoning Readiness ~30% · Context Debt 70% (repo boundary unresolved)
732
-
733
- Continuing to problem statement. You can reshape scope there in plain
734
- English (e.g. "frontend-only", "add the backend service contract",
735
- or paste API docs to widen the recon).
736
- ```
737
-
738
- Notes on the boundary-check shape:
739
- - **No pause.** Surface the boundary as compact info inside the recon digest, then proceed to `generate_considerations`. The user's first gate is the problem statement (Step 5) where they can reshape scope in plain English. Pausing here was load-bearing in the old SKILL, but it gated FTUE users behind a 1/2/3 menu before they'd seen any product output. The boundary information is preserved — both in user-facing recon (the "Scoping inferred:" block) and in the `codebase_context_packet` that feeds downstream MCP calls.
740
- - **"Scoping inferred:" not "How should I scope this?"** — the agent makes the default narrowing (contract-first when API unsettled; repo-side-only when the missing half is clearly out-of-tree) and names what it picked. The user corrects at Step 5 if it was wrong.
741
- - **"This repo can build:" + "This repo cannot build:"** are paired one-liners — they document the IN/OUT split so the inferred scoping is auditable. Keep them compact (one line each); the full lists live in `codebase_context_packet`.
742
- - **Default narrowing logic:** if the user's ask names a backend/API endpoint, choose **contract-first**. If the user's ask is clearly UI/UX-shaped or the missing systems are obviously out-of-tree (mobile app, separate billing service), choose **repo-side only**. If ambiguous, default to **contract-first** — it preserves more of the user's intent in the downstream artifacts than narrowing to repo-side does.
743
- - **The pulse line stays parenthetical** with a user-facing reason (`repo boundary unresolved`), per the Pulse tier labels rule in `references/cli-output-contract.md`.
744
- - **Internal classification (not user-facing):** track each candidate piece against the boundary as `in_repo_buildable`, `external_dependency_known`, `external_dependency_unknown`, `needs_additional_repo`, or `contract_first_candidate`. These shape how downstream scoring + build-brief generation handle the missing half. Stamp the inferred default scope as `inferred_scope` in the packet so `generate_considerations` / `generate_problem_statement` see it. None of these labels should appear in user-facing copy.
745
-
746
- ##### 3.2 — Recon is silent; surface nothing unless ambiguous
747
-
748
- **Recon runs silently.** Do NOT surface the recon digest, repo signals, constraints, or the `codebase_context_packet` to the user by default — recon is plumbing inside Scope. The packet feeds Step 4; the user sees nothing here.
749
-
750
- **The ONLY user-visible recon output is the explore-directions picker (§ 3.1), and ONLY when recon is genuinely ambiguous** — two+ materially different directions for the same ask. Then render **"What would you like to explore?"** and pause for the pick. Do NOT justify why the pick matters (no "wastes scope").
751
-
752
- For a crisp, single-direction ask: **render nothing** — go straight to sub-problem generation (Step 4) with the packet. The user's first gate is the problem frame (Step 5), where they reshape scope in plain English if the default was wrong.
753
-
754
- **Capability boundary detection does NOT pause and is NOT displayed.** When recon shows the feature spans systems not in this repo, fold the boundary + the inferred default scope into the `codebase_context_packet` (silent — see § 3.1 internal classification), pick the default scope per the "Default narrowing logic" rule, and proceed. The user reshapes scope at Step 5 if needed.
755
-
756
- If the user explicitly asks "what did you find?", you may show a tight digest then — otherwise stay silent.
757
-
758
- **Pulse (Step 3 done):** Emit a pulse line — repo grounding just moved meaningfully (sources collected, agent inspected files, possibly KG hits). Compute per `/ritual context-pulse` § Step CP3 and render compact unless this is the FIRST pulse of the build flow, in which case use full.
759
-
760
- ##### 3.3 — Compose augmented `raw_input`
761
-
762
- Compose the augmented `raw_input` for Step 4 from:
763
- - the user's original problem (verbatim, top)
764
- - the full `codebase_context_packet`, under `--- Codebase context packet ---`
765
- - any user correction or added constraint from code recon
766
-
767
- Do not pass unsynthesized `raw_recon_notes` as the primary planning input. Step 3 is the difference between generic considerations and considerations grounded in actual code, patterns, risks, and open questions. Keep `raw_recon_notes` internally for auditability; pass the packet downstream for planning.
768
-
769
- ##### 3.4 — Collect the `sources` array
770
-
771
- Collect the file paths you actually read and consider load-bearing for this problem — exactly as they appear in the repo (e.g. `"apps/checkout/views.py"`, not `"./apps/checkout/views.py"` or absolute paths). This list is passed alongside `raw_input` to `generate_considerations`, `generate_problem_statement`, `query_knowledge_graph`, context pulses, and `generate_build_brief` so the API can anchor priorContext consistently.
772
-
773
- Keep the list focused. 5–10 is the sweet spot; >20 dilutes the KG signal.
596
+ > **Relocated 2026-06-11 (context-at-create).** Recon no longer runs before sub-problem
597
+ > generation — it runs AFTER the user locks the problem frame, as **Step 5.7**, so the first
598
+ > product output (sub-problems + frame) lands seconds after the Job gate instead of waiting on
599
+ > repo reads. Step 4 generates sub-problems from the user's ask alone; grounding arrives at
600
+ > discovery via the `additional_context` persisted at create. Nothing to do here continue to
601
+ > Step 3.5.
774
602
 
775
603
  #### Step 3.5 — Stage knowledge sources (PRDs / tickets / transcripts / etc.)
776
604
 
777
- The codebase recon you just did handles the *code* grounding. Most real features ALSO have non-code context — PRDs, Jira/Linear tickets, design specs, meeting transcripts, Slack threads, customer-research notes — that get paraphrased into the problem statement and lose detail. Step 3.5 ingests those as first-class **knowledge sources** attached to the exploration BEFORE generating sub-problems, so the priorContext you'll see in Step 4 (`generate_considerations`) and downstream is grounded in what the user actually brought, not the paraphrase.
605
+ Code grounding happens silently after the frame locks (Step 5.7). Most real features ALSO have non-code context — PRDs, Jira/Linear tickets, design specs, meeting transcripts, Slack threads, customer-research notes — that get paraphrased into the problem statement and lose detail. Step 3.5 ingests those as first-class **knowledge sources** attached to the exploration BEFORE generating sub-problems, so the priorContext you'll see in Step 4 (`generate_considerations`) and downstream is grounded in what the user actually brought, not the paraphrase.
778
606
 
779
607
  ##### 3.5.1 — Reactive only — do NOT prompt for non-code context
780
608
 
@@ -858,54 +686,14 @@ If the user says "skip" / "none" / "later", proceed silently to Step 4. Do NOT p
858
686
 
859
687
  The user can always come back later with `/ritual context-pulse <exploration>` to see the current Reference Grounding score, OR drag refs in mid-flow (e.g. at Step 8 if the agentic run surfaces a question that a PRD would have answered).
860
688
 
861
- #### Step 3.9 — Classify the work item + pick the lead persona
862
-
863
- Before generating sub-problems, settle **what job this is** and **whose lens leads it** — both shape
864
- everything downstream, so they come first. **You** classify the job (you have the repo open — you're the
865
- best-informed classifier, and doing it here saves a backend LLM call); the server returns the lenses.
866
-
867
- 1. **Classify the request** into ONE development work-item slug, using the user's raw ask + your code
868
- recon:
689
+ #### Step 3.9 — Work item settled at the Job gate (no step here)
869
690
 
870
- ```text
871
- understand-codebase-area · design-technical-approach · create-implementation-plan ·
872
- build-frontend-feature · build-backend-service · integrate-api · create-docs-site ·
873
- refactor-code · debug-production-issue · improve-performance · add-tests · prepare-release
874
- ```
875
-
876
- (Use `build-feature` only when the ask is a generic build that none of the specific jobs fit.) Pick the
877
- single best match — e.g. "add OAuth to the dashboard" → `build-backend-service`; "the checkout page is
878
- slow" → `improve-performance`; "clean up the payments module" → `refactor-code`.
879
-
880
- 2. **Call `mcp__ritual__work_item`** with that `jtbd` (and `entry_use_case` if known). It returns
881
- `{ workItemLabel, deliverableTemplate, recommended, options: [{ persona, label, whenToChoose }] }` —
882
- deterministic, no LLM, already biased by the user's `ritual init` persona.
883
-
884
- 3. **Present the work item + lens options** as a `(label + description)` bottom-drawer choice picker
885
- (same shape as discovery picks, per `references/cli-output-contract.md`), recommended lens first and
886
- marked:
887
-
888
- ```text
889
- This looks like: Build backend service / API → Service Build Brief
890
- Who's leading it? (recommended: Backend Developer)
891
-
892
- 1. Backend Developer — Best when you care about API contracts, data, transactions, scaling. ← recommended
893
- 2. Developer — Best when you care about feasibility, implementation correctness, shippability.
894
- 3. Eng Lead — Best when you care about technical approach, risk, sequencing, review.
895
-
896
- Reply `use` to lead as Backend Developer, a number to switch, or name a lens.
897
- ```
898
-
899
- 4. **Default = the recommended lens.** An ambiguous reply (`use`/`ok`/`go`) accepts it. If the user says
900
- the *work item* is wrong ("no, this is a refactor"), re-classify and call `work_item` again. If they
901
- switch the *lens*, that's a change → run the change pre-flight (`references/change-preflight.md`) to
902
- confirm before adopting it.
903
-
904
- 5. **Remember the chosen `persona` slug** — you pass it through to `create_exploration` as `lead_persona`
905
- at Step 6. (It also carries into the generation prompts once persona-aware generation ships; for now
906
- it's persisted + surfaced.)
907
-
908
- Keep this light — one drawer, recommended pre-selected; most users accept. Don't belabour it.
691
+ > **Removed 2026-06-11 (JTBD-first entry).** Classification moved to the front of the flow — the
692
+ > Job gate at Step 0.7 (server-side `classify_work_item`, user-confirmed). The lead-persona PICKER
693
+ > that used to live here is gone with it: persona is no longer a user choice. The server resolves
694
+ > the job's full persona set (lead + contributors, weighted) and guarantees balanced representation
695
+ > in what it generates — discovery questions first. Nothing to render and nothing to ask here;
696
+ > continue to Step 4 with the `jtbd` confirmed at Step 0.7.
909
697
 
910
698
  #### Step 4 — Generate sub-problems
911
699
 
@@ -913,14 +701,12 @@ Keep this light — one drawer, recommended pre-selected; most users accept. Don
913
701
 
914
702
  Call `mcp__ritual__generate_considerations` with:
915
703
  - `workspace_id`
916
- - `raw_input` (the user's problem + the Step 3 `codebase_context_packet` + any reference context, concatenated as described above)
704
+ - `raw_input` the user's problem/ask, **verbatim** (plus any reference context the user spontaneously supplied). **Recon does NOT feed this call (2026-06-11, context-at-create):** sub-problems are deliberately generated from the ask alone so the first product output lands fast; repo grounding enters at Step 5.7 and reaches discovery via the persisted `additional_context`.
917
705
  - `template_id` — **OPTIONAL.** Per Step 2 (server-side template resolution), the agent does NOT pick a template_id. Omit this field unless the user explicitly passed `--template-id` on the CLI; the server resolves the right template from `user.persona` → `workspace.defaultTemplateId` → system default and uses the same resolution chain `create_exploration` will use at Step 6. Passing it explicitly only matters when overriding the default.
918
- - `sources` (the file path list from Step 3 step 7 file-path strings only, e.g. `["apps/checkout/views.py", ...]`)
706
+ - `sources` — **OMIT** (recon hasn't run yet; it happens at Step 5.7 after the frame locks).
919
707
 
920
708
  LLM call, ~5–10s. Returns 5–6 sub-problems — different framing axes the system should investigate. Track each one as `{ text, version: 1 }` in your working memory.
921
709
 
922
- The coding agent's packet is context, not authority. Do not pre-rank or collapse the generated sub-problems based only on the agent hypotheses. Let MCP/template/KG output determine the candidate considerations; use the packet to make them specific, evidenced, and grounded.
923
-
924
710
  **If the response includes `kg_context_used` with `implementationCount > 0`:** surface this to the user BEFORE presenting the considerations. It's the visible signal that prior shipped work shaped this draft.
925
711
 
926
712
  > Reading the codebase I overlapped with 3 prior Ritual explorations on these files:
@@ -938,7 +724,7 @@ If `implementationCount === 0`: don't mention the KG check (silent — would jus
938
724
 
939
725
  ```text
940
726
  Ritual build
941
- ● Scope ○ Discovery ○ Recommendations ○ Build brief ○ Implementation (Your agent)
727
+ ✓ Job ● Scope ○ Discovery ○ Recommendations ○ Build brief ○ Implementation (Your agent)
942
728
 
943
729
  Solving for these sub-problems
944
730
 
@@ -1048,11 +834,242 @@ When the user locks the frame, store the final text as `problem_statement` for S
1048
834
 
1049
835
  **Pulse (Step 5 done):** Emit a pulse — feature clarity just jumped. Compute per `/ritual context-pulse` § Step CP3. Render full if this crosses Raw ask → Under-specified, else compact. Translate raw tier labels into user-facing copy per `references/cli-output-contract.md` § Pulse tier labels — never expose `RAW_ASK` / `UNDER_SPECIFIED` / etc. directly.
1050
836
 
837
+ #### Step 5.7 — Ground the exploration (silent recon — runs AFTER the frame locks)
838
+
839
+ **Skip only if the user explicitly asks ("just generate, don't read the code") OR if you're operating outside a codebase context.**
840
+
841
+ **When this runs (relocated 2026-06-11, context-at-create):** AFTER the user locks the problem frame at Step 5 and BEFORE `create_exploration` at Step 6 — the natural "creating your exploration…" beat, so the user never waits on repo reads before seeing product output. Sub-problems (Step 4) were deliberately generated from the ask alone; THIS step is where grounding enters: the `codebase_context_packet` you build here is passed to `create_exploration` as `additional_context`, persisted on the exploration, and injected by the server into discovery-question generation (the questions surface the most important tradeoffs the context implies) and the build-brief fallback. The goal is not to show the user what you found; the goal is to ground downstream generation.
842
+
843
+ **Capability Boundary Check (load-bearing):** If recon detects a mismatch between the user's ask and what THIS repo can actually implement — typically because the feature spans systems (backend service, mobile app, billing provider, email worker, schema migrations) that aren't present in the current checkout — DO NOT invent the missing systems and DO NOT continue as if the repo is complete. Apply the boundary heads-up rule in § 5.7.1 below (one line, no pause) before creating the exploration. Frame the missing half as a normal architecture boundary, not a failure: *"This repo looks like the frontend side of a larger feature,"* not *"I could not find backend dependencies."* The user has not done anything wrong; the agent is asking how to scope the work.
844
+
845
+ Common boundary mismatches to detect:
846
+
847
+ - Full-stack feature ask + frontend-only repo (UI present, no API/service code)
848
+ - Mobile feature ask + no API client contract or backend
849
+ - Billing/payments feature + no payment service / subscription code
850
+ - Email/notification feature + no worker / job / email-provider integration
851
+ - Auth/session feature + no user mutation / session backend
852
+ - Data/analytics feature + no schema, migration, or storage layer
853
+
854
+ ##### 5.7.0 — Check for a pre-build context seed
855
+
856
+ Before doing fresh recon, check whether the user already seeded one via `/ritual context-pulse`. Glob for `CONTEXT-*.md` at the repo root.
857
+
858
+ If a `CONTEXT-<slug>.md` is found AND its `## The ask` section close-matches the current `raw_input`:
859
+
860
+ - **Use it to seed `codebase_context_packet`.** Parse the file's `## Candidate files` list — those become the seed for `sources[]`. Parse `## Prior KG context` as evidence inside the packet, not as final prioritization.
861
+ - **Skip fresh recon** unless the seed is stale or obviously incomplete. If you skip fresh recon, still normalize the seed into the packet structure below before calling MCP tools.
862
+ - **Surface a compact note**:
863
+ > Code recon
864
+ > Found `CONTEXT-<slug>.md` from `/ritual context-pulse`.
865
+ > Using {N} candidate files + {M} related prior exploration{s} as the recon base. Override with `recon: refresh`.
866
+ - Proceed directly to 5.7.2.
867
+
868
+ If no seed file is found, OR the seed's `## The ask` doesn't match the current `raw_input`, do fresh recon. For mismatch, mention the ignored seed in one line and do not delete it.
869
+
870
+ ##### 5.7.1 — Fresh recon
871
+
872
+ 1. **Read the README + top-level project structure.** Use `ls` / Glob to see top-level files. Identify the language, framework, key directories, and likely entry points.
873
+
874
+ 2. **Glob for relevance.** Derive patterns from the user's problem. Examples:
875
+ - User says "auth flow" → `**/auth/**`, `**/login*`, `**/user*`, `**/session*`
876
+ - User says "checkout" → `**/checkout/**`, `**/cart/**`, `**/order/**`, `**/payment*`
877
+ - User says "notifications" → `**/notif*`, `**/email/**`, `**/sms/**`, `**/push/**`
878
+ Cap at ~15 hits per pattern.
879
+
880
+ 3. **Skim 3–5 most-relevant files.** For each, read the first ~100 lines + scan for class/function names. Triangulate whether the behavior lives there or calls into another area.
881
+
882
+ 4. **Build three recon artifacts.**
883
+
884
+ A. `raw_recon_notes` — internal evidence only
885
+ - files read and why they were selected
886
+ - symbols/classes/functions inspected
887
+ - relevant comments, schema details, tests, migrations, and config
888
+ - KG hits, prior deferrals, and prior implementation references
889
+ - uncertain observations, false leads, and things not found
890
+ - do **not** show this by default and do **not** pass it as the main MCP planning input
891
+
892
+ B. `codebase_context_packet` — downstream planning input
893
+ - this is the synthesized artifact passed into `raw_input`, context pulses, and any MCP field named `recon_context`
894
+ - it helps MCP understand what the coding agent observed locally without deciding the final considerations itself
895
+ - separate factual observations from agent hypotheses
896
+ - include confidence levels for hypotheses
897
+ - use neutral labels like `agent_observed_scope_pressure` or `candidate_scope_pressure`, not `priority_considerations`
898
+ - never present the packet as authoritative; MCP/tooling decides final sub-problems, recommendations, and scope
899
+
900
+ C. `recon_digest` — **internal-only by default; NOT surfaced to the user.** Recon
901
+ is silent plumbing at the lock→create boundary: we do NOT dump repo signals /
902
+ constraints / a recon summary back to the user. Keep a compact digest in
903
+ working memory for your own use (and to render ONLY if the user explicitly
904
+ asks "what did you find?"), but by default show nothing — the only render is
905
+ the one-line boundary heads-up (§ 5.7.1) on a hard capability mismatch. The
906
+ `codebase_context_packet` feeds `create_exploration.additional_context`
907
+ silently.
908
+ - keep it tight if ever shown: key surfaces, hard constraints, scope corrections
909
+ - never list every file read; never quote non-load-bearing comments
910
+
911
+ `codebase_context_packet` structure:
912
+
913
+ ```markdown
914
+ --- Codebase context packet ---
915
+
916
+ ## User intent
917
+ {verbatim or lightly normalized ask}
918
+
919
+ ## Observed relevant surfaces
920
+ - `path` — observed role in this feature or constraint
921
+ - `path` — observed extension point, lifecycle, model, or integration seam
922
+
923
+ ## Evidence
924
+ - `path:symbol` — factual observation from code
925
+ - Prior Ritual signal: {exploration / PR / RB / deferral}, if available
926
+ - Missing or not-found evidence when it corrects the user's framing
927
+
928
+ ## Agent hypotheses
929
+ - This may make {candidate area} important because {evidence-backed reason}
930
+ Confidence: low / medium / high
931
+
932
+ ## Agent-observed scope pressure
933
+ - Privacy / lifecycle / migration / compatibility / async / ownership / testing risk
934
+ - Only include pressure that intersects with the feature intent and code evidence
935
+
936
+ ## Scope corrections
937
+ - The ask says X, but the code suggests Y
938
+ - Missing fields, renamed concepts, or assumptions the code contradicts
939
+
940
+ ## Open questions for discovery
941
+ - Questions the code cannot answer and the user/Ritual exploration should resolve
942
+ ```
943
+
944
+ Example `codebase_context_packet` excerpt:
945
+
946
+ ```markdown
947
+ ## Observed relevant surfaces
948
+ - `apps/conversions/abstract_models.py` — append-only conversion event model; lifecycle changes are modeled as follow-up rows.
949
+ - `apps/conversions/outbox.py` — async publish/retry surface; payload shape may affect erasure semantics.
950
+ - `apps/order/models.py` — raw guest email appears to live on the order side, not in conversion events.
951
+
952
+ ## Agent hypotheses
953
+ - Erasure semantics may need to cover both mutable raw PII and append-only pseudonymous digests.
954
+ Confidence: high; supported by model fields and schema comments.
955
+ - Outbox purge/replay behavior may be a scope pressure because retries can outlive the original conversion write.
956
+ Confidence: medium; verify worker idempotency before scoping implementation.
957
+
958
+ ## Scope corrections
959
+ - No `guest_session_id` column was found in the inspected conversion models; scope may need to use the actual guest attribution identifiers.
960
+ ```
961
+
962
+ Example `recon_digest` — single-path case (low ambiguity):
963
+
964
+ ```text
965
+ Code recon
966
+
967
+ Repo signals:
968
+ - `apps/conversions/abstract_models.py` — append-only conversion events.
969
+ - `apps/conversions/outbox.py` — async publish/retry lifecycle.
970
+ - `apps/order/models.py` — raw guest email surface.
971
+
972
+ Constraint:
973
+ - Erasure likely needs to handle mutable raw PII separately from pseudonymous conversion digests.
974
+
975
+ Scope correction:
976
+ - I did not find `guest_session_id` in the inspected models.
977
+
978
+ Pulse: Reasoning Readiness ~55% · Context Debt 45% · +12% (initial ask + code recon)
979
+
980
+ (lift bridge — renders right above the next action) Most of the gap left is
981
+ unsettled design decisions — that's exactly what the next step, discovery, resolves.
982
+
983
+ Next: attach PRDs/tickets if they should shape scope, or `proceed` to continue.
984
+ ```
985
+
986
+ **No explore-directions picker here (removed 2026-06-11).** The problem frame is already
987
+ locked — direction ambiguity was resolved by the user's own framing at Step 5. If recon
988
+ contradicts the locked frame outright, use the boundary heads-up rule below; never re-open
989
+ a picker.
990
+
991
+ Capability Boundary Check (feature spans systems not in this repo) — **internal/packet-only; NOT displayed:**
992
+
993
+ When the user's ask requires capabilities that aren't present in this repo (frontend-only repo asked for full-stack feature, mobile repo with no API contract, etc.), capture the boundary + the inferred default scope **into the `codebase_context_packet`**, then surface exactly ONE heads-up line (no pause — see below). The persisted packet drives discovery-question generation to probe the boundary; the locked frame stays as-is unless the user reacts. NEVER continue as if the repo can implement the missing half; NEVER invent the missing systems. The block below is a **reference for what to capture in the packet**, not something to print.
994
+
995
+ ```text
996
+ Code recon
997
+
998
+ Action needed
999
+
1000
+ This feature likely spans another repo or service.
1001
+ Add the backend/API context, or choose a narrower scope.
1002
+
1003
+ Repo boundary:
1004
+ - This repo contains the checkout UI and guest checkout flow.
1005
+ - I found no backend account-creation endpoint, user/order linking
1006
+ mutation, email job, or migration layer.
1007
+ - So the full "join while booking" feature likely spans this repo plus
1008
+ an API/backend service.
1009
+
1010
+ Can build here:
1011
+ - Checkout/thank-you page UI
1012
+ - Password capture or account-claim form
1013
+ - API client integration point
1014
+ - Mocked frontend tests
1015
+ - Empty/error/success states
1016
+
1017
+ Needs outside context:
1018
+ - Endpoint that creates or claims the account
1019
+ - Contract for linking a guest order to a user
1020
+ - Auth/session behavior after claim
1021
+ - Email/verification behavior, if required
1022
+
1023
+ Scoping inferred: contract-first (default for unsettled API)
1024
+
1025
+ This repo can build: UI integration, API client surface, mocked tests
1026
+ This repo cannot build: account-creation endpoint, order-linking, email job
1027
+ Considerations will be scoped to what this repo can ship.
1028
+
1029
+ Pulse: Reasoning Readiness ~30% · Context Debt 70% (repo boundary unresolved)
1030
+
1031
+ (lift bridge) The plan isn't grounded in your code yet — scoping to what this
1032
+ repo can actually ship is what the next step settles.
1033
+
1034
+ ```
1035
+
1036
+ With the frame already locked, the user-facing output of a boundary hit is ONE line, no pause:
1037
+
1038
+ > Heads-up: this repo covers {the in-repo half} — I've scoped the exploration's context
1039
+ > accordingly. Say `re-frame` to widen the scope, or just continue.
1040
+
1041
+ Notes on the boundary-check shape:
1042
+ - **No pause.** One heads-up line, then continue to Step 6. The boundary information is preserved in the `codebase_context_packet` (persisted as `additional_context`), where discovery-question generation reads it; the user can say `re-frame` to reopen the frame, and discovery itself will probe the boundary.
1043
+ - **"Scoping inferred:" not "How should I scope this?"** — the agent makes the default narrowing (contract-first when API unsettled; repo-side-only when the missing half is clearly out-of-tree) and names what it picked. The user corrects at Step 5 if it was wrong.
1044
+ - **"This repo can build:" + "This repo cannot build:"** are paired one-liners — they document the IN/OUT split so the inferred scoping is auditable. Keep them compact (one line each); the full lists live in `codebase_context_packet`.
1045
+ - **Default narrowing logic:** if the user's ask names a backend/API endpoint, choose **contract-first**. If the user's ask is clearly UI/UX-shaped or the missing systems are obviously out-of-tree (mobile app, separate billing service), choose **repo-side only**. If ambiguous, default to **contract-first** — it preserves more of the user's intent in the downstream artifacts than narrowing to repo-side does.
1046
+ - **The pulse line stays parenthetical** with a user-facing reason (`repo boundary unresolved`), per the Pulse tier labels rule in `references/cli-output-contract.md`.
1047
+ - **Internal classification (not user-facing):** track each candidate piece against the boundary as `in_repo_buildable`, `external_dependency_known`, `external_dependency_unknown`, `needs_additional_repo`, or `contract_first_candidate`. These shape how downstream scoring + build-brief generation handle the missing half. Stamp the inferred default scope as `inferred_scope` in the packet so discovery generation and the build brief see it. None of these labels should appear in user-facing copy.
1048
+
1049
+ ##### 5.7.2 — Recon is silent
1050
+
1051
+ **Recon runs silently.** Do NOT surface the recon digest, repo signals, constraints, or the `codebase_context_packet` to the user by default — recon is plumbing at the lock→create boundary. The packet feeds `create_exploration.additional_context` (Step 6); the user sees nothing here.
1052
+
1053
+ **There is no explore-directions picker (removed 2026-06-11)** — the frame the user just locked IS the direction. For a crisp single-direction repo read: render nothing and go straight to Step 6.
1054
+
1055
+ **Capability boundary detection does NOT pause.** When recon shows the feature spans systems not in this repo, fold the boundary + the inferred default scope into the `codebase_context_packet` (see § 5.7.1 internal classification), pick the default per the "Default narrowing logic" rule, surface the ONE-line heads-up from § 5.7.1, and proceed to Step 6.
1056
+
1057
+ If the user explicitly asks "what did you find?", you may show a tight digest then — otherwise stay silent.
1058
+
1059
+ **Pulse (recon done):** Emit a pulse line — repo grounding just moved meaningfully (sources collected, agent inspected files, possibly KG hits). Compute per `/ritual context-pulse` § Step CP3 and render compact unless this is the FIRST pulse of the build flow, in which case use full.
1060
+
1061
+ ##### 5.7.3 — Collect the `sources` array
1062
+
1063
+ Collect the file paths you actually read and consider load-bearing for this problem — exactly as they appear in the repo (e.g. `"apps/checkout/views.py"`, not `"./apps/checkout/views.py"` or absolute paths). This list is passed to `create_exploration` (Step 6) — persisted on the exploration so the answer engine, context pulses, and `generate_build_brief` anchor priorContext consistently without you re-passing it.
1064
+
1065
+ Keep the list focused. 5–10 is the sweet spot; >20 dilutes the KG signal.
1066
+
1067
+
1051
1068
  #### Step 6 — Create the exploration
1052
1069
 
1053
1070
  Generate a short name (≤60 chars) from the scope — typically the noun phrase, not the full HMW. E.g. "Reduce T2 customer churn in Q3" → name `T2 churn reduction (Q3)`.
1054
1071
 
1055
- Create the exploration immediately once the frame is locked the work item + lead persona were already settled at Step 3.9, so do not add a *further* confirmation here. If a name is ambiguous, **choose the shortest clear noun phrase and continue without pausing** — the name is editable later and shouldn't become a decision gate. Do NOT rely on "proceed on Enter" or empty input in agent chat (see `references/cli-output-contract.md` § Surface-aware continuation prompts).
1072
+ Run the silent Step 5.7 recon first, then create the exploration the job was already confirmed at the Step 0.7 Job gate, so do not add a *further* confirmation here. If a name is ambiguous, **choose the shortest clear noun phrase and continue without pausing** — the name is editable later and shouldn't become a decision gate. Do NOT rely on "proceed on Enter" or empty input in agent chat (see `references/cli-output-contract.md` § Surface-aware continuation prompts).
1056
1073
 
1057
1074
  User-visible before the call, if needed:
1058
1075
 
@@ -1066,21 +1083,23 @@ Call `mcp__ritual__create_exploration` with:
1066
1083
  - `problem_statement` (the scope from Step 5)
1067
1084
  - `template_id` — **OPTIONAL.** Per Step 2, omit by default. The server resolves from `explicit dto.templateId → workspace.defaultTemplateId → user.persona → first SYSTEM template`, then forks the resolved template into a per-exploration Template row atomically inside this same `create_exploration` request. Pass `template_id` ONLY when the user explicitly overrides on the CLI (`/ritual build --template-id <id>`). If you passed `template_id` to Step 4's `generate_considerations`, pass the same value here so the LLM prompt context the considerations were generated under matches the exploration's stamped template. Do NOT read `.ritual/config.json` or invent a `template_id` from persona — the server does the resolution.
1068
1085
  - `agentic: false` — **do NOT** pass `agentic: true`. We want explicit per-step control so the user gets to pick discovery questions in Step 7. Auto-agentic skips that.
1069
- - `jtbd` — **REQUIRED for `/ritual build`.** The work-item slug you classified at **Step 3.9** (e.g. `'build-backend-service'`, `'refactor-code'`, or `'build-feature'` for a generic build). Tags the exploration's job-to-be-done so the workflow surfaces the build-brief code-plan implement PR deliverable phase across every surface (the Spark panel, etc.), not the generic produce-deliverable flow. Omit only if this is a non-build exploration (defaults to `produce-deliverable`).
1070
- - `lead_persona` — the lens slug the user chose at **Step 3.9** (e.g. `'backend-developer'`). Pass the chosen `persona` from `work_item`. Omit only if Step 3.9 was skipped — the server then resolves the jtbd's canonical lens. Unknown slugs are ignored server-side.
1086
+ - `additional_context` — the full `codebase_context_packet` from Step 5.7 (omit only if recon was skipped). Persisted on the exploration; the server injects it into discovery-question generation as evidence (the questions cover the important tradeoffs it implies) and uses it as the build-brief recon fallback so it survives `/ritual resume`.
1087
+ - `sources` — the file-path list from Step 5.7.3.
1088
+ - `jtbd` — **REQUIRED for `/ritual build`.** The slug the user CONFIRMED at the **Step 0.7 Job gate** (e.g. `'build-backend-service'`, `'refactor-code'`). Tags the exploration's job-to-be-done so the workflow surfaces the build-brief → code-plan → implement → PR deliverable phase across every surface (the Spark panel, etc.), not the generic produce-deliverable flow. Omit only if this is a non-build exploration (defaults to `produce-deliverable`).
1089
+ - `lead_persona` — **OMIT (2026-06-11, JTBD-first entry).** Persona is no longer a user pick: the server resolves the job's canonical lead and owns balanced persona REPRESENTATION across the job's full persona set (lead + contributors, weighted) in generation. Do not call `work_item` to pick a lens and do not pass this field.
1071
1090
 
1072
1091
  Store `exploration_id`. Move the progress header from Scope to Discovery:
1073
1092
 
1074
1093
  ```text
1075
1094
  Ritual build
1076
- ✓ Scope ● Discovery ○ Recommendations ○ Build brief ○ Implementation (Your agent)
1095
+ Job ✓ Scope ● Discovery ○ Recommendations ○ Build brief ○ Implementation (Your agent)
1077
1096
 
1078
1097
  Exploration created.
1079
1098
 
1080
1099
  Next: generate discovery questions to resolve the implementation trade-offs.
1081
1100
  ```
1082
1101
 
1083
- ##### 6.1 — Promote the pre-build seed (if one was consumed in Step 3.0)
1102
+ ##### 6.1 — Promote the pre-build seed (if one was consumed in Step 5.7.0)
1084
1103
 
1085
1104
  If Step 3.0 consumed a `CONTEXT-<slug>.md` seed file, promote it into the exploration's artifact trail now that an exploration id exists. Move + rename the file from `CONTEXT-<slug>.md` to `.ritual/exploration-notes/<exploration-id>.md` using the Bash tool:
1086
1105
 
@@ -1162,21 +1181,21 @@ Longest phase because generation is async + the user picks per-Area. (Internally
1162
1181
  1. Call `mcp__ritual__suggest_discovery_questions(exploration_id)` (Step 7.1) — no user input needed; just kick it off.
1163
1182
  2. Poll `mcp__ritual__get_discovery_state(exploration_id)` until `ready: true` (Step 7.2).
1164
1183
  3. Render the **Area rail + Area 1's questions together** and walk Area-by-Area per § 7.3.1 (the rail orients; a rail with NO questions under it — a bare index — is the failure mode).
1165
- 4. `[USER PAUSE]` — the user picks questions across Areas (**floor: 6 to run; aim for 15–20; no cap**), or types `accept shortlist`.
1184
+ 4. `[USER PAUSE]` — the suggested-12 landing (§ 7.3.1): the user replies `proceed` (commit the 12), `expert` (walk + adjust; floor 6 to run, aim 15–20, no cap), or `pause`.
1166
1185
  5. Commit all picked Areas in ONE `mcp__ritual__accept_discovery_questions_batch` call (Step 7.4) — never one parallel call per Area.
1167
1186
  6. Optionally capture anti-goals (Step 7.5), then proceed to Step 8 and render the *"Reply `run` to continue"* CTA.
1168
1187
 
1169
1188
  **Picking is a deliberate step-through, not a bulk action (load-bearing):** the user going Area by Area and choosing the questions that matter IS the value of discovery — that per-question judgment shapes the whole downstream chain. So **nudge the user to step through and pick**; don't lead with bulk shortcuts.
1170
1189
  - **Nudge to step through.** Walk the user Area-by-Area (drop into Area 1, `next`/`prev`) and invite deliberate picks per Area, with `show more` to expand an Area. The framing is "which of these should we dig into?", not "want all of them?".
1171
1190
  - **Floor (HARD): at least 6 questions** across any Areas — below this, do NOT commit or proceed (tell them how many more to pick and keep them in the picker). There is NO "skip discovery" path — the agentic run needs a real question set to develop answers against. **Good coverage (SOFT): 15–20 questions** — nudge toward it on the Summary, but never block once ≥6. **No upper cap** — picking many (or all) is a legitimate explicit choice, never a default or fallback. (Uncovered scope is handled downstream when recommendations + requirements are generated and audited, so a thin set is the failure mode to prevent.)
1172
- - **The default is the shortlist, never "all."** For a user who doesn't want to step through every Area, **`accept shortlist` (the 6–10 highest-leverage questions)** is the convenience default. An ambiguous reply (`proceed`, `go`, `ok`) at this gate means **accept the shortlist** — never silently accept everything.
1191
+ - **The default is the suggested 12 on screen, never "all."** The landing shows exactly what `proceed` commits. An ambiguous reply (`proceed`, `go`, `ok`) at this gate means **accept the suggested 12 the user is looking at** — never silently accept everything.
1173
1192
  - **Taking all IS allowed — but only as an explicit user choice, never the default or a fallback.** If the user genuinely says "take all" / "all of them", honor it and commit them; that's a legitimate choice, not an error. Just never *offer* "I'll take all" as the default, and never auto-fall-back to it. (Worth mentioning once, not as a gate: every accepted question is answered individually in the agentic run, so accepting all of them across every Area means many more questions to answer and a much longer run — but it's the user's call.)
1174
1193
 
1175
1194
  **Forbidden behaviors:**
1176
1195
 
1177
1196
  - Calling `start_agentic_run` before at least 6 discovery picks have been committed for this exploration (via `accept_discovery_questions_batch`, or `accept_discovery_questions`). There is no skip-discovery exception.
1178
1197
  - Silently auto-picking all generated questions and proceeding to Step 8 — observed in agent output 2026-05-15 as "the engineering-mode default is to run, which skips the per-question picker." There is no such default; the picker is mandatory.
1179
- - **Offering "or I'll default to taking all of them" (or any accept-all fallback), then committing the full set on an ambiguous reply** — observed 2026-06-05 (a `proceed` at this gate → `accept_discovery_questions_batch` with all 68 questions → a ~25-min run the user never chose). Accept-all is a legitimate choice **only when the user explicitly asks for it** — it is NEVER the default you offer, and NEVER the fallback. The default you offer + fall back to is always **`accept shortlist`** (6–10). An ambiguous reply (`proceed`/`go`/`ok`) at the pick gate means **accept the shortlist**, not the full set. Lead by nudging the user to step through Areas and pick deliberately.
1198
+ - **Offering "or I'll default to taking all of them" (or any accept-all fallback), then committing the full set on an ambiguous reply** — observed 2026-06-05 (a `proceed` at this gate → `accept_discovery_questions_batch` with all 68 questions → a ~25-min run the user never chose). Accept-all is a legitimate choice **only when the user explicitly asks for it** — it is NEVER the default you offer, and NEVER the fallback. The default you offer + fall back to is always **the suggested 12 rendered on the landing**. An ambiguous reply (`proceed`/`go`/`ok`) at the pick gate means **accept those 12**, not the full set structurally safe because the 12 are on screen in full.
1180
1199
  - Rendering "Next: run discovery through recommendations / Reply `run` to continue" anywhere in the chat before Step 7.4 has completed.
1181
1200
 
1182
1201
  The picker is **not** a UI suggestion — it's the load-bearing decision gate where the user expresses what to investigate. Skipping it converts the agentic run into an automated "answer everything" pass and erases the user's judgment.
@@ -1187,7 +1206,7 @@ Call `mcp__ritual__suggest_discovery_questions(exploration_id)`. Returns immedia
1187
1206
 
1188
1207
  ```text
1189
1208
  Ritual build
1190
- ✓ Scope ● Discovery ○ Recommendations ○ Build brief ○ Implementation (Your agent)
1209
+ Job ✓ Scope ● Discovery ○ Recommendations ○ Build brief ○ Implementation (Your agent)
1191
1210
 
1192
1211
  Generating discovery questions for each area…
1193
1212
  ```
@@ -1201,11 +1220,11 @@ Loop:
1201
1220
 
1202
1221
  Don't poll faster than every 10 seconds (matches the Spark UI's 10s discovery cadence). Follow the global polling rule above: single `Bash sleep 10` per iteration and a one-line update every ~2 polls (~20s). Polling heartbeats are exempt from the Build rail rule per `references/cli-output-contract.md` § Build progress anchor — does NOT apply to.
1203
1222
 
1204
- ##### 7.3 — Matter-walk picker (Area rail + selected Area's questions → walk with `next`/`prev` → Summary)
1223
+ ##### 7.3 — Question picking: the suggested-12 landing (default) + the expert walk (on request)
1205
1224
 
1206
1225
  The state contains `matters[]`, each with `id`, `name`, and `questions[]`. Internally these are `matter`s; user-facing copy ALWAYS calls them **Areas**.
1207
1226
 
1208
- This MIRRORS the Spark `/discover` picker exactly: Spark shows a **tab bar of all Areas with one tab selected AND that tab's questions already rendered below it**. The CLI does the same in text every render shows a compact **Area rail** (all Areas, the current one marked, with running picked counts) **and, directly beneath it, the current Area's questions**. The user picks questions, then moves between Areas with `next`/`prev`, and finally lands on a **Summary** grouped by Area before committing. Seeing each Area's questions and choosing deliberately IS the value of discovery.
1227
+ **Landing-first (2026-06-12).** The default render is NOT the Area walk it is the **suggested-12 landing**: Ritual's 12 suggested questions across all Areas, listed IN FULL (never truncated), grouped by Area, pre-selected. One word (`proceed`) commits them; `expert` opens the Area-by-Area walk with the 12 already selected (toggle to adjust). The walk MIRRORS the Spark `/discover` picker (Area rail + current Area's questions + Summary before commit) and remains the place to push toward the 15–20 good-coverage range it's just opt-in now instead of mandatory.
1209
1228
 
1210
1229
  The two failure modes this contract prevents:
1211
1230
  - **A bare Area index** — the rail (or a "pick an Area" menu) with **no questions under it**. The rail without its current Area's questions is exactly the removed model; always render the questions inline. (This is the failure d3 caught on 2026-06-07: the agent rendered the Area list alone.)
@@ -1213,14 +1232,14 @@ The two failure modes this contract prevents:
1213
1232
 
1214
1233
  **Turn boundaries (load-bearing — this is a multi-turn walk, not a one-shot render).** Render the rail + **exactly ONE Area's questions per turn**. After rendering, **STOP and end your turn** — wait for the user's reply (`numbers` / `next` / `prev` / `skip` / `done`). Each of `next` / `prev` / `done` produces the **next render in a NEW turn**, never appended to the current message. You already hold every Area's questions from `get_discovery_state` — that is NOT license to render the whole walk or multiple Areas' questions in a single message. The rail lists Area *names + counts* (cheap orientation); only the current Area's *questions* render. One Area → STOP → reply → next Area. The Summary (§ 7.3.3) is likewise its own turn.
1215
1234
 
1216
- ###### 7.3.0 — Compute per-Area recommendations + the global shortlist (internal, not user-facing)
1235
+ ###### 7.3.0 — Compute the suggested 12 + per-Area recommendations (internal, not user-facing)
1217
1236
 
1218
- Three things surface, **none auto-applied**:
1219
- - **(a) The Area rail** — every Area's name + its running picked count. Cheap orientation (names + counts, NOT their questions), shown above the current Area's questions from the very first render. This is the legitimate, always-visible "tab bar" it is NOT the forbidden bare index, *because the current Area's questions always render beneath it*.
1220
- - **(b) The per-Area ★ recommended set** (3–4 questions) — computed for the Area you are currently showing.
1221
- - **(c) The global shortlist** (610 across all Areas) — computed only when the user types `accept shortlist`.
1237
+ Three things are computed up front, **none auto-committed**:
1238
+ - **(a) The suggested 12** — 12 questions TOTAL across all Areas, the landing's content. Selection rubric (a rule, not vibes): start from the server's ranked/recommended flags; guarantee at least one question from every Area that contains a genuinely hard question; fill the rest by leverage, biased toward questions that probe **tradeoffs, constraints, and the scope-pressure/boundary items** the exploration's additional context surfaced. If fewer than 12 questions clear the bar, suggest fewer (floor 6) — never pad to hit the number.
1239
+ - **(b) The Area rail** (expert mode) — every Area's name + its running picked count, shown above the current Area's questions.
1240
+ - **(c) The per-Area ★ recommended set** (34 questions, expert mode) — computed for the Area currently showing.
1222
1241
 
1223
- The user always picks; nothing is auto-committed.
1242
+ The user always confirms; nothing is committed without their reply.
1224
1243
 
1225
1244
  **Per-Area recommended set** (the ★ set, for the Area currently shown):
1226
1245
 
@@ -1229,30 +1248,58 @@ The user always picks; nothing is auto-committed.
1229
1248
  - Area has **4–7 questions**: top 3 are recommended.
1230
1249
  - Area has **8+ questions**: top 4 are recommended.
1231
1250
 
1232
- **Global shortlist** (what `accept shortlist` acceptsavailable from any Area or the Summary):
1251
+ **Legacy token:** `accept shortlist` (the old 6–10 power path) is retired as a displayed option the suggested 12 IS the landing now. If a user types it anywhere, treat it as the landing's `proceed` (commit the suggested 12) and note in one line that the landing already covers it.
1252
+
1253
+ ###### 7.3.1 — First render: the suggested-12 landing (the default)
1254
+
1255
+ Render ALL 12 suggested questions IN FULL, grouped by Area — never truncate, elide, or "(… N more)" this list; the whole point is that the user reads exactly what one word will commit. Full phase rail on this message (we just entered Discovery).
1256
+
1257
+ ```text
1258
+ Ritual build
1259
+ ✓ Job ✓ Scope ● Discovery ○ Recommendations ○ {Deliverable} ○ Implementation (Your agent)
1260
+
1261
+ Discovery questions ready — {M} generated across {N} areas.
1262
+
1263
+ These 12 questions target where this problem is hardest — the tradeoffs,
1264
+ constraints, and unknowns that decide the design. When you proceed, Ritual
1265
+ dispatches its research agents to answer them against this codebase and your
1266
+ sources; those answers become the spine of the {Deliverable}.
1233
1267
 
1234
- - Pick **6–10 questions TOTAL across all Areas**, biased toward questions most likely to change recommendations.
1235
- - Preserve Area diversity by default — at least one question from each Area where the per-Area recommended set was non-empty, unless the scope is clearly concentrated (e.g. one Area dominates the recon evidence).
1236
- - Cap at 10 even when the per-Area recommended sets sum to more. The point of the shortlist is to give the user a clean "the highest-signal triage set across the whole space" — picking 24–32 questions because 8 Areas each have 3–4 recommended brings back the "no triage signal" problem under a new name.
1237
- - If the per-Area recommended sets sum to ≤10, the shortlist IS just the union (no further trimming).
1268
+ {Area name 1}
1269
+ 1. {question, full text, wrapped readably}
1270
+ 2. {question}
1238
1271
 
1239
- Neither set is auto-applied. The user still picks per Area, or uses `accept shortlist` as a power path that bypasses the area-by-area drill.
1272
+ {Area name 2}
1273
+ ✓ 3. {question}
1274
+ ✓ 4. {question}
1240
1275
 
1241
- ###### 7.3.1 First render: Area rail + Area 1's questions (the walk begins)
1276
+ {…every suggested question, grouped by Area, all 12 visible…}
1277
+
1278
+ Next: reply `proceed` to run discovery with these 12 (commits the set;
1279
+ the run confirmation follows) · `expert` to review all {M} questions and
1280
+ adjust the selection · `pause` to stop here.
1281
+ ```
1242
1282
 
1243
- Open ON Area 1 with the **rail above and Area 1's questions below it** — never the rail alone. The rail lists every Area (current one marked, picked count per Area); the questions are Area 1's ★ recommended set. Full phase rail on this first message (we just entered Discovery); subsequent Area messages use the in-phase chip.
1283
+ Branch on reply:
1284
+ - **`proceed`** (or an ambiguous `ok`/`go`): commit exactly the 12 on screen via § 7.4's single batch call (grouped per Area), then continue to § 7.5 → Step 8. The ambiguous-reply rule is now structurally safe: what gets accepted is exactly what the user is looking at.
1285
+ - **`expert`**: enter the Area walk below with the suggested 12 **pre-selected** (`picked so far: 12`, ✓ on each suggested row). Numbers TOGGLE in expert mode — typing a selected question's number unselects it.
1286
+ - **`pause`**: stop here; nothing committed.
1287
+
1288
+ ###### 7.3.1b — Expert mode: the Area walk (entered via `expert`)
1289
+
1290
+ Open ON Area 1 with the **rail above and Area 1's questions below it** — never the rail alone. The rail lists every Area (current one marked, picked count per Area); the questions are Area 1's ★ recommended set, with ✓ already on rows that are in the suggested 12. Subsequent Area messages use the in-phase chip. The 15–20 soft nudge lives here: the user arrives with 12 — the walk is where they push toward broader coverage (floor 6 HARD if they unselect).
1244
1291
 
1245
1292
  ```text
1246
1293
  Ritual build
1247
- ✓ Scope ● Discovery ○ Recommendations ○ Build brief ○ Implementation (Your agent)
1294
+ Job ✓ Scope ● Discovery ○ Recommendations ○ Build brief ○ Implementation (Your agent)
1248
1295
 
1249
- Question picking · Area 1 of {N} · {Area name} picked so far: 0
1296
+ Question picking · Area 1 of {N} · {Area name} picked so far: 12
1250
1297
 
1251
1298
  Areas ● {Area name 1} ○ {Area name 2} ○ {Area name 3} ○ {Area name 4} ○ {Area name 5}
1252
1299
  ● current · ✓N after a name = picked in that Area · move with `next` / `prev`
1253
1300
 
1254
- Ritual generated questions across {N} areas for {M} locked sub-problems.
1255
- I'll walk you through each — aim for 15–20 total (6 minimum to run, no cap).
1301
+ Expert mode the suggested 12 are pre-selected (✓). Numbers toggle;
1302
+ aim for 15–20 total (6 minimum to run, no cap).
1256
1303
 
1257
1304
  Showing the {k} most likely to change the plan ({total} in this Area):
1258
1305
 
@@ -1261,19 +1308,21 @@ Showing the {k} most likely to change the plan ({total} in this Area):
1261
1308
  3. {recommended question 3, wrapped readably}
1262
1309
 
1263
1310
  pick numbers (e.g. `1,3`) · `suggested` (these ★) · `add <your question>` · `show more` ({total−k} more)
1264
- walk `next` · `prev` · `skip` · `done` (≥6) · `accept shortlist`
1311
+ walk `next` · `prev` · `skip` · `done` (≥6)
1265
1312
  ```
1266
1313
 
1267
1314
  **Single numbering stream — number the QUESTIONS only; the rail Areas are NOT numbered.** The 2026-05-15 failure numbered Areas AND question previews in one view, so a reply of `5` was ambiguous. Here the rail uses `●`/`○` markers + names (no numbers) and you move it with `next`/`prev` — the only numbered list is the current Area's questions, so a bare number is never ambiguous. Wrap long question text readably. The `picked so far` count, the rail markers/`✓N` counts, and the `Area i of N` breadcrumb all update on every render of the walk.
1268
1315
 
1269
- **Why `accept shortlist`, not `accept recommended`:** "recommended" is ambiguous (per-Area? global?). The picker uses **shortlist** for the global 6–10 power path (§ 7.3.0), keeping a clean vocabulary split: **discovery = `accept shortlist`** (questions), **recommendation review = `proceed`** (Step 9). The ★ marks the per-Area recommended set; `suggested` picks it.
1316
+ **Vocabulary split:** the landing's `proceed` commits the suggested 12 (questions); Step 9's `proceed` continues recommendation review. Inside expert mode, the ★ marks the per-Area recommended set and `suggested` picks it; `accept shortlist`/`accept recommended` are legacy aliases for the landing's `proceed`.
1317
+
1318
+ ###### 7.3.2 — Within an Area (pick → auto-advance)
1270
1319
 
1271
- ###### 7.3.2Within an Area (pick, then move)
1320
+ **Picking IS progress (2026-06-12).** A pick reply (`numbers` or `suggested`) ADVANCES to the next Area never re-render the same Area and wait for `next` (that costs two replies per Area and stalls the walk; observed live: users picked, then were shown the same Area again). `prev` is the way back if they want to adjust; `next` still exists for moving WITHOUT picking.
1272
1321
 
1273
1322
  **Every render in this section keeps the `Areas …` rail line on top** (current Area marked, `✓N` counts updated) — it's omitted from the snippets below only for brevity. Never re-render an Area's questions without the rail above them.
1274
1323
 
1275
- - **`numbers`** (e.g. `1,3` or `1,2,5`): add those questions to the picked set, re-render this Area (rail + questions) with `✓` on the picked rows + the updated `picked so far`, then prompt `next` / `prev` / `done`.
1276
- - **`suggested`**: pick this Area's recommended (★) set in one go.
1324
+ - **`numbers`** (e.g. `1,3` or `1,2,5`): TOGGLE those questions unselected ones join the picked set, already-✓ ones (including pre-selected suggested-12 rows) leave it. Then **ADVANCE: render the NEXT Area** (rail + its questions), opening with a one-line ack of the Area just left — `{Area name}: {n} picked ✓` and the updated `picked so far`. On the LAST Area, a pick advances to the Summary (§ 7.3.3). Do NOT re-render the same Area after a pick; `prev` returns if the user wants to adjust.
1325
+ - **`suggested`**: pick this Area's recommended (★) set in one go — then advance exactly like `numbers`.
1277
1326
  - **`show more`**: reveal the rest, grouped Recommended / More (lazy per-Area expansion — never a global dump):
1278
1327
 
1279
1328
  ```text
@@ -1315,9 +1364,11 @@ Question picking · Summary {T} picked
1315
1364
  ...
1316
1365
 
1317
1366
  {if T < 15} A good set is usually 15–20 — you've picked {T}. Reply an Area
1318
- number to add more, `more` to suggest new Areas, or `commit`.
1319
- {if T ≥ 15} Reply `commit` to run discovery on these {T} questions, an Area
1320
- number to adjust, `more` for new Areas, or `pause` to stop.
1367
+ number to add more, `more` to suggest new Areas, or `commit`
1368
+ (run discovery recommendations).
1369
+ {if T 15} Reply `commit` to run discovery on these {T} questions
1370
+ (answers → recommendations, ~a few minutes), an Area number
1371
+ to adjust, `more` for new Areas, or `pause` to stop.
1321
1372
  ```
1322
1373
 
1323
1374
  **The minimum model — floor 6 HARD, good 15–20 SOFT, no cap:**
@@ -1333,7 +1384,7 @@ Question picking · Summary {T} picked
1333
1384
 
1334
1385
  ###### 7.3.4 — Power paths (available from any Area or the Summary)
1335
1386
 
1336
- - **`accept shortlist`**: accept the 6–10-question global shortlist computed in § 7.3.0 — the fast path for a user who doesn't want to walk every Area. Group those by their owning Area, commit them in ONE `accept_discovery_questions_batch` call (§ 7.4 one entry per Area), and proceed to Step 7.5. Intentionally NOT "top 3–4 of every Area" (which would scale to 24–32 picks and reintroduce the "no triage signal" problem). The shortlist is the quick minimal set; the walk is how a user reaches the 15–20 good-coverage range.
1387
+ - **`accept shortlist`** (legacy alias): treat as the landing's `proceed` commit the suggested 12 via ONE `accept_discovery_questions_batch` call (§ 7.4, one entry per Area) and continue to Step 7.5. The walk is how a user reaches the 15–20 good-coverage range; the suggested 12 is the quick high-signal set.
1337
1388
  - **`show all`**: accepted as a reply but NOT advertised on the CTA line. Expands every Area's questions into one long list. Use only when the user explicitly asks — the per-Area `show more` is the default.
1338
1389
  - **`done`**: jump to the Summary from any Area to review + `commit`.
1339
1390
  - **Below the floor** (fewer than 6 picked on `commit`): do NOT proceed. Reply with how many more are needed and return to the Summary — e.g. *"Pick at least 6 to run discovery — you've picked 3, choose 3 more."* There is no skip path. (6–14 is allowed with the soft nudge; ≥15 is the good-coverage target — see § 7.3.3.)
@@ -1348,7 +1399,7 @@ Question picking · Summary {T} picked
1348
1399
  ###### Legacy alias notes
1349
1400
 
1350
1401
  - `suggest` (legacy per-Area shortcut) is now spelled **`suggested`** — picks the current Area's recommended (★) set. If a user types `suggest` inside an Area, treat it the same.
1351
- - `accept recommended` (legacy global shortcut): at the DISCOVERY stage, if a user types this, treat it as `accept shortlist` and surface a one-line note that the discovery-stage token is `accept shortlist` (questions). (At Step 9 the recommendation-review CTA is `proceed`, not `accept recommended`.)
1402
+ - `accept recommended` (legacy global shortcut): treat as the landing's `proceed` (commit the suggested 12) with a one-line note. (At Step 9 the recommendation-review CTA is `proceed` for continuing review.)
1352
1403
  - `all` (legacy fourth option) remains removed (see § Removed below).
1353
1404
 
1354
1405
  ###### Removed: `all` (the old fourth option)
@@ -1440,14 +1491,14 @@ For `engineering`, `delivery`, and `operations` roles, show:
1440
1491
 
1441
1492
  ```text
1442
1493
  Ritual build
1443
- ✓ Scope ● Discovery ○ Recommendations ○ Build brief ○ Implementation (Your agent)
1494
+ Job ✓ Scope ● Discovery ○ Recommendations ○ Build brief ○ Implementation (Your agent)
1444
1495
 
1445
1496
  Run discovery
1446
1497
 
1447
1498
  Ritual will source answers for the picked questions, then generate
1448
1499
  recommendations. This usually takes a few minutes.
1449
1500
 
1450
- Reply `run` to continue.
1501
+ Reply `run` to source answers → generate recommendations.
1451
1502
  Reply `pause` to stop here.
1452
1503
  ```
1453
1504
 
@@ -1461,7 +1512,7 @@ For `product`, `design`, or explicitly PRD-style flows, answer review may be use
1461
1512
 
1462
1513
  ```text
1463
1514
  Ritual build
1464
- ✓ Scope ● Discovery ○ Recommendations ○ Build brief ○ Implementation (Your agent)
1515
+ Job ✓ Scope ● Discovery ○ Recommendations ○ Build brief ○ Implementation (Your agent)
1465
1516
 
1466
1517
  Run discovery
1467
1518
 
@@ -1538,8 +1589,16 @@ Then print progress only when `progress_pct` or `current_step` changes, or every
1538
1589
 
1539
1590
  > Agentic run: {progress_pct}% — {current_step}
1540
1591
 
1541
- When `status` is `COMPLETED`: continue to Step 9.
1542
- When `status` is `COMPLETED_WITH_ERRORS`: tell the user, but proceed partial recommendations may still be useful.
1592
+ When `status` is `COMPLETED`: **wait for recommendation ROWS before Step 9.** The run reporting
1593
+ `completed` does NOT mean recommendations exist yetrec generation is a separate queued job that
1594
+ lands MINUTES later (the 2026-06-05 premature-accept incident class; observed again live 2026-06-12:
1595
+ an agent rendered "0 recommendations across 0 categories" and vacuously proceeded). Poll
1596
+ `mcp__ritual__get_recommendations_preview(exploration_id)` on the standard cadence (`Bash sleep 20`
1597
+ per iteration, "still generating recommendations…" line every ~3 polls) until the preview returns
1598
+ **at least one recommendation**, then continue to Step 9. NEVER render the Step 9 landing — and
1599
+ never call `accept_recommendations` — from a zero-rec read. If 10+ minutes pass with zero rows,
1600
+ surface that as an anomaly instead of proceeding.
1601
+ When `status` is `COMPLETED_WITH_ERRORS`: tell the user, then apply the same wait-for-rows rule — partial recommendations may still be useful.
1543
1602
  When `status` is `FAILED`: surface the error message, ask if they want to retry (`start_agentic_run` again with same exploration_id) or stop.
1544
1603
  When `status` is `PAUSED_FOR_REVIEW` (product/design answer-review mode only): continue to Step 8.5.
1545
1604
 
@@ -1557,7 +1616,7 @@ Landing (first question, full rail + intro):
1557
1616
 
1558
1617
  ```text
1559
1618
  Ritual build
1560
- ✓ Scope ● Discovery ○ Recommendations ○ Build brief ○ Implementation (Your agent)
1619
+ Job ✓ Scope ● Discovery ○ Recommendations ○ Build brief ○ Implementation (Your agent)
1561
1620
 
1562
1621
  Run Agentic Exploration
1563
1622
 
@@ -1631,11 +1690,11 @@ For each question's loop:
1631
1690
 
1632
1691
  <!-- lite:keep-start -->
1633
1692
 
1634
- #### Step 9 — Review recommendations (category walk)
1693
+ #### Step 9 — Review recommendations (landing + drill)
1635
1694
 
1636
1695
  This is the most-read screen in the build flow, and — as of 2026-06-08 — a **non-blocking review**. Recommendations are **auto-accepted at generation** (created `approved`); the artifacts that depend on them (requirements, the deliverable doc, and — for developer-function jobs — the build brief) are **already being generated** the moment rec-gen completes. Step 9 is the user's chance to **read and refine** the set, not an accept-or-reject gate. Replying `proceed` records that a human reviewed it (stamps `reviewedAt` / `reviewedBy`) and continues to the build brief — it never blocks, and there is **no reject path here**.
1637
1696
 
1638
- The review is a **category walk**, mirroring Spark's recommendation drawer: the user moves through one **category** at a time, sees each recommendation in that category in full (title, description, and the "Why this" reasoning), and can refine any one of them in place before continuing.
1697
+ **Landing-first (2026-06-12) — the same shape as the suggested-12 discovery landing:** the default render is ONE screen showing EVERY recommendation grouped by category title + one truncated description line each — so the user sees the whole set at a glance and can `proceed` immediately. Depth is opt-in: `drill R{N}` opens a single recommendation in full (complete description, "Why this", pass criteria); `edit R{N}` refines one in place. The goal is the shortest honest path to the {Deliverable}: scan, optionally drill or refine, proceed.
1639
1698
 
1640
1699
  **Data source.** Use `mcp__ritual__get_recommendations(exploration_id)` (the raw array) — the walk shows full per-rec content, so you need the fields a titles-only preview omits:
1641
1700
 
@@ -1653,64 +1712,66 @@ Assign stable `R1..RN` IDs **globally across all categories** in page order (NOT
1653
1712
 
1654
1713
  **Action set — load-bearing (exactly three, no freelancing):**
1655
1714
 
1656
- - `edit R{N} <your change>` refine one recommendation: regenerate its title / description / reasoning from a plain-language ask, **preview** the change, then **apply** it. (§ 9.2)
1657
- - `next`move to the next category. (§ 9.3)
1658
- - `proceed` — mark the set reviewed and continue to the build brief, from any category. (§ 9.3)
1715
+ - `drill R{N}`open ONE recommendation in full: complete description, "Why this", pass criteria. (§ 9.1b)
1716
+ - `edit R{N} <your change>` refine one recommendation: regenerate its title / description / reasoning from a plain-language ask, **preview** the change, then **apply** it. Works from the landing or from a drill view. (§ 9.2)
1717
+ - `proceed` — mark the set reviewed and generate the {Deliverable} (the job's deliverable — render its rail name, e.g. `Service Build Brief`). Available everywhere. (§ 9.3)
1659
1718
 
1660
- **Do NOT freelance other actions.** There is **no `drop` / reject** (recs are auto-accepted and the review is non-blocking — a rec the user dislikes is refined with `edit`, or simply left as-is), **no `comment`**, and **no separate `drill` / `detail`** (full content is already on screen). Reject none of these by inventing compounds either (`dedupe`, `accept the survivors`, `merge similar`, `open the admin UI` — all forbidden). If the rec set itself looks wrong (e.g. apparent duplicates), surface the anomaly explicitly and consult `mcp__ritual__get_recommendation_attestation` (`duplicateTitlePrefixes`) — don't paper over it with an invented action.
1719
+ **Do NOT freelance other actions.** There is **no `drop` / reject** (recs are auto-accepted and the review is non-blocking — a rec the user dislikes is refined with `edit`, or simply left as-is), **no `comment`**, and **no `next`** (there is no pagination — the landing already shows everything). Reject invented compounds too (`dedupe`, `accept the survivors`, `merge similar`, `open the admin UI` — all forbidden). If the rec set itself looks wrong (e.g. apparent duplicates), surface the anomaly explicitly and consult `mcp__ritual__get_recommendation_attestation` (`duplicateTitlePrefixes`) — don't paper over it with an invented action.
1661
1720
 
1662
- ##### 9.1 — The walk: one category per turn
1721
+ ##### 9.1 — The landing: every recommendation, one screen
1663
1722
 
1664
- **[USER PAUSE]** Render the **current category only**, then stop and wait for the user's reply. One category per turnnever dump every category's full content in a single message (that's the wall-of-text failure mode; the walk is what keeps a 13-rec set readable). The first render opens with the full rail; subsequent categories use the in-phase chip.
1723
+ **Zero-rec guard (load-bearing):** if `get_recommendations` returns an empty array, do NOT render this landing and do NOT call `accept_recommendations`you arrived before rec generation finished. Go back to the Step 8 wait-for-rows polling. A "0 recommendations across 0 categories" render is always a bug, never a state to present.
1665
1724
 
1666
- First category (rail shown):
1725
+ **[USER PAUSE]** Render ALL recommendations grouped by category — every title visible, each with ONE truncated description line. This is a scan surface, not a reading surface: titles carry the signal; `drill` carries the depth. Never omit a category or a rec ("… N more" is forbidden — the user must see exactly what `proceed` reviews); never expand to multi-line descriptions here (that's the wall-of-text failure mode the landing exists to prevent).
1667
1726
 
1668
1727
  ```text
1669
1728
  Ritual build
1670
- ✓ Scope ✓ Discovery ● Recommendations ○ Build brief ○ Implementation (Your agent)
1729
+ Job ✓ Scope ✓ Discovery ● Recommendations ○ {Deliverable} ○ Implementation (Your agent)
1671
1730
 
1672
1731
  Scope:
1673
1732
  {one-line compressed scope — ~80-120 chars; truncate at a clause boundary, no ellipsis}
1674
1733
 
1675
- {N} recommendations across {K} categories. They're accepted by default
1676
- review and refine any, or proceed anytime.
1734
+ {N} recommendations across {K} categories. Scan the set, drill into any,
1735
+ or proceed to your {Deliverable}.
1677
1736
 
1678
- Category 1/{K} — {category name}
1737
+ {Category name 1}
1738
+ R1 {title} — {description truncated ~90 chars at a word boundary…}
1739
+ R2 {title} — {truncated description…}
1679
1740
 
1680
- R1 {title}
1681
- {contentthe description, wrapped at terminal width, 1-3 lines}
1682
- Why this: {one-line Problem→Discovery→Tradeoff distillation, plain prose}
1741
+ {Category name 2}
1742
+ R3 {title}{truncated description}
1743
+ R4 {title} {truncated description…}
1683
1744
 
1684
- R2 {title}
1685
- {description}
1686
- Why this: {...}
1745
+ {…every category, every rec, one line each…}
1687
1746
 
1688
- Pulse: Reasoning Readiness ~88% · Context Debt 12% (implementation-ready)
1747
+ Pulse: Reasoning Readiness ~88% · Context Debt 12% · +16% (recommendations ready)
1689
1748
 
1690
- Reply edit R{N} <your change> · next (Category 2/{K}) · proceed (build brief)
1749
+ A few assumptions are still unverified — the build brief is what locks them down.
1750
+ Reply drill R{N} (read one in full) · edit R{N} <your change> · proceed (generate the {Deliverable})
1691
1751
  ```
1692
1752
 
1693
- Subsequent categories (in-phase chip, no full rail):
1753
+ Notes:
1754
+
1755
+ - **Global `R{N}` IDs** in page order across categories. The R-ID is how the user references a rec in `drill R{N}` / `edit R{N}`; never restart numbering per category.
1756
+ - **Title + one truncated description line per rec** — truncate at a word boundary with `…`. No "Why this" at the landing; that lives in the drill view.
1757
+ - **`proceed` is the primary CTA** — the user never has to drill anything to continue.
1758
+
1759
+ ##### 9.1b — `drill R{N}`: one recommendation in full
1760
+
1761
+ **[USER PAUSE]** Render the single recommendation completely, then wait:
1694
1762
 
1695
1763
  ```text
1696
- Recommendations · Category 2/{K} — {category name}
1764
+ Recommendations · R{N} — {title}
1697
1765
 
1698
- R3 {title}
1699
- {description}
1700
- Why this: {...}
1766
+ {content — the full description, wrapped at terminal width}
1701
1767
 
1702
- ...
1768
+ Why this: {one-line Problem→Discovery→Tradeoff distillation, plain prose}
1769
+ Pass: {acceptance_criteria, one line each — omit the block if empty}
1703
1770
 
1704
- Reply edit R{N} <your change> · next (Category 3/{K}) · proceed (build brief)
1771
+ Reply edit R{N} <your change> · back (all recommendations) · proceed (generate the {Deliverable})
1705
1772
  ```
1706
1773
 
1707
- Notes:
1708
-
1709
- - **Global `R{N}` IDs** continue across categories (Category 2 starts at R3 if Category 1 held R1–R2). The R-ID is how the user references a rec in `edit R{N}`; never restart numbering per category.
1710
- - **`content` (the description) and "Why this" ARE shown** at the walk — unlike the old titles-only landing. That's deliberate: the user reads and refines in place. Keep each rec to title + 1–3 description lines + one "Why this" line. If a rec's `acceptance_criteria` are short and genuinely useful you may add a single `Pass: {...}` line, but don't pad — the walk must stay scannable.
1711
- - **One blank line between recs**; indent rec bodies under their `R{N}` so the eye lands on the title first.
1712
- - **`proceed` is the primary CTA** and is offered on every category — the user never has to walk all categories to continue.
1713
- - **On the last category**, the action line drops `next`; if the user types `next` there, reply: "That was the last category — reply `proceed` to continue, or `edit R{N}` to refine one."
1774
+ `back` re-renders the landing (§ 9.1, unchanged). Drilling is read-only — nothing advances or persists.
1714
1775
 
1715
1776
  ##### 9.2 — `edit R{N} <ask>`: preview, then apply
1716
1777
 
@@ -1743,19 +1804,18 @@ Reply apply (save this revision) · discard (keep the original)
1743
1804
  - Render ONLY the `diff` fields that are present. Map `field: "title"` → `Title`, `"description"` → `Description`, `"chain.<idx>"` → `Why this — step {idx+1}`.
1744
1805
  - If the proposal's `diff` is empty (the LLM found no meaningful change), say so plainly and return to the category view unchanged — don't fabricate a diff.
1745
1806
 
1746
- 4. On `apply`: call `mcp__ritual__apply_recommendation_proposal({ recommendation_id, proposal_id })`. It persists a new version, replays the reasoning chain, and returns the applied proposal. Re-fetch the rec (`get_recommendations`) and **re-render the current category with R{N} updated in place**, then continue the walk (action line `edit R{N} <change> · next · proceed`).
1747
- On `discard`: return to the current category unchanged — nothing was persisted.
1807
+ 4. On `apply`: call `mcp__ritual__apply_recommendation_proposal({ recommendation_id, proposal_id })`. It persists a new version, replays the reasoning chain, and returns the applied proposal. Re-fetch the rec (`get_recommendations`) and **re-render the view the user came from** the landing 9.1) or the drill view (§ 9.1b) with R{N} updated in place.
1808
+ On `discard`: return to that view unchanged — nothing was persisted.
1748
1809
 
1749
- Editing is non-destructive and does not advance the flow — the user can `edit` several recs, across categories, before `proceed`.
1810
+ Editing is non-destructive and does not advance the flow — the user can `edit` several recs before `proceed`.
1750
1811
 
1751
- ##### 9.3 — `next` and `proceed`
1812
+ ##### 9.3 — `proceed`
1752
1813
 
1753
- - **`next`** → render the next category per § 9.1 (in-phase chip). After the last category, prompt `proceed`.
1754
- - **`proceed`** (from any category) → call `mcp__ritual__accept_recommendations({ exploration_id })`. Under the non-blocking model this **records the human review** (stamps `reviewedAt` / `reviewedBy`) and advances; it is NOT a draft→approved promotion (the recs are already `approved`). The downstream artifacts were queued at rec-gen time, so this returns fast. Then show the completion rail and continue to Step 9.5:
1814
+ - **`proceed`** (from the landing or any drill view) call `mcp__ritual__accept_recommendations({ exploration_id })`. Under the non-blocking model this **records the human review** (stamps `reviewedAt` / `reviewedBy`) and advances; it is NOT a draft→approved promotion (the recs are already `approved`). The downstream artifacts were queued at rec-gen time, so this returns fast. Then show the completion rail and continue to Step 9.5:
1755
1815
 
1756
1816
  ```text
1757
1817
  Ritual build
1758
- ✓ Scope ✓ Discovery ✓ Recommendations ● Build brief ○ Implementation (Your agent)
1818
+ Job ✓ Scope ✓ Discovery ✓ Recommendations ● Build brief ○ Implementation (Your agent)
1759
1819
 
1760
1820
  Reviewed {N} recommendations.
1761
1821
 
@@ -1835,7 +1895,7 @@ Run a constraint-survival audit on the typed Recommendation + Requirement substr
1835
1895
  ```text
1836
1896
  Recommendations + requirements are ready. Optional constraint-survival audit available.
1837
1897
 
1838
- Reply `audit` to run, or `proceed` to skip to brief generation.
1898
+ Reply `audit` to run, or `proceed` to skip the audit and generate the {Deliverable}.
1839
1899
  ```
1840
1900
 
1841
1901
  **For `--audited` mode:**
@@ -1846,7 +1906,7 @@ Recommendations + requirements are ready.
1846
1906
  Recommended: run constraint-survival audit before brief generation.
1847
1907
  This checks whether anti-goals survived into the recs + requirements.
1848
1908
 
1849
- Reply `audit`, `proceed`, or `always audit for this build`.
1909
+ Reply `audit` to run, `proceed` to skip and generate the {Deliverable}, or `always audit for this build`.
1850
1910
  ```
1851
1911
 
1852
1912
  **For `--audit=strict` mode:** SKIP the prompt; jump directly to Step 9.6.2 (run the audit).
@@ -2163,7 +2223,7 @@ End Step 10 with a single recommended action plus a cheap escape hatch — never
2163
2223
 
2164
2224
  ```text
2165
2225
  Ritual build
2166
- ✓ Scope ✓ Discovery ✓ Recommendations ● Build brief ○ Implementation (Your agent)
2226
+ Job ✓ Scope ✓ Discovery ✓ Recommendations ● Build brief ○ Implementation (Your agent)
2167
2227
 
2168
2228
  Build brief ready
2169
2229
 
@@ -2293,7 +2353,7 @@ The Implementation phase landing — full rail (the rail moves to Implementation
2293
2353
 
2294
2354
  ```text
2295
2355
  Ritual build
2296
- ✓ Scope ✓ Discovery ✓ Recommendations ✓ Build brief ● Implementation (Your agent)
2356
+ Job ✓ Scope ✓ Discovery ✓ Recommendations ✓ Build brief ● Implementation (Your agent)
2297
2357
 
2298
2358
  Implementation (Your agent)
2299
2359
 
@@ -2619,7 +2679,7 @@ Before asking for permission, frame the call in language the user can act on. `s
2619
2679
 
2620
2680
  ```text
2621
2681
  Ritual build
2622
- ✓ Scope ✓ Discovery ✓ Recommendations ✓ Build brief ● Implementation (Your agent)
2682
+ Job ✓ Scope ✓ Discovery ✓ Recommendations ✓ Build brief ● Implementation (Your agent)
2623
2683
 
2624
2684
  Log implementation
2625
2685
 
@@ -2662,7 +2722,7 @@ When sync_implementation succeeds, the response includes:
2662
2722
 
2663
2723
  ```text
2664
2724
  Ritual build
2665
- ✓ Scope ✓ Discovery ✓ Recommendations ✓ Build brief ✓ Implementation (Your agent)
2725
+ Job ✓ Scope ✓ Discovery ✓ Recommendations ✓ Build brief ✓ Implementation (Your agent)
2666
2726
 
2667
2727
  ✓ Logged implementation for {exploration name}
2668
2728
 
@@ -2697,7 +2757,7 @@ User-visible (full rail — sync failure is a top-level state):
2697
2757
 
2698
2758
  ```text
2699
2759
  Ritual build
2700
- ✓ Scope ✓ Discovery ✓ Recommendations ✓ Build brief ● Implementation (Your agent)
2760
+ Job ✓ Scope ✓ Discovery ✓ Recommendations ✓ Build brief ● Implementation (Your agent)
2701
2761
 
2702
2762
  Sync failed (recoverable)
2703
2763
 
@@ -2735,7 +2795,7 @@ If stale, surface to the user with the full rail (top-level decision gate):
2735
2795
 
2736
2796
  ```text
2737
2797
  Ritual build
2738
- ✓ Scope ✓ Discovery ✓ Recommendations ✓ Build brief ● Implementation (Your agent)
2798
+ Job ✓ Scope ✓ Discovery ✓ Recommendations ✓ Build brief ● Implementation (Your agent)
2739
2799
 
2740
2800
  Pending sync is stale
2741
2801