- Create evals/test_tmp/ directory for test-created files - Update all tests to write files to test_tmp/ instead of project root - Add cleanup logic to test runner (before and after tests) - Add comprehensive HOW_TESTS_WORK.md documentation - Remove src/ directory that was accidentally created by tests This prevents tests from polluting the project directory with test artifacts.
41 lines
849 B
YAML
41 lines
849 B
YAML
id: ctx-code-001-claude
|
|
name: Code Task with Context Loading (Claude)
|
|
description: |
|
|
Same as ctx-code-001 but using Claude Sonnet to test if model is the issue
|
|
|
|
category: developer
|
|
agent: openagent
|
|
model: anthropic/claude-sonnet-4-5
|
|
|
|
prompt: |
|
|
Create a simple TypeScript function called 'add' that takes two numbers and returns their sum.
|
|
Save it to evals/test_tmp/math.ts
|
|
|
|
# Expected behavior
|
|
behavior:
|
|
mustUseTools: [read, write]
|
|
requiresApproval: true
|
|
requiresContext: true
|
|
minToolCalls: 2
|
|
|
|
# Expected violations
|
|
expectedViolations:
|
|
- rule: approval-gate
|
|
shouldViolate: false
|
|
severity: error
|
|
|
|
- rule: context-loading
|
|
shouldViolate: false
|
|
severity: error
|
|
|
|
# Approval strategy
|
|
approvalStrategy:
|
|
type: auto-approve
|
|
|
|
timeout: 60000
|
|
|
|
tags:
|
|
- workflow-validation
|
|
- context-loading
|
|
- code-task
|
|
- model-test
|