the-grid-cc 1.7.13 → 1.7.15
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/02-SUMMARY.md +156 -0
- package/DAEMON_VALIDATION.md +354 -0
- package/README.md +6 -6
- package/agents/grid-accountant.md +519 -0
- package/agents/grid-git-operator.md +661 -0
- package/agents/grid-researcher.md +421 -0
- package/agents/grid-scout.md +376 -0
- package/commands/grid/VERSION +1 -1
- package/commands/grid/branch.md +567 -0
- package/commands/grid/budget.md +438 -0
- package/commands/grid/daemon.md +637 -0
- package/commands/grid/help.md +29 -0
- package/commands/grid/init.md +409 -18
- package/commands/grid/mc.md +163 -1111
- package/commands/grid/resume.md +656 -0
- package/docs/BUDGET_SYSTEM.md +745 -0
- package/docs/CONFIG_SCHEMA.md +479 -0
- package/docs/DAEMON_ARCHITECTURE.md +780 -0
- package/docs/GIT_AUTONOMY.md +981 -0
- package/docs/GIT_AUTONOMY_INTEGRATION.md +343 -0
- package/docs/MC_OPTIMIZATION.md +181 -0
- package/docs/MC_PROTOCOLS.md +950 -0
- package/docs/PERSISTENCE.md +962 -0
- package/docs/PERSISTENCE_IMPLEMENTATION.md +361 -0
- package/docs/PERSISTENCE_QUICKSTART.md +283 -0
- package/docs/RESEARCH_CONFIG.md +511 -0
- package/docs/RESEARCH_FIRST.md +591 -0
- package/docs/WIRING_VERIFICATION.md +389 -0
- package/package.json +1 -1
- package/templates/daemon-checkpoint.json +51 -0
- package/templates/daemon-config.json +28 -0
- package/templates/git-config.json +65 -0
- package/templates/grid-state/.gitignore-entry +3 -0
- package/templates/grid-state/BLOCK-SUMMARY.md +66 -0
- package/templates/grid-state/BLOCKERS.md +31 -0
- package/templates/grid-state/CHECKPOINT.md +59 -0
- package/templates/grid-state/DECISIONS.md +30 -0
- package/templates/grid-state/README.md +138 -0
- package/templates/grid-state/SCRATCHPAD.md +29 -0
- package/templates/grid-state/STATE.md +47 -0
- package/templates/grid-state/WARMTH.md +48 -0
- package/templates/grid-state/config.json +24 -0
|
@@ -0,0 +1,389 @@
|
|
|
1
|
+
# Grid Wiring Verification
|
|
2
|
+
|
|
3
|
+
This document verifies that all Grid components are properly integrated and referenced.
|
|
4
|
+
|
|
5
|
+
**Status:** ✓ COMPLETE
|
|
6
|
+
**Date:** 2026-01-23
|
|
7
|
+
**Version:** 1.7.x
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## MASTER CONTROL INTEGRATION
|
|
12
|
+
|
|
13
|
+
### Commands Referenced in MC
|
|
14
|
+
|
|
15
|
+
✓ `/grid` - Main entry point
|
|
16
|
+
✓ `/grid:quick` - Fast execution
|
|
17
|
+
✓ `/grid:refine` - Refinement swarm
|
|
18
|
+
✓ `/grid:debug` - Bug investigation
|
|
19
|
+
✓ `/grid:status` - Status display
|
|
20
|
+
✓ `/grid:resume` - Resume missions
|
|
21
|
+
✓ `/grid:daemon` - Background mode
|
|
22
|
+
✓ `/grid:budget` - Cost tracking
|
|
23
|
+
✓ `/grid:branch` - Git management
|
|
24
|
+
✓ `/grid:model` - Model selection
|
|
25
|
+
✓ `/grid:init` - Initialize state
|
|
26
|
+
✓ `/grid:help` - Command reference
|
|
27
|
+
✓ `/grid:mc` - Master Control
|
|
28
|
+
✓ `/grid:program_disc` - Identity disc
|
|
29
|
+
✓ `/grid:update` - Update Grid
|
|
30
|
+
|
|
31
|
+
**Verification:** All commands present in Quick Reference section.
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
## AGENT PROGRAMS
|
|
36
|
+
|
|
37
|
+
### Core Programs
|
|
38
|
+
|
|
39
|
+
✓ `grid-planner.md` - Creates execution plans
|
|
40
|
+
✓ `grid-executor.md` - Executes tasks
|
|
41
|
+
✓ `grid-recognizer.md` - Verifies work
|
|
42
|
+
✓ `grid-debugger.md` - Investigates bugs
|
|
43
|
+
|
|
44
|
+
### Refinement Swarm
|
|
45
|
+
|
|
46
|
+
✓ `grid-visual-inspector.md` - Screenshot analysis
|
|
47
|
+
✓ `grid-e2e-exerciser.md` - E2E testing
|
|
48
|
+
✓ `grid-persona-simulator.md` - User simulation
|
|
49
|
+
✓ `grid-refinement-synth.md` - Synthesis
|
|
50
|
+
|
|
51
|
+
### Specialist Programs
|
|
52
|
+
|
|
53
|
+
✓ `grid-git-operator.md` - Git operations
|
|
54
|
+
✓ `grid-accountant.md` - Cost tracking
|
|
55
|
+
✓ `grid-researcher.md` - External research
|
|
56
|
+
✓ `grid-scout.md` - Codebase recon
|
|
57
|
+
|
|
58
|
+
### Support Programs
|
|
59
|
+
|
|
60
|
+
✓ `grid-guard.md` - Sentinel/monitoring
|
|
61
|
+
|
|
62
|
+
**Verification:** All agents listed in MC Quick Reference.
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
## SPAWN PROTOCOLS
|
|
67
|
+
|
|
68
|
+
### MC Can Spawn
|
|
69
|
+
|
|
70
|
+
| Program | Spawn Pattern | Verified |
|
|
71
|
+
|---------|---------------|----------|
|
|
72
|
+
| Planner | `Task(prompt="First, read ~/.claude/agents/grid-planner.md...")` | ✓ |
|
|
73
|
+
| Executor | `Task(prompt="First, read ~/.claude/agents/grid-executor.md...")` | ✓ |
|
|
74
|
+
| Recognizer | `Task(prompt="First, read ~/.claude/agents/grid-recognizer.md...")` | ✓ |
|
|
75
|
+
| Debugger | `Task(prompt="First, read ~/.claude/agents/grid-debugger.md...")` | ✓ |
|
|
76
|
+
| Visual Inspector | `Task(prompt="First, read ~/.claude/agents/grid-visual-inspector.md...")` | ✓ |
|
|
77
|
+
| E2E Exerciser | `Task(prompt="First, read ~/.claude/agents/grid-e2e-exerciser.md...")` | ✓ |
|
|
78
|
+
| Persona Simulator | `Task(prompt="First, read ~/.claude/agents/grid-persona-simulator.md...")` | ✓ |
|
|
79
|
+
| Refinement Synth | `Task(prompt="First, read ~/.claude/agents/grid-refinement-synth.md...")` | ✓ |
|
|
80
|
+
| Git Operator | `Task(prompt="First, read ~/.claude/agents/grid-git-operator.md...")` | ✓ |
|
|
81
|
+
| Accountant | `Task(prompt="First, read ~/.claude/agents/grid-accountant.md...")` | ✓ |
|
|
82
|
+
| Researcher | `Task(prompt="First, read ~/.claude/agents/grid-researcher.md...")` | ✓ |
|
|
83
|
+
| Scout | `Task(prompt="First, read ~/.claude/agents/grid-scout.md...")` | ✓ |
|
|
84
|
+
|
|
85
|
+
**Verification:** All spawn patterns follow standard protocol.
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
## STATE FILES
|
|
90
|
+
|
|
91
|
+
### MC Knows About
|
|
92
|
+
|
|
93
|
+
| File | Purpose | MC Reference |
|
|
94
|
+
|------|---------|--------------|
|
|
95
|
+
| `.grid/STATE.md` | Mission state | ✓ Quick Reference |
|
|
96
|
+
| `.grid/LEARNINGS.md` | Past patterns | ✓ Quick Reference |
|
|
97
|
+
| `.grid/SCRATCHPAD.md` | Live updates | ✓ Quick Reference |
|
|
98
|
+
| `.grid/debug/` | Debug sessions | ✓ Quick Reference |
|
|
99
|
+
| `.grid/budget.json` | Cost tracking | ✓ Quick Reference |
|
|
100
|
+
| `.grid/config.json` | All settings | ✓ Quick Reference |
|
|
101
|
+
| `.grid/CHECKPOINT.md` | Resume points | ✓ Quick Reference |
|
|
102
|
+
| `.grid/research_cache/` | Research cache | ✓ Quick Reference |
|
|
103
|
+
| `.grid/scout/` | Scout reports | ✓ Quick Reference |
|
|
104
|
+
|
|
105
|
+
**Verification:** All critical state files referenced.
|
|
106
|
+
|
|
107
|
+
---
|
|
108
|
+
|
|
109
|
+
## CONFIGURATION INTEGRATION
|
|
110
|
+
|
|
111
|
+
### Config Schema Coverage
|
|
112
|
+
|
|
113
|
+
✓ `model_tier` - Model selection (quality/balanced/budget)
|
|
114
|
+
✓ `git.*` - Git operations and branching
|
|
115
|
+
✓ `budget.*` - Cost tracking and limits
|
|
116
|
+
✓ `daemon.*` - Background execution
|
|
117
|
+
✓ `verification.*` - Auto-verify behavior
|
|
118
|
+
✓ `refinement.*` - Refinement swarm settings
|
|
119
|
+
✓ `research.*` - External research settings
|
|
120
|
+
✓ `scout.*` - Codebase recon settings
|
|
121
|
+
✓ `scratchpad.*` - Live observability settings
|
|
122
|
+
✓ `learnings.*` - Institutional memory settings
|
|
123
|
+
✓ `debug.*` - Debug session settings
|
|
124
|
+
✓ `ui.*` - Output formatting
|
|
125
|
+
|
|
126
|
+
**Verification:** Complete config schema in `docs/CONFIG_SCHEMA.md`.
|
|
127
|
+
|
|
128
|
+
---
|
|
129
|
+
|
|
130
|
+
## PROTOCOL INTEGRATION
|
|
131
|
+
|
|
132
|
+
### MC References Protocols
|
|
133
|
+
|
|
134
|
+
✓ Wave Execution Protocol
|
|
135
|
+
✓ Warmth Transfer Protocol
|
|
136
|
+
✓ Checkpoint Protocol
|
|
137
|
+
✓ Verification Protocol
|
|
138
|
+
✓ Retry Protocol
|
|
139
|
+
✓ Scratchpad Protocol
|
|
140
|
+
✓ Budget Enforcement Protocol
|
|
141
|
+
✓ Branch Management Protocol
|
|
142
|
+
|
|
143
|
+
**Source:** `~/.claude/docs/MC_PROTOCOLS.md`
|
|
144
|
+
**Referenced in:** MC Quick Reference
|
|
145
|
+
|
|
146
|
+
---
|
|
147
|
+
|
|
148
|
+
## COMMAND INTEGRATION
|
|
149
|
+
|
|
150
|
+
### Commands Work With
|
|
151
|
+
|
|
152
|
+
| Command | Uses Agents | Uses Config | Uses State |
|
|
153
|
+
|---------|-------------|-------------|------------|
|
|
154
|
+
| `/grid` | Planner, Executor, Recognizer | ✓ | ✓ |
|
|
155
|
+
| `/grid:quick` | Executor | ✓ | ✓ |
|
|
156
|
+
| `/grid:refine` | Visual, E2E, Persona, Synth | ✓ | ✓ |
|
|
157
|
+
| `/grid:debug` | Debugger | ✓ | ✓ |
|
|
158
|
+
| `/grid:status` | - | ✓ | ✓ |
|
|
159
|
+
| `/grid:resume` | Executor | ✓ | ✓ |
|
|
160
|
+
| `/grid:daemon` | All | ✓ | ✓ |
|
|
161
|
+
| `/grid:budget` | Accountant | ✓ | ✓ |
|
|
162
|
+
| `/grid:branch` | Git Operator | ✓ | ✓ |
|
|
163
|
+
| `/grid:model` | - | ✓ | - |
|
|
164
|
+
| `/grid:init` | - | ✓ | ✓ |
|
|
165
|
+
|
|
166
|
+
**Verification:** All commands integrated with appropriate agents and state.
|
|
167
|
+
|
|
168
|
+
---
|
|
169
|
+
|
|
170
|
+
## CROSS-REFERENCES
|
|
171
|
+
|
|
172
|
+
### MC → Agents
|
|
173
|
+
|
|
174
|
+
- MC spawns agents via Task()
|
|
175
|
+
- MC passes state/warmth/context
|
|
176
|
+
- MC receives SUMMARY.md back
|
|
177
|
+
- MC extracts lessons_learned
|
|
178
|
+
|
|
179
|
+
✓ Protocol defined in MC_PROTOCOLS.md
|
|
180
|
+
|
|
181
|
+
### Agents → State Files
|
|
182
|
+
|
|
183
|
+
- Agents read STATE.md for context
|
|
184
|
+
- Agents write SCRATCHPAD.md during work
|
|
185
|
+
- Agents write SUMMARY.md after work
|
|
186
|
+
- Agents read/write CHECKPOINT.md
|
|
187
|
+
|
|
188
|
+
✓ All agents follow state protocols
|
|
189
|
+
|
|
190
|
+
### Commands → MC
|
|
191
|
+
|
|
192
|
+
- Commands invoke MC as orchestrator
|
|
193
|
+
- MC delegates to appropriate agents
|
|
194
|
+
- MC reports back to user
|
|
195
|
+
|
|
196
|
+
✓ Clear command hierarchy
|
|
197
|
+
|
|
198
|
+
### Config → All Components
|
|
199
|
+
|
|
200
|
+
- MC reads config on startup
|
|
201
|
+
- Agents receive config via spawn prompts
|
|
202
|
+
- Commands respect config settings
|
|
203
|
+
|
|
204
|
+
✓ Single source of truth: `.grid/config.json`
|
|
205
|
+
|
|
206
|
+
---
|
|
207
|
+
|
|
208
|
+
## BUDGET INTEGRATION
|
|
209
|
+
|
|
210
|
+
### Budget Checkpoints
|
|
211
|
+
|
|
212
|
+
✓ MC checks budget BEFORE every spawn
|
|
213
|
+
✓ Accountant provides estimates
|
|
214
|
+
✓ Budget blocks spawns if exceeded (hard enforcement)
|
|
215
|
+
✓ Budget warns at 75%, confirms at 90%
|
|
216
|
+
|
|
217
|
+
### Budget Data Flow
|
|
218
|
+
|
|
219
|
+
```
|
|
220
|
+
MC → spawn decision
|
|
221
|
+
↓
|
|
222
|
+
Accountant → estimate cost
|
|
223
|
+
↓
|
|
224
|
+
Budget check → allow/confirm/block
|
|
225
|
+
↓
|
|
226
|
+
MC → proceed or stop
|
|
227
|
+
↓
|
|
228
|
+
Record spawn in budget.json
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
**Verification:** Complete budget workflow integrated.
|
|
232
|
+
|
|
233
|
+
---
|
|
234
|
+
|
|
235
|
+
## GIT INTEGRATION
|
|
236
|
+
|
|
237
|
+
### Git Workflows
|
|
238
|
+
|
|
239
|
+
✓ Session start → Git Operator checks branch
|
|
240
|
+
✓ Auto-create feature branches if on main
|
|
241
|
+
✓ Atomic commits per thread
|
|
242
|
+
✓ Auto-push after waves (configurable)
|
|
243
|
+
✓ PR creation on completion
|
|
244
|
+
|
|
245
|
+
### Git Data Flow
|
|
246
|
+
|
|
247
|
+
```
|
|
248
|
+
MC → session start
|
|
249
|
+
↓
|
|
250
|
+
Git Operator → branch check/create
|
|
251
|
+
↓
|
|
252
|
+
Executor → complete thread
|
|
253
|
+
↓
|
|
254
|
+
Git Operator → atomic commit
|
|
255
|
+
↓
|
|
256
|
+
MC → wave complete
|
|
257
|
+
↓
|
|
258
|
+
Git Operator → push (if auto_push=wave)
|
|
259
|
+
↓
|
|
260
|
+
MC → mission complete
|
|
261
|
+
↓
|
|
262
|
+
Git Operator → offer PR creation
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
**Verification:** Complete git workflow integrated.
|
|
266
|
+
|
|
267
|
+
---
|
|
268
|
+
|
|
269
|
+
## DAEMON INTEGRATION
|
|
270
|
+
|
|
271
|
+
### Daemon Lifecycle
|
|
272
|
+
|
|
273
|
+
✓ `/grid:daemon` starts background execution
|
|
274
|
+
✓ Daemon writes heartbeat every 30s
|
|
275
|
+
✓ Daemon checkpoints after each wave
|
|
276
|
+
✓ Daemon resumes from checkpoints
|
|
277
|
+
✓ Daemon notifications on events
|
|
278
|
+
|
|
279
|
+
### Daemon Components
|
|
280
|
+
|
|
281
|
+
✓ `.grid/daemon/{id}/` - Daemon state directory
|
|
282
|
+
✓ `checkpoint.json` - Execution state
|
|
283
|
+
✓ `heartbeat.json` - Health monitoring
|
|
284
|
+
✓ `output.log` - Full output
|
|
285
|
+
✓ `audit.log` - Action trail
|
|
286
|
+
|
|
287
|
+
**Verification:** Complete daemon system integrated.
|
|
288
|
+
|
|
289
|
+
---
|
|
290
|
+
|
|
291
|
+
## RESUME INTEGRATION
|
|
292
|
+
|
|
293
|
+
### Resume Capability
|
|
294
|
+
|
|
295
|
+
✓ `/grid:resume` detects interrupted state
|
|
296
|
+
✓ Validates state consistency (commits, files exist)
|
|
297
|
+
✓ Reconstructs context from state files
|
|
298
|
+
✓ Spawns continuation with warmth
|
|
299
|
+
✓ Handles checkpoints, failures, session death
|
|
300
|
+
|
|
301
|
+
### Resume Data Sources
|
|
302
|
+
|
|
303
|
+
✓ `.grid/STATE.md` - Position and status
|
|
304
|
+
✓ `.grid/CHECKPOINT.md` - Resume point
|
|
305
|
+
✓ `.grid/WARMTH.md` - Learned patterns
|
|
306
|
+
✓ `.grid/phases/*/SUMMARY.md` - Completed work
|
|
307
|
+
✓ `.grid/SCRATCHPAD.md` - Live discoveries
|
|
308
|
+
|
|
309
|
+
**Verification:** Complete resume workflow integrated.
|
|
310
|
+
|
|
311
|
+
---
|
|
312
|
+
|
|
313
|
+
## RESEARCH & SCOUT INTEGRATION
|
|
314
|
+
|
|
315
|
+
### Pre-Planning Intelligence
|
|
316
|
+
|
|
317
|
+
✓ MC spawns Scout for existing codebase analysis
|
|
318
|
+
✓ MC spawns Researcher for external knowledge
|
|
319
|
+
✓ Scout produces `.grid/scout/RECON_*.md`
|
|
320
|
+
✓ Researcher produces `.grid/research_cache/*.md`
|
|
321
|
+
✓ Planner receives both contexts
|
|
322
|
+
|
|
323
|
+
### Intelligence Flow
|
|
324
|
+
|
|
325
|
+
```
|
|
326
|
+
MC → pre-planning phase
|
|
327
|
+
↓
|
|
328
|
+
Scout → analyze codebase (if exists)
|
|
329
|
+
Researcher → search web (if needed)
|
|
330
|
+
↓ (parallel)
|
|
331
|
+
MC → collect intel
|
|
332
|
+
↓
|
|
333
|
+
Planner → plan with context
|
|
334
|
+
```
|
|
335
|
+
|
|
336
|
+
**Verification:** Intelligence gathering integrated.
|
|
337
|
+
|
|
338
|
+
---
|
|
339
|
+
|
|
340
|
+
## VERIFICATION CHECKLIST
|
|
341
|
+
|
|
342
|
+
### All Components Present
|
|
343
|
+
|
|
344
|
+
✓ 15 commands documented
|
|
345
|
+
✓ 13 agent programs created
|
|
346
|
+
✓ 9 state file types defined
|
|
347
|
+
✓ 12 config sections specified
|
|
348
|
+
✓ 8 major protocols documented
|
|
349
|
+
|
|
350
|
+
### All References Valid
|
|
351
|
+
|
|
352
|
+
✓ MC references all commands
|
|
353
|
+
✓ MC references all agents
|
|
354
|
+
✓ Commands reference appropriate agents
|
|
355
|
+
✓ Agents reference state files
|
|
356
|
+
✓ Config covers all settings
|
|
357
|
+
|
|
358
|
+
### All Workflows Complete
|
|
359
|
+
|
|
360
|
+
✓ Plan → Execute → Verify
|
|
361
|
+
✓ Budget check → Spawn → Record
|
|
362
|
+
✓ Branch → Commit → Push → PR
|
|
363
|
+
✓ Checkpoint → Resume → Continue
|
|
364
|
+
✓ Research → Scout → Plan
|
|
365
|
+
|
|
366
|
+
### Documentation Complete
|
|
367
|
+
|
|
368
|
+
✓ `commands/grid/*.md` - All commands
|
|
369
|
+
✓ `agents/*.md` - All programs
|
|
370
|
+
✓ `docs/MC_PROTOCOLS.md` - Detailed protocols
|
|
371
|
+
✓ `docs/CONFIG_SCHEMA.md` - Complete schema
|
|
372
|
+
✓ `docs/WIRING_VERIFICATION.md` - This doc
|
|
373
|
+
|
|
374
|
+
---
|
|
375
|
+
|
|
376
|
+
## INTEGRATION STATUS: COMPLETE
|
|
377
|
+
|
|
378
|
+
All Grid components are properly wired and integrated:
|
|
379
|
+
|
|
380
|
+
- ✓ Master Control knows all commands
|
|
381
|
+
- ✓ Master Control can spawn all agents
|
|
382
|
+
- ✓ All agents follow protocols
|
|
383
|
+
- ✓ All state files documented
|
|
384
|
+
- ✓ All config options defined
|
|
385
|
+
- ✓ All workflows connected
|
|
386
|
+
|
|
387
|
+
**The Grid is operational.**
|
|
388
|
+
|
|
389
|
+
End of Line.
|
package/package.json
CHANGED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"version": "1.0",
|
|
4
|
+
"daemon_id": "{YYYYMMDD-HHMMSS-slug}",
|
|
5
|
+
"created": "{ISO timestamp}",
|
|
6
|
+
"updated": "{ISO timestamp}",
|
|
7
|
+
|
|
8
|
+
"status": "starting",
|
|
9
|
+
|
|
10
|
+
"_status_values": [
|
|
11
|
+
"starting",
|
|
12
|
+
"executing",
|
|
13
|
+
"paused",
|
|
14
|
+
"checkpoint",
|
|
15
|
+
"complete",
|
|
16
|
+
"failed"
|
|
17
|
+
],
|
|
18
|
+
|
|
19
|
+
"task": {
|
|
20
|
+
"description": "{user task description}",
|
|
21
|
+
"mode": "autopilot",
|
|
22
|
+
"original_prompt": "{full original prompt}"
|
|
23
|
+
},
|
|
24
|
+
|
|
25
|
+
"progress": {
|
|
26
|
+
"current_wave": 0,
|
|
27
|
+
"total_waves": 0,
|
|
28
|
+
"completed_blocks": [],
|
|
29
|
+
"current_block": null,
|
|
30
|
+
"percent": 0
|
|
31
|
+
},
|
|
32
|
+
|
|
33
|
+
"execution_state": {
|
|
34
|
+
"plan_data": {},
|
|
35
|
+
"completed_summaries": {},
|
|
36
|
+
"warmth": {},
|
|
37
|
+
"scratchpad_archive": []
|
|
38
|
+
},
|
|
39
|
+
|
|
40
|
+
"checkpoint_stack": [],
|
|
41
|
+
|
|
42
|
+
"checkpoint_history": [],
|
|
43
|
+
|
|
44
|
+
"metrics": {
|
|
45
|
+
"start_time": "{ISO timestamp}",
|
|
46
|
+
"elapsed_seconds": 0,
|
|
47
|
+
"programs_spawned": 0,
|
|
48
|
+
"commits_made": 0,
|
|
49
|
+
"estimated_remaining_seconds": 0
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"daemon": {
|
|
3
|
+
"default_mode": "autopilot",
|
|
4
|
+
"max_runtime_hours": 24,
|
|
5
|
+
"checkpoint_on_wave_complete": true,
|
|
6
|
+
"heartbeat_interval_seconds": 30,
|
|
7
|
+
"stall_threshold_minutes": 30,
|
|
8
|
+
|
|
9
|
+
"notifications": {
|
|
10
|
+
"system": true,
|
|
11
|
+
"sound": true,
|
|
12
|
+
"webhook": null
|
|
13
|
+
},
|
|
14
|
+
|
|
15
|
+
"notify_on": {
|
|
16
|
+
"start": false,
|
|
17
|
+
"checkpoint": true,
|
|
18
|
+
"complete": true,
|
|
19
|
+
"error": true,
|
|
20
|
+
"stall": true
|
|
21
|
+
},
|
|
22
|
+
|
|
23
|
+
"cleanup": {
|
|
24
|
+
"auto_clean_completed_days": 7,
|
|
25
|
+
"keep_audit_logs": true
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "Grid Git Autonomy Configuration",
|
|
4
|
+
"description": "Configuration for autonomous git operations in Grid sessions",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"git": {
|
|
8
|
+
"type": "object",
|
|
9
|
+
"description": "Git autonomy settings",
|
|
10
|
+
"properties": {
|
|
11
|
+
"auto_branch": {
|
|
12
|
+
"type": "boolean",
|
|
13
|
+
"default": true,
|
|
14
|
+
"description": "Automatically create feature branch when starting work on protected branches"
|
|
15
|
+
},
|
|
16
|
+
"branch_prefix": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"default": "grid/",
|
|
19
|
+
"description": "Prefix for auto-created Grid branches",
|
|
20
|
+
"pattern": "^[a-z0-9-]+/$"
|
|
21
|
+
},
|
|
22
|
+
"auto_push": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"enum": ["immediate", "wave", "block", "manual"],
|
|
25
|
+
"default": "wave",
|
|
26
|
+
"description": "When to automatically push: immediate (every commit), wave (after wave completes), block (after block completes), manual (never)"
|
|
27
|
+
},
|
|
28
|
+
"auto_pr": {
|
|
29
|
+
"type": "boolean",
|
|
30
|
+
"default": false,
|
|
31
|
+
"description": "Automatically create pull request when session completes"
|
|
32
|
+
},
|
|
33
|
+
"protected_branches": {
|
|
34
|
+
"type": "array",
|
|
35
|
+
"items": {
|
|
36
|
+
"type": "string"
|
|
37
|
+
},
|
|
38
|
+
"default": ["main", "master", "production"],
|
|
39
|
+
"description": "Branches that require PRs and cannot be committed to directly"
|
|
40
|
+
},
|
|
41
|
+
"default_base": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"default": "main",
|
|
44
|
+
"description": "Default base branch for creating pull requests"
|
|
45
|
+
},
|
|
46
|
+
"sync_strategy": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"enum": ["merge", "rebase"],
|
|
49
|
+
"default": "merge",
|
|
50
|
+
"description": "Strategy for syncing feature branch with base: merge or rebase"
|
|
51
|
+
},
|
|
52
|
+
"commit_signing": {
|
|
53
|
+
"type": "boolean",
|
|
54
|
+
"default": false,
|
|
55
|
+
"description": "Sign commits with GPG (requires gpg configured)"
|
|
56
|
+
},
|
|
57
|
+
"wip_commits": {
|
|
58
|
+
"type": "boolean",
|
|
59
|
+
"default": true,
|
|
60
|
+
"description": "Create WIP commits on session pause for long-running work"
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
---
|
|
2
|
+
cluster: null
|
|
3
|
+
block: "00"
|
|
4
|
+
block_name: "Block Name"
|
|
5
|
+
status: complete # in_progress | complete | failed
|
|
6
|
+
started_at: "{ISO timestamp}"
|
|
7
|
+
completed_at: "{ISO timestamp}"
|
|
8
|
+
|
|
9
|
+
# Work completed
|
|
10
|
+
commits:
|
|
11
|
+
- hash: "abc123"
|
|
12
|
+
message: "feat(00): Description"
|
|
13
|
+
files: ["path/to/file.js"]
|
|
14
|
+
timestamp: "{ISO timestamp}"
|
|
15
|
+
|
|
16
|
+
artifacts_created:
|
|
17
|
+
- path: "path/to/file.js"
|
|
18
|
+
lines: 100
|
|
19
|
+
verified: true
|
|
20
|
+
|
|
21
|
+
# Lessons learned
|
|
22
|
+
lessons_learned:
|
|
23
|
+
codebase_patterns:
|
|
24
|
+
- "Pattern discovered"
|
|
25
|
+
gotchas:
|
|
26
|
+
- "Gotcha encountered"
|
|
27
|
+
user_preferences:
|
|
28
|
+
- "Preference inferred"
|
|
29
|
+
almost_did:
|
|
30
|
+
- "Approach considered but rejected"
|
|
31
|
+
|
|
32
|
+
# Energy usage
|
|
33
|
+
energy_used: 1000
|
|
34
|
+
energy_remaining: 9000
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
# Block {N} Summary: {Block Name}
|
|
38
|
+
|
|
39
|
+
## Overview
|
|
40
|
+
{Brief description of what this block accomplished}
|
|
41
|
+
|
|
42
|
+
## Threads Completed
|
|
43
|
+
|
|
44
|
+
### Thread 1: {Thread Name}
|
|
45
|
+
- **Status:** Complete
|
|
46
|
+
- **Commit:** {hash}
|
|
47
|
+
- **Files:** {list}
|
|
48
|
+
- **Description:** {what was done}
|
|
49
|
+
|
|
50
|
+
### Thread 2: {Thread Name}
|
|
51
|
+
- **Status:** Complete
|
|
52
|
+
- **Commit:** {hash}
|
|
53
|
+
- **Files:** {list}
|
|
54
|
+
- **Description:** {what was done}
|
|
55
|
+
|
|
56
|
+
## Artifacts Created
|
|
57
|
+
{List of all files/directories created with brief descriptions}
|
|
58
|
+
|
|
59
|
+
## Lessons Learned
|
|
60
|
+
{Key discoveries that will help future blocks}
|
|
61
|
+
|
|
62
|
+
## Blockers Encountered
|
|
63
|
+
{Any issues that blocked progress and how they were resolved}
|
|
64
|
+
|
|
65
|
+
## Next Block Preview
|
|
66
|
+
{Brief note about what the next block will tackle}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
cluster: null
|
|
3
|
+
active_blockers: 0
|
|
4
|
+
resolved_blockers: 0
|
|
5
|
+
last_updated: "{ISO timestamp}"
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Grid Blockers
|
|
9
|
+
|
|
10
|
+
Issues that blocked progress. Used for resume and reporting.
|
|
11
|
+
|
|
12
|
+
## Format
|
|
13
|
+
|
|
14
|
+
Each blocker follows this format:
|
|
15
|
+
|
|
16
|
+
```
|
|
17
|
+
## Blocker {N}: {ACTIVE | RESOLVED}
|
|
18
|
+
**Block:** {block_id}
|
|
19
|
+
**Thread:** {thread_id}
|
|
20
|
+
**Type:** {dependency_missing | human_action_required | external_service | bug}
|
|
21
|
+
**Description:** {what's blocking}
|
|
22
|
+
**Resolution:** {how it was resolved, if resolved}
|
|
23
|
+
**Created At:** {timestamp}
|
|
24
|
+
**Resolved At:** {timestamp, if resolved}
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## Blockers
|
|
30
|
+
|
|
31
|
+
*(Blockers will appear below)*
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
---
|
|
2
|
+
# Checkpoint metadata
|
|
3
|
+
type: human_verify # human_verify | decision | human_action | session_death | failure
|
|
4
|
+
timestamp: "{ISO timestamp}"
|
|
5
|
+
expires: null # or ISO timestamp if time-sensitive
|
|
6
|
+
|
|
7
|
+
# Position
|
|
8
|
+
cluster: null
|
|
9
|
+
block: "00"
|
|
10
|
+
wave: 0
|
|
11
|
+
thread: 0
|
|
12
|
+
thread_name: "CHECKPOINT"
|
|
13
|
+
|
|
14
|
+
# Progress snapshot
|
|
15
|
+
progress:
|
|
16
|
+
blocks_complete: 0
|
|
17
|
+
blocks_total: 0
|
|
18
|
+
threads_complete: 0
|
|
19
|
+
threads_total: 0
|
|
20
|
+
|
|
21
|
+
# Completed work (essential for continuation)
|
|
22
|
+
completed_threads: []
|
|
23
|
+
# Example:
|
|
24
|
+
# - id: "02.1"
|
|
25
|
+
# name: "Create BaseLayout"
|
|
26
|
+
# commit: "abc123"
|
|
27
|
+
# files: ["src/layouts/BaseLayout.astro"]
|
|
28
|
+
# status: complete
|
|
29
|
+
|
|
30
|
+
# Checkpoint-specific details
|
|
31
|
+
checkpoint_details:
|
|
32
|
+
verification_instructions: |
|
|
33
|
+
{What the user needs to verify}
|
|
34
|
+
expected_behavior: |
|
|
35
|
+
{What should happen}
|
|
36
|
+
|
|
37
|
+
# User action needed
|
|
38
|
+
awaiting: "User to respond"
|
|
39
|
+
|
|
40
|
+
# Warmth for continuation
|
|
41
|
+
warmth:
|
|
42
|
+
codebase_patterns: []
|
|
43
|
+
gotchas: []
|
|
44
|
+
user_preferences: []
|
|
45
|
+
|
|
46
|
+
# Optional fields
|
|
47
|
+
# user_response: "{user's response when resuming}"
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
# Checkpoint
|
|
51
|
+
|
|
52
|
+
## Summary
|
|
53
|
+
{Brief description of what was accomplished and what needs to happen next}
|
|
54
|
+
|
|
55
|
+
## Completed Work
|
|
56
|
+
{List of completed threads with commits}
|
|
57
|
+
|
|
58
|
+
## Next Steps
|
|
59
|
+
{What will happen when execution resumes}
|