project-iris 0.0.12 → 0.0.14

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 (189) hide show
  1. package/README.md +214 -323
  2. package/bin/cli.js +21 -0
  3. package/flows/aidlc/README.md +372 -0
  4. package/flows/aidlc/agents/construction-agent.md +79 -0
  5. package/flows/aidlc/agents/inception-agent.md +97 -0
  6. package/flows/aidlc/agents/master-agent.md +61 -0
  7. package/flows/aidlc/agents/operations-agent.md +89 -0
  8. package/flows/aidlc/commands/construction-agent.md +63 -0
  9. package/flows/aidlc/commands/inception-agent.md +55 -0
  10. package/flows/aidlc/commands/master-agent.md +47 -0
  11. package/flows/aidlc/commands/operations-agent.md +77 -0
  12. package/flows/aidlc/context-config.yaml +67 -0
  13. package/flows/aidlc/memory-bank.yaml +104 -0
  14. package/flows/aidlc/quick-start.md +322 -0
  15. package/flows/aidlc/skills/construction/bolt-list.md +163 -0
  16. package/flows/aidlc/skills/construction/bolt-replan.md +345 -0
  17. package/flows/aidlc/skills/construction/bolt-start.md +442 -0
  18. package/flows/aidlc/skills/construction/bolt-status.md +185 -0
  19. package/flows/aidlc/skills/construction/navigator.md +196 -0
  20. package/flows/aidlc/skills/inception/bolt-plan.md +372 -0
  21. package/flows/aidlc/skills/inception/context.md +171 -0
  22. package/flows/aidlc/skills/inception/intent-create.md +211 -0
  23. package/flows/aidlc/skills/inception/intent-list.md +124 -0
  24. package/flows/aidlc/skills/inception/navigator.md +207 -0
  25. package/flows/aidlc/skills/inception/requirements.md +227 -0
  26. package/flows/aidlc/skills/inception/review.md +248 -0
  27. package/flows/aidlc/skills/inception/story-create.md +304 -0
  28. package/flows/aidlc/skills/inception/units.md +278 -0
  29. package/flows/aidlc/skills/master/analyze-context.md +239 -0
  30. package/flows/aidlc/skills/master/answer-question.md +141 -0
  31. package/flows/aidlc/skills/master/explain-flow.md +158 -0
  32. package/flows/aidlc/skills/master/project-init.md +281 -0
  33. package/flows/aidlc/skills/master/route-request.md +126 -0
  34. package/flows/aidlc/skills/operations/build.md +237 -0
  35. package/flows/aidlc/skills/operations/deploy.md +259 -0
  36. package/flows/aidlc/skills/operations/monitor.md +265 -0
  37. package/flows/aidlc/skills/operations/navigator.md +209 -0
  38. package/flows/aidlc/skills/operations/verify.md +224 -0
  39. package/{dist/iris_bundle/frameworks/iris-core → flows/aidlc}/templates/construction/bolt-types/ddd-construction-bolt.md +3 -3
  40. package/{dist → flows/aidlc}/templates/construction/bolt-types/spike-bolt.md +2 -2
  41. package/flows/aidlc/templates/construction/construction-log-template.md +129 -0
  42. package/flows/aidlc/templates/construction/standards/coding-standards.md +29 -0
  43. package/flows/aidlc/templates/construction/standards/system-architecture.md +22 -0
  44. package/flows/aidlc/templates/construction/standards/tech-stack.md +19 -0
  45. package/flows/aidlc/templates/inception/inception-log-template.md +134 -0
  46. package/flows/aidlc/templates/inception/project/README.md +55 -0
  47. package/flows/aidlc/templates/standards/catalog.yaml +345 -0
  48. package/flows/aidlc/templates/standards/coding-standards.guide.md +553 -0
  49. package/flows/aidlc/templates/standards/data-stack.guide.md +162 -0
  50. package/flows/aidlc/templates/standards/tech-stack.guide.md +280 -0
  51. package/lib/InstallerFactory.js +36 -0
  52. package/lib/analytics/env-detector.js +92 -0
  53. package/lib/analytics/index.js +22 -0
  54. package/lib/analytics/machine-id.js +33 -0
  55. package/lib/analytics/tracker.js +232 -0
  56. package/lib/cli-utils.js +342 -0
  57. package/lib/constants.js +32 -0
  58. package/lib/installer.js +402 -0
  59. package/lib/installers/AntigravityInstaller.js +22 -0
  60. package/lib/installers/ClaudeInstaller.js +85 -0
  61. package/lib/installers/ClineInstaller.js +21 -0
  62. package/lib/installers/CodexInstaller.js +21 -0
  63. package/lib/installers/CopilotInstaller.js +113 -0
  64. package/lib/installers/CursorInstaller.js +63 -0
  65. package/lib/installers/GeminiInstaller.js +75 -0
  66. package/lib/installers/KiroInstaller.js +22 -0
  67. package/lib/installers/OpenCodeInstaller.js +22 -0
  68. package/lib/installers/RooInstaller.js +22 -0
  69. package/lib/installers/ToolInstaller.js +73 -0
  70. package/lib/installers/WindsurfInstaller.js +22 -0
  71. package/lib/markdown-validator.ts +175 -0
  72. package/lib/yaml-validator.ts +99 -0
  73. package/package.json +105 -32
  74. package/scripts/artifact-validator.js +594 -0
  75. package/scripts/bolt-complete.js +606 -0
  76. package/scripts/status-integrity.js +598 -0
  77. package/dist/bridge/agent-runner.js +0 -190
  78. package/dist/bridge/connector-factory.js +0 -31
  79. package/dist/bridge/connectors/antigravity-connector.js +0 -18
  80. package/dist/bridge/connectors/cursor-connector.js +0 -31
  81. package/dist/bridge/connectors/in-process-connector.js +0 -29
  82. package/dist/bridge/connectors/vscode-connector.js +0 -31
  83. package/dist/bridge/connectors/windsurf-connector.js +0 -23
  84. package/dist/bridge/filesystem-connector.js +0 -110
  85. package/dist/bridge/helper.js +0 -203
  86. package/dist/bridge/types.js +0 -10
  87. package/dist/cli.js +0 -40
  88. package/dist/commands/ask.js +0 -259
  89. package/dist/commands/bridge.js +0 -88
  90. package/dist/commands/create.js +0 -25
  91. package/dist/commands/develop.js +0 -141
  92. package/dist/commands/doctor.js +0 -102
  93. package/dist/commands/flow.js +0 -301
  94. package/dist/commands/framework.js +0 -273
  95. package/dist/commands/generate.js +0 -59
  96. package/dist/commands/install.js +0 -100
  97. package/dist/commands/pack.js +0 -33
  98. package/dist/commands/phase.js +0 -38
  99. package/dist/commands/run.js +0 -199
  100. package/dist/commands/status.js +0 -114
  101. package/dist/commands/uninstall.js +0 -14
  102. package/dist/commands/use.js +0 -20
  103. package/dist/commands/validate.js +0 -102
  104. package/dist/framework/framework-loader.js +0 -97
  105. package/dist/framework/framework-paths.js +0 -48
  106. package/dist/framework/framework-types.js +0 -15
  107. package/dist/iris/artifact-checker.js +0 -78
  108. package/dist/iris/artifacts/config.js +0 -68
  109. package/dist/iris/artifacts/generator.js +0 -88
  110. package/dist/iris/artifacts/types.js +0 -1
  111. package/dist/iris/bundle.js +0 -44
  112. package/dist/iris/doctrine/collector.js +0 -124
  113. package/dist/iris/fixer.js +0 -149
  114. package/dist/iris/flows/manifest.js +0 -124
  115. package/dist/iris/framework-context.js +0 -49
  116. package/dist/iris/framework-manager.js +0 -215
  117. package/dist/iris/fs/atomic.js +0 -22
  118. package/dist/iris/guard.js +0 -38
  119. package/dist/iris/importers/index.js +0 -9
  120. package/dist/iris/importers/types.js +0 -8
  121. package/dist/iris/importers/writer.js +0 -139
  122. package/dist/iris/include.js +0 -49
  123. package/dist/iris/installer.js +0 -334
  124. package/dist/iris/interactive/env.js +0 -21
  125. package/dist/iris/interactive/intent-interview.js +0 -345
  126. package/dist/iris/interactive/intent-schema.js +0 -28
  127. package/dist/iris/interactive/interview-io.js +0 -22
  128. package/dist/iris/interview/config.js +0 -71
  129. package/dist/iris/interview/types.js +0 -16
  130. package/dist/iris/interview/utils.js +0 -38
  131. package/dist/iris/manifest.js +0 -54
  132. package/dist/iris/packer.js +0 -325
  133. package/dist/iris/parsers/unit-parser.js +0 -43
  134. package/dist/iris/paths.js +0 -18
  135. package/dist/iris/policy.js +0 -133
  136. package/dist/iris/proc.js +0 -56
  137. package/dist/iris/report.js +0 -53
  138. package/dist/iris/resolver.js +0 -66
  139. package/dist/iris/router.js +0 -114
  140. package/dist/iris/routes.js +0 -189
  141. package/dist/iris/run-state.js +0 -146
  142. package/dist/iris/state.js +0 -113
  143. package/dist/iris/templates.js +0 -70
  144. package/dist/iris/tmp.js +0 -24
  145. package/dist/iris/uninstaller.js +0 -181
  146. package/dist/iris/utils/interpolate.js +0 -42
  147. package/dist/iris/validator.js +0 -391
  148. package/dist/iris/workflow/config.js +0 -51
  149. package/dist/iris/workflow/engine.js +0 -129
  150. package/dist/iris/workflow/steps.js +0 -448
  151. package/dist/iris/workflow/types.js +0 -1
  152. package/dist/iris_bundle/frameworks/iris-core/framework.yaml +0 -9
  153. package/dist/iris_bundle/frameworks/iris-core/memory/memory-bank.yaml +0 -1
  154. package/dist/iris_bundle/frameworks/iris-core/policy.yaml +0 -7
  155. package/dist/iris_bundle/frameworks/iris-core/templates/config/memory-bank.yaml +0 -1
  156. package/dist/iris_bundle/frameworks/iris-core/templates/construction/bolt-types/spike-bolt.md +0 -240
  157. package/dist/lib.js +0 -96
  158. package/dist/templates/construction/bolt-template.md +0 -226
  159. package/dist/templates/construction/bolt-types/ddd-construction-bolt/adr-template.md +0 -49
  160. package/dist/templates/construction/bolt-types/ddd-construction-bolt/ddd-01-domain-model-template.md +0 -55
  161. package/dist/templates/construction/bolt-types/ddd-construction-bolt/ddd-02-technical-design-template.md +0 -67
  162. package/dist/templates/construction/bolt-types/ddd-construction-bolt/ddd-03-test-report-template.md +0 -62
  163. package/dist/templates/construction/bolt-types/ddd-construction-bolt.md +0 -528
  164. package/dist/templates/construction/bolt-types/simple-construction-bolt.md +0 -347
  165. package/dist/templates/inception/requirements-template.md +0 -144
  166. package/dist/templates/inception/stories-template.md +0 -38
  167. package/dist/templates/inception/story-template.md +0 -147
  168. package/dist/templates/inception/system-context-template.md +0 -29
  169. package/dist/templates/inception/unit-brief-template.md +0 -177
  170. package/dist/templates/inception/units-template.md +0 -52
  171. package/dist/utils/exit-codes.js +0 -7
  172. package/dist/utils/logo.js +0 -17
  173. package/dist/workflows/bolt-execution.js +0 -238
  174. package/dist/workflows/bolt-plan.js +0 -221
  175. package/dist/workflows/intent-inception.js +0 -285
  176. package/dist/workflows/memory-bank-generator.js +0 -180
  177. package/dist/workflows/reporting.js +0 -74
  178. /package/{dist/iris_bundle/frameworks/iris-core → flows/aidlc}/templates/construction/bolt-template.md +0 -0
  179. /package/{dist/iris_bundle/frameworks/iris-core → flows/aidlc}/templates/construction/bolt-types/ddd-construction-bolt/adr-template.md +0 -0
  180. /package/{dist/iris_bundle/frameworks/iris-core → flows/aidlc}/templates/construction/bolt-types/ddd-construction-bolt/ddd-01-domain-model-template.md +0 -0
  181. /package/{dist/iris_bundle/frameworks/iris-core → flows/aidlc}/templates/construction/bolt-types/ddd-construction-bolt/ddd-02-technical-design-template.md +0 -0
  182. /package/{dist/iris_bundle/frameworks/iris-core → flows/aidlc}/templates/construction/bolt-types/ddd-construction-bolt/ddd-03-test-report-template.md +0 -0
  183. /package/{dist/iris_bundle/frameworks/iris-core → flows/aidlc}/templates/construction/bolt-types/simple-construction-bolt.md +0 -0
  184. /package/{dist/iris_bundle/frameworks/iris-core → flows/aidlc}/templates/inception/requirements-template.md +0 -0
  185. /package/{dist/iris_bundle/frameworks/iris-core → flows/aidlc}/templates/inception/stories-template.md +0 -0
  186. /package/{dist/iris_bundle/frameworks/iris-core → flows/aidlc}/templates/inception/story-template.md +0 -0
  187. /package/{dist/iris_bundle/frameworks/iris-core → flows/aidlc}/templates/inception/system-context-template.md +0 -0
  188. /package/{dist/iris_bundle/frameworks/iris-core → flows/aidlc}/templates/inception/unit-brief-template.md +0 -0
  189. /package/{dist/iris_bundle/frameworks/iris-core → flows/aidlc}/templates/inception/units-template.md +0 -0
