Documentation: - Add ARCHITECTURE.md with comprehensive system review - Add GETTING_STARTED.md for new users - Add DOCUMENTATION_CLEANUP.md tracking cleanup changes - Add SCRIPTS_ORGANIZATION.md documenting script reorganization - Remove outdated docs (TESTING_CONFIDENCE.md, TEST_REVIEW.md, SESSION_STORAGE_FIX.md) - Update README files with current information Script Organization: - Move 12 scripts from framework root to organized directories: - scripts/debug/ (4 files): Session debugging tools - scripts/test/ (6 files): Test execution scripts - scripts/utils/ (2 files): Utility scripts - Add comprehensive scripts/README.md with usage examples Test Infrastructure: - Add 5 new context loading tests for openagent - Add result-saver.ts for test result persistence - Add interactive results dashboard (index.html) - Add error-handling.test.ts for framework testing - Add result-saver.test.ts with comprehensive unit tests Evaluator Improvements: - Enhance context-loading-evaluator with better detection - Update run-sdk-tests.ts with improved result handling Agent Configuration: - Add .opencode/agent/AGENT.md for agent definition Test Utilities: - Add test-agent-manual.mjs for manual testing - Update test_tmp/README.md with usage guidelines This commit consolidates multiple improvements: - Better organization (scripts, docs) - Improved testing infrastructure - Comprehensive documentation - Cleaner codebase structure
74 lines
2.1 KiB
YAML
74 lines
2.1 KiB
YAML
id: ctx-multi-error-handling-to-tests
|
|
name: "Context Loading: Multi-Turn Error Handling to Tests"
|
|
description: |
|
|
Complex multi-turn test: Error handling question → Test request → Coverage policy
|
|
|
|
Turn 1: Ask about error handling approach
|
|
- Expected: Load standards.md or processes.md
|
|
- Validation: Read before response
|
|
|
|
Turn 2: Request test creation for error handling
|
|
- Expected: Load tests.md (testing standards)
|
|
- Validation: Read tests.md before writing tests
|
|
- Files created: evals/test_tmp/error-handling.test.ts
|
|
|
|
Turn 3: Ask about test coverage policy
|
|
- Expected: Reference tests.md or processes.md
|
|
- Validation: Should have test-related context loaded
|
|
|
|
Working directory: evals/test_tmp/
|
|
|
|
category: developer
|
|
agent: openagent
|
|
model: anthropic/claude-sonnet-4-5
|
|
|
|
# Multi-turn conversation
|
|
prompts:
|
|
- text: "How should we handle errors in this project?"
|
|
expectContext: true
|
|
contextFile: "standards.md"
|
|
|
|
- text: "approve"
|
|
delayMs: 2000
|
|
|
|
- text: "Can you write tests for error handling in evals/test_tmp/error-handling.test.ts?"
|
|
expectContext: true
|
|
contextFile: "tests.md"
|
|
|
|
- text: "approve"
|
|
delayMs: 2000
|
|
|
|
- text: "What's our test coverage policy?"
|
|
delayMs: 1000
|
|
|
|
# Expected behavior
|
|
behavior:
|
|
mustUseTools: [read, write] # Must read context files and write tests
|
|
requiresApproval: true # OpenAgent requires approval before writing
|
|
requiresContext: true # Must load context files
|
|
minToolCalls: 3 # At least: read standards + read tests + write file
|
|
|
|
# Expected violations
|
|
expectedViolations:
|
|
- rule: approval-gate
|
|
shouldViolate: false
|
|
severity: error
|
|
description: Must ask approval before writing files
|
|
|
|
- rule: context-loading
|
|
shouldViolate: false
|
|
severity: error
|
|
description: Must load standards.md and tests.md before writing
|
|
|
|
# Approval strategy
|
|
approvalStrategy:
|
|
type: auto-approve
|
|
|
|
timeout: 300000 # 5 minutes for multi-turn (with smart timeout: 5min activity, 10min absolute max)
|
|
|
|
tags:
|
|
- context-loading
|
|
- multi-turn
|
|
- complex-test
|
|
- testing
|
|
- error-handling
|