@lumenflow/cli 3.10.1 → 3.11.1
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.
- package/README.md +78 -74
- package/dist/docs-sync.js +24 -29
- package/dist/docs-sync.js.map +1 -1
- package/dist/init-scaffolding.js +2 -9
- package/dist/init-scaffolding.js.map +1 -1
- package/dist/init.js +7 -18
- package/dist/init.js.map +1 -1
- package/dist/onboarding-template-paths.js +19 -0
- package/dist/onboarding-template-paths.js.map +1 -0
- package/dist/public-manifest.js +2 -2
- package/dist/public-manifest.js.map +1 -1
- package/dist/sync-templates.js +12 -1
- package/dist/sync-templates.js.map +1 -1
- package/dist/template-directory-resolver.js +71 -0
- package/dist/template-directory-resolver.js.map +1 -0
- package/dist/wu-done-check.js +33 -13
- package/dist/wu-done-check.js.map +1 -1
- package/dist/wu-done.js +6 -5
- package/dist/wu-done.js.map +1 -1
- package/dist/wu-spawn-prompt-builders.js +96 -23
- package/dist/wu-spawn-prompt-builders.js.map +1 -1
- package/package.json +8 -8
- package/packs/sidekick/.turbo/turbo-build.log +1 -1
- package/packs/sidekick/package.json +1 -1
- package/packs/software-delivery/.turbo/turbo-build.log +1 -1
- package/packs/software-delivery/package.json +1 -1
- package/templates/core/.lumenflow/constraints.md.template +3 -3
- package/templates/core/LUMENFLOW.md.template +17 -17
- package/templates/core/UPGRADING.md.template +30 -11
- package/templates/core/ai/onboarding/agent-safety-card.md.template +15 -16
- package/templates/core/ai/onboarding/first-15-mins.md.template +80 -0
- package/templates/core/ai/onboarding/first-wu-mistakes.md.template +3 -3
- package/templates/core/ai/onboarding/initiative-orchestration.md.template +1 -1
- package/templates/core/ai/onboarding/lane-inference.md.template +64 -0
- package/templates/core/ai/onboarding/local-only.md.template +56 -0
- package/templates/core/ai/onboarding/quick-ref-commands.md.template +122 -92
- package/templates/core/ai/onboarding/starting-prompt.md.template +91 -46
- package/templates/core/ai/onboarding/vendor-support.md.template +14 -20
- package/templates/core/ai/onboarding/wu-create-checklist.md.template +31 -82
- package/templates/core/ai/onboarding/wu-sizing-guide.md.template +48 -0
- package/templates/vendors/claude/.claude/skills/bug-classification/SKILL.md.template +2 -2
- package/templates/vendors/claude/.claude/skills/code-quality/SKILL.md.template +2 -2
- package/templates/vendors/claude/.claude/skills/context-management/SKILL.md.template +3 -3
- package/templates/vendors/claude/.claude/skills/execution-memory/SKILL.md.template +1 -1
- package/templates/vendors/claude/.claude/skills/initiative-management/SKILL.md.template +2 -2
- package/templates/vendors/claude/.claude/skills/library-first/SKILL.md.template +2 -2
- package/templates/vendors/claude/.claude/skills/lumenflow-gates/SKILL.md.template +3 -3
- package/templates/vendors/claude/.claude/skills/multi-agent-coordination/SKILL.md.template +2 -2
- package/templates/vendors/claude/.claude/skills/tdd-workflow/SKILL.md.template +3 -3
- package/templates/vendors/claude/.claude/skills/worktree-discipline/SKILL.md.template +10 -10
- package/templates/vendors/claude/.claude/skills/wu-lifecycle/SKILL.md.template +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lumenflow/cli",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.11.1",
|
|
4
4
|
"description": "Command-line interface for LumenFlow workflow framework",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lumenflow",
|
|
@@ -184,13 +184,13 @@
|
|
|
184
184
|
"xstate": "^5.28.0",
|
|
185
185
|
"yaml": "^2.8.2",
|
|
186
186
|
"zod": "^4.3.6",
|
|
187
|
-
"@lumenflow/agent": "3.
|
|
188
|
-
"@lumenflow/
|
|
189
|
-
"@lumenflow/
|
|
190
|
-
"@lumenflow/
|
|
191
|
-
"@lumenflow/
|
|
192
|
-
"@lumenflow/
|
|
193
|
-
"@lumenflow/
|
|
187
|
+
"@lumenflow/agent": "3.11.1",
|
|
188
|
+
"@lumenflow/core": "3.11.1",
|
|
189
|
+
"@lumenflow/kernel": "3.11.1",
|
|
190
|
+
"@lumenflow/initiatives": "3.11.1",
|
|
191
|
+
"@lumenflow/memory": "3.11.1",
|
|
192
|
+
"@lumenflow/metrics": "3.11.1",
|
|
193
|
+
"@lumenflow/control-plane-sdk": "3.11.1"
|
|
194
194
|
},
|
|
195
195
|
"devDependencies": {
|
|
196
196
|
"@vitest/coverage-v8": "^4.0.18",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
> @lumenflow/packs-software-delivery@3.
|
|
2
|
+
> @lumenflow/packs-software-delivery@3.11.1 build /home/runner/work/lumenflow-dev/lumenflow-dev/packages/@lumenflow/packs/software-delivery
|
|
3
3
|
> tsc
|
|
4
4
|
|
|
@@ -194,8 +194,8 @@ If you see something broken on main (failing gates, format issues, typos, lint e
|
|
|
194
194
|
|
|
195
195
|
- `Write(workspace.yaml, ...)` -- use `pnpm config:set` instead
|
|
196
196
|
- `Edit(workspace.yaml, ...)` -- use `pnpm config:set` instead
|
|
197
|
-
- `Write(
|
|
198
|
-
- `Edit(
|
|
197
|
+
- `Write({{DOCS_TASKS_PATH}}/wu/WU-XXX.yaml, ...)` -- use `pnpm wu:edit` instead
|
|
198
|
+
- `Edit({{DOCS_TASKS_PATH}}/wu/WU-XXX.yaml, ...)` -- use `pnpm wu:edit` instead
|
|
199
199
|
|
|
200
200
|
**Exception:** Reading YAML files with the Read tool is acceptable for inspection purposes.
|
|
201
201
|
|
|
@@ -288,7 +288,7 @@ git worktree prune
|
|
|
288
288
|
|
|
289
289
|
**When approaching context limits, spawn a fresh agent instead of continuing after compaction.**
|
|
290
290
|
|
|
291
|
-
Context compaction causes agents to lose critical rules. See [wu-sizing-guide.md](../
|
|
291
|
+
Context compaction causes agents to lose critical rules. See [wu-sizing-guide.md](../{{DOCS_OPERATIONS_PATH}}/_frameworks/lumenflow/wu-sizing-guide.md) for mandatory thresholds and the spawn-fresh protocol.
|
|
292
292
|
|
|
293
293
|
---
|
|
294
294
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
LumenFlow is a vendor-agnostic workflow framework for AI-native software development.
|
|
6
6
|
|
|
7
|
-
> **Context Safety**: When approaching context limits (80% usage, 50+ tool calls), spawn a fresh agent instead of continuing after compaction. See [wu-sizing-guide.md](
|
|
7
|
+
> **Context Safety**: When approaching context limits (80% usage, 50+ tool calls), spawn a fresh agent instead of continuing after compaction. See [wu-sizing-guide.md]({{DOCS_ONBOARDING_PATH}}/wu-sizing-guide.md).
|
|
8
8
|
|
|
9
9
|
---
|
|
10
10
|
|
|
@@ -12,7 +12,7 @@ LumenFlow is a vendor-agnostic workflow framework for AI-native software develop
|
|
|
12
12
|
|
|
13
13
|
Completion is a **two-step process**: run `wu:prep` from the worktree (runs gates, prints copy-paste instruction), then run `wu:done` from main (merge + cleanup only). Do NOT run `wu:done` from a worktree, skip `wu:prep`, or forget to run `wu:done` after `wu:prep`.
|
|
14
14
|
|
|
15
|
-
For detailed troubleshooting, common mistakes, and recovery steps, see [troubleshooting-wu-done.md](
|
|
15
|
+
For detailed troubleshooting, common mistakes, and recovery steps, see [troubleshooting-wu-done.md]({{DOCS_ONBOARDING_PATH}}/troubleshooting-wu-done.md).
|
|
16
16
|
|
|
17
17
|
---
|
|
18
18
|
|
|
@@ -126,7 +126,7 @@ When `requireRemote: true` (default):
|
|
|
126
126
|
7. **Command Clarity**: If you are unsure about a command, run `<command> --help` first. Do not guess.
|
|
127
127
|
8. **Gates Before Done**: All gates must pass before `wu:done`
|
|
128
128
|
9. **Do Not Bypass Hooks**: No `--no-verify`, fix issues properly
|
|
129
|
-
10. **
|
|
129
|
+
10. **Finish the two-step flow**: Run `pnpm wu:prep`, then run `pnpm wu:done`
|
|
130
130
|
|
|
131
131
|
---
|
|
132
132
|
|
|
@@ -166,7 +166,7 @@ For cloud agents (Codex/Claude web/CI) operating on feature branches:
|
|
|
166
166
|
- **LUMENFLOW.md** - This file, main workflow documentation
|
|
167
167
|
- **.lumenflow/constraints.md** - Non-negotiable workflow constraints
|
|
168
168
|
- **.lumenflow/rules/** - Workflow rules (git-safety.md, wu-workflow.md, etc.)
|
|
169
|
-
- **
|
|
169
|
+
- **{{DOCS_OPERATIONS_PATH}}/\_frameworks/lumenflow/agent/onboarding/** - Agent onboarding documentation
|
|
170
170
|
|
|
171
171
|
### Public Starlight Docs (Kernel/Packs IA)
|
|
172
172
|
|
|
@@ -203,7 +203,7 @@ The `--merge` flag uses bounded markers (`LUMENFLOW:START`/`END`) to safely inse
|
|
|
203
203
|
|
|
204
204
|
After claiming a WU, immediately `cd worktrees/<lane>-wu-xxx` and work exclusively in the worktree. Main checkout becomes read-only -- hooks will block WU commits from main. Return to main only to run `wu:done`.
|
|
205
205
|
|
|
206
|
-
For the full worktree lifecycle (parallel execution, bootstrap, isolation guarantees), see [LumenFlow Agent Capsule](
|
|
206
|
+
For the full worktree lifecycle (parallel execution, bootstrap, isolation guarantees), see [LumenFlow Agent Capsule]({{DOCS_OPERATIONS_PATH}}/_frameworks/lumenflow/lumenflow-agent-capsule.md). For the mandatory pre-write check, see [.lumenflow/constraints.md](.lumenflow/constraints.md).
|
|
207
207
|
|
|
208
208
|
### Vendor-Agnostic Dirty-Main Guard
|
|
209
209
|
|
|
@@ -211,7 +211,7 @@ For the full worktree lifecycle (parallel execution, bootstrap, isolation guaran
|
|
|
211
211
|
|
|
212
212
|
- In worktree mode, commands block if main checkout has non-allowlisted dirty files
|
|
213
213
|
- This includes writes from MCP tools or any vendor client that bypasses hook execution
|
|
214
|
-
- Allowed dirty prefixes on main: `
|
|
214
|
+
- Allowed dirty prefixes on main: `{{DOCS_TASKS_PATH}}/wu/`, `.lumenflow/`, `.claude/`, `plan/`
|
|
215
215
|
- `branch-pr` mode is exempt (no local worktree/main split)
|
|
216
216
|
|
|
217
217
|
---
|
|
@@ -228,7 +228,7 @@ For the full worktree lifecycle (parallel execution, bootstrap, isolation guaran
|
|
|
228
228
|
|
|
229
229
|
## Core Commands
|
|
230
230
|
|
|
231
|
-
> **Complete CLI reference (100+ commands):** See [quick-ref-commands.md](
|
|
231
|
+
> **Complete CLI reference (100+ commands):** See [quick-ref-commands.md]({{QUICK_REF_LINK}}). Always run `<command> --help` for the authoritative option list.
|
|
232
232
|
|
|
233
233
|
| Command | Description |
|
|
234
234
|
| ------------------------- | --------------------------------------------------------- |
|
|
@@ -258,7 +258,7 @@ For the full worktree lifecycle (parallel execution, bootstrap, isolation guaran
|
|
|
258
258
|
Commands include **context-aware validation** that checks location, WU status, and git state. When validation fails, commands provide copy-paste ready fix commands. Configure in `workspace.yaml` under `software_delivery.experimental.context_validation`.
|
|
259
259
|
The Starlight CLI reference page is intentionally curated to primary commands; use `pnpm lumenflow:commands` for complete discovery.
|
|
260
260
|
|
|
261
|
-
For recovery commands, state management, memory coordination, and orchestration tools, see [quick-ref-commands.md](
|
|
261
|
+
For recovery commands, state management, memory coordination, and orchestration tools, see [quick-ref-commands.md]({{QUICK_REF_LINK}}).
|
|
262
262
|
|
|
263
263
|
---
|
|
264
264
|
|
|
@@ -282,11 +282,11 @@ See [.lumenflow/constraints.md](.lumenflow/constraints.md) for the 9 non-negotia
|
|
|
282
282
|
|
|
283
283
|
If you're an AI agent, read the onboarding docs:
|
|
284
284
|
|
|
285
|
-
1. [
|
|
286
|
-
2. [
|
|
287
|
-
3. [
|
|
288
|
-
4. [
|
|
289
|
-
5. [
|
|
285
|
+
1. [{{DOCS_OPERATIONS_PATH}}/\_frameworks/lumenflow/agent/onboarding/troubleshooting-wu-done.md]({{DOCS_ONBOARDING_PATH}}/troubleshooting-wu-done.md) - Most common mistake
|
|
286
|
+
2. [{{DOCS_OPERATIONS_PATH}}/\_frameworks/lumenflow/agent/onboarding/first-wu-mistakes.md]({{DOCS_ONBOARDING_PATH}}/first-wu-mistakes.md) - First WU pitfalls
|
|
287
|
+
3. [{{DOCS_OPERATIONS_PATH}}/\_frameworks/lumenflow/agent/onboarding/agent-safety-card.md]({{DOCS_ONBOARDING_PATH}}/agent-safety-card.md) - Safety guardrails
|
|
288
|
+
4. [{{DOCS_OPERATIONS_PATH}}/\_frameworks/lumenflow/agent/onboarding/quick-ref-commands.md]({{QUICK_REF_LINK}}) - Command reference
|
|
289
|
+
5. [{{DOCS_OPERATIONS_PATH}}/\_frameworks/lumenflow/agent/onboarding/test-ratchet.md]({{DOCS_ONBOARDING_PATH}}/test-ratchet.md) - Test baseline ratchet pattern
|
|
290
290
|
|
|
291
291
|
---
|
|
292
292
|
|
|
@@ -329,10 +329,10 @@ Supported clients: `claude-code`, `codex-cli`, `cursor`, `gemini-cli`, `windsurf
|
|
|
329
329
|
|
|
330
330
|
## References
|
|
331
331
|
|
|
332
|
-
- [LumenFlow Agent Capsule](
|
|
333
|
-
- [Quick Reference: Commands](
|
|
334
|
-
- [Troubleshooting wu:done](
|
|
332
|
+
- [LumenFlow Agent Capsule]({{DOCS_OPERATIONS_PATH}}/_frameworks/lumenflow/lumenflow-agent-capsule.md) -- Full framework reference (lifecycle, lanes, gates, DoD)
|
|
333
|
+
- [Quick Reference: Commands]({{QUICK_REF_LINK}}) -- Complete CLI reference (100+ commands)
|
|
334
|
+
- [Troubleshooting wu:done]({{DOCS_ONBOARDING_PATH}}/troubleshooting-wu-done.md) -- Most common completion mistakes
|
|
335
335
|
- [.lumenflow/constraints.md](.lumenflow/constraints.md) -- Non-negotiable rules and forbidden commands
|
|
336
|
-
- [WU Sizing Guide](
|
|
336
|
+
- [WU Sizing Guide]({{DOCS_ONBOARDING_PATH}}/wu-sizing-guide.md) -- Scoping work and context safety
|
|
337
337
|
- [Skills Index](.claude/skills/INDEX.md)
|
|
338
338
|
- [Agents README](.claude/agents/README.md)
|
|
@@ -8,13 +8,17 @@ This guide covers upgrading LumenFlow packages in your project.
|
|
|
8
8
|
# Check for available updates
|
|
9
9
|
pnpm outdated @lumenflow/*
|
|
10
10
|
|
|
11
|
-
# Update all LumenFlow packages
|
|
12
|
-
pnpm
|
|
11
|
+
# Update all LumenFlow packages atomically
|
|
12
|
+
pnpm lumenflow:upgrade --latest
|
|
13
13
|
|
|
14
|
-
#
|
|
15
|
-
pnpm
|
|
14
|
+
# Refresh scaffolded onboarding docs and vendor assets
|
|
15
|
+
pnpm docs:sync --force
|
|
16
16
|
```
|
|
17
17
|
|
|
18
|
+
Package upgrades change the runtime `wu:brief` defaults immediately. `docs:sync --force` refreshes
|
|
19
|
+
scaffolded onboarding docs and supported vendor assets, but project-local `.lumenflow/templates/`
|
|
20
|
+
remains optional unless you want custom overrides.
|
|
21
|
+
|
|
18
22
|
## Version Compatibility
|
|
19
23
|
|
|
20
24
|
LumenFlow follows semantic versioning:
|
|
@@ -44,10 +48,10 @@ Before upgrading, review the changelog for breaking changes:
|
|
|
44
48
|
|
|
45
49
|
```bash
|
|
46
50
|
# Update to latest versions
|
|
47
|
-
pnpm
|
|
51
|
+
pnpm lumenflow:upgrade --latest
|
|
48
52
|
|
|
49
53
|
# Or update to a specific version
|
|
50
|
-
pnpm
|
|
54
|
+
pnpm lumenflow:upgrade --version 1.2.0
|
|
51
55
|
```
|
|
52
56
|
|
|
53
57
|
### 4. Sync Documentation
|
|
@@ -55,15 +59,22 @@ pnpm add @lumenflow/cli@^1.2.0 @lumenflow/core@^1.2.0
|
|
|
55
59
|
After upgrading, sync agent onboarding documentation:
|
|
56
60
|
|
|
57
61
|
```bash
|
|
58
|
-
pnpm
|
|
62
|
+
pnpm docs:sync --force
|
|
59
63
|
```
|
|
60
64
|
|
|
61
65
|
This updates:
|
|
62
66
|
|
|
63
|
-
-
|
|
64
|
-
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
+
- Scaffolded onboarding documentation
|
|
68
|
+
- Supported vendor assets such as Claude skills
|
|
69
|
+
|
|
70
|
+
It does not rewrite root workflow files such as `LUMENFLOW.md` or `.lumenflow/constraints.md`.
|
|
71
|
+
|
|
72
|
+
## Defaults vs Overrides
|
|
73
|
+
|
|
74
|
+
- New installs already get the current `wu:brief` defaults.
|
|
75
|
+
- Existing installs get the new runtime behavior as soon as packages are upgraded.
|
|
76
|
+
- Project-local `.lumenflow/templates/manifest.yaml` and `spawn-prompt/*.md` files are only needed
|
|
77
|
+
when you want to override the built-in prompt composition.
|
|
67
78
|
|
|
68
79
|
### 5. Verify Installation
|
|
69
80
|
|
|
@@ -108,6 +119,14 @@ If `docs:sync` reports conflicts:
|
|
|
108
119
|
2. Merge manually or accept incoming changes
|
|
109
120
|
3. Run `pnpm gates` to verify
|
|
110
121
|
|
|
122
|
+
### `wu:brief` Still Uses Older Wording
|
|
123
|
+
|
|
124
|
+
Project-local templates override the built-in defaults. Review:
|
|
125
|
+
|
|
126
|
+
- `.lumenflow/templates/manifest.yaml`
|
|
127
|
+
- `.lumenflow/templates/spawn-prompt/*.md`
|
|
128
|
+
- `.lumenflow/templates.<client>/spawn-prompt/*.md`
|
|
129
|
+
|
|
111
130
|
## Migration Guides
|
|
112
131
|
|
|
113
132
|
For major version upgrades, see version-specific migration guides:
|
|
@@ -27,20 +27,20 @@ Quick reference for AI agents working in LumenFlow projects.
|
|
|
27
27
|
| `git stash` (on main) | Hides work |
|
|
28
28
|
| `git clean -fd` | Deletes files |
|
|
29
29
|
| Work in main after claim | Breaks isolation |
|
|
30
|
-
| Skip wu:done
|
|
30
|
+
| Skip wu:prep or wu:done | Incomplete WU |
|
|
31
31
|
|
|
32
32
|
---
|
|
33
33
|
|
|
34
34
|
## Always Do
|
|
35
35
|
|
|
36
|
-
| Action
|
|
37
|
-
|
|
|
38
|
-
| Read WU spec first
|
|
39
|
-
| cd to worktree after claim
|
|
40
|
-
| Write tests before code
|
|
41
|
-
| Run
|
|
42
|
-
| Run wu:done | Complete WU
|
|
43
|
-
| Stay within code_paths
|
|
36
|
+
| Action | Why |
|
|
37
|
+
| ------------------------------------ | --------------------------------- |
|
|
38
|
+
| Read WU spec first | Understand scope |
|
|
39
|
+
| cd to worktree after claim | Isolation |
|
|
40
|
+
| Write tests before code | TDD |
|
|
41
|
+
| Run wu:prep in the claimed workspace | Quality and lifecycle correctness |
|
|
42
|
+
| Run wu:done from main | Complete WU |
|
|
43
|
+
| Stay within code_paths | Scope discipline |
|
|
44
44
|
|
|
45
45
|
---
|
|
46
46
|
|
|
@@ -96,7 +96,7 @@ If same error happens 3 times:
|
|
|
96
96
|
|
|
97
97
|
```bash
|
|
98
98
|
# Check lane availability
|
|
99
|
-
cat
|
|
99
|
+
cat {{DOCS_TASKS_PATH}}/status.md
|
|
100
100
|
|
|
101
101
|
# Claim a WU
|
|
102
102
|
pnpm wu:claim --id WU-XXX --lane <Lane>
|
|
@@ -104,13 +104,11 @@ pnpm wu:claim --id WU-XXX --lane <Lane>
|
|
|
104
104
|
# Work in worktree
|
|
105
105
|
cd worktrees/<lane>-wu-xxx
|
|
106
106
|
|
|
107
|
-
#
|
|
108
|
-
pnpm
|
|
109
|
-
pnpm gates --docs-only # Docs changes
|
|
107
|
+
# Prep in the claimed workspace
|
|
108
|
+
pnpm wu:prep --id WU-XXX
|
|
110
109
|
|
|
111
|
-
# Complete
|
|
112
|
-
cd /path/to/main
|
|
113
|
-
pnpm wu:done --id WU-XXX
|
|
110
|
+
# Complete from main
|
|
111
|
+
cd /path/to/main && pnpm wu:done --id WU-XXX
|
|
114
112
|
```
|
|
115
113
|
|
|
116
114
|
---
|
|
@@ -118,6 +116,7 @@ pnpm wu:done --id WU-XXX
|
|
|
118
116
|
## Completion Checklist
|
|
119
117
|
|
|
120
118
|
- [ ] Gates pass
|
|
119
|
+
- [ ] Run wu:prep in the claimed workspace
|
|
121
120
|
- [ ] cd to main
|
|
122
121
|
- [ ] Run wu:done
|
|
123
122
|
- [ ] Verify success output
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# First 15 Minutes with LumenFlow
|
|
2
|
+
|
|
3
|
+
**Last updated:** {{DATE}}
|
|
4
|
+
|
|
5
|
+
A fast start for agents entering an existing LumenFlow project.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Minute 0-2: Verify the Workspace
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
ls LUMENFLOW.md AGENTS.md workspace.yaml
|
|
13
|
+
pnpm exec lumenflow doctor
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
If the doctor reports a repo-level problem, stop there and fix it before claiming work.
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## Minute 2-5: Read the Required Docs
|
|
21
|
+
|
|
22
|
+
1. Open `LUMENFLOW.md` for the lifecycle overview.
|
|
23
|
+
2. Scan `AGENTS.md` for repo-specific workflow rules.
|
|
24
|
+
3. Review `.lumenflow/constraints.md` for the non-negotiables.
|
|
25
|
+
4. Open `starting-prompt.md` if you need the full onboarding flow.
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## Minute 5-8: Find the Work
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
cat {{DOCS_TASKS_PATH}}/status.md
|
|
33
|
+
ls {{DOCS_TASKS_PATH}}/wu/*.yaml | head -5
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Read the assigned WU spec before touching files.
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## Minute 8-12: Claim and Move
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
pnpm wu:claim --id WU-XXX --lane "Framework: CLI"
|
|
44
|
+
cd worktrees/framework-cli-wu-xxx
|
|
45
|
+
pnpm bootstrap
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
After `wu:claim`, all implementation work happens in the worktree, not in the main checkout.
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
## Minute 12-15: Start the Right Cycle
|
|
53
|
+
|
|
54
|
+
For code WUs:
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
pnpm test -- --run
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
For docs-heavy WUs:
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
pnpm format {{DOCS_ONBOARDING_PATH}}/*.md
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Before completion, always use the two-step flow:
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
pnpm wu:prep --id WU-XXX
|
|
70
|
+
cd <project-root> && pnpm wu:done --id WU-XXX
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
## Key Reminders
|
|
76
|
+
|
|
77
|
+
- Stay in the claimed worktree.
|
|
78
|
+
- Run `pnpm lumenflow:commands` for public CLI discovery, then `--help` before first use.
|
|
79
|
+
- Use `pnpm wu:prep` before `pnpm wu:done`; do not jump straight to `wu:done`.
|
|
80
|
+
- If context starts getting heavy, read `./wu-sizing-guide.md` before pushing further.
|
|
@@ -254,7 +254,7 @@ pnpm wu:edit --id WU-1348 --notes "Research findings: ..."
|
|
|
254
254
|
**Option 2: Direct file edit**
|
|
255
255
|
|
|
256
256
|
```bash
|
|
257
|
-
# Edit
|
|
257
|
+
# Edit {{DOCS_TASKS_PATH}}/wu/WU-1348.yaml directly
|
|
258
258
|
```
|
|
259
259
|
|
|
260
260
|
### Recognizing Implied Directives
|
|
@@ -311,7 +311,7 @@ sizing_estimate:
|
|
|
311
311
|
exception_reason: All markdown documentation files, low complexity
|
|
312
312
|
```
|
|
313
313
|
|
|
314
|
-
2. **Split the WU** if the estimate genuinely exceeds session capacity (see [wu-sizing-guide.md](
|
|
314
|
+
2. **Split the WU** if the estimate genuinely exceeds session capacity (see [wu-sizing-guide.md](./wu-sizing-guide.md) section 3 for splitting patterns).
|
|
315
315
|
|
|
316
316
|
**Strict mode:** Teams can enforce sizing compliance for delegated work with `--strict-sizing` on `wu:brief`. In strict mode, missing or non-compliant sizing metadata blocks the operation.
|
|
317
317
|
|
|
@@ -320,7 +320,7 @@ sizing_estimate:
|
|
|
320
320
|
pnpm wu:brief --id WU-XXX --client claude-code --strict-sizing
|
|
321
321
|
```
|
|
322
322
|
|
|
323
|
-
See the [WU Sizing Guide](
|
|
323
|
+
See the [WU Sizing Guide](./wu-sizing-guide.md) section 1.4 for the full contract specification.
|
|
324
324
|
|
|
325
325
|
---
|
|
326
326
|
|
|
@@ -10,7 +10,7 @@ Step-by-step guide for agents orchestrating multi-WU initiatives. This document
|
|
|
10
10
|
|
|
11
11
|
Before orchestrating an initiative, ensure:
|
|
12
12
|
|
|
13
|
-
1. The initiative YAML exists at `
|
|
13
|
+
1. The initiative YAML exists at `{{DOCS_TASKS_PATH}}/initiatives/INIT-XXX.yaml`
|
|
14
14
|
2. All WUs are linked to the initiative via `initiative:add-wu`
|
|
15
15
|
3. Dependencies between WUs are defined (blocking relationships)
|
|
16
16
|
4. Lane lifecycle is locked (`pnpm lane:status` shows `locked`)
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# Lane Inference
|
|
2
|
+
|
|
3
|
+
**Last updated:** {{DATE}}
|
|
4
|
+
|
|
5
|
+
Lanes define which area of the system a WU belongs to. Use the lane tools before creating or reshaping work.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## The Two Inputs
|
|
10
|
+
|
|
11
|
+
Lane fit is driven by:
|
|
12
|
+
|
|
13
|
+
1. The WU `code_paths`
|
|
14
|
+
2. The implementation description or acceptance criteria
|
|
15
|
+
|
|
16
|
+
If those disagree with the assigned lane, fix the lane or split the WU.
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## Runtime Checks
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
pnpm wu:infer-lane --id WU-XXX
|
|
24
|
+
pnpm lane:status
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Use `wu:infer-lane` for a WU-level recommendation and `lane:status` for current lifecycle state.
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## Taxonomy Source
|
|
32
|
+
|
|
33
|
+
Lane metadata is stored in `.lumenflow.lane-inference.yaml`.
|
|
34
|
+
|
|
35
|
+
Regenerate it when taxonomy drifts from `workspace.yaml`:
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
pnpm lane:suggest --output .lumenflow.lane-inference.yaml
|
|
39
|
+
pnpm lane:validate
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## Before Delivery WUs
|
|
45
|
+
|
|
46
|
+
Lane lifecycle must be complete before the first delivery WU:
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
pnpm lane:setup
|
|
50
|
+
pnpm lane:validate
|
|
51
|
+
pnpm lane:lock
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
`locked` means delivery WUs can be created safely.
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## Common Failure Mode
|
|
59
|
+
|
|
60
|
+
If a WU touches files outside the assigned lane's code paths, do not just keep coding.
|
|
61
|
+
|
|
62
|
+
- Propose a lane change if the WU is genuinely in the wrong lane.
|
|
63
|
+
- Split the WU if the work spans multiple lanes.
|
|
64
|
+
- Update the taxonomy only when the lane model itself is outdated.
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# Local-Only Development
|
|
2
|
+
|
|
3
|
+
**Last updated:** {{DATE}}
|
|
4
|
+
|
|
5
|
+
Use this local-only mode when the repo has no `origin` remote yet or you are intentionally working offline.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Raw YAML Configuration
|
|
10
|
+
|
|
11
|
+
Set the workspace config under `software_delivery.git`:
|
|
12
|
+
|
|
13
|
+
```yaml
|
|
14
|
+
software_delivery:
|
|
15
|
+
git:
|
|
16
|
+
requireRemote: false
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## Safer CLI Alternative
|
|
22
|
+
|
|
23
|
+
Use the config command when possible instead of editing YAML directly:
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
pnpm config:set --key git.requireRemote --value false
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
The `git.requireRemote` dotpath is rooted under `software_delivery`.
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## Behavior Changes
|
|
34
|
+
|
|
35
|
+
When `requireRemote: false`:
|
|
36
|
+
|
|
37
|
+
- `wu:create` skips remote fetch requirements.
|
|
38
|
+
- `wu:claim` can proceed without pushing a lane branch.
|
|
39
|
+
- Local evaluation and air-gapped testing remain unblocked.
|
|
40
|
+
|
|
41
|
+
When `requireRemote: true` (default):
|
|
42
|
+
|
|
43
|
+
- `wu:create` and `wu:claim` expect `origin/main`.
|
|
44
|
+
- Team-visible coordination happens through the remote.
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
## Transitioning Back to Remote Mode
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
pnpm config:set --key git.requireRemote --value true
|
|
52
|
+
git remote add origin <url>
|
|
53
|
+
git push -u origin main
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
If the repo already has the correct remote, you can simply remove the override and resume the standard workflow.
|