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,61 @@
1
+ # Story — Validation Failure Output
2
+
3
+ ## User story
4
+ As a developer, I want to see what is missing and how to fix it when validation checks fail so that I can resolve issues and get my project ready for the pipeline.
5
+
6
+ ---
7
+
8
+ ## Context / scope
9
+ - Developer using murmur8 CLI
10
+ - Project is missing one or more required artifacts
11
+ - This story covers failure output and actionable guidance
12
+
13
+ See feature spec: `.blueprint/features/feature_validate-command/FEATURE_SPEC.md`
14
+
15
+ ---
16
+
17
+ ## Acceptance criteria
18
+
19
+ **AC-1 — X mark displayed for failed checks**
20
+ - Given one or more required files/directories are missing,
21
+ - When I run `murmur8 validate`,
22
+ - Then each failed check displays an X indicator.
23
+
24
+ **AC-2 — Colorized failure output when supported**
25
+ - Given my terminal supports color output,
26
+ - When I run `murmur8 validate` and checks fail,
27
+ - Then X marks are displayed in red.
28
+
29
+ **AC-3 — Description of what is missing**
30
+ - Given a check fails,
31
+ - When the status line is printed,
32
+ - Then it includes a description of what is missing (e.g., "Missing: .blueprint/system_specification/SYSTEM_SPEC.md").
33
+
34
+ **AC-4 — Actionable fix suggestions**
35
+ - Given one or more checks fail,
36
+ - When all checks have completed,
37
+ - Then actionable fix suggestions are displayed:
38
+ - Missing `.blueprint/` directory: "Run `murmur8 init` to initialize project"
39
+ - Missing agent specs: "Run `murmur8 init` to create agent specification files"
40
+ - Missing skills: "Run `murmur8 init` to install required skills"
41
+ - Empty business context: "Add at least one file to `.business_context/` directory"
42
+ - Node.js version: "Upgrade Node.js to version 18 or higher"
43
+
44
+ **AC-5 — Exit code non-zero on failure**
45
+ - Given one or more validation checks fail,
46
+ - When the command completes,
47
+ - Then the process exits with a non-zero exit code (1)
48
+ - And this exit code can be used in scripts/CI pipelines to detect failures.
49
+
50
+ **AC-6 — All checks still run on failure**
51
+ - Given the first check fails,
52
+ - When I run `murmur8 validate`,
53
+ - Then all remaining checks are still executed
54
+ - And a complete picture of missing items is shown.
55
+
56
+ ---
57
+
58
+ ## Out of scope
59
+ - `--fix` flag to automatically remediate issues
60
+ - Prioritization of which issues to fix first
61
+ - JSON output format (deferred)
@@ -0,0 +1,52 @@
1
+ # Story — Node.js Version Check
2
+
3
+ ## User story
4
+ As a developer, I want the validation to check my Node.js version so that I am warned before attempting to run the pipeline on an unsupported runtime.
5
+
6
+ ---
7
+
8
+ ## Context / scope
9
+ - Developer using murmur8 CLI
10
+ - Node.js version may or may not meet minimum requirement (>=18)
11
+ - This check should work even on older Node.js versions to report the issue
12
+
13
+ See feature spec: `.blueprint/features/feature_validate-command/FEATURE_SPEC.md`
14
+
15
+ ---
16
+
17
+ ## Acceptance criteria
18
+
19
+ **AC-1 — Version check passes on Node 18+**
20
+ - Given I am running Node.js version 18 or higher,
21
+ - When I run `murmur8 validate`,
22
+ - Then the Node.js version check displays a pass indicator.
23
+
24
+ **AC-2 — Version check fails on Node < 18**
25
+ - Given I am running Node.js version lower than 18,
26
+ - When I run `murmur8 validate`,
27
+ - Then the Node.js version check displays a fail indicator
28
+ - And the current version is shown in the output.
29
+
30
+ **AC-3 — Command does not crash on old Node**
31
+ - Given I am running an older Node.js version,
32
+ - When I run `murmur8 validate`,
33
+ - Then the command executes and reports the version failure
34
+ - And the command does not throw a runtime exception.
35
+
36
+ **AC-4 — Clear upgrade guidance**
37
+ - Given the Node.js version check fails,
38
+ - When fix suggestions are displayed,
39
+ - Then guidance includes "Upgrade Node.js to version 18 or higher"
40
+ - And the current detected version is shown.
41
+
42
+ **AC-5 — Version detected from runtime**
43
+ - Given I run `murmur8 validate`,
44
+ - When the Node.js version check executes,
45
+ - Then the version is detected from `process.version` (not from package.json or external sources).
46
+
47
+ ---
48
+
49
+ ## Out of scope
50
+ - Checking for specific minor/patch versions
51
+ - Checking for Node.js feature availability beyond version number
52
+ - nvm or version manager integration
@@ -0,0 +1,59 @@
1
+ # Story — Run Validation Command
2
+
3
+ ## User story
4
+ As a developer, I want to run `murmur8 validate` in my project directory so that I can check whether my environment is correctly configured before running the pipeline.
5
+
6
+ ---
7
+
8
+ ## Context / scope
9
+ - Developer using murmur8 CLI
10
+ - Command can be run in any directory (initialized or not)
11
+ - Route: `murmur8 validate` via `bin/cli.js`
12
+ - This is the primary entry point for the validate feature
13
+
14
+ See feature spec: `.blueprint/features/feature_validate-command/FEATURE_SPEC.md`
15
+
16
+ ---
17
+
18
+ ## Acceptance criteria
19
+
20
+ **AC-1 — Command is available**
21
+ - Given I have murmur8 installed,
22
+ - When I run `murmur8 validate`,
23
+ - Then the command executes without throwing an exception.
24
+
25
+ **AC-2 — Checks execute in sequence**
26
+ - Given I run `murmur8 validate`,
27
+ - When the command executes,
28
+ - Then all validation checks are performed:
29
+ - Directory existence (`.blueprint/`, `.business_context/`, `.claude/commands/`)
30
+ - System spec existence (`.blueprint/system_specification/SYSTEM_SPEC.md`)
31
+ - Agent spec files existence (4 files in `.blueprint/agents/`)
32
+ - Business context non-empty check
33
+ - Skills installed check (`.claude/commands/implement-feature.md`)
34
+ - Node.js version check (>=18)
35
+
36
+ **AC-3 — Each check produces a status line**
37
+ - Given I run `murmur8 validate`,
38
+ - When each check completes,
39
+ - Then a status line is printed showing pass or fail for that check.
40
+
41
+ **AC-4 — Command completes without crashes**
42
+ - Given any combination of missing/present files,
43
+ - When I run `murmur8 validate`,
44
+ - Then the command completes gracefully (does not throw exceptions)
45
+ - And all checks are wrapped to handle missing paths.
46
+
47
+ **AC-5 — Idempotent execution**
48
+ - Given I run `murmur8 validate` multiple times,
49
+ - When each execution completes,
50
+ - Then no files are created, modified, or deleted
51
+ - And each run produces the same output for the same state.
52
+
53
+ ---
54
+
55
+ ## Out of scope
56
+ - Validation of file contents (e.g., SYSTEM_SPEC.md is well-formed)
57
+ - Automatic remediation of issues
58
+ - Network checks
59
+ - Queue state validation
@@ -0,0 +1,50 @@
1
+ # Story — Validation Success Output
2
+
3
+ ## User story
4
+ As a developer, I want to see clear success indicators when all validation checks pass so that I have confidence my project is ready to run the pipeline.
5
+
6
+ ---
7
+
8
+ ## Context / scope
9
+ - Developer using murmur8 CLI
10
+ - Project is fully initialized with all required artifacts
11
+ - This story covers the happy path output formatting
12
+
13
+ See feature spec: `.blueprint/features/feature_validate-command/FEATURE_SPEC.md`
14
+
15
+ ---
16
+
17
+ ## Acceptance criteria
18
+
19
+ **AC-1 — Checkmark displayed for passed checks**
20
+ - Given all required files and directories exist,
21
+ - When I run `murmur8 validate`,
22
+ - Then each passed check displays a checkmark indicator.
23
+
24
+ **AC-2 — Colorized output when supported**
25
+ - Given my terminal supports color output,
26
+ - When I run `murmur8 validate` and checks pass,
27
+ - Then checkmarks are displayed in green.
28
+
29
+ **AC-3 — ASCII fallback for non-color terminals**
30
+ - Given my terminal does not support color output,
31
+ - When I run `murmur8 validate`,
32
+ - Then success indicators use ASCII-compatible characters
33
+ - And output remains readable.
34
+
35
+ **AC-4 — Overall success message**
36
+ - Given all validation checks pass,
37
+ - When the command completes,
38
+ - Then an overall success message is printed indicating the project is ready.
39
+
40
+ **AC-5 — Exit code zero on success**
41
+ - Given all validation checks pass,
42
+ - When the command completes,
43
+ - Then the process exits with code 0
44
+ - And this exit code can be used in scripts/CI pipelines.
45
+
46
+ ---
47
+
48
+ ## Out of scope
49
+ - JSON output format (deferred)
50
+ - Verbose mode with additional details
@@ -0,0 +1,65 @@
1
+ # Runtime Prompt Template
2
+
3
+ This template defines the standard structure for slim runtime prompts. Each runtime prompt should have 30-50 non-blank lines.
4
+
5
+ ## Structure
6
+
7
+ Every runtime prompt must follow this structure:
8
+
9
+ ### 1. Role Identity Line (required)
10
+
11
+ Start with: `You are {Name}, the {Role} Agent.`
12
+
13
+ ### 2. Task Section (required)
14
+
15
+ ```markdown
16
+ ## Task
17
+ {Brief description of what this agent must accomplish in this invocation}
18
+ ```
19
+
20
+ ### 3. Inputs Section (required)
21
+
22
+ ```markdown
23
+ ## Inputs (read these files)
24
+ - {Input 1}: {path/to/file.md}
25
+ - {Input 2}: {path/to/directory/}
26
+ ```
27
+
28
+ ### 4. Outputs Section (required)
29
+
30
+ ```markdown
31
+ ## Outputs (write these files)
32
+ - {Output file}: {path/to/output.md}
33
+
34
+ {Brief format requirements}
35
+ ```
36
+
37
+ ### 5. Rules Section (required)
38
+
39
+ ```markdown
40
+ ## Rules
41
+ - {Rule 1 - most critical constraint}
42
+ - {Rule 2}
43
+ - {Rule 3}
44
+ - {Rule 4}
45
+ - {Rule 5}
46
+ - {Rule 6 - optional}
47
+ - {Rule 7 - optional}
48
+ ```
49
+
50
+ Include 5-7 rules. Focus on critical constraints only. Do NOT duplicate information already in the task or outputs sections. Avoid redundant or repetitive rules.
51
+
52
+ ### 6. Full Spec Reference (required)
53
+
54
+ ```markdown
55
+ ## Reference
56
+ For detailed guidance, see: .blueprint/agents/AGENT_{NAME}.md
57
+ ```
58
+
59
+ ## Guidelines
60
+
61
+ - Target: 30-50 non-blank lines per runtime prompt
62
+ - Be concise: every line should add value
63
+ - No boilerplate: skip sections that would be empty
64
+ - Task-specific: include only what this invocation needs
65
+ - Reference full spec: agents can read detailed guidance if needed
@@ -0,0 +1,49 @@
1
+ You are Alex, the System Specification Agent.
2
+
3
+ ## Task
4
+
5
+ Create a feature specification that translates system intent into a bounded, reviewable unit. The feature spec serves as the contract between business requirements and implementation.
6
+
7
+ ## Inputs (read these files)
8
+
9
+ - System Spec: .blueprint/system_specification/SYSTEM_SPEC.md
10
+ - Template: .blueprint/templates/FEATURE_SPEC.md
11
+ - Business Context: .business_context/
12
+
13
+ ## Outputs (write this file)
14
+
15
+ Write feature spec to: {FEAT_DIR}/FEATURE_SPEC.md
16
+
17
+ Include these sections (skip if not applicable):
18
+ - Feature intent (problem it solves, why it exists)
19
+ - In-scope / out-of-scope boundaries
20
+ - Primary and secondary actors
21
+ - State and lifecycle interactions
22
+ - Rules and decision logic
23
+ - Dependencies
24
+ - Assumptions and open questions
25
+
26
+ ## Rules
27
+
28
+ - Follow the shared constraints in `.blueprint/agents/GUARDRAILS.md` (source restrictions, confidentiality, citations)
29
+ - Write file incrementally, section by section if large
30
+ - Reference system spec by path, do not repeat its content
31
+ - Keep Change Log to 1-2 entries maximum
32
+ - Flag ambiguities explicitly rather than guessing
33
+ - Ensure feature aligns with system boundaries
34
+ - Make inferred interpretations explicit
35
+ - Propose breaking changes only with clear justification
36
+
37
+ ## Output Format
38
+
39
+ - Use Markdown with clear headings
40
+ - Keep sections concise and scannable
41
+ - Include only sections relevant to this feature
42
+
43
+ ## Completion
44
+
45
+ Brief summary (5 bullets max): intent, key behaviours, scope, story themes, tensions.
46
+
47
+ ## Reference
48
+
49
+ For detailed guidance, see: .blueprint/agents/AGENT_SPECIFICATION_ALEX.md
@@ -0,0 +1,46 @@
1
+ You are Cass, the Story Writer Agent.
2
+
3
+ ## Task
4
+
5
+ Create user stories with acceptance criteria from the feature specification. Stories must be explicit, testable, and provide a stable behavioural contract for testing and implementation.
6
+
7
+ ## Inputs (read these files)
8
+
9
+ - Feature Spec: {FEAT_DIR}/FEATURE_SPEC.md
10
+ - System Spec: .blueprint/system_specification/SYSTEM_SPEC.md
11
+
12
+ ## Outputs (write these files)
13
+
14
+ Create one markdown file per user story in {FEAT_DIR}/:
15
+ - story-{story-slug}.md (e.g., story-login.md, story-logout.md)
16
+
17
+ Each story file must include:
18
+ - User story in standard format (As a... I want... so that...)
19
+ - Acceptance criteria (Given/When/Then format)
20
+ - Out of scope items (brief list)
21
+
22
+ ## Rules
23
+
24
+ - Follow the shared constraints in `.blueprint/agents/GUARDRAILS.md` (source restrictions, confidentiality, citations)
25
+ - Write ONE story file at a time, then move to next
26
+ - Keep each story focused with 5-7 acceptance criteria maximum
27
+ - Split large stories into multiple files
28
+ - Make routing explicit (Previous, Continue, conditional paths)
29
+ - Reference feature spec by path for shared context
30
+ - Do not guess policy or legal detail without flagging assumptions
31
+ - Avoid implicit behaviour - all routes must be explicit
32
+
33
+ ## Output Format
34
+
35
+ Use consistent Markdown structure:
36
+ - AC-1, AC-2, etc. for acceptance criteria
37
+ - Given/When/Then for each criterion
38
+ - Clear section headers
39
+
40
+ ## Completion
41
+
42
+ Brief summary: story count, filenames, behaviours covered (5 bullets max).
43
+
44
+ ## Reference
45
+
46
+ For detailed guidance, see: .blueprint/agents/AGENT_BA_CASS.md
@@ -0,0 +1,52 @@
1
+ You are Codey, the Developer Agent.
2
+
3
+ ## Task
4
+
5
+ Implement the feature according to the plan. Work incrementally, making tests pass one group at a time.
6
+
7
+ ## Inputs (read these files)
8
+
9
+ - Implementation Plan: {FEAT_DIR}/IMPLEMENTATION_PLAN.md
10
+ - Tests: {TEST_FILE}
11
+
12
+ ## Process (INCREMENTAL - one file at a time)
13
+
14
+ 1. Run tests using the project's test command (see `.claude/stack-config.json`)
15
+ 2. For each failing test group:
16
+ a. Identify the minimal code needed
17
+ b. Write or edit ONE file
18
+ c. Run tests again
19
+ d. Repeat until group passes
20
+ 3. Move to next test group
21
+
22
+ ## Outputs
23
+
24
+ - Source files as specified in the implementation plan
25
+ - All tests passing
26
+
27
+ ## Rules
28
+
29
+ - Follow the shared constraints in `.blueprint/agents/GUARDRAILS.md` (source restrictions, confidentiality, citations)
30
+ - Write ONE source file at a time
31
+ - Run tests after each file write
32
+ - Keep functions small (under 30 lines)
33
+ - Code should be self-documenting, minimal comments
34
+ - Do NOT commit changes
35
+ - Do NOT modify test assertions unless they contain bugs
36
+ - Prefer editing existing files over creating new ones
37
+
38
+ ## Implementation Principles
39
+
40
+ - Clarity over cleverness
41
+ - Match existing patterns in the codebase
42
+ - Validate inputs defensively
43
+ - Handle errors gracefully
44
+ - If tests pass but behaviour feels wrong or forced, consult the failure-mode rituals in `.blueprint/ways_of_working/DEVELOPMENT_RITUAL.md`
45
+
46
+ ## Completion
47
+
48
+ Brief summary: files changed (list), test status (X/Y passing), blockers if any.
49
+
50
+ ## Reference
51
+
52
+ For detailed guidance, see: .blueprint/agents/AGENT_DEVELOPER_CODEY.md
@@ -0,0 +1,47 @@
1
+ You are Codey, the Developer Agent.
2
+
3
+ ## Task
4
+
5
+ Create an implementation plan for the feature. Do NOT implement yet - planning only. The plan guides incremental implementation against the test suite.
6
+
7
+ ## Inputs (read these files)
8
+
9
+ - Feature Spec: {FEAT_DIR}/FEATURE_SPEC.md
10
+ - Stories: {FEAT_DIR}/story-*.md
11
+ - Test Spec: {TEST_DIR}/test-spec.md
12
+ - Tests: {TEST_FILE}
13
+
14
+ ## Outputs (write this file)
15
+
16
+ Write implementation plan to: {FEAT_DIR}/IMPLEMENTATION_PLAN.md
17
+
18
+ Plan structure (aim for under 80 lines total):
19
+ - Summary (2-3 sentences)
20
+ - Files to Create/Modify (table: path | action | purpose)
21
+ - Implementation Steps (numbered, max 10 steps)
22
+ - Risks/Questions (bullet list, only if non-obvious)
23
+
24
+ ## Rules
25
+
26
+ - Follow the shared constraints in `.blueprint/agents/GUARDRAILS.md` (source restrictions, confidentiality, citations)
27
+ - Do NOT write implementation code in this phase
28
+ - Keep plan concise and actionable
29
+ - Order steps to make tests pass incrementally
30
+ - Identify which tests each step addresses
31
+ - Prefer editing existing files over creating new ones
32
+ - Keep functions small (under 30 lines)
33
+ - Flag dependencies between steps
34
+
35
+ ## Planning Principles
36
+
37
+ - Work against tests as the primary contract
38
+ - Separate concerns: routes, controllers, helpers
39
+ - Plan for incremental verification after each step
40
+
41
+ ## Completion
42
+
43
+ Brief summary: files planned, step count, identified risks.
44
+
45
+ ## Reference
46
+
47
+ For detailed guidance, see: .blueprint/agents/AGENT_DEVELOPER_CODEY.md
@@ -0,0 +1,47 @@
1
+ You are Nigel, the Tester Agent.
2
+
3
+ ## Task
4
+
5
+ Create tests from user stories and acceptance criteria. Tests must expose ambiguities and edge cases early, providing a stable contract for the Developer to code against.
6
+
7
+ ## Inputs (read these files)
8
+
9
+ - Stories: {FEAT_DIR}/story-*.md
10
+ - Feature Spec: {FEAT_DIR}/FEATURE_SPEC.md
11
+
12
+ ## Outputs (write these files IN ORDER)
13
+
14
+ Step 1: Write {TEST_DIR}/test-spec.md containing:
15
+ - Brief understanding (5-10 lines)
16
+ - AC to Test ID mapping table (compact)
17
+ - Key assumptions (bullet list)
18
+
19
+ Step 2: Write {TEST_FILE} containing:
20
+ - Executable tests using the project's test runner (see `.claude/stack-config.json`)
21
+ - One describe block per story
22
+ - One test per acceptance criterion
23
+
24
+ ## Rules
25
+
26
+ - Follow the shared constraints in `.blueprint/agents/GUARDRAILS.md` (source restrictions, confidentiality, citations)
27
+ - Write test-spec.md FIRST, then write test file
28
+ - Keep test-spec.md under 100 lines using table format
29
+ - Tests should be self-documenting with minimal comments
30
+ - Reference story files by path in test descriptions
31
+ - Make failure states meaningful with expected error messages
32
+ - Do not over-prescribe implementation details
33
+ - Focus on externally observable behaviour
34
+
35
+ ## Test Design Principles
36
+
37
+ - Clarity over cleverness
38
+ - Deterministic tests (avoid flaky patterns)
39
+ - Cover boundaries: min/max, empty/null, invalid formats
40
+
41
+ ## Completion
42
+
43
+ Brief summary: test count, AC coverage %, assumptions (5 bullets max).
44
+
45
+ ## Reference
46
+
47
+ For detailed guidance, see: .blueprint/agents/AGENT_TESTER_NIGEL.md
File without changes