@wemuda/launchrail 1.7.0 → 1.9.0

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 (70) hide show
  1. package/README.md +36 -20
  2. package/assets/agents-docs/domain.md +59 -0
  3. package/assets/agents-docs/issue-tracker-github.md +51 -0
  4. package/assets/agents-docs/issue-tracker-gitlab.md +52 -0
  5. package/assets/agents-docs/issue-tracker-linear.md +52 -0
  6. package/assets/agents-docs/issue-tracker-local.md +45 -0
  7. package/assets/ralph.permission-guard.py +90 -0
  8. package/assets/ralph.workflow.js +129 -30
  9. package/assets/skills/NOTICE.md +41 -0
  10. package/assets/skills/launchrail/launch/SKILL.md +67 -0
  11. package/assets/skills/launchrail/launch/workflow.md +77 -0
  12. package/assets/skills/launchrail/launch-browser-smoke/SKILL.md +49 -0
  13. package/assets/skills/launchrail/launch-code-review/SKILL.md +89 -0
  14. package/assets/skills/launchrail/launch-design-validation/SKILL.md +44 -0
  15. package/assets/skills/launchrail/launch-discovery/SKILL.md +33 -0
  16. package/assets/skills/launchrail/launch-grill/CONTEXT-FORMAT.md +62 -0
  17. package/assets/skills/launchrail/launch-grill/SKILL.md +48 -0
  18. package/assets/skills/launchrail/launch-grill/domain-modeling.md +45 -0
  19. package/assets/skills/launchrail/launch-implement/SKILL.md +49 -0
  20. package/assets/skills/launchrail/launch-project-alignment/SKILL.md +48 -0
  21. package/assets/skills/launchrail/launch-ralph/SKILL.md +115 -0
  22. package/assets/skills/launchrail/launch-ralph-implement/SKILL.md +17 -0
  23. package/assets/skills/launchrail/launch-research/SKILL.md +16 -0
  24. package/assets/skills/launchrail/launch-resolving-merge-conflicts/SKILL.md +15 -0
  25. package/assets/skills/launchrail/launch-spec/SKILL.md +77 -0
  26. package/assets/skills/launchrail/launch-tickets/SKILL.md +107 -0
  27. package/assets/skills/launchrail/launch-vision-creation/SKILL.md +60 -0
  28. package/assets/skills/launchrail/launch-wayfinder/SKILL.md +130 -0
  29. package/dist/commands/add.js +21 -4
  30. package/dist/commands/add.js.map +1 -1
  31. package/dist/commands/doctor.js +42 -32
  32. package/dist/commands/doctor.js.map +1 -1
  33. package/dist/commands/init.d.ts +3 -7
  34. package/dist/commands/init.js +62 -85
  35. package/dist/commands/init.js.map +1 -1
  36. package/dist/commands/sync.js +11 -0
  37. package/dist/commands/sync.js.map +1 -1
  38. package/dist/index.js +0 -5
  39. package/dist/index.js.map +1 -1
  40. package/dist/lib/agentsDocs.d.ts +4 -0
  41. package/dist/lib/agentsDocs.js +32 -0
  42. package/dist/lib/agentsDocs.js.map +1 -0
  43. package/dist/lib/claudeSettings.d.ts +74 -11
  44. package/dist/lib/claudeSettings.js +185 -17
  45. package/dist/lib/claudeSettings.js.map +1 -1
  46. package/dist/lib/detect.d.ts +0 -2
  47. package/dist/lib/detect.js +0 -1
  48. package/dist/lib/detect.js.map +1 -1
  49. package/dist/lib/manifest.d.ts +14 -1
  50. package/dist/lib/manifest.js +18 -1
  51. package/dist/lib/manifest.js.map +1 -1
  52. package/dist/lib/migrations.js +202 -1
  53. package/dist/lib/migrations.js.map +1 -1
  54. package/dist/lib/project.js +9 -1
  55. package/dist/lib/project.js.map +1 -1
  56. package/dist/lib/ralph.d.ts +16 -5
  57. package/dist/lib/ralph.js +32 -9
  58. package/dist/lib/ralph.js.map +1 -1
  59. package/dist/lib/seeds.js +4 -1
  60. package/dist/lib/seeds.js.map +1 -1
  61. package/dist/lib/skills.d.ts +12 -0
  62. package/dist/lib/skills.js +57 -0
  63. package/dist/lib/skills.js.map +1 -0
  64. package/dist/lib/upstream.d.ts +6 -6
  65. package/dist/lib/upstream.js +1 -1
  66. package/dist/lib/upstream.js.map +1 -1
  67. package/package.json +1 -1
  68. package/dist/lib/claudeCli.d.ts +0 -51
  69. package/dist/lib/claudeCli.js +0 -71
  70. package/dist/lib/claudeCli.js.map +0 -1
