murmur8 4.3.3 → 4.4.0

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/README.md CHANGED
@@ -211,6 +211,12 @@ The pipeline includes validation, smart routing, feedback loops, and history tra
211
211
 
212
212
 
213
213
  ┌─────────────────────────────────────────────────────────────────┐
214
+ │ Feedback micro-Task: Cass reviews Alex's spec │
215
+ │ • Quality gate: proceed / pause / revise │
216
+ └─────────────────────────────────────────────────────────────────┘
217
+
218
+
219
+ ┌─────────────────────────────────────────────────────────────────┐
214
220
  │ Smart Routing (v2.7) │
215
221
  │ • Classify feature as technical or user-facing │
216
222
  │ • Technical → skip Cass (saves ~25-40k tokens) │
@@ -229,13 +235,25 @@ The pipeline includes validation, smart routing, feedback loops, and history tra
229
235
 
230
236
 
231
237
  ┌─────────────────────────────────────────────────────────────────┐
232
- │ Nigel (Tests) + Handoff Summary
233
- │ │ │
234
- ▼ │
235
- │ Codey rates Nigel → Quality Gate │
236
- │ │ │
237
-
238
- Codey (Plan Implement)
238
+ Feedback micro-Task: Nigel reviews Cass's stories
239
+ └─────────────────────────────────────────────────────────────────┘
240
+
241
+
242
+ ┌─────────────────────────────────────────────────────────────────┐
243
+ Nigel (Test Spec + Handoff) → Nigel (Executable Tests)
244
+ Split into two atomic calls for token efficiency
245
+ └─────────────────────────────────────────────────────────────────┘
246
+
247
+
248
+ ┌─────────────────────────────────────────────────────────────────┐
249
+ │ Feedback micro-Task: Codey reviews Nigel's tests │
250
+ └─────────────────────────────────────────────────────────────────┘
251
+
252
+
253
+ ┌─────────────────────────────────────────────────────────────────┐
254
+ │ Codey (Plan) → Codey (Implement per-step) │
255
+ │ • Plan uses strict parseable format │
256
+ │ • Orchestrator spawns one Task per implementation step │
239
257
  └─────────────────────────────────────────────────────────────────┘
240
258
 
241
259
  On Failure│
@@ -320,13 +338,15 @@ your-project/
320
338
  │ │ ├── AGENT_TESTER_NIGEL.md
321
339
  │ │ ├── AGENT_DEVELOPER_CODEY.md
322
340
  │ │ └── GUARDRAILS.md # Shared guardrails (v2.7)
323
- │ ├── prompts/ # Slim runtime prompts (v2.7)
341
+ │ ├── prompts/ # Self-contained runtime prompts (v4.4)
324
342
  │ │ ├── TEMPLATE.md
325
343
  │ │ ├── alex-runtime.md
326
344
  │ │ ├── cass-runtime.md
327
345
  │ │ ├── nigel-runtime.md
328
346
  │ │ ├── codey-plan-runtime.md
329
- │ │ └── codey-implement-runtime.md
347
+ │ │ ├── codey-implement-runtime.md
348
+ │ │ ├── skill-murm-mode.md # Murmuration steps (loaded on demand)
349
+ │ │ └── skill-error-recovery.md # Error handling (loaded on failure)
330
350
  │ ├── templates/ # Spec and output templates
331
351
  │ │ ├── SYSTEM_SPEC.md
332
352
  │ │ ├── FEATURE_SPEC.md
@@ -357,15 +377,15 @@ your-project/
357
377
 
358
378
  ## Agent Guardrails
359
379
 
360
- All agents follow strict guardrails to ensure quality:
380
+ All agents follow strict guardrails enforced via inlined rules in each self-contained runtime prompt. The authoritative source is `.blueprint/agents/GUARDRAILS.md`, with critical rules inlined directly into agent prompts so sub-agents never need to load external files at runtime.
361
381
 
