feat(opencode): Enforce Manual Slop MCP tools across all agents
This commit is contained in:
@@ -11,23 +11,31 @@ Execute phase completion verification and create checkpoint.
|
||||
- All tasks in the current phase must be marked `[x]`
|
||||
- All changes must be committed
|
||||
|
||||
## CRITICAL: Use MCP Tools Only
|
||||
|
||||
All operations must use Manual Slop's MCP tools:
|
||||
- `manual-slop_read_file` - read files
|
||||
- `manual-slop_get_git_diff` - check changes
|
||||
- `manual-slop_run_powershell` - shell commands
|
||||
|
||||
## Verification Protocol
|
||||
|
||||
1. **Announce Protocol Start:**
|
||||
Inform user that phase verification has begun.
|
||||
|
||||
2. **Determine Phase Scope:**
|
||||
- Find previous phase checkpoint SHA in `plan.md`
|
||||
- Find previous phase checkpoint SHA in `plan.md` via `manual-slop_read_file`
|
||||
- If no previous checkpoint, scope is all changes since first commit
|
||||
|
||||
3. **List Changed Files:**
|
||||
Use `manual-slop_run_powershell`:
|
||||
```powershell
|
||||
git diff --name-only <previous_checkpoint_sha> HEAD
|
||||
```
|
||||
|
||||
4. **Verify Test Coverage:**
|
||||
For each code file changed (exclude `.json`, `.md`, `.yaml`):
|
||||
- Check if corresponding test file exists
|
||||
- Check if corresponding test file exists via `manual-slop_search_files`
|
||||
- If missing, create test file via @tier3-worker
|
||||
|
||||
5. **Execute Tests in Batches:**
|
||||
@@ -38,6 +46,8 @@ Execute phase completion verification and create checkpoint.
|
||||
I will now run: uv run pytest tests/test_file1.py tests/test_file2.py -v
|
||||
```
|
||||
|
||||
Use `manual-slop_run_powershell` to execute.
|
||||
|
||||
If tests fail with large output:
|
||||
- Pipe to log file
|
||||
- Delegate analysis to @tier4-qa
|
||||
@@ -60,6 +70,7 @@ Execute phase completion verification and create checkpoint.
|
||||
**PAUSE** and wait for explicit user approval before proceeding.
|
||||
|
||||
8. **Create Checkpoint:**
|
||||
Use `manual-slop_run_powershell`:
|
||||
```powershell
|
||||
git add .
|
||||
git commit --allow-empty -m "conductor(checkpoint): Phase {N} complete"
|
||||
@@ -69,6 +80,7 @@ Execute phase completion verification and create checkpoint.
|
||||
|
||||
9. **Update Plan:**
|
||||
- Add `[checkpoint: {sha}]` to phase heading in `plan.md`
|
||||
- Use `manual-slop_set_file_slice` or `manual-slop_read_file` + write
|
||||
- Commit: `git add plan.md && git commit -m "conductor(plan): Mark phase complete"`
|
||||
|
||||
10. **Announce Completion:**
|
||||
|
||||
Reference in New Issue
Block a user