@@ -0,0 +1,16 @@
1
+ ---
2
+ name: launch-research
3
+ description: Investigate a question against high-trust primary sources and commit the findings as a Markdown file. Owns stage 5 (technical research, fed the grill's surviving constraints) and provides research depth wherever the rail needs facts gathered — docs, API surfaces, maintenance health, licenses — by a background agent while the session keeps working.
4
+ ---
5
+
6
+ <!-- Contains text derived from Matt Pocock's skills (https://github.com/mattpocock/skills), MIT — see ../NOTICE.md -->
7
+
8
+ Spin up a **background agent** to do the research, so you keep working while it reads.
9
+
10
+ Its job:
11
+
12
+ 1. Investigate the question against **primary sources** — official docs, source code, specs, first-party APIs — not a secondary write-up of them. Follow every claim back to the source that owns it.
13
+ 2. Write the findings to a single Markdown file, citing each claim's source.
14
+ 3. Commit it where the repo keeps such notes. On the rail that is `docs/research/` — stage-5 notes sit beside the grill constraints and the `discovery-*.md` landscape maps, and everything there is project-owned. Match a different convention only if the repo clearly has one, and say where the file landed.
15
+
16
+ When this runs as **stage 5**, its brief is the grill's surviving constraints: de-risk the decisions the grill made — verify the chosen option really does what the decision assumes — don't reopen them. When `launch-discovery` drives it, the brief is one divergent thread: real capabilities, maintenance and community health, license, and concrete integration cost on this stack.
@@ -0,0 +1,15 @@
1
+ ---
2
+ name: launch-resolving-merge-conflicts
3
+ description: Resolve merge conflicts without losing either side's behavior — the named protocol for parallel implementers landing against a moving base. Use when a merge or rebase reports conflicts, especially inside the Ralph loop.
4
+ ---
5
+
6
+ # Resolving merge conflicts
7
+
8
+ When parallel work lands against the same base, conflicts are ordinary work with a procedure — not failure. The one unforgivable resolution is the silent one that discards somebody's behavior.
9
+
10
+ 1. **Sync deliberately.** Fetch and merge the latest base into your branch (rebase only if it is the project's stated convention). Read the conflict list before touching anything.
11
+ 2. **Understand both sides.** For each conflicted file, find out what the other side's change was *for* — read its commit message, PR, or ticket if needed. You are merging intents, not text blocks.
12
+ 3. **Preserve both behaviors.** The resolved code must do what your change does *and* what theirs does. Taking "ours" or "theirs" wholesale is only correct when the two changes are genuinely the same fix.
13
+ 4. **Regenerate, don't hand-merge, generated files.** Lockfiles and other generated artifacts are re-created by their tool after resolving the source of truth — never merged line by line.
14
+ 5. **Prove it.** After resolving, run the verification gate (`npx @wemuda/launchrail verify`). A resolution that was never run is not a resolution.
15
+ 6. **Escalate ambiguity.** If both sides changed the same logic and any resolution you can see loses behavior, stop and report the conflict (which files, which intents collide) instead of guessing. In the Ralph loop that is the `conflict` outcome — a legitimate result, unlike a quiet wrong merge.
@@ -0,0 +1,77 @@
1
+ ---
2
+ name: launch-spec
3
+ description: Turn the current conversation into a spec committed under docs/specs/ — no interview, just synthesis of what has already been discussed and decided. Owns stage 7's synthesis half (launch-wayfinder owns the breakdown of work too big for one session).
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ <!-- Contains text derived from Matt Pocock's skills (https://github.com/mattpocock/skills), MIT — see ../NOTICE.md -->
8
+
9
+ This skill takes the current conversation context and codebase understanding and produces a spec. Do NOT interview the user — just synthesize what you already know: the vision, the grill's surviving constraints, the research notes, and the ADRs are the inputs; a conductor handing off this stage names them.
10
+
11
+ ## Process
12
+
13
+ 1. Explore the repo to understand the current state of the codebase, if you haven't already. Use the project's domain glossary vocabulary (`CONTEXT.md`) throughout the spec, and respect any ADRs in the area you're touching.
14
+
15
+ 2. Sketch out the seams at which you're going to test the feature. Existing seams should be preferred to new ones. Use the highest seam possible. If new seams are needed, propose them at the highest point you can. The fewer seams across the codebase, the better — the ideal number is one.
16
+
17
+ Check with the user that these seams match their expectations.
18
+
19
+ 3. Write the spec using the template below and **commit it under `docs/specs/`** (`<feature-slug>.md`) — the committed file is stage 7's artifact, and it is project-owned. If the project's tracker should carry a copy, publish it labeled **`spec`** — never `ready-for-agent`: that label marks implementable tickets, the implementation loop computes its frontier from it, and it cannot tell prose from work.
20
+
21
+ The spec then flows on: design validation (stage 8) revises it in place, and `launch-tickets` (stage 9) breaks it into tickets.
22
+
23
+ <spec-template>
24
+
25
+ ## Problem Statement
26
+
27
+ The problem that the user is facing, from the user's perspective.
28
+
29
+ ## Solution
30
+
31
+ The solution to the problem, from the user's perspective.
32
+
33
+ ## User Stories
34
+
35
+ A LONG, numbered list of user stories. Each user story should be in the format of:
36
+
37
+ 1. As an <actor>, I want a <feature>, so that <benefit>
38
+
39
+ <user-story-example>
40
+ 1. As a mobile bank customer, I want to see balance on my accounts, so that I can make better informed decisions about my spending
41
+ </user-story-example>
42
+
43
+ This list of user stories should be extremely extensive and cover all aspects of the feature.
44
+
45
+ ## Implementation Decisions
46
+
47
+ A list of implementation decisions that were made. This can include:
48
+
49
+ - The modules that will be built/modified
50
+ - The interfaces of those modules that will be modified
51
+ - Technical clarifications from the developer
52
+ - Architectural decisions
53
+ - Schema changes
54
+ - API contracts
55
+ - Specific interactions
56
+
57
+ Do NOT include specific file paths or code snippets. They may end up being outdated very quickly.
58
+
59
+ Exception: if a prototype produced a snippet that encodes a decision more precisely than prose can (state machine, reducer, schema, type shape), inline it within the relevant decision and note briefly that it came from a prototype. Trim to the decision-rich parts — not a working demo, just the important bits.
60
+
61
+ ## Testing Decisions
62
+
63
+ A list of testing decisions that were made. Include:
64
+
65
+ - A description of what makes a good test (only test external behavior, not implementation details)
66
+ - Which modules will be tested
67
+ - Prior art for the tests (i.e. similar types of tests in the codebase)
68
+
69
+ ## Out of Scope
70
+
71
+ A description of the things that are out of scope for this spec.
72
+
73
+ ## Further Notes
74
+
75
+ Any further notes about the feature.
76
+
77
+ </spec-template>
@@ -0,0 +1,107 @@
1
+ ---
2
+ name: launch-tickets
3
+ description: Break a validated spec, plan, or the current conversation into tracer-bullet tickets, each declaring its blocking edges, published to the configured tracker with the ready-for-agent label — the exact input contract the implementation loop's frontier is computed from. Owns stage 9.
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ <!-- Contains text derived from Matt Pocock's skills (https://github.com/mattpocock/skills), MIT — see ../NOTICE.md -->
8
+
9
+ # To tickets
10
+
11
+ Break a plan, spec, or conversation into a set of **tickets** — tracer-bullet vertical slices, each declaring the tickets that **block** it. The output is the implementation loop's input: open tickets wearing `ready-for-agent` with explicit `Blocked by: #n` edges are the frontier `/launch-implement` drives.
12
+
13
+ The issue tracker configuration lives in `docs/agents/issue-tracker.md`, seeded by `launchrail init` from the manifest — `npx @wemuda/launchrail sync` re-seeds it if it's missing.
14
+
15
+ ## Process
16
+
17
+ ### 1. Gather context
18
+
19
+ Work from whatever is already in the conversation context. If the user passes a reference (a spec path under `docs/specs/`, an issue number or URL) as an argument, fetch it and read its full body and comments. A spec that ran design validation carries a `## Design validation` section — the revised spec is the one to ticket.
20
+
21
+ ### 2. Explore the codebase (optional)
22
+
23
+ If you have not already explored the codebase, do so to understand the current state of the code. Ticket titles and descriptions should use the project's domain glossary vocabulary (`CONTEXT.md`), and respect ADRs in the area you're touching.
24
+
25
+ Look for opportunities to prefactor the code to make the implementation easier. "Make the change easy, then make the easy change."
26
+
27
+ ### 3. Draft vertical slices
28
+
29
+ Break the work into **tracer bullet** tickets.
30
+
31
+ <vertical-slice-rules>
32
+
33
+ - Each slice cuts a narrow but COMPLETE path through every layer (schema, API, UI, tests) — vertical, NOT a horizontal slice of one layer
34
+ - A completed slice is demoable or verifiable on its own
35
+ - Each slice is sized to fit in a single fresh context window
36
+ - Any prefactoring should be done first
37
+
38
+ </vertical-slice-rules>
39
+
40
+ Give each ticket its **blocking edges** — the other tickets that must complete before it can start. A ticket with no blockers can start immediately.
41
+
42
+ **Wide refactors are the exception to vertical slicing.** A **wide refactor** is one mechanical change — rename a column, retype a shared symbol — whose **blast radius** fans across the whole codebase, so a single edit breaks thousands of call sites at once and no vertical slice can land green. Don't force it into a tracer bullet; sequence it as **expand–contract**. First expand: add the new form beside the old so nothing breaks. Then migrate the call sites over in batches sized by blast radius (per package, per directory), each batch its own ticket blocked by the expand, keeping CI green batch to batch because the old form still exists. Finally contract: delete the old form once no caller remains, in a ticket blocked by every migrate batch. When even the batches can't stay green alone, keep the sequence but let them share an integration branch that all block a final integrate-and-verify ticket — green is promised only there.
43
+
44
+ ### 4. Quiz the user
45
+
46
+ Present the proposed breakdown as a numbered list. For each ticket, show:
47
+
48
+ - **Title**: short descriptive name
49
+ - **Blocked by**: which other tickets (if any) must complete first
50
+ - **What it delivers**: the end-to-end behaviour this ticket makes work
51
+
52
+ Ask the user:
53
+
54
+ - Does the granularity feel right? (too coarse / too fine)
55
+ - Are the blocking edges correct — does each ticket only depend on tickets that genuinely gate it?
56
+ - Should any tickets be merged or split further?
57
+
58
+ Iterate until the user approves the breakdown.
59
+
60
+ ### 5. Publish the tickets to the configured tracker
61
+
62
+ Publish the approved tickets. **How** depends on the tracker configured in `docs/agents/issue-tracker.md` — the tickets are the same either way, only the shape of the blocking edges changes:
63
+
64
+ - **Local files** → write one file per ticket under `.scratch/<feature-slug>/issues/<NN>-<slug>.md`, numbered from `01` in dependency order (blockers first). Each file's "Blocked by" lists the numbers/titles it depends on. Use the per-ticket file template below — one ticket per file, never a single combined file.
65
+ - **A real issue tracker (GitHub, GitLab, …)** → publish one issue per ticket in dependency order (blockers first) so each ticket's blocking edges can reference real identifiers. Use the platform's native blocking / sub-issue relationship where it has one; otherwise set each ticket's "Blocked by" to the blocking issues. Apply the **`ready-for-agent`** label unless instructed otherwise — the tickets are agent-grabbable by construction. Only tickets wear that label: a spec or research note published to the tracker takes a different label (e.g. `spec`), or the loop will dispatch the document as work.
66
+
67
+ Work the **frontier**: any ticket whose blockers are all done. For a purely linear chain that means top to bottom.
68
+
69
+ Do NOT close or modify any parent issue.
70
+
71
+ <local-ticket-template>
72
+
73
+ # <NN> — <Ticket title>
74
+
75
+ **What to build:** the end-to-end behaviour this ticket makes work, from the user's perspective — not a layer-by-layer implementation list.
76
+
77
+ **Blocked by:** the numbers/titles of the tickets that gate this one, or "None — can start immediately".
78
+
79
+ **Status:** ready-for-agent
80
+
81
+ - [ ] Acceptance criterion 1
82
+ - [ ] Acceptance criterion 2
83
+
84
+ </local-ticket-template>
85
+
86
+ <issue-template>
87
+
88
+ ## Parent
89
+
90
+ A reference to the parent issue on the tracker (if the source was an existing issue, otherwise omit this section).
91
+
92
+ ## What to build
93
+
94
+ The end-to-end behaviour this ticket makes work, from the user's perspective — not layer-by-layer implementation.
95
+
96
+ ## Acceptance criteria
97
+
98
+ - [ ] Criterion 1
99
+ - [ ] Criterion 2
100
+
101
+ ## Blocked by
102
+
103
+ - A reference to each blocking ticket, or "None — can start immediately".
104
+
105
+ </issue-template>
106
+
107
+ In either form, avoid specific file paths or code snippets — they go stale fast. Exception: if a prototype produced a snippet that encodes a decision more precisely than prose can (state machine, reducer, schema, type shape), inline it and note briefly that it came from a prototype. Trim to the decision-rich parts — not a working demo, just the important bits.
@@ -0,0 +1,60 @@
1
+ ---
2
+ name: launch-vision-creation
3
+ description: Turn a raw product idea into a committed docs/vision.md capturing product intent, target users, assumptions, non-goals, and success signals. Use when a project has no vision document yet, when the user describes a new product idea, or when they ask to write or revise the vision.
4
+ ---
5
+
6
+ # Vision creation
7
+
8
+ Produce `docs/vision.md`: a short, honest statement of what this product is, who it serves, and what it deliberately is not. It is the first artifact of the Launchrail loop and the input to design exploration, discovery research, and the complexity grill.
9
+
10
+ ## Ground rules
11
+
12
+ - `docs/vision.md` is **project-owned**: it belongs to the user and their repository. If it already exists, this run is a revision — read it first and change only what the user wants changed. Never regenerate it wholesale.
13
+ - Capture broad intent, not a feature list. The vision states the problem and the bet; screens, endpoints, and data models come later in the loop.
14
+ - Short beats complete. One to two pages. A vision nobody rereads is worthless.
15
+ - Every assumption must be explicit and falsifiable — the complexity grill stage exists to attack them, so write them down in attackable form.
16
+ - Non-goals carry as much weight as goals. A vision that excludes nothing decides nothing.
17
+
18
+ ## Process
19
+
20
+ 1. **Read what exists.** Check for `docs/vision.md`, a README, and any notes the user points at. Do not ask questions the repository already answers.
21
+ 2. **Interview the user** — briefly, a few questions at a time, in their language:
22
+ - What problem hurts, and for whom? How do those people cope today?
23
+ - Why this, why now — what is the bet that makes this worth building?
24
+ - Who is the first concrete user (a person or team you could name), as opposed to the eventual market?
25
+ - What is deliberately out of scope for the MVP?
26
+ - What observable signal would say the bet is working — and what would say it failed?
27
+ - Which assumption, if wrong, kills the product?
28
+ 3. **Draft** `docs/vision.md` using the template below. Use the user's words where they were precise; sharpen where they were vague, and say so.
29
+ 4. **Challenge the draft once.** Before presenting it, check: is any "goal" actually a feature? Is any assumption untestable as written? Is the non-goals section empty or evasive? Fix what you find.
30
+ 5. **Present and iterate** until the user approves.
31
+ 6. **Sync the agent contract.** If the seeded `AGENTS.md` still carries the TODO under `## Project purpose`, replace it with a one-paragraph distillation of the approved vision — what this is, who it serves, what it is not. Touch only that section: `AGENTS.md` belongs to the project, and the rest of it is not this skill's business.
32
+ 7. **Commit** `docs/vision.md` and the `AGENTS.md` update together (respect the project's commit conventions).
33
+ 8. **Hand off.** Point the user at the next stages of the loop: visual exploration in Claude Design to make the intent concrete, discovery research (`launch-discovery`) to map the real options for the vision's hard parts, then the complexity grill (`launch-grill`) to attack the assumptions just recorded. See [`workflow.md`](../launch/workflow.md) for the full stage order.
34
+
35
+ ## Template
36
+
37
+ ```markdown
38
+ # Vision — <product name>
39
+
40
+ ## Problem
41
+ Who hurts, how, and how they cope today.
42
+
43
+ ## Bet
44
+ The one-sentence wager this product makes, and why now.
45
+
46
+ ## First users
47
+ The concrete person or team this serves first — not the eventual market.
48
+
49
+ ## What the MVP must prove
50
+ The smallest outcome that validates the bet.
51
+
52
+ ## Assumptions
53
+ Numbered, falsifiable statements. Each one is an attack surface for the grill.
54
+
55
+ ## Non-goals
56
+ What this product deliberately does not do, and for how long that holds.
57
+
58
+ ## Success signals
59
+ Observable signals that the bet is working — and the signal that would call it failed.
60
+ ```
@@ -0,0 +1,130 @@
1
+ ---
2
+ name: launch-wayfinder
3
+ description: Plan a huge chunk of work — more than one agent session can hold — as a shared map of decision tickets on the project's issue tracker, and resolve them one at a time until the way to the destination is clear. Stage 7's breakdown half for large features; launch-spec synthesizes once the way is clear.
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ <!-- Contains text derived from Matt Pocock's skills (https://github.com/mattpocock/skills), MIT — see ../NOTICE.md -->
8
+
9
+ A loose idea has arrived — too big for one agent session, and wrapped in fog: the way from here to the **destination** isn't visible yet. Wayfinding is about finding that way, not charging at the destination. This skill charts the way as a **shared map** on the repo's issue tracker, then works its **decision tickets** — questions whose resolution is a decision, not slices of a build to execute — one at a time until the route is clear.
10
+
11
+ The destination varies per effort, and naming it is the first act of charting — it shapes every ticket. It might be a spec to hand off and iterate on, a decision to lock before planning starts, or a change made in place like a data-structure migration. The map is domain-agnostic — engineering work, course content, whatever fits the shape. On the rail, the usual destination is a spec: the map ends where `launch-spec` can synthesize what was decided into `docs/specs/`.
12
+
13
+ ## Plan, don't do
14
+
15
+ Wayfinder is **planning** by default: each ticket resolves a decision, and the map is done when the way is clear — nothing left to decide before someone goes and does the thing. The pull to just do the work is usually the signal you've reached the edge of the map and it's time to hand off. An effort can override this in its **Notes** — carrying execution into the map itself — but absent that, produce decisions, not deliverables.
16
+
17
+ ## Refer by name
18
+
19
+ Every map and ticket is an issue, so it has a **name** — its title. In everything the human reads — narration, the map's Decisions-so-far — refer to it by that name, never by a bare id, number, or slug. A wall of `#42, #43, #44` is illegible; names read at a glance. The id and URL don't vanish — a name wraps its link — but they ride _inside_ the name, never stand in for it.
20
+
21
+ ## The Map
22
+
23
+ The map is a single issue on this repo's issue tracker, labelled `wayfinder:map` — the canonical artifact. Its tickets are child issues of the map.
24
+
25
+ The map is an **index**, not a store. It lists the decisions made and points at the tickets that hold their detail; a decision lives in exactly one place — its ticket — so the map never restates it, only gists it and links.
26
+
27
+ **Where the map, its child tickets, blocking, and frontier queries physically live is tracker-specific.** The issue tracker configuration lives in `docs/agents/issue-tracker.md`, seeded by `launchrail init` from the manifest (`npx @wemuda/launchrail sync` re-seeds it if it's missing). Consult the tracker doc's "Wayfinding operations" section for how _this_ repo expresses them. If no tracker is configured, default to the local-markdown conventions (`.scratch/`).
28
+
29
+ ### The map body
30
+
31
+ The whole map at low resolution, loaded once per session. Open tickets are **not** listed — they are open child issues, found by query.
32
+
33
+ ```markdown
34
+ ## Destination
35
+
36
+ <what reaching the end of this map looks like — the spec, decision, or change this effort is finding its way to. One or two lines; every session orients to it before choosing a ticket.>
37
+
38
+ ## Notes
39
+
40
+ <domain; skills every session should consult; standing preferences for this effort>
41
+
42
+ ## Decisions so far
43
+
44
+ <!-- the index — one line per closed ticket: enough to judge relevance, then zoom the link for the detail the ticket holds -->
45
+
46
+ - [<closed ticket title>](link) — <one-line gist of the answer>
47
+
48
+ ## Not yet specified
49
+
50
+ <!-- see "Fog of war": in-scope fog you can't ticket yet; graduates as the frontier advances -->
51
+
52
+ ## Out of scope
53
+
54
+ <!-- see "Out of scope": work ruled beyond the destination; closed, never graduates -->
55
+ ```
56
+
57
+ ### Tickets
58
+
59
+ Each ticket is a **child issue** of the map; the tracker's issue id is its identity. Its body is the question, sized to one 100K token agent session:
60
+
61
+ ```markdown
62
+ ## Question
63
+
64
+ <the decision or investigation this ticket resolves>
65
+ ```
66
+
67
+ Each ticket carries a `wayfinder:<type>` label — one of `research`, `prototype`, `grilling`, `task` (see [Ticket Types](#ticket-types)).
68
+
69
+ A session **claims** a ticket by assigning it to the dev driving the map, **first**, before any work, so concurrent sessions skip it. That assignee _is_ the claim: an open, unassigned ticket is unclaimed.
70
+
71
+ Blocking uses the tracker's **native** dependency relationship — essential because it renders the frontier _visually_ in the tracker's own UI, so the human sees what's takeable without opening the map. Only a tracker that lacks native blocking falls back to a body convention. A ticket is **unblocked** when every ticket blocking it is closed; the **frontier** is the open, unblocked, unclaimed children — the edge of the known.
72
+
73
+ The answer isn't part of the body — it's recorded on resolution (see [Work through the map](#work-through-the-map)). Assets created while resolving a ticket are linked from the issue, not pasted in.
74
+
75
+ ## Ticket Types
76
+
77
+ Every ticket is either **HITL** — human in the loop, worked _with_ a human who speaks for themselves — or **AFK**, driven by the agent alone. A HITL ticket only resolves through that live exchange; the agent never stands in for the human's side of it (a grilling agent that answers its own questions has broken this).
78
+
79
+ - **Research** (AFK): Reading documentation, third-party APIs, or local resources like knowledge bases to surface a fact a decision waits on. Resolved by a `launch-research` **subagent**. Use when knowledge outside the current working directory is required.
80
+ - **Prototype** (HITL): Raise the fidelity of the discussion by making a cheap, rough, concrete artifact to react to — an outline, a rough take, a stub, or throwaway UI/logic code. Links the prototype as an asset. Use when "how should it look" or "how should it behave" is the key question.
81
+ - **Grilling** (HITL): Conversation. The default case. Always invoke the `launch-grill` skill — the ticket's resolution comment is the artifact, in place of the grill's usual `docs/research/` doc.
82
+ - **Task** (HITL or AFK): Manual work that must happen before a _decision_ can be made — nothing to decide, prototype, or research, but the discussion is blocked until it's done. Signing up for a service so its API can be judged, provisioning access, moving data so its shape can be seen. This is the one type that _does_ rather than decides — and it earns its place by unblocking a decision, not by delivering the destination. The agent drives it alone where it can (AFK); otherwise it hands the human a precise checklist (HITL). Resolved when the work is done; the answer records what was done and any resulting facts (credentials location, new URLs, row counts) later tickets depend on.
83
+
84
+ ## Fog of war
85
+
86
+ The map is _deliberately_ incomplete: don't chart what you can't yet see. Beyond the live tickets lies the **fog of war** — the dim view of decisions and investigations you can tell are coming but can't yet pin down, because they hang on questions still open. Resolving a ticket clears the fog ahead of it, graduating whatever's now specifiable into fresh tickets — one at a time, until the way to the destination is clear and no tickets remain.
87
+
88
+ The map's **Not yet specified** section is where that dim view is written down: the suspected question, the area to revisit later. It's the undiscovered frontier _toward_ the destination — everything here is in scope, just not sharp enough to ticket. Write as loosely or as fully as the view allows; it doubles as a signpost for collaborators reading where the effort is headed.
89
+
90
+ **Fog or ticket?** The test is whether you can state the question precisely now — _not_ whether you can answer it now.
91
+
92
+ - **Ticket when** the question is already sharp — even if it's blocked and you can't act on it yet.
93
+ - **Not yet specified when** you can't yet phrase it that sharply. Don't pre-slice the fog into ticket-sized pieces: it's coarser than a ticket, and one patch may graduate into several tickets, or none, once the frontier reaches it.
94
+
95
+ **Not yet specified** excludes what's already decided (Decisions so far), what's already a live ticket, and what's out of scope (the next section).
96
+
97
+ ## Out of scope
98
+
99
+ Fog only ever gathers _toward_ the destination. The destination fixes the scope, so work beyond it is **out of scope** — it isn't fog, and it doesn't belong in **Not yet specified**. It gets its own **Out of scope** section on the map: work you've consciously ruled out of _this_ effort. Scope, not sharpness, lands it here.
100
+
101
+ Out-of-scope work never graduates — the frontier stops at the destination — so it returns only if the destination is redrawn, and then as a fresh effort, not a resumption.
102
+
103
+ Ruling something out of scope is a scoping act, not a step on the route. When a ticket that already exists turns out to sit past the destination — mis-scoped in while charting, or exposed by a resolution — **close it** (a closed ticket is unambiguously off the frontier) and leave one line in the **Out of scope** section: the gist plus why it's out of scope, linking the closed ticket. It stays out of **Decisions so far**, which records the route actually walked — a scope boundary isn't a step on it.
104
+
105
+ ## Invocation
106
+
107
+ Two modes. Either way, **never resolve more than one ticket per session** — with the exception of research tickets.
108
+
109
+ ### Chart the map
110
+
111
+ User invokes with a loose idea.
112
+
113
+ 1. **Name the destination.** Run a `launch-grill` session to pin down what this map is finding its way to — the spec, decision, or change. The destination fixes the scope, so it's settled first.
114
+ 2. **Map the frontier.** Grill again, **breadth-first** this time: fan out across the whole space rather than deep on any one thread, surfacing the open decisions and the first steps takeable now. **If this surfaces no fog** — the way to the destination is already clear, the whole journey small enough for one session — you don't need a map. Stop and ask the user how they'd like to proceed.
115
+ 3. **Create the map** (label `wayfinder:map`): Destination and Notes filled in, Decisions-so-far empty, the fog sketched into **Not yet specified**.
116
+ 4. **Create the tickets you can specify now** as child issues of the map — then wire blocking edges in a **second pass** (issues need ids before they can reference each other). Wiring sorts them into the frontier and the blocked; everything you can't yet specify stays in the fog — the **Not yet specified** section.
117
+ 5. **Fire the research subagents.** For each `research` ticket you just created, spin up a `launch-research` subagent to resolve it in parallel, capturing its findings on a throwaway `research/<name>` branch with a context pointer from the ticket.
118
+ 6. Stop — charting is one session's work; it hand-resolves nothing.
119
+
120
+ ### Work through the map
121
+
122
+ User invokes with a map (URL or number). A ticket is **optional** — without one, you pick the next decision, not the user.
123
+
124
+ 1. Load the **map** — the low-res view, not every ticket body.
125
+ 2. Choose the ticket. If the user named one, use it. Otherwise take the first frontier ticket in order. **Claim it**: assign it to yourself before any work.
126
+ 3. Resolve it — **zoom as needed**: fetch the full body of any related or closed ticket on demand; invoke the skills the `## Notes` block names. If in doubt, use `launch-grill`.
127
+ 4. Record the resolution: post the answer as a **resolution comment**, **close** the issue, and **append a context pointer** to the map's Decisions-so-far.
128
+ 5. Add newly-surfaced tickets (create-then-wire); graduate any fog the answer has made specifiable, clearing each graduated patch from **Not yet specified** so it lives only as its new ticket. If the answer reveals a ticket — this one or another — sits beyond the destination, **rule it out of scope** rather than resolving it on the route. If the decision invalidates other parts of the map, update or delete those tickets.
129
+
130
+ The user may run unblocked tickets in parallel, so expect other sessions to be editing the tracker concurrently.
@@ -2,13 +2,21 @@ import { readFileSync, writeFileSync } from "node:fs";
2
2
  import { join } from "node:path";
3
3
  import * as p from "@clack/prompts";
4
4
  import { BROWSER_TESTING_MODULE, browserTestingFiles } from "../lib/browser-testing.js";
5
+ import { applyRalphGuardHook, CLAUDE_SETTINGS_PATH, planRalphGuardHook, } from "../lib/claudeSettings.js";
5
6
  import { detectRepo } from "../lib/detect.js";
6
7
  import { emptyLockfile, readLockfile, writeLockfile } from "../lib/lockfile.js";
7
8
  import { MANIFEST_FILENAME, parseManifest, setModuleEnabled } from "../lib/manifest.js";
8
- import { RALPH_MODULE, RALPH_WORKFLOW_PATH, ralphFiles } from "../lib/ralph.js";
9
+ import { RALPH_GUARD_HOOK_PATH, RALPH_MODULE, RALPH_WORKFLOW_PATH, ralphFiles } from "../lib/ralph.js";
9
10
  import { claudeGeneratedFile } from "../lib/seeds.js";
10
11
  import { ACTION_LABEL, applyPlan, planWrites } from "../lib/writer.js";
11
12
  import { VERSION } from "../version.js";
13
+ /** Print label for the guard-hook registration line, aligned with ACTION_LABEL. */
14
+ const HOOK_LABEL = {
15
+ create: "create ",
16
+ merge: "update ",
17
+ "skip-registered": "ok ",
18
+ "skip-invalid": "conflict",
19
+ };
12
20
  export const AVAILABLE_MODULES = [BROWSER_TESTING_MODULE, RALPH_MODULE];
13
21
  function defaultAnswers(manifest, detection) {
14
22
  const pm = detection.packageManager ?? "npm";
@@ -96,8 +104,9 @@ function planRalph(parsed) {
96
104
  notes,
97
105
  nextSteps: [
98
106
  "Create the tracker labels Ralph uses: ready-for-agent, ralph:building, needs-info.",
99
- "Produce tickets with explicit `Blocked by: #n` edges and the ready-for-agent label (Matt Pocock's to-tickets, stage 9 of the workflow).",
100
- "Run the loop: the launchrail:ralph skill (watchable) or the `ralph` workflow (wide or long runs; scope with args, e.g. { width: 1 }).",
107
+ "Produce tickets with explicit `Blocked by: #n` edges and the ready-for-agent label (launch-tickets, stage 9 of the workflow).",
108
+ "Start building: /launch-implement in Claude Code drives the ready tickets to verified merges (add a ticket number to build just one).",
109
+ "For an unattended run, launch in a non-prompting permission mode (bypass/autonomous) — a guard hook warns if you start Ralph in an interactive mode, since one benign prompt can stall a walk-away run.",
101
110
  "Start with width 1 until a few tickets have landed cleanly, then widen.",
102
111
  ],
103
112
  };
@@ -144,6 +153,9 @@ export async function runAdd(opts) {
144
153
  claudeGeneratedFile({ projectName: detection.projectName, manifest: plan.manifest, launchrailVersion: VERSION }),
145
154
  ];
146
155
  const actions = planWrites(opts.cwd, specs, lockfile);
156
+ // Ralph's guard hook file rides `actions`; its registration in the shared,
157
+ // project-owned settings.json is an additive merge planned separately (ADR-0021).
158
+ const hookPlan = opts.module === RALPH_MODULE ? planRalphGuardHook(opts.cwd) : null;
147
159
  console.log("");
148
160
  console.log(manifestUpdate.changed
149
161
  ? ` update ${MANIFEST_FILENAME} (enable ${opts.module}${Object.keys(plan.testing).length > 0 ? ", record testing commands" : ""})`
@@ -151,6 +163,9 @@ export async function runAdd(opts) {
151
163
  for (const action of actions) {
152
164
  console.log(` ${ACTION_LABEL[action.kind]} ${action.spec.relPath} (${action.detail})`);
153
165
  }
166
+ if (hookPlan) {
167
+ console.log(` ${HOOK_LABEL[hookPlan.kind]} ${CLAUDE_SETTINGS_PATH} (${hookPlan.detail})`);
168
+ }
154
169
  for (const note of plan.notes)
155
170
  console.log(`\n${note}`);
156
171
  if (opts.dryRun) {
@@ -161,6 +176,8 @@ export async function runAdd(opts) {
161
176
  writeFileSync(join(opts.cwd, MANIFEST_FILENAME), manifestUpdate.source, "utf8");
162
177
  }
163
178
  const written = applyPlan(opts.cwd, actions, lockfile);
179
+ if (hookPlan && applyRalphGuardHook(opts.cwd, hookPlan))
180
+ written.push(CLAUDE_SETTINGS_PATH);
164
181
  lockfile.launchrailVersion = VERSION;
165
182
  lockfile.decisions = {
166
183
  ...lockfile.decisions,
@@ -182,7 +199,7 @@ export async function runAdd(opts) {
182
199
  console.log("\nNext steps:");
183
200
  plan.nextSteps.forEach((step, i) => console.log(` ${i + 1}. ${step}`));
184
201
  if (opts.module === RALPH_MODULE) {
185
- console.log(`\nThe Ralph loop workflow lives at ${RALPH_WORKFLOW_PATH} (managed — do not hand-edit).`);
202
+ console.log(`\nThe Ralph loop workflow lives at ${RALPH_WORKFLOW_PATH} and its unattended-launch guard at ${RALPH_GUARD_HOOK_PATH} (both managed — do not hand-edit).`);
186
203
  }
187
204
  return { code: 0, actions };
188
205
  }
@@ -1 +1 @@
1
- {"version":3,"file":"add.js","sourceRoot":"","sources":["../../src/commands/add.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACtD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,KAAK,CAAC,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AACxF,OAAO,EAAE,UAAU,EAAsB,MAAM,kBAAkB,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,aAAa,EAAiB,MAAM,oBAAoB,CAAC;AAC/F,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,gBAAgB,EAAkC,MAAM,oBAAoB,CAAC;AACxH,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,UAAU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