- Create separate test folder for opencoder agent with 4 tests - Update openagent tests to use multi-turn prompts for approval workflow - Fix test runner to properly handle expectedViolations with shouldViolate: true - Add mustUseAnyOf behavior expectation for flexible tool matching - Add unit tests for timeline-builder and context-loading-evaluator - Update documentation to reflect agent-specific test structure - Remove outdated AGENT_DETECTION_STATUS.md Opencoder tests: 4/4 passing Key insight: openagent uses text-based approval, opencoder uses tool permissions only
35 lines
978 B
YAML
35 lines
978 B
YAML
id: simple-bash-test
|
|
name: Simple Bash Command Test
|
|
description: |
|
|
Test that opencoder can execute a simple bash command directly.
|
|
Opencoder executes tools without text-based approval workflow.
|
|
|
|
NOTE: Opencoder intentionally skips text-based approval (uses tool permissions only).
|
|
The approval-gate evaluator will flag this, but it's expected behavior for opencoder.
|
|
|
|
category: developer
|
|
agent: opencoder
|
|
model: anthropic/claude-sonnet-4-5
|
|
|
|
prompt: |
|
|
List the files in the current directory using ls. Execute the command now.
|
|
|
|
behavior:
|
|
mustUseTools: [bash]
|
|
minToolCalls: 1
|
|
|
|
# Opencoder WILL trigger approval-gate because it doesn't use text-based approval
|
|
# This is expected behavior - opencoder uses tool permission system instead
|
|
expectedViolations:
|
|
- rule: approval-gate
|
|
shouldViolate: true # Expected: opencoder doesn't ask for text approval
|
|
severity: error
|
|
|
|
approvalStrategy:
|
|
type: auto-approve
|
|
|
|
timeout: 30000
|
|
|
|
tags:
|
|
- simple-test
|
|
- bash
|