forge-orkes 0.5.0 → 0.5.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "forge-orkes",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Set up the Forge meta-prompting framework for Claude Code in your project",
5
5
  "bin": {
6
6
  "create-forge": "./bin/create-forge.js"
@@ -18,9 +18,28 @@ Structured conversation: approach, trade-offs, decisions. Clarity, not artifacts
18
18
  ## Boundaries
19
19
 
20
20
  - No plans or code
21
- - Writes only `context.md` (at convergence, before handoff)
21
+ - Writes `context.md` progressively (after each confirmed decision, not just at handoff)
22
22
  - No phase/plan required
23
23
 
24
+ ## Progressive Persistence
25
+
26
+ **Decisions persist immediately.** After each user response that confirms a decision, write it to `.forge/context.md` right away. Don't accumulate in working memory.
27
+
28
+ ### Rules
29
+
30
+ 1. **Create `context.md` on first decision** if it doesn't exist (from template `.forge/templates/context.md`)
31
+ 2. **Scope by milestone.** Add decisions under `### M{id} — {name} (drafting)` inside `## Locked Decisions`
32
+ 3. **Append, don't rewrite.** Each confirmed decision → append one `- **[Topic]**: [Decision]. Reason: [Why]` line
33
+ 4. **Deferred ideas too.** User says "not now" / "later" / "skip" → append to `## Deferred Ideas` immediately
34
+ 5. **Discretion areas too.** Left to agent judgment → append to `## Discretion Areas` immediately
35
+ 6. **Phase Handoff promotes.** Rename `(drafting)` → `(locked {date})` at convergence. No content change needed — decisions are already written
36
+
37
+ ### Why
38
+
39
+ Sessions `/clear` or die mid-discussion. Previous behavior: decisions lived only in conversation memory until Step 5 convergence. If session ended before convergence, all Q&A answers vanished. Planning would start from scratch.
40
+
41
+ Now: any `/clear` preserves everything decided so far. Worst case on interruption = last answer lost, not all answers.
42
+
24
43
  ## Pre-Planning Discussion
25
44
 
26
45
  ### Step 0: Load Context
@@ -60,6 +79,8 @@ Brief context paragraph from research.
60
79
 
61
80
  Surface 3-5 decisions that matter.
62
81
 
82
+ **After each user response:** write confirmed decisions to `context.md` immediately (see Progressive Persistence).
83
+
63
84
  ### Step 2: Facilitate, Don't Dictate
64
85
 
65
86
  Help user think deeper, don't push preference. `AskUserQuestion` for decisions; prose for open-ended.
@@ -89,6 +110,8 @@ AskUserQuestion:
89
110
 
90
111
  Open-ended via prose: *"Tried before?" / "Must-haves or must-nots?"* 1-2 at a time.
91
112
 
113
+ **After each user response:** write confirmed decisions/constraints to `context.md` immediately.
114
+
92
115
  ### Step 4: Functionality Distillation
93
116
 
94
117
  Per feature, force behavioral clarity. Surface assumptions + edge cases.
@@ -103,6 +126,8 @@ Per feature, force behavioral clarity. Surface assumptions + edge cases.
103
126
 
104
127
  Not all 5 mechanically. 2-3 questions, deeper on uncertainty. `AskUserQuestion` for discrete; prose to explain.
105
128
 
129
+ **After each user response:** write confirmed behavioral decisions to `context.md` immediately.
130
+
106
131
  Example -- L3:
107
132
  ```
108
133
  question: "When the enrichment API is down, what should the system do?"
@@ -223,11 +248,11 @@ Re-plan? Route to `planning` with summary.
223
248
 
224
249
  After convergence:
225
250
 
226
- 1. **Write `context.md`** -- Create/update `.forge/context.md` from template (`.forge/templates/context.md`). Populate:
227
- - **Locked Decisions**: all confirmed decisions from Steps 1-5
228
- - **Deferred Ideas**: anything explicitly deferred
229
- - **Discretion Areas**: topics left to agent judgment
230
- - **Needs Resolution**: unresolved items (if any)
251
+ 1. **Promote decisions in `context.md`** -- Rename milestone heading from `(drafting)` → `(locked {date})`. Decisions already written progressively — just finalize:
252
+ - Verify all confirmed decisions present under `## Locked Decisions`
253
+ - Verify deferred items under `## Deferred Ideas`
254
+ - Verify discretion areas under `## Discretion Areas`
255
+ - Add any unresolved items to `## Needs Resolution`
231
256
  - If `context.md` already exists (post-planning discussion), update relevant sections + log amendments
232
257
  2. **Update state** -- `current.status` = `planning` (`architecting` for Full) in milestone yml
233
258
  3. **Recommend clear:**