@exaudeus/workrail 3.27.0 → 3.29.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/dist/console/assets/{index-FtTaDku8.js → index-BZ6HkxGf.js} +1 -1
- package/dist/console/index.html +1 -1
- package/dist/manifest.json +3 -3
- package/docs/README.md +57 -0
- package/docs/adrs/001-hybrid-storage-backend.md +38 -0
- package/docs/adrs/002-four-layer-context-classification.md +38 -0
- package/docs/adrs/003-checkpoint-trigger-strategy.md +35 -0
- package/docs/adrs/004-opt-in-encryption-strategy.md +36 -0
- package/docs/adrs/005-agent-first-workflow-execution-tokens.md +105 -0
- package/docs/adrs/006-append-only-session-run-event-log.md +76 -0
- package/docs/adrs/007-resume-and-checkpoint-only-sessions.md +51 -0
- package/docs/adrs/008-blocked-nodes-architectural-upgrade.md +178 -0
- package/docs/adrs/009-bridge-mode-single-instance-mcp.md +195 -0
- package/docs/adrs/010-release-pipeline.md +89 -0
- package/docs/architecture/README.md +7 -0
- package/docs/architecture/refactor-audit.md +364 -0
- package/docs/authoring-v2.md +527 -0
- package/docs/authoring.md +873 -0
- package/docs/changelog-recent.md +201 -0
- package/docs/configuration.md +505 -0
- package/docs/ctc-mcp-proposal.md +518 -0
- package/docs/design/README.md +22 -0
- package/docs/design/agent-cascade-protocol.md +96 -0
- package/docs/design/autonomous-console-design-candidates.md +253 -0
- package/docs/design/autonomous-console-design-review.md +111 -0
- package/docs/design/autonomous-platform-mvp-discovery.md +525 -0
- package/docs/design/claude-code-source-deep-dive.md +713 -0
- package/docs/design/console-cyberpunk-ui-discovery.md +504 -0
- package/docs/design/console-execution-trace-candidates-final.md +160 -0
- package/docs/design/console-execution-trace-candidates.md +211 -0
- package/docs/design/console-execution-trace-design-candidates-v2.md +113 -0
- package/docs/design/console-execution-trace-design-review.md +74 -0
- package/docs/design/console-execution-trace-discovery.md +394 -0
- package/docs/design/console-execution-trace-final-review.md +77 -0
- package/docs/design/console-execution-trace-review.md +92 -0
- package/docs/design/console-performance-discovery.md +415 -0
- package/docs/design/console-ui-backlog.md +280 -0
- package/docs/design/daemon-architecture-discovery.md +853 -0
- package/docs/design/daemon-design-candidates.md +318 -0
- package/docs/design/daemon-design-review-findings.md +119 -0
- package/docs/design/daemon-engine-design-candidates.md +210 -0
- package/docs/design/daemon-engine-design-review.md +131 -0
- package/docs/design/daemon-execution-engine-discovery.md +280 -0
- package/docs/design/daemon-gap-analysis.md +554 -0
- package/docs/design/daemon-owns-console-plan.md +168 -0
- package/docs/design/daemon-owns-console-review.md +91 -0
- package/docs/design/daemon-owns-console.md +195 -0
- package/docs/design/data-model-erd.md +11 -0
- package/docs/design/design-candidates-consolidate-dev-staleness.md +98 -0
- package/docs/design/design-candidates-walk-cache-depth-limit.md +80 -0
- package/docs/design/design-review-consolidate-dev-staleness.md +54 -0
- package/docs/design/design-review-walk-cache-depth-limit.md +48 -0
- package/docs/design/implementation-plan-consolidate-dev-staleness.md +142 -0
- package/docs/design/implementation-plan-walk-cache-depth-limit.md +141 -0
- package/docs/design/layer3b-ghost-nodes-design-candidates.md +229 -0
- package/docs/design/layer3b-ghost-nodes-design-review.md +93 -0
- package/docs/design/layer3b-ghost-nodes-implementation-plan.md +219 -0
- package/docs/design/list-workflows-latency-fix-plan.md +128 -0
- package/docs/design/list-workflows-latency-fix-review.md +55 -0
- package/docs/design/list-workflows-latency-fix.md +109 -0
- package/docs/design/native-context-management-api.md +11 -0
- package/docs/design/performance-sweep-2026-04.md +96 -0
- package/docs/design/routines-guide.md +219 -0
- package/docs/design/sequence-diagrams.md +11 -0
- package/docs/design/subagent-design-principles.md +220 -0
- package/docs/design/temporal-patterns-design-candidates.md +312 -0
- package/docs/design/temporal-patterns-design-review-findings.md +163 -0
- package/docs/design/test-isolation-from-config-file.md +335 -0
- package/docs/design/v2-core-design-locks.md +2746 -0
- package/docs/design/v2-lock-registry.json +734 -0
- package/docs/design/workflow-authoring-v2.md +1044 -0
- package/docs/design/workflow-docs-spec.md +218 -0
- package/docs/design/workflow-extension-points.md +687 -0
- package/docs/design/workrail-auto-trigger-system.md +359 -0
- package/docs/design/workrail-config-file-discovery.md +513 -0
- package/docs/docker.md +110 -0
- package/docs/generated/v2-lock-closure-plan.md +26 -0
- package/docs/generated/v2-lock-coverage.json +797 -0
- package/docs/generated/v2-lock-coverage.md +177 -0
- package/docs/ideas/backlog.md +3927 -0
- package/docs/ideas/design-candidates-mcp-resilience.md +208 -0
- package/docs/ideas/design-review-findings-mcp-resilience.md +119 -0
- package/docs/ideas/implementation_plan.md +249 -0
- package/docs/ideas/third-party-workflow-setup-design-thinking.md +1948 -0
- package/docs/implementation/02-architecture.md +316 -0
- package/docs/implementation/04-testing-strategy.md +124 -0
- package/docs/implementation/09-simple-workflow-guide.md +835 -0
- package/docs/implementation/13-advanced-validation-guide.md +874 -0
- package/docs/implementation/README.md +21 -0
- package/docs/integrations/claude-code.md +300 -0
- package/docs/integrations/firebender.md +315 -0
- package/docs/migration/v0.1.0.md +147 -0
- package/docs/naming-conventions.md +45 -0
- package/docs/planning/README.md +104 -0
- package/docs/planning/github-ticketing-playbook.md +195 -0
- package/docs/plans/README.md +24 -0
- package/docs/plans/agent-managed-ticketing-design.md +605 -0
- package/docs/plans/agentic-orchestration-roadmap.md +112 -0
- package/docs/plans/assessment-gates-engine-handoff.md +536 -0
- package/docs/plans/content-coherence-and-references.md +151 -0
- package/docs/plans/library-extraction-plan.md +340 -0
- package/docs/plans/mr-review-workflow-redesign.md +1451 -0
- package/docs/plans/native-context-management-epic.md +11 -0
- package/docs/plans/perf-fixes-design-candidates.md +225 -0
- package/docs/plans/perf-fixes-design-review-findings.md +61 -0
- package/docs/plans/perf-fixes-new-issues-candidates.md +264 -0
- package/docs/plans/perf-fixes-new-issues-review.md +110 -0
- package/docs/plans/prompt-fragments.md +53 -0
- package/docs/plans/ui-ux-workflow-design-candidates.md +120 -0
- package/docs/plans/ui-ux-workflow-discovery.md +100 -0
- package/docs/plans/ui-ux-workflow-review.md +48 -0
- package/docs/plans/v2-followup-enhancements.md +587 -0
- package/docs/plans/workflow-categories-candidates.md +105 -0
- package/docs/plans/workflow-categories-discovery.md +110 -0
- package/docs/plans/workflow-categories-review.md +51 -0
- package/docs/plans/workflow-discovery-model-candidates.md +94 -0
- package/docs/plans/workflow-discovery-model-discovery.md +74 -0
- package/docs/plans/workflow-discovery-model-review.md +48 -0
- package/docs/plans/workflow-source-setup-phase-1.md +245 -0
- package/docs/plans/workflow-source-setup-phase-2.md +361 -0
- package/docs/plans/workflow-staleness-detection-candidates.md +104 -0
- package/docs/plans/workflow-staleness-detection-review.md +58 -0
- package/docs/plans/workflow-staleness-detection.md +80 -0
- package/docs/plans/workflow-v2-design.md +69 -0
- package/docs/plans/workflow-v2-roadmap.md +74 -0
- package/docs/plans/workflow-validation-design.md +98 -0
- package/docs/plans/workflow-validation-roadmap.md +108 -0
- package/docs/plans/workrail-platform-vision.md +420 -0
- package/docs/reference/agent-context-cleaner-snippet.md +94 -0
- package/docs/reference/agent-context-guidance.md +140 -0
- package/docs/reference/context-optimization.md +284 -0
- package/docs/reference/example-workflow-repository-template/.github/workflows/validate.yml +125 -0
- package/docs/reference/example-workflow-repository-template/README.md +268 -0
- package/docs/reference/example-workflow-repository-template/workflows/example-workflow.json +80 -0
- package/docs/reference/external-workflow-repositories.md +916 -0
- package/docs/reference/feature-flags-architecture.md +472 -0
- package/docs/reference/feature-flags.md +349 -0
- package/docs/reference/god-tier-workflow-validation.md +272 -0
- package/docs/reference/loop-optimization.md +209 -0
- package/docs/reference/loop-validation.md +176 -0
- package/docs/reference/loops.md +465 -0
- package/docs/reference/mcp-platform-constraints.md +59 -0
- package/docs/reference/recovery.md +88 -0
- package/docs/reference/releases.md +177 -0
- package/docs/reference/troubleshooting.md +105 -0
- package/docs/reference/workflow-execution-contract.md +998 -0
- package/docs/roadmap/README.md +22 -0
- package/docs/roadmap/legacy-planning-status.md +103 -0
- package/docs/roadmap/now-next-later.md +70 -0
- package/docs/roadmap/open-work-inventory.md +389 -0
- package/docs/tickets/README.md +39 -0
- package/docs/tickets/next-up.md +76 -0
- package/docs/workflow-management.md +317 -0
- package/docs/workflow-templates.md +423 -0
- package/docs/workflow-validation.md +184 -0
- package/docs/workflows.md +254 -0
- package/package.json +3 -1
- package/spec/authoring-spec.json +61 -16
- package/workflows/workflow-for-workflows.json +252 -93
- package/workflows/workflow-for-workflows.v2.json +188 -77
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
# Example Workflow Repository Template
|
|
2
|
+
|
|
3
|
+
This is a template for creating your own workflow repository that can be used with WorkRail's external workflow feature.
|
|
4
|
+
|
|
5
|
+
## Quick Start
|
|
6
|
+
|
|
7
|
+
### 1. Use This Template
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
# Option A: Via GitHub UI
|
|
11
|
+
1. Click "Use this template" button
|
|
12
|
+
2. Create your repository
|
|
13
|
+
3. Clone it locally
|
|
14
|
+
|
|
15
|
+
# Option B: Manual
|
|
16
|
+
git clone https://github.com/your-org/your-workflows.git
|
|
17
|
+
cd your-workflows
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
### 2. Add Your Workflows
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
# Add a workflow file
|
|
24
|
+
cat > workflows/my-workflow.json << 'EOF'
|
|
25
|
+
{
|
|
26
|
+
"id": "my-workflow",
|
|
27
|
+
"name": "My Custom Workflow",
|
|
28
|
+
"description": "Description of what this workflow does",
|
|
29
|
+
"version": "1.0.0",
|
|
30
|
+
"steps": [
|
|
31
|
+
{
|
|
32
|
+
"id": "step-1",
|
|
33
|
+
"title": "First Step",
|
|
34
|
+
"prompt": "Instructions for this step"
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
EOF
|
|
39
|
+
|
|
40
|
+
# Validate it
|
|
41
|
+
workrail validate workflows/my-workflow.json
|
|
42
|
+
|
|
43
|
+
# Commit and push
|
|
44
|
+
git add workflows/my-workflow.json
|
|
45
|
+
git commit -m "Add my-workflow"
|
|
46
|
+
git push
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### 3. Use the Repository
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
# Configure WorkRail to use this repository
|
|
53
|
+
export WORKFLOW_GIT_REPO_URL=https://github.com/your-org/your-workflows.git
|
|
54
|
+
|
|
55
|
+
# Initialize (clones the repository)
|
|
56
|
+
workrail init
|
|
57
|
+
|
|
58
|
+
# List workflows (includes your custom workflows)
|
|
59
|
+
workrail list
|
|
60
|
+
|
|
61
|
+
# Run a workflow
|
|
62
|
+
workrail run my-workflow
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## Repository Structure
|
|
66
|
+
|
|
67
|
+
```
|
|
68
|
+
your-workflows/
|
|
69
|
+
├── README.md # This file
|
|
70
|
+
├── workflows/ # Required: All workflows go here
|
|
71
|
+
│ ├── example-workflow.json # Example workflow (can be deleted)
|
|
72
|
+
│ └── ... # Your workflow files
|
|
73
|
+
├── .gitignore # Git ignore file
|
|
74
|
+
├── .github/
|
|
75
|
+
│ └── workflows/
|
|
76
|
+
│ └── validate.yml # CI/CD validation
|
|
77
|
+
└── CONTRIBUTING.md # Contribution guidelines (optional)
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
## Workflow File Format
|
|
81
|
+
|
|
82
|
+
Each workflow must be a valid JSON file following the WorkRail schema:
|
|
83
|
+
|
|
84
|
+
```json
|
|
85
|
+
{
|
|
86
|
+
"id": "unique-workflow-id",
|
|
87
|
+
"name": "Human Readable Name",
|
|
88
|
+
"description": "What this workflow does",
|
|
89
|
+
"version": "1.0.0",
|
|
90
|
+
"steps": [
|
|
91
|
+
{
|
|
92
|
+
"id": "step-1",
|
|
93
|
+
"title": "Step Name",
|
|
94
|
+
"prompt": "Instructions for this step",
|
|
95
|
+
"guidance": ["Optional guidance"],
|
|
96
|
+
"requireConfirmation": false
|
|
97
|
+
}
|
|
98
|
+
]
|
|
99
|
+
}
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
## Naming Conventions
|
|
103
|
+
|
|
104
|
+
- **Workflow IDs**: Use lowercase with hyphens (e.g., `code-review`, `bug-fix`)
|
|
105
|
+
- **File names**: Should match workflow ID (e.g., `code-review.json`)
|
|
106
|
+
- **Versions**: Use semantic versioning (e.g., `1.0.0`, `1.2.3`)
|
|
107
|
+
|
|
108
|
+
## Validation
|
|
109
|
+
|
|
110
|
+
Before committing workflows, validate them:
|
|
111
|
+
|
|
112
|
+
```bash
|
|
113
|
+
# Validate a single workflow
|
|
114
|
+
workrail validate workflows/my-workflow.json
|
|
115
|
+
|
|
116
|
+
# Validate all workflows
|
|
117
|
+
for file in workflows/*.json; do
|
|
118
|
+
workrail validate "$file"
|
|
119
|
+
done
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
## CI/CD Integration
|
|
123
|
+
|
|
124
|
+
The included `.github/workflows/validate.yml` automatically validates all workflows on:
|
|
125
|
+
- Push to main
|
|
126
|
+
- Pull requests
|
|
127
|
+
|
|
128
|
+
This ensures only valid workflows are merged.
|
|
129
|
+
|
|
130
|
+
## Contributing
|
|
131
|
+
|
|
132
|
+
### Adding a New Workflow
|
|
133
|
+
|
|
134
|
+
1. Fork this repository
|
|
135
|
+
2. Create a new branch: `git checkout -b add-my-workflow`
|
|
136
|
+
3. Add your workflow to `workflows/`
|
|
137
|
+
4. Validate it: `workrail validate workflows/my-workflow.json`
|
|
138
|
+
5. Commit: `git commit -m "Add my-workflow"`
|
|
139
|
+
6. Push: `git push origin add-my-workflow`
|
|
140
|
+
7. Create a pull request
|
|
141
|
+
|
|
142
|
+
### Modifying an Existing Workflow
|
|
143
|
+
|
|
144
|
+
1. Follow the same process as adding a new workflow
|
|
145
|
+
2. Increment the version number in the workflow
|
|
146
|
+
3. Document changes in the PR description
|
|
147
|
+
|
|
148
|
+
### Code Review Checklist
|
|
149
|
+
|
|
150
|
+
- [ ] Workflow ID is unique
|
|
151
|
+
- [ ] File name matches workflow ID
|
|
152
|
+
- [ ] JSON is valid
|
|
153
|
+
- [ ] Schema validation passes
|
|
154
|
+
- [ ] Version number is updated (for modifications)
|
|
155
|
+
- [ ] Description is clear and helpful
|
|
156
|
+
- [ ] Steps are well-documented
|
|
157
|
+
|
|
158
|
+
## Usage Patterns
|
|
159
|
+
|
|
160
|
+
### Team Repository (Private)
|
|
161
|
+
|
|
162
|
+
For private team workflows with authentication:
|
|
163
|
+
|
|
164
|
+
```bash
|
|
165
|
+
export WORKFLOW_GIT_REPO_URL=https://github.com/myteam/workflows.git
|
|
166
|
+
export GITHUB_TOKEN=ghp_xxxxxxxxxxxxxxxxxxxx
|
|
167
|
+
workrail init
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
### Multi-Repository Setup
|
|
171
|
+
|
|
172
|
+
Combine multiple repositories (e.g., community + team):
|
|
173
|
+
|
|
174
|
+
```bash
|
|
175
|
+
export WORKFLOW_GIT_REPOS='[
|
|
176
|
+
{
|
|
177
|
+
"repositoryUrl": "https://github.com/workrail/community-workflows.git",
|
|
178
|
+
"branch": "main",
|
|
179
|
+
"syncInterval": 1440
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"repositoryUrl": "https://github.com/myteam/workflows.git",
|
|
183
|
+
"branch": "main",
|
|
184
|
+
"syncInterval": 60,
|
|
185
|
+
"authToken": "'${GITHUB_TOKEN}'"
|
|
186
|
+
}
|
|
187
|
+
]'
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
## Best Practices
|
|
191
|
+
|
|
192
|
+
### Workflow Organization
|
|
193
|
+
|
|
194
|
+
- One workflow per file
|
|
195
|
+
- Clear, descriptive names
|
|
196
|
+
- Comprehensive descriptions
|
|
197
|
+
- Well-structured steps
|
|
198
|
+
- Version your workflows
|
|
199
|
+
|
|
200
|
+
### Security
|
|
201
|
+
|
|
202
|
+
- Review all workflow changes
|
|
203
|
+
- Use branch protection
|
|
204
|
+
- Require pull request reviews
|
|
205
|
+
- Don't include sensitive data in workflows
|
|
206
|
+
- Use private repositories for sensitive workflows
|
|
207
|
+
|
|
208
|
+
### Performance
|
|
209
|
+
|
|
210
|
+
- Keep workflows under 1MB
|
|
211
|
+
- Limit to 100 workflows per repository
|
|
212
|
+
- Use appropriate sync intervals (60+ minutes)
|
|
213
|
+
|
|
214
|
+
### Documentation
|
|
215
|
+
|
|
216
|
+
- Document workflow purpose in description
|
|
217
|
+
- Include examples in workflow guidance
|
|
218
|
+
- Maintain this README with usage instructions
|
|
219
|
+
- Document any special requirements
|
|
220
|
+
|
|
221
|
+
## Troubleshooting
|
|
222
|
+
|
|
223
|
+
### Workflow Not Loading
|
|
224
|
+
|
|
225
|
+
```bash
|
|
226
|
+
# Check if repository is cloned
|
|
227
|
+
ls -la ~/.workrail/
|
|
228
|
+
|
|
229
|
+
# Force re-sync
|
|
230
|
+
rm -rf ~/.workrail/your-repo-name
|
|
231
|
+
workrail init
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
### Validation Failures
|
|
235
|
+
|
|
236
|
+
```bash
|
|
237
|
+
# Common issues:
|
|
238
|
+
- Missing required fields (id, name, description, version, steps)
|
|
239
|
+
- Invalid JSON syntax
|
|
240
|
+
- Workflow ID doesn't match filename
|
|
241
|
+
- Invalid step structure
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
### Authentication Issues
|
|
245
|
+
|
|
246
|
+
```bash
|
|
247
|
+
# Verify token has access
|
|
248
|
+
curl -H "Authorization: token ${GITHUB_TOKEN}" \
|
|
249
|
+
https://api.github.com/repos/your-org/your-workflows
|
|
250
|
+
|
|
251
|
+
# Test clone manually
|
|
252
|
+
git clone https://github.com/your-org/your-workflows.git /tmp/test
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
## Support
|
|
256
|
+
|
|
257
|
+
- **Issues**: [Create an issue](https://github.com/your-org/your-workflows/issues)
|
|
258
|
+
- **Discussions**: [Join the discussion](https://github.com/your-org/your-workflows/discussions)
|
|
259
|
+
- **WorkRail Docs**: [Read the documentation](https://workrail.io/docs)
|
|
260
|
+
|
|
261
|
+
## License
|
|
262
|
+
|
|
263
|
+
[Your License Here]
|
|
264
|
+
|
|
265
|
+
## Credits
|
|
266
|
+
|
|
267
|
+
Created with the WorkRail workflow repository template.
|
|
268
|
+
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "example-workflow",
|
|
3
|
+
"name": "Example Workflow",
|
|
4
|
+
"description": "This is an example workflow that demonstrates the basic structure. You can delete this file and add your own workflows.",
|
|
5
|
+
"version": "1.0.0",
|
|
6
|
+
"preconditions": [
|
|
7
|
+
"You have a clear goal for what you want to accomplish",
|
|
8
|
+
"You have identified the relevant files or areas to work on"
|
|
9
|
+
],
|
|
10
|
+
"clarificationPrompts": [
|
|
11
|
+
"What is the specific outcome you want to achieve?",
|
|
12
|
+
"Are there any constraints or requirements I should know about?"
|
|
13
|
+
],
|
|
14
|
+
"steps": [
|
|
15
|
+
{
|
|
16
|
+
"id": "analyze-requirement",
|
|
17
|
+
"title": "Analyze the Requirement",
|
|
18
|
+
"prompt": "Review and understand the requirement. Break it down into smaller, actionable tasks.",
|
|
19
|
+
"agentRole": "You are a careful analyst who asks clarifying questions and ensures full understanding before proceeding.",
|
|
20
|
+
"guidance": [
|
|
21
|
+
"Read the requirement carefully",
|
|
22
|
+
"Identify any ambiguities",
|
|
23
|
+
"Break down into subtasks",
|
|
24
|
+
"Ask clarifying questions if needed"
|
|
25
|
+
],
|
|
26
|
+
"requireConfirmation": true
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"id": "implement-solution",
|
|
30
|
+
"title": "Implement the Solution",
|
|
31
|
+
"prompt": "Implement the solution based on the analyzed requirements. Follow best practices and coding standards.",
|
|
32
|
+
"agentRole": "You are an experienced developer who writes clean, maintainable code and follows established patterns.",
|
|
33
|
+
"guidance": [
|
|
34
|
+
"Follow project coding standards",
|
|
35
|
+
"Write clear, self-documenting code",
|
|
36
|
+
"Add appropriate comments",
|
|
37
|
+
"Consider edge cases"
|
|
38
|
+
],
|
|
39
|
+
"askForFiles": true
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"id": "test-solution",
|
|
43
|
+
"title": "Test the Solution",
|
|
44
|
+
"prompt": "Test the implemented solution thoroughly. Verify it meets all requirements.",
|
|
45
|
+
"guidance": [
|
|
46
|
+
"Test happy path scenarios",
|
|
47
|
+
"Test edge cases",
|
|
48
|
+
"Test error conditions",
|
|
49
|
+
"Verify all requirements are met"
|
|
50
|
+
],
|
|
51
|
+
"hasValidation": true,
|
|
52
|
+
"validationCriteria": [
|
|
53
|
+
{
|
|
54
|
+
"type": "contains",
|
|
55
|
+
"value": "test",
|
|
56
|
+
"message": "Response should include testing approach or results"
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"id": "review-and-refine",
|
|
62
|
+
"title": "Review and Refine",
|
|
63
|
+
"prompt": "Review the solution for quality, performance, and maintainability. Make any necessary refinements.",
|
|
64
|
+
"guidance": [
|
|
65
|
+
"Check for code quality",
|
|
66
|
+
"Look for optimization opportunities",
|
|
67
|
+
"Ensure consistency with codebase",
|
|
68
|
+
"Update documentation if needed"
|
|
69
|
+
],
|
|
70
|
+
"requireConfirmation": true
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
"metaGuidance": [
|
|
74
|
+
"Always prioritize code clarity over cleverness",
|
|
75
|
+
"Document your reasoning for non-obvious decisions",
|
|
76
|
+
"Consider the maintainability of your solution",
|
|
77
|
+
"Follow the project's established patterns and conventions"
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
|