@@ -0,0 +1,259 @@
1
+ # Skill: Deploy to Environment
2
+
3
+ ---
4
+
5
+ ## Progress Display
6
+
7
+ Show at start of this skill (varies by environment):
8
+
9
+ ```text
10
+ ### Operations Progress
11
+ - [x] Build approval
12
+ - [ ] Staging deploy ← current (or)
13
+ - [ ] Production deploy ← current
14
+ - [ ] Monitoring setup
15
+ ```
16
+
17
+ ---
18
+
19
+ ## Checkpoints in This Skill
20
+
21
+ | Checkpoint | Purpose | Wait For |
22
+ |------------|---------|----------|
23
+ | Checkpoint 2 | Staging deploy approval | User confirmation |
24
+ | Checkpoint 3 | Production deploy approval | User confirmation (⚠️ affects users) |
25
+
26
+ ---
27
+
28
+ ## Goal
29
+
30
+ Deploy built artifacts to a target environment with progressive validation and rollback capability.
31
+
32
+ ---
33
+
34
+ ## Input
35
+
36
+ - **Required**: `--unit` - The unit to deploy
37
+ - **Required**: `--env` - Target environment (`dev`, `staging`, `prod`)
38
+ - **Required**: `.iris/aidlc/memory-bank.yaml` - artifact schema
39
+ - **Optional**: `--version` - Specific version (default: latest build)
40
+
41
+ ---
42
+
43
+ ## Process
44
+
45
+ ### 1. Verify Prerequisites
46
+
47
+ - [ ] **Build exists**: Required for all environments
48
+ - [ ] **Tests passing**: Required for all environments
49
+ - [ ] **Deployed to dev**: Required for staging, prod
50
+ - [ ] **Deployed to staging**: Required for prod
51
+ - [ ] **Staging verification passed**: Required for prod
52
+
53
+ ### 2. Environment Progression
54
+
55
+ ```markdown
56
+ ## Deployment Progression
57
+
58
+ Dev ──────► Staging ──────► Production
59
+ │ │ │
60
+ ▼ ▼ ▼
61
+ Fast Validation Real users
62
+ iteration required approval required
63
+ ```
64
+
65
+ ### 3. Pre-Deployment Checks
66
+
67
+ For the target environment:
68
+
69
+ - [ ] **Infrastructure**: Verify resources exist
70
+ - [ ] **Secrets**: Confirm secrets configured
71
+ - [ ] **Dependencies**: Check external services available
72
+ - [ ] **Current version**: Record for rollback
73
+
74
+ ### 4. Execute Deployment
75
+
76
+ Based on deployment type:
77
+
78
+ - **Container** → Update container image
79
+ - **Serverless** → Deploy function
80
+ - **Static** → Sync to CDN/bucket
81
+ - **Kubernetes** → Apply manifests
82
+
83
+ ### 5. Wait for Health
84
+
85
+ Monitor deployment until healthy:
86
+
87
+ - Health check endpoint responding
88
+ - No crash loops
89
+ - Readiness probes passing
90
+
91
+ ### 6. Document Deployment
92
+
93
+ Append to `deployment/history.md`:
94
+
95
+ ```markdown
96
+ ---
97
+ version: {version}
98
+ environment: {env}
99
+ deployed: {timestamp}
100
+ deployed_by: {user}
101
+ status: success
102
+ ---
103
+
104
+ ## Deployment: {version} → {env}
105
+
106
+ ### Details
107
+
108
+ - **Version**: `{version}`
109
+ - **Environment**: {env}
110
+ - **Timestamp**: {timestamp}
111
+ - **Duration**: {duration}
112
+ - **Previous Version**: `{prev-version}`
113
+
114
+ ### Changes
115
+ {diff summary from previous version}
116
+
117
+ ### Rollback Command
118
+ ```text
119
+ deploy --unit="{unit}" --env="{env}" --version="{prev-version}"
120
+ ```
121
+
122
+ ---
123
+
124
+ ## Output
125
+
126
+ ```markdown
127
+ ## Deployment Complete: {unit-name}
128
+
129
+ ### Status
130
+
131
+ - **Version**: `{version}`
132
+ - **Environment**: {env}
133
+ - **Status**: ✅ Deployed
134
+ - **Health**: ✅ Healthy
135
+
136
+ ### Deployment Details
137
+ - Started: {start-time}
138
+ - Completed: {end-time}
139
+ - Duration: {duration}
140
+
141
+ ### Environment State
142
+
143
+ - ✅ **Development**: `{version}` - Active
144
+ - ✅ **Staging**: `{version}` - Active
145
+ - ⏳ **Production**: `{prev-version}` - Awaiting
146
+
147
+ ### Documentation Updated
148
+ - `{unit-path}/deployment/history.md`
149
+
150
+ ### Actions
151
+
152
+ 1 - **verify**: Verify this deployment
153
+ 2 - **deploy**: Deploy to next environment
154
+ 3 - **menu**: Return to operations menu
155
+
156
+ ### Suggested Next Step
157
+ → **verify** - Verify deployment in {env}
158
+
159
+ **Type a number or press Enter for suggested action.**
160
+ ```
161
+
162
+ ---
163
+
164
+ ## Output (Production Approval Required)
165
+
166
+ ````markdown
167
+ ## Production Deployment: {unit-name}
168
+
169
+ ### ⚠️ PRODUCTION DEPLOYMENT APPROVAL REQUIRED
170
+
171
+ This deployment will affect real users.
172
+
173
+ ### Pre-Deployment Checklist
174
+ - [x] Staging deployment successful
175
+ - [x] Staging verification passed
176
+ - [x] All tests passing
177
+ - [ ] **Human approval required**
178
+
179
+ ### Deployment Plan
180
+
181
+ - **Version**: `{version}`
182
+ - **Current Production**: `{current-version}`
183
+ - **Changes**: {summary}
184
+
185
+ ### Rollback Plan
186
+ If issues detected:
187
+ ```text
188
+ deploy --unit="{unit}" --env="prod" --version="{current-version}"
189
+ ```
190
+
191
+ ### Proceed?
192
+ >
193
+ > "⚠️ This will deploy to PRODUCTION. All staging checks passed. Approve deployment? (yes/no)"
194
+ ````
195
+
196
+ ---
197
+
198
+ ## Staging Deploy Confirmation
199
+
200
+ **Checkpoint 2**: Ask user to confirm staging deploy:
201
+
202
+ ```text
203
+ Ready to deploy to staging?
204
+
205
+ Version: {version}
206
+ Environment: Staging (production-like validation)
207
+
208
+ This will update the staging environment.
209
+ 1 - Yes, deploy to staging
210
+ 2 - Cancel
211
+ ```
212
+
213
+ **Wait for user response.**
214
+
215
+ ---
216
+
217
+ ## Production Deploy Confirmation
218
+
219
+ **Checkpoint 3**: Ask user to confirm production deploy (⚠️ CRITICAL):
220
+
221
+ ```text
222
+ ⚠️ PRODUCTION DEPLOYMENT
223
+
224
+ This affects real users.
225
+
226
+ Version: {version}
227
+ Current Production: {current-version}
228
+ All staging tests: ✅ Passed
229
+
230
+ Rollback command ready:
231
+ deploy --unit="{unit}" --env="prod" --version="{current-version}"
232
+
233
+ Proceed with production deployment?
234
+ 1 - Yes, deploy to PRODUCTION
235
+ 2 - Cancel
236
+ ```
237
+
238
+ **Wait for user response.**
239
+
240
+ ---
241
+
242
+ ## Transition
243
+
244
+ After deploy approved and completed:
245
+
246
+ - → **Verify** - verify deployment health
247
+ - → **Monitor** - setup monitoring (after production)
248
+
249
+ ---
250
+
251
+ ## Test Contract
252
+
253
+ ```yaml
254
+ input: Unit name, version, environment
255
+ output: Deployed artifact, history.md documentation
256
+ checkpoints: 1-2
257
+ - Checkpoint 2: Staging deploy approved (if staging)
258
+ - Checkpoint 3: Production deploy approved (if production)
259
+ ```
@@ -0,0 +1,265 @@
1
+ # Skill: Setup Monitoring
2
+
3
+ ---
4
+
5
+ ## Progress Display
6
+
7
+ Show at start of this skill:
8
+
9
+ ```text
10
+ ### Operations Progress
11
+ - [x] Build approval
12
+ - [x] Staging deploy
13
+ - [x] Production deploy
14
+ - [ ] Monitoring setup ← current
15
+ ```
16
+
17
+ ---
18
+
19
+ ## Checkpoints in This Skill
20
+
21
+ | Checkpoint | Purpose | Wait For |
22
+ |------------|---------|----------|
23
+ | Checkpoint 4 | Monitoring setup approval | User confirmation |
24
+
25
+ ---
26
+
27
+ ## Goal
28
+
29
+ Configure observability (metrics, logging, alerting) for the unit and document operational runbooks.
30
+
31
+ ---
32
+
33
+ ## Input
34
+
35
+ - **Required**: `--unit` - The unit to monitor
36
+ - **Required**: `.iris/aidlc/memory-bank.yaml` - artifact schema
37
+ - **Optional**: `--env` - Specific environment (default: all)
38
+
39
+ ---
40
+
41
+ ## Process
42
+
43
+ ### 1. Identify Key Metrics
44
+
45
+ Implement RED method (Rate, Errors, Duration):
46
+
47
+ - **Rate**: Requests/sec → Traffic patterns
48
+ - **Errors**: Error rate, error types → Health indicator
49
+ - **Duration**: Latency percentiles → Performance
50
+ - **Saturation**: CPU, Memory, Connections → Capacity
51
+
52
+ ### 2. Define SLIs/SLOs
53
+
54
+ Service Level Indicators and Objectives:
55
+
56
+ - **Availability**: 99.9% (measured by uptime)
57
+ - **Latency**: p95 < 200ms (measured by response time)
58
+ - **Error Rate**: < 0.1% (measured by 5xx responses)
59
+ - **Throughput**: > 1000 req/s (measured by requests per second)
60
+
61
+ ### 3. Configure Alerting
62
+
63
+ Set up alerts for SLO violations:
64
+
65
+ - **High Error Rate**: > 1% for 5min → Critical → Page on-call
66
+ - **High Latency**: p95 > 500ms for 10min → Warning → Investigate
67
+ - **Service Down**: Health check failing → Critical → Page on-call
68
+ - **Resource Exhaustion**: CPU/Memory > 90% → Warning → Scale up
69
+
70
+ ### 4. Setup Logging
71
+
72
+ Configure structured logging:
73
+
74
+ ```markdown
75
+ ### Log Configuration
76
+
77
+ **Format**: JSON structured logs
78
+ **Fields**:
79
+ - timestamp
80
+ - level
81
+ - service
82
+ - trace_id
83
+ - message
84
+ - context
85
+
86
+ **Aggregation**: {log service}
87
+ **Retention**: {days}
88
+ ```
89
+
90
+ ### 5. Create Dashboards
91
+
92
+ Dashboard layout recommendation:
93
+
94
+ ```markdown
95
+ ### Dashboard Sections
96
+
97
+ 1. **Overview Panel**
98
+ - Request rate
99
+ - Error rate
100
+ - p50/p95/p99 latency
101
+ - Active instances
102
+
103
+ 2. **Errors Panel**
104
+ - Error breakdown by type
105
+ - Error rate trend
106
+ - Recent error logs
107
+
108
+ 3. **Performance Panel**
109
+ - Latency distribution
110
+ - Throughput trend
111
+ - Slow endpoints
112
+
113
+ 4. **Resources Panel**
114
+ - CPU usage
115
+ - Memory usage
116
+ - Connection pools
117
+ ```
118
+
119
+ ### 6. Document Runbooks
120
+
121
+ Create operational runbooks:
122
+
123
+ ```markdown
124
+ ### Runbook: High Error Rate
125
+
126
+ **Trigger**: Error rate > 1% for 5 minutes
127
+
128
+ **Steps**:
129
+ 1. Check recent deployments
130
+ 2. Review error logs for patterns
131
+ 3. Check external dependencies
132
+ 4. If deployment-related: rollback
133
+ 5. If external: check status pages
134
+
135
+ **Escalation**: If unresolved in 15 min, escalate to {team}
136
+ ```
137
+
138
+ ### 7. Document Configuration
139
+
140
+ Create/update `deployment/monitoring.md`:
141
+
142
+ ```markdown
143
+ ---
144
+ unit: {UUU}-{unit-name}
145
+ configured: {timestamp}
146
+ ---
147
+
148
+ ## Monitoring Configuration: {unit-name}
149
+
150
+ ### Dashboards
151
+
152
+ - **Overview**: {url} - General health
153
+ - **Errors**: {url} - Error analysis
154
+ - **Performance**: {url} - Latency tracking
155
+
156
+ ### Alerts
157
+
158
+ - **High Error Rate**: > 1% → PagerDuty
159
+ - **High Latency**: p95 > 500ms → Slack
160
+ - **Service Down**: Health failing → PagerDuty
161
+
162
+ ### SLOs
163
+
164
+ - **Availability**: 99.9% (30-day window)
165
+ - **Latency (p95)**: < 200ms (30-day window)
166
+
167
+ ### Logs
168
+
169
+ - **Location**: {log aggregator URL}
170
+ - **Query**: `service="{unit}"`
171
+ - **Retention**: {days}
172
+
173
+ ### Runbooks
174
+
175
+ - **High Error Rate**: `runbook/high-error-rate.md`
176
+ - **Performance Degradation**: `runbook/performance.md`
177
+ - **Service Recovery**: `runbook/recovery.md`
178
+ ```
179
+
180
+ ---
181
+
182
+ ## Output
183
+
184
+ ```markdown
185
+ ## Monitoring Configured: {unit-name}
186
+
187
+ ### Status: ✅ COMPLETE
188
+
189
+ ### Observability Stack
190
+
191
+ - ✅ **Metrics**: Configured at {metrics-url}
192
+ - ✅ **Logging**: Configured at {logs-url}
193
+ - ✅ **Alerting**: Configured at {alerts-url}
194
+ - ✅ **Dashboards**: Created at {dashboard-url}
195
+
196
+ ### Alert Channels
197
+
198
+ - **Critical**: PagerDuty
199
+ - **Warning**: Slack
200
+ - **Info**: Email
201
+
202
+ ### SLOs Defined
203
+
204
+ - **Availability**: 99.9%
205
+ - **Latency (p95)**: < 200ms
206
+ - **Error Rate**: < 0.1%
207
+
208
+ ### Documentation Created
209
+ - `{unit-path}/deployment/monitoring.md`
210
+
211
+ ### Operations Complete
212
+ ✅ Unit `{unit-name}` is now fully operational with monitoring.
213
+
214
+ ### Actions
215
+
216
+ 1 - **adjust**: Fine-tune alert thresholds
217
+ 2 - **runbook**: Create additional runbooks
218
+ 3 - **menu**: Return to operations menu
219
+
220
+ ### Suggested Next Step
221
+ → **menu** - Monitor for 24-48 hours, then return for adjustments
222
+
223
+ **Type a number or press Enter for suggested action.**
224
+ ```
225
+
226
+ ---
227
+
228
+ ## Monitoring Setup Confirmation
229
+
230
+ **Checkpoint 4**: Ask user to confirm monitoring setup:
231
+
232
+ ```text
233
+ Ready to configure monitoring?
234
+
235
+ This will set up:
236
+ 1. Dashboards (Overview, Errors, Performance)
237
+ 2. Alerts (Error rate, Latency, Health)
238
+ 3. SLOs (Availability, Latency targets)
239
+ 4. Runbooks (Incident response)
240
+
241
+ Proceed with monitoring setup?
242
+ 1 - Yes, configure monitoring
243
+ 2 - Skip (not recommended for production)
244
+ ```
245
+
246
+ **Wait for user response.**
247
+
248
+ ---
249
+
250
+ ## Transition
251
+
252
+ After monitoring approved and completed:
253
+
254
+ - → **Operations Complete** - unit is fully deployed and monitored
255
+
256
+ ---
257
+
258
+ ## Test Contract
259
+
260
+ ```yaml
261
+ input: Unit name, environment
262
+ output: Dashboards, alerts, SLOs, runbooks, monitoring.md
263
+ checkpoints: 1
264
+ - Checkpoint 4: Monitoring setup approved by user
265
+ ```
@@ -0,0 +1,209 @@
1
+ # Skill: Operations Navigator
2
+
3
+ ---
4
+
5
+ ## Role
6
+
7
+ Entry point for Operations Agent. Routes to appropriate skill based on state.
8
+
9
+ **NO Checkpoint** - Navigator is a routing skill, not a decision point.
10
+
11
+ ---
12
+
13
+ ## Progress Display
14
+
15
+ Show workflow position with checkpoint markers:
16
+
17
+ ```text
18
+ ### Operations Workflow (4 Checkpoints)
19
+
20
+ [Prerequisites] Construction complete?
21
+ |
22
+ [Checkpoint 1] Build approval --> build skill
23
+ |
24
+ [Build + Deploy to Dev]
25
+ |
26
+ [Checkpoint 2] Staging deploy --> deploy skill
27
+ |
28
+ [Deploy to Staging + Verify]
29
+ |
30
+ [Checkpoint 3] Production deploy --> deploy skill
31
+ |
32
+ [Deploy to Production + Verify]
33
+ |
34
+ [Checkpoint 4] Monitoring setup --> monitor skill
35
+ |
36
+ [Operations Complete]
37
+ ```
38
+
39
+ ---
40
+
41
+ ## Goal
42
+
43
+ Present the Operations Agent's skills and guide the user through the deployment and monitoring workflow.
44
+
45
+ ---
46
+
47
+ ## Input
48
+
49
+ - **Required**: `--unit` - The unit to operate on
50
+ - **Required**: `.iris/aidlc/memory-bank.yaml` - artifact schema
51
+
52
+ ---
53
+
54
+ ## Process
55
+
56
+ ### 1. Determine Context
57
+
58
+ Load current operations state:
59
+
60
+ **Prerequisites** (must pass before proceeding):
61
+
62
+ - **Unit exists** - Path from `schema.units` (Required)
63
+ - **All bolts complete** - Path from `schema.bolts` (Required)
64
+ - **Tests passing** - Bolt completion status (Required)
65
+
66
+ **Deployment Status** (from `deployment/` artifacts):
67
+
68
+ - Build status and version
69
+ - Deployment history per environment
70
+ - Verification status
71
+ - Monitoring status
72
+
73
+ ### 2. Present Menu
74
+
75
+ Build menu dynamically using the Output sections below based on current state.
76
+
77
+ ### 3. Context-Aware Suggestions
78
+
79
+ Based on deployment state:
80
+
81
+ - **No build** → Build artifacts
82
+ - **Build done, not deployed** → Deploy to dev
83
+ - **Deployed to dev, not verified** → Verify dev
84
+ - **Dev verified, not in staging** → Deploy to staging
85
+ - **Staging verified, not in prod** → Deploy to production
86
+ - **Prod deployed, not verified** → Verify production
87
+ - **Prod verified, no monitoring** → Setup monitoring
88
+ - **All complete** → Operations complete
89
+
90
+ ### 4. Handle Selection
91
+
92
+ When user selects an option:
93
+
94
+ 1. Acknowledge the selection
95
+ 2. Load the corresponding skill file
96
+ 3. Execute with current context
97
+
98
+ ---
99
+
100
+ ## Output (Ready for Operations)
101
+
102
+ ```markdown
103
+ ## Operations Agent
104
+
105
+ ### Unit: `{unit-name}`
106
+ **Construction Status**: ✅ Complete ({n} bolts)
107
+ **Stories Delivered**: {n}
108
+
109
+ ### Deployment Status
110
+
111
+ - [ ] Development: Not deployed
112
+ - [ ] Staging: Not deployed
113
+ - [ ] Production: Not deployed
114
+
115
+ ### Quick Actions
116
+
117
+ 1 - **Build artifacts**: Create deployment package (`build --unit="{unit}"`)
118
+ 2 - **View build history**: See previous builds (`build --unit="{unit}" --history`)
119
+
120
+ ### Workflow
121
+ Build → Dev → Verify → Staging → Verify → Prod → Verify → Monitor
122
+
123
+ ### Suggested Next Step
124
+ → **Build deployment artifacts** to start the deployment pipeline
125
+
126
+ **Type a number to continue.**
127
+ ```
128
+
129
+ ---
130
+
131
+ ## Output (Partially Deployed)
132
+
133
+ ```markdown
134
+ ## Operations Agent
135
+
136
+ ### Unit: `{unit-name}`
137
+ **Latest Build**: `v{version}`
138
+
139
+ ### Deployment Status
140
+
141
+ - ✅ Development: `v{version}` - Deployed, Verified
142
+ - ⏳ Staging: `v{version}` - Deployed, Pending verification ← current
143
+ - ⚠️ Production: `v{prev}` - Outdated, Verified
144
+
145
+ ### Quick Actions
146
+
147
+ 1 - **Verify staging**: Validate deployment (`verify --unit="{unit}" --env="staging"`)
148
+ 2 - **Deploy to prod**: Promote to production (`deploy --unit="{unit}" --env="prod"`)
149
+ 3 - **View history**: See deployment history (`history --unit="{unit}"`)
150
+
151
+ ### Suggested Next Step
152
+ → **Verify staging deployment** before promoting to production
153
+
154
+ **Type a number to continue.**
155
+ ```
156
+
157
+ ---
158
+
159
+ ## Output (Fully Deployed)
160
+
161
+ ```markdown
162
+ ## Operations Agent
163
+
164
+ ### Unit: `{unit-name}`
165
+ **Status**: ✅ FULLY OPERATIONAL
166
+
167
+ ### All Environments
168
+
169
+ - ✅ Development: `v{version}` - Verified, Monitored
170
+ - ✅ Staging: `v{version}` - Verified, Monitored
171
+ - ✅ Production: `v{version}` - Verified, Monitored
172
+
173
+ ### Resources
174
+ - Dashboard: {dashboard-url}
175
+ - Logs: {logs-url}
176
+ - Alerts: {alerts-url}
177
+
178
+ ### Available Actions
179
+
180
+ 1 - **View metrics**: Open monitoring dashboard
181
+ 2 - **View logs**: Open log aggregator
182
+ 3 - **Rollback**: Deploy previous version
183
+ 4 - **Deploy new version**: When code changes
184
+
185
+ ### Unit Complete
186
+ ✅ Unit `{unit-name}` is fully deployed and monitored.
187
+
188
+ **Type a number or return to Master Agent.**
189
+ ```
190
+
191
+ ---
192
+
193
+ ## Transition
194
+
195
+ After user selection:
196
+
197
+ - → Load selected skill
198
+ - → Skill contains the Checkpoint markers
199
+ - → Execute skill process
200
+
201
+ ---
202
+
203
+ ## Test Contract
204
+
205
+ ```yaml
206
+ input: Unit state, deployment status
207
+ output: Menu with skill options, suggested next step
208
+ checkpoints: 0 (routing only)
209
+ ```