OpenWriterControle/evals/agents/openagent/tests/developer/ctx-docs-001.yaml
darrenhinde cc96acc50e feat: add 5 essential workflow tests and reorganize with agents/ structure
- Add 5 workflow tests (task, context loading, stop-on-failure, conversational)
- Add 1 shared test (agent-agnostic approval gate)
- Reorganize: opencode/ → agents/ for clearer structure
- Rename: sdk-tests/ → tests/ for simplicity
- Update test runner paths to new structure
- Add comprehensive documentation (test plan, guides, migration)
- Update all documentation with new paths

Total: 13 tests (was 6, added 7)
Coverage: +31% workflow compliance
All tests passing: 11/11 (100%)
2025-11-22 15:20:59 +00:00

47 lines
1.2 KiB
YAML

id: ctx-docs-001
name: Docs Task with Context Loading
description: |
Tests the Execute stage context loading for documentation tasks.
Validates that agent loads .opencode/context/core/standards/docs.md before editing docs.
Critical rule from openagent.md (Line 162-193):
"Docs tasks → .opencode/context/core/standards/docs.md (MANDATORY)"
category: developer
agent: openagent
prompt: |
Update the README.md file to add a new section called "Installation"
with instructions on how to install the project dependencies.
# Expected behavior
behavior:
mustUseTools: [read, edit] # Must read context + README, then edit
requiresApproval: true
requiresContext: true # MUST load docs.md before editing
minToolCalls: 2 # At least: read context + edit file
# Expected violations
expectedViolations:
- rule: approval-gate
shouldViolate: false
severity: error
description: Must ask approval before editing files
- rule: context-loading
shouldViolate: false
severity: error
description: Must load docs.md before editing documentation
# Approval strategy
approvalStrategy:
type: auto-approve
timeout: 60000
tags:
- workflow-validation
- context-loading
- docs-task
- critical-rule
- v2-schema