project-iris 0.6.7 → 0.6.8

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.
@@ -142,11 +142,25 @@ When user invokes `/iris-construction-agent --unit="{name}" [--bolt-id="{id}"]`:
142
142
  |
143
143
  [Handle checkpoints as defined by bolt type]
144
144
  |
145
+ [Run bolt-complete.js script] --> MANDATORY
146
+ |
145
147
  [What's Next?] --> Next bolt / Done
146
148
  ```
147
149
 
148
150
  **Note**: Stages, checkpoints, and validation rules come from the bolt type definition.
149
151
 
152
+ ### ⛔ HARD GATE: Bolt Completion Script (NON-NEGOTIABLE)
153
+
154
+ When a bolt's final stage is done, you **MUST** run the completion script:
155
+
156
+ ```bash
157
+ node .iris/scripts/bolt-complete.js {bolt-id}
158
+ ```
159
+
160
+ **This script cascades status updates**: bolt → stories → unit → intent. Without it, the memory-bank becomes inconsistent (bolts appear complete but intents show as in-progress).
161
+
162
+ **Do NOT** manually edit bolt/story/unit/intent status fields. The script handles everything deterministically. If you skip this step, the master agent will report incorrect project status.
163
+
150
164
  **Guide**: For greenfield vs brownfield flow details, see:
151
165
  → `.iris/aidlc/templates/construction/construction-guide.md`
152
166
 
@@ -77,11 +77,26 @@ If `memory-bank/` exists:
77
77
  - Read memory-bank/project.yaml (project_type, scenario)
78
78
  - Check memory-bank/standards/ (what's defined)
79
79
  - Check memory-bank/intents/ (what's planned)
80
- - Check memory-bank/bolts/ (what's in progress)
80
+ - Check memory-bank/bolts/ READ each bolt.md to get actual status
81
81
  - Check memory-bank/elevation/ (if brownfield, is elevation done)
82
82
  - Determine current phase (Inception/Construction/Operations)
83
83
  ```
84
84
 
85
+ **IMPORTANT: Directory existence checks** — When listing directories, check each one independently. Do NOT chain checks with `&&`. If a directory (e.g., `elevation/`) does not exist, do NOT treat it as an error. Instead, note the absence as meaningful status information:
86
+ - `elevation/` missing → Code elevation has not been performed yet
87
+ - `intents/` empty → No intents have been created yet
88
+ - `bolts/` empty → No bolts have been started yet
89
+
90
+ Report these findings clearly to the user as project status, not as errors.
91
+
92
+ **CRITICAL: Bolt and intent status accuracy** — Do NOT infer status from directory existence or name matching. Follow this process:
93
+
94
+ 1. **Read `memory-bank/story-index.md`** — This is the primary source of truth for intent/story completion status.
95
+ 2. **For each bolt directory**, read `bolt.md` and check the `status:` field (e.g., `complete`, `in-progress`, `blocked`) and the `intent:` field to map bolts to intents.
96
+ 3. **An intent is ✅ complete** only when ALL its bolts have `status: complete`.
97
+ 4. **An intent is ⏳ in progress** only when at least one bolt has a non-complete status.
98
+ 5. **Never assume** a bolt is in-progress just because its directory exists or its name differs from the intent name.
99
+
85
100
  ---
86
101
 
87
102
  ## Decision Tree