Skip to content

Commit 092d5f5

Browse files
committed
docs(agents): add verification depth guidance based on task complexity
Signed-off-by: leocavalcante <leo@cavalcante.dev>
1 parent b67ebd5 commit 092d5f5

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

agents/opencoder-builder.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,58 @@ bunx biome check src/ || npm run lint || ruff check .
117117
- [ ] Linter passes (or only pre-existing violations remain)
118118
- [ ] No console errors or warnings introduced
119119

120+
## Verification Depth by Complexity
121+
122+
Not all tasks need the same verification rigor. Match your verification depth to task complexity.
123+
124+
### Verification Matrix
125+
126+
| Task Size | Type Check | Tests | Lint | Manual Check |
127+
|-----------|------------|-------|------|--------------|
128+
| Small | ✓ Quick | Affected only | Auto-fix only | Not required |
129+
| Medium | ✓ Full | Full suite | Full check | Spot check |
130+
| Large | ✓ Full | Full suite + new | Full check | Smoke test |
131+
132+
### Commands by Level
133+
134+
**Small task verification:**
135+
136+
```bash
137+
bun tsc --noEmit # Quick type check
138+
bun test path/to/affected.test.ts # Only affected tests
139+
bunx biome check --write src/ # Auto-fix lint only
140+
```
141+
142+
**Medium task verification:**
143+
144+
```bash
145+
bun tsc --noEmit # Full type check
146+
bun test # Full test suite
147+
bunx biome check src/ # Full lint (no auto-fix, review issues)
148+
```
149+
150+
**Large task verification:**
151+
152+
```bash
153+
bun tsc --noEmit # Full type check
154+
bun test # Full test suite
155+
bunx biome check src/ # Full lint
156+
# Manual: Run the feature end-to-end once
157+
```
158+
159+
### Timing Expectations
160+
161+
| Task Size | Max Verification Time |
162+
|-----------|----------------------|
163+
| Small | < 30 seconds |
164+
| Medium | < 2 minutes |
165+
| Large | < 5 minutes |
166+
167+
If verification exceeds these times, investigate why. Common causes:
168+
- Test suite has slow tests (consider `--bail` flag)
169+
- Type checking entire monorepo (check tsconfig scope)
170+
- Linting files outside your changes (narrow the path)
171+
120172
### Phase 5: Report
121173

122174
Return a **compact completion report** with a continuation signal:

0 commit comments

Comments
 (0)