sisyphi 1.0.9 → 1.0.10

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.
@@ -100,7 +100,7 @@ If the recipe involves UI, the validation agent should use `capture` to screensh
100
100
 
101
101
  If the project lacks validation tooling, **create it**. A smoke-test script, a seed command, a health-check endpoint — these pay for themselves immediately and every future validation agent reuses them.
102
102
 
103
- **Only advance to the next stage when validation passes.** If it fails, log the failures, spawn fix agents, and re-validate.
103
+ When you've chosen to validate a stage, **don't advance past it until validation passes.** If it fails, log the failures, spawn fix agents, and re-validate. A validation checkpoint you ignore is worse than no checkpoint — it creates false confidence.
104
104
 
105
105
  ## Worktree Preference
106
106
 
@@ -16,7 +16,7 @@ How to structure sisyphus sessions for common task types. This skill helps the o
16
16
 
17
17
  3. **Parallelize when independent.** If two tasks don't share files or depend on each other's output, spawn agents for both in the same cycle.
18
18
 
19
- 4. **Validate at boundaries.** After each logical phase completes, spawn a validation agent before moving on. Catching problems early prevents cascading rework.
19
+ 4. **Interleave verification.** Don't batch all implementation and defer review to the end. Embed critique and validation checkpoints between stages based on risk the more subsequent work depends on a stage being correct, the more it needs verification before you build on it.
20
20
 
21
21
  5. **Reports are handoffs.** Agent reports should contain everything the next cycle's orchestrator needs — what was done, what was found, what's unresolved, where artifacts were saved.
22
22
 
@@ -147,7 +147,7 @@ Agents spawned:
147
147
  against spec at context/spec-rate-limiting.md"
148
148
  ```
149
149
 
150
- ### Cycle 4 — Implement (phases 1+2 parallel)
150
+ ### Cycle 4 — Implement phases 1+2 (parallel, low-risk foundation)
151
151
  ```
152
152
  Plan review: PASS.
153
153
 
@@ -155,16 +155,67 @@ roadmap.md updated (plan review done, starting implementation):
155
155
  - [x] ~~Draft spec~~, [x] ~~Plan~~, [x] ~~Review plan~~
156
156
  - [ ] Implement rate limiting middleware
157
157
  - [ ] Implement rate limit configuration
158
- ...
158
+ - [ ] Critique phases 1-2 — review before integration phase
159
+ - [ ] Implement rate limit headers and error responses
160
+ - [ ] Validate — smoketest rate limiting end-to-end
161
+ - [ ] Final review
159
162
 
160
- Agents spawned:
163
+ Agents spawned (parallel — phases touch different files):
161
164
  implement agent → "Implement Phase 1 from context/plan-rate-limiting.md —
162
165
  rate limiting middleware in src/api/middleware/rate-limit.ts"
163
166
  implement agent → "Implement Phase 2 from context/plan-rate-limiting.md —
164
167
  rate limit configuration in src/config/rate-limits.ts"
165
168
  ```
166
169
 
167
- ### Cycle 5-7Continue phases, validate, review, complete
170
+ ### Cycle 5 — Critique before integration builds on top
171
+ ```
172
+ Both implementation agents complete.
173
+
174
+ Why critique now: Phase 3 (headers/error responses) integrates the middleware and
175
+ config — if the foundation has issues, they'll cascade. Cheaper to catch now.
176
+
177
+ roadmap.md updated:
178
+ - [x] ~~Implement middleware~~, [x] ~~Implement config~~
179
+ - [ ] Critique phases 1-2
180
+ ...
181
+
182
+ Agents spawned:
183
+ review agent → "Review rate limiting middleware and config implementation.
184
+ Focus on: Redis connection handling, sliding window correctness,
185
+ config schema matches what middleware expects."
186
+ ```
187
+
188
+ ### Cycle 6 — Implement phase 3 + address critique
189
+ ```
190
+ Review: 2 findings — middleware doesn't handle Redis connection failure gracefully,
191
+ config schema allows negative rate limits.
192
+
193
+ Agents spawned (parallel):
194
+ implement agent → "Fix review findings in reports/agent-008-final.md for
195
+ rate limiting middleware and config."
196
+ implement agent → "Implement Phase 3 from context/plan-rate-limiting.md —
197
+ rate limit headers and 429 error responses in src/api/middleware/rate-limit.ts"
198
+ ```
199
+
200
+ ### Cycle 7 — Validate end-to-end
201
+ ```
202
+ Phase 3 and fixes complete.
203
+
204
+ Why validate now: all three phases are done and integrated. This is the checkpoint
205
+ before calling it complete — verify it actually works, not just compiles.
206
+
207
+ Agents spawned:
208
+ validate agent → "Verify rate limiting end-to-end: start server, send requests
209
+ exceeding limits, confirm 429 responses with correct Retry-After headers.
210
+ Test per-user isolation, endpoint-specific overrides, Redis failover behavior."
211
+ ```
212
+
213
+ ### Cycle 8 — Complete
214
+ ```
215
+ Validation: PASS. Final review agent confirms no issues.
216
+ Complete — "Added per-user API rate limiting with Redis-backed sliding window,
217
+ configurable per-endpoint limits, and graceful Redis failover."
218
+ ```
168
219
 
169
220
  ---
170
221
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sisyphi",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "tmux-integrated orchestration daemon for Claude Code multi-agent workflows",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -100,7 +100,7 @@ If the recipe involves UI, the validation agent should use `capture` to screensh
100
100
 
101
101
  If the project lacks validation tooling, **create it**. A smoke-test script, a seed command, a health-check endpoint — these pay for themselves immediately and every future validation agent reuses them.
102
102
 
103
- **Only advance to the next stage when validation passes.** If it fails, log the failures, spawn fix agents, and re-validate.
103
+ When you've chosen to validate a stage, **don't advance past it until validation passes.** If it fails, log the failures, spawn fix agents, and re-validate. A validation checkpoint you ignore is worse than no checkpoint — it creates false confidence.
104
104
 
105
105
  ## Worktree Preference
106
106
 
@@ -16,7 +16,7 @@ How to structure sisyphus sessions for common task types. This skill helps the o
16
16
 
17
17
  3. **Parallelize when independent.** If two tasks don't share files or depend on each other's output, spawn agents for both in the same cycle.
18
18
 
19
- 4. **Validate at boundaries.** After each logical phase completes, spawn a validation agent before moving on. Catching problems early prevents cascading rework.
19
+ 4. **Interleave verification.** Don't batch all implementation and defer review to the end. Embed critique and validation checkpoints between stages based on risk the more subsequent work depends on a stage being correct, the more it needs verification before you build on it.
20
20
 
21
21
  5. **Reports are handoffs.** Agent reports should contain everything the next cycle's orchestrator needs — what was done, what was found, what's unresolved, where artifacts were saved.
22
22
 
@@ -147,7 +147,7 @@ Agents spawned:
147
147
  against spec at context/spec-rate-limiting.md"
148
148
  ```