362
382
  | Guardrail | Description |
363
383
  |-----------|-------------|
364
384
  | **Source Restrictions** | Only use provided inputs (specs, code, business_context) |
365
385
  | **Prohibited Sources** | No social media, forums, external APIs, training data for domain facts |
366
- | **Citation Requirements** | All claims must cite source files |
386
+ | **Assumption Labeling** | All assumptions must be explicitly labeled |
367
387
  | **Confidentiality** | Business context treated as confidential |
368
- | **Escalation Protocol** | Clear rules for when to ask vs assume |
388
+ | **Escalation Protocol** | Clear rules for when to ask vs assume — flag ambiguity, don't guess |
369
389
 
370
390
  ## Self-Improvement Loop
371
391
 
@@ -423,21 +443,21 @@ npx murmur8 init
423
443
 
424
444
  Both CLIs execute the same pipeline: Alex → Cass → Nigel → Codey. The skill uses each CLI's native agent/task mechanism.
425
445
 
426
- ## Token Efficiency (v2.7)
446
+ ## Token Efficiency (v4.4)
427
447
 
428
- Version 2.7 introduces several optimizations to reduce token usage:
448
+ The pipeline is optimised to operate within strict token limits (4096 output, 1024 thinking per sub-agent):
429
449
 
430
- | Optimization | Savings | Description |
431
- |--------------|---------|-------------|
432
- | **Shared Guardrails** | ~1,200 tokens | Single GUARDRAILS.md instead of duplicated in each agent spec |
433
- | **Slim Runtime Prompts** | ~5,200 tokens | 30-50 line prompts instead of 200-400 line full specs |
434
- | **Upstream Summaries** | ~2,000-4,000 tokens | Handoff summaries between agents instead of full artifacts |
435
- | **Template Extraction** | ~800 tokens | Templates moved to separate files, loaded on demand |
436
- | **Lazy Business Context** | Variable | Only loaded when feature spec references it |
437
- | **Compressed Feedback** | ~400 tokens | 3-line feedback prompts instead of 7-line |
450
+ | Optimization | Impact | Description |
451
+ |--------------|--------|-------------|
452
+ | **Self-contained prompts** | ~660 lines/call eliminated | Agents never read full specs, guardrails, manifesto, or rituals at runtime |
453
+ | **Trusted handoff chain** | ~200-400 tokens/call saved | Each agent reads only the upstream handoff + its immediate inputs |
454
+ | **Split Nigel** | Prevents truncation | Test spec and executable tests are separate atomic calls |
455
+ | **Orchestrator-driven Codey** | Prevents truncation | One Task per implementation step instead of monolithic implement call |
456
+ | **Feedback micro-Tasks** | ~50 output tokens each | Separate review calls don't consume the main agent's output budget |
457
+ | **Hybrid SKILL.md** | 48% smaller | Murmuration and error recovery loaded on demand, not always |
458
+ | **Strict plan format** | Zero parsing overhead | Machine-parseable one-liner per step, orchestrator splits on regex |
438
459
  | **Smart Story Routing** | ~25,000-40,000 tokens | Skip Cass for technical features |
439
-
440
- **Total estimated savings: 10,000+ tokens per pipeline run** (more for technical features)
460
+ | **Lazy Business Context** | Variable | Only loaded when feature spec references it |
441
461
 
442
462
  ## Cost Tracking
443
463
 
@@ -517,8 +537,8 @@ murmur8 murm <slug-a> <slug-b> <slug-c>
517
537
  │ Spawn Pipelines │
518
538
  │ (max 3 concurrent by default) │
519
539
  │ │
520
- │ Each runs: Alex Nigel → Codey
521
- in its isolated worktree
540
+ │ Each runs full pipeline in isolation:
541
+ Alex [Cass] → Nigel → Codey
522
542
  └───────────────────────────────────────┘
523
543
 
524
544