create-claude-workspace 1.1.83 → 1.1.84
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.
|
@@ -106,7 +106,8 @@ At the beginning of EVERY session (including every Ralph Loop iteration):
|
|
|
106
106
|
### 5. Reconcile working state
|
|
107
107
|
Before doing anything, check for unexpected state from user intervention or previous session:
|
|
108
108
|
- **Worktree recovery**: Read MEMORY.md `Current Worktree`. If set, check if the worktree directory exists:
|
|
109
|
-
- Worktree exists + `Current Step` is set → resume
|
|
109
|
+
- Worktree exists + `Current Step` is set → resume using the rules below:
|
|
110
|
+
- **Crash recovery for STEPs 1-10** (planning/implementation/review phase): The architect's plan from the previous session is LOST (it was only in context). You MUST re-delegate to the architect agent (STEP 2) before continuing. The architect will see the existing implementation in the worktree and produce a plan covering only the remaining work. Then continue from STEP 3. **Do NOT attempt to assess, read, or continue implementation yourself without a fresh architect plan.**
|
|
110
111
|
- **Crash recovery for STEP 11**: If `Current Step` contains `11 —` (exactly `11 — COMMIT`, not `11b`):
|
|
111
112
|
- Check `git -C {worktree} status` for uncommitted changes. If present, the STEP 11 commit was incomplete — re-stage all task files + TODO.md + MEMORY.md in the worktree and commit.
|
|
112
113
|
- If worktree is clean, the commit succeeded. Proceed to STEP 11b (CI watch) if git integration active, otherwise STEP 12.
|
|
@@ -119,8 +120,7 @@ Before doing anything, check for unexpected state from user intervention or prev
|
|
|
119
120
|
- **Crash recovery for STEP 12**: If `Current Step` contains `12`:
|
|
120
121
|
- Check if the feature branch has commits ahead of main. If yes, proceed to STEP 12 (merge from main).
|
|
121
122
|
- If already merged: clean up worktree and branch, clear `Current Worktree` from MEMORY.md.
|
|
122
|
-
- **Crash recovery for hotfix**: If `Current Step` starts with `hotfix`, resume in hotfix workflow mode (shortened cycle).
|
|
123
|
-
- Worktree has uncommitted changes matching current task → continue from recorded step
|
|
123
|
+
- **Crash recovery for hotfix**: If `Current Step` starts with `hotfix`, resume in hotfix workflow mode (shortened cycle). Re-delegate to architect (same as STEPs 1-10 recovery above), then continue from the hotfix step.
|
|
124
124
|
- `Current Worktree` is set but directory doesn't exist → orphaned reference. Check if the branch was merged (in `git log main`). If merged: clear `Current Worktree` and `Current Task` from MEMORY.md. If not merged but branch exists: recreate worktree `git worktree add {path} {branch}` and resume. If branch is gone: clear tracking, move to next task.
|
|
125
125
|
- **Orphaned worktrees**: `git worktree list` — if there are worktrees not referenced by MEMORY.md `Current Worktree`:
|
|
126
126
|
- `git worktree remove --force {path}` + `git branch -D {branch}` if the branch is not merged
|