149
149
 
150
- ### Cycle 4 — Implement (phases 1+2 parallel)
150
+ ### Cycle 4 — Implement phases 1+2 (parallel, low-risk foundation)
151
151
  ```
152
152
  Plan review: PASS.
153
153
 
@@ -155,16 +155,67 @@ roadmap.md updated (plan review done, starting implementation):
155
155
  - [x] ~~Draft spec~~, [x] ~~Plan~~, [x] ~~Review plan~~
156
156
  - [ ] Implement rate limiting middleware
157
157
  - [ ] Implement rate limit configuration
158
- ...
158
+ - [ ] Critique phases 1-2 — review before integration phase
159
+ - [ ] Implement rate limit headers and error responses
160
+ - [ ] Validate — smoketest rate limiting end-to-end
161
+ - [ ] Final review
159
162
 
160
- Agents spawned:
163
+ Agents spawned (parallel — phases touch different files):
161
164
  implement agent → "Implement Phase 1 from context/plan-rate-limiting.md —
162
165
  rate limiting middleware in src/api/middleware/rate-limit.ts"
163
166
  implement agent → "Implement Phase 2 from context/plan-rate-limiting.md —
164
167
  rate limit configuration in src/config/rate-limits.ts"
165
168
  ```
166
169
 
167
- ### Cycle 5-7Continue phases, validate, review, complete
170
+ ### Cycle 5 — Critique before integration builds on top
171
+ ```
172
+ Both implementation agents complete.
173
+
174
+ Why critique now: Phase 3 (headers/error responses) integrates the middleware and
175
+ config — if the foundation has issues, they'll cascade. Cheaper to catch now.
176
+
177
+ roadmap.md updated:
178
+ - [x] ~~Implement middleware~~, [x] ~~Implement config~~
179
+ - [ ] Critique phases 1-2
180
+ ...
181
+
182
+ Agents spawned:
183
+ review agent → "Review rate limiting middleware and config implementation.
184
+ Focus on: Redis connection handling, sliding window correctness,
185
+ config schema matches what middleware expects."
186
+ ```
187
+
188
+ ### Cycle 6 — Implement phase 3 + address critique
189
+ ```
190
+ Review: 2 findings — middleware doesn't handle Redis connection failure gracefully,
191
+ config schema allows negative rate limits.
192
+
193
+ Agents spawned (parallel):
194
+ implement agent → "Fix review findings in reports/agent-008-final.md for
195
+ rate limiting middleware and config."
196
+ implement agent → "Implement Phase 3 from context/plan-rate-limiting.md —
197
+ rate limit headers and 429 error responses in src/api/middleware/rate-limit.ts"
198
+ ```
199
+
200
+ ### Cycle 7 — Validate end-to-end
201
+ ```
202
+ Phase 3 and fixes complete.
203
+
204
+ Why validate now: all three phases are done and integrated. This is the checkpoint
205
+ before calling it complete — verify it actually works, not just compiles.
206
+
207
+ Agents spawned:
208
+ validate agent → "Verify rate limiting end-to-end: start server, send requests
209
+ exceeding limits, confirm 429 responses with correct Retry-After headers.
210
+ Test per-user isolation, endpoint-specific overrides, Redis failover behavior."
211
+ ```
212
+
213
+ ### Cycle 8 — Complete
214
+ ```
215
+ Validation: PASS. Final review agent confirms no issues.
216
+ Complete — "Added per-user API rate limiting with Redis-backed sliding window,
217
+ configurable per-endpoint limits, and graceful Redis failover."
218
+ ```
168
219
 
169
220
  ---
170
221