murmur8 3.5.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.
Files changed (120) hide show
  1. package/.blueprint/agents/AGENT_BA_CASS.md +239 -0
  2. package/.blueprint/agents/AGENT_DEVELOPER_CODEY.md +308 -0
  3. package/.blueprint/agents/AGENT_SPECIFICATION_ALEX.md +183 -0
  4. package/.blueprint/agents/AGENT_TESTER_NIGEL.md +159 -0
  5. package/.blueprint/agents/GUARDRAILS.md +83 -0
  6. package/.blueprint/agents/TEAM_MANIFESTO.md +91 -0
  7. package/.blueprint/features/.gitkeep +0 -0
  8. package/.blueprint/features/feature_adaptive-retry/FEATURE_SPEC.md +239 -0
  9. package/.blueprint/features/feature_adaptive-retry/IMPLEMENTATION_PLAN.md +48 -0
  10. package/.blueprint/features/feature_adaptive-retry/story-prompt-modification.md +85 -0
  11. package/.blueprint/features/feature_adaptive-retry/story-retry-config.md +89 -0
  12. package/.blueprint/features/feature_adaptive-retry/story-should-retry.md +98 -0
  13. package/.blueprint/features/feature_adaptive-retry/story-strategy-recommendation.md +85 -0
  14. package/.blueprint/features/feature_agent-guardrails/FEATURE_SPEC.md +328 -0
  15. package/.blueprint/features/feature_agent-guardrails/IMPLEMENTATION_PLAN.md +90 -0
  16. package/.blueprint/features/feature_agent-guardrails/story-citation-requirements.md +50 -0
  17. package/.blueprint/features/feature_agent-guardrails/story-confidentiality.md +50 -0
  18. package/.blueprint/features/feature_agent-guardrails/story-escalation-protocol.md +55 -0
  19. package/.blueprint/features/feature_agent-guardrails/story-source-restrictions.md +50 -0
  20. package/.blueprint/features/feature_compressed-feedback/FEATURE_SPEC.md +136 -0
  21. package/.blueprint/features/feature_compressed-feedback/IMPLEMENTATION_PLAN.md +40 -0
  22. package/.blueprint/features/feature_feedback-loop/FEATURE_SPEC.md +347 -0
  23. package/.blueprint/features/feature_feedback-loop/IMPLEMENTATION_PLAN.md +71 -0
  24. package/.blueprint/features/feature_feedback-loop/story-feedback-collection.md +63 -0
  25. package/.blueprint/features/feature_feedback-loop/story-feedback-config.md +61 -0
  26. package/.blueprint/features/feature_feedback-loop/story-feedback-insights.md +63 -0
  27. package/.blueprint/features/feature_feedback-loop/story-quality-gates.md +57 -0
  28. package/.blueprint/features/feature_interactive-alex/FEATURE_SPEC.md +263 -0
  29. package/.blueprint/features/feature_interactive-alex/IMPLEMENTATION_PLAN.md +69 -0
  30. package/.blueprint/features/feature_interactive-alex/handoff-alex.md +19 -0
  31. package/.blueprint/features/feature_interactive-alex/handoff-cass.md +21 -0
  32. package/.blueprint/features/feature_interactive-alex/handoff-nigel.md +19 -0
  33. package/.blueprint/features/feature_interactive-alex/story-flag-routing.md +54 -0
  34. package/.blueprint/features/feature_interactive-alex/story-iterative-drafting.md +65 -0
  35. package/.blueprint/features/feature_interactive-alex/story-pipeline-integration.md +66 -0
  36. package/.blueprint/features/feature_interactive-alex/story-session-lifecycle.md +75 -0
  37. package/.blueprint/features/feature_interactive-alex/story-system-spec-creation.md +57 -0
  38. package/.blueprint/features/feature_lazy-business-context/FEATURE_SPEC.md +140 -0
  39. package/.blueprint/features/feature_lazy-business-context/IMPLEMENTATION_PLAN.md +54 -0
  40. package/.blueprint/features/feature_model-native-features/FEATURE_SPEC.md +174 -0
  41. package/.blueprint/features/feature_model-native-features/IMPLEMENTATION_PLAN.md +45 -0
  42. package/.blueprint/features/feature_parallel-abort/FEATURE_SPEC.md +117 -0
  43. package/.blueprint/features/feature_parallel-confirm/FEATURE_SPEC.md +90 -0
  44. package/.blueprint/features/feature_parallel-features/FEATURE_SPEC.md +291 -0
  45. package/.blueprint/features/feature_parallel-features/IMPLEMENTATION_PLAN.md +73 -0
  46. package/.blueprint/features/feature_parallel-lock/FEATURE_SPEC.md +119 -0
  47. package/.blueprint/features/feature_parallel-logging/FEATURE_SPEC.md +105 -0
  48. package/.blueprint/features/feature_parallel-preflight/FEATURE_SPEC.md +141 -0
  49. package/.blueprint/features/feature_pipeline-history/FEATURE_SPEC.md +239 -0
  50. package/.blueprint/features/feature_pipeline-history/IMPLEMENTATION_PLAN.md +71 -0
  51. package/.blueprint/features/feature_pipeline-history/story-clear-history.md +73 -0
  52. package/.blueprint/features/feature_pipeline-history/story-display-history.md +75 -0
  53. package/.blueprint/features/feature_pipeline-history/story-record-execution.md +76 -0
  54. package/.blueprint/features/feature_pipeline-history/story-show-statistics.md +85 -0
  55. package/.blueprint/features/feature_pipeline-insights/FEATURE_SPEC.md +288 -0
  56. package/.blueprint/features/feature_pipeline-insights/IMPLEMENTATION_PLAN.md +65 -0
  57. package/.blueprint/features/feature_pipeline-insights/story-anomaly-detection.md +71 -0
  58. package/.blueprint/features/feature_pipeline-insights/story-bottleneck-analysis.md +75 -0
  59. package/.blueprint/features/feature_pipeline-insights/story-failure-patterns.md +75 -0
  60. package/.blueprint/features/feature_pipeline-insights/story-json-output.md +75 -0
  61. package/.blueprint/features/feature_pipeline-insights/story-trend-analysis.md +78 -0
  62. package/.blueprint/features/feature_shared-guardrails/FEATURE_SPEC.md +119 -0
  63. package/.blueprint/features/feature_shared-guardrails/IMPLEMENTATION_PLAN.md +34 -0
  64. package/.blueprint/features/feature_shared-guardrails/story-extract-guardrails.md +60 -0
  65. package/.blueprint/features/feature_shared-guardrails/story-update-init-commands.md +63 -0
  66. package/.blueprint/features/feature_slim-agent-prompts/FEATURE_SPEC.md +145 -0
  67. package/.blueprint/features/feature_slim-agent-prompts/IMPLEMENTATION_PLAN.md +87 -0
  68. package/.blueprint/features/feature_slim-agent-prompts/story-create-runtime-prompt-template.md +59 -0
  69. package/.blueprint/features/feature_slim-agent-prompts/story-create-slim-agent-prompts.md +65 -0
  70. package/.blueprint/features/feature_slim-agent-prompts/story-skill-integration.md +53 -0
  71. package/.blueprint/features/feature_smart-story-routing/FEATURE_SPEC.md +147 -0
  72. package/.blueprint/features/feature_smart-story-routing/IMPLEMENTATION_PLAN.md +73 -0
  73. package/.blueprint/features/feature_template-extraction/FEATURE_SPEC.md +134 -0
  74. package/.blueprint/features/feature_template-extraction/IMPLEMENTATION_PLAN.md +46 -0
  75. package/.blueprint/features/feature_upstream-summaries/FEATURE_SPEC.md +150 -0
  76. package/.blueprint/features/feature_upstream-summaries/IMPLEMENTATION_PLAN.md +70 -0
  77. package/.blueprint/features/feature_validate-command/FEATURE_SPEC.md +209 -0
  78. package/.blueprint/features/feature_validate-command/IMPLEMENTATION_PLAN.md +59 -0
  79. package/.blueprint/features/feature_validate-command/story-failure-output.md +61 -0
  80. package/.blueprint/features/feature_validate-command/story-node-version-check.md +52 -0
  81. package/.blueprint/features/feature_validate-command/story-run-validation.md +59 -0
  82. package/.blueprint/features/feature_validate-command/story-success-output.md +50 -0
  83. package/.blueprint/prompts/TEMPLATE.md +65 -0
  84. package/.blueprint/prompts/alex-runtime.md +49 -0
  85. package/.blueprint/prompts/cass-runtime.md +46 -0
  86. package/.blueprint/prompts/codey-implement-runtime.md +52 -0
  87. package/.blueprint/prompts/codey-plan-runtime.md +47 -0
  88. package/.blueprint/prompts/nigel-runtime.md +47 -0
  89. package/.blueprint/system_specification/.gitkeep +0 -0
  90. package/.blueprint/system_specification/SYSTEM_SPEC.md +248 -0
  91. package/.blueprint/templates/FEATURE_SPEC.md +125 -0
  92. package/.blueprint/templates/STORY_TEMPLATE.md +96 -0
  93. package/.blueprint/templates/SYSTEM_SPEC.md +128 -0
  94. package/.blueprint/templates/TEST_TEMPLATE.md +76 -0
  95. package/.blueprint/ways_of_working/DEVELOPMENT_RITUAL.md +178 -0
  96. package/.business_context/README.md +27 -0
  97. package/LICENSE +21 -0
  98. package/README.md +564 -0
  99. package/SKILL.md +840 -0
  100. package/bin/cli.js +388 -0
  101. package/package.json +36 -0
  102. package/src/business-context.js +91 -0
  103. package/src/classifier.js +173 -0
  104. package/src/feedback.js +201 -0
  105. package/src/handoff.js +148 -0
  106. package/src/history.js +306 -0
  107. package/src/index.js +170 -0
  108. package/src/init.js +139 -0
  109. package/src/insights.js +504 -0
  110. package/src/interactive.js +338 -0
  111. package/src/orchestrator.js +217 -0
  112. package/src/parallel.js +1544 -0
  113. package/src/retry.js +274 -0
  114. package/src/stack.js +320 -0
  115. package/src/tools/index.js +27 -0
  116. package/src/tools/prompts.js +45 -0
  117. package/src/tools/schemas.js +38 -0
  118. package/src/tools/validation.js +83 -0
  119. package/src/update.js +112 -0
  120. package/src/validate.js +172 -0
@@ -0,0 +1,178 @@
1
+ # Development Ritual
2
+
3
+ This document defines:
4
+ - The **pipeline stages** and what each agent must deliver
5
+ - **Checklists** each agent must satisfy before handoff
6
+ - **Failure-mode rituals** that override normal flow when triggered
7
+ - The **feedback and handoff** mechanisms that connect stages
8
+
9
+ A stage is not complete until its checklist is satisfied.
10
+
11
+ ---
12
+
13
+ ## Pipeline Stages
14
+
15
+ ```
16
+ Alex (feature spec) → Cass (user stories) → Nigel (tests) → Codey (plan → implement) → Auto-commit → Human QA
17
+ ```
18
+
19
+ Each agent reads the previous agent's outputs and produces artifacts for the next. Context is passed via **handoff summaries** (max 30 lines) to keep token usage efficient. The pipeline uses a **feedback chain** where each agent rates the previous agent's work before starting their own.
20
+
21
+ Tests define behaviour. The human validates intent after auto-commit.
22
+
23
+ ---
24
+
25
+ ## Handoff Mechanism
26
+
27
+ Between stages, the pipeline creates a handoff summary (`handoff-{agent}.md`, max 30 lines) that passes key context to the next agent. This keeps each agent focused without re-reading everything from scratch.
28
+
29
+ Each agent also provides **feedback** on the previous agent's output:
30
+ - **Rating** (1-5) on quality
31
+ - **Issues** list (if any)
32
+ - **Recommendation**: `proceed`, `pause`, or `revise`
33
+
34
+ If the rating falls below the configured threshold (default: 3.0), the pipeline pauses for human review. See `feedback-config` for threshold settings.
35
+
36
+ ---
37
+
38
+ ## Agent Checklists
39
+
40
+ ### Alex (System Specification)
41
+
42
+ Before writing the feature spec:
43
+ - [ ] Read the system specification
44
+ - [ ] Read relevant business context (`.business_context/`)
45
+ - [ ] Read the feature template
46
+
47
+ Before handoff:
48
+ - [ ] Feature spec written to `FEATURE_SPEC.md`
49
+ - [ ] Intent, scope, actors, rules, and dependencies covered
50
+ - [ ] Ambiguities flagged explicitly
51
+ - [ ] Assumptions labelled as such
52
+ - [ ] Spec aligns with system boundaries
53
+
54
+ ### Cass (Story Writer)
55
+
56
+ Before writing stories:
57
+ - [ ] Read the feature spec
58
+ - [ ] Read the system specification for context
59
+ - [ ] Identified primary behaviour, entry/exit conditions, branching logic
60
+
61
+ Before handoff:
62
+ - [ ] Each story file (`story-{slug}.md`) has a single clear goal
63
+ - [ ] Acceptance criteria are in Given/When/Then, max 5-7 per story
64
+ - [ ] Routing is explicit (no "goes to next screen")
65
+ - [ ] Out-of-scope items listed
66
+ - [ ] Assumptions flagged
67
+
68
+ ### Nigel (Tester)
69
+
70
+ Before writing tests:
71
+ - [ ] Read all story files and the feature spec
72
+ - [ ] Acceptance criteria are testable
73
+ - [ ] Ambiguities identified
74
+ - [ ] Assumptions written down
75
+
76
+ Before handoff:
77
+ - [ ] `test-spec.md` written (understanding, AC-to-test mapping, assumptions)
78
+ - [ ] Executable test file written
79
+ - [ ] Happy path tests written
80
+ - [ ] Edge case and error tests written
81
+ - [ ] Tests runnable via the project's configured test command (see `.claude/stack-config.json`)
82
+ - [ ] Traceability table complete (every AC mapped to test IDs)
83
+ - [ ] Open questions listed
84
+
85
+ If any box is unchecked, raise it before handoff.
86
+
87
+ ### Codey (Developer) — Planning
88
+
89
+ Before writing the plan:
90
+ - [ ] Read feature spec, stories, test-spec, and executable tests
91
+ - [ ] Built mental model of happy path, edge cases, error flows
92
+ - [ ] Identified what already exists vs what is new
93
+
94
+ Before handoff:
95
+ - [ ] `IMPLEMENTATION_PLAN.md` written (summary, files table, steps, risks)
96
+ - [ ] Steps ordered to make tests pass incrementally
97
+ - [ ] No implementation code written yet
98
+
99
+ ### Codey (Developer) — Implementation
100
+
101
+ Before coding:
102
+ - [ ] Read implementation plan and tests
103
+ - [ ] Ran baseline tests (note expected failures)
104
+
105
+ During coding:
106
+ - [ ] Implemented behaviour incrementally (one file at a time)
107
+ - [ ] Ran tests after each file change
108
+ - [ ] Did not weaken or delete Nigel's tests
109
+
110
+ Before handoff:
111
+ - [ ] All tests passing
112
+ - [ ] Lint passing
113
+ - [ ] No unexplained `skip` or `todo`
114
+ - [ ] Changes summarised (files changed, test status, blockers)
115
+ - [ ] Assumptions restated
116
+
117
+ If tests pass but confidence is low, trigger a failure-mode ritual (see below).
118
+
119
+ ---
120
+
121
+ ## Failure-Mode Rituals
122
+
123
+ These override normal flow. When triggered, stop and follow the steps explicitly.
124
+
125
+ ### Tests pass, but behaviour feels wrong
126
+
127
+ **Trigger:** Behaviour technically matches tests but not intent, or something feels "too easy."
128
+
129
+ - [ ] Re-read the original user story
130
+ - [ ] Re-state intended behaviour in plain English
131
+ - [ ] Identify mismatch: story vs tests vs implementation
132
+ - [ ] Decide: tests are wrong, story is underspecified, or implementation misinterpreted behaviour
133
+
134
+ **Outcome:** Update tests (Nigel), clarify ACs (Cass), or fix implementation (Codey). Never "let it slide."
135
+
136
+ ### Tests are unclear or contradictory
137
+
138
+ **Trigger:** Assertions conflict, test names don't match expectations, or passing tests don't explain behaviour.
139
+
140
+ - [ ] Identify the specific confusing test(s)
141
+ - [ ] State what behaviour they appear to encode
142
+ - [ ] Compare to acceptance criteria
143
+ - [ ] Propose corrected test behaviour
144
+
145
+ **Outcome:** Nigel revises tests. Codey does not guess.
146
+
147
+ ### Tests fail for non-behaviour reasons
148
+
149
+ **Trigger:** Environment/setup issues, brittle timing, or global state leakage.
150
+
151
+ - [ ] Confirm failure is not missing behaviour
152
+ - [ ] Isolate failing test
153
+ - [ ] Remove flakiness or hidden coupling
154
+ - [ ] Re-run full suite
155
+
156
+ **Outcome:** Stabilise tests before continuing feature work.
157
+
158
+ ### Implementation feels forced
159
+
160
+ **Trigger:** Logic seems unnatural or overly complex to make tests pass.
161
+
162
+ - [ ] Pause implementation
163
+ - [ ] Identify which test is driving the awkward behaviour
164
+ - [ ] Re-check acceptance criteria
165
+ - [ ] Raise concern to the human
166
+
167
+ **Outcome:** Adjust tests or clarify intent. Prefer simpler behaviour aligned to the story.
168
+
169
+ ---
170
+
171
+ ## Meta-Rules (Always On)
172
+
173
+ - Tests are the behavioural contract
174
+ - Green builds are necessary, not sufficient
175
+ - No silent changes — all assumptions written down
176
+ - When in doubt, slow down and ask the human
177
+
178
+ See `GUARDRAILS.md` for the full shared constraints (source restrictions, escalation protocol, anti-patterns).
@@ -0,0 +1,27 @@
1
+ # Business Context
2
+
3
+ This directory contains business context documents that help the AI agents understand your domain, stakeholders, and existing systems.
4
+
5
+ ## What to include
6
+
7
+ - **Domain glossary** - Key terms and definitions specific to your business
8
+ - **Stakeholder information** - Who uses the system, their roles and needs
9
+ - **Existing system documentation** - Architecture diagrams, API docs, data models
10
+ - **Business rules** - Constraints, policies, and logic that govern the domain
11
+ - **Compliance requirements** - Regulatory or legal considerations
12
+ - **Integration points** - External systems and how they connect
13
+
14
+ ## How agents use this
15
+
16
+ The agents (particularly Alex) reference these documents when:
17
+ - Creating system specifications
18
+ - Writing feature specifications
19
+ - Ensuring consistency with domain language
20
+ - Understanding constraints and dependencies
21
+
22
+ ## Tips
23
+
24
+ - Keep documents concise and up-to-date
25
+ - Use markdown for consistency
26
+ - Link to external documentation rather than duplicating it
27
+ - Update as your understanding of the domain evolves
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Steve Newman
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.